@moonbase.sh/storefront 0.2.26 → 0.2.28
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.
- package/dist/moonbase.js +690 -690
- package/dist/moonbase.umd.cjs +14 -14
- package/package.json +2 -2
package/dist/moonbase.umd.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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-65d18d50] label[data-v-65d18d50]{display:block;font-size:14px;font-weight:500;line-height:20px;color:#374151}.moonbase\\:input[data-v-65d18d50] input[data-v-65d18d50]{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-65d18d50] input[data-v-65d18d50][data-v-65d18d50]: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-65d18d50] .moonbase\\:input-hint[data-v-65d18d50]{margin-top:8px;font-size:14px;line-height:20px}.moonbase\\:input[data-v-65d18d50] .moonbase\\:input-hint[data-v-65d18d50][data-type=error][data-v-65d18d50]{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(Dt,xe){typeof exports=="object"&&typeof module<"u"?xe(exports):typeof define=="function"&&define.amd?define(["exports"],xe):(Dt=typeof globalThis<"u"?globalThis:Dt||self,xe(Dt.Moonbase={}))})(this,function(Dt){"use strict";var ix=Object.defineProperty;var ax=(Dt,xe,Un)=>xe in Dt?ix(Dt,xe,{enumerable:!0,configurable:!0,writable:!0,value:Un}):Dt[xe]=Un;var Kr=(Dt,xe,Un)=>ax(Dt,typeof xe!="symbol"?xe+"":xe,Un);var xe;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(xe||(xe={}));var Un;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Un||(Un={}));const re=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zn=t=>{switch(typeof t){case"undefined":return re.undefined;case"string":return re.string;case"number":return isNaN(t)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(t)?re.array:t===null?re.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?re.promise:typeof Map<"u"&&t instanceof Map?re.map:typeof Set<"u"&&t instanceof Set?re.set:typeof Date<"u"&&t instanceof Date?re.date:re.object;default:return re.unknown}},Z=xe.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"]),Mp=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");let zt=class Ap extends Error{constructor(e){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=e}get errors(){return this.issues}format(e){const n=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(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 c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(e){if(!(e instanceof Ap))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};zt.create=t=>new zt(t);const Gr=(t,e)=>{let n;switch(t.code){case Z.invalid_type:t.received===re.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case Z.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,xe.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:n=`Unrecognized key(s) in object: ${xe.joinValues(t.keys,", ")}`;break;case Z.invalid_union:n="Invalid input";break;case Z.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xe.joinValues(t.options)}`;break;case Z.invalid_enum_value:n=`Invalid enum value. Expected ${xe.joinValues(t.options)}, received '${t.received}'`;break;case Z.invalid_arguments:n="Invalid function arguments";break;case Z.invalid_return_type:n="Invalid function return type";break;case Z.invalid_date:n="Invalid date";break;case Z.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:xe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case Z.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case Z.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case Z.custom:n="Invalid input";break;case Z.invalid_intersection_types:n="Intersection results could not be merged";break;case Z.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Z.not_finite:n="Number must be finite";break;default:n=e.defaultError,xe.assertNever(t)}return{message:n}};let hc=Gr;function Up(t){hc=t}function jo(){return hc}const Lo=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:e,defaultError:a}).message;return{...s,path:o,message:a}},Zp=[];function te(t,e){const n=jo(),r=Lo({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Gr?void 0:Gr].filter(s=>!!s)});t.common.issues.push(r)}let $t=class Dp{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return we;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return Dp.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return we;o.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:e.value,value:r}}};const we=Object.freeze({status:"aborted"}),Jr=t=>({status:"dirty",value:t}),kt=t=>({status:"valid",value:t}),pa=t=>t.status==="aborted",ha=t=>t.status==="dirty",vs=t=>t.status==="valid",gs=t=>typeof Promise<"u"&&t instanceof Promise;function Mo(t,e,n,r){if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function mc(t,e,n,r,s){if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}typeof SuppressedError=="function"&&SuppressedError;var le;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(le||(le={}));var ys,_s;let nn=class{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}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 vc=(t,e)=>{if(vs(e))return{success:!0,data:e.value};if(!t.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 zt(t.common.issues);return this._error=n,this._error}}};function Te(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,a)=>{var l,c;const{message:u}=t;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:s}}let $e=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,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(e){return Zn(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Zn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new $t,ctx:{common:e.parent.common,data:e.data,parsedType:Zn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(gs(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={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:e,parsedType:Zn(e)},o=this._parseSync({data:e,path:s.path,parent:s});return vc(s,o)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,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:e,parsedType:Zn(e)},s=this._parse({data:e,path:r.path,parent:r}),o=await(gs(s)?s:Promise.resolve(s));return vc(r,o)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=e(s),a=()=>o.addIssue({code:Z.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new qt({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return rn.create(this,this._def)}nullable(){return Fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _r.create(this,this._def)}promise(){return es.create(this,this._def)}or(e){return Ns.create([this,e],this._def)}and(e){return Ss.create(this,e,this._def)}transform(e){return new qt({...Te(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Is({...Te(this._def),innerType:this,defaultValue:n,typeName:ye.ZodDefault})}brand(){return new ga({typeName:ye.ZodBranded,type:this,...Te(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new As({...Te(this._def),innerType:this,catchValue:n,typeName:ye.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return ya.create(this,e)}readonly(){return Ds.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const Bp=/^c[^\s-]{8,}$/i,Fp=/^[0-9a-z]+$/,Hp=/^[0-9A-HJKMNP-TV-Z]{26}$/,zp=/^[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,qp=/^[a-z0-9_-]{21}$/i,Wp=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Kp=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ma;const Jp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yp=/^(([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})))$/,Xp=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gc="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Qp=new RegExp(`^${gc}$`);function yc(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function eh(t){return new RegExp(`^${yc(t)}$`)}function _c(t){let e=`${gc}T${yc(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function th(t,e){return!!((e==="v4"||!e)&&Jp.test(t)||(e==="v6"||!e)&&Yp.test(t))}let Yr=class Vo extends $e{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==re.string){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.string,received:o.parsedType}),we}const r=new $t;let s;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")e.data.length>o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=e.data.length>o.value,a=e.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(e,s),i?te(s,{code:Z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&te(s,{code:Z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Kp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"email",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")ma||(ma=new RegExp(Gp,"u")),ma.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"emoji",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")zp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"uuid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")qp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"nanoid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Bp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"cuid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Fp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"cuid2",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Hp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"ulid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),te(s,{validation:"url",code:Z.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"regex",code:Z.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?_c(o).test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Qp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?eh(o).test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Wp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"duration",code:Z.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?th(e.data,o.version)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"ip",code:Z.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Xp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"base64",code:Z.invalid_string,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:Z.invalid_string,...le.errToObj(r)})}_addCheck(e){return new Vo({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...le.errToObj(e)})}url(e){return this._addCheck({kind:"url",...le.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...le.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...le.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...le.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...le.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...le.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...le.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...le.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...le.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(r=e==null?void 0:e.local)!==null&&r!==void 0?r:!1,...le.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...le.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...le.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...le.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...le.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...le.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...le.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...le.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...le.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...le.errToObj(n)})}nonempty(e){return this.min(1,le.errToObj(e))}trim(){return new Vo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Vo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Vo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};Yr.create=t=>{var e;return new Yr({checks:[],typeName:ye.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Te(t)})};function nh(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,o=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return o%i/Math.pow(10,s)}let bs=class cc extends $e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==re.number){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.number,received:o.parsedType}),we}let r;const s=new $t;for(const o of this._def.checks)o.kind==="int"?xe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),te(r,{code:Z.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?nh(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),te(r,{code:Z.not_finite,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,le.toString(n))}gt(e,n){return this.setLimit("min",e,!1,le.toString(n))}lte(e,n){return this.setLimit("max",e,!0,le.toString(n))}lt(e,n){return this.setLimit("max",e,!1,le.toString(n))}setLimit(e,n,r,s){return new cc({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:le.toString(s)}]})}_addCheck(e){return new cc({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:le.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:le.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:le.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&xe.isInteger(e.value))}get isFinite(){let e=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"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}};bs.create=t=>new bs({checks:[],typeName:ye.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Te(t)});let ws=class uc extends $e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==re.bigint){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.bigint,received:o.parsedType}),we}let r;const s=new $t;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,le.toString(n))}gt(e,n){return this.setLimit("min",e,!1,le.toString(n))}lte(e,n){return this.setLimit("max",e,!0,le.toString(n))}lt(e,n){return this.setLimit("max",e,!1,le.toString(n))}setLimit(e,n,r,s){return new uc({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:le.toString(s)}]})}_addCheck(e){return new uc({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:le.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};ws.create=t=>{var e;return new ws({checks:[],typeName:ye.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Te(t)})};let Es=class extends $e{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==re.boolean){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.boolean,received:r.parsedType}),we}return kt(e.data)}};Es.create=t=>new Es({typeName:ye.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Te(t)});let xs=class Vp extends $e{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==re.date){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.date,received:o.parsedType}),we}if(isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_date}),we}const r=new $t;let s;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):xe.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Vp({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:le.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:le.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};xs.create=t=>new xs({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ye.ZodDate,...Te(t)});let Uo=class extends $e{_parse(e){if(this._getType(e)!==re.symbol){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.symbol,received:r.parsedType}),we}return kt(e.data)}};Uo.create=t=>new Uo({typeName:ye.ZodSymbol,...Te(t)});let ks=class extends $e{_parse(e){if(this._getType(e)!==re.undefined){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.undefined,received:r.parsedType}),we}return kt(e.data)}};ks.create=t=>new ks({typeName:ye.ZodUndefined,...Te(t)});let Os=class extends $e{_parse(e){if(this._getType(e)!==re.null){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.null,received:r.parsedType}),we}return kt(e.data)}};Os.create=t=>new Os({typeName:ye.ZodNull,...Te(t)});let Xr=class extends $e{constructor(){super(...arguments),this._any=!0}_parse(e){return kt(e.data)}};Xr.create=t=>new Xr({typeName:ye.ZodAny,...Te(t)});let yr=class extends $e{constructor(){super(...arguments),this._unknown=!0}_parse(e){return kt(e.data)}};yr.create=t=>new yr({typeName:ye.ZodUnknown,...Te(t)});let bn=class extends $e{_parse(e){const n=this._getOrReturnCtx(e);return te(n,{code:Z.invalid_type,expected:re.never,received:n.parsedType}),we}};bn.create=t=>new bn({typeName:ye.ZodNever,...Te(t)});let Zo=class extends $e{_parse(e){if(this._getType(e)!==re.undefined){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.void,received:r.parsedType}),we}return kt(e.data)}};Zo.create=t=>new Zo({typeName:ye.ZodVoid,...Te(t)});let _r=class da extends $e{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==re.array)return te(n,{code:Z.invalid_type,expected:re.array,received:n.parsedType}),we;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(te(n,{code:i?Z.too_big:Z.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(te(n,{code:Z.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(te(n,{code:Z.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new nn(n,i,n.path,a)))).then(i=>$t.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new nn(n,i,n.path,a)));return $t.mergeArray(r,o)}get element(){return this._def.type}min(e,n){return new da({...this._def,minLength:{value:e,message:le.toString(n)}})}max(e,n){return new da({...this._def,maxLength:{value:e,message:le.toString(n)}})}length(e,n){return new da({...this._def,exactLength:{value:e,message:le.toString(n)}})}nonempty(e){return this.min(1,e)}};_r.create=(t,e)=>new _r({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,...Te(e)});function Qr(t){if(t instanceof Mt){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=rn.create(Qr(r))}return new Mt({...t._def,shape:()=>e})}else return t instanceof _r?new _r({...t._def,type:Qr(t.element)}):t instanceof rn?rn.create(Qr(t.unwrap())):t instanceof Fn?Fn.create(Qr(t.unwrap())):t instanceof Bn?Bn.create(t.items.map(e=>Qr(e))):t}let Mt=class tn extends $e{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=xe.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==re.object){const c=this._getOrReturnCtx(e);return te(c,{code:Z.invalid_type,expected:re.object,received:c.parsedType}),we}const{status:r,ctx:s}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof bn&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=o[c],d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new nn(s,d,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof bn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&(te(s,{code:Z.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new nn(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>$t.mergeObjectSync(r,c)):$t.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return le.errToObj,new tn({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,o,i,a;const l=(i=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=le.errToObj(e).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new tn({...this._def,unknownKeys:"strip"})}passthrough(){return new tn({...this._def,unknownKeys:"passthrough"})}extend(e){return new tn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new tn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ye.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new tn({...this._def,catchall:e})}pick(e){const n={};return xe.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new tn({...this._def,shape:()=>n})}omit(e){const n={};return xe.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new tn({...this._def,shape:()=>n})}deepPartial(){return Qr(this)}partial(e){const n={};return xe.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new tn({...this._def,shape:()=>n})}required(e){const n={};return xe.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof rn;)o=o._def.innerType;n[r]=o}}),new tn({...this._def,shape:()=>n})}keyof(){return xc(xe.objectKeys(this.shape))}};Mt.create=(t,e)=>new Mt({shape:()=>t,unknownKeys:"strip",catchall:bn.create(),typeName:ye.ZodObject,...Te(e)}),Mt.strictCreate=(t,e)=>new Mt({shape:()=>t,unknownKeys:"strict",catchall:bn.create(),typeName:ye.ZodObject,...Te(e)}),Mt.lazycreate=(t,e)=>new Mt({shape:t,unknownKeys:"strip",catchall:bn.create(),typeName:ye.ZodObject,...Te(e)});let Ns=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new zt(a.ctx.common.issues));return te(n,{code:Z.invalid_union,unionErrors:i}),we}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new zt(l));return te(n,{code:Z.invalid_union,unionErrors:a}),we}}get options(){return this._def.options}};Ns.create=(t,e)=>new Ns({options:t,typeName:ye.ZodUnion,...Te(e)});const wn=t=>t instanceof Ts?wn(t.schema):t instanceof qt?wn(t.innerType()):t instanceof Cs?[t.value]:t instanceof $s?t.options:t instanceof Ps?xe.objectValues(t.enum):t instanceof Is?wn(t._def.innerType):t instanceof ks?[void 0]:t instanceof Os?[null]:t instanceof rn?[void 0,...wn(t.unwrap())]:t instanceof Fn?[null,...wn(t.unwrap())]:t instanceof ga||t instanceof Ds?wn(t.unwrap()):t instanceof As?wn(t._def.innerType):[];let bc=class Rp extends $e{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==re.object)return te(n,{code:Z.invalid_type,expected:re.object,received:n.parsedType}),we;const r=this.discriminator,s=n.data[r],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const o of n){const i=wn(o.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of i){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,o)}}return new Rp({typeName:ye.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...Te(r)})}};function va(t,e){const n=Zn(t),r=Zn(e);if(t===e)return{valid:!0,data:t};if(n===re.object&&r===re.object){const s=xe.objectKeys(e),o=xe.objectKeys(t).filter(a=>s.indexOf(a)!==-1),i={...t,...e};for(const a of o){const l=va(t[a],e[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===re.array&&r===re.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let o=0;o<t.length;o++){const i=t[o],a=e[o],l=va(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===re.date&&r===re.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}let Ss=class extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(o,i)=>{if(pa(o)||pa(i))return we;const a=va(o.value,i.value);return a.valid?((ha(o)||ha(i))&&n.dirty(),{status:n.value,value:a.data}):(te(r,{code:Z.invalid_intersection_types}),we)};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(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Ss.create=(t,e,n)=>new Ss({left:t,right:e,typeName:ye.ZodIntersection,...Te(n)});let Bn=class jp extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.array)return te(r,{code:Z.invalid_type,expected:re.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return te(r,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(te(r,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new nn(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>$t.mergeArray(n,i)):$t.mergeArray(n,o)}get items(){return this._def.items}rest(e){return new jp({...this._def,rest:e})}};Bn.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bn({items:t,typeName:ye.ZodTuple,rest:null,...Te(e)})};let wc=class dc extends $e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.object)return te(r,{code:Z.invalid_type,expected:re.object,received:r.parsedType}),we;const s=[],o=this._def.keyType,i=this._def.valueType;for(const a in r.data)s.push({key:o._parse(new nn(r,a,r.path,a)),value:i._parse(new nn(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?$t.mergeObjectAsync(n,s):$t.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof $e?new dc({keyType:e,valueType:n,typeName:ye.ZodRecord,...Te(r)}):new dc({keyType:Yr.create(),valueType:e,typeName:ye.ZodRecord,...Te(n)})}},Bo=class extends $e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.map)return te(r,{code:Z.invalid_type,expected:re.map,received:r.parsedType}),we;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new nn(r,a,r.path,[c,"key"])),value:o._parse(new nn(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return we;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return we;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}};Bo.create=(t,e,n)=>new Bo({valueType:e,keyType:t,typeName:ye.ZodMap,...Te(n)});let Fo=class fc extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.set)return te(r,{code:Z.invalid_type,expected:re.set,received:r.parsedType}),we;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(te(r,{code:Z.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(te(r,{code:Z.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return we;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new nn(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(e,n){return new fc({...this._def,minSize:{value:e,message:le.toString(n)}})}max(e,n){return new fc({...this._def,maxSize:{value:e,message:le.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};Fo.create=(t,e)=>new Fo({valueType:t,minSize:null,maxSize:null,typeName:ye.ZodSet,...Te(e)});let Ec=class fa extends $e{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==re.function)return te(n,{code:Z.invalid_type,expected:re.function,received:n.parsedType}),we;function r(a,l){return Lo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),Gr].filter(c=>!!c),issueData:{code:Z.invalid_arguments,argumentsError:l}})}function s(a,l){return Lo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),Gr].filter(c=>!!c),issueData:{code:Z.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof es){const a=this;return kt(async function(...l){const c=new zt([]),u=await a._def.args.parseAsync(l,o).catch(m=>{throw c.addIssue(r(l,m)),c}),d=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(d,o).catch(m=>{throw c.addIssue(s(d,m)),c})})}else{const a=this;return kt(function(...l){const c=a._def.args.safeParse(l,o);if(!c.success)throw new zt([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),d=a._def.returns.safeParse(u,o);if(!d.success)throw new zt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new fa({...this._def,args:Bn.create(e).rest(yr.create())})}returns(e){return new fa({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new fa({args:e||Bn.create([]).rest(yr.create()),returns:n||yr.create(),typeName:ye.ZodFunction,...Te(r)})}},Ts=class extends $e{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ts.create=(t,e)=>new Ts({getter:t,typeName:ye.ZodLazy,...Te(e)});let Cs=class extends $e{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return te(n,{received:n.data,code:Z.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:e.data}}get value(){return this._def.value}};Cs.create=(t,e)=>new Cs({value:t,typeName:ye.ZodLiteral,...Te(e)});function xc(t,e){return new $s({values:t,typeName:ye.ZodEnum,...Te(e)})}let $s=class pc extends $e{constructor(){super(...arguments),ys.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return te(n,{expected:xe.joinValues(r),received:n.parsedType,code:Z.invalid_type}),we}if(Mo(this,ys)||mc(this,ys,new Set(this._def.values)),!Mo(this,ys).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return te(n,{received:n.data,code:Z.invalid_enum_value,options:r}),we}return kt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return pc.create(e,{...this._def,...n})}exclude(e,n=this._def){return pc.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};ys=new WeakMap,$s.create=xc;let Ps=class extends $e{constructor(){super(...arguments),_s.set(this,void 0)}_parse(e){const n=xe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==re.string&&r.parsedType!==re.number){const s=xe.objectValues(n);return te(r,{expected:xe.joinValues(s),received:r.parsedType,code:Z.invalid_type}),we}if(Mo(this,_s)||mc(this,_s,new Set(xe.getValidEnumValues(this._def.values))),!Mo(this,_s).has(e.data)){const s=xe.objectValues(n);return te(r,{received:r.data,code:Z.invalid_enum_value,options:s}),we}return kt(e.data)}get enum(){return this._def.values}};_s=new WeakMap,Ps.create=(t,e)=>new Ps({values:t,typeName:ye.ZodNativeEnum,...Te(e)});let es=class extends $e{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==re.promise&&n.common.async===!1)return te(n,{code:Z.invalid_type,expected:re.promise,received:n.parsedType}),we;const r=n.parsedType===re.promise?n.data:Promise.resolve(n.data);return kt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}};es.create=(t,e)=>new es({type:t,typeName:ye.ZodPromise,...Te(e)});let qt=class extends $e{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,o={addIssue:i=>{te(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return we;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?we:l.status==="dirty"||n.value==="dirty"?Jr(l.value):l});{if(n.value==="aborted")return we;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"||n.value==="dirty"?Jr(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);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"?we:(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"?we:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!vs(i))return i;const a=s.transform(i.value,o);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=>vs(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):i);xe.assertNever(s)}};qt.create=(t,e,n)=>new qt({schema:t,typeName:ye.ZodEffects,effect:e,...Te(n)}),qt.createWithPreprocess=(t,e,n)=>new qt({schema:e,effect:{type:"preprocess",transform:t},typeName:ye.ZodEffects,...Te(n)});let rn=class extends $e{_parse(e){return this._getType(e)===re.undefined?kt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};rn.create=(t,e)=>new rn({innerType:t,typeName:ye.ZodOptional,...Te(e)});let Fn=class extends $e{_parse(e){return this._getType(e)===re.null?kt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Fn.create=(t,e)=>new Fn({innerType:t,typeName:ye.ZodNullable,...Te(e)});let Is=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===re.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Is.create=(t,e)=>new Is({innerType:t,typeName:ye.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Te(e)});let As=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return gs(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new zt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new zt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};As.create=(t,e)=>new As({innerType:t,typeName:ye.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Te(e)});let Ho=class extends $e{_parse(e){if(this._getType(e)!==re.nan){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.nan,received:r.parsedType}),we}return{status:"valid",value:e.data}}};Ho.create=t=>new Ho({typeName:ye.ZodNaN,...Te(t)});const rh=Symbol("zod_brand");let ga=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},ya=class Lp extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?we:o.status==="dirty"?(n.dirty(),Jr(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Lp({in:e,out:n,typeName:ye.ZodPipeline})}},Ds=class extends $e{_parse(e){const n=this._def.innerType._parse(e),r=s=>(vs(s)&&(s.value=Object.freeze(s.value)),s);return gs(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}};Ds.create=(t,e)=>new Ds({innerType:t,typeName:ye.ZodReadonly,...Te(e)});function kc(t,e={},n){return t?Xr.create().superRefine((r,s)=>{var o,i;if(!t(r)){const a=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,l=(i=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...c,fatal:l})}}):Xr.create()}const sh={object:Mt.lazycreate};var ye;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ye||(ye={}));const oh=(t,e={message:`Input not instance of ${t.name}`})=>kc(n=>n instanceof t,e),Oc=Yr.create,Nc=bs.create,ih=Ho.create,ah=ws.create,Sc=Es.create,lh=xs.create,ch=Uo.create,uh=ks.create,dh=Os.create,fh=Xr.create,ph=yr.create,hh=bn.create,mh=Zo.create,vh=_r.create,gh=Mt.create,yh=Mt.strictCreate,_h=Ns.create,bh=bc.create,wh=Ss.create,Eh=Bn.create,xh=wc.create,kh=Bo.create,Oh=Fo.create,Nh=Ec.create,Sh=Ts.create,Th=Cs.create,Ch=$s.create,$h=Ps.create,Ph=es.create,Tc=qt.create,Ih=rn.create,Ah=Fn.create,Dh=qt.createWithPreprocess,Vh=ya.create;var y=Object.freeze({__proto__:null,defaultErrorMap:Gr,setErrorMap:Up,getErrorMap:jo,makeIssue:Lo,EMPTY_PATH:Zp,addIssueToContext:te,ParseStatus:$t,INVALID:we,DIRTY:Jr,OK:kt,isAborted:pa,isDirty:ha,isValid:vs,isAsync:gs,get util(){return xe},get objectUtil(){return Un},ZodParsedType:re,getParsedType:Zn,ZodType:$e,datetimeRegex:_c,ZodString:Yr,ZodNumber:bs,ZodBigInt:ws,ZodBoolean:Es,ZodDate:xs,ZodSymbol:Uo,ZodUndefined:ks,ZodNull:Os,ZodAny:Xr,ZodUnknown:yr,ZodNever:bn,ZodVoid:Zo,ZodArray:_r,ZodObject:Mt,ZodUnion:Ns,ZodDiscriminatedUnion:bc,ZodIntersection:Ss,ZodTuple:Bn,ZodRecord:wc,ZodMap:Bo,ZodSet:Fo,ZodFunction:Ec,ZodLazy:Ts,ZodLiteral:Cs,ZodEnum:$s,ZodNativeEnum:Ps,ZodPromise:es,ZodEffects:qt,ZodTransformer:qt,ZodOptional:rn,ZodNullable:Fn,ZodDefault:Is,ZodCatch:As,ZodNaN:Ho,BRAND:rh,ZodBranded:ga,ZodPipeline:ya,ZodReadonly:Ds,custom:kc,Schema:$e,ZodSchema:$e,late:sh,get ZodFirstPartyTypeKind(){return ye},coerce:{string:t=>Yr.create({...t,coerce:!0}),number:t=>bs.create({...t,coerce:!0}),boolean:t=>Es.create({...t,coerce:!0}),bigint:t=>ws.create({...t,coerce:!0}),date:t=>xs.create({...t,coerce:!0})},any:fh,array:vh,bigint:ah,boolean:Sc,date:lh,discriminatedUnion:bh,effect:Tc,enum:Ch,function:Nh,instanceof:oh,intersection:wh,lazy:Sh,literal:Th,map:kh,nan:ih,nativeEnum:$h,never:hh,null:dh,nullable:Ah,number:Nc,object:gh,oboolean:()=>Sc().optional(),onumber:()=>Nc().optional(),optional:Ih,ostring:()=>Oc().optional(),pipeline:Vh,preprocess:Dh,promise:Ph,record:xh,set:Oh,strictObject:yh,string:Oc,symbol:ch,transformer:Tc,tuple:Eh,undefined:uh,union:_h,unknown:ph,void:mh,NEVER:we,ZodIssueCode:Z,quotelessJson:Mp,ZodError:zt}),Cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _a={exports:{}};(function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Cc<"u"&&Cc,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function c(w){return w&&DataView.prototype.isPrototypeOf(w)}if(l.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(w){return w&&u.indexOf(Object.prototype.toString.call(w))>-1};function f(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(w)||w==="")throw new TypeError('Invalid character in header field name: "'+w+'"');return w.toLowerCase()}function m(w){return typeof w!="string"&&(w=String(w)),w}function _(w){var $={next:function(){var Q=w.shift();return{done:Q===void 0,value:Q}}};return l.iterable&&($[Symbol.iterator]=function(){return $}),$}function E(w){this.map={},w instanceof E?w.forEach(function($,Q){this.append(Q,$)},this):Array.isArray(w)?w.forEach(function($){this.append($[0],$[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function($){this.append($,w[$])},this)}E.prototype.append=function(w,$){w=f(w),$=m($);var Q=this.map[w];this.map[w]=Q?Q+", "+$:$},E.prototype.delete=function(w){delete this.map[f(w)]},E.prototype.get=function(w){return w=f(w),this.has(w)?this.map[w]:null},E.prototype.has=function(w){return this.map.hasOwnProperty(f(w))},E.prototype.set=function(w,$){this.map[f(w)]=m($)},E.prototype.forEach=function(w,$){for(var Q in this.map)this.map.hasOwnProperty(Q)&&w.call($,this.map[Q],Q,this)},E.prototype.keys=function(){var w=[];return this.forEach(function($,Q){w.push(Q)}),_(w)},E.prototype.values=function(){var w=[];return this.forEach(function($){w.push($)}),_(w)},E.prototype.entries=function(){var w=[];return this.forEach(function($,Q){w.push([Q,$])}),_(w)},l.iterable&&(E.prototype[Symbol.iterator]=E.prototype.entries);function k(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function A(w){return new Promise(function($,Q){w.onload=function(){$(w.result)},w.onerror=function(){Q(w.error)}})}function B(w){var $=new FileReader,Q=A($);return $.readAsArrayBuffer(w),Q}function T(w){var $=new FileReader,Q=A($);return $.readAsText(w),Q}function J(w){for(var $=new Uint8Array(w),Q=new Array($.length),oe=0;oe<$.length;oe++)Q[oe]=String.fromCharCode($[oe]);return Q.join("")}function P(w){if(w.slice)return w.slice(0);var $=new Uint8Array(w.byteLength);return $.set(new Uint8Array(w)),$.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(w){this.bodyUsed=this.bodyUsed,this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:l.blob&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:l.formData&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():l.arrayBuffer&&l.blob&&c(w)?(this._bodyArrayBuffer=P(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(w)||d(w))?this._bodyArrayBuffer=P(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):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var w=k(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(){if(this._bodyArrayBuffer){var w=k(this);return w||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(B)}),this.text=function(){var w=k(this);if(w)return w;if(this._bodyBlob)return T(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(J(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var N=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Oe(w){var $=w.toUpperCase();return N.indexOf($)>-1?$:w}function K(w,$){if(!(this instanceof K))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');$=$||{};var Q=$.body;if(w instanceof K){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,$.headers||(this.headers=new E(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!Q&&w._bodyInit!=null&&(Q=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=$.credentials||this.credentials||"same-origin",($.headers||!this.headers)&&(this.headers=new E($.headers)),this.method=Oe($.method||this.method||"GET"),this.mode=$.mode||this.mode||null,this.signal=$.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Q)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Q),(this.method==="GET"||this.method==="HEAD")&&($.cache==="no-store"||$.cache==="no-cache")){var oe=/([?&])_=[^&]*/;if(oe.test(this.url))this.url=this.url.replace(oe,"$1_="+new Date().getTime());else{var be=/\?/;this.url+=(be.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}K.prototype.clone=function(){return new K(this,{body:this._bodyInit})};function R(w){var $=new FormData;return w.trim().split("&").forEach(function(Q){if(Q){var oe=Q.split("="),be=oe.shift().replace(/\+/g," "),ae=oe.join("=").replace(/\+/g," ");$.append(decodeURIComponent(be),decodeURIComponent(ae))}}),$}function V(w){var $=new E,Q=w.replace(/\r?\n[\t ]+/g," ");return Q.split("\r").map(function(oe){return oe.indexOf(`
|
|
3
|
-
`)===0?oe.substr(1,oe.length):oe}).forEach(function(oe){var be=oe.split(":"),ae=be.shift().trim();if(ae){var We=be.join(":").trim();$.append(ae,We)}}),$}z.call(K.prototype);function I(w,$){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');$||($={}),this.type="default",this.status=$.status===void 0?200:$.status,this.ok=this.status>=200&&this.status<300,this.statusText=$.statusText===void 0?"":""+$.statusText,this.headers=new E($.headers),this.url=$.url||"",this._initBody(w)}z.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new E(this.headers),url:this.url})},I.error=function(){var w=new I(null,{status:0,statusText:""});return w.type="error",w};var ce=[301,302,303,307,308];I.redirect=function(w,$){if(ce.indexOf($)===-1)throw new RangeError("Invalid status code");return new I(null,{status:$,headers:{location:w}})},i.DOMException=a.DOMException;try{new i.DOMException}catch{i.DOMException=function($,Q){this.message=$,this.name=Q;var oe=Error($);this.stack=oe.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function Ze(w,$){return new Promise(function(Q,oe){var be=new K(w,$);if(be.signal&&be.signal.aborted)return oe(new i.DOMException("Aborted","AbortError"));var ae=new XMLHttpRequest;function We(){ae.abort()}ae.onload=function(){var Ke={status:ae.status,statusText:ae.statusText,headers:V(ae.getAllResponseHeaders()||"")};Ke.url="responseURL"in ae?ae.responseURL:Ke.headers.get("X-Request-URL");var At="response"in ae?ae.response:ae.responseText;setTimeout(function(){Q(new I(At,Ke))},0)},ae.onerror=function(){setTimeout(function(){oe(new TypeError("Network request failed"))},0)},ae.ontimeout=function(){setTimeout(function(){oe(new TypeError("Network request failed"))},0)},ae.onabort=function(){setTimeout(function(){oe(new i.DOMException("Aborted","AbortError"))},0)};function xt(Ke){try{return Ke===""&&a.location.href?a.location.href:Ke}catch{return Ke}}ae.open(be.method,xt(be.url),!0),be.credentials==="include"?ae.withCredentials=!0:be.credentials==="omit"&&(ae.withCredentials=!1),"responseType"in ae&&(l.blob?ae.responseType="blob":l.arrayBuffer&&be.headers.get("Content-Type")&&be.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ae.responseType="arraybuffer")),$&&typeof $.headers=="object"&&!($.headers instanceof E)?Object.getOwnPropertyNames($.headers).forEach(function(Ke){ae.setRequestHeader(Ke,m($.headers[Ke]))}):be.headers.forEach(function(Ke,At){ae.setRequestHeader(At,Ke)}),be.signal&&(be.signal.addEventListener("abort",We),ae.onreadystatechange=function(){ae.readyState===4&&be.signal.removeEventListener("abort",We)}),ae.send(typeof be._bodyInit>"u"?null:be._bodyInit)})}return Ze.polyfill=!0,a.fetch||(a.fetch=Ze,a.Headers=E,a.Request=K,a.Response=I),i.Headers=E,i.Request=K,i.Response=I,i.fetch=Ze,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;e=s.fetch,e.default=s.fetch,e.fetch=s.fetch,e.Headers=s.Headers,e.Request=s.Request,e.Response=s.Response,t.exports=e})(_a,_a.exports);var jh=_a.exports;const zo=Rh(jh);var ts=y.record(y.number()),Lh=y.object({type:y.literal("PercentageOffDiscount"),name:y.string(),description:y.string().optional(),percentage:y.number(),total:ts.optional(),isExclusive:y.boolean()}),Mh=y.object({type:y.literal("FlatAmountOffDiscount"),name:y.string(),description:y.string().optional(),total:ts.optional(),isExclusive:y.boolean()}),ba=y.discriminatedUnion("type",[Lh,Mh]),ns=y.object({id:y.string(),name:y.string(),originalPrice:ts,price:ts,hasDiscount:y.boolean(),discount:ba.optional()});function Vs(t){return y.object({items:y.array(t),hasMore:y.boolean(),next:y.string().nullable()})}function $c(t){return y.object({value:t,quantity:y.number()})}var sn=(t=>(t.Universal="Universal",t.Windows="Windows",t.Linux="Linux",t.Mac="Mac",t))(sn||{}),Pc=y.object({name:y.string(),key:y.string(),platform:y.nativeEnum(sn),size:y.number(),path:y.string().nullable()}),wa=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(),version:y.string().optional(),prerelease:y.boolean().optional(),downloadsNeedsUser:y.boolean(),downloadsNeedsOwnership:y.boolean(),downloads:y.array(Pc).optional()}),Rs=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:Pc.array().optional(),defaultVariation:ns.optional(),variations:ns.array().optional(),type:y.void().transform(()=>"product").pipe(y.literal("product"))}),Ea=y.object({id:y.string(),name:y.string(),tagline:y.string(),iconUrl:y.string().nullable(),owned:y.boolean(),partial:y.boolean(),products:Rs.and(y.object({included:y.boolean().optional()})).array(),defaultVariation:ns.optional(),variations:ns.array().optional(),type:y.void().transform(()=>"bundle").pipe(y.literal("bundle"))}),Uh=y.object({suggestedCurrency:y.string(),products:Rs.array(),bundles:Ea.array()}),on=(t=>(t.Requested="Requested",t.Fulfilled="Fulfilled",t.Completed="Completed",t.Cancelled="Cancelled",t))(on||{}),qo=y.object({id:y.string(),status:y.nativeEnum(on),product:Rs,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()}),Zh=class{constructor(t){this.api=t}async get(t){const e=await this.api.fetch(`/api/customer/activations/${t}`);return qo.parse(e.data)}async isCompleted(t){const e=await this.api.fetch(`/api/customer/activations/${t}/completed`);return y.boolean().parse(e.data)}async fulfillLicense(t){const e=await this.api.authenticatedFetch(`/api/customer/activations/${t}/license`,"POST");return qo.parse(e.data)}async fulfillTrial(t){const e=await this.api.fetch(`/api/customer/activations/${t}/trial`,"POST");return qo.parse(e.data)}async cancel(t){const e=await this.api.fetch(`/api/customer/activations/${t}/cancel`,"POST");return qo.parse(e.data)}},Bh=class extends Error{constructor(){super(),this.name="NotAuthorizedError"}},xa=class extends Error{constructor(){super(),this.name="NotAuthenticatedError"}},rs=class extends Error{constructor(){super(),this.name="NotFoundError"}},Ic=class extends Error{constructor(t,e,n,r){super(),this.title=t,this.detail=e,this.status=n,this.errors=r,this.name="MoonbaseError",r&&Object.values(r).length===1?this.message=Object.values(r)[0]:this.message=e??t}},Fh=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 Hh(t){return t.split(".").map((e,n)=>{let[r,...s]=e;return r=n!==0?r.toUpperCase():r.toLowerCase(),s=[s.join("").toLowerCase()],r+s[0]}).join("")}async function ka(t){if(t.status===404)throw new rs;if(t.status===401)throw new xa;if(t.status===403)throw new Bh;let e;try{const n=await t.json();e=Fh.parse(n)}catch(n){throw console.error("Could not handle response",n),new Error("An unknown problem occurred")}throw new Ic(e.title,e.detail,e.status,e.errors?Object.fromEntries(Object.entries(e.errors).map(([n,r])=>[Hh(n),r.join(", ")])):void 0)}var Ac=y.object({countryCode:y.string(),streetAddress1:y.string(),streetAddress2:y.string().nullable(),locality:y.string().nullable(),region:y.string().nullable(),postCode:y.string()}),zh=y.object({newsletterOptIn:y.boolean()}),Dc=y.object({id:y.string(),email:y.string(),name:y.string(),tenantId:y.string(),address:Ac.optional(),communicationPreferences:zh,ownedProducts:y.string().array().optional()}),Oa=Dc.and(y.object({accessToken:y.string(),refreshToken:y.string()})),qh=y.object({id:y.string(),name:y.string(),email:y.string(),resetPasswordToken:y.string().nullable()}),Wh=class{constructor(t,e){this.api=t,this.tokenStore=e}async get(){const t=await this.api.authenticatedFetch("/api/customer/meta/user");return Dc.parse(t.data)}async signIn(t,e){const n=await zo(`${this.api.baseUrl}/api/customer/identity/sign-in?email=${t}&scheme=JWT`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:e});n.status>=400&&await ka(n);const r=await n.json(),s=Oa.parse(r);return this.tokenStore.setUser(s),s}async signUp(t,e,n,r,s,o,i){const a=await this.api.fetch(`/api/customer/identity/sign-up?scheme=JWT&communicationOptIn=${i?"true":"false"}`,"POST",{name:t,email:e,password:n,address:r,acceptedPrivacyPolicy:s,acceptedTermsAndConditions:o}),l=Oa.parse(a.data);return this.tokenStore.setUser(l),l}async update(t,e,n,r){return{needsEmailConfirmationToken:(await this.api.authenticatedFetch("/api/customer/identity","PATCH",{name:t,email:e,emailConfirmationToken:n,communicationPreferences:r})).status===201}}async setPassword(t,e){await this.api.authenticatedFetch("/api/customer/identity/set-password","POST",{currentPassword:t,newPassword:e})}async forgotPassword(t){await this.api.fetch(`/api/customer/identity/forgot-password?email=${encodeURIComponent(t)}`,"POST")}async resetPassword(t,e,n){const r=await zo(`${this.api.baseUrl}/api/customer/identity/reset-password?email=${encodeURIComponent(t)}&code=${encodeURIComponent(n.replaceAll(" ","+"))}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:e});r.status>=400&&await ka(r)}async confirmAccount(t,e){const n=await this.api.fetch(`/api/customer/identity/confirm-account?email=${encodeURIComponent(t)}&code=${encodeURIComponent(e.replaceAll(" ","+"))}`,"POST");return qh.parse(n.data)}async confirmEmail(t,e){await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(t)}&code=${encodeURIComponent(e.replaceAll(" ","+"))}`,"POST")}async confirmEmailChange(t,e){await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(t)}&code=${encodeURIComponent(e.replaceAll(" ","+"))}`,"POST")}},js=(t=>(t.Open="Open",t.PaymentProcessing="PaymentProcessing",t.Completed="Completed",t.Failed="Failed",t))(js||{}),Vc=y.object({code:y.string(),name:y.string(),description:y.string()}),Kh=y.object({id:y.string(),type:y.literal("Product"),productId:y.string(),quantity:y.number(),variationId:y.string(),price:ts.optional(),variation:ns.optional(),product:Rs.optional(),appliedDiscount:ba.optional()}),Gh=y.object({id:y.string(),type:y.literal("Bundle"),bundleId:y.string(),quantity:y.number(),variationId:y.string(),price:ts.optional(),variation:ns.optional(),bundle:Ea.optional(),appliedDiscount:ba.optional()}),Rc=y.discriminatedUnion("type",[Kh,Gh]),jc=y.object({id:y.string(),status:y.literal("Open"),currency:y.string(),items:Rc.array(),couponsApplied:Vc.array(),checkoutUrl:y.string().optional(),embeddedCheckoutUrl:y.string().optional()}),Ls=y.object({currency:y.string(),amount:y.number()}),Jh=y.object({original:Ls,discount:Ls,subtotal:Ls,taxes:Ls,due:Ls}),Yh=y.object({name:y.string().nullable(),businessName:y.string().nullable(),taxId:y.string().nullable(),email:y.string().nullable(),address:Ac.nullable()}),Xh=y.object({id:y.string(),status:y.literal("Completed"),currency:y.string(),customer:Yh,total:Jh,items:Rc.array(),couponsApplied:Vc.array()}),Qh=y.discriminatedUnion("status",[jc,Xh]),em=class{constructor(t){this.api=t}async get(t){const e=await this.api.fetch(`/api/customer/orders/${t}`);return Qh.parse(e.data)}async pushContent(t,e,n){const r={...Lc(n)};e&&(r.checkout="true",r.returnUrl=e.returnUrl);const s=await this.api.fetch(`/api/customer/orders/${t.id}?${new URLSearchParams(r).toString()}`,"PATCH",{currency:t.currency,items:t.items});return jc.parse(s.data)}};function Lc(t){return Object.entries({utm_source:t==null?void 0:t.source,utm_medium:t==null?void 0:t.medium,utm_campaign:t==null?void 0:t.campaign,utm_term:t==null?void 0:t.term,utm_content:t==null?void 0:t.content,utm_referrer:t==null?void 0:t.referrer}).filter(([e,n])=>n!==void 0).reduce((e,[n,r])=>({...e,[n]:r}),{})}var tm=class{constructor(t){this.api=t}async get(t){const e=new URLSearchParams(Lc(t)),n=await this.api.fetch(`/api/customer/storefront?${e.toString()}`);return Uh.parse(n.data)}},nm=class{constructor(t,e){this.baseUrl=t,this.tokenStore=e}async authenticatedFetch(t,e,n,r){if(!this.tokenStore.hasAccessToken)throw new xa;return await this.fetch(t,e,n,r)}async fetch(t,e,n,r){const s=await this.tokenStore.getAccessToken();r??(r="application/json");const o=await zo(this.baseUrl+t,{method:e||"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":r,...s?{Authorization:`Bearer ${s}`}:{},"x-mb-cors":"1"},body:n?r!=="application/json"?n:JSON.stringify(n):void 0});return o.status>=400&&await ka(o),{data:(Number(o.headers.get("Content-Length"))||0)>0?await o.json():null,headers:o.headers,status:o.status}}},Mc=class Ro{constructor(e){if(this.configuration=e,this.tokens=null,this.refreshTimeoutId=null,this.refreshPromise=null,typeof window<"u"){window.addEventListener("storage",r=>this.handleStorageUpdate(r));const n=localStorage.getItem(Ro.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 e,n,r;if(this.isExpired){if(this.refreshPromise){const o=await this.refreshPromise;return(e=o==null?void 0:o.accessToken)!=null?e:null}this.refreshPromise=this.refreshTokens();const s=await this.refreshPromise;return(n=s==null?void 0:s.accessToken)!=null?n:null}return((r=this.tokens)==null?void 0:r.accessToken)||null}setUser(e){return e===null?(this.tokens=null,typeof window<"u"&&localStorage&&localStorage.removeItem(Ro.storageKey),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),null):(this.tokens={...e,expiresAt:new Date(new Date().getTime()+15*60*1e3)},typeof window<"u"&&localStorage&&localStorage.setItem(Ro.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 e=await zo(`${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(e.status!==200){if(e.status===403||e.status===404)return this.setUser(null),null;throw new Ic("Unexpected result",`Could not refresh access token, status code ${e.status}`,e.status)}const n=Oa.parse(await e.json());return this.setUser(n)}handleStorageUpdate(e){switch(e.key){case Ro.storageKey:this.tokens=e.newValue?JSON.parse(e.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}}};Mc.storageKey="moonbase_auth";var rm=Mc,Uc=y.object({id:y.string(),name:y.string(),description:y.string(),code:y.string(),redeemed:y.boolean(),redeemsProducts:$c(Rs).array(),redeemsBundles:$c(Ea).array()}),sm=class{constructor(t){this.api=t}async peek(t){const e=await this.api.fetch(`/api/customer/vouchers?code=${encodeURIComponent(t)}`);return Uc.parse(e.data)}async redeem(t){const e=await this.api.authenticatedFetch(`/api/customer/vouchers/redeem?code=${encodeURIComponent(t)}`,"POST");return Uc.parse(e.data)}},Zc=(t=>(t.Active="Active",t.Revoked="Revoked",t))(Zc||{}),Bc=(t=>(t.Active="Active",t.Revoked="Revoked",t))(Bc||{}),Na=(t=>(t.Online="Online",t.Offline="Offline",t))(Na||{}),Sa=y.object({id:y.string(),status:y.nativeEnum(Zc),product:wa,activeNumberOfActivations:y.number(),maxNumberOfActivations:y.number(),createdAt:y.coerce.date()}),Fc=y.object({id:y.string(),licenseId:y.string(),name:y.string(),status:y.nativeEnum(Bc),activationMethod:y.nativeEnum(Na),lastValidatedAt:y.coerce.date().nullable()}),om=class{constructor(t){this.api=t}async activate(t,e){const n=await this.api.authenticatedFetch(`/api/customer/inventory/activate?method=${e}`,"POST",t,"text/plain");return{license:Sa.parse(n.data),url:y.string().parse(n.headers.get("location"))}}},im=class{constructor(t){this.api=t}async get(t){const e=await this.api.authenticatedFetch(t||"/api/customer/inventory/licenses");return Vs(Sa).parse(e.data)}async getActivations(t,e){const n=await this.api.authenticatedFetch(e||`/api/customer/inventory/licenses/${t}/activations`);return Vs(Fc).parse(n.data)}async revokeActivation(t,e){await this.api.authenticatedFetch(`/api/customer/inventory/licenses/${t}/activations/${e}/revoke`,"POST")}},am=class{constructor(t){this.api=t}async get(t,e){const n=await this.api.fetch(`/api/customer/inventory/products/${t}${e?`?version=${e}`:""}`);return wa.parse(n.data)}async getOwned(t){const e=await this.api.authenticatedFetch(t||"/api/customer/inventory/products");return Vs(wa).parse(e.data)}async getLicenses(t,e){const n=await this.api.authenticatedFetch(e||`/api/customer/inventory/products/${t}/licenses`);return Vs(Sa).parse(n.data)}async getActivations(t,e){const n=await this.api.authenticatedFetch(e||`/api/customer/inventory/products/${t}/licenses/activations`);return Vs(Fc).parse(n.data)}async getDownloadUrl(t){const e=new URL(t);e.searchParams.append("redirect","false");const n=await this.api.fetch(e.pathname+e.search);return y.object({location:y.string()}).parse(n.data).location}},lm=class{constructor(t){this.licenses=new im(t),this.products=new am(t),this.activation=new om(t)}},cm=class{constructor(t){this.configuration=t,this.configuration.endpoint=this.configuration.endpoint.replace(/\/$/,""),this.tokenStore=new rm(t);const e=new nm(this.configuration.endpoint,this.tokenStore);this.storefront=new tm(e),this.identity=new Wh(e,this.tokenStore),this.vouchers=new sm(e),this.orders=new em(e),this.inventory=new lm(e),this.activationRequests=new Zh(e)}},Hc={};/**
|
|
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 .moonbase\\:input label{display:block;font-size:14px;font-weight:500;line-height:20px;color:#374151}#moonbase .moonbase\\:input input{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 .moonbase\\:input input: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 .moonbase\\:input .moonbase\\:input-hint{margin-top:8px;font-size:14px;line-height:20px}#moonbase .moonbase\\:input .moonbase\\:input-hint[data-type=error]{color:var(--moonbase-input-error-color)}@keyframes moonbase\\:spin-687bcaf0{to{transform:rotate(360deg)}}#moonbase svg[data-v-687bcaf0]{animation:moonbase\\:spin-687bcaf0 1s linear infinite}#moonbase .moonbase\\:submit-button[data-v-1440b0cf]{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-1440b0cf][data-v-1440b0cf],#moonbase .moonbase\\:submit-button[data-v-1440b0cf][data-v-1440b0cf]:hover,#moonbase .moonbase\\:submit-button[data-v-1440b0cf][data-v-1440b0cf]:focus,#moonbase .moonbase\\:submit-button[data-v-1440b0cf][data-v-1440b0cf]: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-1440b0cf][data-v-1440b0cf]:hover{background-color:hsl(from var(--moonbase-button-background-color) h s calc(l - 5))}#moonbase .moonbase\\:submit-button[data-v-1440b0cf][data-v-1440b0cf]: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-1440b0cf][data-success][data-v-1440b0cf]{background-color:var(--moonbase-button-success-color)}#moonbase .moonbase\\:submit-button[data-v-1440b0cf][data-error][data-v-1440b0cf]{background-color:var(--moonbase-button-error-color)}#moonbase .moonbase\\:submit-button[data-v-1440b0cf] div[data-v-1440b0cf]{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-1440b0cf] div[data-v-1440b0cf][data-visible][data-v-1440b0cf]{width:20px;opacity:1}#moonbase .moonbase\\:submit-button[data-v-1440b0cf] div[data-v-1440b0cf] svg[data-v-1440b0cf]{height:20px;width:20px}#moonbase .moonbase\\:checkbox{display:flex;align-items:flex-start}#moonbase .moonbase\\:checkbox label{font-size:14px;font-weight:500;line-height:20px;color:#374151}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-container{display:flex;height:24px;align-items:center}#moonbase .moonbase\\:checkbox input{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 .moonbase\\:checkbox input: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 .moonbase\\:checkbox .moonbase\\:checkbox-description{margin-left:12px}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description label{font-size:14px;line-height:24px;font-weight:500;color:hsl(from var(--moonbase-text-color) h s calc(l + 5))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description p{font-size:14px;line-height:24px;color:hsl(from var(--moonbase-text-color) h s calc(l + 15))}#moonbase .moonbase\\:checkbox .moonbase\\:checkbox-description p[data-type=error]{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(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
(function(Dt,xe){typeof exports=="object"&&typeof module<"u"?xe(exports):typeof define=="function"&&define.amd?define(["exports"],xe):(Dt=typeof globalThis<"u"?globalThis:Dt||self,xe(Dt.Moonbase={}))})(this,function(Dt){"use strict";var ox=Object.defineProperty;var ix=(Dt,xe,Un)=>xe in Dt?ox(Dt,xe,{enumerable:!0,configurable:!0,writable:!0,value:Un}):Dt[xe]=Un;var Wr=(Dt,xe,Un)=>ix(Dt,typeof xe!="symbol"?xe+"":xe,Un);var xe;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(xe||(xe={}));var Un;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(Un||(Un={}));const re=xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zn=t=>{switch(typeof t){case"undefined":return re.undefined;case"string":return re.string;case"number":return isNaN(t)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(t)?re.array:t===null?re.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?re.promise:typeof Map<"u"&&t instanceof Map?re.map:typeof Set<"u"&&t instanceof Set?re.set:typeof Date<"u"&&t instanceof Date?re.date:re.object;default:return re.unknown}},Z=xe.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"]),Mp=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");let zt=class Ap extends Error{constructor(e){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=e}get errors(){return this.issues}format(e){const n=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(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 c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}static assert(e){if(!(e instanceof Ap))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};zt.create=t=>new zt(t);const Kr=(t,e)=>{let n;switch(t.code){case Z.invalid_type:t.received===re.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case Z.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,xe.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:n=`Unrecognized key(s) in object: ${xe.joinValues(t.keys,", ")}`;break;case Z.invalid_union:n="Invalid input";break;case Z.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${xe.joinValues(t.options)}`;break;case Z.invalid_enum_value:n=`Invalid enum value. Expected ${xe.joinValues(t.options)}, received '${t.received}'`;break;case Z.invalid_arguments:n="Invalid function arguments";break;case Z.invalid_return_type:n="Invalid function return type";break;case Z.invalid_date:n="Invalid date";break;case Z.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:xe.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case Z.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case Z.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case Z.custom:n="Invalid input";break;case Z.invalid_intersection_types:n="Intersection results could not be merged";break;case Z.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Z.not_finite:n="Number must be finite";break;default:n=e.defaultError,xe.assertNever(t)}return{message:n}};let hc=Kr;function Up(t){hc=t}function jo(){return hc}const Lo=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,o=[...n,...s.path||[]],i={...s,path:o};if(s.message!==void 0)return{...s,path:o,message:s.message};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:e,defaultError:a}).message;return{...s,path:o,message:a}},Zp=[];function te(t,e){const n=jo(),r=Lo({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===Kr?void 0:Kr].filter(s=>!!s)});t.common.issues.push(r)}let $t=class Dp{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return we;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const o=await s.key,i=await s.value;r.push({key:o,value:i})}return Dp.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return we;o.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:e.value,value:r}}};const we=Object.freeze({status:"aborted"}),Gr=t=>({status:"dirty",value:t}),kt=t=>({status:"valid",value:t}),pa=t=>t.status==="aborted",ha=t=>t.status==="dirty",vs=t=>t.status==="valid",gs=t=>typeof Promise<"u"&&t instanceof Promise;function Mo(t,e,n,r){if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function mc(t,e,n,r,s){if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}typeof SuppressedError=="function"&&SuppressedError;var le;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(le||(le={}));var ys,_s;let nn=class{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}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 vc=(t,e)=>{if(vs(e))return{success:!0,data:e.value};if(!t.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 zt(t.common.issues);return this._error=n,this._error}}};function Te(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,a)=>{var l,c;const{message:u}=t;return i.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??r)!==null&&l!==void 0?l:a.defaultError}:i.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??n)!==null&&c!==void 0?c:a.defaultError}},description:s}}let $e=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,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(e){return Zn(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Zn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new $t,ctx:{common:e.parent.common,data:e.data,parsedType:Zn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(gs(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={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:e,parsedType:Zn(e)},o=this._parseSync({data:e,path:s.path,parent:s});return vc(s,o)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,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:e,parsedType:Zn(e)},s=this._parse({data:e,path:r.path,parent:r}),o=await(gs(s)?s:Promise.resolve(s));return vc(r,o)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=e(s),a=()=>o.addIssue({code:Z.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new qt({schema:this,typeName:ye.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return rn.create(this,this._def)}nullable(){return Fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return yr.create(this,this._def)}promise(){return Qr.create(this,this._def)}or(e){return Ns.create([this,e],this._def)}and(e){return Ss.create(this,e,this._def)}transform(e){return new qt({...Te(this._def),schema:this,typeName:ye.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Is({...Te(this._def),innerType:this,defaultValue:n,typeName:ye.ZodDefault})}brand(){return new ga({typeName:ye.ZodBranded,type:this,...Te(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new As({...Te(this._def),innerType:this,catchValue:n,typeName:ye.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return ya.create(this,e)}readonly(){return Ds.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const Bp=/^c[^\s-]{8,}$/i,Fp=/^[0-9a-z]+$/,Hp=/^[0-9A-HJKMNP-TV-Z]{26}$/,zp=/^[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,qp=/^[a-z0-9_-]{21}$/i,Wp=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Kp=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gp="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ma;const Jp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yp=/^(([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})))$/,Xp=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gc="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Qp=new RegExp(`^${gc}$`);function yc(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function eh(t){return new RegExp(`^${yc(t)}$`)}function _c(t){let e=`${gc}T${yc(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function th(t,e){return!!((e==="v4"||!e)&&Jp.test(t)||(e==="v6"||!e)&&Yp.test(t))}let Jr=class Vo extends $e{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==re.string){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.string,received:o.parsedType}),we}const r=new $t;let s;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")e.data.length>o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=e.data.length>o.value,a=e.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(e,s),i?te(s,{code:Z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&te(s,{code:Z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Kp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"email",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")ma||(ma=new RegExp(Gp,"u")),ma.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"emoji",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")zp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"uuid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")qp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"nanoid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Bp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"cuid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Fp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"cuid2",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Hp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"ulid",code:Z.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),te(s,{validation:"url",code:Z.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"regex",code:Z.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?_c(o).test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Qp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?eh(o).test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{code:Z.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?Wp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"duration",code:Z.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?th(e.data,o.version)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"ip",code:Z.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Xp.test(e.data)||(s=this._getOrReturnCtx(e,s),te(s,{validation:"base64",code:Z.invalid_string,message:o.message}),r.dirty()):xe.assertNever(o);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:Z.invalid_string,...le.errToObj(r)})}_addCheck(e){return new Vo({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...le.errToObj(e)})}url(e){return this._addCheck({kind:"url",...le.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...le.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...le.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...le.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...le.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...le.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...le.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...le.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...le.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(r=e==null?void 0:e.local)!==null&&r!==void 0?r:!1,...le.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...le.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...le.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...le.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...le.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...le.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...le.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...le.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...le.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...le.errToObj(n)})}nonempty(e){return this.min(1,le.errToObj(e))}trim(){return new Vo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Vo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Vo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};Jr.create=t=>{var e;return new Jr({checks:[],typeName:ye.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Te(t)})};function nh(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,o=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return o%i/Math.pow(10,s)}let bs=class cc extends $e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==re.number){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.number,received:o.parsedType}),we}let r;const s=new $t;for(const o of this._def.checks)o.kind==="int"?xe.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),te(r,{code:Z.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?nh(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),te(r,{code:Z.not_finite,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,le.toString(n))}gt(e,n){return this.setLimit("min",e,!1,le.toString(n))}lte(e,n){return this.setLimit("max",e,!0,le.toString(n))}lt(e,n){return this.setLimit("max",e,!1,le.toString(n))}setLimit(e,n,r,s){return new cc({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:le.toString(s)}]})}_addCheck(e){return new cc({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:le.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:le.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:le.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&xe.isInteger(e.value))}get isFinite(){let e=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"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}};bs.create=t=>new bs({checks:[],typeName:ye.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Te(t)});let ws=class uc extends $e{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==re.bigint){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.bigint,received:o.parsedType}),we}let r;const s=new $t;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),te(r,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):xe.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,le.toString(n))}gt(e,n){return this.setLimit("min",e,!1,le.toString(n))}lte(e,n){return this.setLimit("max",e,!0,le.toString(n))}lt(e,n){return this.setLimit("max",e,!1,le.toString(n))}setLimit(e,n,r,s){return new uc({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:le.toString(s)}]})}_addCheck(e){return new uc({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:le.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}};ws.create=t=>{var e;return new ws({checks:[],typeName:ye.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Te(t)})};let Es=class extends $e{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==re.boolean){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.boolean,received:r.parsedType}),we}return kt(e.data)}};Es.create=t=>new Es({typeName:ye.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Te(t)});let xs=class Vp extends $e{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==re.date){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_type,expected:re.date,received:o.parsedType}),we}if(isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return te(o,{code:Z.invalid_date}),we}const r=new $t;let s;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(s=this._getOrReturnCtx(e,s),te(s,{code:Z.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):xe.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Vp({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:le.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:le.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}};xs.create=t=>new xs({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ye.ZodDate,...Te(t)});let Uo=class extends $e{_parse(e){if(this._getType(e)!==re.symbol){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.symbol,received:r.parsedType}),we}return kt(e.data)}};Uo.create=t=>new Uo({typeName:ye.ZodSymbol,...Te(t)});let ks=class extends $e{_parse(e){if(this._getType(e)!==re.undefined){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.undefined,received:r.parsedType}),we}return kt(e.data)}};ks.create=t=>new ks({typeName:ye.ZodUndefined,...Te(t)});let Os=class extends $e{_parse(e){if(this._getType(e)!==re.null){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.null,received:r.parsedType}),we}return kt(e.data)}};Os.create=t=>new Os({typeName:ye.ZodNull,...Te(t)});let Yr=class extends $e{constructor(){super(...arguments),this._any=!0}_parse(e){return kt(e.data)}};Yr.create=t=>new Yr({typeName:ye.ZodAny,...Te(t)});let gr=class extends $e{constructor(){super(...arguments),this._unknown=!0}_parse(e){return kt(e.data)}};gr.create=t=>new gr({typeName:ye.ZodUnknown,...Te(t)});let bn=class extends $e{_parse(e){const n=this._getOrReturnCtx(e);return te(n,{code:Z.invalid_type,expected:re.never,received:n.parsedType}),we}};bn.create=t=>new bn({typeName:ye.ZodNever,...Te(t)});let Zo=class extends $e{_parse(e){if(this._getType(e)!==re.undefined){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.void,received:r.parsedType}),we}return kt(e.data)}};Zo.create=t=>new Zo({typeName:ye.ZodVoid,...Te(t)});let yr=class da extends $e{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==re.array)return te(n,{code:Z.invalid_type,expected:re.array,received:n.parsedType}),we;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(te(n,{code:i?Z.too_big:Z.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(te(n,{code:Z.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(te(n,{code:Z.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new nn(n,i,n.path,a)))).then(i=>$t.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new nn(n,i,n.path,a)));return $t.mergeArray(r,o)}get element(){return this._def.type}min(e,n){return new da({...this._def,minLength:{value:e,message:le.toString(n)}})}max(e,n){return new da({...this._def,maxLength:{value:e,message:le.toString(n)}})}length(e,n){return new da({...this._def,exactLength:{value:e,message:le.toString(n)}})}nonempty(e){return this.min(1,e)}};yr.create=(t,e)=>new yr({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ye.ZodArray,...Te(e)});function Xr(t){if(t instanceof Mt){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=rn.create(Xr(r))}return new Mt({...t._def,shape:()=>e})}else return t instanceof yr?new yr({...t._def,type:Xr(t.element)}):t instanceof rn?rn.create(Xr(t.unwrap())):t instanceof Fn?Fn.create(Xr(t.unwrap())):t instanceof Bn?Bn.create(t.items.map(e=>Xr(e))):t}let Mt=class tn extends $e{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=xe.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==re.object){const c=this._getOrReturnCtx(e);return te(c,{code:Z.invalid_type,expected:re.object,received:c.parsedType}),we}const{status:r,ctx:s}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof bn&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=o[c],d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new nn(s,d,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof bn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&(te(s,{code:Z.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new nn(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>$t.mergeObjectSync(r,c)):$t.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return le.errToObj,new tn({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,o,i,a;const l=(i=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=le.errToObj(e).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new tn({...this._def,unknownKeys:"strip"})}passthrough(){return new tn({...this._def,unknownKeys:"passthrough"})}extend(e){return new tn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new tn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ye.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new tn({...this._def,catchall:e})}pick(e){const n={};return xe.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new tn({...this._def,shape:()=>n})}omit(e){const n={};return xe.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new tn({...this._def,shape:()=>n})}deepPartial(){return Xr(this)}partial(e){const n={};return xe.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new tn({...this._def,shape:()=>n})}required(e){const n={};return xe.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof rn;)o=o._def.innerType;n[r]=o}}),new tn({...this._def,shape:()=>n})}keyof(){return xc(xe.objectKeys(this.shape))}};Mt.create=(t,e)=>new Mt({shape:()=>t,unknownKeys:"strip",catchall:bn.create(),typeName:ye.ZodObject,...Te(e)}),Mt.strictCreate=(t,e)=>new Mt({shape:()=>t,unknownKeys:"strict",catchall:bn.create(),typeName:ye.ZodObject,...Te(e)}),Mt.lazycreate=(t,e)=>new Mt({shape:t,unknownKeys:"strip",catchall:bn.create(),typeName:ye.ZodObject,...Te(e)});let Ns=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new zt(a.ctx.common.issues));return te(n,{code:Z.invalid_union,unionErrors:i}),we}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new zt(l));return te(n,{code:Z.invalid_union,unionErrors:a}),we}}get options(){return this._def.options}};Ns.create=(t,e)=>new Ns({options:t,typeName:ye.ZodUnion,...Te(e)});const wn=t=>t instanceof Ts?wn(t.schema):t instanceof qt?wn(t.innerType()):t instanceof Cs?[t.value]:t instanceof $s?t.options:t instanceof Ps?xe.objectValues(t.enum):t instanceof Is?wn(t._def.innerType):t instanceof ks?[void 0]:t instanceof Os?[null]:t instanceof rn?[void 0,...wn(t.unwrap())]:t instanceof Fn?[null,...wn(t.unwrap())]:t instanceof ga||t instanceof Ds?wn(t.unwrap()):t instanceof As?wn(t._def.innerType):[];let bc=class Rp extends $e{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==re.object)return te(n,{code:Z.invalid_type,expected:re.object,received:n.parsedType}),we;const r=this.discriminator,s=n.data[r],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(te(n,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const o of n){const i=wn(o.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of i){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,o)}}return new Rp({typeName:ye.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...Te(r)})}};function va(t,e){const n=Zn(t),r=Zn(e);if(t===e)return{valid:!0,data:t};if(n===re.object&&r===re.object){const s=xe.objectKeys(e),o=xe.objectKeys(t).filter(a=>s.indexOf(a)!==-1),i={...t,...e};for(const a of o){const l=va(t[a],e[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===re.array&&r===re.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let o=0;o<t.length;o++){const i=t[o],a=e[o],l=va(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===re.date&&r===re.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}let Ss=class extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(o,i)=>{if(pa(o)||pa(i))return we;const a=va(o.value,i.value);return a.valid?((ha(o)||ha(i))&&n.dirty(),{status:n.value,value:a.data}):(te(r,{code:Z.invalid_intersection_types}),we)};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(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};Ss.create=(t,e,n)=>new Ss({left:t,right:e,typeName:ye.ZodIntersection,...Te(n)});let Bn=class jp extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.array)return te(r,{code:Z.invalid_type,expected:re.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return te(r,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(te(r,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new nn(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>$t.mergeArray(n,i)):$t.mergeArray(n,o)}get items(){return this._def.items}rest(e){return new jp({...this._def,rest:e})}};Bn.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bn({items:t,typeName:ye.ZodTuple,rest:null,...Te(e)})};let wc=class dc extends $e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.object)return te(r,{code:Z.invalid_type,expected:re.object,received:r.parsedType}),we;const s=[],o=this._def.keyType,i=this._def.valueType;for(const a in r.data)s.push({key:o._parse(new nn(r,a,r.path,a)),value:i._parse(new nn(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?$t.mergeObjectAsync(n,s):$t.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof $e?new dc({keyType:e,valueType:n,typeName:ye.ZodRecord,...Te(r)}):new dc({keyType:Jr.create(),valueType:e,typeName:ye.ZodRecord,...Te(n)})}},Bo=class extends $e{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.map)return te(r,{code:Z.invalid_type,expected:re.map,received:r.parsedType}),we;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new nn(r,a,r.path,[c,"key"])),value:o._parse(new nn(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return we;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return we;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}};Bo.create=(t,e,n)=>new Bo({valueType:e,keyType:t,typeName:ye.ZodMap,...Te(n)});let Fo=class fc extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==re.set)return te(r,{code:Z.invalid_type,expected:re.set,received:r.parsedType}),we;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(te(r,{code:Z.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(te(r,{code:Z.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return we;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new nn(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(e,n){return new fc({...this._def,minSize:{value:e,message:le.toString(n)}})}max(e,n){return new fc({...this._def,maxSize:{value:e,message:le.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}};Fo.create=(t,e)=>new Fo({valueType:t,minSize:null,maxSize:null,typeName:ye.ZodSet,...Te(e)});let Ec=class fa extends $e{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==re.function)return te(n,{code:Z.invalid_type,expected:re.function,received:n.parsedType}),we;function r(a,l){return Lo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),Kr].filter(c=>!!c),issueData:{code:Z.invalid_arguments,argumentsError:l}})}function s(a,l){return Lo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,jo(),Kr].filter(c=>!!c),issueData:{code:Z.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof Qr){const a=this;return kt(async function(...l){const c=new zt([]),u=await a._def.args.parseAsync(l,o).catch(m=>{throw c.addIssue(r(l,m)),c}),d=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(d,o).catch(m=>{throw c.addIssue(s(d,m)),c})})}else{const a=this;return kt(function(...l){const c=a._def.args.safeParse(l,o);if(!c.success)throw new zt([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),d=a._def.returns.safeParse(u,o);if(!d.success)throw new zt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new fa({...this._def,args:Bn.create(e).rest(gr.create())})}returns(e){return new fa({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new fa({args:e||Bn.create([]).rest(gr.create()),returns:n||gr.create(),typeName:ye.ZodFunction,...Te(r)})}},Ts=class extends $e{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ts.create=(t,e)=>new Ts({getter:t,typeName:ye.ZodLazy,...Te(e)});let Cs=class extends $e{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return te(n,{received:n.data,code:Z.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:e.data}}get value(){return this._def.value}};Cs.create=(t,e)=>new Cs({value:t,typeName:ye.ZodLiteral,...Te(e)});function xc(t,e){return new $s({values:t,typeName:ye.ZodEnum,...Te(e)})}let $s=class pc extends $e{constructor(){super(...arguments),ys.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return te(n,{expected:xe.joinValues(r),received:n.parsedType,code:Z.invalid_type}),we}if(Mo(this,ys)||mc(this,ys,new Set(this._def.values)),!Mo(this,ys).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return te(n,{received:n.data,code:Z.invalid_enum_value,options:r}),we}return kt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return pc.create(e,{...this._def,...n})}exclude(e,n=this._def){return pc.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}};ys=new WeakMap,$s.create=xc;let Ps=class extends $e{constructor(){super(...arguments),_s.set(this,void 0)}_parse(e){const n=xe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==re.string&&r.parsedType!==re.number){const s=xe.objectValues(n);return te(r,{expected:xe.joinValues(s),received:r.parsedType,code:Z.invalid_type}),we}if(Mo(this,_s)||mc(this,_s,new Set(xe.getValidEnumValues(this._def.values))),!Mo(this,_s).has(e.data)){const s=xe.objectValues(n);return te(r,{received:r.data,code:Z.invalid_enum_value,options:s}),we}return kt(e.data)}get enum(){return this._def.values}};_s=new WeakMap,Ps.create=(t,e)=>new Ps({values:t,typeName:ye.ZodNativeEnum,...Te(e)});let Qr=class extends $e{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==re.promise&&n.common.async===!1)return te(n,{code:Z.invalid_type,expected:re.promise,received:n.parsedType}),we;const r=n.parsedType===re.promise?n.data:Promise.resolve(n.data);return kt(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Qr.create=(t,e)=>new Qr({type:t,typeName:ye.ZodPromise,...Te(e)});let qt=class extends $e{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,o={addIssue:i=>{te(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);if(r.common.async)return Promise.resolve(i).then(async a=>{if(n.value==="aborted")return we;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?we:l.status==="dirty"||n.value==="dirty"?Gr(l.value):l});{if(n.value==="aborted")return we;const a=this._def.schema._parseSync({data:i,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"||n.value==="dirty"?Gr(a.value):a}}if(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);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"?we:(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"?we:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!vs(i))return i;const a=s.transform(i.value,o);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=>vs(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):i);xe.assertNever(s)}};qt.create=(t,e,n)=>new qt({schema:t,typeName:ye.ZodEffects,effect:e,...Te(n)}),qt.createWithPreprocess=(t,e,n)=>new qt({schema:e,effect:{type:"preprocess",transform:t},typeName:ye.ZodEffects,...Te(n)});let rn=class extends $e{_parse(e){return this._getType(e)===re.undefined?kt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};rn.create=(t,e)=>new rn({innerType:t,typeName:ye.ZodOptional,...Te(e)});let Fn=class extends $e{_parse(e){return this._getType(e)===re.null?kt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Fn.create=(t,e)=>new Fn({innerType:t,typeName:ye.ZodNullable,...Te(e)});let Is=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===re.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};Is.create=(t,e)=>new Is({innerType:t,typeName:ye.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Te(e)});let As=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return gs(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new zt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new zt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};As.create=(t,e)=>new As({innerType:t,typeName:ye.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Te(e)});let Ho=class extends $e{_parse(e){if(this._getType(e)!==re.nan){const r=this._getOrReturnCtx(e);return te(r,{code:Z.invalid_type,expected:re.nan,received:r.parsedType}),we}return{status:"valid",value:e.data}}};Ho.create=t=>new Ho({typeName:ye.ZodNaN,...Te(t)});const rh=Symbol("zod_brand");let ga=class extends $e{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},ya=class Lp extends $e{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?we:o.status==="dirty"?(n.dirty(),Gr(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Lp({in:e,out:n,typeName:ye.ZodPipeline})}},Ds=class extends $e{_parse(e){const n=this._def.innerType._parse(e),r=s=>(vs(s)&&(s.value=Object.freeze(s.value)),s);return gs(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}};Ds.create=(t,e)=>new Ds({innerType:t,typeName:ye.ZodReadonly,...Te(e)});function kc(t,e={},n){return t?Yr.create().superRefine((r,s)=>{var o,i;if(!t(r)){const a=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,l=(i=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...c,fatal:l})}}):Yr.create()}const sh={object:Mt.lazycreate};var ye;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ye||(ye={}));const oh=(t,e={message:`Input not instance of ${t.name}`})=>kc(n=>n instanceof t,e),Oc=Jr.create,Nc=bs.create,ih=Ho.create,ah=ws.create,Sc=Es.create,lh=xs.create,ch=Uo.create,uh=ks.create,dh=Os.create,fh=Yr.create,ph=gr.create,hh=bn.create,mh=Zo.create,vh=yr.create,gh=Mt.create,yh=Mt.strictCreate,_h=Ns.create,bh=bc.create,wh=Ss.create,Eh=Bn.create,xh=wc.create,kh=Bo.create,Oh=Fo.create,Nh=Ec.create,Sh=Ts.create,Th=Cs.create,Ch=$s.create,$h=Ps.create,Ph=Qr.create,Tc=qt.create,Ih=rn.create,Ah=Fn.create,Dh=qt.createWithPreprocess,Vh=ya.create;var y=Object.freeze({__proto__:null,defaultErrorMap:Kr,setErrorMap:Up,getErrorMap:jo,makeIssue:Lo,EMPTY_PATH:Zp,addIssueToContext:te,ParseStatus:$t,INVALID:we,DIRTY:Gr,OK:kt,isAborted:pa,isDirty:ha,isValid:vs,isAsync:gs,get util(){return xe},get objectUtil(){return Un},ZodParsedType:re,getParsedType:Zn,ZodType:$e,datetimeRegex:_c,ZodString:Jr,ZodNumber:bs,ZodBigInt:ws,ZodBoolean:Es,ZodDate:xs,ZodSymbol:Uo,ZodUndefined:ks,ZodNull:Os,ZodAny:Yr,ZodUnknown:gr,ZodNever:bn,ZodVoid:Zo,ZodArray:yr,ZodObject:Mt,ZodUnion:Ns,ZodDiscriminatedUnion:bc,ZodIntersection:Ss,ZodTuple:Bn,ZodRecord:wc,ZodMap:Bo,ZodSet:Fo,ZodFunction:Ec,ZodLazy:Ts,ZodLiteral:Cs,ZodEnum:$s,ZodNativeEnum:Ps,ZodPromise:Qr,ZodEffects:qt,ZodTransformer:qt,ZodOptional:rn,ZodNullable:Fn,ZodDefault:Is,ZodCatch:As,ZodNaN:Ho,BRAND:rh,ZodBranded:ga,ZodPipeline:ya,ZodReadonly:Ds,custom:kc,Schema:$e,ZodSchema:$e,late:sh,get ZodFirstPartyTypeKind(){return ye},coerce:{string:t=>Jr.create({...t,coerce:!0}),number:t=>bs.create({...t,coerce:!0}),boolean:t=>Es.create({...t,coerce:!0}),bigint:t=>ws.create({...t,coerce:!0}),date:t=>xs.create({...t,coerce:!0})},any:fh,array:vh,bigint:ah,boolean:Sc,date:lh,discriminatedUnion:bh,effect:Tc,enum:Ch,function:Nh,instanceof:oh,intersection:wh,lazy:Sh,literal:Th,map:kh,nan:ih,nativeEnum:$h,never:hh,null:dh,nullable:Ah,number:Nc,object:gh,oboolean:()=>Sc().optional(),onumber:()=>Nc().optional(),optional:Ih,ostring:()=>Oc().optional(),pipeline:Vh,preprocess:Dh,promise:Ph,record:xh,set:Oh,strictObject:yh,string:Oc,symbol:ch,transformer:Tc,tuple:Eh,undefined:uh,union:_h,unknown:ph,void:mh,NEVER:we,ZodIssueCode:Z,quotelessJson:Mp,ZodError:zt}),Cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _a={exports:{}};(function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Cc<"u"&&Cc,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var a=typeof o<"u"&&o||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function c(w){return w&&DataView.prototype.isPrototypeOf(w)}if(l.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(w){return w&&u.indexOf(Object.prototype.toString.call(w))>-1};function f(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(w)||w==="")throw new TypeError('Invalid character in header field name: "'+w+'"');return w.toLowerCase()}function m(w){return typeof w!="string"&&(w=String(w)),w}function _(w){var $={next:function(){var Q=w.shift();return{done:Q===void 0,value:Q}}};return l.iterable&&($[Symbol.iterator]=function(){return $}),$}function E(w){this.map={},w instanceof E?w.forEach(function($,Q){this.append(Q,$)},this):Array.isArray(w)?w.forEach(function($){this.append($[0],$[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function($){this.append($,w[$])},this)}E.prototype.append=function(w,$){w=f(w),$=m($);var Q=this.map[w];this.map[w]=Q?Q+", "+$:$},E.prototype.delete=function(w){delete this.map[f(w)]},E.prototype.get=function(w){return w=f(w),this.has(w)?this.map[w]:null},E.prototype.has=function(w){return this.map.hasOwnProperty(f(w))},E.prototype.set=function(w,$){this.map[f(w)]=m($)},E.prototype.forEach=function(w,$){for(var Q in this.map)this.map.hasOwnProperty(Q)&&w.call($,this.map[Q],Q,this)},E.prototype.keys=function(){var w=[];return this.forEach(function($,Q){w.push(Q)}),_(w)},E.prototype.values=function(){var w=[];return this.forEach(function($){w.push($)}),_(w)},E.prototype.entries=function(){var w=[];return this.forEach(function($,Q){w.push([Q,$])}),_(w)},l.iterable&&(E.prototype[Symbol.iterator]=E.prototype.entries);function k(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function A(w){return new Promise(function($,Q){w.onload=function(){$(w.result)},w.onerror=function(){Q(w.error)}})}function B(w){var $=new FileReader,Q=A($);return $.readAsArrayBuffer(w),Q}function T(w){var $=new FileReader,Q=A($);return $.readAsText(w),Q}function J(w){for(var $=new Uint8Array(w),Q=new Array($.length),oe=0;oe<$.length;oe++)Q[oe]=String.fromCharCode($[oe]);return Q.join("")}function P(w){if(w.slice)return w.slice(0);var $=new Uint8Array(w.byteLength);return $.set(new Uint8Array(w)),$.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(w){this.bodyUsed=this.bodyUsed,this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:l.blob&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:l.formData&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():l.arrayBuffer&&l.blob&&c(w)?(this._bodyArrayBuffer=P(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(w)||d(w))?this._bodyArrayBuffer=P(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):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var w=k(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(){if(this._bodyArrayBuffer){var w=k(this);return w||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(B)}),this.text=function(){var w=k(this);if(w)return w;if(this._bodyBlob)return T(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(J(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var N=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Oe(w){var $=w.toUpperCase();return N.indexOf($)>-1?$:w}function K(w,$){if(!(this instanceof K))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');$=$||{};var Q=$.body;if(w instanceof K){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,$.headers||(this.headers=new E(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!Q&&w._bodyInit!=null&&(Q=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=$.credentials||this.credentials||"same-origin",($.headers||!this.headers)&&(this.headers=new E($.headers)),this.method=Oe($.method||this.method||"GET"),this.mode=$.mode||this.mode||null,this.signal=$.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Q)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Q),(this.method==="GET"||this.method==="HEAD")&&($.cache==="no-store"||$.cache==="no-cache")){var oe=/([?&])_=[^&]*/;if(oe.test(this.url))this.url=this.url.replace(oe,"$1_="+new Date().getTime());else{var be=/\?/;this.url+=(be.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}K.prototype.clone=function(){return new K(this,{body:this._bodyInit})};function R(w){var $=new FormData;return w.trim().split("&").forEach(function(Q){if(Q){var oe=Q.split("="),be=oe.shift().replace(/\+/g," "),ae=oe.join("=").replace(/\+/g," ");$.append(decodeURIComponent(be),decodeURIComponent(ae))}}),$}function V(w){var $=new E,Q=w.replace(/\r?\n[\t ]+/g," ");return Q.split("\r").map(function(oe){return oe.indexOf(`
|
|
3
|
+
`)===0?oe.substr(1,oe.length):oe}).forEach(function(oe){var be=oe.split(":"),ae=be.shift().trim();if(ae){var We=be.join(":").trim();$.append(ae,We)}}),$}z.call(K.prototype);function I(w,$){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');$||($={}),this.type="default",this.status=$.status===void 0?200:$.status,this.ok=this.status>=200&&this.status<300,this.statusText=$.statusText===void 0?"":""+$.statusText,this.headers=new E($.headers),this.url=$.url||"",this._initBody(w)}z.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new E(this.headers),url:this.url})},I.error=function(){var w=new I(null,{status:0,statusText:""});return w.type="error",w};var ce=[301,302,303,307,308];I.redirect=function(w,$){if(ce.indexOf($)===-1)throw new RangeError("Invalid status code");return new I(null,{status:$,headers:{location:w}})},i.DOMException=a.DOMException;try{new i.DOMException}catch{i.DOMException=function($,Q){this.message=$,this.name=Q;var oe=Error($);this.stack=oe.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function Ze(w,$){return new Promise(function(Q,oe){var be=new K(w,$);if(be.signal&&be.signal.aborted)return oe(new i.DOMException("Aborted","AbortError"));var ae=new XMLHttpRequest;function We(){ae.abort()}ae.onload=function(){var Ke={status:ae.status,statusText:ae.statusText,headers:V(ae.getAllResponseHeaders()||"")};Ke.url="responseURL"in ae?ae.responseURL:Ke.headers.get("X-Request-URL");var At="response"in ae?ae.response:ae.responseText;setTimeout(function(){Q(new I(At,Ke))},0)},ae.onerror=function(){setTimeout(function(){oe(new TypeError("Network request failed"))},0)},ae.ontimeout=function(){setTimeout(function(){oe(new TypeError("Network request failed"))},0)},ae.onabort=function(){setTimeout(function(){oe(new i.DOMException("Aborted","AbortError"))},0)};function xt(Ke){try{return Ke===""&&a.location.href?a.location.href:Ke}catch{return Ke}}ae.open(be.method,xt(be.url),!0),be.credentials==="include"?ae.withCredentials=!0:be.credentials==="omit"&&(ae.withCredentials=!1),"responseType"in ae&&(l.blob?ae.responseType="blob":l.arrayBuffer&&be.headers.get("Content-Type")&&be.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ae.responseType="arraybuffer")),$&&typeof $.headers=="object"&&!($.headers instanceof E)?Object.getOwnPropertyNames($.headers).forEach(function(Ke){ae.setRequestHeader(Ke,m($.headers[Ke]))}):be.headers.forEach(function(Ke,At){ae.setRequestHeader(At,Ke)}),be.signal&&(be.signal.addEventListener("abort",We),ae.onreadystatechange=function(){ae.readyState===4&&be.signal.removeEventListener("abort",We)}),ae.send(typeof be._bodyInit>"u"?null:be._bodyInit)})}return Ze.polyfill=!0,a.fetch||(a.fetch=Ze,a.Headers=E,a.Request=K,a.Response=I),i.Headers=E,i.Request=K,i.Response=I,i.fetch=Ze,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;e=s.fetch,e.default=s.fetch,e.fetch=s.fetch,e.Headers=s.Headers,e.Request=s.Request,e.Response=s.Response,t.exports=e})(_a,_a.exports);var jh=_a.exports;const zo=Rh(jh);var es=y.record(y.number()),Lh=y.object({type:y.literal("PercentageOffDiscount"),name:y.string(),description:y.string().optional(),percentage:y.number(),total:es.optional(),isExclusive:y.boolean()}),Mh=y.object({type:y.literal("FlatAmountOffDiscount"),name:y.string(),description:y.string().optional(),total:es.optional(),isExclusive:y.boolean()}),ba=y.discriminatedUnion("type",[Lh,Mh]),ts=y.object({id:y.string(),name:y.string(),originalPrice:es,price:es,hasDiscount:y.boolean(),discount:ba.optional()});function Vs(t){return y.object({items:y.array(t),hasMore:y.boolean(),next:y.string().nullable()})}function $c(t){return y.object({value:t,quantity:y.number()})}var sn=(t=>(t.Universal="Universal",t.Windows="Windows",t.Linux="Linux",t.Mac="Mac",t))(sn||{}),Pc=y.object({name:y.string(),key:y.string(),platform:y.nativeEnum(sn),size:y.number(),path:y.string().nullable()}),wa=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(),version:y.string().optional(),prerelease:y.boolean().optional(),downloadsNeedsUser:y.boolean(),downloadsNeedsOwnership:y.boolean(),downloads:y.array(Pc).optional()}),Rs=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:Pc.array().optional(),defaultVariation:ts.optional(),variations:ts.array().optional(),type:y.void().transform(()=>"product").pipe(y.literal("product"))}),Ea=y.object({id:y.string(),name:y.string(),tagline:y.string(),iconUrl:y.string().nullable(),owned:y.boolean(),partial:y.boolean(),products:Rs.and(y.object({included:y.boolean().optional()})).array(),defaultVariation:ts.optional(),variations:ts.array().optional(),type:y.void().transform(()=>"bundle").pipe(y.literal("bundle"))}),Uh=y.object({suggestedCurrency:y.string(),products:Rs.array(),bundles:Ea.array()}),on=(t=>(t.Requested="Requested",t.Fulfilled="Fulfilled",t.Completed="Completed",t.Cancelled="Cancelled",t))(on||{}),qo=y.object({id:y.string(),status:y.nativeEnum(on),product:Rs,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()}),Zh=class{constructor(t){this.api=t}async get(t){const e=await this.api.fetch(`/api/customer/activations/${t}`);return qo.parse(e.data)}async isCompleted(t){const e=await this.api.fetch(`/api/customer/activations/${t}/completed`);return y.boolean().parse(e.data)}async fulfillLicense(t){const e=await this.api.authenticatedFetch(`/api/customer/activations/${t}/license`,"POST");return qo.parse(e.data)}async fulfillTrial(t){const e=await this.api.fetch(`/api/customer/activations/${t}/trial`,"POST");return qo.parse(e.data)}async cancel(t){const e=await this.api.fetch(`/api/customer/activations/${t}/cancel`,"POST");return qo.parse(e.data)}},Bh=class extends Error{constructor(){super(),this.name="NotAuthorizedError"}},xa=class extends Error{constructor(){super(),this.name="NotAuthenticatedError"}},ns=class extends Error{constructor(){super(),this.name="NotFoundError"}},Ic=class extends Error{constructor(t,e,n,r){super(),this.title=t,this.detail=e,this.status=n,this.errors=r,this.name="MoonbaseError",r&&Object.values(r).length===1?this.message=Object.values(r)[0]:this.message=e??t}},Fh=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 Hh(t){return t.split(".").map((e,n)=>{let[r,...s]=e;return r=n!==0?r.toUpperCase():r.toLowerCase(),s=[s.join("").toLowerCase()],r+s[0]}).join("")}async function ka(t){if(t.status===404)throw new ns;if(t.status===401)throw new xa;if(t.status===403)throw new Bh;let e;try{const n=await t.json();e=Fh.parse(n)}catch(n){throw console.error("Could not handle response",n),new Error("An unknown problem occurred")}throw new Ic(e.title,e.detail,e.status,e.errors?Object.fromEntries(Object.entries(e.errors).map(([n,r])=>[Hh(n),r.join(", ")])):void 0)}var Ac=y.object({countryCode:y.string(),streetAddress1:y.string(),streetAddress2:y.string().nullable(),locality:y.string().nullable(),region:y.string().nullable(),postCode:y.string()}),zh=y.object({newsletterOptIn:y.boolean()}),Dc=y.object({id:y.string(),email:y.string(),name:y.string(),tenantId:y.string(),address:Ac.optional(),communicationPreferences:zh,ownedProducts:y.string().array().optional()}),Oa=Dc.and(y.object({accessToken:y.string(),refreshToken:y.string()})),qh=y.object({id:y.string(),name:y.string(),email:y.string(),resetPasswordToken:y.string().nullable()}),Wh=class{constructor(t,e){this.api=t,this.tokenStore=e}async get(){const t=await this.api.authenticatedFetch("/api/customer/meta/user");return Dc.parse(t.data)}async signIn(t,e){const n=await zo(`${this.api.baseUrl}/api/customer/identity/sign-in?email=${t}&scheme=JWT`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:e});n.status>=400&&await ka(n);const r=await n.json(),s=Oa.parse(r);return this.tokenStore.setUser(s),s}async signUp(t,e,n,r,s,o,i){const a=await this.api.fetch(`/api/customer/identity/sign-up?scheme=JWT&communicationOptIn=${i?"true":"false"}`,"POST",{name:t,email:e,password:n,address:r,acceptedPrivacyPolicy:s,acceptedTermsAndConditions:o}),l=Oa.parse(a.data);return this.tokenStore.setUser(l),l}async update(t,e,n,r){return{needsEmailConfirmationToken:(await this.api.authenticatedFetch("/api/customer/identity","PATCH",{name:t,email:e,emailConfirmationToken:n,communicationPreferences:r})).status===201}}async setPassword(t,e){await this.api.authenticatedFetch("/api/customer/identity/set-password","POST",{currentPassword:t,newPassword:e})}async forgotPassword(t){await this.api.fetch(`/api/customer/identity/forgot-password?email=${encodeURIComponent(t)}`,"POST")}async resetPassword(t,e,n){const r=await zo(`${this.api.baseUrl}/api/customer/identity/reset-password?email=${encodeURIComponent(t)}&code=${encodeURIComponent(n.replaceAll(" ","+"))}`,{method:"POST",headers:{Accept:"application/json","Content-Type":"text/plain","x-mb-cors":"1"},body:e});r.status>=400&&await ka(r)}async confirmAccount(t,e){const n=await this.api.fetch(`/api/customer/identity/confirm-account?email=${encodeURIComponent(t)}&code=${encodeURIComponent(e.replaceAll(" ","+"))}`,"POST");return qh.parse(n.data)}async confirmEmail(t,e){await this.api.fetch(`/api/customer/identity/confirm-email?email=${encodeURIComponent(t)}&code=${encodeURIComponent(e.replaceAll(" ","+"))}`,"POST")}async confirmEmailChange(t,e){await this.api.authenticatedFetch(`/api/customer/identity/confirm-email-change?email=${encodeURIComponent(t)}&code=${encodeURIComponent(e.replaceAll(" ","+"))}`,"POST")}},js=(t=>(t.Open="Open",t.PaymentProcessing="PaymentProcessing",t.Completed="Completed",t.Failed="Failed",t))(js||{}),Vc=y.object({code:y.string(),name:y.string(),description:y.string()}),Kh=y.object({id:y.string(),type:y.literal("Product"),productId:y.string(),quantity:y.number(),variationId:y.string(),price:es.optional(),variation:ts.optional(),product:Rs.optional(),appliedDiscount:ba.optional()}),Gh=y.object({id:y.string(),type:y.literal("Bundle"),bundleId:y.string(),quantity:y.number(),variationId:y.string(),price:es.optional(),variation:ts.optional(),bundle:Ea.optional(),appliedDiscount:ba.optional()}),Rc=y.discriminatedUnion("type",[Kh,Gh]),jc=y.object({id:y.string(),status:y.literal("Open"),currency:y.string(),items:Rc.array(),couponsApplied:Vc.array(),checkoutUrl:y.string().optional(),embeddedCheckoutUrl:y.string().optional()}),Ls=y.object({currency:y.string(),amount:y.number()}),Jh=y.object({original:Ls,discount:Ls,subtotal:Ls,taxes:Ls,due:Ls}),Yh=y.object({name:y.string().nullable(),businessName:y.string().nullable(),taxId:y.string().nullable(),email:y.string().nullable(),address:Ac.nullable()}),Xh=y.object({id:y.string(),status:y.literal("Completed"),currency:y.string(),customer:Yh,total:Jh,items:Rc.array(),couponsApplied:Vc.array()}),Qh=y.discriminatedUnion("status",[jc,Xh]),em=class{constructor(t){this.api=t}async get(t){const e=await this.api.fetch(`/api/customer/orders/${t}`);return Qh.parse(e.data)}async pushContent(t,e,n){const r={...Lc(n)};e&&(r.checkout="true",r.returnUrl=e.returnUrl);const s=await this.api.fetch(`/api/customer/orders/${t.id}?${new URLSearchParams(r).toString()}`,"PATCH",{currency:t.currency||void 0,items:t.items});return jc.parse(s.data)}};function Lc(t){return Object.entries({utm_source:t==null?void 0:t.source,utm_medium:t==null?void 0:t.medium,utm_campaign:t==null?void 0:t.campaign,utm_term:t==null?void 0:t.term,utm_content:t==null?void 0:t.content,utm_referrer:t==null?void 0:t.referrer}).filter(([e,n])=>n!==void 0).reduce((e,[n,r])=>({...e,[n]:r}),{})}var tm=class{constructor(t){this.api=t}async get(t){const e=new URLSearchParams(Lc(t)),n=await this.api.fetch(`/api/customer/storefront?${e.toString()}`);return Uh.parse(n.data)}},nm=class{constructor(t,e){this.baseUrl=t,this.tokenStore=e}async authenticatedFetch(t,e,n,r){if(!this.tokenStore.hasAccessToken)throw new xa;return await this.fetch(t,e,n,r)}async fetch(t,e,n,r){const s=await this.tokenStore.getAccessToken();r??(r="application/json");const o=await zo(this.baseUrl+t,{method:e||"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":r,...s?{Authorization:`Bearer ${s}`}:{},"x-mb-cors":"1"},body:n?r!=="application/json"?n:JSON.stringify(n):void 0});return o.status>=400&&await ka(o),{data:(Number(o.headers.get("Content-Length"))||0)>0?await o.json():null,headers:o.headers,status:o.status}}},Mc=class Ro{constructor(e){if(this.configuration=e,this.tokens=null,this.refreshTimeoutId=null,this.refreshPromise=null,typeof window<"u"){window.addEventListener("storage",r=>this.handleStorageUpdate(r));const n=localStorage.getItem(Ro.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 e,n,r;if(this.isExpired){if(this.refreshPromise){const o=await this.refreshPromise;return(e=o==null?void 0:o.accessToken)!=null?e:null}this.refreshPromise=this.refreshTokens();const s=await this.refreshPromise;return(n=s==null?void 0:s.accessToken)!=null?n:null}return((r=this.tokens)==null?void 0:r.accessToken)||null}setUser(e){return e===null?(this.tokens=null,typeof window<"u"&&localStorage&&localStorage.removeItem(Ro.storageKey),this.refreshTimeoutId!=null&&window.clearTimeout(this.refreshTimeoutId),null):(this.tokens={...e,expiresAt:new Date(new Date().getTime()+15*60*1e3)},typeof window<"u"&&localStorage&&localStorage.setItem(Ro.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 e=await zo(`${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(e.status!==200){if(e.status===403||e.status===404)return this.setUser(null),null;throw new Ic("Unexpected result",`Could not refresh access token, status code ${e.status}`,e.status)}const n=Oa.parse(await e.json());return this.setUser(n)}handleStorageUpdate(e){switch(e.key){case Ro.storageKey:this.tokens=e.newValue?JSON.parse(e.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}}};Mc.storageKey="moonbase_auth";var rm=Mc,Uc=y.object({id:y.string(),name:y.string(),description:y.string(),code:y.string(),redeemed:y.boolean(),redeemsProducts:$c(Rs).array(),redeemsBundles:$c(Ea).array()}),sm=class{constructor(t){this.api=t}async peek(t){const e=await this.api.fetch(`/api/customer/vouchers?code=${encodeURIComponent(t)}`);return Uc.parse(e.data)}async redeem(t){const e=await this.api.authenticatedFetch(`/api/customer/vouchers/redeem?code=${encodeURIComponent(t)}`,"POST");return Uc.parse(e.data)}},Zc=(t=>(t.Active="Active",t.Revoked="Revoked",t))(Zc||{}),Bc=(t=>(t.Active="Active",t.Revoked="Revoked",t))(Bc||{}),Na=(t=>(t.Online="Online",t.Offline="Offline",t))(Na||{}),Sa=y.object({id:y.string(),status:y.nativeEnum(Zc),product:wa,activeNumberOfActivations:y.number(),maxNumberOfActivations:y.number(),createdAt:y.coerce.date()}),Fc=y.object({id:y.string(),licenseId:y.string(),name:y.string(),status:y.nativeEnum(Bc),activationMethod:y.nativeEnum(Na),lastValidatedAt:y.coerce.date().nullable()}),om=class{constructor(t){this.api=t}async activate(t,e){const n=await this.api.authenticatedFetch(`/api/customer/inventory/activate?method=${e}`,"POST",t,"text/plain");return{license:Sa.parse(n.data),url:y.string().parse(n.headers.get("location"))}}},im=class{constructor(t){this.api=t}async get(t){const e=await this.api.authenticatedFetch(t||"/api/customer/inventory/licenses");return Vs(Sa).parse(e.data)}async getActivations(t,e){const n=await this.api.authenticatedFetch(e||`/api/customer/inventory/licenses/${t}/activations`);return Vs(Fc).parse(n.data)}async revokeActivation(t,e){await this.api.authenticatedFetch(`/api/customer/inventory/licenses/${t}/activations/${e}/revoke`,"POST")}},am=class{constructor(t){this.api=t}async get(t,e){const n=await this.api.fetch(`/api/customer/inventory/products/${t}${e?`?version=${e}`:""}`);return wa.parse(n.data)}async getOwned(t){const e=await this.api.authenticatedFetch(t||"/api/customer/inventory/products");return Vs(wa).parse(e.data)}async getLicenses(t,e){const n=await this.api.authenticatedFetch(e||`/api/customer/inventory/products/${t}/licenses`);return Vs(Sa).parse(n.data)}async getActivations(t,e){const n=await this.api.authenticatedFetch(e||`/api/customer/inventory/products/${t}/licenses/activations`);return Vs(Fc).parse(n.data)}async getDownloadUrl(t){const e=new URL(t);e.searchParams.append("redirect","false");const n=await this.api.fetch(e.pathname+e.search);return y.object({location:y.string()}).parse(n.data).location}},lm=class{constructor(t){this.licenses=new im(t),this.products=new am(t),this.activation=new om(t)}},cm=class{constructor(t){this.configuration=t,this.configuration.endpoint=this.configuration.endpoint.replace(/\/$/,""),this.tokenStore=new rm(t);const e=new nm(this.configuration.endpoint,this.tokenStore);this.storefront=new tm(e),this.identity=new Wh(e,this.tokenStore),this.vouchers=new sm(e),this.orders=new em(e),this.inventory=new lm(e),this.activationRequests=new Zh(e)}},Hc={};/**
|
|
4
4
|
* @vue/shared v3.4.38
|
|
5
5
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
6
|
* @license MIT
|
|
7
|
-
**//*! #__NO_SIDE_EFFECTS__ */function En(t,e){const n=new Set(t.split(","));return r=>n.has(r)}const Ge=Hc.NODE_ENV!=="production"?Object.freeze({}):{},ss=Hc.NODE_ENV!=="production"?Object.freeze([]):[],nt=()=>{},um=()=>!1,Ms=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Wo=t=>t.startsWith("onUpdate:"),tt=Object.assign,Ta=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},dm=Object.prototype.hasOwnProperty,Ie=(t,e)=>dm.call(t,e),de=Array.isArray,br=t=>Ko(t)==="[object Map]",zc=t=>Ko(t)==="[object Set]",me=t=>typeof t=="function",Xe=t=>typeof t=="string",Hn=t=>typeof t=="symbol",Be=t=>t!==null&&typeof t=="object",Ca=t=>(Be(t)||me(t))&&me(t.then)&&me(t.catch),qc=Object.prototype.toString,Ko=t=>qc.call(t),$a=t=>Ko(t).slice(8,-1),Wc=t=>Ko(t)==="[object Object]",Pa=t=>Xe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Us=En(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fm=En("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Go=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},pm=/-(\w)/g,Vt=Go(t=>t.replace(pm,(e,n)=>n?n.toUpperCase():"")),hm=/\B([A-Z])/g,xn=Go(t=>t.replace(hm,"-$1").toLowerCase()),wr=Go(t=>t.charAt(0).toUpperCase()+t.slice(1)),Er=Go(t=>t?`on${wr(t)}`:""),zn=(t,e)=>!Object.is(t,e),Zs=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Jo=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},mm=t=>{const e=parseFloat(t);return isNaN(e)?t:e},vm=t=>{const e=Xe(t)?Number(t):NaN;return isNaN(e)?t:e};let Kc;const Ia=()=>Kc||(Kc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Aa(t){if(de(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=Xe(r)?bm(r):Aa(r);if(s)for(const o in s)e[o]=s[o]}return e}else if(Xe(t)||Be(t))return t}const gm=/;(?![^(]*\))/g,ym=/:([^]+)/,_m=/\/\*[^]*?\*\//g;function bm(t){const e={};return t.replace(_m,"").split(gm).forEach(n=>{if(n){const r=n.split(ym);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Yo(t){let e="";if(Xe(t))e=t;else if(de(t))for(let n=0;n<t.length;n++){const r=Yo(t[n]);r&&(e+=r+" ")}else if(Be(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const wm="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",Em="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",xm="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",km=En(wm),Om=En(Em),Nm=En(xm),Sm=En("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Gc(t){return!!t||t===""}const Jc=t=>!!(t&&t.__v_isRef===!0),G=t=>Xe(t)?t:t==null?"":de(t)||Be(t)&&(t.toString===qc||!me(t.toString))?Jc(t)?G(t.value):JSON.stringify(t,Yc,2):String(t),Yc=(t,e)=>Jc(e)?Yc(t,e.value):br(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],o)=>(n[Da(r,o)+" =>"]=s,n),{})}:zc(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Da(n))}:Hn(e)?Da(e):Be(e)&&!de(e)&&!Wc(e)?String(e):e,Da=(t,e="")=>{var n;return Hn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};var rt={};function an(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Rt;class Xc{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rt,!e&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Rt;try{return Rt=this,e()}finally{Rt=n}}else rt.NODE_ENV!=="production"&&an("cannot run an inactive effect scope.")}on(){Rt=this}off(){Rt=this.parent}stop(e){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&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Qc(t){return new Xc(t)}function Tm(t,e=Rt){e&&e.active&&e.effects.push(t)}function eu(){return Rt}function Cm(t){Rt?Rt.cleanups.push(t):rt.NODE_ENV!=="production"&&an("onScopeDispose() is called when there is no active effect scope to be associated with.")}let xr;class Va{constructor(e,n,r,s){this.fn=e,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,Tm(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,kn();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&($m(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),On()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=qn,n=xr;try{return qn=!0,xr=this,this._runnings++,tu(this),this.fn()}finally{nu(this),this._runnings--,xr=n,qn=e}}stop(){this.active&&(tu(this),nu(this),this.onStop&&this.onStop(),this.active=!1)}}function $m(t){return t.value}function tu(t){t._trackId++,t._depsLength=0}function nu(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)ru(t.deps[e],t);t.deps.length=t._depsLength}}function ru(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let qn=!0,Ra=0;const su=[];function kn(){su.push(qn),qn=!1}function On(){const t=su.pop();qn=t===void 0?!0:t}function ja(){Ra++}function La(){for(Ra--;!Ra&&Ma.length;)Ma.shift()()}function ou(t,e,n){var r;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const s=t.deps[t._depsLength];s!==e?(s&&ru(s,t),t.deps[t._depsLength++]=e):t._depsLength++,rt.NODE_ENV!=="production"&&((r=t.onTrack)==null||r.call(t,tt({effect:t},n)))}}const Ma=[];function iu(t,e,n){var r;ja();for(const s of t.keys()){let o;s._dirtyLevel<e&&(o??(o=t.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=e),s._shouldSchedule&&(o??(o=t.get(s)===s._trackId))&&(rt.NODE_ENV!=="production"&&((r=s.onTrigger)==null||r.call(s,tt({effect:s},n))),s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&Ma.push(s.scheduler)))}La()}const au=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},Xo=new WeakMap,kr=Symbol(rt.NODE_ENV!=="production"?"iterate":""),Ua=Symbol(rt.NODE_ENV!=="production"?"Map key iterate":"");function pt(t,e,n){if(qn&&xr){let r=Xo.get(t);r||Xo.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=au(()=>r.delete(n))),ou(xr,s,rt.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function ln(t,e,n,r,s,o){const i=Xo.get(t);if(!i)return;let a=[];if(e==="clear")a=[...i.values()];else if(n==="length"&&de(t)){const l=Number(r);i.forEach((c,u)=>{(u==="length"||!Hn(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":de(t)?Pa(n)&&a.push(i.get("length")):(a.push(i.get(kr)),br(t)&&a.push(i.get(Ua)));break;case"delete":de(t)||(a.push(i.get(kr)),br(t)&&a.push(i.get(Ua)));break;case"set":br(t)&&a.push(i.get(kr));break}ja();for(const l of a)l&&iu(l,4,rt.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:o}:void 0);La()}function Pm(t,e){const n=Xo.get(t);return n&&n.get(e)}const Im=En("__proto__,__v_isRef,__isVue"),lu=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Hn)),cu=Am();function Am(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Ee(this);for(let o=0,i=this.length;o<i;o++)pt(r,"get",o+"");const s=r[e](...n);return s===-1||s===!1?r[e](...n.map(Ee)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){kn(),ja();const r=Ee(this)[e].apply(this,n);return La(),On(),r}}),t}function Dm(t){Hn(t)||(t=String(t));const e=Ee(this);return pt(e,"has",t),e.hasOwnProperty(t)}class uu{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?wu:bu:o?_u:yu).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=de(e);if(!s){if(i&&Ie(cu,n))return Reflect.get(cu,n,r);if(n==="hasOwnProperty")return Dm}const a=Reflect.get(e,n,r);return(Hn(n)?lu.has(n):Im(n))||(s||pt(e,"get",n),o)?a:Qe(a)?i&&Pa(n)?a:a.value:Be(a)?s?Eu(a):Bs(a):a}}class du extends uu{constructor(e=!1){super(!1,e)}set(e,n,r,s){let o=e[n];if(!this._isShallow){const l=Sn(o);if(!Tn(r)&&!Sn(r)&&(o=Ee(o),r=Ee(r)),!de(e)&&Qe(o)&&!Qe(r))return l?!1:(o.value=r,!0)}const i=de(e)&&Pa(n)?Number(n)<e.length:Ie(e,n),a=Reflect.set(e,n,r,s);return e===Ee(s)&&(i?zn(r,o)&&ln(e,"set",n,r,o):ln(e,"add",n,r)),a}deleteProperty(e,n){const r=Ie(e,n),s=e[n],o=Reflect.deleteProperty(e,n);return o&&r&&ln(e,"delete",n,void 0,s),o}has(e,n){const r=Reflect.has(e,n);return(!Hn(n)||!lu.has(n))&&pt(e,"has",n),r}ownKeys(e){return pt(e,"iterate",de(e)?"length":kr),Reflect.ownKeys(e)}}class fu extends uu{constructor(e=!1){super(!0,e)}set(e,n){return rt.NODE_ENV!=="production"&&an(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return rt.NODE_ENV!=="production"&&an(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const Vm=new du,Rm=new fu,jm=new du(!0),Lm=new fu(!0),Za=t=>t,Qo=t=>Reflect.getPrototypeOf(t);function ei(t,e,n=!1,r=!1){t=t.__v_raw;const s=Ee(t),o=Ee(e);n||(zn(e,o)&&pt(s,"get",e),pt(s,"get",o));const{has:i}=Qo(s),a=r?Za:n?Ba:Fs;if(i.call(s,e))return a(t.get(e));if(i.call(s,o))return a(t.get(o));t!==s&&t.get(e)}function ti(t,e=!1){const n=this.__v_raw,r=Ee(n),s=Ee(t);return e||(zn(t,s)&&pt(r,"has",t),pt(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function ni(t,e=!1){return t=t.__v_raw,!e&&pt(Ee(t),"iterate",kr),Reflect.get(t,"size",t)}function pu(t,e=!1){!e&&!Tn(t)&&!Sn(t)&&(t=Ee(t));const n=Ee(this);return Qo(n).has.call(n,t)||(n.add(t),ln(n,"add",t,t)),this}function hu(t,e,n=!1){!n&&!Tn(e)&&!Sn(e)&&(e=Ee(e));const r=Ee(this),{has:s,get:o}=Qo(r);let i=s.call(r,t);i?rt.NODE_ENV!=="production"&&gu(r,s,t):(t=Ee(t),i=s.call(r,t));const a=o.call(r,t);return r.set(t,e),i?zn(e,a)&&ln(r,"set",t,e,a):ln(r,"add",t,e),this}function mu(t){const e=Ee(this),{has:n,get:r}=Qo(e);let s=n.call(e,t);s?rt.NODE_ENV!=="production"&&gu(e,n,t):(t=Ee(t),s=n.call(e,t));const o=r?r.call(e,t):void 0,i=e.delete(t);return s&&ln(e,"delete",t,void 0,o),i}function vu(){const t=Ee(this),e=t.size!==0,n=rt.NODE_ENV!=="production"?br(t)?new Map(t):new Set(t):void 0,r=t.clear();return e&&ln(t,"clear",void 0,void 0,n),r}function ri(t,e){return function(r,s){const o=this,i=o.__v_raw,a=Ee(i),l=e?Za:t?Ba:Fs;return!t&&pt(a,"iterate",kr),i.forEach((c,u)=>r.call(s,l(c),l(u),o))}}function si(t,e,n){return function(...r){const s=this.__v_raw,o=Ee(s),i=br(o),a=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,c=s[t](...r),u=n?Za:e?Ba:Fs;return!e&&pt(o,"iterate",l?Ua:kr),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Wn(t){return function(...e){if(rt.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";an(`${wr(t)} operation ${n}failed: target is readonly.`,Ee(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function Mm(){const t={get(o){return ei(this,o)},get size(){return ni(this)},has:ti,add:pu,set:hu,delete:mu,clear:vu,forEach:ri(!1,!1)},e={get(o){return ei(this,o,!1,!0)},get size(){return ni(this)},has:ti,add(o){return pu.call(this,o,!0)},set(o,i){return hu.call(this,o,i,!0)},delete:mu,clear:vu,forEach:ri(!1,!0)},n={get(o){return ei(this,o,!0)},get size(){return ni(this,!0)},has(o){return ti.call(this,o,!0)},add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear"),forEach:ri(!0,!1)},r={get(o){return ei(this,o,!0,!0)},get size(){return ni(this,!0)},has(o){return ti.call(this,o,!0)},add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear"),forEach:ri(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=si(o,!1,!1),n[o]=si(o,!0,!1),e[o]=si(o,!1,!0),r[o]=si(o,!0,!0)}),[t,n,e,r]}const[Um,Zm,Bm,Fm]=Mm();function oi(t,e){const n=e?t?Fm:Bm:t?Zm:Um;return(r,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(Ie(n,s)&&s in r?n:r,s,o)}const Hm={get:oi(!1,!1)},zm={get:oi(!1,!0)},qm={get:oi(!0,!1)},Wm={get:oi(!0,!0)};function gu(t,e,n){const r=Ee(n);if(r!==n&&e.call(t,r)){const s=$a(t);an(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="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 yu=new WeakMap,_u=new WeakMap,bu=new WeakMap,wu=new WeakMap;function Km(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gm(t){return t.__v_skip||!Object.isExtensible(t)?0:Km($a(t))}function Bs(t){return Sn(t)?t:ii(t,!1,Vm,Hm,yu)}function Jm(t){return ii(t,!1,jm,zm,_u)}function Eu(t){return ii(t,!0,Rm,qm,bu)}function cn(t){return ii(t,!0,Lm,Wm,wu)}function ii(t,e,n,r,s){if(!Be(t))return rt.NODE_ENV!=="production"&&an(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const i=Gm(t);if(i===0)return t;const a=new Proxy(t,i===2?r:n);return s.set(t,a),a}function Nn(t){return Sn(t)?Nn(t.__v_raw):!!(t&&t.__v_isReactive)}function Sn(t){return!!(t&&t.__v_isReadonly)}function Tn(t){return!!(t&&t.__v_isShallow)}function ai(t){return t?!!t.__v_raw:!1}function Ee(t){const e=t&&t.__v_raw;return e?Ee(e):t}function Kn(t){return Object.isExtensible(t)&&Jo(t,"__v_skip",!0),t}const Fs=t=>Be(t)?Bs(t):t,Ba=t=>Be(t)?Eu(t):t,Ym="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 xu{constructor(e,n,r,s){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Va(()=>e(this._value),()=>li(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=Ee(this);return(!e._cacheable||e.effect.dirty)&&zn(e._value,e._value=e.effect.run())&&li(e,4),ku(e),e.effect._dirtyLevel>=2&&(rt.NODE_ENV!=="production"&&this._warnRecursive&&an(Ym,`
|
|
7
|
+
**//*! #__NO_SIDE_EFFECTS__ */function En(t,e){const n=new Set(t.split(","));return r=>n.has(r)}const Ge=Hc.NODE_ENV!=="production"?Object.freeze({}):{},rs=Hc.NODE_ENV!=="production"?Object.freeze([]):[],nt=()=>{},um=()=>!1,Ms=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Wo=t=>t.startsWith("onUpdate:"),tt=Object.assign,Ta=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},dm=Object.prototype.hasOwnProperty,Ie=(t,e)=>dm.call(t,e),de=Array.isArray,_r=t=>Ko(t)==="[object Map]",zc=t=>Ko(t)==="[object Set]",me=t=>typeof t=="function",Xe=t=>typeof t=="string",Hn=t=>typeof t=="symbol",Be=t=>t!==null&&typeof t=="object",Ca=t=>(Be(t)||me(t))&&me(t.then)&&me(t.catch),qc=Object.prototype.toString,Ko=t=>qc.call(t),$a=t=>Ko(t).slice(8,-1),Wc=t=>Ko(t)==="[object Object]",Pa=t=>Xe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Us=En(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fm=En("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Go=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},pm=/-(\w)/g,Vt=Go(t=>t.replace(pm,(e,n)=>n?n.toUpperCase():"")),hm=/\B([A-Z])/g,xn=Go(t=>t.replace(hm,"-$1").toLowerCase()),br=Go(t=>t.charAt(0).toUpperCase()+t.slice(1)),wr=Go(t=>t?`on${br(t)}`:""),zn=(t,e)=>!Object.is(t,e),Zs=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Jo=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},mm=t=>{const e=parseFloat(t);return isNaN(e)?t:e},vm=t=>{const e=Xe(t)?Number(t):NaN;return isNaN(e)?t:e};let Kc;const Ia=()=>Kc||(Kc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Aa(t){if(de(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=Xe(r)?bm(r):Aa(r);if(s)for(const o in s)e[o]=s[o]}return e}else if(Xe(t)||Be(t))return t}const gm=/;(?![^(]*\))/g,ym=/:([^]+)/,_m=/\/\*[^]*?\*\//g;function bm(t){const e={};return t.replace(_m,"").split(gm).forEach(n=>{if(n){const r=n.split(ym);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Yo(t){let e="";if(Xe(t))e=t;else if(de(t))for(let n=0;n<t.length;n++){const r=Yo(t[n]);r&&(e+=r+" ")}else if(Be(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const wm="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",Em="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",xm="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",km=En(wm),Om=En(Em),Nm=En(xm),Sm=En("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Gc(t){return!!t||t===""}const Jc=t=>!!(t&&t.__v_isRef===!0),G=t=>Xe(t)?t:t==null?"":de(t)||Be(t)&&(t.toString===qc||!me(t.toString))?Jc(t)?G(t.value):JSON.stringify(t,Yc,2):String(t),Yc=(t,e)=>Jc(e)?Yc(t,e.value):_r(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,s],o)=>(n[Da(r,o)+" =>"]=s,n),{})}:zc(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Da(n))}:Hn(e)?Da(e):Be(e)&&!de(e)&&!Wc(e)?String(e):e,Da=(t,e="")=>{var n;return Hn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};var rt={};function an(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Rt;class Xc{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Rt,!e&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Rt;try{return Rt=this,e()}finally{Rt=n}}else rt.NODE_ENV!=="production"&&an("cannot run an inactive effect scope.")}on(){Rt=this}off(){Rt=this.parent}stop(e){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&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Qc(t){return new Xc(t)}function Tm(t,e=Rt){e&&e.active&&e.effects.push(t)}function eu(){return Rt}function Cm(t){Rt?Rt.cleanups.push(t):rt.NODE_ENV!=="production"&&an("onScopeDispose() is called when there is no active effect scope to be associated with.")}let Er;class Va{constructor(e,n,r,s){this.fn=e,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,Tm(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,kn();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&($m(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),On()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=qn,n=Er;try{return qn=!0,Er=this,this._runnings++,tu(this),this.fn()}finally{nu(this),this._runnings--,Er=n,qn=e}}stop(){this.active&&(tu(this),nu(this),this.onStop&&this.onStop(),this.active=!1)}}function $m(t){return t.value}function tu(t){t._trackId++,t._depsLength=0}function nu(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)ru(t.deps[e],t);t.deps.length=t._depsLength}}function ru(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let qn=!0,Ra=0;const su=[];function kn(){su.push(qn),qn=!1}function On(){const t=su.pop();qn=t===void 0?!0:t}function ja(){Ra++}function La(){for(Ra--;!Ra&&Ma.length;)Ma.shift()()}function ou(t,e,n){var r;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const s=t.deps[t._depsLength];s!==e?(s&&ru(s,t),t.deps[t._depsLength++]=e):t._depsLength++,rt.NODE_ENV!=="production"&&((r=t.onTrack)==null||r.call(t,tt({effect:t},n)))}}const Ma=[];function iu(t,e,n){var r;ja();for(const s of t.keys()){let o;s._dirtyLevel<e&&(o??(o=t.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=e),s._shouldSchedule&&(o??(o=t.get(s)===s._trackId))&&(rt.NODE_ENV!=="production"&&((r=s.onTrigger)==null||r.call(s,tt({effect:s},n))),s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&Ma.push(s.scheduler)))}La()}const au=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},Xo=new WeakMap,xr=Symbol(rt.NODE_ENV!=="production"?"iterate":""),Ua=Symbol(rt.NODE_ENV!=="production"?"Map key iterate":"");function pt(t,e,n){if(qn&&Er){let r=Xo.get(t);r||Xo.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=au(()=>r.delete(n))),ou(Er,s,rt.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function ln(t,e,n,r,s,o){const i=Xo.get(t);if(!i)return;let a=[];if(e==="clear")a=[...i.values()];else if(n==="length"&&de(t)){const l=Number(r);i.forEach((c,u)=>{(u==="length"||!Hn(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),e){case"add":de(t)?Pa(n)&&a.push(i.get("length")):(a.push(i.get(xr)),_r(t)&&a.push(i.get(Ua)));break;case"delete":de(t)||(a.push(i.get(xr)),_r(t)&&a.push(i.get(Ua)));break;case"set":_r(t)&&a.push(i.get(xr));break}ja();for(const l of a)l&&iu(l,4,rt.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:o}:void 0);La()}function Pm(t,e){const n=Xo.get(t);return n&&n.get(e)}const Im=En("__proto__,__v_isRef,__isVue"),lu=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Hn)),cu=Am();function Am(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Ee(this);for(let o=0,i=this.length;o<i;o++)pt(r,"get",o+"");const s=r[e](...n);return s===-1||s===!1?r[e](...n.map(Ee)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){kn(),ja();const r=Ee(this)[e].apply(this,n);return La(),On(),r}}),t}function Dm(t){Hn(t)||(t=String(t));const e=Ee(this);return pt(e,"has",t),e.hasOwnProperty(t)}class uu{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?wu:bu:o?_u:yu).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=de(e);if(!s){if(i&&Ie(cu,n))return Reflect.get(cu,n,r);if(n==="hasOwnProperty")return Dm}const a=Reflect.get(e,n,r);return(Hn(n)?lu.has(n):Im(n))||(s||pt(e,"get",n),o)?a:Qe(a)?i&&Pa(n)?a:a.value:Be(a)?s?Eu(a):Bs(a):a}}class du extends uu{constructor(e=!1){super(!1,e)}set(e,n,r,s){let o=e[n];if(!this._isShallow){const l=Sn(o);if(!Tn(r)&&!Sn(r)&&(o=Ee(o),r=Ee(r)),!de(e)&&Qe(o)&&!Qe(r))return l?!1:(o.value=r,!0)}const i=de(e)&&Pa(n)?Number(n)<e.length:Ie(e,n),a=Reflect.set(e,n,r,s);return e===Ee(s)&&(i?zn(r,o)&&ln(e,"set",n,r,o):ln(e,"add",n,r)),a}deleteProperty(e,n){const r=Ie(e,n),s=e[n],o=Reflect.deleteProperty(e,n);return o&&r&&ln(e,"delete",n,void 0,s),o}has(e,n){const r=Reflect.has(e,n);return(!Hn(n)||!lu.has(n))&&pt(e,"has",n),r}ownKeys(e){return pt(e,"iterate",de(e)?"length":xr),Reflect.ownKeys(e)}}class fu extends uu{constructor(e=!1){super(!0,e)}set(e,n){return rt.NODE_ENV!=="production"&&an(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return rt.NODE_ENV!=="production"&&an(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const Vm=new du,Rm=new fu,jm=new du(!0),Lm=new fu(!0),Za=t=>t,Qo=t=>Reflect.getPrototypeOf(t);function ei(t,e,n=!1,r=!1){t=t.__v_raw;const s=Ee(t),o=Ee(e);n||(zn(e,o)&&pt(s,"get",e),pt(s,"get",o));const{has:i}=Qo(s),a=r?Za:n?Ba:Fs;if(i.call(s,e))return a(t.get(e));if(i.call(s,o))return a(t.get(o));t!==s&&t.get(e)}function ti(t,e=!1){const n=this.__v_raw,r=Ee(n),s=Ee(t);return e||(zn(t,s)&&pt(r,"has",t),pt(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function ni(t,e=!1){return t=t.__v_raw,!e&&pt(Ee(t),"iterate",xr),Reflect.get(t,"size",t)}function pu(t,e=!1){!e&&!Tn(t)&&!Sn(t)&&(t=Ee(t));const n=Ee(this);return Qo(n).has.call(n,t)||(n.add(t),ln(n,"add",t,t)),this}function hu(t,e,n=!1){!n&&!Tn(e)&&!Sn(e)&&(e=Ee(e));const r=Ee(this),{has:s,get:o}=Qo(r);let i=s.call(r,t);i?rt.NODE_ENV!=="production"&&gu(r,s,t):(t=Ee(t),i=s.call(r,t));const a=o.call(r,t);return r.set(t,e),i?zn(e,a)&&ln(r,"set",t,e,a):ln(r,"add",t,e),this}function mu(t){const e=Ee(this),{has:n,get:r}=Qo(e);let s=n.call(e,t);s?rt.NODE_ENV!=="production"&&gu(e,n,t):(t=Ee(t),s=n.call(e,t));const o=r?r.call(e,t):void 0,i=e.delete(t);return s&&ln(e,"delete",t,void 0,o),i}function vu(){const t=Ee(this),e=t.size!==0,n=rt.NODE_ENV!=="production"?_r(t)?new Map(t):new Set(t):void 0,r=t.clear();return e&&ln(t,"clear",void 0,void 0,n),r}function ri(t,e){return function(r,s){const o=this,i=o.__v_raw,a=Ee(i),l=e?Za:t?Ba:Fs;return!t&&pt(a,"iterate",xr),i.forEach((c,u)=>r.call(s,l(c),l(u),o))}}function si(t,e,n){return function(...r){const s=this.__v_raw,o=Ee(s),i=_r(o),a=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,c=s[t](...r),u=n?Za:e?Ba:Fs;return!e&&pt(o,"iterate",l?Ua:xr),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Wn(t){return function(...e){if(rt.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";an(`${br(t)} operation ${n}failed: target is readonly.`,Ee(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function Mm(){const t={get(o){return ei(this,o)},get size(){return ni(this)},has:ti,add:pu,set:hu,delete:mu,clear:vu,forEach:ri(!1,!1)},e={get(o){return ei(this,o,!1,!0)},get size(){return ni(this)},has:ti,add(o){return pu.call(this,o,!0)},set(o,i){return hu.call(this,o,i,!0)},delete:mu,clear:vu,forEach:ri(!1,!0)},n={get(o){return ei(this,o,!0)},get size(){return ni(this,!0)},has(o){return ti.call(this,o,!0)},add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear"),forEach:ri(!0,!1)},r={get(o){return ei(this,o,!0,!0)},get size(){return ni(this,!0)},has(o){return ti.call(this,o,!0)},add:Wn("add"),set:Wn("set"),delete:Wn("delete"),clear:Wn("clear"),forEach:ri(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=si(o,!1,!1),n[o]=si(o,!0,!1),e[o]=si(o,!1,!0),r[o]=si(o,!0,!0)}),[t,n,e,r]}const[Um,Zm,Bm,Fm]=Mm();function oi(t,e){const n=e?t?Fm:Bm:t?Zm:Um;return(r,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(Ie(n,s)&&s in r?n:r,s,o)}const Hm={get:oi(!1,!1)},zm={get:oi(!1,!0)},qm={get:oi(!0,!1)},Wm={get:oi(!0,!0)};function gu(t,e,n){const r=Ee(n);if(r!==n&&e.call(t,r)){const s=$a(t);an(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="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 yu=new WeakMap,_u=new WeakMap,bu=new WeakMap,wu=new WeakMap;function Km(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gm(t){return t.__v_skip||!Object.isExtensible(t)?0:Km($a(t))}function Bs(t){return Sn(t)?t:ii(t,!1,Vm,Hm,yu)}function Jm(t){return ii(t,!1,jm,zm,_u)}function Eu(t){return ii(t,!0,Rm,qm,bu)}function cn(t){return ii(t,!0,Lm,Wm,wu)}function ii(t,e,n,r,s){if(!Be(t))return rt.NODE_ENV!=="production"&&an(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const i=Gm(t);if(i===0)return t;const a=new Proxy(t,i===2?r:n);return s.set(t,a),a}function Nn(t){return Sn(t)?Nn(t.__v_raw):!!(t&&t.__v_isReactive)}function Sn(t){return!!(t&&t.__v_isReadonly)}function Tn(t){return!!(t&&t.__v_isShallow)}function ai(t){return t?!!t.__v_raw:!1}function Ee(t){const e=t&&t.__v_raw;return e?Ee(e):t}function Kn(t){return Object.isExtensible(t)&&Jo(t,"__v_skip",!0),t}const Fs=t=>Be(t)?Bs(t):t,Ba=t=>Be(t)?Eu(t):t,Ym="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 xu{constructor(e,n,r,s){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Va(()=>e(this._value),()=>li(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=Ee(this);return(!e._cacheable||e.effect.dirty)&&zn(e._value,e._value=e.effect.run())&&li(e,4),ku(e),e.effect._dirtyLevel>=2&&(rt.NODE_ENV!=="production"&&this._warnRecursive&&an(Ym,`
|
|
8
8
|
|
|
9
|
-
getter: `,this.getter),li(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Xm(t,e,n=!1){let r,s;const o=me(t);o?(r=t,s=rt.NODE_ENV!=="production"?()=>{an("Write operation failed: computed value is readonly")}:nt):(r=t.get,s=t.set);const i=new xu(r,s,o||!s,n);return rt.NODE_ENV!=="production"&&e&&!n&&(i.effect.onTrack=e.onTrack,i.effect.onTrigger=e.onTrigger),i}function ku(t){var e;qn&&
|
|
9
|
+
getter: `,this.getter),li(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Xm(t,e,n=!1){let r,s;const o=me(t);o?(r=t,s=rt.NODE_ENV!=="production"?()=>{an("Write operation failed: computed value is readonly")}:nt):(r=t.get,s=t.set);const i=new xu(r,s,o||!s,n);return rt.NODE_ENV!=="production"&&e&&!n&&(i.effect.onTrack=e.onTrack,i.effect.onTrigger=e.onTrigger),i}function ku(t){var e;qn&&Er&&(t=Ee(t),ou(Er,(e=t.dep)!=null?e:t.dep=au(()=>t.dep=void 0,t instanceof xu?t:void 0),rt.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function li(t,e=4,n,r){t=Ee(t);const s=t.dep;s&&iu(s,e,rt.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n,oldValue:r}:void 0)}function Qe(t){return!!(t&&t.__v_isRef===!0)}function C(t){return Ou(t,!1)}function Qm(t){return Ou(t,!0)}function Ou(t,e){return Qe(t)?t:new ev(t,e)}class ev{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Ee(e),this._value=n?e:Fs(e)}get value(){return ku(this),this._value}set value(e){const n=this.__v_isShallow||Tn(e)||Sn(e);if(e=n?e:Ee(e),zn(e,this._rawValue)){const r=this._rawValue;this._rawValue=e,this._value=n?e:Fs(e),li(this,4,e,r)}}}function b(t){return Qe(t)?t.value:t}function tv(t){return me(t)?t():b(t)}const nv={get:(t,e,n)=>b(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return Qe(s)&&!Qe(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function Nu(t){return Nn(t)?t:new Proxy(t,nv)}function Su(t){rt.NODE_ENV!=="production"&&!ai(t)&&an("toRefs() expects a reactive object but received a plain one.");const e=de(t)?new Array(t.length):{};for(const n in t)e[n]=Tu(t,n);return e}class rv{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Pm(Ee(this._object),this._key)}}class sv{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Fa(t,e,n){return Qe(t)?t:me(t)?new sv(t):Be(t)&&arguments.length>1?Tu(t,e,n):C(t)}function Tu(t,e,n){const r=t[e];return Qe(r)?r:new rv(t,e,n)}var v={};const kr=[];function ci(t){kr.push(t)}function ui(){kr.pop()}let Ha=!1;function U(t,...e){if(Ha)return;Ha=!0,kn();const n=kr.length?kr[kr.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=ov();if(r)Cn(r,n,11,[t+e.map(o=>{var i,a;return(a=(i=o.toString)==null?void 0:i.call(o))!=null?a:JSON.stringify(o)}).join(""),n&&n.proxy,s.map(({vnode:o})=>`at <${Ci(n,o.type)}>`).join(`
|
|
10
10
|
`),s]);else{const o=[`[Vue warn]: ${t}`,...e];s.length&&o.push(`
|
|
11
|
-
`,...iv(s)),console.warn(...o)}On(),Ha=!1}function ov(){let t=
|
|
12
|
-
`],...av(n))}),e}function av({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${Ci(t.component,t.type,r)}`,o=">"+n;return t.props?[s,...lv(t.props),o]:[s+o]}function lv(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...Cu(r,t[r]))}),n.length>3&&e.push(" ..."),e}function Cu(t,e,n){return Xe(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Qe(e)?(e=Cu(t,Ee(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):me(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Ee(e),n?e:[`${t}=`,e])}function cv(t,e){v.NODE_ENV!=="production"&&t!==void 0&&(typeof t!="number"?U(`${e} is not a valid number - got ${JSON.stringify(t)}.`):isNaN(t)&&U(`${e} is NaN - the duration expression might be incorrect.`))}const za={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 Cn(t,e,n,r){try{return r?t(...r):t()}catch(s){Hs(s,e,n)}}function Ut(t,e,n,r){if(me(t)){const s=Cn(t,e,n,r);return s&&Ca(s)&&s.catch(o=>{Hs(o,e,n)}),s}if(de(t)){const s=[];for(let o=0;o<t.length;o++)s.push(Ut(t[o],e,n,r));return s}else v.NODE_ENV!=="production"&&U(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function Hs(t,e,n,r=!0){const s=e?e.vnode:null;if(e){let o=e.parent;const i=e.proxy,a=v.NODE_ENV!=="production"?za[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,i,a)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){kn(),Cn(l,null,10,[t,i,a]),On();return}}uv(t,n,s,r)}function uv(t,e,n,r=!0){if(v.NODE_ENV!=="production"){const s=za[e];if(n&&ci(n),U(`Unhandled error${s?` during execution of ${s}`:""}`),n&&ui(),r)throw t;console.error(t)}else console.error(t)}let zs=!1,qa=!1;const yt=[];let un=0;const os=[];let Gn=null,Nr=0;const $u=Promise.resolve();let Wa=null;const dv=100;function qs(t){const e=Wa||$u;return t?e.then(this?t.bind(this):t):e}function fv(t){let e=un+1,n=yt.length;for(;e<n;){const r=e+n>>>1,s=yt[r],o=Ws(s);o<t||o===t&&s.pre?e=r+1:n=r}return e}function di(t){(!yt.length||!yt.includes(t,zs&&t.allowRecurse?un+1:un))&&(t.id==null?yt.push(t):yt.splice(fv(t.id),0,t),Pu())}function Pu(){!zs&&!qa&&(qa=!0,Wa=$u.then(Vu))}function pv(t){const e=yt.indexOf(t);e>un&&yt.splice(e,1)}function Iu(t){de(t)?os.push(...t):(!Gn||!Gn.includes(t,t.allowRecurse?Nr+1:Nr))&&os.push(t),Pu()}function Au(t,e,n=zs?un+1:0){for(v.NODE_ENV!=="production"&&(e=e||new Map);n<yt.length;n++){const r=yt[n];if(r&&r.pre){if(t&&r.id!==t.uid||v.NODE_ENV!=="production"&&Ka(e,r))continue;yt.splice(n,1),n--,r()}}}function Du(t){if(os.length){const e=[...new Set(os)].sort((n,r)=>Ws(n)-Ws(r));if(os.length=0,Gn){Gn.push(...e);return}for(Gn=e,v.NODE_ENV!=="production"&&(t=t||new Map),Nr=0;Nr<Gn.length;Nr++){const n=Gn[Nr];v.NODE_ENV!=="production"&&Ka(t,n)||n.active!==!1&&n()}Gn=null,Nr=0}}const Ws=t=>t.id==null?1/0:t.id,hv=(t,e)=>{const n=Ws(t)-Ws(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Vu(t){qa=!1,zs=!0,v.NODE_ENV!=="production"&&(t=t||new Map),yt.sort(hv);const e=v.NODE_ENV!=="production"?n=>Ka(t,n):nt;try{for(un=0;un<yt.length;un++){const n=yt[un];if(n&&n.active!==!1){if(v.NODE_ENV!=="production"&&e(n))continue;Cn(n,n.i,n.i?15:14)}}}finally{un=0,yt.length=0,Du(t),zs=!1,Wa=null,(yt.length||os.length)&&Vu(t)}}function Ka(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>dv){const r=e.i,s=r&&Ol(r.type);return Hs(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. 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 t.set(e,n+1)}}let Jn=!1;const fi=new Map;v.NODE_ENV!=="production"&&(Ia().__VUE_HMR_RUNTIME__={createRecord:Ga(Ru),rerender:Ga(gv),reload:Ga(yv)});const Sr=new Map;function mv(t){const e=t.type.__hmrId;let n=Sr.get(e);n||(Ru(e,t.type),n=Sr.get(e)),n.instances.add(t)}function vv(t){Sr.get(t.type.__hmrId).instances.delete(t)}function Ru(t,e){return Sr.has(t)?!1:(Sr.set(t,{initialDef:pi(e),instances:new Set}),!0)}function pi(t){return Ld(t)?t.__vccOpts:t}function gv(t,e){const n=Sr.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,pi(r.type).render=e),r.renderCache=[],Jn=!0,r.effect.dirty=!0,r.update(),Jn=!1}))}function yv(t,e){const n=Sr.get(t);if(!n)return;e=pi(e),ju(n.initialDef,e);const r=[...n.instances];for(let s=0;s<r.length;s++){const o=r[s],i=pi(o.type);let a=fi.get(i);a||(i!==n.initialDef&&ju(i,e),fi.set(i,a=new Set)),a.add(o),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(a.add(o),o.ceReload(e.styles),a.delete(o)):o.parent?(o.parent.effect.dirty=!0,di(()=>{o.parent.update(),a.delete(o)})):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Iu(()=>{fi.clear()})}function ju(t,e){tt(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function Ga(t){return(e,n)=>{try{return t(e,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let dn,Ks=[],Ja=!1;function Gs(t,...e){dn?dn.emit(t,...e):Ja||Ks.push({event:t,args:e})}function Lu(t,e){var n,r;dn=t,dn?(dn.enabled=!0,Ks.forEach(({event:s,args:o})=>dn.emit(s,...o)),Ks=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Lu(o,e)}),setTimeout(()=>{dn||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ja=!0,Ks=[])},3e3)):(Ja=!0,Ks=[])}function _v(t,e){Gs("app:init",t,e,{Fragment:Re,Text:to,Comment:st,Static:no})}function bv(t){Gs("app:unmount",t)}const wv=Ya("component:added"),Mu=Ya("component:updated"),Ev=Ya("component:removed"),xv=t=>{dn&&typeof dn.cleanupBuffer=="function"&&!dn.cleanupBuffer(t)&&Ev(t)};/*! #__NO_SIDE_EFFECTS__ */function Ya(t){return e=>{Gs(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const kv=Uu("perf:start"),Ov=Uu("perf:end");function Uu(t){return(e,n,r)=>{Gs(t,e.appContext.app,e.uid,e,n,r)}}function Nv(t,e,n){Gs("component:emit",t.appContext.app,t,e,n)}let at=null,hi=null;function mi(t){const e=at;return at=t,hi=t&&t.type.__scopeId||null,e}function Sv(t){hi=t}function Tv(){hi=null}function ke(t,e=at,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&Td(-1);const o=mi(e);let i;try{i=t(...s)}finally{mi(o),r._d&&Td(1)}return v.NODE_ENV!=="production"&&Mu(e),i};return r._n=!0,r._c=!0,r._d=!0,r}function Zu(t){fm(t)&&U("Do not use built-in directive ids as custom directive id: "+t)}function Tr(t,e,n,r){const s=t.dirs,o=e&&e.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(kn(),Ut(l,n,8,[t.el,a,t,e]),On())}}const Yn=Symbol("_leaveCb"),vi=Symbol("_enterCb");function Cv(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ze(()=>{t.isMounted=!0}),el(()=>{t.isUnmounting=!0}),t}const Zt=[Function,Array],Bu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zt,onEnter:Zt,onAfterEnter:Zt,onEnterCancelled:Zt,onBeforeLeave:Zt,onLeave:Zt,onAfterLeave:Zt,onLeaveCancelled:Zt,onBeforeAppear:Zt,onAppear:Zt,onAfterAppear:Zt,onAppearCancelled:Zt},Fu=t=>{const e=t.subTree;return e.component?Fu(e.component):e},$v={name:"BaseTransition",props:Bu,setup(t,{slots:e}){const n=Ni(),r=Cv();return()=>{const s=e.default&&qu(e.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){let f=!1;for(const m of s)if(m.type!==st){if(v.NODE_ENV!=="production"&&f){U("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(o=m,f=!0,v.NODE_ENV==="production")break}}const i=Ee(t),{mode:a}=i;if(v.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&U(`invalid <transition> mode: ${a}`),r.isLeaving)return Qa(o);const l=zu(o);if(!l)return Qa(o);let c=Xa(l,i,r,n,f=>c=f);gi(l,c);const u=n.subTree,d=u&&zu(u);if(d&&d.type!==st&&!Dr(l,d)&&Fu(n).type!==st){const f=Xa(d,i,r,n);if(gi(d,f),a==="out-in"&&l.type!==st)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Qa(o);a==="in-out"&&l.type!==st&&(f.delayLeave=(m,_,E)=>{const k=Hu(r,d);k[String(d.key)]=d,m[Yn]=()=>{_(),m[Yn]=void 0,delete c.delayedLeave},c.delayedLeave=E})}return o}}};function Hu(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Xa(t,e,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:_,onLeaveCancelled:E,onBeforeAppear:k,onAppear:A,onAfterAppear:B,onAppearCancelled:T}=e,J=String(t.key),P=Hu(n,t),z=(K,R)=>{K&&Ut(K,r,9,R)},N=(K,R)=>{const V=R[1];z(K,R),de(K)?K.every(I=>I.length<=1)&&V():K.length<=1&&V()},Oe={mode:i,persisted:a,beforeEnter(K){let R=l;if(!n.isMounted)if(o)R=k||l;else return;K[Yn]&&K[Yn](!0);const V=P[J];V&&Dr(t,V)&&V.el[Yn]&&V.el[Yn](),z(R,[K])},enter(K){let R=c,V=u,I=d;if(!n.isMounted)if(o)R=A||c,V=B||u,I=T||d;else return;let ce=!1;const Ze=K[vi]=w=>{ce||(ce=!0,w?z(I,[K]):z(V,[K]),Oe.delayedLeave&&Oe.delayedLeave(),K[vi]=void 0)};R?N(R,[K,Ze]):Ze()},leave(K,R){const V=String(t.key);if(K[vi]&&K[vi](!0),n.isUnmounting)return R();z(f,[K]);let I=!1;const ce=K[Yn]=Ze=>{I||(I=!0,R(),Ze?z(E,[K]):z(_,[K]),K[Yn]=void 0,P[V]===t&&delete P[V])};P[V]=t,m?N(m,[K,ce]):ce()},clone(K){const R=Xa(K,e,n,r,s);return s&&s(R),R}};return Oe}function Qa(t){if(Ys(t))return t=Wt(t),t.children=null,t}function zu(t){if(!Ys(t))return t;if(v.NODE_ENV!=="production"&&t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&me(n.default))return n.default()}}function gi(t,e){t.shapeFlag&6&&t.component?gi(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function qu(t,e=!1,n){let r=[],s=0;for(let o=0;o<t.length;o++){let i=t[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Re?(i.patchFlag&128&&s++,r=r.concat(qu(i.children,e,a))):(e||i.type!==st)&&r.push(a!=null?Wt(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function ve(t,e){return me(t)?tt({name:t.name},e,{setup:t}):t}const Js=t=>!!t.type.__asyncLoader,Ys=t=>t.type.__isKeepAlive;function Pv(t,e){Wu(t,"a",e)}function Iv(t,e){Wu(t,"da",e)}function Wu(t,e,n=ot){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(yi(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Ys(s.parent.vnode)&&Av(r,e,n,s),s=s.parent}}function Av(t,e,n,r){const s=yi(e,t,r,!0);Ot(()=>{Ta(r[e],s)},n)}function yi(t,e,n=ot,r=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...i)=>{kn();const a=oo(n),l=Ut(e,n,t,i);return a(),On(),l});return r?s.unshift(o):s.push(o),o}else if(v.NODE_ENV!=="production"){const s=Er(za[t].replace(/ hook$/,""));U(`${s} 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 $n=t=>(e,n=ot)=>{(!Ti||t==="sp")&&yi(t,(...r)=>e(...r),n)},Dv=$n("bm"),ze=$n("m"),Vv=$n("bu"),Rv=$n("u"),el=$n("bum"),Ot=$n("um"),jv=$n("sp"),Lv=$n("rtg"),Mv=$n("rtc");function Uv(t,e=ot){yi("ec",t,e)}const Zv="components",Ku=Symbol.for("v-ndc");function tl(t){return Xe(t)?Bv(Zv,t,!1)||t:t||Ku}function Bv(t,e,n=!0,r=!1){const s=at||ot;if(s){const o=s.type;{const a=Ol(o,!1);if(a&&(a===e||a===Vt(e)||a===wr(Vt(e))))return o}const i=Gu(s[t]||o[t],e)||Gu(s.appContext[t],e);return!i&&r?o:(v.NODE_ENV!=="production"&&n&&!i&&U(`Failed to resolve ${t.slice(0,-1)}: ${e}
|
|
13
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else v.NODE_ENV!=="production"&&U(`resolve${wr(t.slice(0,-1))} can only be used in render() or setup().`)}function Gu(t,e){return t&&(t[e]||t[Vt(e)]||t[wr(Vt(e))])}function fn(t,e,n,r){let s;const o=n;if(de(t)||Xe(t)){s=new Array(t.length);for(let i=0,a=t.length;i<a;i++)s[i]=e(t[i],i,void 0,o)}else if(typeof t=="number"){v.NODE_ENV!=="production"&&!Number.isInteger(t)&&U(`The v-for range expect an integer value but got ${t}.`),s=new Array(t);for(let i=0;i<t;i++)s[i]=e(i+1,i,void 0,o)}else if(Be(t))if(t[Symbol.iterator])s=Array.from(t,(i,a)=>e(i,a,void 0,o));else{const i=Object.keys(t);s=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];s[a]=e(t[c],c,a,o)}}else s=[];return s}function nl(t,e,n={},r,s){if(at.isCE||at.parent&&Js(at.parent)&&at.parent.isCE)return F("slot",n,r);let o=t[e];v.NODE_ENV!=="production"&&o&&o.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."),o=()=>[]),o&&o._c&&(o._d=!1),g();const i=o&&Ju(o(n)),a=Ve(Re,{key:(n.key||i&&i.key||`_${e}`)+(!i&&r?"_fb":"")},i||[],i&&t._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Ju(t){return t.some(e=>is(e)?!(e.type===st||e.type===Re&&!Ju(e.children)):!0)?t:null}const rl=t=>t?Dd(t)?kl(t):rl(t.parent):null,Cr=tt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>v.NODE_ENV!=="production"?cn(t.props):t.props,$attrs:t=>v.NODE_ENV!=="production"?cn(t.attrs):t.attrs,$slots:t=>v.NODE_ENV!=="production"?cn(t.slots):t.slots,$refs:t=>v.NODE_ENV!=="production"?cn(t.refs):t.refs,$parent:t=>rl(t.parent),$root:t=>rl(t.root),$emit:t=>t.emit,$options:t=>al(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,di(t.update)}),$nextTick:t=>t.n||(t.n=qs.bind(t.proxy)),$watch:t=>Og.bind(t)}),sl=t=>t==="_"||t==="$",ol=(t,e)=>t!==Ge&&!t.__isScriptSetup&&Ie(t,e),Yu={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=t;if(v.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const m=i[e];if(m!==void 0)switch(m){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(ol(r,e))return i[e]=1,r[e];if(s!==Ge&&Ie(s,e))return i[e]=2,s[e];if((c=t.propsOptions[0])&&Ie(c,e))return i[e]=3,o[e];if(n!==Ge&&Ie(n,e))return i[e]=4,n[e];il&&(i[e]=0)}}const u=Cr[e];let d,f;if(u)return e==="$attrs"?(pt(t.attrs,"get",""),v.NODE_ENV!=="production"&&ki()):v.NODE_ENV!=="production"&&e==="$slots"&&pt(t,"get",e),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Ge&&Ie(n,e))return i[e]=4,n[e];if(f=l.config.globalProperties,Ie(f,e))return f[e];v.NODE_ENV!=="production"&&at&&(!Xe(e)||e.indexOf("__v")!==0)&&(s!==Ge&&sl(e[0])&&Ie(s,e)?U(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===at&&U(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;return ol(s,e)?(s[e]=n,!0):v.NODE_ENV!=="production"&&s.__isScriptSetup&&Ie(s,e)?(U(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):r!==Ge&&Ie(r,e)?(r[e]=n,!0):Ie(t.props,e)?(v.NODE_ENV!=="production"&&U(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(v.NODE_ENV!=="production"&&U(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(v.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:n}):o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||t!==Ge&&Ie(t,i)||ol(e,i)||(a=o[0])&&Ie(a,i)||Ie(r,i)||Ie(Cr,i)||Ie(s.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ie(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};v.NODE_ENV!=="production"&&(Yu.ownKeys=t=>(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(t)));function Fv(t){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(Cr).forEach(n=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:()=>Cr[n](t),set:nt})}),e}function Hv(t){const{ctx:e,propsOptions:[n]}=t;n&&Object.keys(n).forEach(r=>{Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>t.props[r],set:nt})})}function zv(t){const{ctx:e,setupState:n}=t;Object.keys(Ee(n)).forEach(r=>{if(!n.__isScriptSetup){if(sl(r[0])){U(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:nt})}})}function Xu(t){return de(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function qv(){const t=Object.create(null);return(e,n)=>{t[n]?U(`${e} property "${n}" is already defined in ${t[n]}.`):t[n]=e}}let il=!0;function Wv(t){const e=al(t),n=t.proxy,r=t.ctx;il=!1,e.beforeCreate&&Qu(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:_,activated:E,deactivated:k,beforeDestroy:A,beforeUnmount:B,destroyed:T,unmounted:J,render:P,renderTracked:z,renderTriggered:N,errorCaptured:Oe,serverPrefetch:K,expose:R,inheritAttrs:V,components:I,directives:ce,filters:Ze}=e,w=v.NODE_ENV!=="production"?qv():null;if(v.NODE_ENV!=="production"){const[Q]=t.propsOptions;if(Q)for(const oe in Q)w("Props",oe)}if(c&&Kv(c,r,w),i)for(const Q in i){const oe=i[Q];me(oe)?(v.NODE_ENV!=="production"?Object.defineProperty(r,Q,{value:oe.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[Q]=oe.bind(n),v.NODE_ENV!=="production"&&w("Methods",Q)):v.NODE_ENV!=="production"&&U(`Method "${Q}" has type "${typeof oe}" in the component definition. Did you reference the function correctly?`)}if(s){v.NODE_ENV!=="production"&&!me(s)&&U("The data option must be a function. Plain object usage is no longer supported.");const Q=s.call(n,n);if(v.NODE_ENV!=="production"&&Ca(Q)&&U("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Be(Q))v.NODE_ENV!=="production"&&U("data() should return an object.");else if(t.data=Bs(Q),v.NODE_ENV!=="production")for(const oe in Q)w("Data",oe),sl(oe[0])||Object.defineProperty(r,oe,{configurable:!0,enumerable:!0,get:()=>Q[oe],set:nt})}if(il=!0,o)for(const Q in o){const oe=o[Q],be=me(oe)?oe.bind(n,n):me(oe.get)?oe.get.bind(n,n):nt;v.NODE_ENV!=="production"&&be===nt&&U(`Computed property "${Q}" has no getter.`);const ae=!me(oe)&&me(oe.set)?oe.set.bind(n):v.NODE_ENV!=="production"?()=>{U(`Write operation failed: computed property "${Q}" is readonly.`)}:nt,We=ee({get:be,set:ae});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>We.value,set:xt=>We.value=xt}),v.NODE_ENV!=="production"&&w("Computed",Q)}if(a)for(const Q in a)ed(a[Q],r,n,Q);if(l){const Q=me(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(oe=>{_t(oe,Q[oe])})}u&&Qu(u,t,"c");function $(Q,oe){de(oe)?oe.forEach(be=>Q(be.bind(n))):oe&&Q(oe.bind(n))}if($(Dv,d),$(ze,f),$(Vv,m),$(Rv,_),$(Pv,E),$(Iv,k),$(Uv,Oe),$(Mv,z),$(Lv,N),$(el,B),$(Ot,J),$(jv,K),de(R))if(R.length){const Q=t.exposed||(t.exposed={});R.forEach(oe=>{Object.defineProperty(Q,oe,{get:()=>n[oe],set:be=>n[oe]=be})})}else t.exposed||(t.exposed={});P&&t.render===nt&&(t.render=P),V!=null&&(t.inheritAttrs=V),I&&(t.components=I),ce&&(t.directives=ce)}function Kv(t,e,n=nt){de(t)&&(t=ll(t));for(const r in t){const s=t[r];let o;Be(s)?"default"in s?o=Me(s.from||r,s.default,!0):o=Me(s.from||r):o=Me(s),Qe(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):e[r]=o,v.NODE_ENV!=="production"&&n("Inject",r)}}function Qu(t,e,n){Ut(de(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function ed(t,e,n,r){const s=r.includes(".")?xd(n,r):()=>n[r];if(Xe(t)){const o=e[t];me(o)?lt(s,o):v.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${t}"`,o)}else if(me(t))lt(s,t.bind(n));else if(Be(t))if(de(t))t.forEach(o=>ed(o,e,n,r));else{const o=me(t.handler)?t.handler.bind(n):e[t.handler];me(o)?lt(s,o,t):v.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${t.handler}"`,o)}else v.NODE_ENV!=="production"&&U(`Invalid watch option: "${r}"`,t)}function al(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=t.appContext,a=o.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(c=>_i(l,c,i,!0)),_i(l,e,i)),Be(e)&&o.set(e,l),l}function _i(t,e,n,r=!1){const{mixins:s,extends:o}=e;o&&_i(t,o,n,!0),s&&s.forEach(i=>_i(t,i,n,!0));for(const i in e)if(r&&i==="expose")v.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=Gv[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const Gv={data:td,props:nd,emits:nd,methods:Xs,computed:Xs,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:Xs,directives:Xs,watch:Yv,provide:td,inject:Jv};function td(t,e){return e?t?function(){return tt(me(t)?t.call(this,this):t,me(e)?e.call(this,this):e)}:e:t}function Jv(t,e){return Xs(ll(t),ll(e))}function ll(t){if(de(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Nt(t,e){return t?[...new Set([].concat(t,e))]:e}function Xs(t,e){return t?tt(Object.create(null),t,e):e}function nd(t,e){return t?de(t)&&de(e)?[...new Set([...t,...e])]:tt(Object.create(null),Xu(t),Xu(e??{})):e}function Yv(t,e){if(!t)return e;if(!e)return t;const n=tt(Object.create(null),t);for(const r in e)n[r]=Nt(t[r],e[r]);return n}function rd(){return{app:null,config:{isNativeTag:um,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 Xv=0;function Qv(t,e){return function(r,s=null){me(r)||(r=tt({},r)),s!=null&&!Be(s)&&(v.NODE_ENV!=="production"&&U("root props passed to app.mount() must be an object."),s=null);const o=rd(),i=new WeakSet;let a=!1;const l=o.app={_uid:Xv++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Md,get config(){return o.config},set config(c){v.NODE_ENV!=="production"&&U("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return i.has(c)?v.NODE_ENV!=="production"&&U("Plugin has already been applied to target app."):c&&me(c.install)?(i.add(c),c.install(l,...u)):me(c)?(i.add(c),c(l,...u)):v.NODE_ENV!=="production"&&U('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return o.mixins.includes(c)?v.NODE_ENV!=="production"&&U("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):o.mixins.push(c),l},component(c,u){return v.NODE_ENV!=="production"&&El(c,o.config),u?(v.NODE_ENV!=="production"&&o.components[c]&&U(`Component "${c}" has already been registered in target app.`),o.components[c]=u,l):o.components[c]},directive(c,u){return v.NODE_ENV!=="production"&&Zu(c),u?(v.NODE_ENV!=="production"&&o.directives[c]&&U(`Directive "${c}" has already been registered in target app.`),o.directives[c]=u,l):o.directives[c]},mount(c,u,d){if(a)v.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{v.NODE_ENV!=="production"&&c.__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,s);return f.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),v.NODE_ENV!=="production"&&(o.reload=()=>{t(Wt(f),c,d)}),u&&e?e(f,c):t(f,c,d),a=!0,l._container=c,c.__vue_app__=l,v.NODE_ENV!=="production"&&(l._instance=f.component,_v(l,Md)),kl(f.component)}},unmount(){a?(t(null,l._container),v.NODE_ENV!=="production"&&(l._instance=null,bv(l)),delete l._container.__vue_app__):v.NODE_ENV!=="production"&&U("Cannot unmount an app that is not mounted.")},provide(c,u){return v.NODE_ENV!=="production"&&c in o.provides&&U(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),o.provides[c]=u,l},runWithContext(c){const u=$r;$r=l;try{return c()}finally{$r=u}}};return l}}let $r=null;function _t(t,e){if(!ot)v.NODE_ENV!=="production"&&U("provide() can only be used inside setup().");else{let n=ot.provides;const r=ot.parent&&ot.parent.provides;r===n&&(n=ot.provides=Object.create(r)),n[t]=e}}function Me(t,e,n=!1){const r=ot||at;if(r||$r){const s=$r?$r._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&me(e)?e.call(r&&r.proxy):e;v.NODE_ENV!=="production"&&U(`injection "${String(t)}" not found.`)}else v.NODE_ENV!=="production"&&U("inject() can only be used inside setup() or functional components.")}function eg(){return!!(ot||at||$r)}const sd={},od=()=>Object.create(sd),id=t=>Object.getPrototypeOf(t)===sd;function tg(t,e,n,r=!1){const s={},o=od();t.propsDefaults=Object.create(null),ad(t,e,s,o);for(const i in t.propsOptions[0])i in s||(s[i]=void 0);v.NODE_ENV!=="production"&&ud(e||{},s,t),n?t.props=r?s:Jm(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function ng(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function rg(t,e,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=t,a=Ee(s),[l]=t.propsOptions;let c=!1;if(!(v.NODE_ENV!=="production"&&ng(t))&&(r||i>0)&&!(i&16)){if(i&8){const u=t.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(xi(t.emitsOptions,f))continue;const m=e[f];if(l)if(Ie(o,f))m!==o[f]&&(o[f]=m,c=!0);else{const _=Vt(f);s[_]=cl(l,a,_,m,t,!1)}else m!==o[f]&&(o[f]=m,c=!0)}}}else{ad(t,e,s,o)&&(c=!0);let u;for(const d in a)(!e||!Ie(e,d)&&((u=xn(d))===d||!Ie(e,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=cl(l,a,d,void 0,t,!0)):delete s[d]);if(o!==a)for(const d in o)(!e||!Ie(e,d))&&(delete o[d],c=!0)}c&&ln(t.attrs,"set",""),v.NODE_ENV!=="production"&&ud(e||{},s,t)}function ad(t,e,n,r){const[s,o]=t.propsOptions;let i=!1,a;if(e)for(let l in e){if(Us(l))continue;const c=e[l];let u;s&&Ie(s,u=Vt(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:xi(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=Ee(n),c=a||Ge;for(let u=0;u<o.length;u++){const d=o[u];n[d]=cl(s,l,d,c[d],t,!Ie(c,d))}}return i}function cl(t,e,n,r,s,o){const i=t[n];if(i!=null){const a=Ie(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&me(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=oo(s);r=c[n]=l.call(null,e),u()}}else r=l}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===xn(n))&&(r=!0))}return r}const sg=new WeakMap;function ld(t,e,n=!1){const r=n?sg:e.propsCache,s=r.get(t);if(s)return s;const o=t.props,i={},a=[];let l=!1;if(!me(t)){const u=d=>{l=!0;const[f,m]=ld(d,e,!0);tt(i,f),m&&a.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return Be(t)&&r.set(t,ss),ss;if(de(o))for(let u=0;u<o.length;u++){v.NODE_ENV!=="production"&&!Xe(o[u])&&U("props must be strings when using array syntax.",o[u]);const d=Vt(o[u]);cd(d)&&(i[d]=Ge)}else if(o){v.NODE_ENV!=="production"&&!Be(o)&&U("invalid props options",o);for(const u in o){const d=Vt(u);if(cd(d)){const f=o[u],m=i[d]=de(f)||me(f)?{type:f}:tt({},f),_=m.type;let E=!1,k=!0;if(de(_))for(let A=0;A<_.length;++A){const B=_[A],T=me(B)&&B.name;if(T==="Boolean"){E=!0;break}else T==="String"&&(k=!1)}else E=me(_)&&_.name==="Boolean";m[0]=E,m[1]=k,(E||Ie(m,"default"))&&a.push(d)}}}const c=[i,a];return Be(t)&&r.set(t,c),c}function cd(t){return t[0]!=="$"&&!Us(t)?!0:(v.NODE_ENV!=="production"&&U(`Invalid prop name: "${t}" is a reserved property.`),!1)}function og(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function ud(t,e,n){const r=Ee(e),s=n.propsOptions[0];for(const o in s){let i=s[o];i!=null&&ig(o,r[o],i,v.NODE_ENV!=="production"?cn(r):r,!Ie(t,o)&&!Ie(t,xn(o)))}}function ig(t,e,n,r,s){const{type:o,required:i,validator:a,skipCheck:l}=n;if(i&&s){U('Missing required prop: "'+t+'"');return}if(!(e==null&&!i)){if(o!=null&&o!==!0&&!l){let c=!1;const u=de(o)?o:[o],d=[];for(let f=0;f<u.length&&!c;f++){const{valid:m,expectedType:_}=lg(e,u[f]);d.push(_||""),c=m}if(!c){U(cg(t,e,d));return}}a&&!a(e,r)&&U('Invalid prop: custom validator check failed for prop "'+t+'".')}}const ag=En("String,Number,Boolean,Function,Symbol,BigInt");function lg(t,e){let n;const r=og(e);if(ag(r)){const s=typeof t;n=s===r.toLowerCase(),!n&&s==="object"&&(n=t instanceof e)}else r==="Object"?n=Be(t):r==="Array"?n=de(t):r==="null"?n=t===null:n=t instanceof e;return{valid:n,expectedType:r}}function cg(t,e,n){if(n.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${t}". Expected ${n.map(wr).join(" | ")}`;const s=n[0],o=$a(e),i=dd(e,s),a=dd(e,o);return n.length===1&&fd(s)&&!ug(s,o)&&(r+=` with value ${i}`),r+=`, got ${o} `,fd(o)&&(r+=`with value ${a}.`),r}function dd(t,e){return e==="String"?`"${t}"`:e==="Number"?`${Number(t)}`:`${t}`}function fd(t){return["string","number","boolean"].some(n=>t.toLowerCase()===n)}function ug(...t){return t.some(e=>e.toLowerCase()==="boolean")}const pd=t=>t[0]==="_"||t==="$stable",ul=t=>de(t)?t.map(Kt):[Kt(t)],dg=(t,e,n)=>{if(e._n)return e;const r=ke((...s)=>(v.NODE_ENV!=="production"&&ot&&(!n||n.root===ot.root)&&U(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),ul(e(...s))),n);return r._c=!1,r},hd=(t,e,n)=>{const r=t._ctx;for(const s in t){if(pd(s))continue;const o=t[s];if(me(o))e[s]=dg(s,o,r);else if(o!=null){v.NODE_ENV!=="production"&&U(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const i=ul(o);e[s]=()=>i}}},md=(t,e)=>{v.NODE_ENV!=="production"&&!Ys(t.vnode)&&U("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=ul(e);t.slots.default=()=>n},dl=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},fg=(t,e,n)=>{const r=t.slots=od();if(t.vnode.shapeFlag&32){const s=e._;s?(dl(r,e,n),n&&Jo(r,"_",s,!0)):hd(e,r)}else e&&md(t,e)},pg=(t,e,n)=>{const{vnode:r,slots:s}=t;let o=!0,i=Ge;if(r.shapeFlag&32){const a=e._;a?v.NODE_ENV!=="production"&&Jn?(dl(s,e,n),ln(t,"set","$slots")):n&&a===1?o=!1:dl(s,e,n):(o=!e.$stable,hd(e,s)),i=e}else e&&(md(t,e),i={default:1});if(o)for(const a in s)!pd(a)&&i[a]==null&&delete s[a]};function fl(t,e,n,r,s=!1){if(de(t)){t.forEach((f,m)=>fl(f,e&&(de(e)?e[m]:e),n,r,s));return}if(Js(r)&&!s)return;const o=r.shapeFlag&4?kl(r.component):r.el,i=s?null:o,{i:a,r:l}=t;if(v.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 c=e&&e.r,u=a.refs===Ge?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(Xe(c)?(u[c]=null,Ie(d,c)&&(d[c]=null)):Qe(c)&&(c.value=null)),me(l))Cn(l,a,12,[i,u]);else{const f=Xe(l),m=Qe(l);if(f||m){const _=()=>{if(t.f){const E=f?Ie(d,l)?d[l]:u[l]:l.value;s?de(E)&&Ta(E,o):de(E)?E.includes(o)||E.push(o):f?(u[l]=[o],Ie(d,l)&&(d[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else f?(u[l]=i,Ie(d,l)&&(d[l]=i)):m?(l.value=i,t.k&&(u[t.k]=i)):v.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)};i?(_.id=-1,Pt(_,n)):_()}else v.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)}}const vd=Symbol("_vte"),hg=t=>t.__isTeleport,Pr=t=>t&&(t.disabled||t.disabled===""),gd=t=>typeof SVGElement<"u"&&t instanceof SVGElement,yd=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,pl=(t,e)=>{const n=t&&t.to;if(Xe(n))if(e){const r=e(n);return v.NODE_ENV!=="production"&&!r&&!Pr(t)&&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 v.NODE_ENV!=="production"&&U("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return v.NODE_ENV!=="production"&&!n&&!Pr(t)&&U(`Invalid Teleport target: ${n}`),n},mg={name:"Teleport",__isTeleport:!0,process(t,e,n,r,s,o,i,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:m,querySelector:_,createText:E,createComment:k}}=c,A=Pr(e.props);let{shapeFlag:B,children:T,dynamicChildren:J}=e;if(v.NODE_ENV!=="production"&&Jn&&(l=!1,J=null),t==null){const P=e.el=v.NODE_ENV!=="production"?k("teleport start"):E(""),z=e.anchor=v.NODE_ENV!=="production"?k("teleport end"):E("");m(P,n,r),m(z,n,r);const N=e.target=pl(e.props,_),Oe=bd(N,e,E,m);N?i==="svg"||gd(N)?i="svg":(i==="mathml"||yd(N))&&(i="mathml"):v.NODE_ENV!=="production"&&!A&&U("Invalid Teleport target on mount:",N,`(${typeof N})`);const K=(R,V)=>{B&16&&u(T,R,V,s,o,i,a,l)};A?K(n,z):N&&K(N,Oe)}else{e.el=t.el,e.targetStart=t.targetStart;const P=e.anchor=t.anchor,z=e.target=t.target,N=e.targetAnchor=t.targetAnchor,Oe=Pr(t.props),K=Oe?n:z,R=Oe?P:N;if(i==="svg"||gd(z)?i="svg":(i==="mathml"||yd(z))&&(i="mathml"),J?(f(t.dynamicChildren,J,K,s,o,i,a),eo(t,e,!0)):l||d(t,e,K,R,s,o,i,a,!1),A)Oe?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):bi(e,n,P,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const V=e.target=pl(e.props,_);V?bi(e,V,null,c,0):v.NODE_ENV!=="production"&&U("Invalid Teleport target on update:",z,`(${typeof z})`)}else Oe&&bi(e,z,N,c,1)}_d(e)},remove(t,e,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=t;if(d&&(s(c),s(u)),o&&s(l),i&16){const m=o||!Pr(f);for(let _=0;_<a.length;_++){const E=a[_];r(E,e,n,m,!!E.dynamicChildren)}}},move:bi,hydrate:vg};function bi(t,e,n,{o:{insert:r},m:s},o=2){o===0&&r(t.targetAnchor,e,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=t,d=o===2;if(d&&r(i,e,n),(!d||Pr(u))&&l&16)for(let f=0;f<c.length;f++)s(c[f],e,n,2);d&&r(a,e,n)}function vg(t,e,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},d){const f=e.target=pl(e.props,l);if(f){const m=f._lpa||f.firstChild;if(e.shapeFlag&16)if(Pr(e.props))e.anchor=d(i(t),e,a(t),n,r,s,o),e.targetStart=m,e.targetAnchor=m&&i(m);else{e.anchor=i(t);let _=m;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")e.targetStart=_;else if(_.data==="teleport anchor"){e.targetAnchor=_,f._lpa=e.targetAnchor&&i(e.targetAnchor);break}}_=i(_)}e.targetAnchor||bd(f,e,u,c),d(m&&i(m),e,f,n,r,s,o)}_d(e)}return e.anchor&&i(e.anchor)}const gg=mg;function _d(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}function bd(t,e,n,r){const s=e.targetStart=n(""),o=e.targetAnchor=n("");return s[vd]=o,t&&(r(s,t),r(o,t)),o}let Qs,Xn;function Pn(t,e){t.appContext.config.performance&&wi()&&Xn.mark(`vue-${e}-${t.uid}`),v.NODE_ENV!=="production"&&kv(t,e,wi()?Xn.now():Date.now())}function In(t,e){if(t.appContext.config.performance&&wi()){const n=`vue-${e}-${t.uid}`,r=n+":end";Xn.mark(r),Xn.measure(`<${Ci(t,t.type)}> ${e}`,n,r),Xn.clearMarks(n),Xn.clearMarks(r)}v.NODE_ENV!=="production"&&Ov(t,e,wi()?Xn.now():Date.now())}function wi(){return Qs!==void 0||(typeof window<"u"&&window.performance?(Qs=!0,Xn=window.performance):Qs=!1),Qs}function yg(){const t=[];if(v.NODE_ENV!=="production"&&t.length){const e=t.length>1;console.warn(`Feature flag${e?"s":""} ${t.join(", ")} ${e?"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.
|
|
11
|
+
`,...iv(s)),console.warn(...o)}On(),Ha=!1}function ov(){let t=kr[kr.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function iv(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
12
|
+
`],...av(n))}),e}function av({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${Ci(t.component,t.type,r)}`,o=">"+n;return t.props?[s,...lv(t.props),o]:[s+o]}function lv(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...Cu(r,t[r]))}),n.length>3&&e.push(" ..."),e}function Cu(t,e,n){return Xe(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Qe(e)?(e=Cu(t,Ee(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):me(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Ee(e),n?e:[`${t}=`,e])}function cv(t,e){v.NODE_ENV!=="production"&&t!==void 0&&(typeof t!="number"?U(`${e} is not a valid number - got ${JSON.stringify(t)}.`):isNaN(t)&&U(`${e} is NaN - the duration expression might be incorrect.`))}const za={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 Cn(t,e,n,r){try{return r?t(...r):t()}catch(s){Hs(s,e,n)}}function Ut(t,e,n,r){if(me(t)){const s=Cn(t,e,n,r);return s&&Ca(s)&&s.catch(o=>{Hs(o,e,n)}),s}if(de(t)){const s=[];for(let o=0;o<t.length;o++)s.push(Ut(t[o],e,n,r));return s}else v.NODE_ENV!=="production"&&U(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function Hs(t,e,n,r=!0){const s=e?e.vnode:null;if(e){let o=e.parent;const i=e.proxy,a=v.NODE_ENV!=="production"?za[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,i,a)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){kn(),Cn(l,null,10,[t,i,a]),On();return}}uv(t,n,s,r)}function uv(t,e,n,r=!0){if(v.NODE_ENV!=="production"){const s=za[e];if(n&&ci(n),U(`Unhandled error${s?` during execution of ${s}`:""}`),n&&ui(),r)throw t;console.error(t)}else console.error(t)}let zs=!1,qa=!1;const yt=[];let un=0;const ss=[];let Gn=null,Or=0;const $u=Promise.resolve();let Wa=null;const dv=100;function qs(t){const e=Wa||$u;return t?e.then(this?t.bind(this):t):e}function fv(t){let e=un+1,n=yt.length;for(;e<n;){const r=e+n>>>1,s=yt[r],o=Ws(s);o<t||o===t&&s.pre?e=r+1:n=r}return e}function di(t){(!yt.length||!yt.includes(t,zs&&t.allowRecurse?un+1:un))&&(t.id==null?yt.push(t):yt.splice(fv(t.id),0,t),Pu())}function Pu(){!zs&&!qa&&(qa=!0,Wa=$u.then(Vu))}function pv(t){const e=yt.indexOf(t);e>un&&yt.splice(e,1)}function Iu(t){de(t)?ss.push(...t):(!Gn||!Gn.includes(t,t.allowRecurse?Or+1:Or))&&ss.push(t),Pu()}function Au(t,e,n=zs?un+1:0){for(v.NODE_ENV!=="production"&&(e=e||new Map);n<yt.length;n++){const r=yt[n];if(r&&r.pre){if(t&&r.id!==t.uid||v.NODE_ENV!=="production"&&Ka(e,r))continue;yt.splice(n,1),n--,r()}}}function Du(t){if(ss.length){const e=[...new Set(ss)].sort((n,r)=>Ws(n)-Ws(r));if(ss.length=0,Gn){Gn.push(...e);return}for(Gn=e,v.NODE_ENV!=="production"&&(t=t||new Map),Or=0;Or<Gn.length;Or++){const n=Gn[Or];v.NODE_ENV!=="production"&&Ka(t,n)||n.active!==!1&&n()}Gn=null,Or=0}}const Ws=t=>t.id==null?1/0:t.id,hv=(t,e)=>{const n=Ws(t)-Ws(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Vu(t){qa=!1,zs=!0,v.NODE_ENV!=="production"&&(t=t||new Map),yt.sort(hv);const e=v.NODE_ENV!=="production"?n=>Ka(t,n):nt;try{for(un=0;un<yt.length;un++){const n=yt[un];if(n&&n.active!==!1){if(v.NODE_ENV!=="production"&&e(n))continue;Cn(n,n.i,n.i?15:14)}}}finally{un=0,yt.length=0,Du(t),zs=!1,Wa=null,(yt.length||ss.length)&&Vu(t)}}function Ka(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>dv){const r=e.i,s=r&&Ol(r.type);return Hs(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. 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 t.set(e,n+1)}}let Jn=!1;const fi=new Map;v.NODE_ENV!=="production"&&(Ia().__VUE_HMR_RUNTIME__={createRecord:Ga(Ru),rerender:Ga(gv),reload:Ga(yv)});const Nr=new Map;function mv(t){const e=t.type.__hmrId;let n=Nr.get(e);n||(Ru(e,t.type),n=Nr.get(e)),n.instances.add(t)}function vv(t){Nr.get(t.type.__hmrId).instances.delete(t)}function Ru(t,e){return Nr.has(t)?!1:(Nr.set(t,{initialDef:pi(e),instances:new Set}),!0)}function pi(t){return Ld(t)?t.__vccOpts:t}function gv(t,e){const n=Nr.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,pi(r.type).render=e),r.renderCache=[],Jn=!0,r.effect.dirty=!0,r.update(),Jn=!1}))}function yv(t,e){const n=Nr.get(t);if(!n)return;e=pi(e),ju(n.initialDef,e);const r=[...n.instances];for(let s=0;s<r.length;s++){const o=r[s],i=pi(o.type);let a=fi.get(i);a||(i!==n.initialDef&&ju(i,e),fi.set(i,a=new Set)),a.add(o),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(a.add(o),o.ceReload(e.styles),a.delete(o)):o.parent?(o.parent.effect.dirty=!0,di(()=>{o.parent.update(),a.delete(o)})):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Iu(()=>{fi.clear()})}function ju(t,e){tt(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function Ga(t){return(e,n)=>{try{return t(e,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let dn,Ks=[],Ja=!1;function Gs(t,...e){dn?dn.emit(t,...e):Ja||Ks.push({event:t,args:e})}function Lu(t,e){var n,r;dn=t,dn?(dn.enabled=!0,Ks.forEach(({event:s,args:o})=>dn.emit(s,...o)),Ks=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Lu(o,e)}),setTimeout(()=>{dn||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ja=!0,Ks=[])},3e3)):(Ja=!0,Ks=[])}function _v(t,e){Gs("app:init",t,e,{Fragment:Re,Text:to,Comment:st,Static:no})}function bv(t){Gs("app:unmount",t)}const wv=Ya("component:added"),Mu=Ya("component:updated"),Ev=Ya("component:removed"),xv=t=>{dn&&typeof dn.cleanupBuffer=="function"&&!dn.cleanupBuffer(t)&&Ev(t)};/*! #__NO_SIDE_EFFECTS__ */function Ya(t){return e=>{Gs(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const kv=Uu("perf:start"),Ov=Uu("perf:end");function Uu(t){return(e,n,r)=>{Gs(t,e.appContext.app,e.uid,e,n,r)}}function Nv(t,e,n){Gs("component:emit",t.appContext.app,t,e,n)}let at=null,hi=null;function mi(t){const e=at;return at=t,hi=t&&t.type.__scopeId||null,e}function Sv(t){hi=t}function Tv(){hi=null}function ke(t,e=at,n){if(!e||t._n)return t;const r=(...s)=>{r._d&&Td(-1);const o=mi(e);let i;try{i=t(...s)}finally{mi(o),r._d&&Td(1)}return v.NODE_ENV!=="production"&&Mu(e),i};return r._n=!0,r._c=!0,r._d=!0,r}function Zu(t){fm(t)&&U("Do not use built-in directive ids as custom directive id: "+t)}function Sr(t,e,n,r){const s=t.dirs,o=e&&e.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(kn(),Ut(l,n,8,[t.el,a,t,e]),On())}}const Yn=Symbol("_leaveCb"),vi=Symbol("_enterCb");function Cv(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ze(()=>{t.isMounted=!0}),el(()=>{t.isUnmounting=!0}),t}const Zt=[Function,Array],Bu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zt,onEnter:Zt,onAfterEnter:Zt,onEnterCancelled:Zt,onBeforeLeave:Zt,onLeave:Zt,onAfterLeave:Zt,onLeaveCancelled:Zt,onBeforeAppear:Zt,onAppear:Zt,onAfterAppear:Zt,onAppearCancelled:Zt},Fu=t=>{const e=t.subTree;return e.component?Fu(e.component):e},$v={name:"BaseTransition",props:Bu,setup(t,{slots:e}){const n=Ni(),r=Cv();return()=>{const s=e.default&&qu(e.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){let f=!1;for(const m of s)if(m.type!==st){if(v.NODE_ENV!=="production"&&f){U("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}if(o=m,f=!0,v.NODE_ENV==="production")break}}const i=Ee(t),{mode:a}=i;if(v.NODE_ENV!=="production"&&a&&a!=="in-out"&&a!=="out-in"&&a!=="default"&&U(`invalid <transition> mode: ${a}`),r.isLeaving)return Qa(o);const l=zu(o);if(!l)return Qa(o);let c=Xa(l,i,r,n,f=>c=f);gi(l,c);const u=n.subTree,d=u&&zu(u);if(d&&d.type!==st&&!Ar(l,d)&&Fu(n).type!==st){const f=Xa(d,i,r,n);if(gi(d,f),a==="out-in"&&l.type!==st)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Qa(o);a==="in-out"&&l.type!==st&&(f.delayLeave=(m,_,E)=>{const k=Hu(r,d);k[String(d.key)]=d,m[Yn]=()=>{_(),m[Yn]=void 0,delete c.delayedLeave},c.delayedLeave=E})}return o}}};function Hu(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Xa(t,e,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:m,onAfterLeave:_,onLeaveCancelled:E,onBeforeAppear:k,onAppear:A,onAfterAppear:B,onAppearCancelled:T}=e,J=String(t.key),P=Hu(n,t),z=(K,R)=>{K&&Ut(K,r,9,R)},N=(K,R)=>{const V=R[1];z(K,R),de(K)?K.every(I=>I.length<=1)&&V():K.length<=1&&V()},Oe={mode:i,persisted:a,beforeEnter(K){let R=l;if(!n.isMounted)if(o)R=k||l;else return;K[Yn]&&K[Yn](!0);const V=P[J];V&&Ar(t,V)&&V.el[Yn]&&V.el[Yn](),z(R,[K])},enter(K){let R=c,V=u,I=d;if(!n.isMounted)if(o)R=A||c,V=B||u,I=T||d;else return;let ce=!1;const Ze=K[vi]=w=>{ce||(ce=!0,w?z(I,[K]):z(V,[K]),Oe.delayedLeave&&Oe.delayedLeave(),K[vi]=void 0)};R?N(R,[K,Ze]):Ze()},leave(K,R){const V=String(t.key);if(K[vi]&&K[vi](!0),n.isUnmounting)return R();z(f,[K]);let I=!1;const ce=K[Yn]=Ze=>{I||(I=!0,R(),Ze?z(E,[K]):z(_,[K]),K[Yn]=void 0,P[V]===t&&delete P[V])};P[V]=t,m?N(m,[K,ce]):ce()},clone(K){const R=Xa(K,e,n,r,s);return s&&s(R),R}};return Oe}function Qa(t){if(Ys(t))return t=Wt(t),t.children=null,t}function zu(t){if(!Ys(t))return t;if(v.NODE_ENV!=="production"&&t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&me(n.default))return n.default()}}function gi(t,e){t.shapeFlag&6&&t.component?gi(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function qu(t,e=!1,n){let r=[],s=0;for(let o=0;o<t.length;o++){let i=t[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Re?(i.patchFlag&128&&s++,r=r.concat(qu(i.children,e,a))):(e||i.type!==st)&&r.push(a!=null?Wt(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function ve(t,e){return me(t)?tt({name:t.name},e,{setup:t}):t}const Js=t=>!!t.type.__asyncLoader,Ys=t=>t.type.__isKeepAlive;function Pv(t,e){Wu(t,"a",e)}function Iv(t,e){Wu(t,"da",e)}function Wu(t,e,n=ot){const r=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(yi(e,r,n),n){let s=n.parent;for(;s&&s.parent;)Ys(s.parent.vnode)&&Av(r,e,n,s),s=s.parent}}function Av(t,e,n,r){const s=yi(e,t,r,!0);Ot(()=>{Ta(r[e],s)},n)}function yi(t,e,n=ot,r=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...i)=>{kn();const a=oo(n),l=Ut(e,n,t,i);return a(),On(),l});return r?s.unshift(o):s.push(o),o}else if(v.NODE_ENV!=="production"){const s=wr(za[t].replace(/ hook$/,""));U(`${s} 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 $n=t=>(e,n=ot)=>{(!Ti||t==="sp")&&yi(t,(...r)=>e(...r),n)},Dv=$n("bm"),ze=$n("m"),Vv=$n("bu"),Rv=$n("u"),el=$n("bum"),Ot=$n("um"),jv=$n("sp"),Lv=$n("rtg"),Mv=$n("rtc");function Uv(t,e=ot){yi("ec",t,e)}const Zv="components",Ku=Symbol.for("v-ndc");function tl(t){return Xe(t)?Bv(Zv,t,!1)||t:t||Ku}function Bv(t,e,n=!0,r=!1){const s=at||ot;if(s){const o=s.type;{const a=Ol(o,!1);if(a&&(a===e||a===Vt(e)||a===br(Vt(e))))return o}const i=Gu(s[t]||o[t],e)||Gu(s.appContext[t],e);return!i&&r?o:(v.NODE_ENV!=="production"&&n&&!i&&U(`Failed to resolve ${t.slice(0,-1)}: ${e}
|
|
13
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),i)}else v.NODE_ENV!=="production"&&U(`resolve${br(t.slice(0,-1))} can only be used in render() or setup().`)}function Gu(t,e){return t&&(t[e]||t[Vt(e)]||t[br(Vt(e))])}function fn(t,e,n,r){let s;const o=n;if(de(t)||Xe(t)){s=new Array(t.length);for(let i=0,a=t.length;i<a;i++)s[i]=e(t[i],i,void 0,o)}else if(typeof t=="number"){v.NODE_ENV!=="production"&&!Number.isInteger(t)&&U(`The v-for range expect an integer value but got ${t}.`),s=new Array(t);for(let i=0;i<t;i++)s[i]=e(i+1,i,void 0,o)}else if(Be(t))if(t[Symbol.iterator])s=Array.from(t,(i,a)=>e(i,a,void 0,o));else{const i=Object.keys(t);s=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];s[a]=e(t[c],c,a,o)}}else s=[];return s}function nl(t,e,n={},r,s){if(at.isCE||at.parent&&Js(at.parent)&&at.parent.isCE)return F("slot",n,r);let o=t[e];v.NODE_ENV!=="production"&&o&&o.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."),o=()=>[]),o&&o._c&&(o._d=!1),g();const i=o&&Ju(o(n)),a=Ve(Re,{key:(n.key||i&&i.key||`_${e}`)+(!i&&r?"_fb":"")},i||[],i&&t._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Ju(t){return t.some(e=>os(e)?!(e.type===st||e.type===Re&&!Ju(e.children)):!0)?t:null}const rl=t=>t?Dd(t)?kl(t):rl(t.parent):null,Tr=tt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>v.NODE_ENV!=="production"?cn(t.props):t.props,$attrs:t=>v.NODE_ENV!=="production"?cn(t.attrs):t.attrs,$slots:t=>v.NODE_ENV!=="production"?cn(t.slots):t.slots,$refs:t=>v.NODE_ENV!=="production"?cn(t.refs):t.refs,$parent:t=>rl(t.parent),$root:t=>rl(t.root),$emit:t=>t.emit,$options:t=>al(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,di(t.update)}),$nextTick:t=>t.n||(t.n=qs.bind(t.proxy)),$watch:t=>Og.bind(t)}),sl=t=>t==="_"||t==="$",ol=(t,e)=>t!==Ge&&!t.__isScriptSetup&&Ie(t,e),Yu={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=t;if(v.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const m=i[e];if(m!==void 0)switch(m){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(ol(r,e))return i[e]=1,r[e];if(s!==Ge&&Ie(s,e))return i[e]=2,s[e];if((c=t.propsOptions[0])&&Ie(c,e))return i[e]=3,o[e];if(n!==Ge&&Ie(n,e))return i[e]=4,n[e];il&&(i[e]=0)}}const u=Tr[e];let d,f;if(u)return e==="$attrs"?(pt(t.attrs,"get",""),v.NODE_ENV!=="production"&&ki()):v.NODE_ENV!=="production"&&e==="$slots"&&pt(t,"get",e),u(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Ge&&Ie(n,e))return i[e]=4,n[e];if(f=l.config.globalProperties,Ie(f,e))return f[e];v.NODE_ENV!=="production"&&at&&(!Xe(e)||e.indexOf("__v")!==0)&&(s!==Ge&&sl(e[0])&&Ie(s,e)?U(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===at&&U(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:r,setupState:s,ctx:o}=t;return ol(s,e)?(s[e]=n,!0):v.NODE_ENV!=="production"&&s.__isScriptSetup&&Ie(s,e)?(U(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):r!==Ge&&Ie(r,e)?(r[e]=n,!0):Ie(t.props,e)?(v.NODE_ENV!=="production"&&U(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(v.NODE_ENV!=="production"&&U(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(v.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:n}):o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||t!==Ge&&Ie(t,i)||ol(e,i)||(a=o[0])&&Ie(a,i)||Ie(r,i)||Ie(Tr,i)||Ie(s.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ie(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};v.NODE_ENV!=="production"&&(Yu.ownKeys=t=>(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(t)));function Fv(t){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(Tr).forEach(n=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:()=>Tr[n](t),set:nt})}),e}function Hv(t){const{ctx:e,propsOptions:[n]}=t;n&&Object.keys(n).forEach(r=>{Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>t.props[r],set:nt})})}function zv(t){const{ctx:e,setupState:n}=t;Object.keys(Ee(n)).forEach(r=>{if(!n.__isScriptSetup){if(sl(r[0])){U(`setup() return property ${JSON.stringify(r)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>n[r],set:nt})}})}function Xu(t){return de(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function qv(){const t=Object.create(null);return(e,n)=>{t[n]?U(`${e} property "${n}" is already defined in ${t[n]}.`):t[n]=e}}let il=!0;function Wv(t){const e=al(t),n=t.proxy,r=t.ctx;il=!1,e.beforeCreate&&Qu(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:_,activated:E,deactivated:k,beforeDestroy:A,beforeUnmount:B,destroyed:T,unmounted:J,render:P,renderTracked:z,renderTriggered:N,errorCaptured:Oe,serverPrefetch:K,expose:R,inheritAttrs:V,components:I,directives:ce,filters:Ze}=e,w=v.NODE_ENV!=="production"?qv():null;if(v.NODE_ENV!=="production"){const[Q]=t.propsOptions;if(Q)for(const oe in Q)w("Props",oe)}if(c&&Kv(c,r,w),i)for(const Q in i){const oe=i[Q];me(oe)?(v.NODE_ENV!=="production"?Object.defineProperty(r,Q,{value:oe.bind(n),configurable:!0,enumerable:!0,writable:!0}):r[Q]=oe.bind(n),v.NODE_ENV!=="production"&&w("Methods",Q)):v.NODE_ENV!=="production"&&U(`Method "${Q}" has type "${typeof oe}" in the component definition. Did you reference the function correctly?`)}if(s){v.NODE_ENV!=="production"&&!me(s)&&U("The data option must be a function. Plain object usage is no longer supported.");const Q=s.call(n,n);if(v.NODE_ENV!=="production"&&Ca(Q)&&U("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Be(Q))v.NODE_ENV!=="production"&&U("data() should return an object.");else if(t.data=Bs(Q),v.NODE_ENV!=="production")for(const oe in Q)w("Data",oe),sl(oe[0])||Object.defineProperty(r,oe,{configurable:!0,enumerable:!0,get:()=>Q[oe],set:nt})}if(il=!0,o)for(const Q in o){const oe=o[Q],be=me(oe)?oe.bind(n,n):me(oe.get)?oe.get.bind(n,n):nt;v.NODE_ENV!=="production"&&be===nt&&U(`Computed property "${Q}" has no getter.`);const ae=!me(oe)&&me(oe.set)?oe.set.bind(n):v.NODE_ENV!=="production"?()=>{U(`Write operation failed: computed property "${Q}" is readonly.`)}:nt,We=ee({get:be,set:ae});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>We.value,set:xt=>We.value=xt}),v.NODE_ENV!=="production"&&w("Computed",Q)}if(a)for(const Q in a)ed(a[Q],r,n,Q);if(l){const Q=me(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(oe=>{_t(oe,Q[oe])})}u&&Qu(u,t,"c");function $(Q,oe){de(oe)?oe.forEach(be=>Q(be.bind(n))):oe&&Q(oe.bind(n))}if($(Dv,d),$(ze,f),$(Vv,m),$(Rv,_),$(Pv,E),$(Iv,k),$(Uv,Oe),$(Mv,z),$(Lv,N),$(el,B),$(Ot,J),$(jv,K),de(R))if(R.length){const Q=t.exposed||(t.exposed={});R.forEach(oe=>{Object.defineProperty(Q,oe,{get:()=>n[oe],set:be=>n[oe]=be})})}else t.exposed||(t.exposed={});P&&t.render===nt&&(t.render=P),V!=null&&(t.inheritAttrs=V),I&&(t.components=I),ce&&(t.directives=ce)}function Kv(t,e,n=nt){de(t)&&(t=ll(t));for(const r in t){const s=t[r];let o;Be(s)?"default"in s?o=Me(s.from||r,s.default,!0):o=Me(s.from||r):o=Me(s),Qe(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):e[r]=o,v.NODE_ENV!=="production"&&n("Inject",r)}}function Qu(t,e,n){Ut(de(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function ed(t,e,n,r){const s=r.includes(".")?xd(n,r):()=>n[r];if(Xe(t)){const o=e[t];me(o)?lt(s,o):v.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${t}"`,o)}else if(me(t))lt(s,t.bind(n));else if(Be(t))if(de(t))t.forEach(o=>ed(o,e,n,r));else{const o=me(t.handler)?t.handler.bind(n):e[t.handler];me(o)?lt(s,o,t):v.NODE_ENV!=="production"&&U(`Invalid watch handler specified by key "${t.handler}"`,o)}else v.NODE_ENV!=="production"&&U(`Invalid watch option: "${r}"`,t)}function al(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=t.appContext,a=o.get(e);let l;return a?l=a:!s.length&&!n&&!r?l=e:(l={},s.length&&s.forEach(c=>_i(l,c,i,!0)),_i(l,e,i)),Be(e)&&o.set(e,l),l}function _i(t,e,n,r=!1){const{mixins:s,extends:o}=e;o&&_i(t,o,n,!0),s&&s.forEach(i=>_i(t,i,n,!0));for(const i in e)if(r&&i==="expose")v.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=Gv[i]||n&&n[i];t[i]=a?a(t[i],e[i]):e[i]}return t}const Gv={data:td,props:nd,emits:nd,methods:Xs,computed:Xs,beforeCreate:Nt,created:Nt,beforeMount:Nt,mounted:Nt,beforeUpdate:Nt,updated:Nt,beforeDestroy:Nt,beforeUnmount:Nt,destroyed:Nt,unmounted:Nt,activated:Nt,deactivated:Nt,errorCaptured:Nt,serverPrefetch:Nt,components:Xs,directives:Xs,watch:Yv,provide:td,inject:Jv};function td(t,e){return e?t?function(){return tt(me(t)?t.call(this,this):t,me(e)?e.call(this,this):e)}:e:t}function Jv(t,e){return Xs(ll(t),ll(e))}function ll(t){if(de(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Nt(t,e){return t?[...new Set([].concat(t,e))]:e}function Xs(t,e){return t?tt(Object.create(null),t,e):e}function nd(t,e){return t?de(t)&&de(e)?[...new Set([...t,...e])]:tt(Object.create(null),Xu(t),Xu(e??{})):e}function Yv(t,e){if(!t)return e;if(!e)return t;const n=tt(Object.create(null),t);for(const r in e)n[r]=Nt(t[r],e[r]);return n}function rd(){return{app:null,config:{isNativeTag:um,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 Xv=0;function Qv(t,e){return function(r,s=null){me(r)||(r=tt({},r)),s!=null&&!Be(s)&&(v.NODE_ENV!=="production"&&U("root props passed to app.mount() must be an object."),s=null);const o=rd(),i=new WeakSet;let a=!1;const l=o.app={_uid:Xv++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Md,get config(){return o.config},set config(c){v.NODE_ENV!=="production"&&U("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return i.has(c)?v.NODE_ENV!=="production"&&U("Plugin has already been applied to target app."):c&&me(c.install)?(i.add(c),c.install(l,...u)):me(c)?(i.add(c),c(l,...u)):v.NODE_ENV!=="production"&&U('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return o.mixins.includes(c)?v.NODE_ENV!=="production"&&U("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):o.mixins.push(c),l},component(c,u){return v.NODE_ENV!=="production"&&El(c,o.config),u?(v.NODE_ENV!=="production"&&o.components[c]&&U(`Component "${c}" has already been registered in target app.`),o.components[c]=u,l):o.components[c]},directive(c,u){return v.NODE_ENV!=="production"&&Zu(c),u?(v.NODE_ENV!=="production"&&o.directives[c]&&U(`Directive "${c}" has already been registered in target app.`),o.directives[c]=u,l):o.directives[c]},mount(c,u,d){if(a)v.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{v.NODE_ENV!=="production"&&c.__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,s);return f.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),v.NODE_ENV!=="production"&&(o.reload=()=>{t(Wt(f),c,d)}),u&&e?e(f,c):t(f,c,d),a=!0,l._container=c,c.__vue_app__=l,v.NODE_ENV!=="production"&&(l._instance=f.component,_v(l,Md)),kl(f.component)}},unmount(){a?(t(null,l._container),v.NODE_ENV!=="production"&&(l._instance=null,bv(l)),delete l._container.__vue_app__):v.NODE_ENV!=="production"&&U("Cannot unmount an app that is not mounted.")},provide(c,u){return v.NODE_ENV!=="production"&&c in o.provides&&U(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),o.provides[c]=u,l},runWithContext(c){const u=Cr;Cr=l;try{return c()}finally{Cr=u}}};return l}}let Cr=null;function _t(t,e){if(!ot)v.NODE_ENV!=="production"&&U("provide() can only be used inside setup().");else{let n=ot.provides;const r=ot.parent&&ot.parent.provides;r===n&&(n=ot.provides=Object.create(r)),n[t]=e}}function Me(t,e,n=!1){const r=ot||at;if(r||Cr){const s=Cr?Cr._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&me(e)?e.call(r&&r.proxy):e;v.NODE_ENV!=="production"&&U(`injection "${String(t)}" not found.`)}else v.NODE_ENV!=="production"&&U("inject() can only be used inside setup() or functional components.")}function eg(){return!!(ot||at||Cr)}const sd={},od=()=>Object.create(sd),id=t=>Object.getPrototypeOf(t)===sd;function tg(t,e,n,r=!1){const s={},o=od();t.propsDefaults=Object.create(null),ad(t,e,s,o);for(const i in t.propsOptions[0])i in s||(s[i]=void 0);v.NODE_ENV!=="production"&&ud(e||{},s,t),n?t.props=r?s:Jm(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function ng(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function rg(t,e,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=t,a=Ee(s),[l]=t.propsOptions;let c=!1;if(!(v.NODE_ENV!=="production"&&ng(t))&&(r||i>0)&&!(i&16)){if(i&8){const u=t.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(xi(t.emitsOptions,f))continue;const m=e[f];if(l)if(Ie(o,f))m!==o[f]&&(o[f]=m,c=!0);else{const _=Vt(f);s[_]=cl(l,a,_,m,t,!1)}else m!==o[f]&&(o[f]=m,c=!0)}}}else{ad(t,e,s,o)&&(c=!0);let u;for(const d in a)(!e||!Ie(e,d)&&((u=xn(d))===d||!Ie(e,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=cl(l,a,d,void 0,t,!0)):delete s[d]);if(o!==a)for(const d in o)(!e||!Ie(e,d))&&(delete o[d],c=!0)}c&&ln(t.attrs,"set",""),v.NODE_ENV!=="production"&&ud(e||{},s,t)}function ad(t,e,n,r){const[s,o]=t.propsOptions;let i=!1,a;if(e)for(let l in e){if(Us(l))continue;const c=e[l];let u;s&&Ie(s,u=Vt(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:xi(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=Ee(n),c=a||Ge;for(let u=0;u<o.length;u++){const d=o[u];n[d]=cl(s,l,d,c[d],t,!Ie(c,d))}}return i}function cl(t,e,n,r,s,o){const i=t[n];if(i!=null){const a=Ie(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&me(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=oo(s);r=c[n]=l.call(null,e),u()}}else r=l}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===xn(n))&&(r=!0))}return r}const sg=new WeakMap;function ld(t,e,n=!1){const r=n?sg:e.propsCache,s=r.get(t);if(s)return s;const o=t.props,i={},a=[];let l=!1;if(!me(t)){const u=d=>{l=!0;const[f,m]=ld(d,e,!0);tt(i,f),m&&a.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return Be(t)&&r.set(t,rs),rs;if(de(o))for(let u=0;u<o.length;u++){v.NODE_ENV!=="production"&&!Xe(o[u])&&U("props must be strings when using array syntax.",o[u]);const d=Vt(o[u]);cd(d)&&(i[d]=Ge)}else if(o){v.NODE_ENV!=="production"&&!Be(o)&&U("invalid props options",o);for(const u in o){const d=Vt(u);if(cd(d)){const f=o[u],m=i[d]=de(f)||me(f)?{type:f}:tt({},f),_=m.type;let E=!1,k=!0;if(de(_))for(let A=0;A<_.length;++A){const B=_[A],T=me(B)&&B.name;if(T==="Boolean"){E=!0;break}else T==="String"&&(k=!1)}else E=me(_)&&_.name==="Boolean";m[0]=E,m[1]=k,(E||Ie(m,"default"))&&a.push(d)}}}const c=[i,a];return Be(t)&&r.set(t,c),c}function cd(t){return t[0]!=="$"&&!Us(t)?!0:(v.NODE_ENV!=="production"&&U(`Invalid prop name: "${t}" is a reserved property.`),!1)}function og(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function ud(t,e,n){const r=Ee(e),s=n.propsOptions[0];for(const o in s){let i=s[o];i!=null&&ig(o,r[o],i,v.NODE_ENV!=="production"?cn(r):r,!Ie(t,o)&&!Ie(t,xn(o)))}}function ig(t,e,n,r,s){const{type:o,required:i,validator:a,skipCheck:l}=n;if(i&&s){U('Missing required prop: "'+t+'"');return}if(!(e==null&&!i)){if(o!=null&&o!==!0&&!l){let c=!1;const u=de(o)?o:[o],d=[];for(let f=0;f<u.length&&!c;f++){const{valid:m,expectedType:_}=lg(e,u[f]);d.push(_||""),c=m}if(!c){U(cg(t,e,d));return}}a&&!a(e,r)&&U('Invalid prop: custom validator check failed for prop "'+t+'".')}}const ag=En("String,Number,Boolean,Function,Symbol,BigInt");function lg(t,e){let n;const r=og(e);if(ag(r)){const s=typeof t;n=s===r.toLowerCase(),!n&&s==="object"&&(n=t instanceof e)}else r==="Object"?n=Be(t):r==="Array"?n=de(t):r==="null"?n=t===null:n=t instanceof e;return{valid:n,expectedType:r}}function cg(t,e,n){if(n.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let r=`Invalid prop: type check failed for prop "${t}". Expected ${n.map(br).join(" | ")}`;const s=n[0],o=$a(e),i=dd(e,s),a=dd(e,o);return n.length===1&&fd(s)&&!ug(s,o)&&(r+=` with value ${i}`),r+=`, got ${o} `,fd(o)&&(r+=`with value ${a}.`),r}function dd(t,e){return e==="String"?`"${t}"`:e==="Number"?`${Number(t)}`:`${t}`}function fd(t){return["string","number","boolean"].some(n=>t.toLowerCase()===n)}function ug(...t){return t.some(e=>e.toLowerCase()==="boolean")}const pd=t=>t[0]==="_"||t==="$stable",ul=t=>de(t)?t.map(Kt):[Kt(t)],dg=(t,e,n)=>{if(e._n)return e;const r=ke((...s)=>(v.NODE_ENV!=="production"&&ot&&(!n||n.root===ot.root)&&U(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),ul(e(...s))),n);return r._c=!1,r},hd=(t,e,n)=>{const r=t._ctx;for(const s in t){if(pd(s))continue;const o=t[s];if(me(o))e[s]=dg(s,o,r);else if(o!=null){v.NODE_ENV!=="production"&&U(`Non-function value encountered for slot "${s}". Prefer function slots for better performance.`);const i=ul(o);e[s]=()=>i}}},md=(t,e)=>{v.NODE_ENV!=="production"&&!Ys(t.vnode)&&U("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=ul(e);t.slots.default=()=>n},dl=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},fg=(t,e,n)=>{const r=t.slots=od();if(t.vnode.shapeFlag&32){const s=e._;s?(dl(r,e,n),n&&Jo(r,"_",s,!0)):hd(e,r)}else e&&md(t,e)},pg=(t,e,n)=>{const{vnode:r,slots:s}=t;let o=!0,i=Ge;if(r.shapeFlag&32){const a=e._;a?v.NODE_ENV!=="production"&&Jn?(dl(s,e,n),ln(t,"set","$slots")):n&&a===1?o=!1:dl(s,e,n):(o=!e.$stable,hd(e,s)),i=e}else e&&(md(t,e),i={default:1});if(o)for(const a in s)!pd(a)&&i[a]==null&&delete s[a]};function fl(t,e,n,r,s=!1){if(de(t)){t.forEach((f,m)=>fl(f,e&&(de(e)?e[m]:e),n,r,s));return}if(Js(r)&&!s)return;const o=r.shapeFlag&4?kl(r.component):r.el,i=s?null:o,{i:a,r:l}=t;if(v.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 c=e&&e.r,u=a.refs===Ge?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(Xe(c)?(u[c]=null,Ie(d,c)&&(d[c]=null)):Qe(c)&&(c.value=null)),me(l))Cn(l,a,12,[i,u]);else{const f=Xe(l),m=Qe(l);if(f||m){const _=()=>{if(t.f){const E=f?Ie(d,l)?d[l]:u[l]:l.value;s?de(E)&&Ta(E,o):de(E)?E.includes(o)||E.push(o):f?(u[l]=[o],Ie(d,l)&&(d[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else f?(u[l]=i,Ie(d,l)&&(d[l]=i)):m?(l.value=i,t.k&&(u[t.k]=i)):v.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)};i?(_.id=-1,Pt(_,n)):_()}else v.NODE_ENV!=="production"&&U("Invalid template ref type:",l,`(${typeof l})`)}}const vd=Symbol("_vte"),hg=t=>t.__isTeleport,$r=t=>t&&(t.disabled||t.disabled===""),gd=t=>typeof SVGElement<"u"&&t instanceof SVGElement,yd=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,pl=(t,e)=>{const n=t&&t.to;if(Xe(n))if(e){const r=e(n);return v.NODE_ENV!=="production"&&!r&&!$r(t)&&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 v.NODE_ENV!=="production"&&U("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return v.NODE_ENV!=="production"&&!n&&!$r(t)&&U(`Invalid Teleport target: ${n}`),n},mg={name:"Teleport",__isTeleport:!0,process(t,e,n,r,s,o,i,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:m,querySelector:_,createText:E,createComment:k}}=c,A=$r(e.props);let{shapeFlag:B,children:T,dynamicChildren:J}=e;if(v.NODE_ENV!=="production"&&Jn&&(l=!1,J=null),t==null){const P=e.el=v.NODE_ENV!=="production"?k("teleport start"):E(""),z=e.anchor=v.NODE_ENV!=="production"?k("teleport end"):E("");m(P,n,r),m(z,n,r);const N=e.target=pl(e.props,_),Oe=bd(N,e,E,m);N?i==="svg"||gd(N)?i="svg":(i==="mathml"||yd(N))&&(i="mathml"):v.NODE_ENV!=="production"&&!A&&U("Invalid Teleport target on mount:",N,`(${typeof N})`);const K=(R,V)=>{B&16&&u(T,R,V,s,o,i,a,l)};A?K(n,z):N&&K(N,Oe)}else{e.el=t.el,e.targetStart=t.targetStart;const P=e.anchor=t.anchor,z=e.target=t.target,N=e.targetAnchor=t.targetAnchor,Oe=$r(t.props),K=Oe?n:z,R=Oe?P:N;if(i==="svg"||gd(z)?i="svg":(i==="mathml"||yd(z))&&(i="mathml"),J?(f(t.dynamicChildren,J,K,s,o,i,a),eo(t,e,!0)):l||d(t,e,K,R,s,o,i,a,!1),A)Oe?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):bi(e,n,P,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const V=e.target=pl(e.props,_);V?bi(e,V,null,c,0):v.NODE_ENV!=="production"&&U("Invalid Teleport target on update:",z,`(${typeof z})`)}else Oe&&bi(e,z,N,c,1)}_d(e)},remove(t,e,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=t;if(d&&(s(c),s(u)),o&&s(l),i&16){const m=o||!$r(f);for(let _=0;_<a.length;_++){const E=a[_];r(E,e,n,m,!!E.dynamicChildren)}}},move:bi,hydrate:vg};function bi(t,e,n,{o:{insert:r},m:s},o=2){o===0&&r(t.targetAnchor,e,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=t,d=o===2;if(d&&r(i,e,n),(!d||$r(u))&&l&16)for(let f=0;f<c.length;f++)s(c[f],e,n,2);d&&r(a,e,n)}function vg(t,e,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},d){const f=e.target=pl(e.props,l);if(f){const m=f._lpa||f.firstChild;if(e.shapeFlag&16)if($r(e.props))e.anchor=d(i(t),e,a(t),n,r,s,o),e.targetStart=m,e.targetAnchor=m&&i(m);else{e.anchor=i(t);let _=m;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")e.targetStart=_;else if(_.data==="teleport anchor"){e.targetAnchor=_,f._lpa=e.targetAnchor&&i(e.targetAnchor);break}}_=i(_)}e.targetAnchor||bd(f,e,u,c),d(m&&i(m),e,f,n,r,s,o)}_d(e)}return e.anchor&&i(e.anchor)}const gg=mg;function _d(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}function bd(t,e,n,r){const s=e.targetStart=n(""),o=e.targetAnchor=n("");return s[vd]=o,t&&(r(s,t),r(o,t)),o}let Qs,Xn;function Pn(t,e){t.appContext.config.performance&&wi()&&Xn.mark(`vue-${e}-${t.uid}`),v.NODE_ENV!=="production"&&kv(t,e,wi()?Xn.now():Date.now())}function In(t,e){if(t.appContext.config.performance&&wi()){const n=`vue-${e}-${t.uid}`,r=n+":end";Xn.mark(r),Xn.measure(`<${Ci(t,t.type)}> ${e}`,n,r),Xn.clearMarks(n),Xn.clearMarks(r)}v.NODE_ENV!=="production"&&Ov(t,e,wi()?Xn.now():Date.now())}function wi(){return Qs!==void 0||(typeof window<"u"&&window.performance?(Qs=!0,Xn=window.performance):Qs=!1),Qs}function yg(){const t=[];if(v.NODE_ENV!=="production"&&t.length){const e=t.length>1;console.warn(`Feature flag${e?"s":""} ${t.join(", ")} ${e?"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.
|
|
14
14
|
|
|
15
|
-
For more details, see https://link.vuejs.org/feature-flags.`)}}const Pt=Ag;function _g(t){return bg(t)}function bg(t,e){yg();const n=Ia();n.__VUE__=!0,v.NODE_ENV!=="production"&&Lu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:m=nt,insertStaticContent:_}=t,E=(p,h,S,L=null,D=null,M=null,X=void 0,q=null,W=v.NODE_ENV!=="production"&&Jn?!1:!!h.dynamicChildren)=>{if(p===h)return;p&&!Dr(p,h)&&(L=ua(p),Ke(p,D,M,!0),p=null),h.patchFlag===-2&&(W=!1,h.dynamicChildren=null);const{type:j,ref:ne,shapeFlag:fe}=h;switch(j){case to:k(p,h,S,L);break;case st:A(p,h,S,L);break;case no:p==null?B(h,S,L,X):v.NODE_ENV!=="production"&&T(p,h,S,X);break;case Re:ce(p,h,S,L,D,M,X,q,W);break;default:fe&1?z(p,h,S,L,D,M,X,q,W):fe&6?Ze(p,h,S,L,D,M,X,q,W):fe&64||fe&128?j.process(p,h,S,L,D,M,X,q,W,Ao):v.NODE_ENV!=="production"&&U("Invalid VNode type:",j,`(${typeof j})`)}ne!=null&&D&&fl(ne,p&&p.ref,M,h||p,!h)},k=(p,h,S,L)=>{if(p==null)r(h.el=a(h.children),S,L);else{const D=h.el=p.el;h.children!==p.children&&c(D,h.children)}},A=(p,h,S,L)=>{p==null?r(h.el=l(h.children||""),S,L):h.el=p.el},B=(p,h,S,L)=>{[p.el,p.anchor]=_(p.children,h,S,L,p.el,p.anchor)},T=(p,h,S,L)=>{if(h.children!==p.children){const D=f(p.anchor);P(p),[h.el,h.anchor]=_(h.children,S,D,L)}else h.el=p.el,h.anchor=p.anchor},J=({el:p,anchor:h},S,L)=>{let D;for(;p&&p!==h;)D=f(p),r(p,S,L),p=D;r(h,S,L)},P=({el:p,anchor:h})=>{let S;for(;p&&p!==h;)S=f(p),s(p),p=S;s(h)},z=(p,h,S,L,D,M,X,q,W)=>{h.type==="svg"?X="svg":h.type==="math"&&(X="mathml"),p==null?N(h,S,L,D,M,X,q,W):R(p,h,D,M,X,q,W)},N=(p,h,S,L,D,M,X,q)=>{let W,j;const{props:ne,shapeFlag:fe,transition:ue,dirs:Se}=p;if(W=p.el=i(p.type,M,ne&&ne.is,ne),fe&8?u(W,p.children):fe&16&&K(p.children,W,null,L,D,hl(p,M),X,q),Se&&Tr(p,null,L,"created"),Oe(W,p,p.scopeId,X,L),ne){for(const Ye in ne)Ye!=="value"&&!Us(Ye)&&o(W,Ye,null,ne[Ye],M,L);"value"in ne&&o(W,"value",null,ne.value,M),(j=ne.onVnodeBeforeMount)&&pn(j,L,p)}v.NODE_ENV!=="production"&&(Jo(W,"__vnode",p,!0),Jo(W,"__vueParentComponent",L,!0)),Se&&Tr(p,null,L,"beforeMount");const De=wg(D,ue);De&&ue.beforeEnter(W),r(W,h,S),((j=ne&&ne.onVnodeMounted)||De||Se)&&Pt(()=>{j&&pn(j,L,p),De&&ue.enter(W),Se&&Tr(p,null,L,"mounted")},D)},Oe=(p,h,S,L,D)=>{if(S&&m(p,S),L)for(let M=0;M<L.length;M++)m(p,L[M]);if(D){let M=D.subTree;if(v.NODE_ENV!=="production"&&M.patchFlag>0&&M.patchFlag&2048&&(M=yl(M.children)||M),h===M){const X=D.vnode;Oe(p,X,X.scopeId,X.slotScopeIds,D.parent)}}},K=(p,h,S,L,D,M,X,q,W=0)=>{for(let j=W;j<p.length;j++){const ne=p[j]=q?Qn(p[j]):Kt(p[j]);E(null,ne,h,S,L,D,M,X,q)}},R=(p,h,S,L,D,M,X)=>{const q=h.el=p.el;v.NODE_ENV!=="production"&&(q.__vnode=h);let{patchFlag:W,dynamicChildren:j,dirs:ne}=h;W|=p.patchFlag&16;const fe=p.props||Ge,ue=h.props||Ge;let Se;if(S&&Ir(S,!1),(Se=ue.onVnodeBeforeUpdate)&&pn(Se,S,h,p),ne&&Tr(h,p,S,"beforeUpdate"),S&&Ir(S,!0),v.NODE_ENV!=="production"&&Jn&&(W=0,X=!1,j=null),(fe.innerHTML&&ue.innerHTML==null||fe.textContent&&ue.textContent==null)&&u(q,""),j?(V(p.dynamicChildren,j,q,S,L,hl(h,D),M),v.NODE_ENV!=="production"&&eo(p,h)):X||be(p,h,q,null,S,L,hl(h,D),M,!1),W>0){if(W&16)I(q,fe,ue,S,D);else if(W&2&&fe.class!==ue.class&&o(q,"class",null,ue.class,D),W&4&&o(q,"style",fe.style,ue.style,D),W&8){const De=h.dynamicProps;for(let Ye=0;Ye<De.length;Ye++){const He=De[Ye],ft=fe[He],en=ue[He];(en!==ft||He==="value")&&o(q,He,ft,en,D,S)}}W&1&&p.children!==h.children&&u(q,h.children)}else!X&&j==null&&I(q,fe,ue,S,D);((Se=ue.onVnodeUpdated)||ne)&&Pt(()=>{Se&&pn(Se,S,h,p),ne&&Tr(h,p,S,"updated")},L)},V=(p,h,S,L,D,M,X)=>{for(let q=0;q<h.length;q++){const W=p[q],j=h[q],ne=W.el&&(W.type===Re||!Dr(W,j)||W.shapeFlag&70)?d(W.el):S;E(W,j,ne,null,L,D,M,X,!0)}},I=(p,h,S,L,D)=>{if(h!==S){if(h!==Ge)for(const M in h)!Us(M)&&!(M in S)&&o(p,M,h[M],null,D,L);for(const M in S){if(Us(M))continue;const X=S[M],q=h[M];X!==q&&M!=="value"&&o(p,M,q,X,D,L)}"value"in S&&o(p,"value",h.value,S.value,D)}},ce=(p,h,S,L,D,M,X,q,W)=>{const j=h.el=p?p.el:a(""),ne=h.anchor=p?p.anchor:a("");let{patchFlag:fe,dynamicChildren:ue,slotScopeIds:Se}=h;v.NODE_ENV!=="production"&&(Jn||fe&2048)&&(fe=0,W=!1,ue=null),Se&&(q=q?q.concat(Se):Se),p==null?(r(j,S,L),r(ne,S,L),K(h.children||[],S,ne,D,M,X,q,W)):fe>0&&fe&64&&ue&&p.dynamicChildren?(V(p.dynamicChildren,ue,S,D,M,X,q),v.NODE_ENV!=="production"?eo(p,h):(h.key!=null||D&&h===D.subTree)&&eo(p,h,!0)):be(p,h,S,ne,D,M,X,q,W)},Ze=(p,h,S,L,D,M,X,q,W)=>{h.slotScopeIds=q,p==null?h.shapeFlag&512?D.ctx.activate(h,S,L,X,W):w(h,S,L,D,M,X,W):$(p,h,W)},w=(p,h,S,L,D,M,X)=>{const q=p.component=Ug(p,L,D);if(v.NODE_ENV!=="production"&&q.type.__hmrId&&mv(q),v.NODE_ENV!=="production"&&(ci(p),Pn(q,"mount")),Ys(p)&&(q.ctx.renderer=Ao),v.NODE_ENV!=="production"&&Pn(q,"init"),Bg(q,!1,X),v.NODE_ENV!=="production"&&In(q,"init"),q.asyncDep){if(D&&D.registerDep(q,Q,X),!p.el){const W=q.subTree=F(st);A(null,W,h,S)}}else Q(q,p,h,S,D,M,X);v.NODE_ENV!=="production"&&(ui(),In(q,"mount"))},$=(p,h,S)=>{const L=h.component=p.component;if($g(p,h,S))if(L.asyncDep&&!L.asyncResolved){v.NODE_ENV!=="production"&&ci(h),oe(L,h,S),v.NODE_ENV!=="production"&&ui();return}else L.next=h,pv(L.update),L.effect.dirty=!0,L.update();else h.el=p.el,L.vnode=h},Q=(p,h,S,L,D,M,X)=>{const q=()=>{if(p.isMounted){let{next:ne,bu:fe,u:ue,parent:Se,vnode:De}=p;{const ms=wd(p);if(ms){ne&&(ne.el=De.el,oe(p,ne,X)),ms.asyncDep.then(()=>{p.isUnmounted||q()});return}}let Ye=ne,He;v.NODE_ENV!=="production"&&ci(ne||p.vnode),Ir(p,!1),ne?(ne.el=De.el,oe(p,ne,X)):ne=De,fe&&Zs(fe),(He=ne.props&&ne.props.onVnodeBeforeUpdate)&&pn(He,Se,ne,De),Ir(p,!0),v.NODE_ENV!=="production"&&Pn(p,"render");const ft=gl(p);v.NODE_ENV!=="production"&&In(p,"render");const en=p.subTree;p.subTree=ft,v.NODE_ENV!=="production"&&Pn(p,"patch"),E(en,ft,d(en.el),ua(en),p,D,M),v.NODE_ENV!=="production"&&In(p,"patch"),ne.el=ft.el,Ye===null&&Pg(p,ft.el),ue&&Pt(ue,D),(He=ne.props&&ne.props.onVnodeUpdated)&&Pt(()=>pn(He,Se,ne,De),D),v.NODE_ENV!=="production"&&Mu(p),v.NODE_ENV!=="production"&&ui()}else{let ne;const{el:fe,props:ue}=h,{bm:Se,m:De,parent:Ye}=p,He=Js(h);if(Ir(p,!1),Se&&Zs(Se),!He&&(ne=ue&&ue.onVnodeBeforeMount)&&pn(ne,Ye,h),Ir(p,!0),fe&&Cp){const ft=()=>{v.NODE_ENV!=="production"&&Pn(p,"render"),p.subTree=gl(p),v.NODE_ENV!=="production"&&In(p,"render"),v.NODE_ENV!=="production"&&Pn(p,"hydrate"),Cp(fe,p.subTree,p,D,null),v.NODE_ENV!=="production"&&In(p,"hydrate")};He?h.type.__asyncLoader().then(()=>!p.isUnmounted&&ft()):ft()}else{v.NODE_ENV!=="production"&&Pn(p,"render");const ft=p.subTree=gl(p);v.NODE_ENV!=="production"&&In(p,"render"),v.NODE_ENV!=="production"&&Pn(p,"patch"),E(null,ft,S,L,p,D,M),v.NODE_ENV!=="production"&&In(p,"patch"),h.el=ft.el}if(De&&Pt(De,D),!He&&(ne=ue&&ue.onVnodeMounted)){const ft=h;Pt(()=>pn(ne,Ye,ft),D)}(h.shapeFlag&256||Ye&&Js(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&p.a&&Pt(p.a,D),p.isMounted=!0,v.NODE_ENV!=="production"&&wv(p),h=S=L=null}},W=p.effect=new Va(q,nt,()=>di(j),p.scope),j=p.update=()=>{W.dirty&&W.run()};j.i=p,j.id=p.uid,Ir(p,!0),v.NODE_ENV!=="production"&&(W.onTrack=p.rtc?ne=>Zs(p.rtc,ne):void 0,W.onTrigger=p.rtg?ne=>Zs(p.rtg,ne):void 0),j()},oe=(p,h,S)=>{h.component=p;const L=p.vnode.props;p.vnode=h,p.next=null,rg(p,h.props,L,S),pg(p,h.children,S),kn(),Au(p),On()},be=(p,h,S,L,D,M,X,q,W=!1)=>{const j=p&&p.children,ne=p?p.shapeFlag:0,fe=h.children,{patchFlag:ue,shapeFlag:Se}=h;if(ue>0){if(ue&128){We(j,fe,S,L,D,M,X,q,W);return}else if(ue&256){ae(j,fe,S,L,D,M,X,q,W);return}}Se&8?(ne&16&&Io(j,D,M),fe!==j&&u(S,fe)):ne&16?Se&16?We(j,fe,S,L,D,M,X,q,W):Io(j,D,M,!0):(ne&8&&u(S,""),Se&16&&K(fe,S,L,D,M,X,q,W))},ae=(p,h,S,L,D,M,X,q,W)=>{p=p||ss,h=h||ss;const j=p.length,ne=h.length,fe=Math.min(j,ne);let ue;for(ue=0;ue<fe;ue++){const Se=h[ue]=W?Qn(h[ue]):Kt(h[ue]);E(p[ue],Se,S,null,D,M,X,q,W)}j>ne?Io(p,D,M,!0,!1,fe):K(h,S,L,D,M,X,q,W,fe)},We=(p,h,S,L,D,M,X,q,W)=>{let j=0;const ne=h.length;let fe=p.length-1,ue=ne-1;for(;j<=fe&&j<=ue;){const Se=p[j],De=h[j]=W?Qn(h[j]):Kt(h[j]);if(Dr(Se,De))E(Se,De,S,null,D,M,X,q,W);else break;j++}for(;j<=fe&&j<=ue;){const Se=p[fe],De=h[ue]=W?Qn(h[ue]):Kt(h[ue]);if(Dr(Se,De))E(Se,De,S,null,D,M,X,q,W);else break;fe--,ue--}if(j>fe){if(j<=ue){const Se=ue+1,De=Se<ne?h[Se].el:L;for(;j<=ue;)E(null,h[j]=W?Qn(h[j]):Kt(h[j]),S,De,D,M,X,q,W),j++}}else if(j>ue)for(;j<=fe;)Ke(p[j],D,M,!0),j++;else{const Se=j,De=j,Ye=new Map;for(j=De;j<=ue;j++){const Ct=h[j]=W?Qn(h[j]):Kt(h[j]);Ct.key!=null&&(v.NODE_ENV!=="production"&&Ye.has(Ct.key)&&U("Duplicate keys found during update:",JSON.stringify(Ct.key),"Make sure keys are unique."),Ye.set(Ct.key,j))}let He,ft=0;const en=ue-De+1;let ms=!1,$p=0;const Do=new Array(en);for(j=0;j<en;j++)Do[j]=0;for(j=Se;j<=fe;j++){const Ct=p[j];if(ft>=en){Ke(Ct,D,M,!0);continue}let _n;if(Ct.key!=null)_n=Ye.get(Ct.key);else for(He=De;He<=ue;He++)if(Do[He-De]===0&&Dr(Ct,h[He])){_n=He;break}_n===void 0?Ke(Ct,D,M,!0):(Do[_n-De]=j+1,_n>=$p?$p=_n:ms=!0,E(Ct,h[_n],S,null,D,M,X,q,W),ft++)}const Pp=ms?Eg(Do):ss;for(He=Pp.length-1,j=en-1;j>=0;j--){const Ct=De+j,_n=h[Ct],Ip=Ct+1<ne?h[Ct+1].el:L;Do[j]===0?E(null,_n,S,Ip,D,M,X,q,W):ms&&(He<0||j!==Pp[He]?xt(_n,S,Ip,2):He--)}}},xt=(p,h,S,L,D=null)=>{const{el:M,type:X,transition:q,children:W,shapeFlag:j}=p;if(j&6){xt(p.component.subTree,h,S,L);return}if(j&128){p.suspense.move(h,S,L);return}if(j&64){X.move(p,h,S,Ao);return}if(X===Re){r(M,h,S);for(let fe=0;fe<W.length;fe++)xt(W[fe],h,S,L);r(p.anchor,h,S);return}if(X===no){J(p,h,S);return}if(L!==2&&j&1&&q)if(L===0)q.beforeEnter(M),r(M,h,S),Pt(()=>q.enter(M),D);else{const{leave:fe,delayLeave:ue,afterLeave:Se}=q,De=()=>r(M,h,S),Ye=()=>{fe(M,()=>{De(),Se&&Se()})};ue?ue(M,De,Ye):Ye()}else r(M,h,S)},Ke=(p,h,S,L=!1,D=!1)=>{const{type:M,props:X,ref:q,children:W,dynamicChildren:j,shapeFlag:ne,patchFlag:fe,dirs:ue,cacheIndex:Se}=p;if(fe===-2&&(D=!1),q!=null&&fl(q,null,S,p,!0),Se!=null&&(h.renderCache[Se]=void 0),ne&256){h.ctx.deactivate(p);return}const De=ne&1&&ue,Ye=!Js(p);let He;if(Ye&&(He=X&&X.onVnodeBeforeUnmount)&&pn(He,h,p),ne&6)ox(p.component,S,L);else{if(ne&128){p.suspense.unmount(S,L);return}De&&Tr(p,null,h,"beforeUnmount"),ne&64?p.type.remove(p,h,S,Ao,L):j&&!j.hasOnce&&(M!==Re||fe>0&&fe&64)?Io(j,h,S,!1,!0):(M===Re&&fe&384||!D&&ne&16)&&Io(W,h,S),L&&At(p)}(Ye&&(He=X&&X.onVnodeUnmounted)||De)&&Pt(()=>{He&&pn(He,h,p),De&&Tr(p,null,h,"unmounted")},S)},At=p=>{const{type:h,el:S,anchor:L,transition:D}=p;if(h===Re){v.NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&D&&!D.persisted?p.children.forEach(X=>{X.type===st?s(X.el):At(X)}):gr(S,L);return}if(h===no){P(p);return}const M=()=>{s(S),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(p.shapeFlag&1&&D&&!D.persisted){const{leave:X,delayLeave:q}=D,W=()=>X(S,M);q?q(p.el,M,W):W()}else M()},gr=(p,h)=>{let S;for(;p!==h;)S=f(p),s(p),p=S;s(h)},ox=(p,h,S)=>{v.NODE_ENV!=="production"&&p.type.__hmrId&&vv(p);const{bum:L,scope:D,update:M,subTree:X,um:q,m:W,a:j}=p;Ed(W),Ed(j),L&&Zs(L),D.stop(),M&&(M.active=!1,Ke(X,p,h,S)),q&&Pt(q,h),Pt(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve()),v.NODE_ENV!=="production"&&xv(p)},Io=(p,h,S,L=!1,D=!1,M=0)=>{for(let X=M;X<p.length;X++)Ke(p[X],h,S,L,D)},ua=p=>{if(p.shapeFlag&6)return ua(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=f(p.anchor||p.el),S=h&&h[vd];return S?f(S):h};let lc=!1;const Sp=(p,h,S)=>{p==null?h._vnode&&Ke(h._vnode,null,null,!0):E(h._vnode||null,p,h,null,null,null,S),h._vnode=p,lc||(lc=!0,Au(),Du(),lc=!1)},Ao={p:E,um:Ke,m:xt,r:At,mt:w,mc:K,pc:be,pbc:V,n:ua,o:t};let Tp,Cp;return{render:Sp,hydrate:Tp,createApp:Qv(Sp,Tp)}}function hl({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Ir({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function wg(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function eo(t,e,n=!1){const r=t.children,s=e.children;if(de(r)&&de(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=Qn(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&eo(i,a)),a.type===to&&(a.el=i.el),v.NODE_ENV!=="production"&&a.type===st&&!a.el&&(a.el=i.el)}}function Eg(t){const e=t.slice(),n=[0];let r,s,o,i,a;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(s=n[n.length-1],t[s]<c){e[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,t[n[a]]<c?o=a+1:i=a;c<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=e[i];return n}function wd(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:wd(e)}function Ed(t){if(t)for(let e=0;e<t.length;e++)t[e].active=!1}const xg=Symbol.for("v-scx"),kg=()=>{{const t=Me(xg);return t||v.NODE_ENV!=="production"&&U("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function bt(t,e){return ml(t,null,e)}const Ei={};function lt(t,e,n){return v.NODE_ENV!=="production"&&!me(e)&&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."),ml(t,e,n)}function ml(t,e,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:a}=Ge){if(e&&o){const N=e;e=(...Oe)=>{N(...Oe),z()}}v.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.'),v.NODE_ENV!=="production"&&!e&&(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.'),o!==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.")},c=ot,u=N=>r===!0?N:Ar(N,r===!1?1:void 0);let d,f=!1,m=!1;if(Qe(t)?(d=()=>t.value,f=Tn(t)):Nn(t)?(d=()=>u(t),f=!0):de(t)?(m=!0,f=t.some(N=>Nn(N)||Tn(N)),d=()=>t.map(N=>{if(Qe(N))return N.value;if(Nn(N))return u(N);if(me(N))return Cn(N,c,2);v.NODE_ENV!=="production"&&l(N)})):me(t)?e?d=()=>Cn(t,c,2):d=()=>(_&&_(),Ut(t,c,3,[E])):(d=nt,v.NODE_ENV!=="production"&&l(t)),e&&r){const N=d;d=()=>Ar(N())}let _,E=N=>{_=J.onStop=()=>{Cn(N,c,4),_=J.onStop=void 0}},k;if(Ti)if(E=nt,e?n&&Ut(e,c,3,[d(),m?[]:void 0,E]):d(),s==="sync"){const N=kg();k=N.__watcherHandles||(N.__watcherHandles=[])}else return nt;let A=m?new Array(t.length).fill(Ei):Ei;const B=()=>{if(!(!J.active||!J.dirty))if(e){const N=J.run();(r||f||(m?N.some((Oe,K)=>zn(Oe,A[K])):zn(N,A)))&&(_&&_(),Ut(e,c,3,[N,A===Ei?void 0:m&&A[0]===Ei?[]:A,E]),A=N)}else J.run()};B.allowRecurse=!!e;let T;s==="sync"?T=B:s==="post"?T=()=>Pt(B,c&&c.suspense):(B.pre=!0,c&&(B.id=c.uid),T=()=>di(B));const J=new Va(d,nt,T),P=eu(),z=()=>{J.stop(),P&&Ta(P.effects,J)};return v.NODE_ENV!=="production"&&(J.onTrack=i,J.onTrigger=a),e?n?B():A=J.run():s==="post"?Pt(J.run.bind(J),c&&c.suspense):J.run(),k&&k.push(z),z}function Og(t,e,n){const r=this.proxy,s=Xe(t)?t.includes(".")?xd(r,t):()=>r[t]:t.bind(r,r);let o;me(e)?o=e:(o=e.handler,n=e);const i=oo(this),a=ml(s,o.bind(r),n);return i(),a}function xd(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Ar(t,e=1/0,n){if(e<=0||!Be(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Qe(t))Ar(t.value,e,n);else if(de(t))for(let r=0;r<t.length;r++)Ar(t[r],e,n);else if(zc(t)||br(t))t.forEach(r=>{Ar(r,e,n)});else if(Wc(t)){for(const r in t)Ar(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Ar(t[r],e,n)}return t}const Ng=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Vt(e)}Modifiers`]||t[`${xn(e)}Modifiers`];function Sg(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Ge;if(v.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[d]}=t;if(u)if(!(e in u))(!d||!(Er(Vt(e))in d))&&U(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${Er(Vt(e))}" prop.`);else{const f=u[e];me(f)&&(f(...n)||U(`Invalid event arguments: event validation failed for event "${e}".`))}}let s=n;const o=e.startsWith("update:"),i=o&&Ng(r,e.slice(7));if(i&&(i.trim&&(s=n.map(u=>Xe(u)?u.trim():u)),i.number&&(s=n.map(mm))),v.NODE_ENV!=="production"&&Nv(t,e,s),v.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&r[Er(u)]&&U(`Event "${u}" is emitted in component ${Ci(t,t.type)} but the handler is registered for "${e}". 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 "${xn(e)}" instead of "${e}".`)}let a,l=r[a=Er(e)]||r[a=Er(Vt(e))];!l&&o&&(l=r[a=Er(xn(e))]),l&&Ut(l,t,6,s);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Ut(c,t,6,s)}}function kd(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const o=t.emits;let i={},a=!1;if(!me(t)){const l=c=>{const u=kd(c,e,!0);u&&(a=!0,tt(i,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(Be(t)&&r.set(t,null),null):(de(o)?o.forEach(l=>i[l]=null):tt(i,o),Be(t)&&r.set(t,i),i)}function xi(t,e){return!t||!Ms(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ie(t,e[0].toLowerCase()+e.slice(1))||Ie(t,xn(e))||Ie(t,e))}let vl=!1;function ki(){vl=!0}function gl(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:m,ctx:_,inheritAttrs:E}=t,k=mi(t);let A,B;v.NODE_ENV!=="production"&&(vl=!1);try{if(n.shapeFlag&4){const P=s||r,z=v.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(P,{get(N,Oe,K){return U(`Property '${String(Oe)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(N,Oe,K)}}):P;A=Kt(c.call(z,P,u,v.NODE_ENV!=="production"?cn(d):d,m,f,_)),B=a}else{const P=e;v.NODE_ENV!=="production"&&a===d&&ki(),A=Kt(P.length>1?P(v.NODE_ENV!=="production"?cn(d):d,v.NODE_ENV!=="production"?{get attrs(){return ki(),cn(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):P(v.NODE_ENV!=="production"?cn(d):d,null)),B=e.props?a:Tg(a)}}catch(P){ro.length=0,Hs(P,t,1),A=F(st)}let T=A,J;if(v.NODE_ENV!=="production"&&A.patchFlag>0&&A.patchFlag&2048&&([T,J]=Od(A)),B&&E!==!1){const P=Object.keys(B),{shapeFlag:z}=T;if(P.length){if(z&7)o&&P.some(Wo)&&(B=Cg(B,o)),T=Wt(T,B,!1,!0);else if(v.NODE_ENV!=="production"&&!vl&&T.type!==st){const N=Object.keys(a),Oe=[],K=[];for(let R=0,V=N.length;R<V;R++){const I=N[R];Ms(I)?Wo(I)||Oe.push(I[2].toLowerCase()+I.slice(3)):K.push(I)}K.length&&U(`Extraneous non-props attributes (${K.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),Oe.length&&U(`Extraneous non-emits event listeners (${Oe.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&&(v.NODE_ENV!=="production"&&!Nd(T)&&U("Runtime directive used on component with non-element root node. The directives will not function as intended."),T=Wt(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(v.NODE_ENV!=="production"&&!Nd(T)&&U("Component inside <Transition> renders non-element root node that cannot be animated."),T.transition=n.transition),v.NODE_ENV!=="production"&&J?J(T):A=T,mi(k),A}const Od=t=>{const e=t.children,n=t.dynamicChildren,r=yl(e,!1);if(r){if(v.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Od(r)}else return[t,void 0];const s=e.indexOf(r),o=n?n.indexOf(r):-1,i=a=>{e[s]=a,n&&(o>-1?n[o]=a:a.patchFlag>0&&(t.dynamicChildren=[...n,a]))};return[Kt(r),i]};function yl(t,e=!0){let n;for(let r=0;r<t.length;r++){const s=t[r];if(is(s)){if(s.type!==st||s.children==="v-if"){if(n)return;if(n=s,v.NODE_ENV!=="production"&&e&&n.patchFlag>0&&n.patchFlag&2048)return yl(n.children)}}else return}return n}const Tg=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ms(n))&&((e||(e={}))[n]=t[n]);return e},Cg=(t,e)=>{const n={};for(const r in t)(!Wo(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n},Nd=t=>t.shapeFlag&7||t.type===st;function $g(t,e,n){const{props:r,children:s,component:o}=t,{props:i,children:a,patchFlag:l}=e,c=o.emitsOptions;if(v.NODE_ENV!=="production"&&(s||a)&&Jn||e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Sd(r,i,c):!!i;if(l&8){const u=e.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(i[f]!==r[f]&&!xi(c,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Sd(r,i,c):!0:!!i;return!1}function Sd(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(e[o]!==t[o]&&!xi(n,o))return!0}return!1}function Pg({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const Ig=t=>t.__isSuspense;function Ag(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):Iu(t)}const Re=Symbol.for("v-fgt"),to=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),no=Symbol.for("v-stc"),ro=[];let jt=null;function g(t=!1){ro.push(jt=t?null:[])}function Dg(){ro.pop(),jt=ro[ro.length-1]||null}let so=1;function Td(t){so+=t,t<0&&jt&&(jt.hasOnce=!0)}function Cd(t){return t.dynamicChildren=so>0?jt||ss:null,Dg(),so>0&&jt&&jt.push(t),t}function O(t,e,n,r,s,o){return Cd(x(t,e,n,r,s,o,!0))}function Ve(t,e,n,r,s){return Cd(F(t,e,n,r,s,!0))}function is(t){return t?t.__v_isVNode===!0:!1}function Dr(t,e){if(v.NODE_ENV!=="production"&&e.shapeFlag&6&&t.component){const n=fi.get(e.type);if(n&&n.has(t.component))return t.shapeFlag&=-257,e.shapeFlag&=-513,!1}return t.type===e.type&&t.key===e.key}const Vg=(...t)=>Pd(...t),$d=({key:t})=>t??null,Oi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Xe(t)||Qe(t)||me(t)?{i:at,r:t,k:e,f:!!n}:t:null);function x(t,e=null,n=null,r=0,s=null,o=t===Re?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&$d(e),ref:e&&Oi(e),scopeId:hi,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:at};return a?(_l(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),v.NODE_ENV!=="production"&&l.key!==l.key&&U("VNode created with invalid key (NaN). VNode type:",l.type),so>0&&!i&&jt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&jt.push(l),l}const F=v.NODE_ENV!=="production"?Vg:Pd;function Pd(t,e=null,n=null,r=0,s=null,o=!1){if((!t||t===Ku)&&(v.NODE_ENV!=="production"&&!t&&U(`Invalid vnode type when creating vnode: ${t}.`),t=st),is(t)){const a=Wt(t,e,!0);return n&&_l(a,n),so>0&&!o&&jt&&(a.shapeFlag&6?jt[jt.indexOf(t)]=a:jt.push(a)),a.patchFlag=-2,a}if(Ld(t)&&(t=t.__vccOpts),e){e=Rg(e);let{class:a,style:l}=e;a&&!Xe(a)&&(e.class=Yo(a)),Be(l)&&(ai(l)&&!de(l)&&(l=tt({},l)),e.style=Aa(l))}const i=Xe(t)?1:Ig(t)?128:hg(t)?64:Be(t)?4:me(t)?2:0;return v.NODE_ENV!=="production"&&i&4&&ai(t)&&(t=Ee(t),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`.",`
|
|
16
|
-
Component that was made reactive: `,t)),x(t,e,n,r,s,i,o,!0)}function Rg(t){return t?ai(t)||id(t)?tt({},t):t:null}function Wt(t,e,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=t,c=e?bl(s||{},e):s,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&$d(c),ref:e&&e.ref?n&&o?de(o)?o.concat(Oi(e)):[o,Oi(e)]:Oi(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:v.NODE_ENV!=="production"&&i===-1&&de(a)?a.map(Id):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Wt(t.ssContent),ssFallback:t.ssFallback&&Wt(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&gi(u,l.clone(u)),u}function Id(t){const e=Wt(t);return de(t.children)&&(e.children=t.children.map(Id)),e}function je(t=" ",e=0){return F(to,null,t,e)}function jg(t,e){const n=F(no,null,t);return n.staticCount=e,n}function ge(t="",e=!1){return e?(g(),Ve(st,null,t)):F(st,null,t)}function Kt(t){return t==null||typeof t=="boolean"?F(st):de(t)?F(Re,null,t.slice()):typeof t=="object"?Qn(t):F(to,null,String(t))}function Qn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Wt(t)}function _l(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(de(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),_l(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!id(e)?e._ctx=at:s===3&&at&&(at.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else me(e)?(e={default:e,_ctx:at},n=32):(e=String(e),r&64?(n=16,e=[je(e)]):n=8);t.children=e,t.shapeFlag|=n}function bl(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=Yo([e.class,r.class]));else if(s==="style")e.style=Aa([e.style,r.style]);else if(Ms(s)){const o=e[s],i=r[s];i&&o!==i&&!(de(o)&&o.includes(i))&&(e[s]=o?[].concat(o,i):i)}else s!==""&&(e[s]=r[s])}return e}function pn(t,e,n,r=null){Ut(t,e,7,[n,r])}const Lg=rd();let Mg=0;function Ug(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||Lg,o={uid:Mg++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Xc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ld(r,s),emitsOptions:kd(r,s),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:r.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,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 v.NODE_ENV!=="production"?o.ctx=Fv(o):o.ctx={_:o},o.root=e?e.root:o,o.emit=Sg.bind(null,o),t.ce&&t.ce(o),o}let ot=null;const Ni=()=>ot||at;let Si,wl;{const t=Ia(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Si=e("__VUE_INSTANCE_SETTERS__",n=>ot=n),wl=e("__VUE_SSR_SETTERS__",n=>Ti=n)}const oo=t=>{const e=ot;return Si(t),t.scope.on(),()=>{t.scope.off(),Si(e)}},Ad=()=>{ot&&ot.scope.off(),Si(null)},Zg=En("slot,component");function El(t,{isNativeTag:e}){(Zg(t)||e(t))&&U("Do not use built-in or reserved HTML elements as component id: "+t)}function Dd(t){return t.vnode.shapeFlag&4}let Ti=!1;function Bg(t,e=!1,n=!1){e&&wl(e);const{props:r,children:s}=t.vnode,o=Dd(t);tg(t,r,o,e),fg(t,s,n);const i=o?Fg(t,e):void 0;return e&&wl(!1),i}function Fg(t,e){var n;const r=t.type;if(v.NODE_ENV!=="production"){if(r.name&&El(r.name,t.appContext.config),r.components){const o=Object.keys(r.components);for(let i=0;i<o.length;i++)El(o[i],t.appContext.config)}if(r.directives){const o=Object.keys(r.directives);for(let i=0;i<o.length;i++)Zu(o[i])}r.compilerOptions&&Hg()&&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.')}t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Yu),v.NODE_ENV!=="production"&&Hv(t);const{setup:s}=r;if(s){const o=t.setupContext=s.length>1?qg(t):null,i=oo(t);kn();const a=Cn(s,t,0,[v.NODE_ENV!=="production"?cn(t.props):t.props,o]);if(On(),i(),Ca(a)){if(a.then(Ad,Ad),e)return a.then(l=>{Vd(t,l,e)}).catch(l=>{Hs(l,t,0)});if(t.asyncDep=a,v.NODE_ENV!=="production"&&!t.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 Vd(t,a,e)}else Rd(t,e)}function Vd(t,e,n){me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Be(e)?(v.NODE_ENV!=="production"&&is(e)&&U("setup() should not return VNodes directly - return a render function instead."),v.NODE_ENV!=="production"&&(t.devtoolsRawSetupState=e),t.setupState=Nu(e),v.NODE_ENV!=="production"&&zv(t)):v.NODE_ENV!=="production"&&e!==void 0&&U(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Rd(t,n)}let xl;const Hg=()=>!xl;function Rd(t,e,n){const r=t.type;if(!t.render){if(!e&&xl&&!r.render){const s=r.template||al(t).template;if(s){v.NODE_ENV!=="production"&&Pn(t,"compile");const{isCustomElement:o,compilerOptions:i}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=tt(tt({isCustomElement:o,delimiters:a},i),l);r.render=xl(s,c),v.NODE_ENV!=="production"&&In(t,"compile")}}t.render=r.render||nt}{const s=oo(t);kn();try{Wv(t)}finally{On(),s()}}v.NODE_ENV!=="production"&&!r.render&&t.render===nt&&!e&&(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 jd=v.NODE_ENV!=="production"?{get(t,e){return ki(),pt(t,"get",""),t[e]},set(){return U("setupContext.attrs is readonly."),!1},deleteProperty(){return U("setupContext.attrs is readonly."),!1}}:{get(t,e){return pt(t,"get",""),t[e]}};function zg(t){return new Proxy(t.slots,{get(e,n){return pt(t,"get","$slots"),e[n]}})}function qg(t){const e=n=>{if(v.NODE_ENV!=="production"&&(t.exposed&&U("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(de(n)?r="array":Qe(n)&&(r="ref")),r!=="object"&&U(`expose() should be passed a plain object, received ${r}.`)}t.exposed=n||{}};if(v.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(t.attrs,jd))},get slots(){return r||(r=zg(t))},get emit(){return(s,...o)=>t.emit(s,...o)},expose:e})}else return{attrs:new Proxy(t.attrs,jd),slots:t.slots,emit:t.emit,expose:e}}function kl(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Nu(Kn(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Cr)return Cr[n](t)},has(e,n){return n in e||n in Cr}})):t.proxy}const Wg=/(?:^|[-_])(\w)/g,Kg=t=>t.replace(Wg,e=>e.toUpperCase()).replace(/[-_]/g,"");function Ol(t,e=!0){return me(t)?t.displayName||t.name:t.name||e&&t.__name}function Ci(t,e,n=!1){let r=Ol(e);if(!r&&e.__file){const s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t&&t.parent){const s=o=>{for(const i in o)if(o[i]===e)return i};r=s(t.components||t.parent.type.components)||s(t.appContext.components)}return r?Kg(r):n?"App":"Anonymous"}function Ld(t){return me(t)&&"__vccOpts"in t}const ee=(t,e)=>{const n=Xm(t,e,Ti);if(v.NODE_ENV!=="production"){const r=Ni();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function qe(t,e,n){const r=arguments.length;return r===2?Be(e)&&!de(e)?is(e)?F(t,null,[e]):F(t,e):F(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&is(n)&&(n=[n]),F(t,e,n))}function Gg(){if(v.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(d){return Be(d)?d.__isVue?["div",t,"VueInstance"]:Qe(d)?["div",{},["span",t,u(d)],"<",a(d.value),">"]:Nn(d)?["div",{},["span",t,Tn(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${Sn(d)?" (readonly)":""}`]:Sn(d)?["div",{},["span",t,Tn(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...o(d.$)]}};function o(d){const f=[];d.type.props&&d.props&&f.push(i("props",Ee(d.props))),d.setupState!==Ge&&f.push(i("setup",d.setupState)),d.data!==Ge&&f.push(i("data",Ee(d.data)));const m=l(d,"computed");m&&f.push(i("computed",m));const _=l(d,"inject");return _&&f.push(i("injected",_)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function i(d,f){return f=tt({},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",e,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",r,d]:Be(d)?["object",{object:f?Ee(d):d}]:["span",n,String(d)]}function l(d,f){const m=d.type;if(me(m))return;const _={};for(const E in d.ctx)c(m,E,f)&&(_[E]=d.ctx[E]);return _}function c(d,f,m){const _=d[m];if(de(_)&&_.includes(f)||Be(_)&&f in _||d.extends&&c(d.extends,f,m)||d.mixins&&d.mixins.some(E=>c(E,f,m)))return!0}function u(d){return Tn(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const Md="3.4.38",er=v.NODE_ENV!=="production"?U:nt;var An={};const Jg="http://www.w3.org/2000/svg",Yg="http://www.w3.org/1998/Math/MathML",Dn=typeof document<"u"?document:null,Ud=Dn&&Dn.createElement("template"),Xg={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e==="svg"?Dn.createElementNS(Jg,t):e==="mathml"?Dn.createElementNS(Yg,t):n?Dn.createElement(t,{is:n}):Dn.createElement(t);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>Dn.createTextNode(t),createComment:t=>Dn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Dn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,o){const i=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ud.innerHTML=r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t;const a=Ud.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},tr="transition",io="animation",ao=Symbol("_vtc"),lo=(t,{slots:e})=>qe($v,Qg(t),e);lo.displayName="Transition";const Zd={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};lo.props=tt({},Bu,Zd);const Vr=(t,e=[])=>{de(t)?t.forEach(n=>n(...e)):t&&t(...e)},Bd=t=>t?de(t)?t.some(e=>e.length>1):t.length>1:!1;function Qg(t){const e={};for(const I in t)I in Zd||(e[I]=t[I]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=t,_=ey(s),E=_&&_[0],k=_&&_[1],{onBeforeEnter:A,onEnter:B,onEnterCancelled:T,onLeave:J,onLeaveCancelled:P,onBeforeAppear:z=A,onAppear:N=B,onAppearCancelled:Oe=T}=e,K=(I,ce,Ze)=>{Rr(I,ce?u:a),Rr(I,ce?c:i),Ze&&Ze()},R=(I,ce)=>{I._isLeaving=!1,Rr(I,d),Rr(I,m),Rr(I,f),ce&&ce()},V=I=>(ce,Ze)=>{const w=I?N:B,$=()=>K(ce,I,Ze);Vr(w,[ce,$]),Fd(()=>{Rr(ce,I?l:o),nr(ce,I?u:a),Bd(w)||Hd(ce,r,E,$)})};return tt(e,{onBeforeEnter(I){Vr(A,[I]),nr(I,o),nr(I,i)},onBeforeAppear(I){Vr(z,[I]),nr(I,l),nr(I,c)},onEnter:V(!1),onAppear:V(!0),onLeave(I,ce){I._isLeaving=!0;const Ze=()=>R(I,ce);nr(I,d),nr(I,f),ry(),Fd(()=>{I._isLeaving&&(Rr(I,d),nr(I,m),Bd(J)||Hd(I,r,k,Ze))}),Vr(J,[I,Ze])},onEnterCancelled(I){K(I,!1),Vr(T,[I])},onAppearCancelled(I){K(I,!0),Vr(Oe,[I])},onLeaveCancelled(I){R(I),Vr(P,[I])}})}function ey(t){if(t==null)return null;if(Be(t))return[Nl(t.enter),Nl(t.leave)];{const e=Nl(t);return[e,e]}}function Nl(t){const e=vm(t);return An.NODE_ENV!=="production"&&cv(e,"<transition> explicit duration"),e}function nr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[ao]||(t[ao]=new Set)).add(e)}function Rr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[ao];n&&(n.delete(e),n.size||(t[ao]=void 0))}function Fd(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let ty=0;function Hd(t,e,n,r){const s=t._endId=++ty,o=()=>{s===t._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=ny(t,e);if(!i)return r();const c=i+"end";let u=0;const d=()=>{t.removeEventListener(c,f),o()},f=m=>{m.target===t&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),t.addEventListener(c,f)}function ny(t,e){const n=window.getComputedStyle(t),r=_=>(n[_]||"").split(", "),s=r(`${tr}Delay`),o=r(`${tr}Duration`),i=zd(s,o),a=r(`${io}Delay`),l=r(`${io}Duration`),c=zd(a,l);let u=null,d=0,f=0;e===tr?i>0&&(u=tr,d=i,f=o.length):e===io?c>0&&(u=io,d=c,f=l.length):(d=Math.max(i,c),u=d>0?i>c?tr:io:null,f=u?u===tr?o.length:l.length:0);const m=u===tr&&/\b(transform|all)(,|$)/.test(r(`${tr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:m}}function zd(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>qd(n)+qd(t[r])))}function qd(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function ry(){return document.body.offsetHeight}function sy(t,e,n){const r=t[ao];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Wd=Symbol("_vod"),oy=Symbol("_vsh"),iy=Symbol(An.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ay=/(^|;)\s*display\s*:/;function ly(t,e,n){const r=t.style,s=Xe(n);let o=!1;if(n&&!s){if(e)if(Xe(e))for(const i of e.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&$i(r,a,"")}else for(const i in e)n[i]==null&&$i(r,i,"");for(const i in n)i==="display"&&(o=!0),$i(r,i,n[i])}else if(s){if(e!==n){const i=r[iy];i&&(n+=";"+i),r.cssText=n,o=ay.test(n)}}else e&&t.removeAttribute("style");Wd in t&&(t[Wd]=o?r.display:"",t[oy]&&(r.display="none"))}const cy=/[^\\];\s*$/,Kd=/\s*!important$/;function $i(t,e,n){if(de(n))n.forEach(r=>$i(t,e,r));else if(n==null&&(n=""),An.NODE_ENV!=="production"&&cy.test(n)&&er(`Unexpected semicolon at the end of '${e}' style value: '${n}'`),e.startsWith("--"))t.setProperty(e,n);else{const r=uy(t,e);Kd.test(n)?t.setProperty(xn(r),n.replace(Kd,""),"important"):t[r]=n}}const Gd=["Webkit","Moz","ms"],Sl={};function uy(t,e){const n=Sl[e];if(n)return n;let r=Vt(e);if(r!=="filter"&&r in t)return Sl[e]=r;r=wr(r);for(let s=0;s<Gd.length;s++){const o=Gd[s]+r;if(o in t)return Sl[e]=o}return e}const Jd="http://www.w3.org/1999/xlink";function Yd(t,e,n,r,s,o=Sm(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Jd,e.slice(6,e.length)):t.setAttributeNS(Jd,e,n):n==null||o&&!Gc(n)?t.removeAttribute(e):t.setAttribute(e,o?"":Hn(n)?String(n):n)}function dy(t,e,n,r){if(e==="innerHTML"||e==="textContent"){if(n==null)return;t[e]=n;return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){const i=s==="OPTION"?t.getAttribute("value")||"":t.value,a=n==null?"":String(n);(i!==a||!("_value"in t))&&(t.value=a),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const i=typeof t[e];i==="boolean"?n=Gc(n):n==null&&i==="string"?(n="",o=!0):i==="number"&&(n=0,o=!0)}try{t[e]=n}catch(i){An.NODE_ENV!=="production"&&!o&&er(`Failed setting prop "${e}" on <${s.toLowerCase()}>: value ${n} is invalid.`,i)}o&&t.removeAttribute(e)}function fy(t,e,n,r){t.addEventListener(e,n,r)}function py(t,e,n,r){t.removeEventListener(e,n,r)}const Xd=Symbol("_vei");function hy(t,e,n,r,s=null){const o=t[Xd]||(t[Xd]={}),i=o[e];if(r&&i)i.value=An.NODE_ENV!=="production"?ef(r,e):r;else{const[a,l]=my(e);if(r){const c=o[e]=yy(An.NODE_ENV!=="production"?ef(r,e):r,s);fy(t,a,c,l)}else i&&(py(t,a,i,l),o[e]=void 0)}}const Qd=/(?:Once|Passive|Capture)$/;function my(t){let e;if(Qd.test(t)){e={};let r;for(;r=t.match(Qd);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):xn(t.slice(2)),e]}let Tl=0;const vy=Promise.resolve(),gy=()=>Tl||(vy.then(()=>Tl=0),Tl=Date.now());function yy(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ut(_y(r,n.value),e,5,[r])};return n.value=t,n.attached=gy(),n}function ef(t,e){return me(t)||de(t)?t:(er(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
|
|
17
|
-
Expected function or array of functions, received type ${typeof t}.`),nt)}function _y(t,e){if(de(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const tf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,by=(t,e,n,r,s,o)=>{const i=s==="svg";e==="class"?sy(t,r,i):e==="style"?ly(t,n,r):Ms(e)?Wo(e)||hy(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wy(t,e,r,i))?(dy(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Yd(t,e,r,i,o,e!=="value")):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Yd(t,e,r,i))};function wy(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&tf(e)&&me(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return tf(e)&&Xe(n)?!1:e in t}const Ey=["ctrl","shift","alt","meta"],xy={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Ey.some(n=>t[`${n}Key`]&&!e.includes(n))},ky=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i<e.length;i++){const a=xy[e[i]];if(a&&a(s,e))return}return t(s,...o)})},Oy=tt({patchProp:by},Xg);let nf;function Ny(){return nf||(nf=_g(Oy))}const Sy=(...t)=>{const e=Ny().createApp(...t);An.NODE_ENV!=="production"&&(Cy(e),$y(e));const{mount:n}=e;return e.mount=r=>{const s=Py(r);if(!s)return;const o=e._component;!me(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,Ty(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},e};function Ty(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Cy(t){Object.defineProperty(t.config,"isNativeTag",{value:e=>km(e)||Om(e)||Nm(e),writable:!1})}function $y(t){{const e=t.config.isCustomElement;Object.defineProperty(t.config,"isCustomElement",{get(){return e},set(){er("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=t.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(t.config,"compilerOptions",{get(){return er(r),n},set(){er(r)}})}}function Py(t){if(Xe(t)){const e=document.querySelector(t);return An.NODE_ENV!=="production"&&!e&&er(`Failed to mount app: mount target selector "${t}" returned null.`),e}return An.NODE_ENV!=="production"&&window.ShadowRoot&&t instanceof window.ShadowRoot&&t.mode==="closed"&&er('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),t}var Iy={};function Ay(){Gg()}Iy.NODE_ENV!=="production"&&Ay();let Pi;const Dy=new Uint8Array(16);function Vy(){if(!Pi&&(Pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pi(Dy)}const ht=[];for(let t=0;t<256;++t)ht.push((t+256).toString(16).slice(1));function Ry(t,e=0){return ht[t[e+0]]+ht[t[e+1]]+ht[t[e+2]]+ht[t[e+3]]+"-"+ht[t[e+4]]+ht[t[e+5]]+"-"+ht[t[e+6]]+ht[t[e+7]]+"-"+ht[t[e+8]]+ht[t[e+9]]+"-"+ht[t[e+10]]+ht[t[e+11]]+ht[t[e+12]]+ht[t[e+13]]+ht[t[e+14]]+ht[t[e+15]]}const rf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cl(t,e,n){if(rf.randomUUID&&!e&&!t)return rf.randomUUID();t=t||{};const r=t.random||(t.rng||Vy)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ry(r)}var Ue;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(Ue||(Ue={}));var $l;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})($l||($l={}));const se=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),rr=t=>{switch(typeof t){case"undefined":return se.undefined;case"string":return se.string;case"number":return isNaN(t)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(t)?se.array:t===null?se.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?se.promise:typeof Map<"u"&&t instanceof Map?se.map:typeof Set<"u"&&t instanceof Set?se.set:typeof Date<"u"&&t instanceof Date?se.date:se.object;default:return se.unknown}},H=Ue.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"]),jy=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class Gt extends Error{constructor(e){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=e}get errors(){return this.issues}format(e){const n=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(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 c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ue.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Gt.create=t=>new Gt(t);const co=(t,e)=>{let n;switch(t.code){case H.invalid_type:t.received===se.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case H.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ue.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ue.joinValues(t.keys,", ")}`;break;case H.invalid_union:n="Invalid input";break;case H.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ue.joinValues(t.options)}`;break;case H.invalid_enum_value:n=`Invalid enum value. Expected ${Ue.joinValues(t.options)}, received '${t.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 t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ue.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case H.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case H.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.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 ${t.multipleOf}`;break;case H.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ue.assertNever(t)}return{message:n}};let sf=co;function Ly(t){sf=t}function Ii(){return sf}const Ai=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,o=[...n,...s.path||[]],i={...s,path:o};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:e,defaultError:a}).message;return{...s,path:o,message:s.message||a}},My=[];function ie(t,e){const n=Ai({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ii(),co].filter(r=>!!r)});t.common.issues.push(n)}class wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return Ne;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n)r.push({key:await s.key,value:await s.value});return wt.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return Ne;o.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:e.value,value:r}}}const Ne=Object.freeze({status:"aborted"}),of=t=>({status:"dirty",value:t}),St=t=>({status:"valid",value:t}),Pl=t=>t.status==="aborted",Il=t=>t.status==="dirty",uo=t=>t.status==="valid",Di=t=>typeof Promise<"u"&&t instanceof Promise;var pe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(pe||(pe={}));class hn{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}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 af=(t,e)=>{if(uo(e))return{success:!0,data:e.value};if(!t.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 Gt(t.common.issues);return this._error=n,this._error}}};function Ce(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,a)=>i.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:r??a.defaultError}:{message:n??a.defaultError},description:s}}class Pe{constructor(e){this.spa=this.safeParseAsync,this._def=e,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(e){return rr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:rr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new wt,ctx:{common:e.parent.common,data:e.data,parsedType:rr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Di(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={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:e,parsedType:rr(e)},o=this._parseSync({data:e,path:s.path,parent:s});return af(s,o)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,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:e,parsedType:rr(e)},s=this._parse({data:e,path:r.path,parent:r}),o=await(Di(s)?s:Promise.resolve(s));return af(r,o)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=e(s),a=()=>o.addIssue({code:H.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new Xt({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Rn.create(this,this._def)}nullable(){return Ur.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yt.create(this,this._def)}promise(){return us.create(this,this._def)}or(e){return mo.create([this,e],this._def)}and(e){return vo.create(this,e,this._def)}transform(e){return new Xt({...Ce(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new wo({...Ce(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new cf({typeName:_e.ZodBranded,type:this,...Ce(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ui({...Ce(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Eo.create(this,e)}readonly(){return Bi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Uy=/^c[^\s-]{8,}$/i,Zy=/^[a-z][a-z0-9]*$/,By=/^[0-9A-HJKMNP-TV-Z]{26}$/,Fy=/^[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,Hy=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Al;const qy=/^(((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}))$/,Wy=/^(([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})))$/,Ky=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.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$"):t.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 Gy(t,e){return!!((e==="v4"||!e)&&qy.test(t)||(e==="v6"||!e)&&Wy.test(t))}class Jt extends Pe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==se.string){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.string,received:o.parsedType}),Ne}const r=new wt;let s;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")e.data.length>o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=e.data.length>o.value,a=e.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(e,s),i?ie(s,{code:H.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&ie(s,{code:H.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Hy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"email",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Al||(Al=new RegExp(zy,"u")),Al.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"emoji",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Fy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"uuid",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Uy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"cuid",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Zy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"cuid2",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")By.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"ulid",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),ie(s,{validation:"url",code:H.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"regex",code:H.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Ky(o).test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="ip"?Gy(e.data,o.version)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"ip",code:H.invalid_string,message:o.message}),r.dirty()):Ue.assertNever(o);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:H.invalid_string,...pe.errToObj(r)})}_addCheck(e){return new Jt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...pe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...pe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...pe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...pe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...pe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...pe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...pe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...pe.errToObj(e)})}datetime(e){var n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,...pe.errToObj(e==null?void 0:e.message)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...pe.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...pe.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...pe.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...pe.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...pe.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...pe.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...pe.errToObj(n)})}nonempty(e){return this.min(1,pe.errToObj(e))}trim(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Jt.create=t=>{var e;return new Jt({checks:[],typeName:_e.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ce(t)})};function Jy(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,o=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return o%i/Math.pow(10,s)}class sr extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==se.number){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.number,received:o.parsedType}),Ne}let r;const s=new wt;for(const o of this._def.checks)o.kind==="int"?Ue.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),ie(r,{code:H.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?Jy(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),ie(r,{code:H.not_finite,message:o.message}),s.dirty()):Ue.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,r,s){return new sr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:pe.toString(s)}]})}_addCheck(e){return new sr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:pe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:pe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ue.isInteger(e.value))}get isFinite(){let e=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"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}sr.create=t=>new sr({checks:[],typeName:_e.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ce(t)});class or extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==se.bigint){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.bigint,received:o.parsedType}),Ne}let r;const s=new wt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):Ue.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,r,s){return new or({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:pe.toString(s)}]})}_addCheck(e){return new or({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}or.create=t=>{var e;return new or({checks:[],typeName:_e.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ce(t)})};class fo extends Pe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==se.boolean){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.boolean,received:r.parsedType}),Ne}return St(e.data)}}fo.create=t=>new fo({typeName:_e.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ce(t)});class jr extends Pe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==se.date){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.date,received:o.parsedType}),Ne}if(isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_date}),Ne}const r=new wt;let s;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Ue.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new jr({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:pe.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:pe.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}jr.create=t=>new jr({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:_e.ZodDate,...Ce(t)});class Vi extends Pe{_parse(e){if(this._getType(e)!==se.symbol){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.symbol,received:r.parsedType}),Ne}return St(e.data)}}Vi.create=t=>new Vi({typeName:_e.ZodSymbol,...Ce(t)});class po extends Pe{_parse(e){if(this._getType(e)!==se.undefined){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.undefined,received:r.parsedType}),Ne}return St(e.data)}}po.create=t=>new po({typeName:_e.ZodUndefined,...Ce(t)});class ho extends Pe{_parse(e){if(this._getType(e)!==se.null){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.null,received:r.parsedType}),Ne}return St(e.data)}}ho.create=t=>new ho({typeName:_e.ZodNull,...Ce(t)});class as extends Pe{constructor(){super(...arguments),this._any=!0}_parse(e){return St(e.data)}}as.create=t=>new as({typeName:_e.ZodAny,...Ce(t)});class Lr extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return St(e.data)}}Lr.create=t=>new Lr({typeName:_e.ZodUnknown,...Ce(t)});class Vn extends Pe{_parse(e){const n=this._getOrReturnCtx(e);return ie(n,{code:H.invalid_type,expected:se.never,received:n.parsedType}),Ne}}Vn.create=t=>new Vn({typeName:_e.ZodNever,...Ce(t)});class Ri extends Pe{_parse(e){if(this._getType(e)!==se.undefined){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.void,received:r.parsedType}),Ne}return St(e.data)}}Ri.create=t=>new Ri({typeName:_e.ZodVoid,...Ce(t)});class Yt extends Pe{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==se.array)return ie(n,{code:H.invalid_type,expected:se.array,received:n.parsedType}),Ne;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(ie(n,{code:i?H.too_big:H.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(ie(n,{code:H.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(ie(n,{code:H.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new hn(n,i,n.path,a)))).then(i=>wt.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new hn(n,i,n.path,a)));return wt.mergeArray(r,o)}get element(){return this._def.type}min(e,n){return new Yt({...this._def,minLength:{value:e,message:pe.toString(n)}})}max(e,n){return new Yt({...this._def,maxLength:{value:e,message:pe.toString(n)}})}length(e,n){return new Yt({...this._def,exactLength:{value:e,message:pe.toString(n)}})}nonempty(e){return this.min(1,e)}}Yt.create=(t,e)=>new Yt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ce(e)});function ls(t){if(t instanceof et){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Rn.create(ls(r))}return new et({...t._def,shape:()=>e})}else return t instanceof Yt?new Yt({...t._def,type:ls(t.element)}):t instanceof Rn?Rn.create(ls(t.unwrap())):t instanceof Ur?Ur.create(ls(t.unwrap())):t instanceof mn?mn.create(t.items.map(e=>ls(e))):t}class et extends Pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Ue.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==se.object){const c=this._getOrReturnCtx(e);return ie(c,{code:H.invalid_type,expected:se.object,received:c.parsedType}),Ne}const{status:r,ctx:s}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Vn&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=o[c],d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new hn(s,d,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof Vn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&(ie(s,{code:H.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new hn(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key;c.push({key:d,value:await u.value,alwaysSet:u.alwaysSet})}return c}).then(c=>wt.mergeObjectSync(r,c)):wt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return pe.errToObj,new et({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,o,i,a;const l=(i=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=pe.errToObj(e).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(e){return new et({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new et({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:_e.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new et({...this._def,catchall:e})}pick(e){const n={};return Ue.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}omit(e){const n={};return Ue.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}deepPartial(){return ls(this)}partial(e){const n={};return Ue.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new et({...this._def,shape:()=>n})}required(e){const n={};return Ue.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Rn;)o=o._def.innerType;n[r]=o}}),new et({...this._def,shape:()=>n})}keyof(){return lf(Ue.objectKeys(this.shape))}}et.create=(t,e)=>new et({shape:()=>t,unknownKeys:"strip",catchall:Vn.create(),typeName:_e.ZodObject,...Ce(e)}),et.strictCreate=(t,e)=>new et({shape:()=>t,unknownKeys:"strict",catchall:Vn.create(),typeName:_e.ZodObject,...Ce(e)}),et.lazycreate=(t,e)=>new et({shape:t,unknownKeys:"strip",catchall:Vn.create(),typeName:_e.ZodObject,...Ce(e)});class mo extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new Gt(a.ctx.common.issues));return ie(n,{code:H.invalid_union,unionErrors:i}),Ne}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new Gt(l));return ie(n,{code:H.invalid_union,unionErrors:a}),Ne}}get options(){return this._def.options}}mo.create=(t,e)=>new mo({options:t,typeName:_e.ZodUnion,...Ce(e)});const ji=t=>t instanceof yo?ji(t.schema):t instanceof Xt?ji(t.innerType()):t instanceof _o?[t.value]:t instanceof ir?t.options:t instanceof bo?Object.keys(t.enum):t instanceof wo?ji(t._def.innerType):t instanceof po?[void 0]:t instanceof ho?[null]:null;class Li extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==se.object)return ie(n,{code:H.invalid_type,expected:se.object,received:n.parsedType}),Ne;const r=this.discriminator,s=n.data[r],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ne)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const o of n){const i=ji(o.shape[e]);if(!i)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of i){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,o)}}return new Li({typeName:_e.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...Ce(r)})}}function Dl(t,e){const n=rr(t),r=rr(e);if(t===e)return{valid:!0,data:t};if(n===se.object&&r===se.object){const s=Ue.objectKeys(e),o=Ue.objectKeys(t).filter(a=>s.indexOf(a)!==-1),i={...t,...e};for(const a of o){const l=Dl(t[a],e[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===se.array&&r===se.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let o=0;o<t.length;o++){const i=t[o],a=e[o],l=Dl(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===se.date&&r===se.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class vo extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(o,i)=>{if(Pl(o)||Pl(i))return Ne;const a=Dl(o.value,i.value);return a.valid?((Il(o)||Il(i))&&n.dirty(),{status:n.value,value:a.data}):(ie(r,{code:H.invalid_intersection_types}),Ne)};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(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vo.create=(t,e,n)=>new vo({left:t,right:e,typeName:_e.ZodIntersection,...Ce(n)});class mn extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.array)return ie(r,{code:H.invalid_type,expected:se.array,received:r.parsedType}),Ne;if(r.data.length<this._def.items.length)return ie(r,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ne;!this._def.rest&&r.data.length>this._def.items.length&&(ie(r,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new hn(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>wt.mergeArray(n,i)):wt.mergeArray(n,o)}get items(){return this._def.items}rest(e){return new mn({...this._def,rest:e})}}mn.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new mn({items:t,typeName:_e.ZodTuple,rest:null,...Ce(e)})};class go extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.object)return ie(r,{code:H.invalid_type,expected:se.object,received:r.parsedType}),Ne;const s=[],o=this._def.keyType,i=this._def.valueType;for(const a in r.data)s.push({key:o._parse(new hn(r,a,r.path,a)),value:i._parse(new hn(r,r.data[a],r.path,a))});return r.common.async?wt.mergeObjectAsync(n,s):wt.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof Pe?new go({keyType:e,valueType:n,typeName:_e.ZodRecord,...Ce(r)}):new go({keyType:Jt.create(),valueType:e,typeName:_e.ZodRecord,...Ce(n)})}}class Mi extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.map)return ie(r,{code:H.invalid_type,expected:se.map,received:r.parsedType}),Ne;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new hn(r,a,r.path,[c,"key"])),value:o._parse(new hn(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Ne;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Ne;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Mi.create=(t,e,n)=>new Mi({valueType:e,keyType:t,typeName:_e.ZodMap,...Ce(n)});class Mr extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.set)return ie(r,{code:H.invalid_type,expected:se.set,received:r.parsedType}),Ne;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(ie(r,{code:H.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(ie(r,{code:H.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Ne;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new hn(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(e,n){return new Mr({...this._def,minSize:{value:e,message:pe.toString(n)}})}max(e,n){return new Mr({...this._def,maxSize:{value:e,message:pe.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Mr.create=(t,e)=>new Mr({valueType:t,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ce(e)});class cs extends Pe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==se.function)return ie(n,{code:H.invalid_type,expected:se.function,received:n.parsedType}),Ne;function r(a,l){return Ai({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ii(),co].filter(c=>!!c),issueData:{code:H.invalid_arguments,argumentsError:l}})}function s(a,l){return Ai({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ii(),co].filter(c=>!!c),issueData:{code:H.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof us){const a=this;return St(async function(...l){const c=new Gt([]),u=await a._def.args.parseAsync(l,o).catch(m=>{throw c.addIssue(r(l,m)),c}),d=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(d,o).catch(m=>{throw c.addIssue(s(d,m)),c})})}else{const a=this;return St(function(...l){const c=a._def.args.safeParse(l,o);if(!c.success)throw new Gt([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),d=a._def.returns.safeParse(u,o);if(!d.success)throw new Gt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new cs({...this._def,args:mn.create(e).rest(Lr.create())})}returns(e){return new cs({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new cs({args:e||mn.create([]).rest(Lr.create()),returns:n||Lr.create(),typeName:_e.ZodFunction,...Ce(r)})}}class yo extends Pe{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}yo.create=(t,e)=>new yo({getter:t,typeName:_e.ZodLazy,...Ce(e)});class _o extends Pe{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ie(n,{received:n.data,code:H.invalid_literal,expected:this._def.value}),Ne}return{status:"valid",value:e.data}}get value(){return this._def.value}}_o.create=(t,e)=>new _o({value:t,typeName:_e.ZodLiteral,...Ce(e)});function lf(t,e){return new ir({values:t,typeName:_e.ZodEnum,...Ce(e)})}class ir extends Pe{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return ie(n,{expected:Ue.joinValues(r),received:n.parsedType,code:H.invalid_type}),Ne}if(this._def.values.indexOf(e.data)===-1){const n=this._getOrReturnCtx(e),r=this._def.values;return ie(n,{received:n.data,code:H.invalid_enum_value,options:r}),Ne}return St(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e){return ir.create(e)}exclude(e){return ir.create(this.options.filter(n=>!e.includes(n)))}}ir.create=lf;class bo extends Pe{_parse(e){const n=Ue.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==se.string&&r.parsedType!==se.number){const s=Ue.objectValues(n);return ie(r,{expected:Ue.joinValues(s),received:r.parsedType,code:H.invalid_type}),Ne}if(n.indexOf(e.data)===-1){const s=Ue.objectValues(n);return ie(r,{received:r.data,code:H.invalid_enum_value,options:s}),Ne}return St(e.data)}get enum(){return this._def.values}}bo.create=(t,e)=>new bo({values:t,typeName:_e.ZodNativeEnum,...Ce(e)});class us extends Pe{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==se.promise&&n.common.async===!1)return ie(n,{code:H.invalid_type,expected:se.promise,received:n.parsedType}),Ne;const r=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return St(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}us.create=(t,e)=>new us({type:t,typeName:_e.ZodPromise,...Ce(e)});class Xt extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,o={addIssue:i=>{ie(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);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(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);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"?Ne:(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"?Ne:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!uo(i))return i;const a=s.transform(i.value,o);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=>uo(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):i);Ue.assertNever(s)}}Xt.create=(t,e,n)=>new Xt({schema:t,typeName:_e.ZodEffects,effect:e,...Ce(n)}),Xt.createWithPreprocess=(t,e,n)=>new Xt({schema:e,effect:{type:"preprocess",transform:t},typeName:_e.ZodEffects,...Ce(n)});class Rn extends Pe{_parse(e){return this._getType(e)===se.undefined?St(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Rn.create=(t,e)=>new Rn({innerType:t,typeName:_e.ZodOptional,...Ce(e)});class Ur extends Pe{_parse(e){return this._getType(e)===se.null?St(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ur.create=(t,e)=>new Ur({innerType:t,typeName:_e.ZodNullable,...Ce(e)});class wo extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}wo.create=(t,e)=>new wo({innerType:t,typeName:_e.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ce(e)});class Ui extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Di(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ui.create=(t,e)=>new Ui({innerType:t,typeName:_e.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ce(e)});class Zi extends Pe{_parse(e){if(this._getType(e)!==se.nan){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.nan,received:r.parsedType}),Ne}return{status:"valid",value:e.data}}}Zi.create=t=>new Zi({typeName:_e.ZodNaN,...Ce(t)});const Yy=Symbol("zod_brand");class cf extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Eo extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ne:o.status==="dirty"?(n.dirty(),of(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Ne:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Eo({in:e,out:n,typeName:_e.ZodPipeline})}}class Bi extends Pe{_parse(e){const n=this._def.innerType._parse(e);return uo(n)&&(n.value=Object.freeze(n.value)),n}}Bi.create=(t,e)=>new Bi({innerType:t,typeName:_e.ZodReadonly,...Ce(e)});const uf=(t,e={},n)=>t?as.create().superRefine((r,s)=>{var o,i;if(!t(r)){const a=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,l=(i=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...c,fatal:l})}}):as.create(),Xy={object:et.lazycreate};var _e;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(_e||(_e={}));const Qy=(t,e={message:`Input not instance of ${t.name}`})=>uf(n=>n instanceof t,e),df=Jt.create,ff=sr.create,e_=Zi.create,t_=or.create,pf=fo.create,n_=jr.create,r_=Vi.create,s_=po.create,o_=ho.create,i_=as.create,a_=Lr.create,l_=Vn.create,c_=Ri.create,u_=Yt.create,d_=et.create,f_=et.strictCreate,p_=mo.create,h_=Li.create,m_=vo.create,v_=mn.create,g_=go.create,y_=Mi.create,__=Mr.create,b_=cs.create,w_=yo.create,E_=_o.create,x_=ir.create,k_=bo.create,O_=us.create,hf=Xt.create,N_=Rn.create,S_=Ur.create,T_=Xt.createWithPreprocess,C_=Eo.create;var ar=Object.freeze({__proto__:null,defaultErrorMap:co,setErrorMap:Ly,getErrorMap:Ii,makeIssue:Ai,EMPTY_PATH:My,addIssueToContext:ie,ParseStatus:wt,INVALID:Ne,DIRTY:of,OK:St,isAborted:Pl,isDirty:Il,isValid:uo,isAsync:Di,get util(){return Ue},get objectUtil(){return $l},ZodParsedType:se,getParsedType:rr,ZodType:Pe,ZodString:Jt,ZodNumber:sr,ZodBigInt:or,ZodBoolean:fo,ZodDate:jr,ZodSymbol:Vi,ZodUndefined:po,ZodNull:ho,ZodAny:as,ZodUnknown:Lr,ZodNever:Vn,ZodVoid:Ri,ZodArray:Yt,ZodObject:et,ZodUnion:mo,ZodDiscriminatedUnion:Li,ZodIntersection:vo,ZodTuple:mn,ZodRecord:go,ZodMap:Mi,ZodSet:Mr,ZodFunction:cs,ZodLazy:yo,ZodLiteral:_o,ZodEnum:ir,ZodNativeEnum:bo,ZodPromise:us,ZodEffects:Xt,ZodTransformer:Xt,ZodOptional:Rn,ZodNullable:Ur,ZodDefault:wo,ZodCatch:Ui,ZodNaN:Zi,BRAND:Yy,ZodBranded:cf,ZodPipeline:Eo,ZodReadonly:Bi,custom:uf,Schema:Pe,ZodSchema:Pe,late:Xy,get ZodFirstPartyTypeKind(){return _e},coerce:{string:t=>Jt.create({...t,coerce:!0}),number:t=>sr.create({...t,coerce:!0}),boolean:t=>fo.create({...t,coerce:!0}),bigint:t=>or.create({...t,coerce:!0}),date:t=>jr.create({...t,coerce:!0})},any:i_,array:u_,bigint:t_,boolean:pf,date:n_,discriminatedUnion:h_,effect:hf,enum:x_,function:b_,instanceof:Qy,intersection:m_,lazy:w_,literal:E_,map:y_,nan:e_,nativeEnum:k_,never:l_,null:o_,nullable:S_,number:ff,object:d_,oboolean:()=>pf().optional(),onumber:()=>ff().optional(),optional:N_,ostring:()=>df().optional(),pipeline:C_,preprocess:T_,promise:O_,record:g_,set:__,strictObject:f_,string:df,symbol:r_,transformer:hf,tuple:v_,undefined:s_,union:p_,unknown:a_,void:c_,NEVER:Ne,ZodIssueCode:H,quotelessJson:jy,ZodError:Gt}),lr=Symbol("storefront");function $_(t,e=100){let n=0;return async(...s)=>{clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}}var P_=ar.object({source:ar.literal("moonbase-checkout"),event:ar.literal("close"),intent:ar.string().optional()}),I_=ar.object({source:ar.literal("moonbase-checkout"),event:ar.literal("completed")}),A_=ar.discriminatedUnion("event",[P_,I_]);function mf(t){if(typeof window>"u"){console.warn("Can not mount checkout server side");return}const e=document.createElement("iframe");e.id="moonbase-checkout",e.src=t,e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.right="0px",e.style.border="none",e.style.colorScheme="normal",e.style.backgroundColor="transparent",e.style.zIndex=Number.MAX_SAFE_INTEGER.toString(),e.setAttribute("background","transparent"),e.setAttribute("frameborder","0"),e.setAttribute("allowtransparency","true"),e.setAttribute("allow","payment"),e.height="100%",e.width="100%",document.body.append(e),document.documentElement.style.overflow="hidden",window.onmessage=function(n){var r;try{const s=A_.parse(n.data);s.event==="close"&&(document.body.contains(e)&&(document.documentElement.style.removeProperty("overflow"),document.body.removeChild(e)),window.dispatchEvent(new CustomEvent("moonbase-checkout-closed",{detail:s}))),s.event==="completed"&&window.dispatchEvent(new CustomEvent("moonbase-checkout-completed",{detail:s}))}catch(s){((r=n.data)==null?void 0:r.source)==="moonbase-checkout"&&console.error("Could not parse event:",n.data,s)}}}var Fi=class gt{constructor(e,n,r){this.configuration=e,this.client=n,this.stateFactory=r,this.hasUtm=ee(()=>!!this.utm.value&&Object.values(this.utm.value).some(l=>!!l)),this.currentUser=C(null),this.loadedUser=C(!1),this.debouncedPushOrderContent=$_(l=>this.client.orders.pushContent(l,void 0,this.hasUtm.value?this.utm.value:void 0),500);var s;if(typeof window>"u"){this.currentOrder=C({id:Cl(),status:js.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(gt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${gt.storefrontKey}_loaded`,!1),this.utm=r(`${gt.storefrontKey}_utm`,void 0);return}const o=new URLSearchParams(window.location.search);this.utm=r(`${gt.storefrontKey}_utm`,{referrer:((s=window.document.referrer)==null?void 0:s.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:o.get("utm_source")||void 0,medium:o.get("utm_medium")||void 0,campaign:o.get("utm_campaign")||void 0,term:o.get("utm_term")||void 0,content:o.get("utm_content")||void 0}),window.addEventListener("storage",l=>this.handleStorageUpdate(l));const i=localStorage.getItem(gt.sessionKey);i?(this.currentOrder=C(JSON.parse(i)),this.refreshOrder()):this.currentOrder=C({id:Cl(),status:js.Open,currency:"",items:[],couponsApplied:[]});const a=localStorage.getItem(gt.storefrontKey);if(a?(this.storefront=r(gt.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${gt.storefrontKey}_loaded`,!0)):(this.storefront=r(gt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${gt.storefrontKey}_loaded`,!1)),this.client.tokenStore.hasAccessToken&&(this.currentUser.value=this.client.tokenStore.user),this.updateStorefront(),this.updateUser(),window.location){const l=new URLSearchParams(window.location.search),c=l.get("mb_intent"),u=l.get("mb_endpoint");if(c==="checkout"&&l.get("mb_complete")&&u){const d=Object.fromEntries([...l.entries()].filter(([m])=>!m.startsWith("mb_"))),f=new URL(decodeURIComponent(u));for(const m of Object.keys(d))f.searchParams.append(m,d[m]);mf(f.toString()),window.history.replaceState(null,"",window.location.href.split("?")[0])}}window.addEventListener("moonbase-checkout-completed",()=>this.resetOrder())}get loadedStorefrontPromise(){return new Promise(e=>{lt(this.loadedStorefront,n=>{n&&e()},{immediate:!0})})}get loadedUserPromise(){return new Promise(e=>{lt(this.loadedUser,n=>{n&&e()},{immediate:!0})})}onCheckoutCompleted(e){window.addEventListener("moonbase-checkout-completed",()=>e())}onCheckoutClosed(e){window.addEventListener("moonbase-checkout-closed",n=>e(n.detail.intent))}install(e){e.provide(lr,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(e){e instanceof xa||console.error("Could not load user",e)}finally{this.loadedUser.value=!0}}async updateStorefront(){const e=await this.client.storefront.get(this.hasUtm.value?this.utm.value:void 0);e&&(typeof window<"u"&&localStorage.setItem(gt.storefrontKey,JSON.stringify(e)),this.storefront.value=e,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=e.suggestedCurrency))}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(gt.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(e){switch(e.key){case gt.sessionKey:this.currentOrder.value=JSON.parse(e.newValue);break;case gt.storefrontKey:this.storefront.value=JSON.parse(e.newValue);break}}async refreshOrder(){try{const e=await this.client.orders.get(this.currentOrder.value.id);e&&(e.status!==js.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(gt.sessionKey,JSON.stringify(e)),this.currentOrder.value=e))}catch(e){e!=null&&this.resetOrder()}}resetOrder(){var e;this.currentOrder.value={id:Cl(),currency:((e=this.storefront.value)==null?void 0:e.suggestedCurrency)||"",status:js.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(gt.sessionKey)}};Fi.userKey="moonbase_user",Fi.sessionKey="moonbase_session",Fi.storefrontKey="moonbase_storefront";var D_=Fi;function vf(t,e){const n=e??Me(lr);if(!n)throw new Error("No storefront configured");return ee(()=>n.storefront.value.bundles.find(r=>r.id===t)||null)}function gf(t,e){const n=e??Me(lr);if(!n)throw new Error("No storefront configured");return ee(()=>n.storefront.value.products.find(r=>r.id===t)||null)}function Hi(t){const e=Me(lr);if(!e)throw new Error("No storefront configured");return{getLicenses:async n=>e.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>e.client.inventory.licenses.getActivations(n,r),getProduct:async(n,r)=>e.client.inventory.products.get(n,r),getProducts:async n=>e.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>e.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>e.client.inventory.products.getActivations(n,r),revokeActivation:async n=>e.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>e.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await e.client.inventory.products.getDownloadUrl(n.path)}}}function V_(t,e){const n=Me(lr),r=tv(t);if(!r)throw new Error("No request ID was given when calling `useActivationRequest`");if(!n)throw new Error("No storefront configured");const s=n.stateFactory(`activation-request-${r}`,null),o=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),c=n.stateFactory(`activation-request-${r}-completion-timeout`,null),u=async()=>{await n.client.activationRequests.isCompleted(r)&&s.value?(s.value.status=on.Completed,l.value=!1):c.value=setTimeout(u,1500)};return r&&r.length>0?n.client.activationRequests.get(r).then(d=>{s.value=d,s.value.status===on.Fulfilled&&(l.value=!0,u()),i.value=!1}).catch(d=>{o.value=d,i.value=!1}):(o.value=new Error("Missing request id"),i.value=!1),el(()=>{c.value&&clearTimeout(c.value)}),lt(n.currentUser,async()=>{var d,f;if(!(!r||(f=(d=s.value)==null?void 0:d.licenseEligibility)!=null&&f.eligible)){i.value=!0;try{s.value=await n.client.activationRequests.get(r),s.value.status===on.Fulfilled&&(l.value=!0,u())}catch(m){o.value=m}i.value=!1}}),{activationRequest:s,loading:i,fulfilling:a,completing:l,error:o,isInstalled:ee(()=>{var d;return s&&((d=s.value)==null?void 0:d.status)===on.Completed}),fulfillLicense:async()=>{a.value=!0,s.value=await n.client.activationRequests.fulfillLicense(r),a.value=!1,l.value=!0,u()},fulfillTrial:async()=>{a.value=!0,s.value=await n.client.activationRequests.fulfillTrial(r),a.value=!1,l.value=!0,u()},cancel:async()=>{var d;((d=s.value)==null?void 0:d.status)!==on.Cancelled&&(s.value=await n.client.activationRequests.cancel(r))}}}function R_(t){const e=Me(lr);if(!e)throw new Error("No storefront configured");return{peek:async n=>{try{return await e.client.vouchers.peek(n)}catch(r){throw r instanceof rs?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await e.client.vouchers.redeem(n)}catch(r){throw r instanceof rs?new Error("Voucher code invalid"):r}}}}function Vl(t){const e=t??Me(lr);if(!e)throw new Error("No storefront configured");return{items:ee(()=>e.currentOrder.value.items.map(n=>{var r,s;if(n.type==="Product"){const o=e.storefront.value.products.find(l=>l.id===n.productId),a=((o==null?void 0:o.variations)||[]).find(l=>l.id===n.variationId);return{...n,product:o,variation:a,price:a==null?void 0:a.price,appliedDiscount:(r=a==null?void 0:a.discount)!=null?r:n.appliedDiscount}}else{const o=e.storefront.value.bundles.find(l=>l.id===n.bundleId),a=((o==null?void 0:o.variations)||[]).find(l=>l.id===n.variationId);return{...n,bundle:o,variation:a,price:a==null?void 0:a.price,appliedDiscount:(s=a==null?void 0:a.discount)!=null?s:n.appliedDiscount}}})),currency:ee(()=>e.currentOrder.value.currency||e.storefront.value.suggestedCurrency),total:ee(()=>{const n=e.currentOrder.value.currency||e.storefront.value.suggestedCurrency;return{amount:e.currentOrder.value.items.reduce((s,o)=>{var i,a,l,c,u,d;let f;if(o.type==="Product"){const m=e.storefront.value.products.find(k=>k.id===o.productId),E=((m==null?void 0:m.variations)||[]).find(k=>k.id===o.variationId);f=(l=(a=E==null?void 0:E.price[n])!=null?a:(i=m==null?void 0:m.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const m=e.storefront.value.bundles.find(k=>k.id===o.bundleId),E=((m==null?void 0:m.variations)||[]).find(k=>k.id===o.variationId);f=(d=(u=E==null?void 0:E.price[n])!=null?u:(c=m==null?void 0:m.defaultVariation)==null?void 0:c.price[n])!=null?d:0}return s+f*o.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 s=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let o=e.currentOrder.value.items.find(i=>i.id===s);o?o.quantity+=1:n.type==="bundle"?(o={id:s,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},e.currentOrder.value.items.push(o)):n.type==="product"&&(o={id:s,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},e.currentOrder.value.items.push(o)),e.pushOrderContent()},setQuantity:(n,r)=>{const s=e.currentOrder.value.items.find(o=>o.id===n.id);if(!s)throw new Error("Cart item not found");if(s.quantity=r,s.quantity<=0){const o=e.currentOrder.value.items.findIndex(i=>i.id===s.id);e.currentOrder.value.items.splice(o,1)}e.pushOrderContent()},removeFromCart:n=>{const r=e.currentOrder.value.items.findIndex(s=>s.id===n.id);e.currentOrder.value.items.splice(r,1),e.pushOrderContent()},checkout:async n=>{const r=new URL(n,document.baseURI).href,s=await e.client.orders.pushContent(e.currentOrder.value,{returnUrl:r});if(s.embeddedCheckoutUrl&&typeof window<"u"){const o=s.embeddedCheckoutUrl;return new Promise(i=>{mf(o.replace("acme-co.beta.moonbase.sh","localhost:3002")),window.addEventListener("moonbase-checkout-closed",a=>{i({next:a.detail.next})})})}else{if(s.checkoutUrl&&typeof window<"u")return window.location.href=s.checkoutUrl,{next:void 0};throw new Error("No checkout URL found")}}}}function It(t){const e=t??Me(lr);if(!e)throw new Error("No storefront configured");return{user:e.currentUser,loaded:e.loadedUser,loadedPromise:e.loadedUserPromise,signIn:async(n,r)=>{const s=await e.client.identity.signIn(n,r);return e.currentUser.value=s,e.updateStorefront(),s},signUp:async(n,r,s,o,i,a,l)=>{const c=await e.client.identity.signUp(n,r,s,o,i,a,l);return e.currentUser.value=c,e.updateStorefront(),c},signOut:async()=>{e.client.tokenStore.setUser(null),await e.updateStorefront(),e.currentUser.value=null},update:async(n,r,s,o)=>{const i=await e.client.identity.update(n,r,s,o);return e.currentUser.value&&(e.currentUser.value.name=n,o&&(e.currentUser.value.communicationPreferences=o)),i},setPassword:async(n,r)=>{await e.client.identity.setPassword(n,r)},forgotPassword:async n=>{await e.client.identity.forgotPassword(n)},resetPassword:async(n,r,s)=>{await e.client.identity.resetPassword(n,r,s)},confirmAccount:async(n,r)=>await e.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await e.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>{await e.client.identity.confirmEmailChange(n,r),e.updateUser()}}}function j_(t,e){const n={endpoint:t};return new D_(n,new cm(n),(r,s)=>C(s))}var yf=!1;function zi(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)}function Rl(t,e){if(Array.isArray(t)){t.splice(e,1);return}delete t[e]}function L_(){return _f().__VUE_DEVTOOLS_GLOBAL_HOOK__}function _f(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const M_=typeof Proxy=="function",U_="devtools-plugin:setup",Z_="plugin:settings:set";let ds,jl;function B_(){var t;return ds!==void 0||(typeof window<"u"&&window.performance?(ds=!0,jl=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(ds=!0,jl=globalThis.perf_hooks.performance):ds=!1),ds}function F_(){return B_()?jl.now():Date.now()}class H_{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const i in e.settings){const a=e.settings[i];r[i]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return F_()}},n&&n.on(Z_,(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(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;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 bf(t,e){const n=t,r=_f(),s=L_(),o=M_&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(U_,t,e);else{const i=o?new H_(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:i}),i&&e(i.proxiedTarget)}}var Le={};let xo;const ko=t=>xo=t,wf=Le.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Zr(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var vn;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(vn||(vn={}));const Br=typeof window<"u",Ef=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 z_(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function Ll(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Of(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function xf(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function qi(t){try{t.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),t.dispatchEvent(n)}}const Wi=typeof navigator=="object"?navigator:{userAgent:""},kf=/Macintosh/.test(Wi.userAgent)&&/AppleWebKit/.test(Wi.userAgent)&&!/Safari/.test(Wi.userAgent),Of=Br?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!kf?q_:"msSaveOrOpenBlob"in Wi?W_:K_:()=>{};function q_(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?xf(r.href)?Ll(t,e,n):(r.target="_blank",qi(r)):qi(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){qi(r)},0))}function W_(t,e="download",n){if(typeof t=="string")if(xf(t))Ll(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){qi(r)})}else navigator.msSaveOrOpenBlob(z_(t,n),e)}function K_(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Ll(t,e,n);const s=t.type==="application/octet-stream",o=/constructor/i.test(String(Ef.HTMLElement))||"safari"in Ef,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&o||kf)&&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(t)}else{const a=URL.createObjectURL(t);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function dt(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function Ml(t){return"_a"in t&&"install"in t}function Nf(){if(!("clipboard"in navigator))return dt("Your browser doesn't support the Clipboard API","error"),!0}function Sf(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(dt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function G_(t){if(!Nf())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),dt("Global state copied to clipboard.")}catch(e){if(Sf(e))return;dt("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function J_(t){if(!Nf())try{Tf(t,JSON.parse(await navigator.clipboard.readText())),dt("Global state pasted from clipboard.")}catch(e){if(Sf(e))return;dt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function Y_(t){try{Of(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){dt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let jn;function X_(){jn||(jn=document.createElement("input"),jn.type="file",jn.accept=".json");function t(){return new Promise((e,n)=>{jn.onchange=async()=>{const r=jn.files;if(!r)return e(null);const s=r.item(0);return e(s?{text:await s.text(),file:s}:null)},jn.oncancel=()=>e(null),jn.onerror=n,jn.click()})}return t}async function Q_(t){try{const n=await X_()();if(!n)return;const{text:r,file:s}=n;Tf(t,JSON.parse(r)),dt(`Global state imported from "${s.name}".`)}catch(e){dt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function Tf(t,e){for(const n in e){const r=t.state.value[n];r?Object.assign(r,e[n]):t.state.value[n]=e[n]}}function Qt(t){return{_custom:{display:t}}}const Cf="🍍 Pinia (root)",Ki="_root";function eb(t){return Ml(t)?{id:Ki,label:Cf}:{id:t.$id,label:t.$id}}function tb(t){if(Ml(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(o=>({editable:!0,key:o,value:t.state.value[o]})),getters:n.filter(o=>r.get(o)._getters).map(o=>{const i=r.get(o);return{editable:!1,key:o,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function nb(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Qt(t.type),key:Qt(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function rb(t){switch(t){case vn.direct:return"mutation";case vn.patchFunction:return"$patch";case vn.patchObject:return"$patch";default:return"unknown"}}let fs=!0;const Gi=[],Fr="pinia:mutations",Et="pinia",{assign:sb}=Object,Ji=t=>"🍍 "+t;function ob(t,e){bf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Gi,app:t},n=>{typeof n.now!="function"&&dt("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:Fr,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Et,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{G_(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await J_(e),n.sendInspectorTree(Et),n.sendInspectorState(Et)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Y_(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Q_(e),n.sendInspectorTree(Et),n.sendInspectorState(Et)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const s=e._s.get(r);s?typeof s.$reset!="function"?dt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),dt(`Store "${r}" reset.`)):dt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,s)=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:Ji(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:Ee(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,c)=>(l[c]=a.$state[c],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:Ji(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,c)=>{try{l[c]=a[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===Et){let s=[e];s=s.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?s.filter(o=>"$id"in o?o.$id.toLowerCase().includes(r.filter.toLowerCase()):Cf.toLowerCase().includes(r.filter.toLowerCase())):s).map(eb)}}),globalThis.$pinia=e,n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===Et){const s=r.nodeId===Ki?e:e._s.get(r.nodeId);if(!s)return;s&&(r.nodeId!==Ki&&(globalThis.$store=Ee(s)),r.state=tb(s))}}),n.on.editInspectorState((r,s)=>{if(r.app===t&&r.inspectorId===Et){const o=r.nodeId===Ki?e:e._s.get(r.nodeId);if(!o)return dt(`store "${r.nodeId}" not found`,"error");const{path:i}=r;Ml(o)?i.unshift("state"):(i.length!==1||!o._customProperties.has(i[0])||i[0]in o.$state)&&i.unshift("$state"),fs=!1,r.set(o,i,r.state.value),fs=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const s=r.type.replace(/^🍍\s*/,""),o=e._s.get(s);if(!o)return dt(`store "${s}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return dt(`Invalid path for store "${s}":
|
|
15
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Pt=Ag;function _g(t){return bg(t)}function bg(t,e){yg();const n=Ia();n.__VUE__=!0,v.NODE_ENV!=="production"&&Lu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:m=nt,insertStaticContent:_}=t,E=(p,h,S,L=null,D=null,M=null,X=void 0,q=null,W=v.NODE_ENV!=="production"&&Jn?!1:!!h.dynamicChildren)=>{if(p===h)return;p&&!Ar(p,h)&&(L=ua(p),Ke(p,D,M,!0),p=null),h.patchFlag===-2&&(W=!1,h.dynamicChildren=null);const{type:j,ref:ne,shapeFlag:fe}=h;switch(j){case to:k(p,h,S,L);break;case st:A(p,h,S,L);break;case no:p==null?B(h,S,L,X):v.NODE_ENV!=="production"&&T(p,h,S,X);break;case Re:ce(p,h,S,L,D,M,X,q,W);break;default:fe&1?z(p,h,S,L,D,M,X,q,W):fe&6?Ze(p,h,S,L,D,M,X,q,W):fe&64||fe&128?j.process(p,h,S,L,D,M,X,q,W,Ao):v.NODE_ENV!=="production"&&U("Invalid VNode type:",j,`(${typeof j})`)}ne!=null&&D&&fl(ne,p&&p.ref,M,h||p,!h)},k=(p,h,S,L)=>{if(p==null)r(h.el=a(h.children),S,L);else{const D=h.el=p.el;h.children!==p.children&&c(D,h.children)}},A=(p,h,S,L)=>{p==null?r(h.el=l(h.children||""),S,L):h.el=p.el},B=(p,h,S,L)=>{[p.el,p.anchor]=_(p.children,h,S,L,p.el,p.anchor)},T=(p,h,S,L)=>{if(h.children!==p.children){const D=f(p.anchor);P(p),[h.el,h.anchor]=_(h.children,S,D,L)}else h.el=p.el,h.anchor=p.anchor},J=({el:p,anchor:h},S,L)=>{let D;for(;p&&p!==h;)D=f(p),r(p,S,L),p=D;r(h,S,L)},P=({el:p,anchor:h})=>{let S;for(;p&&p!==h;)S=f(p),s(p),p=S;s(h)},z=(p,h,S,L,D,M,X,q,W)=>{h.type==="svg"?X="svg":h.type==="math"&&(X="mathml"),p==null?N(h,S,L,D,M,X,q,W):R(p,h,D,M,X,q,W)},N=(p,h,S,L,D,M,X,q)=>{let W,j;const{props:ne,shapeFlag:fe,transition:ue,dirs:Se}=p;if(W=p.el=i(p.type,M,ne&&ne.is,ne),fe&8?u(W,p.children):fe&16&&K(p.children,W,null,L,D,hl(p,M),X,q),Se&&Sr(p,null,L,"created"),Oe(W,p,p.scopeId,X,L),ne){for(const Ye in ne)Ye!=="value"&&!Us(Ye)&&o(W,Ye,null,ne[Ye],M,L);"value"in ne&&o(W,"value",null,ne.value,M),(j=ne.onVnodeBeforeMount)&&pn(j,L,p)}v.NODE_ENV!=="production"&&(Jo(W,"__vnode",p,!0),Jo(W,"__vueParentComponent",L,!0)),Se&&Sr(p,null,L,"beforeMount");const De=wg(D,ue);De&&ue.beforeEnter(W),r(W,h,S),((j=ne&&ne.onVnodeMounted)||De||Se)&&Pt(()=>{j&&pn(j,L,p),De&&ue.enter(W),Se&&Sr(p,null,L,"mounted")},D)},Oe=(p,h,S,L,D)=>{if(S&&m(p,S),L)for(let M=0;M<L.length;M++)m(p,L[M]);if(D){let M=D.subTree;if(v.NODE_ENV!=="production"&&M.patchFlag>0&&M.patchFlag&2048&&(M=yl(M.children)||M),h===M){const X=D.vnode;Oe(p,X,X.scopeId,X.slotScopeIds,D.parent)}}},K=(p,h,S,L,D,M,X,q,W=0)=>{for(let j=W;j<p.length;j++){const ne=p[j]=q?Qn(p[j]):Kt(p[j]);E(null,ne,h,S,L,D,M,X,q)}},R=(p,h,S,L,D,M,X)=>{const q=h.el=p.el;v.NODE_ENV!=="production"&&(q.__vnode=h);let{patchFlag:W,dynamicChildren:j,dirs:ne}=h;W|=p.patchFlag&16;const fe=p.props||Ge,ue=h.props||Ge;let Se;if(S&&Pr(S,!1),(Se=ue.onVnodeBeforeUpdate)&&pn(Se,S,h,p),ne&&Sr(h,p,S,"beforeUpdate"),S&&Pr(S,!0),v.NODE_ENV!=="production"&&Jn&&(W=0,X=!1,j=null),(fe.innerHTML&&ue.innerHTML==null||fe.textContent&&ue.textContent==null)&&u(q,""),j?(V(p.dynamicChildren,j,q,S,L,hl(h,D),M),v.NODE_ENV!=="production"&&eo(p,h)):X||be(p,h,q,null,S,L,hl(h,D),M,!1),W>0){if(W&16)I(q,fe,ue,S,D);else if(W&2&&fe.class!==ue.class&&o(q,"class",null,ue.class,D),W&4&&o(q,"style",fe.style,ue.style,D),W&8){const De=h.dynamicProps;for(let Ye=0;Ye<De.length;Ye++){const He=De[Ye],ft=fe[He],en=ue[He];(en!==ft||He==="value")&&o(q,He,ft,en,D,S)}}W&1&&p.children!==h.children&&u(q,h.children)}else!X&&j==null&&I(q,fe,ue,S,D);((Se=ue.onVnodeUpdated)||ne)&&Pt(()=>{Se&&pn(Se,S,h,p),ne&&Sr(h,p,S,"updated")},L)},V=(p,h,S,L,D,M,X)=>{for(let q=0;q<h.length;q++){const W=p[q],j=h[q],ne=W.el&&(W.type===Re||!Ar(W,j)||W.shapeFlag&70)?d(W.el):S;E(W,j,ne,null,L,D,M,X,!0)}},I=(p,h,S,L,D)=>{if(h!==S){if(h!==Ge)for(const M in h)!Us(M)&&!(M in S)&&o(p,M,h[M],null,D,L);for(const M in S){if(Us(M))continue;const X=S[M],q=h[M];X!==q&&M!=="value"&&o(p,M,q,X,D,L)}"value"in S&&o(p,"value",h.value,S.value,D)}},ce=(p,h,S,L,D,M,X,q,W)=>{const j=h.el=p?p.el:a(""),ne=h.anchor=p?p.anchor:a("");let{patchFlag:fe,dynamicChildren:ue,slotScopeIds:Se}=h;v.NODE_ENV!=="production"&&(Jn||fe&2048)&&(fe=0,W=!1,ue=null),Se&&(q=q?q.concat(Se):Se),p==null?(r(j,S,L),r(ne,S,L),K(h.children||[],S,ne,D,M,X,q,W)):fe>0&&fe&64&&ue&&p.dynamicChildren?(V(p.dynamicChildren,ue,S,D,M,X,q),v.NODE_ENV!=="production"?eo(p,h):(h.key!=null||D&&h===D.subTree)&&eo(p,h,!0)):be(p,h,S,ne,D,M,X,q,W)},Ze=(p,h,S,L,D,M,X,q,W)=>{h.slotScopeIds=q,p==null?h.shapeFlag&512?D.ctx.activate(h,S,L,X,W):w(h,S,L,D,M,X,W):$(p,h,W)},w=(p,h,S,L,D,M,X)=>{const q=p.component=Ug(p,L,D);if(v.NODE_ENV!=="production"&&q.type.__hmrId&&mv(q),v.NODE_ENV!=="production"&&(ci(p),Pn(q,"mount")),Ys(p)&&(q.ctx.renderer=Ao),v.NODE_ENV!=="production"&&Pn(q,"init"),Bg(q,!1,X),v.NODE_ENV!=="production"&&In(q,"init"),q.asyncDep){if(D&&D.registerDep(q,Q,X),!p.el){const W=q.subTree=F(st);A(null,W,h,S)}}else Q(q,p,h,S,D,M,X);v.NODE_ENV!=="production"&&(ui(),In(q,"mount"))},$=(p,h,S)=>{const L=h.component=p.component;if($g(p,h,S))if(L.asyncDep&&!L.asyncResolved){v.NODE_ENV!=="production"&&ci(h),oe(L,h,S),v.NODE_ENV!=="production"&&ui();return}else L.next=h,pv(L.update),L.effect.dirty=!0,L.update();else h.el=p.el,L.vnode=h},Q=(p,h,S,L,D,M,X)=>{const q=()=>{if(p.isMounted){let{next:ne,bu:fe,u:ue,parent:Se,vnode:De}=p;{const ms=wd(p);if(ms){ne&&(ne.el=De.el,oe(p,ne,X)),ms.asyncDep.then(()=>{p.isUnmounted||q()});return}}let Ye=ne,He;v.NODE_ENV!=="production"&&ci(ne||p.vnode),Pr(p,!1),ne?(ne.el=De.el,oe(p,ne,X)):ne=De,fe&&Zs(fe),(He=ne.props&&ne.props.onVnodeBeforeUpdate)&&pn(He,Se,ne,De),Pr(p,!0),v.NODE_ENV!=="production"&&Pn(p,"render");const ft=gl(p);v.NODE_ENV!=="production"&&In(p,"render");const en=p.subTree;p.subTree=ft,v.NODE_ENV!=="production"&&Pn(p,"patch"),E(en,ft,d(en.el),ua(en),p,D,M),v.NODE_ENV!=="production"&&In(p,"patch"),ne.el=ft.el,Ye===null&&Pg(p,ft.el),ue&&Pt(ue,D),(He=ne.props&&ne.props.onVnodeUpdated)&&Pt(()=>pn(He,Se,ne,De),D),v.NODE_ENV!=="production"&&Mu(p),v.NODE_ENV!=="production"&&ui()}else{let ne;const{el:fe,props:ue}=h,{bm:Se,m:De,parent:Ye}=p,He=Js(h);if(Pr(p,!1),Se&&Zs(Se),!He&&(ne=ue&&ue.onVnodeBeforeMount)&&pn(ne,Ye,h),Pr(p,!0),fe&&Cp){const ft=()=>{v.NODE_ENV!=="production"&&Pn(p,"render"),p.subTree=gl(p),v.NODE_ENV!=="production"&&In(p,"render"),v.NODE_ENV!=="production"&&Pn(p,"hydrate"),Cp(fe,p.subTree,p,D,null),v.NODE_ENV!=="production"&&In(p,"hydrate")};He?h.type.__asyncLoader().then(()=>!p.isUnmounted&&ft()):ft()}else{v.NODE_ENV!=="production"&&Pn(p,"render");const ft=p.subTree=gl(p);v.NODE_ENV!=="production"&&In(p,"render"),v.NODE_ENV!=="production"&&Pn(p,"patch"),E(null,ft,S,L,p,D,M),v.NODE_ENV!=="production"&&In(p,"patch"),h.el=ft.el}if(De&&Pt(De,D),!He&&(ne=ue&&ue.onVnodeMounted)){const ft=h;Pt(()=>pn(ne,Ye,ft),D)}(h.shapeFlag&256||Ye&&Js(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&p.a&&Pt(p.a,D),p.isMounted=!0,v.NODE_ENV!=="production"&&wv(p),h=S=L=null}},W=p.effect=new Va(q,nt,()=>di(j),p.scope),j=p.update=()=>{W.dirty&&W.run()};j.i=p,j.id=p.uid,Pr(p,!0),v.NODE_ENV!=="production"&&(W.onTrack=p.rtc?ne=>Zs(p.rtc,ne):void 0,W.onTrigger=p.rtg?ne=>Zs(p.rtg,ne):void 0),j()},oe=(p,h,S)=>{h.component=p;const L=p.vnode.props;p.vnode=h,p.next=null,rg(p,h.props,L,S),pg(p,h.children,S),kn(),Au(p),On()},be=(p,h,S,L,D,M,X,q,W=!1)=>{const j=p&&p.children,ne=p?p.shapeFlag:0,fe=h.children,{patchFlag:ue,shapeFlag:Se}=h;if(ue>0){if(ue&128){We(j,fe,S,L,D,M,X,q,W);return}else if(ue&256){ae(j,fe,S,L,D,M,X,q,W);return}}Se&8?(ne&16&&Io(j,D,M),fe!==j&&u(S,fe)):ne&16?Se&16?We(j,fe,S,L,D,M,X,q,W):Io(j,D,M,!0):(ne&8&&u(S,""),Se&16&&K(fe,S,L,D,M,X,q,W))},ae=(p,h,S,L,D,M,X,q,W)=>{p=p||rs,h=h||rs;const j=p.length,ne=h.length,fe=Math.min(j,ne);let ue;for(ue=0;ue<fe;ue++){const Se=h[ue]=W?Qn(h[ue]):Kt(h[ue]);E(p[ue],Se,S,null,D,M,X,q,W)}j>ne?Io(p,D,M,!0,!1,fe):K(h,S,L,D,M,X,q,W,fe)},We=(p,h,S,L,D,M,X,q,W)=>{let j=0;const ne=h.length;let fe=p.length-1,ue=ne-1;for(;j<=fe&&j<=ue;){const Se=p[j],De=h[j]=W?Qn(h[j]):Kt(h[j]);if(Ar(Se,De))E(Se,De,S,null,D,M,X,q,W);else break;j++}for(;j<=fe&&j<=ue;){const Se=p[fe],De=h[ue]=W?Qn(h[ue]):Kt(h[ue]);if(Ar(Se,De))E(Se,De,S,null,D,M,X,q,W);else break;fe--,ue--}if(j>fe){if(j<=ue){const Se=ue+1,De=Se<ne?h[Se].el:L;for(;j<=ue;)E(null,h[j]=W?Qn(h[j]):Kt(h[j]),S,De,D,M,X,q,W),j++}}else if(j>ue)for(;j<=fe;)Ke(p[j],D,M,!0),j++;else{const Se=j,De=j,Ye=new Map;for(j=De;j<=ue;j++){const Ct=h[j]=W?Qn(h[j]):Kt(h[j]);Ct.key!=null&&(v.NODE_ENV!=="production"&&Ye.has(Ct.key)&&U("Duplicate keys found during update:",JSON.stringify(Ct.key),"Make sure keys are unique."),Ye.set(Ct.key,j))}let He,ft=0;const en=ue-De+1;let ms=!1,$p=0;const Do=new Array(en);for(j=0;j<en;j++)Do[j]=0;for(j=Se;j<=fe;j++){const Ct=p[j];if(ft>=en){Ke(Ct,D,M,!0);continue}let _n;if(Ct.key!=null)_n=Ye.get(Ct.key);else for(He=De;He<=ue;He++)if(Do[He-De]===0&&Ar(Ct,h[He])){_n=He;break}_n===void 0?Ke(Ct,D,M,!0):(Do[_n-De]=j+1,_n>=$p?$p=_n:ms=!0,E(Ct,h[_n],S,null,D,M,X,q,W),ft++)}const Pp=ms?Eg(Do):rs;for(He=Pp.length-1,j=en-1;j>=0;j--){const Ct=De+j,_n=h[Ct],Ip=Ct+1<ne?h[Ct+1].el:L;Do[j]===0?E(null,_n,S,Ip,D,M,X,q,W):ms&&(He<0||j!==Pp[He]?xt(_n,S,Ip,2):He--)}}},xt=(p,h,S,L,D=null)=>{const{el:M,type:X,transition:q,children:W,shapeFlag:j}=p;if(j&6){xt(p.component.subTree,h,S,L);return}if(j&128){p.suspense.move(h,S,L);return}if(j&64){X.move(p,h,S,Ao);return}if(X===Re){r(M,h,S);for(let fe=0;fe<W.length;fe++)xt(W[fe],h,S,L);r(p.anchor,h,S);return}if(X===no){J(p,h,S);return}if(L!==2&&j&1&&q)if(L===0)q.beforeEnter(M),r(M,h,S),Pt(()=>q.enter(M),D);else{const{leave:fe,delayLeave:ue,afterLeave:Se}=q,De=()=>r(M,h,S),Ye=()=>{fe(M,()=>{De(),Se&&Se()})};ue?ue(M,De,Ye):Ye()}else r(M,h,S)},Ke=(p,h,S,L=!1,D=!1)=>{const{type:M,props:X,ref:q,children:W,dynamicChildren:j,shapeFlag:ne,patchFlag:fe,dirs:ue,cacheIndex:Se}=p;if(fe===-2&&(D=!1),q!=null&&fl(q,null,S,p,!0),Se!=null&&(h.renderCache[Se]=void 0),ne&256){h.ctx.deactivate(p);return}const De=ne&1&&ue,Ye=!Js(p);let He;if(Ye&&(He=X&&X.onVnodeBeforeUnmount)&&pn(He,h,p),ne&6)sx(p.component,S,L);else{if(ne&128){p.suspense.unmount(S,L);return}De&&Sr(p,null,h,"beforeUnmount"),ne&64?p.type.remove(p,h,S,Ao,L):j&&!j.hasOnce&&(M!==Re||fe>0&&fe&64)?Io(j,h,S,!1,!0):(M===Re&&fe&384||!D&&ne&16)&&Io(W,h,S),L&&At(p)}(Ye&&(He=X&&X.onVnodeUnmounted)||De)&&Pt(()=>{He&&pn(He,h,p),De&&Sr(p,null,h,"unmounted")},S)},At=p=>{const{type:h,el:S,anchor:L,transition:D}=p;if(h===Re){v.NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&D&&!D.persisted?p.children.forEach(X=>{X.type===st?s(X.el):At(X)}):vr(S,L);return}if(h===no){P(p);return}const M=()=>{s(S),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(p.shapeFlag&1&&D&&!D.persisted){const{leave:X,delayLeave:q}=D,W=()=>X(S,M);q?q(p.el,M,W):W()}else M()},vr=(p,h)=>{let S;for(;p!==h;)S=f(p),s(p),p=S;s(h)},sx=(p,h,S)=>{v.NODE_ENV!=="production"&&p.type.__hmrId&&vv(p);const{bum:L,scope:D,update:M,subTree:X,um:q,m:W,a:j}=p;Ed(W),Ed(j),L&&Zs(L),D.stop(),M&&(M.active=!1,Ke(X,p,h,S)),q&&Pt(q,h),Pt(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve()),v.NODE_ENV!=="production"&&xv(p)},Io=(p,h,S,L=!1,D=!1,M=0)=>{for(let X=M;X<p.length;X++)Ke(p[X],h,S,L,D)},ua=p=>{if(p.shapeFlag&6)return ua(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=f(p.anchor||p.el),S=h&&h[vd];return S?f(S):h};let lc=!1;const Sp=(p,h,S)=>{p==null?h._vnode&&Ke(h._vnode,null,null,!0):E(h._vnode||null,p,h,null,null,null,S),h._vnode=p,lc||(lc=!0,Au(),Du(),lc=!1)},Ao={p:E,um:Ke,m:xt,r:At,mt:w,mc:K,pc:be,pbc:V,n:ua,o:t};let Tp,Cp;return{render:Sp,hydrate:Tp,createApp:Qv(Sp,Tp)}}function hl({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Pr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function wg(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function eo(t,e,n=!1){const r=t.children,s=e.children;if(de(r)&&de(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=Qn(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&eo(i,a)),a.type===to&&(a.el=i.el),v.NODE_ENV!=="production"&&a.type===st&&!a.el&&(a.el=i.el)}}function Eg(t){const e=t.slice(),n=[0];let r,s,o,i,a;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(s=n[n.length-1],t[s]<c){e[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,t[n[a]]<c?o=a+1:i=a;c<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=e[i];return n}function wd(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:wd(e)}function Ed(t){if(t)for(let e=0;e<t.length;e++)t[e].active=!1}const xg=Symbol.for("v-scx"),kg=()=>{{const t=Me(xg);return t||v.NODE_ENV!=="production"&&U("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function bt(t,e){return ml(t,null,e)}const Ei={};function lt(t,e,n){return v.NODE_ENV!=="production"&&!me(e)&&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."),ml(t,e,n)}function ml(t,e,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:a}=Ge){if(e&&o){const N=e;e=(...Oe)=>{N(...Oe),z()}}v.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.'),v.NODE_ENV!=="production"&&!e&&(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.'),o!==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.")},c=ot,u=N=>r===!0?N:Ir(N,r===!1?1:void 0);let d,f=!1,m=!1;if(Qe(t)?(d=()=>t.value,f=Tn(t)):Nn(t)?(d=()=>u(t),f=!0):de(t)?(m=!0,f=t.some(N=>Nn(N)||Tn(N)),d=()=>t.map(N=>{if(Qe(N))return N.value;if(Nn(N))return u(N);if(me(N))return Cn(N,c,2);v.NODE_ENV!=="production"&&l(N)})):me(t)?e?d=()=>Cn(t,c,2):d=()=>(_&&_(),Ut(t,c,3,[E])):(d=nt,v.NODE_ENV!=="production"&&l(t)),e&&r){const N=d;d=()=>Ir(N())}let _,E=N=>{_=J.onStop=()=>{Cn(N,c,4),_=J.onStop=void 0}},k;if(Ti)if(E=nt,e?n&&Ut(e,c,3,[d(),m?[]:void 0,E]):d(),s==="sync"){const N=kg();k=N.__watcherHandles||(N.__watcherHandles=[])}else return nt;let A=m?new Array(t.length).fill(Ei):Ei;const B=()=>{if(!(!J.active||!J.dirty))if(e){const N=J.run();(r||f||(m?N.some((Oe,K)=>zn(Oe,A[K])):zn(N,A)))&&(_&&_(),Ut(e,c,3,[N,A===Ei?void 0:m&&A[0]===Ei?[]:A,E]),A=N)}else J.run()};B.allowRecurse=!!e;let T;s==="sync"?T=B:s==="post"?T=()=>Pt(B,c&&c.suspense):(B.pre=!0,c&&(B.id=c.uid),T=()=>di(B));const J=new Va(d,nt,T),P=eu(),z=()=>{J.stop(),P&&Ta(P.effects,J)};return v.NODE_ENV!=="production"&&(J.onTrack=i,J.onTrigger=a),e?n?B():A=J.run():s==="post"?Pt(J.run.bind(J),c&&c.suspense):J.run(),k&&k.push(z),z}function Og(t,e,n){const r=this.proxy,s=Xe(t)?t.includes(".")?xd(r,t):()=>r[t]:t.bind(r,r);let o;me(e)?o=e:(o=e.handler,n=e);const i=oo(this),a=ml(s,o.bind(r),n);return i(),a}function xd(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Ir(t,e=1/0,n){if(e<=0||!Be(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Qe(t))Ir(t.value,e,n);else if(de(t))for(let r=0;r<t.length;r++)Ir(t[r],e,n);else if(zc(t)||_r(t))t.forEach(r=>{Ir(r,e,n)});else if(Wc(t)){for(const r in t)Ir(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&Ir(t[r],e,n)}return t}const Ng=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Vt(e)}Modifiers`]||t[`${xn(e)}Modifiers`];function Sg(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Ge;if(v.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[d]}=t;if(u)if(!(e in u))(!d||!(wr(Vt(e))in d))&&U(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${wr(Vt(e))}" prop.`);else{const f=u[e];me(f)&&(f(...n)||U(`Invalid event arguments: event validation failed for event "${e}".`))}}let s=n;const o=e.startsWith("update:"),i=o&&Ng(r,e.slice(7));if(i&&(i.trim&&(s=n.map(u=>Xe(u)?u.trim():u)),i.number&&(s=n.map(mm))),v.NODE_ENV!=="production"&&Nv(t,e,s),v.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&r[wr(u)]&&U(`Event "${u}" is emitted in component ${Ci(t,t.type)} but the handler is registered for "${e}". 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 "${xn(e)}" instead of "${e}".`)}let a,l=r[a=wr(e)]||r[a=wr(Vt(e))];!l&&o&&(l=r[a=wr(xn(e))]),l&&Ut(l,t,6,s);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Ut(c,t,6,s)}}function kd(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(s!==void 0)return s;const o=t.emits;let i={},a=!1;if(!me(t)){const l=c=>{const u=kd(c,e,!0);u&&(a=!0,tt(i,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(Be(t)&&r.set(t,null),null):(de(o)?o.forEach(l=>i[l]=null):tt(i,o),Be(t)&&r.set(t,i),i)}function xi(t,e){return!t||!Ms(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ie(t,e[0].toLowerCase()+e.slice(1))||Ie(t,xn(e))||Ie(t,e))}let vl=!1;function ki(){vl=!0}function gl(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:m,ctx:_,inheritAttrs:E}=t,k=mi(t);let A,B;v.NODE_ENV!=="production"&&(vl=!1);try{if(n.shapeFlag&4){const P=s||r,z=v.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(P,{get(N,Oe,K){return U(`Property '${String(Oe)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(N,Oe,K)}}):P;A=Kt(c.call(z,P,u,v.NODE_ENV!=="production"?cn(d):d,m,f,_)),B=a}else{const P=e;v.NODE_ENV!=="production"&&a===d&&ki(),A=Kt(P.length>1?P(v.NODE_ENV!=="production"?cn(d):d,v.NODE_ENV!=="production"?{get attrs(){return ki(),cn(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):P(v.NODE_ENV!=="production"?cn(d):d,null)),B=e.props?a:Tg(a)}}catch(P){ro.length=0,Hs(P,t,1),A=F(st)}let T=A,J;if(v.NODE_ENV!=="production"&&A.patchFlag>0&&A.patchFlag&2048&&([T,J]=Od(A)),B&&E!==!1){const P=Object.keys(B),{shapeFlag:z}=T;if(P.length){if(z&7)o&&P.some(Wo)&&(B=Cg(B,o)),T=Wt(T,B,!1,!0);else if(v.NODE_ENV!=="production"&&!vl&&T.type!==st){const N=Object.keys(a),Oe=[],K=[];for(let R=0,V=N.length;R<V;R++){const I=N[R];Ms(I)?Wo(I)||Oe.push(I[2].toLowerCase()+I.slice(3)):K.push(I)}K.length&&U(`Extraneous non-props attributes (${K.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),Oe.length&&U(`Extraneous non-emits event listeners (${Oe.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&&(v.NODE_ENV!=="production"&&!Nd(T)&&U("Runtime directive used on component with non-element root node. The directives will not function as intended."),T=Wt(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(v.NODE_ENV!=="production"&&!Nd(T)&&U("Component inside <Transition> renders non-element root node that cannot be animated."),T.transition=n.transition),v.NODE_ENV!=="production"&&J?J(T):A=T,mi(k),A}const Od=t=>{const e=t.children,n=t.dynamicChildren,r=yl(e,!1);if(r){if(v.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return Od(r)}else return[t,void 0];const s=e.indexOf(r),o=n?n.indexOf(r):-1,i=a=>{e[s]=a,n&&(o>-1?n[o]=a:a.patchFlag>0&&(t.dynamicChildren=[...n,a]))};return[Kt(r),i]};function yl(t,e=!0){let n;for(let r=0;r<t.length;r++){const s=t[r];if(os(s)){if(s.type!==st||s.children==="v-if"){if(n)return;if(n=s,v.NODE_ENV!=="production"&&e&&n.patchFlag>0&&n.patchFlag&2048)return yl(n.children)}}else return}return n}const Tg=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ms(n))&&((e||(e={}))[n]=t[n]);return e},Cg=(t,e)=>{const n={};for(const r in t)(!Wo(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n},Nd=t=>t.shapeFlag&7||t.type===st;function $g(t,e,n){const{props:r,children:s,component:o}=t,{props:i,children:a,patchFlag:l}=e,c=o.emitsOptions;if(v.NODE_ENV!=="production"&&(s||a)&&Jn||e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Sd(r,i,c):!!i;if(l&8){const u=e.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(i[f]!==r[f]&&!xi(c,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Sd(r,i,c):!0:!!i;return!1}function Sd(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(e[o]!==t[o]&&!xi(n,o))return!0}return!1}function Pg({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const Ig=t=>t.__isSuspense;function Ag(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):Iu(t)}const Re=Symbol.for("v-fgt"),to=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),no=Symbol.for("v-stc"),ro=[];let jt=null;function g(t=!1){ro.push(jt=t?null:[])}function Dg(){ro.pop(),jt=ro[ro.length-1]||null}let so=1;function Td(t){so+=t,t<0&&jt&&(jt.hasOnce=!0)}function Cd(t){return t.dynamicChildren=so>0?jt||rs:null,Dg(),so>0&&jt&&jt.push(t),t}function O(t,e,n,r,s,o){return Cd(x(t,e,n,r,s,o,!0))}function Ve(t,e,n,r,s){return Cd(F(t,e,n,r,s,!0))}function os(t){return t?t.__v_isVNode===!0:!1}function Ar(t,e){if(v.NODE_ENV!=="production"&&e.shapeFlag&6&&t.component){const n=fi.get(e.type);if(n&&n.has(t.component))return t.shapeFlag&=-257,e.shapeFlag&=-513,!1}return t.type===e.type&&t.key===e.key}const Vg=(...t)=>Pd(...t),$d=({key:t})=>t??null,Oi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Xe(t)||Qe(t)||me(t)?{i:at,r:t,k:e,f:!!n}:t:null);function x(t,e=null,n=null,r=0,s=null,o=t===Re?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&$d(e),ref:e&&Oi(e),scopeId:hi,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:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:at};return a?(_l(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),v.NODE_ENV!=="production"&&l.key!==l.key&&U("VNode created with invalid key (NaN). VNode type:",l.type),so>0&&!i&&jt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&jt.push(l),l}const F=v.NODE_ENV!=="production"?Vg:Pd;function Pd(t,e=null,n=null,r=0,s=null,o=!1){if((!t||t===Ku)&&(v.NODE_ENV!=="production"&&!t&&U(`Invalid vnode type when creating vnode: ${t}.`),t=st),os(t)){const a=Wt(t,e,!0);return n&&_l(a,n),so>0&&!o&&jt&&(a.shapeFlag&6?jt[jt.indexOf(t)]=a:jt.push(a)),a.patchFlag=-2,a}if(Ld(t)&&(t=t.__vccOpts),e){e=Rg(e);let{class:a,style:l}=e;a&&!Xe(a)&&(e.class=Yo(a)),Be(l)&&(ai(l)&&!de(l)&&(l=tt({},l)),e.style=Aa(l))}const i=Xe(t)?1:Ig(t)?128:hg(t)?64:Be(t)?4:me(t)?2:0;return v.NODE_ENV!=="production"&&i&4&&ai(t)&&(t=Ee(t),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`.",`
|
|
16
|
+
Component that was made reactive: `,t)),x(t,e,n,r,s,i,o,!0)}function Rg(t){return t?ai(t)||id(t)?tt({},t):t:null}function Wt(t,e,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=t,c=e?bl(s||{},e):s,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&$d(c),ref:e&&e.ref?n&&o?de(o)?o.concat(Oi(e)):[o,Oi(e)]:Oi(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:v.NODE_ENV!=="production"&&i===-1&&de(a)?a.map(Id):a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Wt(t.ssContent),ssFallback:t.ssFallback&&Wt(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&gi(u,l.clone(u)),u}function Id(t){const e=Wt(t);return de(t.children)&&(e.children=t.children.map(Id)),e}function je(t=" ",e=0){return F(to,null,t,e)}function jg(t,e){const n=F(no,null,t);return n.staticCount=e,n}function ge(t="",e=!1){return e?(g(),Ve(st,null,t)):F(st,null,t)}function Kt(t){return t==null||typeof t=="boolean"?F(st):de(t)?F(Re,null,t.slice()):typeof t=="object"?Qn(t):F(to,null,String(t))}function Qn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Wt(t)}function _l(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(de(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),_l(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!id(e)?e._ctx=at:s===3&&at&&(at.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else me(e)?(e={default:e,_ctx:at},n=32):(e=String(e),r&64?(n=16,e=[je(e)]):n=8);t.children=e,t.shapeFlag|=n}function bl(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=Yo([e.class,r.class]));else if(s==="style")e.style=Aa([e.style,r.style]);else if(Ms(s)){const o=e[s],i=r[s];i&&o!==i&&!(de(o)&&o.includes(i))&&(e[s]=o?[].concat(o,i):i)}else s!==""&&(e[s]=r[s])}return e}function pn(t,e,n,r=null){Ut(t,e,7,[n,r])}const Lg=rd();let Mg=0;function Ug(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||Lg,o={uid:Mg++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Xc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ld(r,s),emitsOptions:kd(r,s),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:r.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,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 v.NODE_ENV!=="production"?o.ctx=Fv(o):o.ctx={_:o},o.root=e?e.root:o,o.emit=Sg.bind(null,o),t.ce&&t.ce(o),o}let ot=null;const Ni=()=>ot||at;let Si,wl;{const t=Ia(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Si=e("__VUE_INSTANCE_SETTERS__",n=>ot=n),wl=e("__VUE_SSR_SETTERS__",n=>Ti=n)}const oo=t=>{const e=ot;return Si(t),t.scope.on(),()=>{t.scope.off(),Si(e)}},Ad=()=>{ot&&ot.scope.off(),Si(null)},Zg=En("slot,component");function El(t,{isNativeTag:e}){(Zg(t)||e(t))&&U("Do not use built-in or reserved HTML elements as component id: "+t)}function Dd(t){return t.vnode.shapeFlag&4}let Ti=!1;function Bg(t,e=!1,n=!1){e&&wl(e);const{props:r,children:s}=t.vnode,o=Dd(t);tg(t,r,o,e),fg(t,s,n);const i=o?Fg(t,e):void 0;return e&&wl(!1),i}function Fg(t,e){var n;const r=t.type;if(v.NODE_ENV!=="production"){if(r.name&&El(r.name,t.appContext.config),r.components){const o=Object.keys(r.components);for(let i=0;i<o.length;i++)El(o[i],t.appContext.config)}if(r.directives){const o=Object.keys(r.directives);for(let i=0;i<o.length;i++)Zu(o[i])}r.compilerOptions&&Hg()&&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.')}t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Yu),v.NODE_ENV!=="production"&&Hv(t);const{setup:s}=r;if(s){const o=t.setupContext=s.length>1?qg(t):null,i=oo(t);kn();const a=Cn(s,t,0,[v.NODE_ENV!=="production"?cn(t.props):t.props,o]);if(On(),i(),Ca(a)){if(a.then(Ad,Ad),e)return a.then(l=>{Vd(t,l,e)}).catch(l=>{Hs(l,t,0)});if(t.asyncDep=a,v.NODE_ENV!=="production"&&!t.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 Vd(t,a,e)}else Rd(t,e)}function Vd(t,e,n){me(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Be(e)?(v.NODE_ENV!=="production"&&os(e)&&U("setup() should not return VNodes directly - return a render function instead."),v.NODE_ENV!=="production"&&(t.devtoolsRawSetupState=e),t.setupState=Nu(e),v.NODE_ENV!=="production"&&zv(t)):v.NODE_ENV!=="production"&&e!==void 0&&U(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Rd(t,n)}let xl;const Hg=()=>!xl;function Rd(t,e,n){const r=t.type;if(!t.render){if(!e&&xl&&!r.render){const s=r.template||al(t).template;if(s){v.NODE_ENV!=="production"&&Pn(t,"compile");const{isCustomElement:o,compilerOptions:i}=t.appContext.config,{delimiters:a,compilerOptions:l}=r,c=tt(tt({isCustomElement:o,delimiters:a},i),l);r.render=xl(s,c),v.NODE_ENV!=="production"&&In(t,"compile")}}t.render=r.render||nt}{const s=oo(t);kn();try{Wv(t)}finally{On(),s()}}v.NODE_ENV!=="production"&&!r.render&&t.render===nt&&!e&&(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 jd=v.NODE_ENV!=="production"?{get(t,e){return ki(),pt(t,"get",""),t[e]},set(){return U("setupContext.attrs is readonly."),!1},deleteProperty(){return U("setupContext.attrs is readonly."),!1}}:{get(t,e){return pt(t,"get",""),t[e]}};function zg(t){return new Proxy(t.slots,{get(e,n){return pt(t,"get","$slots"),e[n]}})}function qg(t){const e=n=>{if(v.NODE_ENV!=="production"&&(t.exposed&&U("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(de(n)?r="array":Qe(n)&&(r="ref")),r!=="object"&&U(`expose() should be passed a plain object, received ${r}.`)}t.exposed=n||{}};if(v.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(t.attrs,jd))},get slots(){return r||(r=zg(t))},get emit(){return(s,...o)=>t.emit(s,...o)},expose:e})}else return{attrs:new Proxy(t.attrs,jd),slots:t.slots,emit:t.emit,expose:e}}function kl(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Nu(Kn(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Tr)return Tr[n](t)},has(e,n){return n in e||n in Tr}})):t.proxy}const Wg=/(?:^|[-_])(\w)/g,Kg=t=>t.replace(Wg,e=>e.toUpperCase()).replace(/[-_]/g,"");function Ol(t,e=!0){return me(t)?t.displayName||t.name:t.name||e&&t.__name}function Ci(t,e,n=!1){let r=Ol(e);if(!r&&e.__file){const s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t&&t.parent){const s=o=>{for(const i in o)if(o[i]===e)return i};r=s(t.components||t.parent.type.components)||s(t.appContext.components)}return r?Kg(r):n?"App":"Anonymous"}function Ld(t){return me(t)&&"__vccOpts"in t}const ee=(t,e)=>{const n=Xm(t,e,Ti);if(v.NODE_ENV!=="production"){const r=Ni();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function qe(t,e,n){const r=arguments.length;return r===2?Be(e)&&!de(e)?os(e)?F(t,null,[e]):F(t,e):F(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&os(n)&&(n=[n]),F(t,e,n))}function Gg(){if(v.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(d){return Be(d)?d.__isVue?["div",t,"VueInstance"]:Qe(d)?["div",{},["span",t,u(d)],"<",a(d.value),">"]:Nn(d)?["div",{},["span",t,Tn(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${Sn(d)?" (readonly)":""}`]:Sn(d)?["div",{},["span",t,Tn(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...o(d.$)]}};function o(d){const f=[];d.type.props&&d.props&&f.push(i("props",Ee(d.props))),d.setupState!==Ge&&f.push(i("setup",d.setupState)),d.data!==Ge&&f.push(i("data",Ee(d.data)));const m=l(d,"computed");m&&f.push(i("computed",m));const _=l(d,"inject");return _&&f.push(i("injected",_)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function i(d,f){return f=tt({},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",e,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",r,d]:Be(d)?["object",{object:f?Ee(d):d}]:["span",n,String(d)]}function l(d,f){const m=d.type;if(me(m))return;const _={};for(const E in d.ctx)c(m,E,f)&&(_[E]=d.ctx[E]);return _}function c(d,f,m){const _=d[m];if(de(_)&&_.includes(f)||Be(_)&&f in _||d.extends&&c(d.extends,f,m)||d.mixins&&d.mixins.some(E=>c(E,f,m)))return!0}function u(d){return Tn(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}const Md="3.4.38",er=v.NODE_ENV!=="production"?U:nt;var An={};const Jg="http://www.w3.org/2000/svg",Yg="http://www.w3.org/1998/Math/MathML",Dn=typeof document<"u"?document:null,Ud=Dn&&Dn.createElement("template"),Xg={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s=e==="svg"?Dn.createElementNS(Jg,t):e==="mathml"?Dn.createElementNS(Yg,t):n?Dn.createElement(t,{is:n}):Dn.createElement(t);return t==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:t=>Dn.createTextNode(t),createComment:t=>Dn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Dn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,o){const i=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Ud.innerHTML=r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t;const a=Ud.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},tr="transition",io="animation",ao=Symbol("_vtc"),lo=(t,{slots:e})=>qe($v,Qg(t),e);lo.displayName="Transition";const Zd={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};lo.props=tt({},Bu,Zd);const Dr=(t,e=[])=>{de(t)?t.forEach(n=>n(...e)):t&&t(...e)},Bd=t=>t?de(t)?t.some(e=>e.length>1):t.length>1:!1;function Qg(t){const e={};for(const I in t)I in Zd||(e[I]=t[I]);if(t.css===!1)return e;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=t,_=ey(s),E=_&&_[0],k=_&&_[1],{onBeforeEnter:A,onEnter:B,onEnterCancelled:T,onLeave:J,onLeaveCancelled:P,onBeforeAppear:z=A,onAppear:N=B,onAppearCancelled:Oe=T}=e,K=(I,ce,Ze)=>{Vr(I,ce?u:a),Vr(I,ce?c:i),Ze&&Ze()},R=(I,ce)=>{I._isLeaving=!1,Vr(I,d),Vr(I,m),Vr(I,f),ce&&ce()},V=I=>(ce,Ze)=>{const w=I?N:B,$=()=>K(ce,I,Ze);Dr(w,[ce,$]),Fd(()=>{Vr(ce,I?l:o),nr(ce,I?u:a),Bd(w)||Hd(ce,r,E,$)})};return tt(e,{onBeforeEnter(I){Dr(A,[I]),nr(I,o),nr(I,i)},onBeforeAppear(I){Dr(z,[I]),nr(I,l),nr(I,c)},onEnter:V(!1),onAppear:V(!0),onLeave(I,ce){I._isLeaving=!0;const Ze=()=>R(I,ce);nr(I,d),nr(I,f),ry(),Fd(()=>{I._isLeaving&&(Vr(I,d),nr(I,m),Bd(J)||Hd(I,r,k,Ze))}),Dr(J,[I,Ze])},onEnterCancelled(I){K(I,!1),Dr(T,[I])},onAppearCancelled(I){K(I,!0),Dr(Oe,[I])},onLeaveCancelled(I){R(I),Dr(P,[I])}})}function ey(t){if(t==null)return null;if(Be(t))return[Nl(t.enter),Nl(t.leave)];{const e=Nl(t);return[e,e]}}function Nl(t){const e=vm(t);return An.NODE_ENV!=="production"&&cv(e,"<transition> explicit duration"),e}function nr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[ao]||(t[ao]=new Set)).add(e)}function Vr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[ao];n&&(n.delete(e),n.size||(t[ao]=void 0))}function Fd(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let ty=0;function Hd(t,e,n,r){const s=t._endId=++ty,o=()=>{s===t._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=ny(t,e);if(!i)return r();const c=i+"end";let u=0;const d=()=>{t.removeEventListener(c,f),o()},f=m=>{m.target===t&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),t.addEventListener(c,f)}function ny(t,e){const n=window.getComputedStyle(t),r=_=>(n[_]||"").split(", "),s=r(`${tr}Delay`),o=r(`${tr}Duration`),i=zd(s,o),a=r(`${io}Delay`),l=r(`${io}Duration`),c=zd(a,l);let u=null,d=0,f=0;e===tr?i>0&&(u=tr,d=i,f=o.length):e===io?c>0&&(u=io,d=c,f=l.length):(d=Math.max(i,c),u=d>0?i>c?tr:io:null,f=u?u===tr?o.length:l.length:0);const m=u===tr&&/\b(transform|all)(,|$)/.test(r(`${tr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:m}}function zd(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>qd(n)+qd(t[r])))}function qd(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function ry(){return document.body.offsetHeight}function sy(t,e,n){const r=t[ao];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Wd=Symbol("_vod"),oy=Symbol("_vsh"),iy=Symbol(An.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ay=/(^|;)\s*display\s*:/;function ly(t,e,n){const r=t.style,s=Xe(n);let o=!1;if(n&&!s){if(e)if(Xe(e))for(const i of e.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&$i(r,a,"")}else for(const i in e)n[i]==null&&$i(r,i,"");for(const i in n)i==="display"&&(o=!0),$i(r,i,n[i])}else if(s){if(e!==n){const i=r[iy];i&&(n+=";"+i),r.cssText=n,o=ay.test(n)}}else e&&t.removeAttribute("style");Wd in t&&(t[Wd]=o?r.display:"",t[oy]&&(r.display="none"))}const cy=/[^\\];\s*$/,Kd=/\s*!important$/;function $i(t,e,n){if(de(n))n.forEach(r=>$i(t,e,r));else if(n==null&&(n=""),An.NODE_ENV!=="production"&&cy.test(n)&&er(`Unexpected semicolon at the end of '${e}' style value: '${n}'`),e.startsWith("--"))t.setProperty(e,n);else{const r=uy(t,e);Kd.test(n)?t.setProperty(xn(r),n.replace(Kd,""),"important"):t[r]=n}}const Gd=["Webkit","Moz","ms"],Sl={};function uy(t,e){const n=Sl[e];if(n)return n;let r=Vt(e);if(r!=="filter"&&r in t)return Sl[e]=r;r=br(r);for(let s=0;s<Gd.length;s++){const o=Gd[s]+r;if(o in t)return Sl[e]=o}return e}const Jd="http://www.w3.org/1999/xlink";function Yd(t,e,n,r,s,o=Sm(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Jd,e.slice(6,e.length)):t.setAttributeNS(Jd,e,n):n==null||o&&!Gc(n)?t.removeAttribute(e):t.setAttribute(e,o?"":Hn(n)?String(n):n)}function dy(t,e,n,r){if(e==="innerHTML"||e==="textContent"){if(n==null)return;t[e]=n;return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){const i=s==="OPTION"?t.getAttribute("value")||"":t.value,a=n==null?"":String(n);(i!==a||!("_value"in t))&&(t.value=a),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const i=typeof t[e];i==="boolean"?n=Gc(n):n==null&&i==="string"?(n="",o=!0):i==="number"&&(n=0,o=!0)}try{t[e]=n}catch(i){An.NODE_ENV!=="production"&&!o&&er(`Failed setting prop "${e}" on <${s.toLowerCase()}>: value ${n} is invalid.`,i)}o&&t.removeAttribute(e)}function fy(t,e,n,r){t.addEventListener(e,n,r)}function py(t,e,n,r){t.removeEventListener(e,n,r)}const Xd=Symbol("_vei");function hy(t,e,n,r,s=null){const o=t[Xd]||(t[Xd]={}),i=o[e];if(r&&i)i.value=An.NODE_ENV!=="production"?ef(r,e):r;else{const[a,l]=my(e);if(r){const c=o[e]=yy(An.NODE_ENV!=="production"?ef(r,e):r,s);fy(t,a,c,l)}else i&&(py(t,a,i,l),o[e]=void 0)}}const Qd=/(?:Once|Passive|Capture)$/;function my(t){let e;if(Qd.test(t)){e={};let r;for(;r=t.match(Qd);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):xn(t.slice(2)),e]}let Tl=0;const vy=Promise.resolve(),gy=()=>Tl||(vy.then(()=>Tl=0),Tl=Date.now());function yy(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ut(_y(r,n.value),e,5,[r])};return n.value=t,n.attached=gy(),n}function ef(t,e){return me(t)||de(t)?t:(er(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
|
|
17
|
+
Expected function or array of functions, received type ${typeof t}.`),nt)}function _y(t,e){if(de(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>s=>!s._stopped&&r&&r(s))}else return e}const tf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,by=(t,e,n,r,s,o)=>{const i=s==="svg";e==="class"?sy(t,r,i):e==="style"?ly(t,n,r):Ms(e)?Wo(e)||hy(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):wy(t,e,r,i))?(dy(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Yd(t,e,r,i,o,e!=="value")):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Yd(t,e,r,i))};function wy(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&tf(e)&&me(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const s=t.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return tf(e)&&Xe(n)?!1:e in t}const Ey=["ctrl","shift","alt","meta"],xy={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Ey.some(n=>t[`${n}Key`]&&!e.includes(n))},ky=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i<e.length;i++){const a=xy[e[i]];if(a&&a(s,e))return}return t(s,...o)})},Oy=tt({patchProp:by},Xg);let nf;function Ny(){return nf||(nf=_g(Oy))}const Sy=(...t)=>{const e=Ny().createApp(...t);An.NODE_ENV!=="production"&&(Cy(e),$y(e));const{mount:n}=e;return e.mount=r=>{const s=Py(r);if(!s)return;const o=e._component;!me(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,Ty(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},e};function Ty(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Cy(t){Object.defineProperty(t.config,"isNativeTag",{value:e=>km(e)||Om(e)||Nm(e),writable:!1})}function $y(t){{const e=t.config.isCustomElement;Object.defineProperty(t.config,"isCustomElement",{get(){return e},set(){er("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=t.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(t.config,"compilerOptions",{get(){return er(r),n},set(){er(r)}})}}function Py(t){if(Xe(t)){const e=document.querySelector(t);return An.NODE_ENV!=="production"&&!e&&er(`Failed to mount app: mount target selector "${t}" returned null.`),e}return An.NODE_ENV!=="production"&&window.ShadowRoot&&t instanceof window.ShadowRoot&&t.mode==="closed"&&er('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),t}var Iy={};function Ay(){Gg()}Iy.NODE_ENV!=="production"&&Ay();let Pi;const Dy=new Uint8Array(16);function Vy(){if(!Pi&&(Pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pi(Dy)}const ht=[];for(let t=0;t<256;++t)ht.push((t+256).toString(16).slice(1));function Ry(t,e=0){return ht[t[e+0]]+ht[t[e+1]]+ht[t[e+2]]+ht[t[e+3]]+"-"+ht[t[e+4]]+ht[t[e+5]]+"-"+ht[t[e+6]]+ht[t[e+7]]+"-"+ht[t[e+8]]+ht[t[e+9]]+"-"+ht[t[e+10]]+ht[t[e+11]]+ht[t[e+12]]+ht[t[e+13]]+ht[t[e+14]]+ht[t[e+15]]}const rf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cl(t,e,n){if(rf.randomUUID&&!e&&!t)return rf.randomUUID();t=t||{};const r=t.random||(t.rng||Vy)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ry(r)}var Ue;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),i={};for(const a of o)i[a]=s[a];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(Ue||(Ue={}));var $l;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})($l||($l={}));const se=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),rr=t=>{switch(typeof t){case"undefined":return se.undefined;case"string":return se.string;case"number":return isNaN(t)?se.nan:se.number;case"boolean":return se.boolean;case"function":return se.function;case"bigint":return se.bigint;case"symbol":return se.symbol;case"object":return Array.isArray(t)?se.array:t===null?se.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?se.promise:typeof Map<"u"&&t instanceof Map?se.map:typeof Set<"u"&&t instanceof Set?se.set:typeof Date<"u"&&t instanceof Date?se.date:se.object;default:return se.unknown}},H=Ue.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"]),jy=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class Gt extends Error{constructor(e){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=e}get errors(){return this.issues}format(e){const n=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(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 c=i.path[l];l===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(n(i))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return s(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ue.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Gt.create=t=>new Gt(t);const co=(t,e)=>{let n;switch(t.code){case H.invalid_type:t.received===se.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case H.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Ue.jsonStringifyReplacer)}`;break;case H.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ue.joinValues(t.keys,", ")}`;break;case H.invalid_union:n="Invalid input";break;case H.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ue.joinValues(t.options)}`;break;case H.invalid_enum_value:n=`Invalid enum value. Expected ${Ue.joinValues(t.options)}, received '${t.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 t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Ue.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case H.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case H.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.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 ${t.multipleOf}`;break;case H.not_finite:n="Number must be finite";break;default:n=e.defaultError,Ue.assertNever(t)}return{message:n}};let sf=co;function Ly(t){sf=t}function Ii(){return sf}const Ai=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,o=[...n,...s.path||[]],i={...s,path:o};let a="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)a=c(i,{data:e,defaultError:a}).message;return{...s,path:o,message:s.message||a}},My=[];function ie(t,e){const n=Ai({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Ii(),co].filter(r=>!!r)});t.common.issues.push(n)}class wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return Ne;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n)r.push({key:await s.key,value:await s.value});return wt.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:o,value:i}=s;if(o.status==="aborted"||i.status==="aborted")return Ne;o.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[o.value]=i.value)}return{status:e.value,value:r}}}const Ne=Object.freeze({status:"aborted"}),of=t=>({status:"dirty",value:t}),St=t=>({status:"valid",value:t}),Pl=t=>t.status==="aborted",Il=t=>t.status==="dirty",uo=t=>t.status==="valid",Di=t=>typeof Promise<"u"&&t instanceof Promise;var pe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(pe||(pe={}));class hn{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}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 af=(t,e)=>{if(uo(e))return{success:!0,data:e.value};if(!t.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 Gt(t.common.issues);return this._error=n,this._error}}};function Ce(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,a)=>i.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:r??a.defaultError}:{message:n??a.defaultError},description:s}}class Pe{constructor(e){this.spa=this.safeParseAsync,this._def=e,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(e){return rr(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:rr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new wt,ctx:{common:e.parent.common,data:e.data,parsedType:rr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(Di(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={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:e,parsedType:rr(e)},o=this._parseSync({data:e,path:s.path,parent:s});return af(s,o)}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,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:e,parsedType:rr(e)},s=this._parse({data:e,path:r.path,parent:r}),o=await(Di(s)?s:Promise.resolve(s));return af(r,o)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,o)=>{const i=e(s),a=()=>o.addIssue({code:H.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new Xt({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Rn.create(this,this._def)}nullable(){return Mr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yt.create(this,this._def)}promise(){return cs.create(this,this._def)}or(e){return mo.create([this,e],this._def)}and(e){return vo.create(this,e,this._def)}transform(e){return new Xt({...Ce(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new wo({...Ce(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new cf({typeName:_e.ZodBranded,type:this,...Ce(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ui({...Ce(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Eo.create(this,e)}readonly(){return Bi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Uy=/^c[^\s-]{8,}$/i,Zy=/^[a-z][a-z0-9]*$/,By=/^[0-9A-HJKMNP-TV-Z]{26}$/,Fy=/^[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,Hy=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,zy="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Al;const qy=/^(((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}))$/,Wy=/^(([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})))$/,Ky=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.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$"):t.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 Gy(t,e){return!!((e==="v4"||!e)&&qy.test(t)||(e==="v6"||!e)&&Wy.test(t))}class Jt extends Pe{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==se.string){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.string,received:o.parsedType}),Ne}const r=new wt;let s;for(const o of this._def.checks)if(o.kind==="min")e.data.length<o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")e.data.length>o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const i=e.data.length>o.value,a=e.data.length<o.value;(i||a)&&(s=this._getOrReturnCtx(e,s),i?ie(s,{code:H.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&ie(s,{code:H.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Hy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"email",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Al||(Al=new RegExp(zy,"u")),Al.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"emoji",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Fy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"uuid",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Uy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"cuid",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Zy.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"cuid2",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")By.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"ulid",code:H.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),ie(s,{validation:"url",code:H.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"regex",code:H.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?e.data=e.data.trim():o.kind==="includes"?e.data.includes(o.value,o.position)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?e.data=e.data.toLowerCase():o.kind==="toUpperCase"?e.data=e.data.toUpperCase():o.kind==="startsWith"?e.data.startsWith(o.value)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?e.data.endsWith(o.value)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Ky(o).test(e.data)||(s=this._getOrReturnCtx(e,s),ie(s,{code:H.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="ip"?Gy(e.data,o.version)||(s=this._getOrReturnCtx(e,s),ie(s,{validation:"ip",code:H.invalid_string,message:o.message}),r.dirty()):Ue.assertNever(o);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:H.invalid_string,...pe.errToObj(r)})}_addCheck(e){return new Jt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...pe.errToObj(e)})}url(e){return this._addCheck({kind:"url",...pe.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...pe.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...pe.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...pe.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...pe.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...pe.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...pe.errToObj(e)})}datetime(e){var n;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,...pe.errToObj(e==null?void 0:e.message)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...pe.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...pe.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...pe.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...pe.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...pe.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...pe.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...pe.errToObj(n)})}nonempty(e){return this.min(1,pe.errToObj(e))}trim(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Jt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Jt.create=t=>{var e;return new Jt({checks:[],typeName:_e.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ce(t)})};function Jy(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,o=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return o%i/Math.pow(10,s)}class sr extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==se.number){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.number,received:o.parsedType}),Ne}let r;const s=new wt;for(const o of this._def.checks)o.kind==="int"?Ue.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),ie(r,{code:H.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty()):o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty()):o.kind==="multipleOf"?Jy(e.data,o.value)!==0&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):o.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),ie(r,{code:H.not_finite,message:o.message}),s.dirty()):Ue.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,r,s){return new sr({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:pe.toString(s)}]})}_addCheck(e){return new sr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:pe.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:pe.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Ue.isInteger(e.value))}get isFinite(){let e=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"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}sr.create=t=>new sr({checks:[],typeName:_e.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ce(t)});class or extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==se.bigint){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.bigint,received:o.parsedType}),Ne}let r;const s=new wt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?e.data<o.value:e.data<=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="max"?(o.inclusive?e.data>o.value:e.data>=o.value)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty()):o.kind==="multipleOf"?e.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),ie(r,{code:H.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):Ue.assertNever(o);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,pe.toString(n))}gt(e,n){return this.setLimit("min",e,!1,pe.toString(n))}lte(e,n){return this.setLimit("max",e,!0,pe.toString(n))}lt(e,n){return this.setLimit("max",e,!1,pe.toString(n))}setLimit(e,n,r,s){return new or({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:pe.toString(s)}]})}_addCheck(e){return new or({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:pe.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}or.create=t=>{var e;return new or({checks:[],typeName:_e.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ce(t)})};class fo extends Pe{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==se.boolean){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.boolean,received:r.parsedType}),Ne}return St(e.data)}}fo.create=t=>new fo({typeName:_e.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ce(t)});class Rr extends Pe{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==se.date){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_type,expected:se.date,received:o.parsedType}),Ne}if(isNaN(e.data.getTime())){const o=this._getOrReturnCtx(e);return ie(o,{code:H.invalid_date}),Ne}const r=new wt;let s;for(const o of this._def.checks)o.kind==="min"?e.data.getTime()<o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?e.data.getTime()>o.value&&(s=this._getOrReturnCtx(e,s),ie(s,{code:H.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):Ue.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Rr({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:pe.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:pe.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}Rr.create=t=>new Rr({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:_e.ZodDate,...Ce(t)});class Vi extends Pe{_parse(e){if(this._getType(e)!==se.symbol){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.symbol,received:r.parsedType}),Ne}return St(e.data)}}Vi.create=t=>new Vi({typeName:_e.ZodSymbol,...Ce(t)});class po extends Pe{_parse(e){if(this._getType(e)!==se.undefined){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.undefined,received:r.parsedType}),Ne}return St(e.data)}}po.create=t=>new po({typeName:_e.ZodUndefined,...Ce(t)});class ho extends Pe{_parse(e){if(this._getType(e)!==se.null){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.null,received:r.parsedType}),Ne}return St(e.data)}}ho.create=t=>new ho({typeName:_e.ZodNull,...Ce(t)});class is extends Pe{constructor(){super(...arguments),this._any=!0}_parse(e){return St(e.data)}}is.create=t=>new is({typeName:_e.ZodAny,...Ce(t)});class jr extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(e){return St(e.data)}}jr.create=t=>new jr({typeName:_e.ZodUnknown,...Ce(t)});class Vn extends Pe{_parse(e){const n=this._getOrReturnCtx(e);return ie(n,{code:H.invalid_type,expected:se.never,received:n.parsedType}),Ne}}Vn.create=t=>new Vn({typeName:_e.ZodNever,...Ce(t)});class Ri extends Pe{_parse(e){if(this._getType(e)!==se.undefined){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.void,received:r.parsedType}),Ne}return St(e.data)}}Ri.create=t=>new Ri({typeName:_e.ZodVoid,...Ce(t)});class Yt extends Pe{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==se.array)return ie(n,{code:H.invalid_type,expected:se.array,received:n.parsedType}),Ne;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(i||a)&&(ie(n,{code:i?H.too_big:H.too_small,minimum:a?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(ie(n,{code:H.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(ie(n,{code:H.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,a)=>s.type._parseAsync(new hn(n,i,n.path,a)))).then(i=>wt.mergeArray(r,i));const o=[...n.data].map((i,a)=>s.type._parseSync(new hn(n,i,n.path,a)));return wt.mergeArray(r,o)}get element(){return this._def.type}min(e,n){return new Yt({...this._def,minLength:{value:e,message:pe.toString(n)}})}max(e,n){return new Yt({...this._def,maxLength:{value:e,message:pe.toString(n)}})}length(e,n){return new Yt({...this._def,exactLength:{value:e,message:pe.toString(n)}})}nonempty(e){return this.min(1,e)}}Yt.create=(t,e)=>new Yt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ce(e)});function as(t){if(t instanceof et){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Rn.create(as(r))}return new et({...t._def,shape:()=>e})}else return t instanceof Yt?new Yt({...t._def,type:as(t.element)}):t instanceof Rn?Rn.create(as(t.unwrap())):t instanceof Mr?Mr.create(as(t.unwrap())):t instanceof mn?mn.create(t.items.map(e=>as(e))):t}class et extends Pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Ue.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==se.object){const c=this._getOrReturnCtx(e);return ie(c,{code:H.invalid_type,expected:se.object,received:c.parsedType}),Ne}const{status:r,ctx:s}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Vn&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||a.push(c);const l=[];for(const c of i){const u=o[c],d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new hn(s,d,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof Vn){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(c==="strict")a.length>0&&(ie(s,{code:H.unrecognized_keys,keys:a}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new hn(s,d,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key;c.push({key:d,value:await u.value,alwaysSet:u.alwaysSet})}return c}).then(c=>wt.mergeObjectSync(r,c)):wt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(e){return pe.errToObj,new et({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,o,i,a;const l=(i=(o=(s=this._def).errorMap)===null||o===void 0?void 0:o.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=pe.errToObj(e).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(e){return new et({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new et({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:_e.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new et({...this._def,catchall:e})}pick(e){const n={};return Ue.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}omit(e){const n={};return Ue.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new et({...this._def,shape:()=>n})}deepPartial(){return as(this)}partial(e){const n={};return Ue.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new et({...this._def,shape:()=>n})}required(e){const n={};return Ue.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Rn;)o=o._def.innerType;n[r]=o}}),new et({...this._def,shape:()=>n})}keyof(){return lf(Ue.objectKeys(this.shape))}}et.create=(t,e)=>new et({shape:()=>t,unknownKeys:"strip",catchall:Vn.create(),typeName:_e.ZodObject,...Ce(e)}),et.strictCreate=(t,e)=>new et({shape:()=>t,unknownKeys:"strict",catchall:Vn.create(),typeName:_e.ZodObject,...Ce(e)}),et.lazycreate=(t,e)=>new et({shape:t,unknownKeys:"strip",catchall:Vn.create(),typeName:_e.ZodObject,...Ce(e)});class mo extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const i=o.map(a=>new Gt(a.ctx.common.issues));return ie(n,{code:H.invalid_union,unionErrors:i}),Ne}if(n.common.async)return Promise.all(r.map(async o=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let o;const i=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=i.map(l=>new Gt(l));return ie(n,{code:H.invalid_union,unionErrors:a}),Ne}}get options(){return this._def.options}}mo.create=(t,e)=>new mo({options:t,typeName:_e.ZodUnion,...Ce(e)});const ji=t=>t instanceof yo?ji(t.schema):t instanceof Xt?ji(t.innerType()):t instanceof _o?[t.value]:t instanceof ir?t.options:t instanceof bo?Object.keys(t.enum):t instanceof wo?ji(t._def.innerType):t instanceof po?[void 0]:t instanceof ho?[null]:null;class Li extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==se.object)return ie(n,{code:H.invalid_type,expected:se.object,received:n.parsedType}),Ne;const r=this.discriminator,s=n.data[r],o=this.optionsMap.get(s);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ie(n,{code:H.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ne)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const o of n){const i=ji(o.shape[e]);if(!i)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of i){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,o)}}return new Li({typeName:_e.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...Ce(r)})}}function Dl(t,e){const n=rr(t),r=rr(e);if(t===e)return{valid:!0,data:t};if(n===se.object&&r===se.object){const s=Ue.objectKeys(e),o=Ue.objectKeys(t).filter(a=>s.indexOf(a)!==-1),i={...t,...e};for(const a of o){const l=Dl(t[a],e[a]);if(!l.valid)return{valid:!1};i[a]=l.data}return{valid:!0,data:i}}else if(n===se.array&&r===se.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let o=0;o<t.length;o++){const i=t[o],a=e[o],l=Dl(i,a);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return n===se.date&&r===se.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class vo extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(o,i)=>{if(Pl(o)||Pl(i))return Ne;const a=Dl(o.value,i.value);return a.valid?((Il(o)||Il(i))&&n.dirty(),{status:n.value,value:a.data}):(ie(r,{code:H.invalid_intersection_types}),Ne)};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(([o,i])=>s(o,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}vo.create=(t,e,n)=>new vo({left:t,right:e,typeName:_e.ZodIntersection,...Ce(n)});class mn extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.array)return ie(r,{code:H.invalid_type,expected:se.array,received:r.parsedType}),Ne;if(r.data.length<this._def.items.length)return ie(r,{code:H.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ne;!this._def.rest&&r.data.length>this._def.items.length&&(ie(r,{code:H.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((i,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new hn(r,i,r.path,a)):null}).filter(i=>!!i);return r.common.async?Promise.all(o).then(i=>wt.mergeArray(n,i)):wt.mergeArray(n,o)}get items(){return this._def.items}rest(e){return new mn({...this._def,rest:e})}}mn.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new mn({items:t,typeName:_e.ZodTuple,rest:null,...Ce(e)})};class go extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.object)return ie(r,{code:H.invalid_type,expected:se.object,received:r.parsedType}),Ne;const s=[],o=this._def.keyType,i=this._def.valueType;for(const a in r.data)s.push({key:o._parse(new hn(r,a,r.path,a)),value:i._parse(new hn(r,r.data[a],r.path,a))});return r.common.async?wt.mergeObjectAsync(n,s):wt.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof Pe?new go({keyType:e,valueType:n,typeName:_e.ZodRecord,...Ce(r)}):new go({keyType:Jt.create(),valueType:e,typeName:_e.ZodRecord,...Ce(n)})}}class Mi extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.map)return ie(r,{code:H.invalid_type,expected:se.map,received:r.parsedType}),Ne;const s=this._def.keyType,o=this._def.valueType,i=[...r.data.entries()].map(([a,l],c)=>({key:s._parse(new hn(r,a,r.path,[c,"key"])),value:o._parse(new hn(r,l,r.path,[c,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of i){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Ne;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of i){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Ne;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(c.value,u.value)}return{status:n.value,value:a}}}}Mi.create=(t,e,n)=>new Mi({valueType:e,keyType:t,typeName:_e.ZodMap,...Ce(n)});class Lr extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==se.set)return ie(r,{code:H.invalid_type,expected:se.set,received:r.parsedType}),Ne;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(ie(r,{code:H.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(ie(r,{code:H.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const o=this._def.valueType;function i(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Ne;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const a=[...r.data.values()].map((l,c)=>o._parse(new hn(r,l,r.path,c)));return r.common.async?Promise.all(a).then(l=>i(l)):i(a)}min(e,n){return new Lr({...this._def,minSize:{value:e,message:pe.toString(n)}})}max(e,n){return new Lr({...this._def,maxSize:{value:e,message:pe.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}Lr.create=(t,e)=>new Lr({valueType:t,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ce(e)});class ls extends Pe{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==se.function)return ie(n,{code:H.invalid_type,expected:se.function,received:n.parsedType}),Ne;function r(a,l){return Ai({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ii(),co].filter(c=>!!c),issueData:{code:H.invalid_arguments,argumentsError:l}})}function s(a,l){return Ai({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Ii(),co].filter(c=>!!c),issueData:{code:H.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof cs){const a=this;return St(async function(...l){const c=new Gt([]),u=await a._def.args.parseAsync(l,o).catch(m=>{throw c.addIssue(r(l,m)),c}),d=await Reflect.apply(i,this,u);return await a._def.returns._def.type.parseAsync(d,o).catch(m=>{throw c.addIssue(s(d,m)),c})})}else{const a=this;return St(function(...l){const c=a._def.args.safeParse(l,o);if(!c.success)throw new Gt([r(l,c.error)]);const u=Reflect.apply(i,this,c.data),d=a._def.returns.safeParse(u,o);if(!d.success)throw new Gt([s(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ls({...this._def,args:mn.create(e).rest(jr.create())})}returns(e){return new ls({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new ls({args:e||mn.create([]).rest(jr.create()),returns:n||jr.create(),typeName:_e.ZodFunction,...Ce(r)})}}class yo extends Pe{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}yo.create=(t,e)=>new yo({getter:t,typeName:_e.ZodLazy,...Ce(e)});class _o extends Pe{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ie(n,{received:n.data,code:H.invalid_literal,expected:this._def.value}),Ne}return{status:"valid",value:e.data}}get value(){return this._def.value}}_o.create=(t,e)=>new _o({value:t,typeName:_e.ZodLiteral,...Ce(e)});function lf(t,e){return new ir({values:t,typeName:_e.ZodEnum,...Ce(e)})}class ir extends Pe{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return ie(n,{expected:Ue.joinValues(r),received:n.parsedType,code:H.invalid_type}),Ne}if(this._def.values.indexOf(e.data)===-1){const n=this._getOrReturnCtx(e),r=this._def.values;return ie(n,{received:n.data,code:H.invalid_enum_value,options:r}),Ne}return St(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e){return ir.create(e)}exclude(e){return ir.create(this.options.filter(n=>!e.includes(n)))}}ir.create=lf;class bo extends Pe{_parse(e){const n=Ue.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==se.string&&r.parsedType!==se.number){const s=Ue.objectValues(n);return ie(r,{expected:Ue.joinValues(s),received:r.parsedType,code:H.invalid_type}),Ne}if(n.indexOf(e.data)===-1){const s=Ue.objectValues(n);return ie(r,{received:r.data,code:H.invalid_enum_value,options:s}),Ne}return St(e.data)}get enum(){return this._def.values}}bo.create=(t,e)=>new bo({values:t,typeName:_e.ZodNativeEnum,...Ce(e)});class cs extends Pe{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==se.promise&&n.common.async===!1)return ie(n,{code:H.invalid_type,expected:se.promise,received:n.parsedType}),Ne;const r=n.parsedType===se.promise?n.data:Promise.resolve(n.data);return St(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}cs.create=(t,e)=>new cs({type:t,typeName:_e.ZodPromise,...Ce(e)});class Xt extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,o={addIssue:i=>{ie(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),s.type==="preprocess"){const i=s.transform(r.data,o);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(s.type==="refinement"){const i=a=>{const l=s.refinement(a,o);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"?Ne:(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"?Ne:(a.status==="dirty"&&n.dirty(),i(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!uo(i))return i;const a=s.transform(i.value,o);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=>uo(i)?Promise.resolve(s.transform(i.value,o)).then(a=>({status:n.value,value:a})):i);Ue.assertNever(s)}}Xt.create=(t,e,n)=>new Xt({schema:t,typeName:_e.ZodEffects,effect:e,...Ce(n)}),Xt.createWithPreprocess=(t,e,n)=>new Xt({schema:e,effect:{type:"preprocess",transform:t},typeName:_e.ZodEffects,...Ce(n)});class Rn extends Pe{_parse(e){return this._getType(e)===se.undefined?St(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Rn.create=(t,e)=>new Rn({innerType:t,typeName:_e.ZodOptional,...Ce(e)});class Mr extends Pe{_parse(e){return this._getType(e)===se.null?St(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Mr.create=(t,e)=>new Mr({innerType:t,typeName:_e.ZodNullable,...Ce(e)});class wo extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}wo.create=(t,e)=>new wo({innerType:t,typeName:_e.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ce(e)});class Ui extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Di(s)?s.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Gt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ui.create=(t,e)=>new Ui({innerType:t,typeName:_e.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ce(e)});class Zi extends Pe{_parse(e){if(this._getType(e)!==se.nan){const r=this._getOrReturnCtx(e);return ie(r,{code:H.invalid_type,expected:se.nan,received:r.parsedType}),Ne}return{status:"valid",value:e.data}}}Zi.create=t=>new Zi({typeName:_e.ZodNaN,...Ce(t)});const Yy=Symbol("zod_brand");class cf extends Pe{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Eo extends Pe{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ne:o.status==="dirty"?(n.dirty(),of(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Ne:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Eo({in:e,out:n,typeName:_e.ZodPipeline})}}class Bi extends Pe{_parse(e){const n=this._def.innerType._parse(e);return uo(n)&&(n.value=Object.freeze(n.value)),n}}Bi.create=(t,e)=>new Bi({innerType:t,typeName:_e.ZodReadonly,...Ce(e)});const uf=(t,e={},n)=>t?is.create().superRefine((r,s)=>{var o,i;if(!t(r)){const a=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,l=(i=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:!0,c=typeof a=="string"?{message:a}:a;s.addIssue({code:"custom",...c,fatal:l})}}):is.create(),Xy={object:et.lazycreate};var _e;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(_e||(_e={}));const Qy=(t,e={message:`Input not instance of ${t.name}`})=>uf(n=>n instanceof t,e),df=Jt.create,ff=sr.create,e_=Zi.create,t_=or.create,pf=fo.create,n_=Rr.create,r_=Vi.create,s_=po.create,o_=ho.create,i_=is.create,a_=jr.create,l_=Vn.create,c_=Ri.create,u_=Yt.create,d_=et.create,f_=et.strictCreate,p_=mo.create,h_=Li.create,m_=vo.create,v_=mn.create,g_=go.create,y_=Mi.create,__=Lr.create,b_=ls.create,w_=yo.create,E_=_o.create,x_=ir.create,k_=bo.create,O_=cs.create,hf=Xt.create,N_=Rn.create,S_=Mr.create,T_=Xt.createWithPreprocess,C_=Eo.create;var ar=Object.freeze({__proto__:null,defaultErrorMap:co,setErrorMap:Ly,getErrorMap:Ii,makeIssue:Ai,EMPTY_PATH:My,addIssueToContext:ie,ParseStatus:wt,INVALID:Ne,DIRTY:of,OK:St,isAborted:Pl,isDirty:Il,isValid:uo,isAsync:Di,get util(){return Ue},get objectUtil(){return $l},ZodParsedType:se,getParsedType:rr,ZodType:Pe,ZodString:Jt,ZodNumber:sr,ZodBigInt:or,ZodBoolean:fo,ZodDate:Rr,ZodSymbol:Vi,ZodUndefined:po,ZodNull:ho,ZodAny:is,ZodUnknown:jr,ZodNever:Vn,ZodVoid:Ri,ZodArray:Yt,ZodObject:et,ZodUnion:mo,ZodDiscriminatedUnion:Li,ZodIntersection:vo,ZodTuple:mn,ZodRecord:go,ZodMap:Mi,ZodSet:Lr,ZodFunction:ls,ZodLazy:yo,ZodLiteral:_o,ZodEnum:ir,ZodNativeEnum:bo,ZodPromise:cs,ZodEffects:Xt,ZodTransformer:Xt,ZodOptional:Rn,ZodNullable:Mr,ZodDefault:wo,ZodCatch:Ui,ZodNaN:Zi,BRAND:Yy,ZodBranded:cf,ZodPipeline:Eo,ZodReadonly:Bi,custom:uf,Schema:Pe,ZodSchema:Pe,late:Xy,get ZodFirstPartyTypeKind(){return _e},coerce:{string:t=>Jt.create({...t,coerce:!0}),number:t=>sr.create({...t,coerce:!0}),boolean:t=>fo.create({...t,coerce:!0}),bigint:t=>or.create({...t,coerce:!0}),date:t=>Rr.create({...t,coerce:!0})},any:i_,array:u_,bigint:t_,boolean:pf,date:n_,discriminatedUnion:h_,effect:hf,enum:x_,function:b_,instanceof:Qy,intersection:m_,lazy:w_,literal:E_,map:y_,nan:e_,nativeEnum:k_,never:l_,null:o_,nullable:S_,number:ff,object:d_,oboolean:()=>pf().optional(),onumber:()=>ff().optional(),optional:N_,ostring:()=>df().optional(),pipeline:C_,preprocess:T_,promise:O_,record:g_,set:__,strictObject:f_,string:df,symbol:r_,transformer:hf,tuple:v_,undefined:s_,union:p_,unknown:a_,void:c_,NEVER:Ne,ZodIssueCode:H,quotelessJson:jy,ZodError:Gt}),lr=Symbol("storefront");function $_(t,e=100){let n=0;return async(...s)=>{clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}}var P_=ar.object({source:ar.literal("moonbase-checkout"),event:ar.literal("close"),intent:ar.string().optional()}),I_=ar.object({source:ar.literal("moonbase-checkout"),event:ar.literal("completed")}),A_=ar.discriminatedUnion("event",[P_,I_]);function mf(t){if(typeof window>"u"){console.warn("Can not mount checkout server side");return}const e=document.createElement("iframe");e.id="moonbase-checkout",e.src=t,e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.right="0px",e.style.border="none",e.style.colorScheme="normal",e.style.backgroundColor="transparent",e.style.zIndex=Number.MAX_SAFE_INTEGER.toString(),e.setAttribute("background","transparent"),e.setAttribute("frameborder","0"),e.setAttribute("allowtransparency","true"),e.setAttribute("allow","payment"),e.height="100%",e.width="100%",document.body.append(e),document.documentElement.style.overflow="hidden",window.onmessage=function(n){var r;try{const s=A_.parse(n.data);s.event==="close"&&(document.body.contains(e)&&(document.documentElement.style.removeProperty("overflow"),document.body.removeChild(e)),window.dispatchEvent(new CustomEvent("moonbase-checkout-closed",{detail:s}))),s.event==="completed"&&window.dispatchEvent(new CustomEvent("moonbase-checkout-completed",{detail:s}))}catch(s){((r=n.data)==null?void 0:r.source)==="moonbase-checkout"&&console.error("Could not parse event:",n.data,s)}}}var Fi=class gt{constructor(e,n,r){this.configuration=e,this.client=n,this.stateFactory=r,this.hasUtm=ee(()=>!!this.utm.value&&Object.values(this.utm.value).some(l=>!!l)),this.currentUser=C(null),this.loadedUser=C(!1),this.debouncedPushOrderContent=$_(l=>this.client.orders.pushContent(l,void 0,this.hasUtm.value?this.utm.value:void 0),500);var s;if(typeof window>"u"){this.currentOrder=C({id:Cl(),status:js.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(gt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${gt.storefrontKey}_loaded`,!1),this.utm=r(`${gt.storefrontKey}_utm`,void 0);return}const o=new URLSearchParams(window.location.search);this.utm=r(`${gt.storefrontKey}_utm`,{referrer:((s=window.document.referrer)==null?void 0:s.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:o.get("utm_source")||void 0,medium:o.get("utm_medium")||void 0,campaign:o.get("utm_campaign")||void 0,term:o.get("utm_term")||void 0,content:o.get("utm_content")||void 0}),window.addEventListener("storage",l=>this.handleStorageUpdate(l));const i=localStorage.getItem(gt.sessionKey);i?(this.currentOrder=C(JSON.parse(i)),this.refreshOrder()):this.currentOrder=C({id:Cl(),status:js.Open,currency:"",items:[],couponsApplied:[]});const a=localStorage.getItem(gt.storefrontKey);if(a?(this.storefront=r(gt.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${gt.storefrontKey}_loaded`,!0)):(this.storefront=r(gt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${gt.storefrontKey}_loaded`,!1)),this.client.tokenStore.hasAccessToken&&(this.currentUser.value=this.client.tokenStore.user),this.updateStorefront(),this.updateUser(),window.location){const l=new URLSearchParams(window.location.search),c=l.get("mb_intent"),u=l.get("mb_endpoint");if(c==="checkout"&&l.get("mb_complete")&&u){const d=Object.fromEntries([...l.entries()].filter(([m])=>!m.startsWith("mb_"))),f=new URL(decodeURIComponent(u));for(const m of Object.keys(d))f.searchParams.append(m,d[m]);mf(f.toString()),window.history.replaceState(null,"",window.location.href.split("?")[0])}}window.addEventListener("moonbase-checkout-completed",()=>this.resetOrder())}get loadedStorefrontPromise(){return new Promise(e=>{lt(this.loadedStorefront,n=>{n&&e()},{immediate:!0})})}get loadedUserPromise(){return new Promise(e=>{lt(this.loadedUser,n=>{n&&e()},{immediate:!0})})}onCheckoutCompleted(e){window.addEventListener("moonbase-checkout-completed",()=>e())}onCheckoutClosed(e){window.addEventListener("moonbase-checkout-closed",n=>e(n.detail.intent))}install(e){e.provide(lr,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(e){e instanceof xa||console.error("Could not load user",e)}finally{this.loadedUser.value=!0}}async updateStorefront(){const e=await this.client.storefront.get(this.hasUtm.value?this.utm.value:void 0);e&&(typeof window<"u"&&localStorage.setItem(gt.storefrontKey,JSON.stringify(e)),this.storefront.value=e,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=e.suggestedCurrency))}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(gt.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(e){switch(e.key){case gt.sessionKey:this.currentOrder.value=JSON.parse(e.newValue);break;case gt.storefrontKey:this.storefront.value=JSON.parse(e.newValue);break}}async refreshOrder(){try{const e=await this.client.orders.get(this.currentOrder.value.id);e&&(e.status!==js.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(gt.sessionKey,JSON.stringify(e)),this.currentOrder.value=e))}catch(e){e!=null&&this.resetOrder()}}resetOrder(){var e;this.currentOrder.value={id:Cl(),currency:((e=this.storefront.value)==null?void 0:e.suggestedCurrency)||"",status:js.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(gt.sessionKey)}};Fi.userKey="moonbase_user",Fi.sessionKey="moonbase_session",Fi.storefrontKey="moonbase_storefront";var D_=Fi;function vf(t,e){const n=e??Me(lr);if(!n)throw new Error("No storefront configured");return ee(()=>n.storefront.value.bundles.find(r=>r.id===t)||null)}function gf(t,e){const n=e??Me(lr);if(!n)throw new Error("No storefront configured");return ee(()=>n.storefront.value.products.find(r=>r.id===t)||null)}function Hi(t){const e=Me(lr);if(!e)throw new Error("No storefront configured");return{getLicenses:async n=>e.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>e.client.inventory.licenses.getActivations(n,r),getProduct:async(n,r)=>e.client.inventory.products.get(n,r),getProducts:async n=>e.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>e.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>e.client.inventory.products.getActivations(n,r),revokeActivation:async n=>e.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>e.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await e.client.inventory.products.getDownloadUrl(n.path)}}}function V_(t,e){const n=Me(lr),r=tv(t);if(!r)throw new Error("No request ID was given when calling `useActivationRequest`");if(!n)throw new Error("No storefront configured");const s=n.stateFactory(`activation-request-${r}`,null),o=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),c=n.stateFactory(`activation-request-${r}-completion-timeout`,null),u=async()=>{await n.client.activationRequests.isCompleted(r)&&s.value?(s.value.status=on.Completed,l.value=!1):c.value=setTimeout(u,1500)};return r&&r.length>0?n.client.activationRequests.get(r).then(d=>{s.value=d,s.value.status===on.Fulfilled&&(l.value=!0,u()),i.value=!1}).catch(d=>{o.value=d,i.value=!1}):(o.value=new Error("Missing request id"),i.value=!1),el(()=>{c.value&&clearTimeout(c.value)}),lt(n.currentUser,async()=>{var d,f;if(!(!r||(f=(d=s.value)==null?void 0:d.licenseEligibility)!=null&&f.eligible)){i.value=!0;try{s.value=await n.client.activationRequests.get(r),s.value.status===on.Fulfilled&&(l.value=!0,u())}catch(m){o.value=m}i.value=!1}}),{activationRequest:s,loading:i,fulfilling:a,completing:l,error:o,isInstalled:ee(()=>{var d;return s&&((d=s.value)==null?void 0:d.status)===on.Completed}),fulfillLicense:async()=>{a.value=!0,s.value=await n.client.activationRequests.fulfillLicense(r),a.value=!1,l.value=!0,u()},fulfillTrial:async()=>{a.value=!0,s.value=await n.client.activationRequests.fulfillTrial(r),a.value=!1,l.value=!0,u()},cancel:async()=>{var d;((d=s.value)==null?void 0:d.status)!==on.Cancelled&&(s.value=await n.client.activationRequests.cancel(r))}}}function R_(t){const e=Me(lr);if(!e)throw new Error("No storefront configured");return{peek:async n=>{try{return await e.client.vouchers.peek(n)}catch(r){throw r instanceof ns?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await e.client.vouchers.redeem(n)}catch(r){throw r instanceof ns?new Error("Voucher code invalid"):r}}}}function Vl(t){const e=t??Me(lr);if(!e)throw new Error("No storefront configured");return{items:ee(()=>e.currentOrder.value.items.map(n=>{var r,s;if(n.type==="Product"){const o=e.storefront.value.products.find(l=>l.id===n.productId),a=((o==null?void 0:o.variations)||[]).find(l=>l.id===n.variationId);return{...n,product:o,variation:a,price:a==null?void 0:a.price,appliedDiscount:(r=a==null?void 0:a.discount)!=null?r:n.appliedDiscount}}else{const o=e.storefront.value.bundles.find(l=>l.id===n.bundleId),a=((o==null?void 0:o.variations)||[]).find(l=>l.id===n.variationId);return{...n,bundle:o,variation:a,price:a==null?void 0:a.price,appliedDiscount:(s=a==null?void 0:a.discount)!=null?s:n.appliedDiscount}}})),currency:ee(()=>e.currentOrder.value.currency||e.storefront.value.suggestedCurrency),total:ee(()=>{const n=e.currentOrder.value.currency||e.storefront.value.suggestedCurrency;return{amount:e.currentOrder.value.items.reduce((s,o)=>{var i,a,l,c,u,d;let f;if(o.type==="Product"){const m=e.storefront.value.products.find(k=>k.id===o.productId),E=((m==null?void 0:m.variations)||[]).find(k=>k.id===o.variationId);f=(l=(a=E==null?void 0:E.price[n])!=null?a:(i=m==null?void 0:m.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const m=e.storefront.value.bundles.find(k=>k.id===o.bundleId),E=((m==null?void 0:m.variations)||[]).find(k=>k.id===o.variationId);f=(d=(u=E==null?void 0:E.price[n])!=null?u:(c=m==null?void 0:m.defaultVariation)==null?void 0:c.price[n])!=null?d:0}return s+f*o.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 s=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let o=e.currentOrder.value.items.find(i=>i.id===s);o?o.quantity+=1:n.type==="bundle"?(o={id:s,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},e.currentOrder.value.items.push(o)):n.type==="product"&&(o={id:s,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},e.currentOrder.value.items.push(o)),e.pushOrderContent()},setQuantity:(n,r)=>{const s=e.currentOrder.value.items.find(o=>o.id===n.id);if(!s)throw new Error("Cart item not found");if(s.quantity=r,s.quantity<=0){const o=e.currentOrder.value.items.findIndex(i=>i.id===s.id);e.currentOrder.value.items.splice(o,1)}e.pushOrderContent()},removeFromCart:n=>{const r=e.currentOrder.value.items.findIndex(s=>s.id===n.id);e.currentOrder.value.items.splice(r,1),e.pushOrderContent()},checkout:async n=>{const r=new URL(n,document.baseURI).href,s=await e.client.orders.pushContent(e.currentOrder.value,{returnUrl:r});if(s.embeddedCheckoutUrl&&typeof window<"u"){const o=s.embeddedCheckoutUrl;return new Promise(i=>{mf(o.replace("acme-co.beta.moonbase.sh","localhost:3002")),window.addEventListener("moonbase-checkout-closed",a=>{i({next:a.detail.next})})})}else{if(s.checkoutUrl&&typeof window<"u")return window.location.href=s.checkoutUrl,{next:void 0};throw new Error("No checkout URL found")}}}}function It(t){const e=t??Me(lr);if(!e)throw new Error("No storefront configured");return{user:e.currentUser,loaded:e.loadedUser,loadedPromise:e.loadedUserPromise,signIn:async(n,r)=>{const s=await e.client.identity.signIn(n,r);return e.currentUser.value=s,e.updateStorefront(),s},signUp:async(n,r,s,o,i,a,l)=>{const c=await e.client.identity.signUp(n,r,s,o,i,a,l);return e.currentUser.value=c,e.updateStorefront(),c},signOut:async()=>{e.client.tokenStore.setUser(null),await e.updateStorefront(),e.currentUser.value=null},update:async(n,r,s,o)=>{const i=await e.client.identity.update(n,r,s,o);return e.currentUser.value&&(e.currentUser.value.name=n,o&&(e.currentUser.value.communicationPreferences=o)),i},setPassword:async(n,r)=>{await e.client.identity.setPassword(n,r)},forgotPassword:async n=>{await e.client.identity.forgotPassword(n)},resetPassword:async(n,r,s)=>{await e.client.identity.resetPassword(n,r,s)},confirmAccount:async(n,r)=>await e.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await e.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>{await e.client.identity.confirmEmailChange(n,r),e.updateUser()}}}function j_(t,e){const n={endpoint:t};return new D_(n,new cm(n),(r,s)=>C(s))}var yf=!1;function zi(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)}function Rl(t,e){if(Array.isArray(t)){t.splice(e,1);return}delete t[e]}function L_(){return _f().__VUE_DEVTOOLS_GLOBAL_HOOK__}function _f(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const M_=typeof Proxy=="function",U_="devtools-plugin:setup",Z_="plugin:settings:set";let us,jl;function B_(){var t;return us!==void 0||(typeof window<"u"&&window.performance?(us=!0,jl=window.performance):typeof globalThis<"u"&&(!((t=globalThis.perf_hooks)===null||t===void 0)&&t.performance)?(us=!0,jl=globalThis.perf_hooks.performance):us=!1),us}function F_(){return B_()?jl.now():Date.now()}class H_{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const i in e.settings){const a=e.settings[i];r[i]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return F_()}},n&&n.on(Z_,(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(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;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 bf(t,e){const n=t,r=_f(),s=L_(),o=M_&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(U_,t,e);else{const i=o?new H_(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:i}),i&&e(i.proxiedTarget)}}var Le={};let xo;const ko=t=>xo=t,wf=Le.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Ur(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var vn;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(vn||(vn={}));const Zr=typeof window<"u",Ef=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 z_(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\uFEFF",t],{type:t.type}):t}function Ll(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Of(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function xf(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function qi(t){try{t.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),t.dispatchEvent(n)}}const Wi=typeof navigator=="object"?navigator:{userAgent:""},kf=/Macintosh/.test(Wi.userAgent)&&/AppleWebKit/.test(Wi.userAgent)&&!/Safari/.test(Wi.userAgent),Of=Zr?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!kf?q_:"msSaveOrOpenBlob"in Wi?W_:K_:()=>{};function q_(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?xf(r.href)?Ll(t,e,n):(r.target="_blank",qi(r)):qi(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){qi(r)},0))}function W_(t,e="download",n){if(typeof t=="string")if(xf(t))Ll(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){qi(r)})}else navigator.msSaveOrOpenBlob(z_(t,n),e)}function K_(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Ll(t,e,n);const s=t.type==="application/octet-stream",o=/constructor/i.test(String(Ef.HTMLElement))||"safari"in Ef,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&o||kf)&&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(t)}else{const a=URL.createObjectURL(t);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function dt(t,e){const n="🍍 "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function Ml(t){return"_a"in t&&"install"in t}function Nf(){if(!("clipboard"in navigator))return dt("Your browser doesn't support the Clipboard API","error"),!0}function Sf(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(dt('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function G_(t){if(!Nf())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),dt("Global state copied to clipboard.")}catch(e){if(Sf(e))return;dt("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function J_(t){if(!Nf())try{Tf(t,JSON.parse(await navigator.clipboard.readText())),dt("Global state pasted from clipboard.")}catch(e){if(Sf(e))return;dt("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function Y_(t){try{Of(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){dt("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let jn;function X_(){jn||(jn=document.createElement("input"),jn.type="file",jn.accept=".json");function t(){return new Promise((e,n)=>{jn.onchange=async()=>{const r=jn.files;if(!r)return e(null);const s=r.item(0);return e(s?{text:await s.text(),file:s}:null)},jn.oncancel=()=>e(null),jn.onerror=n,jn.click()})}return t}async function Q_(t){try{const n=await X_()();if(!n)return;const{text:r,file:s}=n;Tf(t,JSON.parse(r)),dt(`Global state imported from "${s.name}".`)}catch(e){dt("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function Tf(t,e){for(const n in e){const r=t.state.value[n];r?Object.assign(r,e[n]):t.state.value[n]=e[n]}}function Qt(t){return{_custom:{display:t}}}const Cf="🍍 Pinia (root)",Ki="_root";function eb(t){return Ml(t)?{id:Ki,label:Cf}:{id:t.$id,label:t.$id}}function tb(t){if(Ml(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(o=>({editable:!0,key:o,value:t.state.value[o]})),getters:n.filter(o=>r.get(o)._getters).map(o=>{const i=r.get(o);return{editable:!1,key:o,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function nb(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Qt(t.type),key:Qt(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function rb(t){switch(t){case vn.direct:return"mutation";case vn.patchFunction:return"$patch";case vn.patchObject:return"$patch";default:return"unknown"}}let ds=!0;const Gi=[],Br="pinia:mutations",Et="pinia",{assign:sb}=Object,Ji=t=>"🍍 "+t;function ob(t,e){bf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Gi,app:t},n=>{typeof n.now!="function"&&dt("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:Br,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Et,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{G_(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await J_(e),n.sendInspectorTree(Et),n.sendInspectorState(Et)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Y_(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Q_(e),n.sendInspectorTree(Et),n.sendInspectorState(Et)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const s=e._s.get(r);s?typeof s.$reset!="function"?dt(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),dt(`Store "${r}" reset.`)):dt(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,s)=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:Ji(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:Ee(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,c)=>(l[c]=a.$state[c],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:Ji(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,c)=>{try{l[c]=a[c]}catch(u){l[c]=u}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===Et){let s=[e];s=s.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?s.filter(o=>"$id"in o?o.$id.toLowerCase().includes(r.filter.toLowerCase()):Cf.toLowerCase().includes(r.filter.toLowerCase())):s).map(eb)}}),globalThis.$pinia=e,n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===Et){const s=r.nodeId===Ki?e:e._s.get(r.nodeId);if(!s)return;s&&(r.nodeId!==Ki&&(globalThis.$store=Ee(s)),r.state=tb(s))}}),n.on.editInspectorState((r,s)=>{if(r.app===t&&r.inspectorId===Et){const o=r.nodeId===Ki?e:e._s.get(r.nodeId);if(!o)return dt(`store "${r.nodeId}" not found`,"error");const{path:i}=r;Ml(o)?i.unshift("state"):(i.length!==1||!o._customProperties.has(i[0])||i[0]in o.$state)&&i.unshift("$state"),ds=!1,r.set(o,i,r.state.value),ds=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const s=r.type.replace(/^🍍\s*/,""),o=e._s.get(s);if(!o)return dt(`store "${s}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return dt(`Invalid path for store "${s}":
|
|
18
18
|
${i}
|
|
19
|
-
Only state can be modified.`);i[0]="$state",
|
|
19
|
+
Only state can be modified.`);i[0]="$state",ds=!1,r.set(o,i,r.state.value),ds=!0}})})}function ib(t,e){Gi.includes(Ji(e.$id))||Gi.push(Ji(e.$id)),bf({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Gi,app:t,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;e.$onAction(({after:i,onError:a,name:l,args:c})=>{const u=$f++;n.addTimelineEvent({layerId:Br,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:Qt(e.$id),action:Qt(l),args:c},groupId:u}}),i(d=>{cr=void 0,n.addTimelineEvent({layerId:Br,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:Qt(e.$id),action:Qt(l),args:c,result:d},groupId:u}})}),a(d=>{cr=void 0,n.addTimelineEvent({layerId:Br,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:Qt(e.$id),action:Qt(l),args:c,error:d},groupId:u}})})},!0),e._customProperties.forEach(i=>{lt(()=>b(e[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(Et),ds&&n.addTimelineEvent({layerId:Br,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:cr}})},{deep:!0})}),e.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(Et),!ds)return;const c={time:r(),title:rb(a),data:sb({store:Qt(e.$id)},nb(i)),groupId:cr};a===vn.patchFunction?c.subtitle="⤵️":a===vn.patchObject?c.subtitle="🧩":i&&!Array.isArray(i)&&(c.subtitle=i.type),i&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Br,event:c})},{detached:!0,flush:"sync"});const s=e._hotUpdate;e._hotUpdate=Kn(i=>{s(i),n.addTimelineEvent({layerId:Br,event:{time:r(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:Qt(e.$id),info:Qt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(Et),n.sendInspectorState(Et)});const{$dispose:o}=e;e.$dispose=()=>{o(),n.notifyComponentUpdate(),n.sendInspectorTree(Et),n.sendInspectorState(Et),n.getSettings().logStoreChanges&&dt(`Disposed "${e.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(Et),n.sendInspectorState(Et),n.getSettings().logStoreChanges&&dt(`"${e.$id}" store installed 🆕`)})}let $f=0,cr;function Pf(t,e,n){const r=e.reduce((s,o)=>(s[o]=Ee(t)[o],s),{});for(const s in r)t[s]=function(){const o=$f,i=n?new Proxy(t,{get(...l){return cr=o,Reflect.get(...l)},set(...l){return cr=o,Reflect.set(...l)}}):t;cr=o;const a=r[s].apply(i,arguments);return cr=void 0,a}}function ab({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!n.state,!e._p._testing){Pf(e,Object.keys(n.actions),e._isOptionsAPI);const r=e._hotUpdate;Ee(e)._hotUpdate=function(s){r.apply(this,arguments),Pf(e,Object.keys(s._hmrPayload.actions),!!e._isOptionsAPI)}}ib(t,e)}}function lb(){const t=Qc(!0),e=t.run(()=>C({}));let n=[],r=[];const s=Kn({install(o){ko(s),s._a=o,o.provide(wf,s),o.config.globalProperties.$pinia=s,Le.NODE_ENV!=="production"&&Le.NODE_ENV!=="test"&&Zr&&ob(o,s),r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!yf?r.push(o):n.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return Le.NODE_ENV!=="production"&&Le.NODE_ENV!=="test"&&typeof Proxy<"u"&&s.use(ab),s}function If(t,e){for(const n in e){const r=e[n];if(!(n in t))continue;const s=t[n];Ur(s)&&Ur(r)&&!Qe(r)&&!Nn(r)?t[n]=If(s,r):t[n]=r}return t}const Af=()=>{};function Df(t,e,n,r=Af){t.push(e);const s=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),r())};return!n&&eu()&&Cm(s),s}function fs(t,...e){t.slice().forEach(n=>{n(...e)})}const cb=t=>t(),Vf=Symbol(),Ul=Symbol();function Zl(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],s=t[n];Ur(s)&&Ur(r)&&t.hasOwnProperty(n)&&!Qe(r)&&!Nn(r)?t[n]=Zl(s,r):t[n]=r}return t}const ub=Le.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function db(t){return!Ur(t)||!t.hasOwnProperty(ub)}const{assign:Bt}=Object;function Rf(t){return!!(Qe(t)&&t.effect)}function jf(t,e,n,r){const{state:s,actions:o,getters:i}=e,a=n.state.value[t];let l;function c(){!a&&(Le.NODE_ENV==="production"||!r)&&(n.state.value[t]=s?s():{});const u=Le.NODE_ENV!=="production"&&r?Su(C(s?s():{}).value):Su(n.state.value[t]);return Bt(u,o,Object.keys(i||{}).reduce((d,f)=>(Le.NODE_ENV!=="production"&&f in u&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${t}".`),d[f]=Kn(ee(()=>{ko(n);const m=n._s.get(t);return i[f].call(m,m)})),d),{}))}return l=Bl(t,c,e,n,r,!0),l}function Bl(t,e,n={},r,s,o){let i;const a=Bt({actions:{}},n);if(Le.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};Le.NODE_ENV!=="production"&&!yf&&(l.onTrigger=R=>{c?m=R:c==!1&&!N._hotUpdating&&(Array.isArray(m)?m.push(R):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,u,d=[],f=[],m;const _=r.state.value[t];!o&&!_&&(Le.NODE_ENV==="production"||!s)&&(r.state.value[t]={});const E=C({});let k;function A(R){let V;c=u=!1,Le.NODE_ENV!=="production"&&(m=[]),typeof R=="function"?(R(r.state.value[t]),V={type:vn.patchFunction,storeId:t,events:m}):(Zl(r.state.value[t],R),V={type:vn.patchObject,payload:R,storeId:t,events:m});const I=k=Symbol();qs().then(()=>{k===I&&(c=!0)}),u=!0,fs(d,V,r.state.value[t])}const B=o?function(){const{state:V}=n,I=V?V():{};this.$patch(ce=>{Bt(ce,I)})}:Le.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:Af;function T(){i.stop(),d=[],f=[],r._s.delete(t)}const J=(R,V="")=>{if(Vf in R)return R[Ul]=V,R;const I=function(){ko(r);const ce=Array.from(arguments),Ze=[],w=[];function $(be){Ze.push(be)}function Q(be){w.push(be)}fs(f,{args:ce,name:I[Ul],store:N,after:$,onError:Q});let oe;try{oe=R.apply(this&&this.$id===t?this:N,ce)}catch(be){throw fs(w,be),be}return oe instanceof Promise?oe.then(be=>(fs(Ze,be),be)).catch(be=>(fs(w,be),Promise.reject(be))):(fs(Ze,oe),oe)};return I[Vf]=!0,I[Ul]=V,I},P=Kn({actions:{},getters:{},state:[],hotState:E}),z={_p:r,$id:t,$onAction:Df.bind(null,f),$patch:A,$reset:B,$subscribe(R,V={}){const I=Df(d,R,V.detached,()=>ce()),ce=i.run(()=>lt(()=>r.state.value[t],Ze=>{(V.flush==="sync"?u:c)&&R({storeId:t,type:vn.direct,events:m},Ze)},Bt({},l,V)));return I},$dispose:T},N=Bs(Le.NODE_ENV!=="production"||Le.NODE_ENV!=="production"&&Le.NODE_ENV!=="test"&&Zr?Bt({_hmrPayload:P,_customProperties:Kn(new Set)},z):z);r._s.set(t,N);const K=(r._a&&r._a.runWithContext||cb)(()=>r._e.run(()=>(i=Qc()).run(()=>e({action:J}))));for(const R in K){const V=K[R];if(Qe(V)&&!Rf(V)||Nn(V))Le.NODE_ENV!=="production"&&s?zi(E.value,R,Fa(K,R)):o||(_&&db(V)&&(Qe(V)?V.value=_[R]:Zl(V,_[R])),r.state.value[t][R]=V),Le.NODE_ENV!=="production"&&P.state.push(R);else if(typeof V=="function"){const I=Le.NODE_ENV!=="production"&&s?V:J(V,R);K[R]=I,Le.NODE_ENV!=="production"&&(P.actions[R]=V),a.actions[R]=V}else Le.NODE_ENV!=="production"&&Rf(V)&&(P.getters[R]=o?n.getters[R]:V,Zr&&(K._getters||(K._getters=Kn([]))).push(R))}if(Bt(N,K),Bt(Ee(N),K),Object.defineProperty(N,"$state",{get:()=>Le.NODE_ENV!=="production"&&s?E.value:r.state.value[t],set:R=>{if(Le.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");A(V=>{Bt(V,R)})}}),Le.NODE_ENV!=="production"&&(N._hotUpdate=Kn(R=>{N._hotUpdating=!0,R._hmrPayload.state.forEach(V=>{if(V in N.$state){const I=R.$state[V],ce=N.$state[V];typeof I=="object"&&Ur(I)&&Ur(ce)?If(I,ce):R.$state[V]=ce}zi(N,V,Fa(R.$state,V))}),Object.keys(N.$state).forEach(V=>{V in R.$state||Rl(N,V)}),c=!1,u=!1,r.state.value[t]=Fa(R._hmrPayload,"hotState"),u=!0,qs().then(()=>{c=!0});for(const V in R._hmrPayload.actions){const I=R[V];zi(N,V,J(I,V))}for(const V in R._hmrPayload.getters){const I=R._hmrPayload.getters[V],ce=o?ee(()=>(ko(r),I.call(N,N))):I;zi(N,V,ce)}Object.keys(N._hmrPayload.getters).forEach(V=>{V in R._hmrPayload.getters||Rl(N,V)}),Object.keys(N._hmrPayload.actions).forEach(V=>{V in R._hmrPayload.actions||Rl(N,V)}),N._hmrPayload=R._hmrPayload,N._getters=R._getters,N._hotUpdating=!1})),Le.NODE_ENV!=="production"&&Le.NODE_ENV!=="test"&&Zr){const R={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(V=>{Object.defineProperty(N,V,Bt({value:N[V]},R))})}return r._p.forEach(R=>{if(Le.NODE_ENV!=="production"&&Le.NODE_ENV!=="test"&&Zr){const V=i.run(()=>R({store:N,app:r._a,pinia:r,options:a}));Object.keys(V||{}).forEach(I=>N._customProperties.add(I)),Bt(N,V)}else Bt(N,i.run(()=>R({store:N,app:r._a,pinia:r,options:a})))}),Le.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
|
|
20
20
|
state: () => new MyClass()
|
|
21
21
|
Found in store "${N.$id}".`),_&&o&&n.hydrate&&n.hydrate(N.$state,_),c=!0,u=!0,N}function fb(t,e,n){let r,s;const o=typeof e=="function";r=t,s=o?n:e;function i(a,l){const c=eg();if(a=(Le.NODE_ENV==="test"&&xo&&xo._testing?null:a)||(c?Me(wf,null):null),a&&ko(a),Le.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)"?
|
|
22
22
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
23
|
-
This will fail in production.`);a=xo,a._s.has(r)||(o?Bl(r,e,s,a):jf(r,s,a),Le.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(r);if(Le.NODE_ENV!=="production"&&l){const d="__hot:"+r,f=o?Bl(d,e,s,a,!0):jf(d,Bt({},s),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(Le.NODE_ENV!=="production"&&Br){const d=Ni();if(d&&d.proxy&&!l){const f=d.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[r]=u}}return u}return i.$id=r,i}var he=(t=>(t.SignIn="sign_in",t.SignUp="sign_up",t.ForgotPassword="forgot_password",t.ResetPassword="reset_password",t.ConfirmAccount="confirm_account",t.ConfirmEmail="confirm_email",t.ConfirmEmailChange="confirm_email_change",t.ViewAccount="view_account",t.ViewProducts="view_products",t.RedeemVoucher="redeem_voucher",t.DownloadProduct="download_product",t.ActivateProduct="activate_product",t.ViewCart="view_cart",t.AddToCart="add_to_cart",t.Checkout="checkout",t))(he||{});const pb={toolbar:{enabled:!0,location:"bottom-right",show:{cart:!0,account:!0,moonbase:!0}},auth:{enable:{signUp:!0}}},Yi=Symbol("options");var Ae=(t=>(t.None="None",t.Authentication="Authentication",t.Customer="Customer",t.Cart="Cart",t.Activation="Activation",t.Download="Download",t))(Ae||{});const Fe=fb("ui",()=>{const t=C("None"),e=C(null),n=C(null),r=C(null);function s(c,u,d){n.value=d??null,e.value=u,t.value=c}function o(c,u,d){r.value=[c,u,d]}function i(){t.value="None",n.value=null,r.value=null}function a(){const c=r.value;i(),qs(()=>{if(c){const[u,d,f]=c;n.value=f??null,e.value=d,t.value=u}})}function l(c){return n.value===null||!n.value[c]?null:n.value[c]}return{active:t,intent:e,parameters:n,next:r,show:s,reset:i,enqueue:o,dequeue:a,getParameter:l}}),gn=t=>new Promise(e=>setTimeout(e,t)),hb=["data-visible","data-location"],mb={key:0,href:"https://moonbase.sh",target:"_blank",class:"moonbase:toolbar-action","data-action-width":"narrow"},vb=[jg('<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>',1)],gb=["disabled"],yb=ve({__name:"Toolbar",setup(t){const e=C(!1),n=Fe(),r=It(),s=Me(Yi);return ze(()=>{gn(100).then(()=>e.value=!0)}),(o,i)=>{var a,l,c,u,d;return g(),O("div",{class:"moonbase:toolbar","data-visible":e.value&&b(n).active===b(Ae).None?"true":"false","data-location":b(s).toolbar.location},[(a=b(s))!=null&&a.toolbar.show.moonbase?(g(),O("a",mb,vb)):ge("",!0),(l=b(s))!=null&&l.toolbar.show.cart?(g(),O("button",{key:1,class:"moonbase:toolbar-action",type:"button",onClick:i[0]||(i[0]=f=>b(n).show(b(Ae).Cart,b(he).AddToCart))}," Cart ")):ge("",!0),(c=b(s))!=null&&c.toolbar.show.account&&!b(r).user.value?(g(),O("button",{key:2,class:"moonbase:toolbar-action",type:"button",disabled:!b(r).loaded,onClick:i[1]||(i[1]=f=>b(n).show(b(Ae).Authentication,b(he).SignIn))}," Log in ",8,gb)):(u=b(s))!=null&&u.toolbar.show.account?(g(),O("button",{key:3,class:"moonbase:toolbar-action",type:"button",onClick:i[2]||(i[2]=f=>b(n).show(b(Ae).Customer,b(he).ViewAccount))},G((d=b(r).user.value)==null?void 0:d.name),1)):ge("",!0)],8,hb)}}}),_b=["hidden"],bb=["for"],wb=["id","type","name","placeholder","value","disabled","aria-invalid","aria-describedby"],Eb=["id"],xb=["id"],kb=ve({inheritAttrs:!1,__name:"MoonInput",props:{name:{},label:{},placeholder:{},type:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{},hidden:{type:Boolean}},emits:["update:modelValue"],setup(t){return(e,n)=>(g(),O("div",{class:"moonbase:input",hidden:e.hidden||void 0},[x("label",{for:`mb-${e.name}`},G(e.label),9,bb),x("input",bl({id:`mb-${e.name}`,type:e.type??"text",name:`mb-${e.name}`,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,"aria-invalid":!!e.error,"aria-describedby":e.error?`mb-${e.name}-error`:e.hint?`mb-${e.name}-hint`:void 0},e.$attrs,{onInput:n[0]||(n[0]=r=>{var s;return e.$emit("update:modelValue",(s=r.target)==null?void 0:s.value)})}),null,16,wb),e.error?(g(),O("p",{key:0,id:`mb-${e.name}-error`,class:"moonbase:input-hint","data-type":"error"},G(e.error),9,Eb)):e.hint?(g(),O("p",{key:1,id:`mb-${e.name}-hint`,class:"moonbase:input-hint"},G(e.hint),9,xb)):ge("",!0)],8,_b))}}),ur=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},Tt=ur(kb,[["__scopeId","data-v-65d18d50"]]),Ob={},Lf=t=>(Sv("data-v-f9a322c4"),t=t(),Tv(),t),Nb={fill:"none",viewBox:"0 0 24 24"},Sb=[Lf(()=>x("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1)),Lf(()=>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 Tb(t,e){return g(),O("svg",Nb,Sb)}const Ft=ur(Ob,[["render",Tb],["__scopeId","data-v-f9a322c4"]]),Cb=["disabled"],Mf=Symbol("form-state"),dr=ve({__name:"MoonForm",props:{handler:{type:Function},noReset:{type:Boolean}},setup(t){const e=t,n=C(!1),r=C(!1),s=C(!1);_t(Mf,{working:n,isSuccess:r,isError:s});async function o(){n.value=!0;try{await e.handler(),n.value=!1,r.value=!0,await gn(2500),e.noReset||(r.value=!1)}catch{n.value=!1,s.value=!0,await gn(2500),s.value=!1}}return(i,a)=>(g(),O("form",{disabled:n.value||r.value,onSubmit:ky(o,["prevent"])},[nl(i.$slots,"default")],40,Cb))}}),$b=["disabled","data-success","data-error","data-working"],Pb=["data-visible"],fr=ur(ve({__name:"MoonSubmitButton",props:{label:{},success:{},error:{}},setup(t){const e=t,{working:n,isSuccess:r,isError:s}=Me(Mf),o=ee(()=>r.value?e.success:s.value?e.error:e.label);return(i,a)=>(g(),O("button",{class:"moonbase:submit-button",type:"submit",disabled:b(r)||b(s)||b(n),"data-success":b(r)||void 0,"data-error":b(s)||void 0,"data-working":b(n)||void 0},[x("div",{"data-visible":b(n)||void 0,"aria-hidden":"true"},[b(n)?(g(),Ve(Ft,{key:0})):ge("",!0)],8,Pb),je(" "+G(o.value),1)],8,$b))}}),[["__scopeId","data-v-052f0f36"]]),Ib={class:"moonbase:checkbox"},Ab={class:"moonbase:checkbox-container"},Db=["id","name","value","disabled","aria-invalid","aria-describedby"],Vb={class:"moonbase:checkbox-description"},Rb=["for"],jb=["id"],Lb=["id"],Uf=ur(ve({inheritAttrs:!1,__name:"MoonCheckbox",props:{name:{},label:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(t){return(e,n)=>(g(),O("div",Ib,[x("div",Ab,[x("input",bl({id:`mb-${e.name}`,type:"checkbox",name:`mb-${e.name}`,value:e.modelValue,disabled:e.disabled,"aria-invalid":!!e.error,"aria-describedby":e.error?`mb-${e.name}-error`:e.hint?`mb-${e.name}-hint`:void 0},e.$attrs,{onChecked:n[0]||(n[0]=r=>{var s;return e.$emit("update:modelValue",(s=r.target)==null?void 0:s.checked)})}),null,16,Db)]),x("div",Vb,[x("label",{for:`mb-${e.name}`},G(e.label),9,Rb),e.error?(g(),O("p",{key:0,id:`mb-${e.name}-error`,"data-type":"error"},G(e.error),9,jb)):e.hint?(g(),O("p",{key:1,id:`mb-${e.name}-hint`},G(e.hint),9,Lb)):ge("",!0)])]))}}),[["__scopeId","data-v-20c4336e"]]),Mb=["data-visible"],Ub=ve({__name:"SignUp",emits:["signedUp"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=C(""),i=C(r.getParameter("email")??""),a=C(""),l=C(!1),c=C(null);async function u(){c.value=null;try{const d=await s.signUp(o.value,i.value,a.value,null,!0,!0,l.value);gn(1500).then(()=>n("signedUp",d))}catch(d){throw c.value=d.message,d}}return(d,f)=>(g(),Ve(dr,{handler:u,class:"moonbase:sign-up"},{default:ke(()=>[F(Tt,{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),label:"Full name",name:"name",type:"text",placeholder:"Full name",autocomplete:"name",required:""},null,8,["modelValue"]),F(Tt,{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(Tt,{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(Uf,{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(fr,{success:"Signed up",label:"Sign up",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!c.value||void 0},G(c.value),9,Mb),x("button",{type:"button",onClick:f[4]||(f[4]=m=>b(r).show(b(Ae).Authentication,b(he).SignIn,{email:i.value}))}," I already have an account ")]),_:1}))}}),Zb={key:0,class:"moonbase:loader"},Bb={key:1,class:"moonbase:error","data-visible":""},Fb=x("p",null," Please create a new password for your account: ",-1),Hb=["data-visible"],zb=ve({__name:"ConfirmAccount",emits:["confirmedAccount"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=C(!0),i=C(null),a=C(""),l=C(null);ze(async()=>{try{const u=r.getParameter("email"),d=r.getParameter("code");if(!u||!d)throw new Error("Link is broken");i.value=await s.confirmAccount(u,d)}catch(u){u instanceof rs?l.value="Could not find a user to confirm":l.value=u.message}o.value=!1});async function c(){var u,d;if(l.value=null,!!((u=i.value)!=null&&u.resetPasswordToken))try{const f=r.getParameter("email");await s.resetPassword(f,a.value,(d=i.value)==null?void 0:d.resetPasswordToken);const m=await s.signIn(f,a.value);gn(1500).then(()=>n("confirmedAccount",m))}catch(f){throw l.value=f.message,f}}return(u,d)=>(g(),Ve(dr,{handler:c,class:"moonbase:confirm-account"},{default:ke(()=>[o.value?(g(),O("div",Zb,[F(Ft)])):i.value?(g(),O(Re,{key:2},[x("h3",null," Hi "+G(i.value.name)+", ",1),Fb,F(Tt,{"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(Tt,{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(fr,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},G(l.value),9,Hb)],64)):(g(),O("div",Bb,G(l.value),1))]),_:1}))}}),qb=x("h3",null," Forgot your password? ",-1),Wb=x("p",null," Please enter your email for a reset link: ",-1),Kb=["data-visible"],Gb=ve({__name:"ForgotPassword",setup(t){const e=Fe(),n=It(),r=C(e.getParameter("email")??""),s=C(null),o=C(!1);async function i(){s.value=null;try{await n.forgotPassword(r.value),gn(1500).then(()=>{o.value=!0})}catch(a){throw a instanceof rs?s.value="User not found":s.value=a.message,a}}return(a,l)=>(g(),Ve(dr,{handler:i,class:"moonbase:sign-in","no-reset":""},{default:ke(()=>[qb,Wb,F(Tt,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),F(fr,{success:"Email sent",label:"Reset password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!s.value||void 0},G(s.value),9,Kb)]),_:1}))}}),Jb=x("p",null," Please create a new password for your account: ",-1),Yb=["data-visible"],Xb=ve({__name:"ResetPassword",emits:["passwordReset"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=ee(()=>r.getParameter("email")),i=C(""),a=C(null);ze(()=>{(!r.getParameter("email")||!r.getParameter("code"))&&(a.value="Link broken, please try again")});async function l(){a.value=null;const c=r.getParameter("code");if(c)try{await s.resetPassword(o.value,i.value,c);const u=await s.signIn(o.value,i.value);gn(1500).then(()=>n("passwordReset",u))}catch(u){throw a.value=u.message,u}}return(c,u)=>(g(),Ve(dr,{handler:l,class:"moonbase:reset-password"},{default:ke(()=>[x("h3",null," Hi "+G(o.value)+", ",1),Jb,F(Tt,{"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(Tt,{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),F(fr,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!a.value||void 0},G(a.value),9,Yb)]),_:1}))}}),Qb={class:"moonbase:confirm-email-change"},e1={key:0,class:"moonbase:loader"},t1={key:1,class:"moonbase:error","data-visible":""},n1=x("p",null," Thanks for confirming your new email. You can now sign in using this new address. ",-1),r1=ve({__name:"ConfirmEmailChange",setup(t){const e=Fe(),{user:n,confirmEmailChange:r}=It(),s=C(!0),o=C(null);return ze(async()=>{try{const i=e.getParameter("email"),a=e.getParameter("code");if(!i||!a)throw new Error("Link is broken");await r(i,a)}catch(i){o.value=i.message}s.value=!1}),(i,a)=>{var l;return g(),O("div",Qb,[s.value?(g(),O("div",e1,[F(Ft)])):o.value?(g(),O("div",t1,G(o.value),1)):(g(),O(Re,{key:2},[x("h3",null," Hi "+G((l=b(n))==null?void 0:l.name)+", ",1),n1],64))])}}});class s1{constructor(){Kr(this,"current",this.detect());Kr(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}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 Oo=new s1;function Fl(t,e,n,r){Oo.isServer||bt(s=>{t=t??window,t.addEventListener(e,n,r),s(()=>t.removeEventListener(e,n,r))})}function Zf(t,e,n,r){Oo.isServer||bt(s=>{t.value&&(window.addEventListener(e,n,r),s(()=>window.removeEventListener(e,n,r)))})}var Lt=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(Lt||{});function Hl(){let t=C(0),e=C(!0);return Zf(e,"keydown",n=>{n.key==="Tab"&&(t.value=n.shiftKey?1:0)}),t}function it(t,e,...n){if(t in e){let s=e[t];return typeof s=="function"?s(...n):s}let r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,it),r}var pr=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(pr||{}),hr=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(hr||{});function ct({visible:t=!0,features:e=0,ourProps:n,theirProps:r,...s}){const o=Ff(r,n),i=Object.assign(s,{props:o});if(t||e&2&&o.static)return Xi(i);if(e&1){const a=o.unmount??!0?0:1;return it(a,{0(){return null},1(){return Xi({...s,props:{...o,hidden:!0,style:{display:"none"}}})}})}return Xi(i)}function Xi({props:t,attrs:e,slots:n,slot:r,name:s}){var c;const{as:o,...i}=zl(t,["unmount","static"]);let a=(c=n.default)==null?void 0:c.call(n,r);const l={};if(r){let u=!1;const d=[];for(const[f,m]of Object.entries(r))typeof m=="boolean"&&(u=!0),m===!0&&d.push(f);u&&(l["data-moonbase-state"]=d.join(" "))}if(o==="template"){if(a=Bf(a??[]),Object.keys(i).length>0||Object.keys(e).length>0){const[u,...d]=a??[];if(!o1(u)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(e)).map(_=>_.trim()).filter((_,E,k)=>k.indexOf(_)===E).sort((_,E)=>_.localeCompare(E)).map(_=>` - ${_}`).join(`
|
|
23
|
+
This will fail in production.`);a=xo,a._s.has(r)||(o?Bl(r,e,s,a):jf(r,s,a),Le.NODE_ENV!=="production"&&(i._pinia=a));const u=a._s.get(r);if(Le.NODE_ENV!=="production"&&l){const d="__hot:"+r,f=o?Bl(d,e,s,a,!0):jf(d,Bt({},s),a,!0);l._hotUpdate(f),delete a.state.value[d],a._s.delete(d)}if(Le.NODE_ENV!=="production"&&Zr){const d=Ni();if(d&&d.proxy&&!l){const f=d.proxy,m="_pStores"in f?f._pStores:f._pStores={};m[r]=u}}return u}return i.$id=r,i}var he=(t=>(t.SignIn="sign_in",t.SignUp="sign_up",t.ForgotPassword="forgot_password",t.ResetPassword="reset_password",t.ConfirmAccount="confirm_account",t.ConfirmEmail="confirm_email",t.ConfirmEmailChange="confirm_email_change",t.ViewAccount="view_account",t.ViewProducts="view_products",t.RedeemVoucher="redeem_voucher",t.DownloadProduct="download_product",t.ActivateProduct="activate_product",t.ViewCart="view_cart",t.AddToCart="add_to_cart",t.Checkout="checkout",t))(he||{});const pb={toolbar:{enabled:!0,location:"bottom-right",show:{cart:!0,account:!0,moonbase:!0}},auth:{enable:{signUp:!0}}},Yi=Symbol("options");var Ae=(t=>(t.None="None",t.Authentication="Authentication",t.Customer="Customer",t.Cart="Cart",t.Activation="Activation",t.Download="Download",t))(Ae||{});const Fe=fb("ui",()=>{const t=C("None"),e=C(null),n=C(null),r=C(null);function s(c,u,d){n.value=d??null,e.value=u,t.value=c}function o(c,u,d){r.value=[c,u,d]}function i(){t.value="None",n.value=null,r.value=null}function a(){const c=r.value;i(),qs(()=>{if(c){const[u,d,f]=c;n.value=f??null,e.value=d,t.value=u}})}function l(c){return n.value===null||!n.value[c]?null:n.value[c]}return{active:t,intent:e,parameters:n,next:r,show:s,reset:i,enqueue:o,dequeue:a,getParameter:l}}),gn=t=>new Promise(e=>setTimeout(e,t)),hb=["data-visible","data-location"],mb={key:0,href:"https://moonbase.sh",target:"_blank",class:"moonbase:toolbar-action","data-action-width":"narrow"},vb=[jg('<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>',1)],gb=["disabled"],yb=ve({__name:"Toolbar",setup(t){const e=C(!1),n=Fe(),r=It(),s=Me(Yi);return ze(()=>{gn(100).then(()=>e.value=!0)}),(o,i)=>{var a,l,c,u,d;return g(),O("div",{class:"moonbase:toolbar","data-visible":e.value&&b(n).active===b(Ae).None?"true":"false","data-location":b(s).toolbar.location},[(a=b(s))!=null&&a.toolbar.show.moonbase?(g(),O("a",mb,vb)):ge("",!0),(l=b(s))!=null&&l.toolbar.show.cart?(g(),O("button",{key:1,class:"moonbase:toolbar-action",type:"button",onClick:i[0]||(i[0]=f=>b(n).show(b(Ae).Cart,b(he).AddToCart))}," Cart ")):ge("",!0),(c=b(s))!=null&&c.toolbar.show.account&&!b(r).user.value?(g(),O("button",{key:2,class:"moonbase:toolbar-action",type:"button",disabled:!b(r).loaded,onClick:i[1]||(i[1]=f=>b(n).show(b(Ae).Authentication,b(he).SignIn))}," Log in ",8,gb)):(u=b(s))!=null&&u.toolbar.show.account?(g(),O("button",{key:3,class:"moonbase:toolbar-action",type:"button",onClick:i[2]||(i[2]=f=>b(n).show(b(Ae).Customer,b(he).ViewAccount))},G((d=b(r).user.value)==null?void 0:d.name),1)):ge("",!0)],8,hb)}}}),_b=["hidden"],bb=["for"],wb=["id","type","name","placeholder","value","disabled","aria-invalid","aria-describedby"],Eb=["id"],xb=["id"],Tt=ve({inheritAttrs:!1,__name:"MoonInput",props:{name:{},label:{},placeholder:{},type:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{},hidden:{type:Boolean}},emits:["update:modelValue"],setup(t){return(e,n)=>(g(),O("div",{class:"moonbase:input",hidden:e.hidden||void 0},[x("label",{for:`mb-${e.name}`},G(e.label),9,bb),x("input",bl({id:`mb-${e.name}`,type:e.type??"text",name:`mb-${e.name}`,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,"aria-invalid":!!e.error,"aria-describedby":e.error?`mb-${e.name}-error`:e.hint?`mb-${e.name}-hint`:void 0},e.$attrs,{onInput:n[0]||(n[0]=r=>{var s;return e.$emit("update:modelValue",(s=r.target)==null?void 0:s.value)})}),null,16,wb),e.error?(g(),O("p",{key:0,id:`mb-${e.name}-error`,class:"moonbase:input-hint","data-type":"error"},G(e.error),9,Eb)):e.hint?(g(),O("p",{key:1,id:`mb-${e.name}-hint`,class:"moonbase:input-hint"},G(e.hint),9,xb)):ge("",!0)],8,_b))}}),ps=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},kb={},Lf=t=>(Sv("data-v-687bcaf0"),t=t(),Tv(),t),Ob={fill:"none",viewBox:"0 0 24 24"},Nb=[Lf(()=>x("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1)),Lf(()=>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 Sb(t,e){return g(),O("svg",Ob,Nb)}const Ft=ps(kb,[["render",Sb],["__scopeId","data-v-687bcaf0"]]),Tb=["disabled"],Mf=Symbol("form-state"),ur=ve({__name:"MoonForm",props:{handler:{type:Function},noReset:{type:Boolean}},setup(t){const e=t,n=C(!1),r=C(!1),s=C(!1);_t(Mf,{working:n,isSuccess:r,isError:s});async function o(){n.value=!0;try{await e.handler(),n.value=!1,r.value=!0,await gn(2500),e.noReset||(r.value=!1)}catch{n.value=!1,s.value=!0,await gn(2500),s.value=!1}}return(i,a)=>(g(),O("form",{disabled:n.value||r.value,onSubmit:ky(o,["prevent"])},[nl(i.$slots,"default")],40,Tb))}}),Cb=["disabled","data-success","data-error","data-working"],$b=["data-visible"],dr=ps(ve({__name:"MoonSubmitButton",props:{label:{},success:{},error:{}},setup(t){const e=t,{working:n,isSuccess:r,isError:s}=Me(Mf),o=ee(()=>r.value?e.success:s.value?e.error:e.label);return(i,a)=>(g(),O("button",{class:"moonbase:submit-button",type:"submit",disabled:b(r)||b(s)||b(n),"data-success":b(r)||void 0,"data-error":b(s)||void 0,"data-working":b(n)||void 0},[x("div",{"data-visible":b(n)||void 0,"aria-hidden":"true"},[b(n)?(g(),Ve(Ft,{key:0})):ge("",!0)],8,$b),je(" "+G(o.value),1)],8,Cb))}}),[["__scopeId","data-v-1440b0cf"]]),Pb={class:"moonbase:checkbox"},Ib={class:"moonbase:checkbox-container"},Ab=["id","name","value","disabled","aria-invalid","aria-describedby"],Db={class:"moonbase:checkbox-description"},Vb=["for"],Rb=["id"],jb=["id"],Uf=ve({inheritAttrs:!1,__name:"MoonCheckbox",props:{name:{},label:{},error:{},hint:{},disabled:{type:Boolean},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(t){return(e,n)=>(g(),O("div",Pb,[x("div",Ib,[x("input",bl({id:`mb-${e.name}`,type:"checkbox",name:`mb-${e.name}`,value:e.modelValue,disabled:e.disabled,"aria-invalid":!!e.error,"aria-describedby":e.error?`mb-${e.name}-error`:e.hint?`mb-${e.name}-hint`:void 0},e.$attrs,{onChecked:n[0]||(n[0]=r=>{var s;return e.$emit("update:modelValue",(s=r.target)==null?void 0:s.checked)})}),null,16,Ab)]),x("div",Db,[x("label",{for:`mb-${e.name}`},G(e.label),9,Vb),e.error?(g(),O("p",{key:0,id:`mb-${e.name}-error`,"data-type":"error"},G(e.error),9,Rb)):e.hint?(g(),O("p",{key:1,id:`mb-${e.name}-hint`},G(e.hint),9,jb)):ge("",!0)])]))}}),Lb=["data-visible"],Mb=ve({__name:"SignUp",emits:["signedUp"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=C(""),i=C(r.getParameter("email")??""),a=C(""),l=C(!1),c=C(null);async function u(){c.value=null;try{const d=await s.signUp(o.value,i.value,a.value,null,!0,!0,l.value);gn(1500).then(()=>n("signedUp",d))}catch(d){throw c.value=d.message,d}}return(d,f)=>(g(),Ve(ur,{handler:u,class:"moonbase:sign-up"},{default:ke(()=>[F(Tt,{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=m=>o.value=m),label:"Full name",name:"name",type:"text",placeholder:"Full name",autocomplete:"name",required:""},null,8,["modelValue"]),F(Tt,{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(Tt,{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(Uf,{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(dr,{success:"Signed up",label:"Sign up",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!c.value||void 0},G(c.value),9,Lb),x("button",{type:"button",onClick:f[4]||(f[4]=m=>b(r).show(b(Ae).Authentication,b(he).SignIn,{email:i.value}))}," I already have an account ")]),_:1}))}}),Ub={key:0,class:"moonbase:loader"},Zb={key:1,class:"moonbase:error","data-visible":""},Bb=x("p",null," Please create a new password for your account: ",-1),Fb=["data-visible"],Hb=ve({__name:"ConfirmAccount",emits:["confirmedAccount"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=C(!0),i=C(null),a=C(""),l=C(null);ze(async()=>{try{const u=r.getParameter("email"),d=r.getParameter("code");if(!u||!d)throw new Error("Link is broken");i.value=await s.confirmAccount(u,d)}catch(u){u instanceof ns?l.value="Could not find a user to confirm":l.value=u.message}o.value=!1});async function c(){var u,d;if(l.value=null,!!((u=i.value)!=null&&u.resetPasswordToken))try{const f=r.getParameter("email");await s.resetPassword(f,a.value,(d=i.value)==null?void 0:d.resetPasswordToken);const m=await s.signIn(f,a.value);gn(1500).then(()=>n("confirmedAccount",m))}catch(f){throw l.value=f.message,f}}return(u,d)=>(g(),Ve(ur,{handler:c,class:"moonbase:confirm-account"},{default:ke(()=>[o.value?(g(),O("div",Ub,[F(Ft)])):i.value?(g(),O(Re,{key:2},[x("h3",null," Hi "+G(i.value.name)+", ",1),Bb,F(Tt,{"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(Tt,{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(dr,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},G(l.value),9,Fb)],64)):(g(),O("div",Zb,G(l.value),1))]),_:1}))}}),zb=x("h3",null," Forgot your password? ",-1),qb=x("p",null," Please enter your email for a reset link: ",-1),Wb=["data-visible"],Kb=ve({__name:"ForgotPassword",setup(t){const e=Fe(),n=It(),r=C(e.getParameter("email")??""),s=C(null),o=C(!1);async function i(){s.value=null;try{await n.forgotPassword(r.value),gn(1500).then(()=>{o.value=!0})}catch(a){throw a instanceof ns?s.value="User not found":s.value=a.message,a}}return(a,l)=>(g(),Ve(ur,{handler:i,class:"moonbase:sign-in","no-reset":""},{default:ke(()=>[zb,qb,F(Tt,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=c=>r.value=c),label:"Email address",name:"email",type:"email",placeholder:"Email address",autocomplete:"email",required:""},null,8,["modelValue"]),F(dr,{success:"Email sent",label:"Reset password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!s.value||void 0},G(s.value),9,Wb)]),_:1}))}}),Gb=x("p",null," Please create a new password for your account: ",-1),Jb=["data-visible"],Yb=ve({__name:"ResetPassword",emits:["passwordReset"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=ee(()=>r.getParameter("email")),i=C(""),a=C(null);ze(()=>{(!r.getParameter("email")||!r.getParameter("code"))&&(a.value="Link broken, please try again")});async function l(){a.value=null;const c=r.getParameter("code");if(c)try{await s.resetPassword(o.value,i.value,c);const u=await s.signIn(o.value,i.value);gn(1500).then(()=>n("passwordReset",u))}catch(u){throw a.value=u.message,u}}return(c,u)=>(g(),Ve(ur,{handler:l,class:"moonbase:reset-password"},{default:ke(()=>[x("h3",null," Hi "+G(o.value)+", ",1),Gb,F(Tt,{"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(Tt,{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),label:"Password",name:"password",type:"password",placeholder:"Password",autocomplete:"new-password",required:""},null,8,["modelValue"]),F(dr,{success:"Password saved",label:"Save password",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!a.value||void 0},G(a.value),9,Jb)]),_:1}))}}),Xb={class:"moonbase:confirm-email-change"},Qb={key:0,class:"moonbase:loader"},e1={key:1,class:"moonbase:error","data-visible":""},t1=x("p",null," Thanks for confirming your new email. You can now sign in using this new address. ",-1),n1=ve({__name:"ConfirmEmailChange",setup(t){const e=Fe(),{user:n,confirmEmailChange:r}=It(),s=C(!0),o=C(null);return ze(async()=>{try{const i=e.getParameter("email"),a=e.getParameter("code");if(!i||!a)throw new Error("Link is broken");await r(i,a)}catch(i){o.value=i.message}s.value=!1}),(i,a)=>{var l;return g(),O("div",Xb,[s.value?(g(),O("div",Qb,[F(Ft)])):o.value?(g(),O("div",e1,G(o.value),1)):(g(),O(Re,{key:2},[x("h3",null," Hi "+G((l=b(n))==null?void 0:l.name)+", ",1),t1],64))])}}});class r1{constructor(){Wr(this,"current",this.detect());Wr(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}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 Oo=new r1;function Fl(t,e,n,r){Oo.isServer||bt(s=>{t=t??window,t.addEventListener(e,n,r),s(()=>t.removeEventListener(e,n,r))})}function Zf(t,e,n,r){Oo.isServer||bt(s=>{t.value&&(window.addEventListener(e,n,r),s(()=>window.removeEventListener(e,n,r)))})}var Lt=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(Lt||{});function Hl(){let t=C(0),e=C(!0);return Zf(e,"keydown",n=>{n.key==="Tab"&&(t.value=n.shiftKey?1:0)}),t}function it(t,e,...n){if(t in e){let s=e[t];return typeof s=="function"?s(...n):s}let r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,it),r}var fr=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(fr||{}),pr=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(pr||{});function ct({visible:t=!0,features:e=0,ourProps:n,theirProps:r,...s}){const o=Ff(r,n),i=Object.assign(s,{props:o});if(t||e&2&&o.static)return Xi(i);if(e&1){const a=o.unmount??!0?0:1;return it(a,{0(){return null},1(){return Xi({...s,props:{...o,hidden:!0,style:{display:"none"}}})}})}return Xi(i)}function Xi({props:t,attrs:e,slots:n,slot:r,name:s}){var c;const{as:o,...i}=zl(t,["unmount","static"]);let a=(c=n.default)==null?void 0:c.call(n,r);const l={};if(r){let u=!1;const d=[];for(const[f,m]of Object.entries(r))typeof m=="boolean"&&(u=!0),m===!0&&d.push(f);u&&(l["data-moonbase-state"]=d.join(" "))}if(o==="template"){if(a=Bf(a??[]),Object.keys(i).length>0||Object.keys(e).length>0){const[u,...d]=a??[];if(!s1(u)||d.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${s} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(i).concat(Object.keys(e)).map(_=>_.trim()).filter((_,E,k)=>k.indexOf(_)===E).sort((_,E)=>_.localeCompare(E)).map(_=>` - ${_}`).join(`
|
|
24
24
|
`),"","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(_=>` - ${_}`).join(`
|
|
25
25
|
`)].join(`
|
|
26
|
-
`));const f=Ff(u.props??{},i,l),m=Wt(u,f,!0);for(const _ in f)_.startsWith("on")&&(m.props||(m.props={}),m.props[_]=f[_]);return m}return Array.isArray(a)&&a.length===1?a[0]:a}return qe(o,Object.assign({},i,l),{default:()=>a})}function Bf(t){return t.flatMap(e=>e.type===Re?Bf(e.children):[e])}function Ff(...t){if(t.length===0)return{};if(t.length===1)return t[0];const e={},n={};for(const r of t)for(const s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]??(n[s]=[]),n[s].push(r[s])):e[s]=r[s];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(const r in n)Object.assign(e,{[r](s,...o){const i=n[r];for(const a of i){if(s instanceof Event&&s.defaultPrevented)return;a(s,...o)}}});return e}function zl(t,e=[]){const n=Object.assign({},t);for(const r of e)r in n&&delete n[r];return n}function o1(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}var mr=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(mr||{});let vr=ve({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:e,attrs:n}){return()=>{let{features:r,...s}=t,o={"aria-hidden":(r&2)===2?!0:s["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 ct({ourProps:o,theirProps:s,slot:{},attrs:n,slots:e,name:"Hidden"})}}});function i1(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function Y(t){if(t==null||t.value==null)return null;let e=t.value.$el??t.value;return e instanceof Node?e:null}function yn(t){if(Oo.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let e=Y(t);if(e)return e.ownerDocument}return document}const Qi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Je=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(Je||{}),Ln=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(Ln||{});function ea(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(Qi)).sort((e,n)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ql=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(ql||{});function Hf(t,e=0){var n;return t===((n=yn(t))==null?void 0:n.body)?!1:it(e,{0(){return t.matches(Qi)},1(){let r=t;for(;r!==null;){if(r.matches(Qi))return!0;r=r.parentElement}return!1}})}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.moonbaseFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.moonbaseFocusVisible:t.detail===0&&(document.documentElement.dataset.moonbaseFocusVisible="")},!0));function Hr(t){t==null||t.focus({preventScroll:!0})}const a1=["textarea","input"].join(",");function l1(t){var e;return((e=t==null?void 0:t.matches)==null?void 0:e.call(t,a1))??!1}function hs(t,e=n=>n){return t.slice().sort((n,r)=>{const s=e(n),o=e(r);if(s===null||o===null)return 0;const i=s.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function mt(t,e,{sorted:n=!0,relativeTo:r=null,skipElements:s=[]}={}){const o=(Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t==null?void 0:t.ownerDocument)??document;let i=Array.isArray(t)?n?hs(t):t:ea(t);s.length>0&&i.length>1&&(i=i.filter(m=>!s.includes(m))),r=r??o.activeElement;const a=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,i.indexOf(r))-1;if(e&4)return Math.max(0,i.indexOf(r))+1;if(e&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=e&32?{preventScroll:!0}:{};let u=0;const d=i.length;let f;do{if(u>=d||u+d<=0)return 0;let m=l+u;if(e&16)m=(m+d)%d;else{if(m<0)return 3;if(m>=d)return 1}f=i[m],f==null||f.focus(c),u+=a}while(f!==o.activeElement);return e&6&&l1(f)&&f.select(),2}let zr=[];i1(()=>{function t(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||zr[0]===e.target)return;let n=e.target;n=n.closest(Qi),zr.unshift(n??e.target),zr=zr.filter(r=>r!=null&&r.isConnected),zr.splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function ta(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function zf(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());const e=new Set;for(const n of t.value){const r=Y(n);r instanceof HTMLElement&&e.add(r)}return e}var qf=(t=>(t[t.None=1]="None",t[t.InitialFocus=2]="InitialFocus",t[t.TabLock=4]="TabLock",t[t.FocusLock=8]="FocusLock",t[t.RestoreFocus=16]="RestoreFocus",t[t.All=30]="All",t))(qf||{});const No=Object.assign(ve({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:C(new Set)}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){const s=C(null);r({el:s,$el:s});const o=ee(()=>yn(s)),i=C(!1);ze(()=>i.value=!0),Ot(()=>i.value=!1),u1({ownerDocument:o},ee(()=>i.value&&!!(t.features&16)));const a=d1({ownerDocument:o,container:s,initialFocus:ee(()=>t.initialFocus)},ee(()=>i.value&&!!(t.features&2)));f1({ownerDocument:o,container:s,containers:t.containers,previousActiveElement:a},ee(()=>i.value&&!!(t.features&8)));const l=Hl();function c(m){const _=Y(s);if(!_)return;(k=>k())(()=>{it(l.value,{[Lt.Forwards]:()=>{mt(_,Je.First,{skipElements:[m.relatedTarget]})},[Lt.Backwards]:()=>{mt(_,Je.Last,{skipElements:[m.relatedTarget]})}})})}const u=C(!1);function d(m){m.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function f(m){if(!i.value)return;const _=zf(t.containers);Y(s)instanceof HTMLElement&&_.add(Y(s));const E=m.relatedTarget;E instanceof HTMLElement&&E.dataset.moonbaseFocusGuard!=="true"&&(Wf(_,E)||(u.value?mt(Y(s),it(l.value,{[Lt.Forwards]:()=>Je.Next,[Lt.Backwards]:()=>Je.Previous})|Je.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&Hr(m.target)))}return()=>{const m={},_={ref:s,onKeydown:d,onFocusout:f},{features:E,initialFocus:k,containers:A,...B}=t;return qe(Re,[!!(E&4)&&qe(vr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:c,features:mr.Focusable}),ct({ourProps:_,theirProps:{...e,...B},slot:m,attrs:e,slots:n,name:"FocusTrap"}),!!(E&4)&&qe(vr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:c,features:mr.Focusable})])}}}),{features:qf});function c1(t){const e=C(zr.slice());return lt([t],([n],[r])=>{r===!0&&n===!1?ta(()=>{e.value.splice(0)}):r===!1&&n===!0&&(e.value=zr.slice())},{flush:"post"}),()=>e.value.find(n=>n!=null&&n.isConnected)??null}function u1({ownerDocument:t},e){const n=c1(e);ze(()=>{bt(()=>{var r,s;e.value||((r=t.value)==null?void 0:r.activeElement)===((s=t.value)==null?void 0:s.body)&&Hr(n())},{flush:"post"})}),Ot(()=>{e.value&&Hr(n())})}function d1({ownerDocument:t,container:e,initialFocus:n},r){const s=C(null),o=C(!1);return ze(()=>o.value=!0),Ot(()=>o.value=!1),ze(()=>{lt([e,n,r],(i,a)=>{if(i.every((c,u)=>(a==null?void 0:a[u])===c)||!r.value)return;const l=Y(e);l&&ta(()=>{var d,f;if(!o.value)return;const c=Y(n),u=(d=t.value)==null?void 0:d.activeElement;if(c){if(c===u){s.value=u;return}}else if(l.contains(u)){s.value=u;return}c?Hr(c):mt(l,Je.First|Je.NoScroll)===Ln.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(f=t.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),s}function f1({ownerDocument:t,container:e,containers:n,previousActiveElement:r},s){var o;Fl((o=t.value)==null?void 0:o.defaultView,"focus",i=>{if(!s.value)return;const a=zf(n);Y(e)instanceof HTMLElement&&a.add(Y(e));const l=r.value;if(!l)return;const c=i.target;c&&c instanceof HTMLElement?Wf(a,c)?(r.value=c,Hr(c)):(i.preventDefault(),i.stopPropagation(),Hr(l)):Hr(r.value)},!0)}function Wf(t,e){for(const n of t)if(n.contains(e))return!0;return!1}function p1(t){let e=Qm(t.getSnapshot());return Ot(t.subscribe(()=>{e.value=t.getSnapshot()})),e}function So(){const t=[],e={addEventListener(n,r,s,o){return n.addEventListener(r,s,o),e.add(()=>n.removeEventListener(r,s,o))},requestAnimationFrame(...n){const r=requestAnimationFrame(...n);e.add(()=>cancelAnimationFrame(r))},nextFrame(...n){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...n)})},setTimeout(...n){const r=setTimeout(...n);e.add(()=>clearTimeout(r))},microTask(...n){const r={current:!0};return ta(()=>{r.current&&n[0]()}),e.add(()=>{r.current=!1})},style(n,r,s){const o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:s}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){const r=So();return n(r),this.add(()=>r.dispose())},add(n){return t.push(n),()=>{const r=t.indexOf(n);if(r>=0)for(const s of t.splice(r,1))s()}},dispose(){for(const n of t.splice(0))n()}};return e}function h1(t,e){let n=t(),r=new Set;return{getSnapshot(){return n},subscribe(s){return r.add(s),()=>r.delete(s)},dispatch(s,...o){let i=e[s].call(n,...o);i&&(n=i,r.forEach(a=>a()))}}}function m1(){let t;return{before({doc:e}){const n=e.documentElement,r=e.defaultView??window;t=Math.max(0,r.innerWidth-n.clientWidth)},after({doc:e,d:n}){const r=e.documentElement,s=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,t-s);n.style(r,"paddingRight",`${o}px`)}}}function Kf(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function v1(){return/Android/gi.test(window.navigator.userAgent)}function g1(){return Kf()||v1()}function y1(){return Kf()?{before({doc:t,d:e,meta:n}){function r(s){return n.containers.flatMap(o=>o()).some(o=>o.contains(s))}e.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){const i=So();i.style(t.documentElement,"scrollBehavior","auto"),e.add(()=>e.microTask(()=>i.dispose()))}const s=window.scrollY??window.pageYOffset;let o=null;e.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{const a=i.target.closest("a");if(!a)return;const{hash:l}=new URL(a.href),c=t.querySelector(l);c&&!r(c)&&(o=c)}catch{}},!0),e.addEventListener(t,"touchstart",i=>{if(i.target instanceof HTMLElement)if(r(i.target)){let a=i.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;e.style(a,"overscrollBehavior","contain")}else e.style(i.target,"touchAction","none")}),e.addEventListener(t,"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}),e.add(()=>{const i=window.scrollY??window.pageYOffset;s!==i&&window.scrollTo(0,s),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function _1(){return{before({doc:t,d:e}){e.style(t.documentElement,"overflow","hidden")}}}function b1(t){const e={};for(const n of t)Object.assign(e,n(e));return e}const qr=h1(()=>new Map,{PUSH(t,e){const n=this.get(t)??{doc:t,count:0,d:So(),meta:new Set};return n.count++,n.meta.add(e),this.set(t,n),this},POP(t,e){const n=this.get(t);return n&&(n.count--,n.meta.delete(e)),this},SCROLL_PREVENT({doc:t,d:e,meta:n}){const r={doc:t,d:e,meta:b1(n)},s=[y1(),m1(),_1()];s.forEach(({before:o})=>o==null?void 0:o(r)),s.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});qr.subscribe(()=>{const t=qr.getSnapshot(),e=new Map;for(const[n]of t)e.set(n,n.documentElement.style.overflow);for(const n of t.values()){const r=e.get(n.doc)==="hidden",s=n.count!==0;(s&&!r||!s&&r)&&qr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&qr.dispatch("TEARDOWN",n)}});function w1(t,e,n){const r=p1(qr),s=ee(()=>{const o=t.value?r.value.get(t.value):void 0;return o?o.count>0:!1});return lt([t,e],([o,i],[a],l)=>{if(!o||!i)return;qr.dispatch("PUSH",o,n);let c=!1;l(()=>{c||(qr.dispatch("POP",a??o,n),c=!0)})},{immediate:!0}),s}let E1=0;function x1(){return++E1}function Ht(){return x1()}const Wl=new Map,To=new Map;function Gf(t,e=C(!0)){bt(n=>{if(!e.value)return;const r=Y(t);if(!r)return;n(()=>{if(!r)return;const o=To.get(r)??1;if(o===1?To.delete(r):To.set(r,o-1),o!==1)return;const i=Wl.get(r);i&&(i["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",i["aria-hidden"]),r.inert=i.inert,Wl.delete(r))});const s=To.get(r)??0;To.set(r,s+1),s===0&&(Wl.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Co(t,e,n,r){Oo.isServer||bt(s=>{t.value&&(document.addEventListener(e,n,r),s(()=>document.removeEventListener(e,n,r)))})}const Jf=30;function Yf(t,e,n=ee(()=>!0)){function r(i,a){if(i.defaultPrevented)return;const l=a(i);if(l===null||!l.getRootNode().contains(l))return;const c=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(const u of c){if(u===null)continue;const d=u instanceof HTMLElement?u:Y(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!Hf(l,ql.Loose)&&l.tabIndex!==-1&&i.preventDefault(),e(i,l)}const s=C(null);Co(n,"pointerdown",i=>{var a,l;s.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Co(n,"mousedown",i=>{var a,l;s.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Co(n,"click",i=>{g1()||s.value&&(r(i,()=>s.value),s.value=null)},!0);const o={x:0,y:0};Co(n,"touchstart",i=>{o.x=i.touches[0].clientX,o.y=i.touches[0].clientY},!0),Co(n,"touchend",i=>{const a={x:i.changedTouches[0].clientX,y:i.changedTouches[0].clientY};if(!(Math.abs(a.x-o.x)>=Jf||Math.abs(a.y-o.y)>=Jf))return r(i,()=>i.target instanceof HTMLElement?i.target:null)},!0),Zf(n,"blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Xf({defaultContainers:t=[],portals:e,mainTreeNodeRef:n}={}){const r=C(null),s=yn(r);function o(){var a,l;const i=[];for(const c of t)c!==null&&(c instanceof HTMLElement?i.push(c):"value"in c&&c.value instanceof HTMLElement&&i.push(c.value));if(e!=null&&e.value)for(const c of e.value)i.push(c);for(const c of(s==null?void 0:s.querySelectorAll("html > *, body > *"))??[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="moonbase"&&(c.contains(Y(r))||c.contains((l=(a=Y(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||i.some(u=>c.contains(u))||i.push(c));return i}return{resolveContainers:o,contains(i){return o().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:qe(vr,{features:mr.Hidden,ref:r})}}}let Qf=Symbol("Context");var vt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(vt||{});function k1(){return na()!==null}function na(){return Me(Qf,null)}function ep(t){_t(Qf,t)}const tp=Symbol("ForcePortalRootContext");function O1(){return Me(tp,!1)}const np=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(t,{slots:e,attrs:n}){return _t(tp,t.force),()=>{const{force:r,...s}=t;return ct({theirProps:s,ourProps:{},slot:{},slots:e,attrs:n,name:"ForcePortalRoot"})}}});let rp=Symbol("StackContext");var Kl=(t=>(t[t.Add=0]="Add",t[t.Remove=1]="Remove",t))(Kl||{});function N1(){return Me(rp,()=>{})}function S1({type:t,enabled:e,element:n,onUpdate:r}){let s=N1();function o(...i){r==null||r(...i),s(...i)}ze(()=>{lt(e,(i,a)=>{i?o(0,t,n):a===!0&&o(1,t,n)},{immediate:!0,flush:"sync"})}),Ot(()=>{e.value&&o(1,t,n)}),_t(rp,o)}var ut=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(ut||{});let T1=Symbol("DescriptionContext");function C1({slot:t=C({}),name:e="Description",props:n={}}={}){let r=C([]);function s(o){return r.value.push(o),()=>{let i=r.value.indexOf(o);i!==-1&&r.value.splice(i,1)}}return _t(T1,{register:s,slot:t,name:e,props:n}),ee(()=>r.value.length>0?r.value.join(" "):void 0)}function sp(t){const e=yn(t);if(!e){if(t===null)return null;throw new Error(`[Moonbase]: Cannot find ownerDocument for contextElement: ${t}`)}const n=e.getElementById("moonbase");if(n)return n;throw new Error("[Moonbase]: Cannot find existing root element")}const $1=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:n}){const r=C(null);ee(()=>yn(r));const s=O1(),o=Me(ip,null),i=C(s===!0||o==null?sp(r.value):o.resolveTarget()),a=C(!1);ze(()=>{a.value=!0}),bt(()=>{s||o!=null&&(i.value=o.resolveTarget())});const l=Me(Gl,null);let c=!1;const u=Ni();return lt(r,()=>{if(c||!l)return;const d=Y(r);d&&(Ot(l.register(d),u),c=!0)}),()=>{if(!a.value||i.value===null)return null;const d={ref:r,"data-moonbase-portal":""};return qe(gg,{to:i.value},ct({ourProps:d,theirProps:t,slot:{},attrs:n,slots:e,name:"Portal"}))}}});let Gl=Symbol("PortalParentContext");function op(){const t=Me(Gl,null),e=C([]);function n(o){return e.value.push(o),t&&t.register(o),()=>r(o)}function r(o){const i=e.value.indexOf(o);i!==-1&&e.value.splice(i,1),t&&t.unregister(o)}const s={register:n,unregister:r,portals:e};return[e,ve({name:"PortalWrapper",setup(o,{slots:i}){return _t(Gl,s),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let ip=Symbol("PortalGroupContext");const P1=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(t,{attrs:e,slots:n}){const r=Bs({resolveTarget(){return t.target}});return _t(ip,r),()=>{const{target:s,...o}=t;return ct({theirProps:o,ourProps:{},slot:{},attrs:e,slots:n,name:"PortalGroup"})}}}),Jl=Symbol("DialogContext");function ra(t){const e=Me(Jl,null);if(e===null){const n=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ra),n}return e}const sa="DC8F892D-2EBD-447C-A4C8-A03058436FF4",ap=ve({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:sa},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`moonbase-dialog-${Ht()}`},role:{type:String,default:"dialog"}},emits:{close:t=>!0},setup(t,{emit:e,attrs:n,slots:r,expose:s}){var be;const o=C(!1);ze(()=>{o.value=!0});let i=!1;const a=ee(()=>t.role==="dialog"||t.role==="alertdialog"?t.role:(i||(i=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),l=C(0),c=na(),u=ee(()=>t.open===sa&&c!==null?(c.value&vt.Open)===vt.Open:t.open),d=C(null),f=ee(()=>yn(d));if(s({el:d,$el:d}),!(t.open!==sa||c!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof u.value!="boolean")throw new TypeError(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u.value===sa?void 0:t.open}`);const _=ee(()=>o.value&&u.value?0:1),E=ee(()=>_.value===0),k=C(null),A={titleId:k,panelRef:C(null),dialogState:_,setTitleId(ae){k.value!==ae&&(k.value=ae)},close(){e("close",!1)}},B=ee(()=>l.value>1),T=Me(Jl,null)!==null,[J,P]=op(),{resolveContainers:z,mainTreeNodeRef:N,MainTreeNode:Oe}=Xf({portals:J,defaultContainers:[ee(()=>A.panelRef.value??d.value)]}),K=ee(()=>B.value?"parent":"leaf"),R=ee(()=>c!==null?(c.value&vt.Closing)===vt.Closing:!1),V=ee(()=>T||R.value?!1:E.value),I=ee(()=>{var ae;return Array.from(((ae=f.value)==null?void 0:ae.querySelectorAll("body > *"))??[]).find(We=>We.id==="moonbase"?!1:We.contains(Y(N))&&We instanceof HTMLElement)??null});Gf(I,V);const ce=ee(()=>B.value?!0:E.value),Ze=ee(()=>{var ae;return Array.from(((ae=f.value)==null?void 0:ae.querySelectorAll("[data-moonbase-portal]"))??[]).find(We=>We.contains(Y(N))&&We instanceof HTMLElement)??null});Gf(Ze,ce),S1({type:"Dialog",enabled:ee(()=>_.value===0),element:d,onUpdate:(ae,We)=>{if(We==="Dialog")return it(ae,{[Kl.Add]:()=>l.value+=1,[Kl.Remove]:()=>l.value-=1})}});const w=C1({name:"DialogDescription",slot:ee(()=>({open:u.value}))});_t(Jl,A);const $=ee(()=>!(!E.value||B.value));Yf(z,(ae,We)=>{ae.preventDefault(),A.close(),qs(()=>We==null?void 0:We.focus())},$);const Q=ee(()=>!(B.value||_.value!==0));Fl((be=f.value)==null?void 0:be.defaultView,"keydown",ae=>{Q.value&&(ae.defaultPrevented||ae.key===ut.Escape&&(ae.preventDefault(),ae.stopPropagation(),A.close()))});const oe=ee(()=>!(R.value||_.value!==0||T));return w1(f,oe,ae=>({containers:[...ae.containers??[],z]})),bt(ae=>{if(_.value!==0)return;const We=Y(d);if(!We)return;const xt=new ResizeObserver(Ke=>{for(const At of Ke){const gr=At.target.getBoundingClientRect();gr.x===0&&gr.y===0&&gr.width===0&&gr.height===0&&A.close()}});xt.observe(We),ae(()=>xt.disconnect())}),()=>{const{id:ae,open:We,initialFocus:xt,...Ke}=t,At={...n,ref:d,id:ae,role:a.value,"aria-modal":_.value===0?!0:void 0,"aria-labelledby":k.value,"aria-describedby":w.value},gr={open:_.value===0};return qe(np,{force:!0},()=>[qe($1,()=>qe(P1,{target:d.value},()=>qe(np,{force:!1},()=>qe(No,{initialFocus:xt,containers:z,features:E.value?it(K.value,{parent:No.features.RestoreFocus,leaf:No.features.All&~No.features.FocusLock}):No.features.None},()=>qe(P,{},()=>ct({ourProps:At,theirProps:{...Ke,...n},slot:gr,attrs:n,slots:r,visible:_.value===0,features:pr.RenderStrategy|pr.Static,name:"Dialog"})))))),qe(Oe)])}}}),lp=ve({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-overlay-${Ht()}`}},setup(t,{attrs:e,slots:n}){const r=ra("DialogOverlay");function s(o){o.target===o.currentTarget&&(o.preventDefault(),o.stopPropagation(),r.close())}return()=>{const{id:o,...i}=t;return ct({ourProps:{id:o,"aria-hidden":!0,onClick:s},theirProps:i,slot:{open:r.dialogState.value===0},attrs:e,slots:n,name:"DialogOverlay"})}}}),cp=ve({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-panel-${Ht()}`}},setup(t,{attrs:e,slots:n,expose:r}){const s=ra("DialogPanel");r({el:s.panelRef,$el:s.panelRef});function o(i){i.stopPropagation()}return()=>{const{id:i,...a}=t,l={id:i,ref:s.panelRef,onClick:o};return ct({ourProps:l,theirProps:a,slot:{open:s.dialogState.value===0},attrs:e,slots:n,name:"DialogPanel"})}}}),oa=ve({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`moonbase-dialog-title-${Ht()}`}},setup(t,{attrs:e,slots:n}){const r=ra("DialogTitle");return ze(()=>{r.setTitleId(t.id),Ot(()=>r.setTitleId(null))}),()=>{const{id:s,...o}=t;return ct({ourProps:{id:s},theirProps:o,slot:{open:r.dialogState.value===0},attrs:e,slots:n,name:"DialogTitle"})}}});function up(t,e){if(t)return t;let n=e??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function dp(t,e){let n=C(up(t.value.type,t.value.as));return ze(()=>{n.value=up(t.value.type,t.value.as)}),bt(()=>{var r;n.value||Y(e)&&Y(e)instanceof HTMLButtonElement&&!((r=Y(e))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}const fp=Symbol("PopoverContext");function Yl(t){const e=Me(fp,null);if(e===null){const n=new Error(`<${t} /> is missing a parent <${Xl.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Yl),n}return e}const I1=Symbol("PopoverGroupContext");function pp(){return Me(I1,null)}const hp=Symbol("PopoverPanelContext");function A1(){return Me(hp,null)}let Xl=ve({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:n,expose:r}){var J;const s=C(null);r({el:s,$el:s});const o=C(1),i=C(null),a=C(null),l=C(null),c=C(null),u=ee(()=>yn(s)),d=ee(()=>{var V,I;if(!Y(i)||!Y(c))return!1;for(const ce of document.querySelectorAll("body > *"))if(Number(ce==null?void 0:ce.contains(Y(i)))^Number(ce==null?void 0:ce.contains(Y(c))))return!0;const P=ea(),z=P.indexOf(Y(i)),N=(z+P.length-1)%P.length,Oe=(z+1)%P.length,K=P[N],R=P[Oe];return!((V=Y(c))!=null&&V.contains(K))&&!((I=Y(c))!=null&&I.contains(R))}),f={popoverState:o,buttonId:C(null),panelId:C(null),panel:c,button:i,isPortalled:d,beforePanelSentinel:a,afterPanelSentinel:l,togglePopover(){o.value=it(o.value,{0:1,1:0})},closePopover(){o.value!==1&&(o.value=1)},close(P){f.closePopover();const z=P?P instanceof HTMLElement?P:P.value instanceof HTMLElement?Y(P):Y(f.button):Y(f.button);z==null||z.focus()}};_t(fp,f),ep(ee(()=>it(o.value,{0:vt.Open,1:vt.Closed})));const m={buttonId:f.buttonId,panelId:f.panelId,close(){f.closePopover()}},_=pp(),E=_==null?void 0:_.registerPopover,[k,A]=op(),B=Xf({mainTreeNodeRef:_==null?void 0:_.mainTreeNodeRef,portals:k,defaultContainers:[i,c]});function T(){var P,z,N;return(_==null?void 0:_.isFocusWithinPopoverGroup())??(((P=u.value)==null?void 0:P.activeElement)&&(((z=Y(i))==null?void 0:z.contains(u.value.activeElement))||((N=Y(c))==null?void 0:N.contains(u.value.activeElement))))}return bt(()=>E==null?void 0:E(m)),Fl((J=u.value)==null?void 0:J.defaultView,"focus",P=>{var z,N;P.target!==window&&P.target instanceof HTMLElement&&o.value===0&&(T()||i&&c&&(B.contains(P.target)||(z=Y(f.beforePanelSentinel))!=null&&z.contains(P.target)||(N=Y(f.afterPanelSentinel))!=null&&N.contains(P.target)||f.closePopover()))},!0),Yf(B.resolveContainers,(P,z)=>{var N;f.closePopover(),Hf(z,ql.Loose)||(P.preventDefault(),(N=Y(i))==null||N.focus())},ee(()=>o.value===0)),()=>{const P={open:o.value===0,close:f.close};return qe(Re,[qe(A,{},()=>ct({theirProps:{...t,...n},ourProps:{ref:s},slot:P,slots:e,attrs:n,name:"Popover"})),qe(B.MainTreeNode)])}}});const mp=ve({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-popover-button-${Ht()}`}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){const s=Yl("PopoverButton"),o=ee(()=>yn(s.button));r({el:s.button,$el:s.button}),ze(()=>{s.buttonId.value=t.id}),Ot(()=>{s.buttonId.value=null});const i=pp(),a=i==null?void 0:i.closeOthers,l=A1(),c=ee(()=>l===null?!1:l.value===s.panelId.value),u=C(null),d=`moonbase-focus-sentinel-${Ht()}`;c.value||bt(()=>{s.button.value=Y(u)});const f=dp(ee(()=>({as:t.as,type:e.type})),u);function m(T){var J,P,z,N,Oe;if(c.value){if(s.popoverState.value===1)return;switch(T.key){case ut.Space:case ut.Enter:T.preventDefault(),(P=(J=T.target).click)==null||P.call(J),s.closePopover(),(z=Y(s.button))==null||z.focus();break}}else switch(T.key){case ut.Space:case ut.Enter:T.preventDefault(),T.stopPropagation(),s.popoverState.value===1&&(a==null||a(s.buttonId.value)),s.togglePopover();break;case ut.Escape:if(s.popoverState.value!==0)return a==null?void 0:a(s.buttonId.value);if(!Y(s.button)||(N=o.value)!=null&&N.activeElement&&!((Oe=Y(s.button))!=null&&Oe.contains(o.value.activeElement)))return;T.preventDefault(),T.stopPropagation(),s.closePopover();break}}function _(T){c.value||T.key===ut.Space&&T.preventDefault()}function E(T){var J,P;t.disabled||(c.value?(s.closePopover(),(J=Y(s.button))==null||J.focus()):(T.preventDefault(),T.stopPropagation(),s.popoverState.value===1&&(a==null||a(s.buttonId.value)),s.togglePopover(),(P=Y(s.button))==null||P.focus()))}function k(T){T.preventDefault(),T.stopPropagation()}const A=Hl();function B(){const T=Y(s.panel);if(!T)return;function J(){it(A.value,{[Lt.Forwards]:()=>mt(T,Je.First),[Lt.Backwards]:()=>mt(T,Je.Last)})===Ln.Error&&mt(ea().filter(z=>z.dataset.moonbaseFocusGuard!=="true"),it(A.value,{[Lt.Forwards]:Je.Next,[Lt.Backwards]:Je.Previous}),{relativeTo:Y(s.button)})}J()}return()=>{const T=s.popoverState.value===0,J={open:T},{id:P,...z}=t,N=c.value?{ref:u,type:f.value,onKeydown:m,onClick:E}:{ref:u,id:P,type:f.value,"aria-expanded":s.popoverState.value===0,"aria-controls":Y(s.panel)?s.panelId.value:void 0,disabled:t.disabled?!0:void 0,onKeydown:m,onKeyup:_,onClick:E,onMousedown:k};return qe(Re,[ct({ourProps:N,theirProps:{...e,...z},slot:J,attrs:e,slots:n,name:"PopoverButton"}),T&&!c.value&&s.isPortalled.value&&qe(vr,{id:d,features:mr.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:B})])}}}),vp=ve({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-${Ht()}`}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){const{focus:s}=t,o=Yl("PopoverPanel"),i=ee(()=>yn(o.panel)),a=`moonbase-focus-sentinel-before-${Ht()}`,l=`moonbase-focus-sentinel-after-${Ht()}`;r({el:o.panel,$el:o.panel}),ze(()=>{o.panelId.value=t.id}),Ot(()=>{o.panelId.value=null}),_t(hp,o.panelId),bt(()=>{var A,B;if(!s||o.popoverState.value!==0||!o.panel)return;const k=(A=i.value)==null?void 0:A.activeElement;(B=Y(o.panel))!=null&&B.contains(k)||mt(Y(o.panel),Je.First)});const c=na(),u=ee(()=>c!==null?(c.value&vt.Open)===vt.Open:o.popoverState.value===0);function d(k){var A,B;switch(k.key){case ut.Escape:if(o.popoverState.value!==0||!Y(o.panel)||i.value&&!((A=Y(o.panel))!=null&&A.contains(i.value.activeElement)))return;k.preventDefault(),k.stopPropagation(),o.closePopover(),(B=Y(o.button))==null||B.focus();break}}function f(k){var B,T,J,P,z;const A=k.relatedTarget;A&&Y(o.panel)&&((B=Y(o.panel))!=null&&B.contains(A)||(o.closePopover(),((J=(T=Y(o.beforePanelSentinel))==null?void 0:T.contains)!=null&&J.call(T,A)||(z=(P=Y(o.afterPanelSentinel))==null?void 0:P.contains)!=null&&z.call(P,A))&&A.focus({preventScroll:!0})))}const m=Hl();function _(){const k=Y(o.panel);if(!k)return;function A(){it(m.value,{[Lt.Forwards]:()=>{var T;mt(k,Je.First)===Ln.Error&&((T=Y(o.afterPanelSentinel))==null||T.focus())},[Lt.Backwards]:()=>{var B;(B=Y(o.button))==null||B.focus({preventScroll:!0})}})}A()}function E(){const k=Y(o.panel);if(!k)return;function A(){it(m.value,{[Lt.Forwards]:()=>{const B=Y(o.button),T=Y(o.panel);if(!B)return;const J=ea(),P=J.indexOf(B),z=J.slice(0,P+1),Oe=[...J.slice(P+1),...z];for(const K of Oe.slice())if(K.dataset.moonbaseFocusGuard==="true"||T!=null&&T.contains(K)){const R=Oe.indexOf(K);R!==-1&&Oe.splice(R,1)}mt(Oe,Je.First,{sorted:!1})},[Lt.Backwards]:()=>{var T;mt(k,Je.Previous)===Ln.Error&&((T=Y(o.button))==null||T.focus())}})}A()}return()=>{const k={open:o.popoverState.value===0,close:o.close},{id:A,focus:B,...T}=t,J={ref:o.panel,id:A,onKeydown:d,onFocusout:s&&o.popoverState.value===0?f:void 0,tabIndex:-1};return ct({ourProps:J,theirProps:{...e,...T},attrs:e,slot:k,slots:{...n,default:(...P)=>{var z;return[qe(Re,[u.value&&o.isPortalled.value&&qe(vr,{id:a,ref:o.beforePanelSentinel,features:mr.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:_}),(z=n.default)==null?void 0:z.call(n,...P),u.value&&o.isPortalled.value&&qe(vr,{id:l,ref:o.afterPanelSentinel,features:mr.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:E})])]}},features:pr.RenderStrategy|pr.Static,visible:u.value,name:"PopoverPanel"})}}});let D1=ve({props:{onFocus:{type:Function,required:!0}},setup(t){let e=C(!0);return()=>e.value?qe(vr,{as:"button",type:"button",features:mr.Focusable,onFocus(n){n.preventDefault();let r,s=50;function o(){var i;if(s--<=0){r&&cancelAnimationFrame(r);return}if((i=t.onFocus)!=null&&i.call(t)){e.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(o)}r=requestAnimationFrame(o)}}):null}});const gp=Symbol("TabsContext");function $o(t){const e=Me(gp,null);if(e===null){const n=new Error(`<${t} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$o),n}return e}const Ql=Symbol("TabsSSRContext"),V1=ve({name:"TabGroup",emits:{change:t=>!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(t,{slots:e,attrs:n,emit:r}){const s=C(t.selectedIndex??t.defaultIndex),o=C([]),i=C([]),a=ee(()=>t.selectedIndex!==null),l=ee(()=>a.value?t.selectedIndex:s.value);function c(_){const E=hs(u.tabs.value,Y),k=hs(u.panels.value,Y),A=E.filter(B=>{var T;return!((T=Y(B))!=null&&T.hasAttribute("disabled"))});if(_<0||_>E.length-1){const B=it(s.value===null?0:Math.sign(_-s.value),{[-1]:()=>1,0:()=>it(Math.sign(_),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),T=it(B,{0:()=>E.indexOf(A[0]),1:()=>E.indexOf(A[A.length-1])});T!==-1&&(s.value=T),u.tabs.value=E,u.panels.value=k}else{const B=E.slice(0,_),J=[...E.slice(_),...B].find(z=>A.includes(z));if(!J)return;let P=E.indexOf(J)??u.selectedIndex.value;P===-1&&(P=u.selectedIndex.value),s.value=P,u.tabs.value=E,u.panels.value=k}}let u={selectedIndex:ee(()=>s.value??t.defaultIndex??null),orientation:ee(()=>t.vertical?"vertical":"horizontal"),activation:ee(()=>t.manual?"manual":"auto"),tabs:o,panels:i,setSelectedIndex(_){l.value!==_&&r("change",_),a.value||c(_)},registerTab(_){if(o.value.includes(_))return;const E=o.value[s.value];if(o.value.push(_),o.value=hs(o.value,Y),!a.value){const k=o.value.indexOf(E)??s.value;k!==-1&&(s.value=k)}},unregisterTab(_){const E=o.value.indexOf(_);E!==-1&&o.value.splice(E,1)},registerPanel(_){i.value.includes(_)||(i.value.push(_),i.value=hs(i.value,Y))},unregisterPanel(_){const E=i.value.indexOf(_);E!==-1&&i.value.splice(E,1)}};_t(gp,u);const d=C({tabs:[],panels:[]}),f=C(!1);ze(()=>{f.value=!0}),_t(Ql,ee(()=>f.value?null:d.value));const m=ee(()=>t.selectedIndex);return ze(()=>{lt([m],()=>c(t.selectedIndex??t.defaultIndex),{immediate:!0})}),bt(()=>{if(!a.value||l.value==null||u.tabs.value.length<=0)return;const _=hs(u.tabs.value,Y);_.some((k,A)=>Y(u.tabs.value[A])!==Y(k))&&u.setSelectedIndex(_.findIndex(k=>Y(k)===Y(u.tabs.value[l.value])))}),()=>{const _={selectedIndex:s.value};return qe(Re,[o.value.length<=0&&qe(D1,{onFocus:()=>{for(const E of o.value){const k=Y(E);if((k==null?void 0:k.tabIndex)===0)return k.focus(),!0}return!1}}),ct({theirProps:{...n,...zl(t,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:_,slots:e,attrs:n,name:"TabGroup"})])}}}),R1=ve({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(t,{attrs:e,slots:n}){const r=$o("TabList");return()=>{const s={selectedIndex:r.selectedIndex.value},o={role:"tablist","aria-orientation":r.orientation.value};return ct({ourProps:o,theirProps:t,slot:s,attrs:e,slots:n,name:"TabList"})}}}),ec=ve({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-tabs-tab-${Ht()}`}},setup(t,{attrs:e,slots:n,expose:r}){const s=$o("Tab"),o=C(null);r({el:o,$el:o}),ze(()=>s.registerTab(o)),Ot(()=>s.unregisterTab(o));const i=Me(Ql),a=ee(()=>{if(i.value){const k=i.value.tabs.indexOf(t.id);return k===-1?i.value.tabs.push(t.id)-1:k}return-1}),l=ee(()=>{const k=s.tabs.value.indexOf(o);return k===-1?a.value:k}),c=ee(()=>l.value===s.selectedIndex.value);function u(k){var B;const A=k();if(A===Ln.Success&&s.activation.value==="auto"){const T=(B=yn(o))==null?void 0:B.activeElement,J=s.tabs.value.findIndex(P=>Y(P)===T);J!==-1&&s.setSelectedIndex(J)}return A}function d(k){const A=s.tabs.value.map(T=>Y(T)).filter(Boolean);if(k.key===ut.Space||k.key===ut.Enter){k.preventDefault(),k.stopPropagation(),s.setSelectedIndex(l.value);return}switch(k.key){case ut.Home:case ut.PageUp:return k.preventDefault(),k.stopPropagation(),u(()=>mt(A,Je.First));case ut.End:case ut.PageDown:return k.preventDefault(),k.stopPropagation(),u(()=>mt(A,Je.Last))}if(u(()=>it(s.orientation.value,{vertical(){return k.key===ut.ArrowUp?mt(A,Je.Previous|Je.WrapAround):k.key===ut.ArrowDown?mt(A,Je.Next|Je.WrapAround):Ln.Error},horizontal(){return k.key===ut.ArrowLeft?mt(A,Je.Previous|Je.WrapAround):k.key===ut.ArrowRight?mt(A,Je.Next|Je.WrapAround):Ln.Error}}))===Ln.Success)return k.preventDefault()}const f=C(!1);function m(){var k;f.value||(f.value=!0,!t.disabled&&((k=Y(o))==null||k.focus({preventScroll:!0}),s.setSelectedIndex(l.value),ta(()=>{f.value=!1})))}function _(k){k.preventDefault()}const E=dp(ee(()=>({as:t.as,type:e.type})),o);return()=>{var J;const k={selected:c.value,disabled:t.disabled??!1},{id:A,...B}=t,T={ref:o,onKeydown:d,onMousedown:_,onClick:m,id:A,role:"tab",type:E.value,"aria-controls":(J=Y(s.panels.value[l.value]))==null?void 0:J.id,"aria-selected":c.value,tabIndex:c.value?0:-1,disabled:t.disabled?!0:void 0};return ct({ourProps:T,theirProps:B,slot:k,attrs:e,slots:n,name:"Tab"})}}}),j1=ve({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:n}){const r=$o("TabPanels");return()=>{const s={selectedIndex:r.selectedIndex.value};return ct({theirProps:t,ourProps:{},slot:s,attrs:n,slots:e,name:"TabPanels"})}}}),tc=ve({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-${Ht()}`},tabIndex:{type:Number,default:0}},setup(t,{attrs:e,slots:n,expose:r}){const s=$o("TabPanel"),o=C(null);r({el:o,$el:o}),ze(()=>s.registerPanel(o)),Ot(()=>s.unregisterPanel(o));const i=Me(Ql),a=ee(()=>{if(i.value){const u=i.value.panels.indexOf(t.id);return u===-1?i.value.panels.push(t.id)-1:u}return-1}),l=ee(()=>{const u=s.panels.value.indexOf(o);return u===-1?a.value:u}),c=ee(()=>l.value===s.selectedIndex.value);return()=>{var E;const u={selected:c.value},{id:d,tabIndex:f,...m}=t,_={ref:o,id:d,role:"tabpanel","aria-labelledby":(E=Y(s.tabs.value[l.value]))==null?void 0:E.id,tabIndex:c.value?f:-1};return!c.value&&t.unmount&&!t.static?qe(vr,{as:"span","aria-hidden":!0,..._}):ct({ourProps:_,theirProps:m,slot:u,attrs:e,slots:n,features:pr.Static|pr.RenderStrategy,visible:c.value,name:"TabPanel"})}}});function L1(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function nc(t,...e){t&&e.length>0&&!t.dataset.transition?t.dataset.transition=e.join(" "):t&&e.length>0&&(t.dataset.transition=[...t.dataset.transition.split(" "),...e].join(" "))}function ia(t,...e){t&&e.length>0&&t.dataset.transition&&(t.dataset.transition=t.dataset.transition.split(" ").filter(n=>!e.includes(n)).join(" "))}var rc=(t=>(t.Finished="finished",t.Cancelled="cancelled",t))(rc||{});function M1(t,e){const n=So();if(!t)return n.dispose;const{transitionDuration:r,transitionDelay:s}=getComputedStyle(t),[o,i]=[r,s].map(a=>{const[l=0]=a.split(",").filter(Boolean).map(c=>c.includes("ms")?Number.parseFloat(c):Number.parseFloat(c)*1e3).sort((c,u)=>u-c);return l});return o!==0?n.setTimeout(()=>e("finished"),o+i):e("finished"),n.add(()=>e("cancelled")),n.dispose}function yp(t,e,n,r,s,o){const i=So(),a=o!==void 0?L1(o):()=>{};return ia(t,...s),nc(t,...e,...n),i.nextFrame(()=>{ia(t,...n),nc(t,...r),i.add(M1(t,l=>(ia(t,...r,...e),nc(t,...s),a(l))))}),i.add(()=>ia(t,...e,...n,...r,...s)),i.add(()=>a("cancelled")),i.dispose}function Wr(t=""){return t.split(/\s+/).filter(e=>e.length>1)}const sc=Symbol("TransitionContext");function U1(){return Me(sc,null)!==null}function Z1(){const t=Me(sc,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}const oc=Symbol("NestingContext");function B1(){const t=Me(oc,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}function aa(t){return"children"in t?aa(t.children):t.value.filter(({state:e})=>e==="visible").length>0}function _p(t){const e=C([]),n=C(!1);ze(()=>n.value=!0),Ot(()=>n.value=!1);function r(o,i=hr.Hidden){const a=e.value.findIndex(({id:l})=>l===o);a!==-1&&(it(i,{[hr.Unmount](){e.value.splice(a,1)},[hr.Hidden](){e.value[a].state="hidden"}}),!aa(e)&&n.value&&(t==null||t()))}function s(o){const i=e.value.find(({id:a})=>a===o);return i?i.state!=="visible"&&(i.state="visible"):e.value.push({id:o,state:"visible"}),()=>r(o,hr.Unmount)}return{children:e,register:s,unregister:r}}const bp=pr.RenderStrategy,Po=ve({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(t,{emit:e,attrs:n,slots:r,expose:s}){const o=C(0);function i(){o.value|=vt.Opening,e("beforeEnter")}function a(){o.value&=~vt.Opening,e("afterEnter")}function l(){o.value|=vt.Closing,e("beforeLeave")}function c(){o.value&=~vt.Closing,e("afterLeave")}if(!U1()&&k1())return()=>qe(ic,{...t,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:c},r);const u=C(null),d=ee(()=>t.unmount?hr.Unmount:hr.Hidden);s({el:u,$el:u});const{show:f,appear:m}=Z1(),{register:_,unregister:E}=B1(),k=C(f.value?"visible":"hidden"),A={value:!0},B=Ht(),T={value:!1},J=_p(()=>{!T.value&&k.value!=="hidden"&&(k.value="hidden",E(B),c())});ze(()=>{const ce=_(B);Ot(ce)}),bt(()=>{if(d.value===hr.Hidden&&B){if(f.value&&k.value!=="visible"){k.value="visible";return}it(k.value,{hidden:()=>E(B),visible:()=>_(B)})}});const P=Wr(t.enter),z=Wr(t.enterFrom),N=Wr(t.enterTo),Oe=Wr(t.entered),K=Wr(t.leave),R=Wr(t.leaveFrom),V=Wr(t.leaveTo);ze(()=>{bt(()=>{if(k.value==="visible"){const ce=Y(u);if(ce instanceof Comment&&ce.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function I(ce){const Ze=A.value&&!m.value,w=Y(u);!w||!(w instanceof HTMLElement)||Ze||(T.value=!0,f.value&&i(),f.value||l(),ce(f.value?yp(w,P,z,N,Oe,$=>{T.value=!1,$===rc.Finished&&a()}):yp(w,K,R,V,Oe,$=>{T.value=!1,$===rc.Finished&&(aa(J)||(k.value="hidden",E(B),c()))})))}return ze(()=>{lt([f],(ce,Ze,w)=>{I(w),A.value=!1},{immediate:!0})}),_t(oc,J),ep(ee(()=>it(k.value,{visible:vt.Open,hidden:vt.Closed})|o.value)),()=>{const{appear:ce,show:Ze,enter:w,enterFrom:$,enterTo:Q,entered:oe,leave:be,leaveFrom:ae,leaveTo:We,...xt}=t,Ke={ref:u},At={...xt,...m.value&&f.value&&Oo.isServer?{class:Yo([n.class,xt.class,...P,...z])}:{}};return ct({theirProps:At,ourProps:Ke,slot:{},slots:r,attrs:n,features:bp,visible:k.value==="visible",name:"TransitionChild"})}}}),F1=Po,ic=ve({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(t,{emit:e,attrs:n,slots:r}){const s=na(),o=ee(()=>t.show===null&&s!==null?(s.value&vt.Open)===vt.Open:t.show);bt(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});const i=C(o.value?"visible":"hidden"),a=_p(()=>{i.value="hidden"}),l=C(!0),c={show:o,appear:ee(()=>t.appear||!l.value)};return ze(()=>{bt(()=>{l.value=!1,o.value?i.value="visible":aa(a)||(i.value="hidden")})}),_t(oc,a),_t(sc,c),()=>{const u=zl(t,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:t.unmount};return ct({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[qe(F1,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...n,...d,...u},r.default)]},attrs:{},features:bp,visible:i.value==="visible",name:"Transition"})}}}),H1={class:"moonbase:modal-container"},la=ve({__name:"Modal",props:{open:{type:Boolean}},emits:["close"],setup(t){return(e,n)=>(g(),Ve(b(ic),{as:"template",show:e.open},{default:ke(()=>[F(b(ap),{as:"div",class:"moonbase:modal",onClose:n[0]||(n[0]=r=>e.$emit("close"))},{default:ke(()=>[x("div",H1,[F(b(Po),{as:"template"},{default:ke(()=>[F(b(lp),{class:"moonbase:modal-overlay"})]),_:1}),F(b(Po),{as:"template"},{default:ke(()=>[F(b(cp),{class:"moonbase:modal-content"},{default:ke(()=>[nl(e.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),z1=["data-visible"],q1=ve({__name:"SignIn",emits:["signedIn"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=Me(Yi),i=C(r.getParameter("email")??""),a=C(""),l=C(null);async function c(){l.value=null;try{const u=await s.signIn(i.value,a.value);gn(1500).then(()=>n("signedIn",u))}catch(u){throw u instanceof rs?l.value="User not found":l.value=u.message,u}}return(u,d)=>(g(),Ve(dr,{handler:c,class:"moonbase:sign-in"},{default:ke(()=>{var f;return[F(Tt,{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(Tt,{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(fr,{success:"Signed in",label:"Sign in",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},G(l.value),9,z1),(f=b(o))!=null&&f.auth.enable.signUp?(g(),O("button",{key:0,type:"button",onClick:d[2]||(d[2]=m=>b(r).show(b(Ae).Authentication,b(he).SignUp,{email:i.value}))}," Create account ")):ge("",!0),x("button",{type:"button",onClick:d[3]||(d[3]=m=>b(r).show(b(Ae).Authentication,b(he).ForgotPassword,{email:i.value}))}," Forgot password ")]}),_:1}))}}),W1={class:"moonbase:authentication"},K1={key:0,class:"moonbase:loader"},G1=ve({__name:"Authentication",props:{open:{type:Boolean}},emits:["authenticated"],setup(t,{emit:e}){const n=e,r=Fe(),{loaded:s,user:o}=It();lt(o,a=>{a&&r.intent===he.SignIn&&(n("authenticated",a),r.dequeue())});const i=ee(()=>{switch(r.intent){case he.SignIn:return"Sign in";case he.SignUp:return"Sign up";case he.ConfirmAccount:return"Confirm account";case he.ConfirmEmailChange:return"Confirm email change";case he.ForgotPassword:return"Forgot password";case he.ResetPassword:return"Reset password"}throw new Error("Moonbase: Unknown intent")});return(a,l)=>(g(),Ve(la,{open:a.open,onClose:l[3]||(l[3]=c=>b(r).reset())},{default:ke(()=>[x("div",W1,[F(b(oa),{as:"h3"},{default:ke(()=>[je(G(i.value),1)]),_:1}),b(s)?b(r).intent===b(he).SignIn?(g(),Ve(q1,{key:1})):b(r).intent===b(he).SignUp?(g(),Ve(Ub,{key:2,onSignedUp:l[0]||(l[0]=c=>b(r).dequeue())})):b(r).intent===b(he).ConfirmAccount?(g(),Ve(zb,{key:3,onConfirmedAccount:l[1]||(l[1]=c=>b(r).dequeue())})):b(r).intent===b(he).ConfirmEmailChange?(g(),Ve(r1,{key:4})):b(r).intent===b(he).ForgotPassword?(g(),Ve(Gb,{key:5})):b(r).intent===b(he).ResetPassword?(g(),Ve(Xb,{key:6,onPasswordReset:l[2]||(l[2]=c=>b(r).dequeue())})):ge("",!0):(g(),O("div",K1,[F(Ft)]))])]),_:1},8,["open"]))}});function Mn(t,e){return new Intl.NumberFormat(void 0,{style:"currency",currency:e,currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2}).format(t)}const J1={class:"moonbase:product-cart-item"},Y1=["src"],X1={key:1,class:"moonbase:image-placeholder"},Q1={class:"moonbase:product-cart-item-content"},ew={key:0,class:"moonbase:cart-item-discount"},tw={class:"font-semibold"},nw={key:0,class:"ml-0.5"},rw={key:2,class:"moonbase:product-cart-item-total"},sw={key:0,class:"moonbase:discount"},ow={key:1},iw=ve({__name:"ProductCartItem",props:{lineItem:{},currency:{}},setup(t){return(e,n)=>{var r,s,o;return g(),O("div",J1,[(r=e.lineItem.product)!=null&&r.iconUrl?(g(),O("img",{key:0,src:e.lineItem.product.iconUrl,alt:""},null,8,Y1)):(g(),O("div",X1)),x("div",Q1,[x("h3",null,G((s=e.lineItem.product)==null?void 0:s.name),1),x("p",null,G((o=e.lineItem.product)==null?void 0:o.tagline),1),e.lineItem.appliedDiscount?(g(),O("p",ew,[je(" Discount applied: "),x("span",tw,G(e.lineItem.appliedDiscount.name),1),e.lineItem.appliedDiscount.total?(g(),O("span",nw," (-"+G(b(Mn)(e.lineItem.appliedDiscount.total[e.currency],e.currency))+") ",1)):ge("",!0)])):ge("",!0),x("p",null,G(e.lineItem.quantity)+" in cart",1)]),e.lineItem.variation?(g(),O("div",rw,[e.lineItem.variation.hasDiscount?(g(),O("span",sw,G(b(Mn)(e.lineItem.variation.originalPrice[e.currency],e.currency)),1)):ge("",!0),e.lineItem.quantity!==1?(g(),O("span",ow,G(e.lineItem.quantity)+" x "+G(b(Mn)(e.lineItem.variation.price[e.currency],e.currency)),1)):ge("",!0),je(" "+G(b(Mn)(e.lineItem.variation.price[e.currency]*e.lineItem.quantity,e.currency)),1)])):ge("",!0)])}}}),aw={class:"moonbase:bundle-cart-item"},lw=["src"],cw={key:1,class:"moonbase:image-placeholder"},uw={class:"moonbase:bundle-cart-item-content"},dw={key:0,class:"moonbase:cart-item-discount"},fw={class:"font-semibold"},pw={key:0,class:"ml-0.5"},hw={class:"moonbase:bundle-cart-item-summary"},mw=["data-open"],vw=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1)],gw={key:2,class:"moonbase:product-cart-item-total"},yw={key:0,class:"moonbase:discount"},_w={key:1},bw=["src"],ww={key:1,class:"moonbase:image-placeholder"},Ew=["data-included"],xw={key:0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},kw=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"},null,-1)],Ow={key:0,class:"truncate italic"},Nw={key:1,class:"truncate"},Sw=ve({__name:"BundleCartItem",props:{lineItem:{},currency:{}},setup(t){const e=C(!1),n=C(null);return lt(e,r=>{n.value&&(n.value.style.height=r?`${n.value.scrollHeight}px`:"0px")}),(r,s)=>{var o,i,a,l,c,u,d;return g(),O("div",null,[x("div",aw,[(o=r.lineItem.bundle)!=null&&o.iconUrl?(g(),O("img",{key:0,src:r.lineItem.bundle.iconUrl,alt:""},null,8,lw)):(g(),O("div",cw)),x("div",uw,[x("h3",null,G((i=r.lineItem.bundle)==null?void 0:i.name),1),x("p",null,G((a=r.lineItem.bundle)==null?void 0:a.tagline),1),r.lineItem.appliedDiscount?(g(),O("p",dw,[je(" Discount applied: "),x("span",fw,G(r.lineItem.appliedDiscount.name),1),r.lineItem.appliedDiscount.total?(g(),O("span",pw," (-"+G(b(Mn)(r.lineItem.appliedDiscount.total[r.currency],r.currency))+") ",1)):ge("",!0)])):ge("",!0),x("div",hw,[x("span",null,G(r.lineItem.quantity)+" in cart",1),r.lineItem.bundle?(g(),O("button",{key:0,onClick:s[0]||(s[0]=f=>e.value=!e.value)},[x("span",null,[je(" Including "+G((l=r.lineItem.bundle)==null?void 0:l.products.filter(f=>f.included).length)+" ",1),(c=r.lineItem.bundle)!=null&&c.products.some(f=>!f.included)?(g(),O(Re,{key:0},[je("of "+G((u=r.lineItem.bundle)==null?void 0:u.products.length),1)],64)):ge("",!0),je(" products ")]),(g(),O("svg",{"data-open":e.value||void 0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},vw,8,mw))])):ge("",!0)])]),r.lineItem.variation?(g(),O("div",gw,[r.lineItem.variation.hasDiscount?(g(),O("span",yw,G(b(Mn)(r.lineItem.variation.originalPrice[r.currency],r.currency)),1)):ge("",!0),r.lineItem.quantity!==1?(g(),O("span",_w,G(r.lineItem.quantity)+" x "+G(b(Mn)(r.lineItem.variation.price[r.currency],r.currency)),1)):ge("",!0),je(" "+G(b(Mn)(r.lineItem.variation.price[r.currency]*r.lineItem.quantity,r.currency)),1)])):ge("",!0)]),x("div",{ref_key:"productListRef",ref:n,class:"moonbase:bundle-cart-item-product-list",style:{height:"0px"}},[(g(!0),O(Re,null,fn(((d=r.lineItem.bundle)==null?void 0:d.products)||[],f=>(g(),O("div",{key:f.id},[f!=null&&f.iconUrl?(g(),O("img",{key:0,src:f.iconUrl,alt:""},null,8,bw)):(g(),O("div",ww)),x("div",null,[x("h3",{"data-included":f.included||void 0},[f.included?(g(),O("svg",xw,kw)):ge("",!0),je(" "+G(f==null?void 0:f.name),1)],8,Ew),f.included?f!=null&&f.tagline?(g(),O("p",Nw,G(f.tagline),1)):ge("",!0):(g(),O("p",Ow," You already own this "))])]))),128))],512)])}}}),Tw={class:"moonbase:cart-modal-container"},Cw=ve({__name:"CartModal",props:{open:{type:Boolean}},emits:["close"],setup(t){return(e,n)=>(g(),Ve(b(ic),{as:"template",show:e.open},{default:ke(()=>[F(b(ap),{as:"div",class:"moonbase:cart-modal",onClose:n[0]||(n[0]=r=>e.$emit("close"))},{default:ke(()=>[x("div",Tw,[F(b(Po),{as:"template"},{default:ke(()=>[F(b(lp),{class:"moonbase:cart-modal-overlay"})]),_:1}),F(b(Po),{as:"template"},{default:ke(()=>[F(b(cp),{class:"moonbase:cart-modal-content"},{default:ke(()=>[nl(e.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),$w=["disabled","data-success","data-error","data-working","data-variant"],Pw=["data-visible"],wp=ve({__name:"MoonButton",props:{handler:{type:Function},label:{},success:{},error:{},variant:{},noReset:{type:Boolean}},setup(t){const e=t,n=C(!1),r=C(!1),s=C(!1),o=ee(()=>r.value?e.success??e.label:s.value?e.error:e.label);async function i(){try{const a=e.handler();if(a instanceof Promise){if(n.value=!0,await a,n.value=!1,!e.success)return;r.value=!0,await gn(2500),e.noReset||(r.value=!1)}}catch{n.value=!1,s.value=!0,await gn(2500),s.value=!1}}return(a,l)=>(g(),O("button",{class:"moonbase:button",type:"button",disabled:r.value||s.value||n.value,"data-success":r.value&&a.success||void 0,"data-error":s.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?(g(),Ve(Ft,{key:0})):ge("",!0)],8,Pw),je(" "+G(o.value),1)],8,$w))}}),Iw={class:"moonbase:cart"},Aw={key:0,role:"list",class:"moonbase:cart-items"},Dw={key:1,class:"moonbase:cart-empty"},Vw={key:2,class:"moonbase:cart-total"},Rw=x("label",null," Total ",-1),jw=x("p",null," Sales tax to be calculated at checkout ",-1),Lw=ve({__name:"Cart",props:{open:{type:Boolean}},setup(t){const e=Fe(),{items:n,total:r,currency:s,checkout:o}=Vl();async function i(){if(!await o(`${window.location.pathname}?mb_intent=view_products`))throw new Error("Cancelled checkout")}return(a,l)=>(g(),Ve(Cw,{open:a.open,onClose:l[0]||(l[0]=c=>b(e).reset())},{default:ke(()=>[x("div",Iw,[F(b(oa),{as:"h3"},{default:ke(()=>[je(" Cart ")]),_:1}),b(n).length>0?(g(),O("ul",Aw,[(g(!0),O(Re,null,fn(b(n),c=>(g(),O("li",{key:c.id},[c.type==="Product"?(g(),Ve(iw,{key:0,"line-item":c,currency:b(s)},null,8,["line-item","currency"])):c.type==="Bundle"?(g(),Ve(Sw,{key:1,"line-item":c,currency:b(s)},null,8,["line-item","currency"])):ge("",!0)]))),128))])):(g(),O("div",Dw," Your cart is empty! ")),b(n).length>0?(g(),O("div",Vw,[Rw,x("span",null,G(b(Mn)(b(r).amount,b(r).currency)),1),jw])):ge("",!0),b(n).length>0?(g(),Ve(wp,{key:3,handler:i,label:"Checkout",error:"Cancelled"})):ge("",!0)])]),_:1},8,["open"]))}}),Mw={class:"moonbase:account"},Uw={key:0,class:"moonbase:error"},Zw={key:1,class:"moonbase:notification"},Bw={key:0,class:"moonbase:error"},Fw=ve({__name:"Account",setup(t){var B,T,J;const e=Fe(),{user:n,update:r,setPassword:s,signOut:o}=It(),i=C(((B=n.value)==null?void 0:B.name)??""),a=C(((T=n.value)==null?void 0:T.email)??""),l=C(((J=n.value)==null?void 0:J.communicationPreferences)??{newsletterOptIn:!1}),c=C(null),u=C(!1),d=C(""),f=C(""),m=C(null),_=C(!1);async function E(){c.value=null,u.value=!1;try{(await r(i.value,a.value,void 0,l.value)).needsEmailConfirmationToken&&(u.value=!0)}catch(P){throw c.value=P,P}}async function k(){m.value=null;try{await s(d.value,f.value),d.value="",f.value=""}catch(P){throw m.value=P,P}}async function A(){_.value=!0,await o(),e.reset()}return(P,z)=>(g(),O("div",Mw,[F(dr,{handler:E},{default:ke(()=>[F(Tt,{modelValue:i.value,"onUpdate:modelValue":z[0]||(z[0]=N=>i.value=N),label:"Full name",name:"name",autocomplete:"name",required:""},null,8,["modelValue"]),F(Tt,{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"]),F(Uf,{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"]),F(fr,{label:"Save",error:"Error",success:"Saved"}),c.value?(g(),O("p",Uw,G(c.value.message),1)):u.value?(g(),O("p",Zw," You need to confirm your new email address, please check your inbox ")):ge("",!0)]),_:1}),F(dr,{handler:k},{default:ke(()=>[F(Tt,{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"]),F(Tt,{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"]),F(fr,{label:"Save",error:"Error",success:"Saved"}),m.value?(g(),O("p",Bw,G(m.value.message),1)):ge("",!0)]),_:1}),F(wp,{label:"Log out",success:"Logged out",error:"Error",variant:"secondary",handler:A})]))}}),Hw={},zw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},qw=[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 Ww(t,e){return g(),O("svg",zw,qw)}const Ep=ur(Hw,[["render",Ww]]),Kw={},Gw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Jw=[x("path",{d:"M480 265H232v179l248 36V265zM216 265H32v150l184 26.7V265zM480 32L232 67.4V249h248V32zM216 69.7L32 96v153h184V69.7z",fill:"currentColor"},null,-1)];function Yw(t,e){return g(),O("svg",Gw,Jw)}const xp=ur(Kw,[["render",Yw]]),Xw={},Qw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e0=[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 t0(t,e){return g(),O("svg",Qw,e0)}const kp=ur(Xw,[["render",t0]]),n0={},r0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s0=[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 o0(t,e){return g(),O("svg",r0,s0)}const Op=ur(n0,[["render",o0]]),i0={class:"moonbase:product-downloads"},a0=["data-last","onClick"],l0={class:"moonbase:sr-only"},c0={class:"moonbase:sr-only"},u0=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),d0=["onClick"],f0=ve({__name:"ProductDownloads",props:{downloads:{}},setup(t){const e=t,n={[sn.Universal]:()=>Ep,[sn.Windows]:()=>xp,[sn.Linux]:()=>kp,[sn.Mac]:()=>Op},{downloadProduct:r}=Hi(),s=ee(()=>e.downloads.reduce((o,i)=>({...o,[i.platform]:(o[i.platform]||[]).concat({...i,icon:n[i.platform]})}),{}));return(o,i)=>(g(),O("span",i0,[(g(!0),O(Re,null,fn(s.value,(a,l,c)=>(g(),O(Re,{key:l},[a.length===1?(g(),O("button",{key:0,type:"button",role:"button","data-last":c===Object.keys(s.value).length-1||void 0,onClick:u=>b(r)(a[0])},[x("span",l0,G(l.toString()),1),(g(),Ve(tl(a[0].icon()),{class:"h-5 w-5 text-white","aria-hidden":"true"}))],8,a0)):(g(),Ve(b(Xl),{key:1,as:"div","data-last":c===Object.keys(s.value).length-1||void 0,class:"moonbase:product-downloads-group"},{default:ke(()=>[F(b(mp),null,{default:ke(()=>[x("span",c0,G(l.toString()),1),(g(),Ve(tl(a[0].icon()),{"aria-hidden":"true"})),u0]),_:2},1024),F(lo,{name:"moonbase:scale"},{default:ke(()=>[F(b(vp),{class:"moonbase:product-downloads-list"},{default:ke(()=>[(g(!0),O(Re,null,fn(a,u=>(g(),O("button",{key:u.key,type:"button",role:"button",onClick:d=>b(r)(u)},G(u.name),9,d0))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["data-last"]))],64))),128))]))}}),p0={class:"moonbase:product-activations"},h0=x("th",{scope:"col"}," Device ",-1),m0=x("th",{scope:"col"}," Activation Method ",-1),v0=x("th",{scope:"col"}," Last Online ",-1),g0={key:0,scope:"col"},y0=[x("span",{class:"sr-only"},"Actions",-1)],_0={key:0},b0={colspan:"3"},w0=x("td",null,null,-1),E0={key:1},x0=[x("td",{colspan:"3"}," No activations found ",-1)],k0={key:0},O0=["onClick"],N0=ve({__name:"ProductActivations",props:{productId:{}},emits:["revoked"],setup(t,{emit:e}){const n=t,r=e,{getProductActivations:s,revokeActivation:o}=Hi(),i=C(null);ze(async()=>{let c=await s(n.productId);for(i.value=c.items.map(u=>({...u,revoking:!1}));c.hasMore&&c.next;)c=await s(n.productId,c.next),i.value.push(...c.items.map(u=>({...u,revoking:!1})))});const a=ee(()=>i.value&&i.value.some(c=>c.activationMethod===Na.Online));async function l(c){c.revoking=!0,await o(c),r("revoked",c),i.value&&i.value.splice(i.value.indexOf(c),1)}return(c,u)=>(g(),O("table",p0,[x("thead",null,[x("tr",null,[h0,m0,v0,a.value?(g(),O("th",g0,y0)):ge("",!0)])]),x("tbody",null,[i.value?i.value.length===0?(g(),O("tr",E0,x0)):ge("",!0):(g(),O("tr",_0,[x("td",b0,[F(Ft),je(" Loading activations.. ")]),w0])),(g(!0),O(Re,null,fn(i.value,d=>{var f;return g(),O("tr",{key:d.id},[x("td",null,G(d.name),1),x("td",null,G(d.activationMethod),1),x("td",null,G((f=d.lastValidatedAt)==null?void 0:f.toLocaleDateString()),1),a.value?(g(),O("td",k0,[x("button",{class:"text-red-400 flex whitespace-nowrap items-center",onClick:m=>l(d)},[d.revoking?(g(),Ve(Ft,{key:0})):ge("",!0),je(" Revoke ")],8,O0)])):ge("",!0)])}),128))])]))}}),S0={class:"moonbase:products"},T0=x("th",{scope:"col"}," Product ",-1),C0=x("th",{scope:"col"}," Activations ",-1),$0={key:0,scope:"col"},P0={key:0},I0=x("td",null,null,-1),A0={key:1},D0=[x("td",{colspan:"3"}," No products found ",-1)],V0=["src"],R0={key:1,class:"moonbase:image-placeholder"},j0=x("span",{class:"moonbase:sr-only"},"View activations",-1),L0={key:0},M0={key:0},U0=ve({__name:"Products",setup(t){const{getProducts:e}=Hi(),n=C(null);ze(async()=>{let s=await e();for(n.value=s.items;s.hasMore&&s.next;)s=await e(s.next),n.value.push(...s.items)});const r=ee(()=>n.value&&n.value.some(s=>s.downloads));return(s,o)=>(g(),O("table",S0,[x("thead",null,[x("tr",null,[T0,C0,r.value?(g(),O("th",$0," Downloads ")):ge("",!0)])]),x("tbody",null,[n.value?n.value.length===0?(g(),O("tr",A0,D0)):ge("",!0):(g(),O("tr",P0,[x("td",null,[F(Ft),je(" Loading products.. ")]),I0])),(g(!0),O(Re,null,fn(n.value||[],i=>(g(),O("tr",{key:i.id},[x("td",null,[x("div",null,[i.iconUrl?(g(),O("img",{key:0,src:i.iconUrl,alt:""},null,8,V0)):(g(),O("div",R0)),x("span",null,G(i.name),1)])]),F(b(Xl),{as:"td"},{default:ke(()=>[F(b(mp),{class:"moonbase:button","data-variant":"secondary"},{default:ke(()=>[j0,je(" "+G(i.currentActivations)+" / "+G(i.maxActivations),1)]),_:2},1024),F(lo,{name:"moonbase:scale"},{default:ke(()=>[F(b(vp),null,{default:ke(()=>[F(N0,{"product-id":i.id},null,8,["product-id"])]),_:2},1024)]),_:2},1024)]),_:2},1024),r.value?(g(),O("td",L0,[i.currentVersion!=null?(g(),O("div",M0,[i.downloads?(g(),Ve(f0,{key:0,downloads:i.downloads},null,8,["downloads"])):ge("",!0)])):ge("",!0)])):ge("",!0)]))),128))])]))}}),Z0={class:"moonbase:redeem"},B0=["data-visible"],F0={key:1,class:"moonbase:redeem-voucher"},H0={key:0},z0={key:1},q0=x("span",null," Contains: ",-1),W0={class:"moonbase:redeem-voucher-products"},K0=["src"],G0={key:1,class:"moonbase:image-placeholder"},J0={key:0},Y0={class:"moonbase:redeem-voucher-bundle"},X0=["src"],Q0={key:1,class:"moonbase:image-placeholder"},eE={key:0},tE={class:"moonbase:redeem-voucher-bundle-products"},nE={class:"shrink-0"},rE=["src"],sE={key:1,class:"moonbase:image-placeholder"},oE=ve({__name:"Redeem",setup(t){const{redeem:e}=R_(),n=C(!1),r=C(null),s=C(null),o=C("");async function i(){n.value=!0,s.value=null;try{r.value=await e(o.value)}catch(a){throw s.value=a,a}n.value=!1}return(a,l)=>(g(),O("div",Z0,[F(lo,{mode:"out-in",name:"moonbase:slide-left"},{default:ke(()=>[r.value?(g(),O("div",F0,[x("h3",null,[je(" You got: "),x("strong",null,G(r.value.name),1)]),r.value.description?(g(),O("h4",H0,G(r.value.description),1)):ge("",!0),x("h4",null,[je(" Code: "),x("strong",null,G(r.value.code),1)]),r.value.redeemsProducts.length>0?(g(),O("div",z0,[q0,x("div",W0,[(g(!0),O(Re,null,fn(r.value.redeemsProducts,({value:c,quantity:u})=>(g(),O("div",{key:c.id,class:"moonbase:redeem-voucher-product"},[x("div",null,[c.iconUrl?(g(),O("img",{key:0,src:c.iconUrl,alt:""},null,8,K0)):(g(),O("div",G0))]),x("div",null,[x("p",null,[je(G(c.name)+" ",1),u!==1?(g(),O("span",J0,"x "+G(u),1)):ge("",!0)]),x("p",null,G(c.tagline),1)])]))),128)),(g(!0),O(Re,null,fn(r.value.redeemsBundles,({value:c,quantity:u})=>(g(),O("div",{key:c.id},[x("div",Y0,[x("div",null,[c.iconUrl?(g(),O("img",{key:0,src:c.iconUrl,alt:""},null,8,X0)):(g(),O("div",Q0))]),x("div",null,[x("p",null,[je(G(c.name)+" ",1),u!==1?(g(),O("span",eE,"x "+G(u),1)):ge("",!0)]),x("p",null,G(c.tagline),1)])]),x("div",tE,[(g(!0),O(Re,null,fn(c.products,d=>(g(),O("div",{key:d.id,class:"moonbase:redeem-voucher-product"},[x("div",nE,[d.iconUrl?(g(),O("img",{key:0,src:d.iconUrl,alt:""},null,8,rE)):(g(),O("div",sE))]),x("div",null,[x("p",null,G(d.name),1),x("p",null,G(d.tagline),1)])]))),128))])]))),128))])])):ge("",!0)])):(g(),Ve(dr,{key:0,handler:i},{default:ke(()=>{var c;return[F(Tt,{modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=u=>o.value=u),label:"Voucher code",name:"code",required:""},null,8,["modelValue"]),F(fr,{label:"Redeem",success:"Redeem",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!s.value||void 0},G((c=s.value)==null?void 0:c.message),9,B0)]}),_:1}))]),_:1})]))}}),iE={class:"moonbase:customer"},aE=ve({__name:"Customer",props:{open:{type:Boolean}},setup(t){const e=Fe();function n(o){switch(o){case he.ViewAccount:return 0;case he.ViewProducts:return 1;case he.RedeemVoucher:return 2}return 0}const r=C(n(e.intent));lt(()=>e.intent,o=>{r.value=n(o)});function s(o){r.value=o}return(o,i)=>(g(),Ve(la,{open:o.open,onClose:i[0]||(i[0]=a=>b(e).reset())},{default:ke(()=>[x("div",iE,[F(b(V1),{"selected-index":r.value,onChange:s},{default:ke(()=>[F(b(R1),null,{default:ke(()=>[F(b(ec),null,{default:ke(()=>[je("Account")]),_:1}),F(b(ec),null,{default:ke(()=>[je(" Products ")]),_:1}),F(b(ec),null,{default:ke(()=>[je("Redeem")]),_:1})]),_:1}),F(b(j1),null,{default:ke(()=>[F(b(tc),null,{default:ke(()=>[F(Fw)]),_:1}),F(b(tc),null,{default:ke(()=>[F(U0)]),_:1}),F(b(tc),null,{default:ke(()=>[F(oE)]),_:1})]),_:1})]),_:1},8,["selected-index"])])]),_:1},8,["open"]))}}),lE={class:"moonbase:auto-activate"},cE={key:0,class:"moonbase:loader"},uE={key:1,class:"moonbase:loader"},dE={key:2,class:"moonbase:loader"},fE={key:3},pE={key:0,class:"moonbase:auto-activate-product"},hE=["src"],mE={key:1,class:"moonbase:image-placeholder"},vE={key:1,class:"moonbase:loader"},gE=[x("h3",null," Uh oh ",-1),x("p",null," This activation request was cancelled, open your app to try again. ",-1)],yE={key:2,class:"moonbase:loader"},_E={key:3,class:"moonbase:loader"},bE=[x("h3",null," Done! ",-1),x("p",null," Your product is activated. ",-1)],wE={key:4,class:"moonbase:auto-activate-content"},EE={key:0},xE={key:1},kE=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),OE={class:"moonbase:auto-activate-cta"},NE=["href"],SE={key:2,class:"moonbase:auto-activate-trial"},TE={class:"moonbase:auto-activate-cta"},CE=ve({__name:"AutoActivate",setup(t){const e=Fe(),{user:n,loaded:r}=It(),s=e.getParameter("token"),{activationRequest:o,loading:i,fulfilling:a,completing:l,error:c,fulfillLicense:u,fulfillTrial:d,cancel:f}=V_(s);lt(o,E=>{var k;!a.value&&!l.value&&(E==null?void 0:E.status)===on.Requested&&((k=E==null?void 0:E.licenseEligibility)!=null&&k.eligible)&&u()});function m(){f(),e.show(Ae.Customer,he.ViewProducts)}function _(){e.enqueue(Ae.Activation,he.ActivateProduct,e.parameters??void 0),e.show(Ae.Authentication,he.SignIn)}return(E,k)=>{var A,B,T,J;return g(),O("div",lE,[b(i)||!b(r)?(g(),O("div",cE,[F(Ft)])):b(c)?(g(),O("div",uE,G(b(c)),1)):b(o)?(g(),O("div",fE,[b(o).product?(g(),O("div",pE,[b(o).product.iconUrl?(g(),O("img",{key:0,src:b(o).product.iconUrl,alt:""},null,8,hE)):(g(),O("div",mE)),x("div",null,[x("h2",null,G(b(o).product.name),1),x("h3",null,G(b(o).product.tagline),1)])])):ge("",!0),((A=b(o))==null?void 0:A.status)===b(on).Cancelled?(g(),O("div",vE,gE)):b(a)||b(l)?(g(),O("div",yE,[F(Ft),x("p",null,"Activating "+G(b(o).product.name)+"...",1)])):((B=b(o))==null?void 0:B.status)===b(on).Completed?(g(),O("div",_E,bE)):(g(),O("div",wE,[b(n)?(T=b(n).ownedProducts)!=null&&T.includes(b(o).product.id)?(g(),O("div",xE,[kE,x("span",OE,[x("button",{role:"button",class:"moonbase:button",onClick:k[0]||(k[0]=P=>m())}," Licenses "),b(o).product&&b(o).product.website?(g(),O("a",{key:0,href:b(o).product.website,class:"moonbase:button"}," Purchase ",8,NE)):ge("",!0)])])):ge("",!0):(g(),O("div",EE,[je(" Please sign in to use a license "),x("span",{class:"moonbase:auto-activate-cta"},[x("button",{role:"button",class:"moonbase:button",onClick:_}," Sign in ")])])),(J=b(o).trialEligibility)!=null&&J.eligible?(g(),O("div",SE,[je(" You are eligible for a "+G(b(o).trialEligibility.numberOfDaysPerProduct)+" day trial ",1),b(o).trialEligibility.existing?(g(),O(Re,{key:0},[je(" of which you have "+G(b(o).trialEligibility.numberOfDaysRemaining)+" days remaining ",1)],64)):ge("",!0),je(". "),x("span",TE,[x("button",{role:"button",class:"moonbase:button",onClick:k[1]||(k[1]=P=>b(d)())}," Start trial ")])])):ge("",!0)]))])):(g(),O("div",dE," Could not find activation request "))])}}}),$E={class:"moonbase:activation"},PE=ve({__name:"Activation",props:{open:{type:Boolean}},setup(t){const e=Fe();return(n,r)=>(g(),Ve(la,{open:n.open,onClose:r[0]||(r[0]=s=>b(e).reset())},{default:ke(()=>[x("div",$E,[F(b(oa),{as:"h3"},{default:ke(()=>[je(" Activate product ")]),_:1}),n.open&&b(e).intent===b(he).ActivateProduct?(g(),Ve(CE,{key:0})):ge("",!0)])]),_:1},8,["open"]))}});function IE(t){const e=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t<1)return`${t} B`;const n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),e.length-1);t=Number(t/1024**n);const r=e[n];return t>=10||t%1===0?`${t.toFixed(0)} ${r}`:`${t.toFixed(1)} ${r}`}const AE={class:"moonbase:download-product"},DE={key:0,class:"moonbase:loader"},VE={key:1,class:"moonbase:loader"},RE={key:2,class:"moonbase:loader"},jE={key:3},LE={class:"moonbase:download-product-product"},ME=["src"],UE={key:1,class:"moonbase:image-placeholder"},ZE={key:0},BE={key:0,class:"moonbase:download-product-content"},FE={key:1,class:"moonbase:download-product-content"},HE={key:2,class:"moonbase:download-product-content"},zE={key:0,role:"list"},qE={class:"moonbase:download-product-download-name"},WE=["onClick"],KE=x("span",{class:"moonbase:download-product-clicker"},null,-1),GE={class:"moonbase:download-product-download-description"},JE=x("span",null," |",-1),YE={key:1,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},XE=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1)],QE={key:1,class:"moonbase:loader"},ex=ve({__name:"DownloadProduct",setup(t){const e=Fe(),{user:n,loaded:r}=It(),{getProduct:s,downloadProduct:o}=Hi(),i={[sn.Universal]:()=>Ep,[sn.Windows]:()=>xp,[sn.Linux]:()=>kp,[sn.Mac]:()=>Op},a=C(null),l=C([]),c=C(null),u=C(!0),d=ee(()=>e.getParameter("key")),f=ee(()=>{var E,k;return(k=(E=a.value)==null?void 0:E.downloads)==null?void 0:k.filter(A=>!d.value||A.key===d.value)});ze(async()=>{const E=e.getParameter("product_id"),k=e.getParameter("version");if(!E){c.value="Link is broken";return}try{a.value=await s(E,k||void 0)}catch(A){c.value=A.message}u.value=!1});function m(){e.enqueue(Ae.Download,he.DownloadProduct,e.parameters??void 0),e.show(Ae.Authentication,he.SignIn)}async function _(E){l.value.push(E.key),await o(E),l.value=l.value.filter(k=>k!==E.key)}return(E,k)=>{var A,B;return g(),O("div",AE,[u.value||!b(r)?(g(),O("div",DE,[F(Ft)])):c.value?(g(),O("div",VE,G(c.value),1)):a.value?(g(),O("div",jE,[x("div",LE,[a.value.iconUrl?(g(),O("img",{key:0,src:a.value.iconUrl,alt:""},null,8,ME)):(g(),O("div",UE)),x("div",null,[x("h2",null,[je(G(a.value.name)+" ",1),x("span",null,"v"+G(a.value.version||a.value.currentVersion),1),a.value.prerelease?(g(),O("span",ZE," (pre-release)")):ge("",!0)]),x("h3",null,G(a.value.tagline),1)])]),a.value.downloadsNeedsUser&&!b(n)?(g(),O("div",BE,[je(" Please sign in to download product "),x("span",{class:"moonbase:download-product-cta"},[x("button",{role:"button",class:"moonbase:button",onClick:m}," Sign in ")])])):a.value.downloadsNeedsOwnership&&!((A=b(n).ownedProducts)!=null&&A.includes(a.value.id))?(g(),O("div",FE," This product requires ownership to download ")):(g(),O("div",HE,[(B=a.value)!=null&&B.downloads&&a.value.downloads.length>0?(g(),O("ul",zE,[(g(!0),O(Re,null,fn(f.value,T=>(g(),O("li",{key:T.key},[x("div",null,[x("p",qE,[x("button",{onClick:J=>_(T)},[KE,je(" "+G(T.name),1)],8,WE)]),x("p",GE,[(g(),Ve(tl(i[T.platform]()),{"aria-hidden":"true"})),je(" "+G(T.platform)+" ",1),JE,je(" "+G(b(IE)(T.size)),1)])]),x("div",null,[l.value.includes(T.key)?(g(),Ve(Ft,{key:0})):(g(),O("svg",YE,XE))])]))),128))])):(g(),O("div",QE," No downloadable files found "))]))])):(g(),O("div",RE," Could not find product "))])}}}),tx={class:"moonbase:download"},nx=ve({__name:"Download",props:{open:{type:Boolean}},setup(t){const e=Fe();return(n,r)=>(g(),Ve(la,{open:n.open,onClose:r[0]||(r[0]=s=>b(e).reset())},{default:ke(()=>[x("div",tx,[F(b(oa),{as:"h3"},{default:ke(()=>[je(" Download product ")]),_:1}),n.open&&b(e).intent===b(he).DownloadProduct?(g(),Ve(ex,{key:0})):ge("",!0)])]),_:1},8,["open"]))}}),rx=ve({__name:"App",setup(t){const e=Me(Yi),n=Fe();return(r,s)=>{var o;return g(),O(Re,null,[(o=b(e))!=null&&o.toolbar.enabled?(g(),Ve(yb,{key:0})):ge("",!0),F(Lw,{open:b(n).active===b(Ae).Cart},null,8,["open"]),F(G1,{open:b(n).active===b(Ae).Authentication},null,8,["open"]),F(PE,{open:b(n).active===b(Ae).Activation},null,8,["open"]),F(nx,{open:b(n).active===b(Ae).Download},null,8,["open"]),F(aE,{open:b(n).active===b(Ae).Customer},null,8,["open"])],64)}}});function ca(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ac(t,...e){if(e.length===0)return t;const n=e.shift();if(!n)return t;if(ca(t)&&ca(n)){for(const r in t)if(n.hasOwnProperty(r)){const s=n[r];ca(s)&&ca(t[r])?t[r]=ac(t[r],s):s!==void 0&&(t[r]=s)}}return ac(t,...e)}class sx{constructor(){Kr(this,"initialized",!1);Kr(this,"pinia");Kr(this,"storefront");Kr(this,"options")}async setup(e,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=ac(pb,n),this.storefront=j_(e),this.pinia=lb(),Sy(rx).use(this.storefront).use(this.pinia).provide(Yi,this.options).mount("#moonbase"),this.initialized=!0,window&&window.location){const i=new URLSearchParams(window.location.search),a=i.get("mb_intent");if(a&&Object.values(he).includes(a)){const l=Object.fromEntries([...i.entries()].filter(([u])=>u.startsWith("mb_")).map(([u,d])=>[u.substring(3),d]));if(a===he.Checkout&&l.complete)return;this[a](l);for(const u of Object.keys(l))i.delete(`mb_${u}`);const c=i.toString();window.history.replaceState(null,"",window.location.href.split("?")[0]+(c?`?${c}`:""))}}const s=Fe(this.pinia),o=It(this.storefront);this.storefront.onCheckoutClosed(i=>{i===he.ViewProducts&&(o.user?s.show(Ae.Customer,he.ViewProducts):s.show(Ae.Cart,he.ViewCart))})}sign_in(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.SignIn,e)}sign_up(e){var r;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!((r=this.options)!=null&&r.auth.enable.signUp))throw new Error("Sign ups are not enabled");Fe(this.pinia).show(Ae.Authentication,he.SignUp,e)}forgot_password(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.ForgotPassword,e)}reset_password(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.ResetPassword,e)}confirm_account(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.ConfirmAccount,e)}confirm_email(){}confirm_email_change(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const n=Fe(this.pinia);It(this.storefront).user.value?n.show(Ae.Authentication,he.ConfirmEmailChange,e):(n.show(Ae.Authentication,he.SignIn),n.enqueue(Ae.Authentication,he.ConfirmEmailChange,e))}view_account(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const e=Fe(this.pinia);It(this.storefront).user.value?e.show(Ae.Customer,he.ViewAccount):(e.show(Ae.Authentication,he.SignIn),e.enqueue(Ae.Customer,he.ViewAccount))}view_products(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Cart,he.ViewCart)}redeem_voucher(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Cart,he.ViewCart,e)}download_product(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Download,he.DownloadProduct,e)}activate_product(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(e!=null&&e.token))throw new Error("You need to provide a token when activating a product");Fe(this.pinia).show(Ae.Activation,he.ActivateProduct,e)}view_cart(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Cart,he.ViewCart)}async add_to_cart(e){var s,o,i,a;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(e!=null&&e.product_id)&&!(e!=null&&e.bundle_id))throw new Error("You need to provide a product or bundle ID when adding to cart");const n=Vl(this.storefront);if(e!=null&&e.product_id){const l=gf(e.product_id,this.storefront);if(l.value)n.addToCart(l.value,(s=l.value.variations)==null?void 0:s.find(c=>c.id===e.variation_id));else{await this.storefront.loadedStorefrontPromise;const c=gf(e.product_id,this.storefront);if(c.value)n.addToCart(c.value,(o=c.value.variations)==null?void 0:o.find(u=>u.id===e.variation_id));else throw new Error(`Product '${e.product_id}' not found`)}}if(e!=null&&e.bundle_id){const l=vf(e.bundle_id,this.storefront);if(l.value)n.addToCart(l.value,(i=l.value.variations)==null?void 0:i.find(c=>c.id===e.variation_id));else{await this.storefront.loadedStorefrontPromise;const c=vf(e.bundle_id,this.storefront);if(c.value)n.addToCart(c.value,(a=c.value.variations)==null?void 0:a.find(u=>u.id===e.variation_id));else throw new Error(`Bundle '${e.bundle_id}' not found`)}}Fe(this.pinia).show(Ae.Cart,he.AddToCart)}checkout(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(e!=null&&e.complete)return;Vl(this.storefront).checkout(`${window.location.pathname}?mb_intent=view_products`)}}const Np=new sx;globalThis&&(globalThis.Moonbase?console.warn("Multiple instances of Moonbase detected, only one will be initialized"):globalThis.Moonbase=Np),Dt.MoonbaseIntent=he,Dt.default=Np,Object.defineProperties(Dt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
26
|
+
`));const f=Ff(u.props??{},i,l),m=Wt(u,f,!0);for(const _ in f)_.startsWith("on")&&(m.props||(m.props={}),m.props[_]=f[_]);return m}return Array.isArray(a)&&a.length===1?a[0]:a}return qe(o,Object.assign({},i,l),{default:()=>a})}function Bf(t){return t.flatMap(e=>e.type===Re?Bf(e.children):[e])}function Ff(...t){if(t.length===0)return{};if(t.length===1)return t[0];const e={},n={};for(const r of t)for(const s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]??(n[s]=[]),n[s].push(r[s])):e[s]=r[s];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(const r in n)Object.assign(e,{[r](s,...o){const i=n[r];for(const a of i){if(s instanceof Event&&s.defaultPrevented)return;a(s,...o)}}});return e}function zl(t,e=[]){const n=Object.assign({},t);for(const r of e)r in n&&delete n[r];return n}function s1(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}var hr=(t=>(t[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t))(hr||{});let mr=ve({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(t,{slots:e,attrs:n}){return()=>{let{features:r,...s}=t,o={"aria-hidden":(r&2)===2?!0:s["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 ct({ourProps:o,theirProps:s,slot:{},attrs:n,slots:e,name:"Hidden"})}}});function o1(t){function e(){document.readyState!=="loading"&&(t(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function Y(t){if(t==null||t.value==null)return null;let e=t.value.$el??t.value;return e instanceof Node?e:null}function yn(t){if(Oo.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let e=Y(t);if(e)return e.ownerDocument}return document}const Qi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Je=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(Je||{}),Ln=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(Ln||{});function ea(t=document.body){return t==null?[]:Array.from(t.querySelectorAll(Qi)).sort((e,n)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ql=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(ql||{});function Hf(t,e=0){var n;return t===((n=yn(t))==null?void 0:n.body)?!1:it(e,{0(){return t.matches(Qi)},1(){let r=t;for(;r!==null;){if(r.matches(Qi))return!0;r=r.parentElement}return!1}})}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.moonbaseFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.moonbaseFocusVisible:t.detail===0&&(document.documentElement.dataset.moonbaseFocusVisible="")},!0));function Fr(t){t==null||t.focus({preventScroll:!0})}const i1=["textarea","input"].join(",");function a1(t){var e;return((e=t==null?void 0:t.matches)==null?void 0:e.call(t,i1))??!1}function hs(t,e=n=>n){return t.slice().sort((n,r)=>{const s=e(n),o=e(r);if(s===null||o===null)return 0;const i=s.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function mt(t,e,{sorted:n=!0,relativeTo:r=null,skipElements:s=[]}={}){const o=(Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t==null?void 0:t.ownerDocument)??document;let i=Array.isArray(t)?n?hs(t):t:ea(t);s.length>0&&i.length>1&&(i=i.filter(m=>!s.includes(m))),r=r??o.activeElement;const a=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,i.indexOf(r))-1;if(e&4)return Math.max(0,i.indexOf(r))+1;if(e&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=e&32?{preventScroll:!0}:{};let u=0;const d=i.length;let f;do{if(u>=d||u+d<=0)return 0;let m=l+u;if(e&16)m=(m+d)%d;else{if(m<0)return 3;if(m>=d)return 1}f=i[m],f==null||f.focus(c),u+=a}while(f!==o.activeElement);return e&6&&a1(f)&&f.select(),2}let Hr=[];o1(()=>{function t(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||Hr[0]===e.target)return;let n=e.target;n=n.closest(Qi),Hr.unshift(n??e.target),Hr=Hr.filter(r=>r!=null&&r.isConnected),Hr.splice(10)}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});function ta(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function zf(t){if(!t)return new Set;if(typeof t=="function")return new Set(t());const e=new Set;for(const n of t.value){const r=Y(n);r instanceof HTMLElement&&e.add(r)}return e}var qf=(t=>(t[t.None=1]="None",t[t.InitialFocus=2]="InitialFocus",t[t.TabLock=4]="TabLock",t[t.FocusLock=8]="FocusLock",t[t.RestoreFocus=16]="RestoreFocus",t[t.All=30]="All",t))(qf||{});const No=Object.assign(ve({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:C(new Set)}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){const s=C(null);r({el:s,$el:s});const o=ee(()=>yn(s)),i=C(!1);ze(()=>i.value=!0),Ot(()=>i.value=!1),c1({ownerDocument:o},ee(()=>i.value&&!!(t.features&16)));const a=u1({ownerDocument:o,container:s,initialFocus:ee(()=>t.initialFocus)},ee(()=>i.value&&!!(t.features&2)));d1({ownerDocument:o,container:s,containers:t.containers,previousActiveElement:a},ee(()=>i.value&&!!(t.features&8)));const l=Hl();function c(m){const _=Y(s);if(!_)return;(k=>k())(()=>{it(l.value,{[Lt.Forwards]:()=>{mt(_,Je.First,{skipElements:[m.relatedTarget]})},[Lt.Backwards]:()=>{mt(_,Je.Last,{skipElements:[m.relatedTarget]})}})})}const u=C(!1);function d(m){m.key==="Tab"&&(u.value=!0,requestAnimationFrame(()=>{u.value=!1}))}function f(m){if(!i.value)return;const _=zf(t.containers);Y(s)instanceof HTMLElement&&_.add(Y(s));const E=m.relatedTarget;E instanceof HTMLElement&&E.dataset.moonbaseFocusGuard!=="true"&&(Wf(_,E)||(u.value?mt(Y(s),it(l.value,{[Lt.Forwards]:()=>Je.Next,[Lt.Backwards]:()=>Je.Previous})|Je.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&Fr(m.target)))}return()=>{const m={},_={ref:s,onKeydown:d,onFocusout:f},{features:E,initialFocus:k,containers:A,...B}=t;return qe(Re,[!!(E&4)&&qe(mr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:c,features:hr.Focusable}),ct({ourProps:_,theirProps:{...e,...B},slot:m,attrs:e,slots:n,name:"FocusTrap"}),!!(E&4)&&qe(mr,{as:"button",type:"button","data-moonbase-focus-guard":!0,onFocus:c,features:hr.Focusable})])}}}),{features:qf});function l1(t){const e=C(Hr.slice());return lt([t],([n],[r])=>{r===!0&&n===!1?ta(()=>{e.value.splice(0)}):r===!1&&n===!0&&(e.value=Hr.slice())},{flush:"post"}),()=>e.value.find(n=>n!=null&&n.isConnected)??null}function c1({ownerDocument:t},e){const n=l1(e);ze(()=>{bt(()=>{var r,s;e.value||((r=t.value)==null?void 0:r.activeElement)===((s=t.value)==null?void 0:s.body)&&Fr(n())},{flush:"post"})}),Ot(()=>{e.value&&Fr(n())})}function u1({ownerDocument:t,container:e,initialFocus:n},r){const s=C(null),o=C(!1);return ze(()=>o.value=!0),Ot(()=>o.value=!1),ze(()=>{lt([e,n,r],(i,a)=>{if(i.every((c,u)=>(a==null?void 0:a[u])===c)||!r.value)return;const l=Y(e);l&&ta(()=>{var d,f;if(!o.value)return;const c=Y(n),u=(d=t.value)==null?void 0:d.activeElement;if(c){if(c===u){s.value=u;return}}else if(l.contains(u)){s.value=u;return}c?Fr(c):mt(l,Je.First|Je.NoScroll)===Ln.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.value=(f=t.value)==null?void 0:f.activeElement})},{immediate:!0,flush:"post"})}),s}function d1({ownerDocument:t,container:e,containers:n,previousActiveElement:r},s){var o;Fl((o=t.value)==null?void 0:o.defaultView,"focus",i=>{if(!s.value)return;const a=zf(n);Y(e)instanceof HTMLElement&&a.add(Y(e));const l=r.value;if(!l)return;const c=i.target;c&&c instanceof HTMLElement?Wf(a,c)?(r.value=c,Fr(c)):(i.preventDefault(),i.stopPropagation(),Fr(l)):Fr(r.value)},!0)}function Wf(t,e){for(const n of t)if(n.contains(e))return!0;return!1}function f1(t){let e=Qm(t.getSnapshot());return Ot(t.subscribe(()=>{e.value=t.getSnapshot()})),e}function So(){const t=[],e={addEventListener(n,r,s,o){return n.addEventListener(r,s,o),e.add(()=>n.removeEventListener(r,s,o))},requestAnimationFrame(...n){const r=requestAnimationFrame(...n);e.add(()=>cancelAnimationFrame(r))},nextFrame(...n){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...n)})},setTimeout(...n){const r=setTimeout(...n);e.add(()=>clearTimeout(r))},microTask(...n){const r={current:!0};return ta(()=>{r.current&&n[0]()}),e.add(()=>{r.current=!1})},style(n,r,s){const o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:s}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){const r=So();return n(r),this.add(()=>r.dispose())},add(n){return t.push(n),()=>{const r=t.indexOf(n);if(r>=0)for(const s of t.splice(r,1))s()}},dispose(){for(const n of t.splice(0))n()}};return e}function p1(t,e){let n=t(),r=new Set;return{getSnapshot(){return n},subscribe(s){return r.add(s),()=>r.delete(s)},dispatch(s,...o){let i=e[s].call(n,...o);i&&(n=i,r.forEach(a=>a()))}}}function h1(){let t;return{before({doc:e}){const n=e.documentElement,r=e.defaultView??window;t=Math.max(0,r.innerWidth-n.clientWidth)},after({doc:e,d:n}){const r=e.documentElement,s=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,t-s);n.style(r,"paddingRight",`${o}px`)}}}function Kf(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function m1(){return/Android/gi.test(window.navigator.userAgent)}function v1(){return Kf()||m1()}function g1(){return Kf()?{before({doc:t,d:e,meta:n}){function r(s){return n.containers.flatMap(o=>o()).some(o=>o.contains(s))}e.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){const i=So();i.style(t.documentElement,"scrollBehavior","auto"),e.add(()=>e.microTask(()=>i.dispose()))}const s=window.scrollY??window.pageYOffset;let o=null;e.addEventListener(t,"click",i=>{if(i.target instanceof HTMLElement)try{const a=i.target.closest("a");if(!a)return;const{hash:l}=new URL(a.href),c=t.querySelector(l);c&&!r(c)&&(o=c)}catch{}},!0),e.addEventListener(t,"touchstart",i=>{if(i.target instanceof HTMLElement)if(r(i.target)){let a=i.target;for(;a.parentElement&&r(a.parentElement);)a=a.parentElement;e.style(a,"overscrollBehavior","contain")}else e.style(i.target,"touchAction","none")}),e.addEventListener(t,"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}),e.add(()=>{const i=window.scrollY??window.pageYOffset;s!==i&&window.scrollTo(0,s),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function y1(){return{before({doc:t,d:e}){e.style(t.documentElement,"overflow","hidden")}}}function _1(t){const e={};for(const n of t)Object.assign(e,n(e));return e}const zr=p1(()=>new Map,{PUSH(t,e){const n=this.get(t)??{doc:t,count:0,d:So(),meta:new Set};return n.count++,n.meta.add(e),this.set(t,n),this},POP(t,e){const n=this.get(t);return n&&(n.count--,n.meta.delete(e)),this},SCROLL_PREVENT({doc:t,d:e,meta:n}){const r={doc:t,d:e,meta:_1(n)},s=[g1(),h1(),y1()];s.forEach(({before:o})=>o==null?void 0:o(r)),s.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:t}){t.dispose()},TEARDOWN({doc:t}){this.delete(t)}});zr.subscribe(()=>{const t=zr.getSnapshot(),e=new Map;for(const[n]of t)e.set(n,n.documentElement.style.overflow);for(const n of t.values()){const r=e.get(n.doc)==="hidden",s=n.count!==0;(s&&!r||!s&&r)&&zr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&zr.dispatch("TEARDOWN",n)}});function b1(t,e,n){const r=f1(zr),s=ee(()=>{const o=t.value?r.value.get(t.value):void 0;return o?o.count>0:!1});return lt([t,e],([o,i],[a],l)=>{if(!o||!i)return;zr.dispatch("PUSH",o,n);let c=!1;l(()=>{c||(zr.dispatch("POP",a??o,n),c=!0)})},{immediate:!0}),s}let w1=0;function E1(){return++w1}function Ht(){return E1()}const Wl=new Map,To=new Map;function Gf(t,e=C(!0)){bt(n=>{if(!e.value)return;const r=Y(t);if(!r)return;n(()=>{if(!r)return;const o=To.get(r)??1;if(o===1?To.delete(r):To.set(r,o-1),o!==1)return;const i=Wl.get(r);i&&(i["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",i["aria-hidden"]),r.inert=i.inert,Wl.delete(r))});const s=To.get(r)??0;To.set(r,s+1),s===0&&(Wl.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0)})}function Co(t,e,n,r){Oo.isServer||bt(s=>{t.value&&(document.addEventListener(e,n,r),s(()=>document.removeEventListener(e,n,r)))})}const Jf=30;function Yf(t,e,n=ee(()=>!0)){function r(i,a){if(i.defaultPrevented)return;const l=a(i);if(l===null||!l.getRootNode().contains(l))return;const c=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(const u of c){if(u===null)continue;const d=u instanceof HTMLElement?u:Y(u);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!Hf(l,ql.Loose)&&l.tabIndex!==-1&&i.preventDefault(),e(i,l)}const s=C(null);Co(n,"pointerdown",i=>{var a,l;s.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Co(n,"mousedown",i=>{var a,l;s.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target},!0),Co(n,"click",i=>{v1()||s.value&&(r(i,()=>s.value),s.value=null)},!0);const o={x:0,y:0};Co(n,"touchstart",i=>{o.x=i.touches[0].clientX,o.y=i.touches[0].clientY},!0),Co(n,"touchend",i=>{const a={x:i.changedTouches[0].clientX,y:i.changedTouches[0].clientY};if(!(Math.abs(a.x-o.x)>=Jf||Math.abs(a.y-o.y)>=Jf))return r(i,()=>i.target instanceof HTMLElement?i.target:null)},!0),Zf(n,"blur",i=>r(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Xf({defaultContainers:t=[],portals:e,mainTreeNodeRef:n}={}){const r=C(null),s=yn(r);function o(){var a,l;const i=[];for(const c of t)c!==null&&(c instanceof HTMLElement?i.push(c):"value"in c&&c.value instanceof HTMLElement&&i.push(c.value));if(e!=null&&e.value)for(const c of e.value)i.push(c);for(const c of(s==null?void 0:s.querySelectorAll("html > *, body > *"))??[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="moonbase"&&(c.contains(Y(r))||c.contains((l=(a=Y(r))==null?void 0:a.getRootNode())==null?void 0:l.host)||i.some(u=>c.contains(u))||i.push(c));return i}return{resolveContainers:o,contains(i){return o().some(a=>a.contains(i))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:qe(mr,{features:hr.Hidden,ref:r})}}}let Qf=Symbol("Context");var vt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(vt||{});function x1(){return na()!==null}function na(){return Me(Qf,null)}function ep(t){_t(Qf,t)}const tp=Symbol("ForcePortalRootContext");function k1(){return Me(tp,!1)}const np=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(t,{slots:e,attrs:n}){return _t(tp,t.force),()=>{const{force:r,...s}=t;return ct({theirProps:s,ourProps:{},slot:{},slots:e,attrs:n,name:"ForcePortalRoot"})}}});let rp=Symbol("StackContext");var Kl=(t=>(t[t.Add=0]="Add",t[t.Remove=1]="Remove",t))(Kl||{});function O1(){return Me(rp,()=>{})}function N1({type:t,enabled:e,element:n,onUpdate:r}){let s=O1();function o(...i){r==null||r(...i),s(...i)}ze(()=>{lt(e,(i,a)=>{i?o(0,t,n):a===!0&&o(1,t,n)},{immediate:!0,flush:"sync"})}),Ot(()=>{e.value&&o(1,t,n)}),_t(rp,o)}var ut=(t=>(t.Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t))(ut||{});let S1=Symbol("DescriptionContext");function T1({slot:t=C({}),name:e="Description",props:n={}}={}){let r=C([]);function s(o){return r.value.push(o),()=>{let i=r.value.indexOf(o);i!==-1&&r.value.splice(i,1)}}return _t(S1,{register:s,slot:t,name:e,props:n}),ee(()=>r.value.length>0?r.value.join(" "):void 0)}function sp(t){const e=yn(t);if(!e){if(t===null)return null;throw new Error(`[Moonbase]: Cannot find ownerDocument for contextElement: ${t}`)}const n=e.getElementById("moonbase");if(n)return n;throw new Error("[Moonbase]: Cannot find existing root element")}const C1=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:n}){const r=C(null);ee(()=>yn(r));const s=k1(),o=Me(ip,null),i=C(s===!0||o==null?sp(r.value):o.resolveTarget()),a=C(!1);ze(()=>{a.value=!0}),bt(()=>{s||o!=null&&(i.value=o.resolveTarget())});const l=Me(Gl,null);let c=!1;const u=Ni();return lt(r,()=>{if(c||!l)return;const d=Y(r);d&&(Ot(l.register(d),u),c=!0)}),()=>{if(!a.value||i.value===null)return null;const d={ref:r,"data-moonbase-portal":""};return qe(gg,{to:i.value},ct({ourProps:d,theirProps:t,slot:{},attrs:n,slots:e,name:"Portal"}))}}});let Gl=Symbol("PortalParentContext");function op(){const t=Me(Gl,null),e=C([]);function n(o){return e.value.push(o),t&&t.register(o),()=>r(o)}function r(o){const i=e.value.indexOf(o);i!==-1&&e.value.splice(i,1),t&&t.unregister(o)}const s={register:n,unregister:r,portals:e};return[e,ve({name:"PortalWrapper",setup(o,{slots:i}){return _t(Gl,s),()=>{var a;return(a=i.default)==null?void 0:a.call(i)}}})]}let ip=Symbol("PortalGroupContext");const $1=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(t,{attrs:e,slots:n}){const r=Bs({resolveTarget(){return t.target}});return _t(ip,r),()=>{const{target:s,...o}=t;return ct({theirProps:o,ourProps:{},slot:{},attrs:e,slots:n,name:"PortalGroup"})}}}),Jl=Symbol("DialogContext");function ra(t){const e=Me(Jl,null);if(e===null){const n=new Error(`<${t} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ra),n}return e}const sa="DC8F892D-2EBD-447C-A4C8-A03058436FF4",ap=ve({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:sa},initialFocus:{type:Object,default:null},id:{type:String,default:()=>`moonbase-dialog-${Ht()}`},role:{type:String,default:"dialog"}},emits:{close:t=>!0},setup(t,{emit:e,attrs:n,slots:r,expose:s}){var be;const o=C(!1);ze(()=>{o.value=!0});let i=!1;const a=ee(()=>t.role==="dialog"||t.role==="alertdialog"?t.role:(i||(i=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),l=C(0),c=na(),u=ee(()=>t.open===sa&&c!==null?(c.value&vt.Open)===vt.Open:t.open),d=C(null),f=ee(()=>yn(d));if(s({el:d,$el:d}),!(t.open!==sa||c!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof u.value!="boolean")throw new TypeError(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${u.value===sa?void 0:t.open}`);const _=ee(()=>o.value&&u.value?0:1),E=ee(()=>_.value===0),k=C(null),A={titleId:k,panelRef:C(null),dialogState:_,setTitleId(ae){k.value!==ae&&(k.value=ae)},close(){e("close",!1)}},B=ee(()=>l.value>1),T=Me(Jl,null)!==null,[J,P]=op(),{resolveContainers:z,mainTreeNodeRef:N,MainTreeNode:Oe}=Xf({portals:J,defaultContainers:[ee(()=>A.panelRef.value??d.value)]}),K=ee(()=>B.value?"parent":"leaf"),R=ee(()=>c!==null?(c.value&vt.Closing)===vt.Closing:!1),V=ee(()=>T||R.value?!1:E.value),I=ee(()=>{var ae;return Array.from(((ae=f.value)==null?void 0:ae.querySelectorAll("body > *"))??[]).find(We=>We.id==="moonbase"?!1:We.contains(Y(N))&&We instanceof HTMLElement)??null});Gf(I,V);const ce=ee(()=>B.value?!0:E.value),Ze=ee(()=>{var ae;return Array.from(((ae=f.value)==null?void 0:ae.querySelectorAll("[data-moonbase-portal]"))??[]).find(We=>We.contains(Y(N))&&We instanceof HTMLElement)??null});Gf(Ze,ce),N1({type:"Dialog",enabled:ee(()=>_.value===0),element:d,onUpdate:(ae,We)=>{if(We==="Dialog")return it(ae,{[Kl.Add]:()=>l.value+=1,[Kl.Remove]:()=>l.value-=1})}});const w=T1({name:"DialogDescription",slot:ee(()=>({open:u.value}))});_t(Jl,A);const $=ee(()=>!(!E.value||B.value));Yf(z,(ae,We)=>{ae.preventDefault(),A.close(),qs(()=>We==null?void 0:We.focus())},$);const Q=ee(()=>!(B.value||_.value!==0));Fl((be=f.value)==null?void 0:be.defaultView,"keydown",ae=>{Q.value&&(ae.defaultPrevented||ae.key===ut.Escape&&(ae.preventDefault(),ae.stopPropagation(),A.close()))});const oe=ee(()=>!(R.value||_.value!==0||T));return b1(f,oe,ae=>({containers:[...ae.containers??[],z]})),bt(ae=>{if(_.value!==0)return;const We=Y(d);if(!We)return;const xt=new ResizeObserver(Ke=>{for(const At of Ke){const vr=At.target.getBoundingClientRect();vr.x===0&&vr.y===0&&vr.width===0&&vr.height===0&&A.close()}});xt.observe(We),ae(()=>xt.disconnect())}),()=>{const{id:ae,open:We,initialFocus:xt,...Ke}=t,At={...n,ref:d,id:ae,role:a.value,"aria-modal":_.value===0?!0:void 0,"aria-labelledby":k.value,"aria-describedby":w.value},vr={open:_.value===0};return qe(np,{force:!0},()=>[qe(C1,()=>qe($1,{target:d.value},()=>qe(np,{force:!1},()=>qe(No,{initialFocus:xt,containers:z,features:E.value?it(K.value,{parent:No.features.RestoreFocus,leaf:No.features.All&~No.features.FocusLock}):No.features.None},()=>qe(P,{},()=>ct({ourProps:At,theirProps:{...Ke,...n},slot:vr,attrs:n,slots:r,visible:_.value===0,features:fr.RenderStrategy|fr.Static,name:"Dialog"})))))),qe(Oe)])}}}),lp=ve({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-overlay-${Ht()}`}},setup(t,{attrs:e,slots:n}){const r=ra("DialogOverlay");function s(o){o.target===o.currentTarget&&(o.preventDefault(),o.stopPropagation(),r.close())}return()=>{const{id:o,...i}=t;return ct({ourProps:{id:o,"aria-hidden":!0,onClick:s},theirProps:i,slot:{open:r.dialogState.value===0},attrs:e,slots:n,name:"DialogOverlay"})}}}),cp=ve({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:()=>`moonbase-dialog-panel-${Ht()}`}},setup(t,{attrs:e,slots:n,expose:r}){const s=ra("DialogPanel");r({el:s.panelRef,$el:s.panelRef});function o(i){i.stopPropagation()}return()=>{const{id:i,...a}=t,l={id:i,ref:s.panelRef,onClick:o};return ct({ourProps:l,theirProps:a,slot:{open:s.dialogState.value===0},attrs:e,slots:n,name:"DialogPanel"})}}}),oa=ve({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:()=>`moonbase-dialog-title-${Ht()}`}},setup(t,{attrs:e,slots:n}){const r=ra("DialogTitle");return ze(()=>{r.setTitleId(t.id),Ot(()=>r.setTitleId(null))}),()=>{const{id:s,...o}=t;return ct({ourProps:{id:s},theirProps:o,slot:{open:r.dialogState.value===0},attrs:e,slots:n,name:"DialogTitle"})}}});function up(t,e){if(t)return t;let n=e??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function dp(t,e){let n=C(up(t.value.type,t.value.as));return ze(()=>{n.value=up(t.value.type,t.value.as)}),bt(()=>{var r;n.value||Y(e)&&Y(e)instanceof HTMLButtonElement&&!((r=Y(e))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}const fp=Symbol("PopoverContext");function Yl(t){const e=Me(fp,null);if(e===null){const n=new Error(`<${t} /> is missing a parent <${Xl.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Yl),n}return e}const P1=Symbol("PopoverGroupContext");function pp(){return Me(P1,null)}const hp=Symbol("PopoverPanelContext");function I1(){return Me(hp,null)}let Xl=ve({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:n,expose:r}){var J;const s=C(null);r({el:s,$el:s});const o=C(1),i=C(null),a=C(null),l=C(null),c=C(null),u=ee(()=>yn(s)),d=ee(()=>{var V,I;if(!Y(i)||!Y(c))return!1;for(const ce of document.querySelectorAll("body > *"))if(Number(ce==null?void 0:ce.contains(Y(i)))^Number(ce==null?void 0:ce.contains(Y(c))))return!0;const P=ea(),z=P.indexOf(Y(i)),N=(z+P.length-1)%P.length,Oe=(z+1)%P.length,K=P[N],R=P[Oe];return!((V=Y(c))!=null&&V.contains(K))&&!((I=Y(c))!=null&&I.contains(R))}),f={popoverState:o,buttonId:C(null),panelId:C(null),panel:c,button:i,isPortalled:d,beforePanelSentinel:a,afterPanelSentinel:l,togglePopover(){o.value=it(o.value,{0:1,1:0})},closePopover(){o.value!==1&&(o.value=1)},close(P){f.closePopover();const z=P?P instanceof HTMLElement?P:P.value instanceof HTMLElement?Y(P):Y(f.button):Y(f.button);z==null||z.focus()}};_t(fp,f),ep(ee(()=>it(o.value,{0:vt.Open,1:vt.Closed})));const m={buttonId:f.buttonId,panelId:f.panelId,close(){f.closePopover()}},_=pp(),E=_==null?void 0:_.registerPopover,[k,A]=op(),B=Xf({mainTreeNodeRef:_==null?void 0:_.mainTreeNodeRef,portals:k,defaultContainers:[i,c]});function T(){var P,z,N;return(_==null?void 0:_.isFocusWithinPopoverGroup())??(((P=u.value)==null?void 0:P.activeElement)&&(((z=Y(i))==null?void 0:z.contains(u.value.activeElement))||((N=Y(c))==null?void 0:N.contains(u.value.activeElement))))}return bt(()=>E==null?void 0:E(m)),Fl((J=u.value)==null?void 0:J.defaultView,"focus",P=>{var z,N;P.target!==window&&P.target instanceof HTMLElement&&o.value===0&&(T()||i&&c&&(B.contains(P.target)||(z=Y(f.beforePanelSentinel))!=null&&z.contains(P.target)||(N=Y(f.afterPanelSentinel))!=null&&N.contains(P.target)||f.closePopover()))},!0),Yf(B.resolveContainers,(P,z)=>{var N;f.closePopover(),Hf(z,ql.Loose)||(P.preventDefault(),(N=Y(i))==null||N.focus())},ee(()=>o.value===0)),()=>{const P={open:o.value===0,close:f.close};return qe(Re,[qe(A,{},()=>ct({theirProps:{...t,...n},ourProps:{ref:s},slot:P,slots:e,attrs:n,name:"Popover"})),qe(B.MainTreeNode)])}}});const mp=ve({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-popover-button-${Ht()}`}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){const s=Yl("PopoverButton"),o=ee(()=>yn(s.button));r({el:s.button,$el:s.button}),ze(()=>{s.buttonId.value=t.id}),Ot(()=>{s.buttonId.value=null});const i=pp(),a=i==null?void 0:i.closeOthers,l=I1(),c=ee(()=>l===null?!1:l.value===s.panelId.value),u=C(null),d=`moonbase-focus-sentinel-${Ht()}`;c.value||bt(()=>{s.button.value=Y(u)});const f=dp(ee(()=>({as:t.as,type:e.type})),u);function m(T){var J,P,z,N,Oe;if(c.value){if(s.popoverState.value===1)return;switch(T.key){case ut.Space:case ut.Enter:T.preventDefault(),(P=(J=T.target).click)==null||P.call(J),s.closePopover(),(z=Y(s.button))==null||z.focus();break}}else switch(T.key){case ut.Space:case ut.Enter:T.preventDefault(),T.stopPropagation(),s.popoverState.value===1&&(a==null||a(s.buttonId.value)),s.togglePopover();break;case ut.Escape:if(s.popoverState.value!==0)return a==null?void 0:a(s.buttonId.value);if(!Y(s.button)||(N=o.value)!=null&&N.activeElement&&!((Oe=Y(s.button))!=null&&Oe.contains(o.value.activeElement)))return;T.preventDefault(),T.stopPropagation(),s.closePopover();break}}function _(T){c.value||T.key===ut.Space&&T.preventDefault()}function E(T){var J,P;t.disabled||(c.value?(s.closePopover(),(J=Y(s.button))==null||J.focus()):(T.preventDefault(),T.stopPropagation(),s.popoverState.value===1&&(a==null||a(s.buttonId.value)),s.togglePopover(),(P=Y(s.button))==null||P.focus()))}function k(T){T.preventDefault(),T.stopPropagation()}const A=Hl();function B(){const T=Y(s.panel);if(!T)return;function J(){it(A.value,{[Lt.Forwards]:()=>mt(T,Je.First),[Lt.Backwards]:()=>mt(T,Je.Last)})===Ln.Error&&mt(ea().filter(z=>z.dataset.moonbaseFocusGuard!=="true"),it(A.value,{[Lt.Forwards]:Je.Next,[Lt.Backwards]:Je.Previous}),{relativeTo:Y(s.button)})}J()}return()=>{const T=s.popoverState.value===0,J={open:T},{id:P,...z}=t,N=c.value?{ref:u,type:f.value,onKeydown:m,onClick:E}:{ref:u,id:P,type:f.value,"aria-expanded":s.popoverState.value===0,"aria-controls":Y(s.panel)?s.panelId.value:void 0,disabled:t.disabled?!0:void 0,onKeydown:m,onKeyup:_,onClick:E,onMousedown:k};return qe(Re,[ct({ourProps:N,theirProps:{...e,...z},slot:J,attrs:e,slots:n,name:"PopoverButton"}),T&&!c.value&&s.isPortalled.value&&qe(mr,{id:d,features:hr.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:B})])}}}),vp=ve({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-${Ht()}`}},inheritAttrs:!1,setup(t,{attrs:e,slots:n,expose:r}){const{focus:s}=t,o=Yl("PopoverPanel"),i=ee(()=>yn(o.panel)),a=`moonbase-focus-sentinel-before-${Ht()}`,l=`moonbase-focus-sentinel-after-${Ht()}`;r({el:o.panel,$el:o.panel}),ze(()=>{o.panelId.value=t.id}),Ot(()=>{o.panelId.value=null}),_t(hp,o.panelId),bt(()=>{var A,B;if(!s||o.popoverState.value!==0||!o.panel)return;const k=(A=i.value)==null?void 0:A.activeElement;(B=Y(o.panel))!=null&&B.contains(k)||mt(Y(o.panel),Je.First)});const c=na(),u=ee(()=>c!==null?(c.value&vt.Open)===vt.Open:o.popoverState.value===0);function d(k){var A,B;switch(k.key){case ut.Escape:if(o.popoverState.value!==0||!Y(o.panel)||i.value&&!((A=Y(o.panel))!=null&&A.contains(i.value.activeElement)))return;k.preventDefault(),k.stopPropagation(),o.closePopover(),(B=Y(o.button))==null||B.focus();break}}function f(k){var B,T,J,P,z;const A=k.relatedTarget;A&&Y(o.panel)&&((B=Y(o.panel))!=null&&B.contains(A)||(o.closePopover(),((J=(T=Y(o.beforePanelSentinel))==null?void 0:T.contains)!=null&&J.call(T,A)||(z=(P=Y(o.afterPanelSentinel))==null?void 0:P.contains)!=null&&z.call(P,A))&&A.focus({preventScroll:!0})))}const m=Hl();function _(){const k=Y(o.panel);if(!k)return;function A(){it(m.value,{[Lt.Forwards]:()=>{var T;mt(k,Je.First)===Ln.Error&&((T=Y(o.afterPanelSentinel))==null||T.focus())},[Lt.Backwards]:()=>{var B;(B=Y(o.button))==null||B.focus({preventScroll:!0})}})}A()}function E(){const k=Y(o.panel);if(!k)return;function A(){it(m.value,{[Lt.Forwards]:()=>{const B=Y(o.button),T=Y(o.panel);if(!B)return;const J=ea(),P=J.indexOf(B),z=J.slice(0,P+1),Oe=[...J.slice(P+1),...z];for(const K of Oe.slice())if(K.dataset.moonbaseFocusGuard==="true"||T!=null&&T.contains(K)){const R=Oe.indexOf(K);R!==-1&&Oe.splice(R,1)}mt(Oe,Je.First,{sorted:!1})},[Lt.Backwards]:()=>{var T;mt(k,Je.Previous)===Ln.Error&&((T=Y(o.button))==null||T.focus())}})}A()}return()=>{const k={open:o.popoverState.value===0,close:o.close},{id:A,focus:B,...T}=t,J={ref:o.panel,id:A,onKeydown:d,onFocusout:s&&o.popoverState.value===0?f:void 0,tabIndex:-1};return ct({ourProps:J,theirProps:{...e,...T},attrs:e,slot:k,slots:{...n,default:(...P)=>{var z;return[qe(Re,[u.value&&o.isPortalled.value&&qe(mr,{id:a,ref:o.beforePanelSentinel,features:hr.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:_}),(z=n.default)==null?void 0:z.call(n,...P),u.value&&o.isPortalled.value&&qe(mr,{id:l,ref:o.afterPanelSentinel,features:hr.Focusable,"data-moonbase-focus-guard":!0,as:"button",type:"button",onFocus:E})])]}},features:fr.RenderStrategy|fr.Static,visible:u.value,name:"PopoverPanel"})}}});let A1=ve({props:{onFocus:{type:Function,required:!0}},setup(t){let e=C(!0);return()=>e.value?qe(mr,{as:"button",type:"button",features:hr.Focusable,onFocus(n){n.preventDefault();let r,s=50;function o(){var i;if(s--<=0){r&&cancelAnimationFrame(r);return}if((i=t.onFocus)!=null&&i.call(t)){e.value=!1,cancelAnimationFrame(r);return}r=requestAnimationFrame(o)}r=requestAnimationFrame(o)}}):null}});const gp=Symbol("TabsContext");function $o(t){const e=Me(gp,null);if(e===null){const n=new Error(`<${t} /> is missing a parent <TabGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,$o),n}return e}const Ql=Symbol("TabsSSRContext"),D1=ve({name:"TabGroup",emits:{change:t=>!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(t,{slots:e,attrs:n,emit:r}){const s=C(t.selectedIndex??t.defaultIndex),o=C([]),i=C([]),a=ee(()=>t.selectedIndex!==null),l=ee(()=>a.value?t.selectedIndex:s.value);function c(_){const E=hs(u.tabs.value,Y),k=hs(u.panels.value,Y),A=E.filter(B=>{var T;return!((T=Y(B))!=null&&T.hasAttribute("disabled"))});if(_<0||_>E.length-1){const B=it(s.value===null?0:Math.sign(_-s.value),{[-1]:()=>1,0:()=>it(Math.sign(_),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),T=it(B,{0:()=>E.indexOf(A[0]),1:()=>E.indexOf(A[A.length-1])});T!==-1&&(s.value=T),u.tabs.value=E,u.panels.value=k}else{const B=E.slice(0,_),J=[...E.slice(_),...B].find(z=>A.includes(z));if(!J)return;let P=E.indexOf(J)??u.selectedIndex.value;P===-1&&(P=u.selectedIndex.value),s.value=P,u.tabs.value=E,u.panels.value=k}}let u={selectedIndex:ee(()=>s.value??t.defaultIndex??null),orientation:ee(()=>t.vertical?"vertical":"horizontal"),activation:ee(()=>t.manual?"manual":"auto"),tabs:o,panels:i,setSelectedIndex(_){l.value!==_&&r("change",_),a.value||c(_)},registerTab(_){if(o.value.includes(_))return;const E=o.value[s.value];if(o.value.push(_),o.value=hs(o.value,Y),!a.value){const k=o.value.indexOf(E)??s.value;k!==-1&&(s.value=k)}},unregisterTab(_){const E=o.value.indexOf(_);E!==-1&&o.value.splice(E,1)},registerPanel(_){i.value.includes(_)||(i.value.push(_),i.value=hs(i.value,Y))},unregisterPanel(_){const E=i.value.indexOf(_);E!==-1&&i.value.splice(E,1)}};_t(gp,u);const d=C({tabs:[],panels:[]}),f=C(!1);ze(()=>{f.value=!0}),_t(Ql,ee(()=>f.value?null:d.value));const m=ee(()=>t.selectedIndex);return ze(()=>{lt([m],()=>c(t.selectedIndex??t.defaultIndex),{immediate:!0})}),bt(()=>{if(!a.value||l.value==null||u.tabs.value.length<=0)return;const _=hs(u.tabs.value,Y);_.some((k,A)=>Y(u.tabs.value[A])!==Y(k))&&u.setSelectedIndex(_.findIndex(k=>Y(k)===Y(u.tabs.value[l.value])))}),()=>{const _={selectedIndex:s.value};return qe(Re,[o.value.length<=0&&qe(A1,{onFocus:()=>{for(const E of o.value){const k=Y(E);if((k==null?void 0:k.tabIndex)===0)return k.focus(),!0}return!1}}),ct({theirProps:{...n,...zl(t,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:_,slots:e,attrs:n,name:"TabGroup"})])}}}),V1=ve({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(t,{attrs:e,slots:n}){const r=$o("TabList");return()=>{const s={selectedIndex:r.selectedIndex.value},o={role:"tablist","aria-orientation":r.orientation.value};return ct({ourProps:o,theirProps:t,slot:s,attrs:e,slots:n,name:"TabList"})}}}),ec=ve({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`moonbase-tabs-tab-${Ht()}`}},setup(t,{attrs:e,slots:n,expose:r}){const s=$o("Tab"),o=C(null);r({el:o,$el:o}),ze(()=>s.registerTab(o)),Ot(()=>s.unregisterTab(o));const i=Me(Ql),a=ee(()=>{if(i.value){const k=i.value.tabs.indexOf(t.id);return k===-1?i.value.tabs.push(t.id)-1:k}return-1}),l=ee(()=>{const k=s.tabs.value.indexOf(o);return k===-1?a.value:k}),c=ee(()=>l.value===s.selectedIndex.value);function u(k){var B;const A=k();if(A===Ln.Success&&s.activation.value==="auto"){const T=(B=yn(o))==null?void 0:B.activeElement,J=s.tabs.value.findIndex(P=>Y(P)===T);J!==-1&&s.setSelectedIndex(J)}return A}function d(k){const A=s.tabs.value.map(T=>Y(T)).filter(Boolean);if(k.key===ut.Space||k.key===ut.Enter){k.preventDefault(),k.stopPropagation(),s.setSelectedIndex(l.value);return}switch(k.key){case ut.Home:case ut.PageUp:return k.preventDefault(),k.stopPropagation(),u(()=>mt(A,Je.First));case ut.End:case ut.PageDown:return k.preventDefault(),k.stopPropagation(),u(()=>mt(A,Je.Last))}if(u(()=>it(s.orientation.value,{vertical(){return k.key===ut.ArrowUp?mt(A,Je.Previous|Je.WrapAround):k.key===ut.ArrowDown?mt(A,Je.Next|Je.WrapAround):Ln.Error},horizontal(){return k.key===ut.ArrowLeft?mt(A,Je.Previous|Je.WrapAround):k.key===ut.ArrowRight?mt(A,Je.Next|Je.WrapAround):Ln.Error}}))===Ln.Success)return k.preventDefault()}const f=C(!1);function m(){var k;f.value||(f.value=!0,!t.disabled&&((k=Y(o))==null||k.focus({preventScroll:!0}),s.setSelectedIndex(l.value),ta(()=>{f.value=!1})))}function _(k){k.preventDefault()}const E=dp(ee(()=>({as:t.as,type:e.type})),o);return()=>{var J;const k={selected:c.value,disabled:t.disabled??!1},{id:A,...B}=t,T={ref:o,onKeydown:d,onMousedown:_,onClick:m,id:A,role:"tab",type:E.value,"aria-controls":(J=Y(s.panels.value[l.value]))==null?void 0:J.id,"aria-selected":c.value,tabIndex:c.value?0:-1,disabled:t.disabled?!0:void 0};return ct({ourProps:T,theirProps:B,slot:k,attrs:e,slots:n,name:"Tab"})}}}),R1=ve({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(t,{slots:e,attrs:n}){const r=$o("TabPanels");return()=>{const s={selectedIndex:r.selectedIndex.value};return ct({theirProps:t,ourProps:{},slot:s,attrs:n,slots:e,name:"TabPanels"})}}}),tc=ve({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-${Ht()}`},tabIndex:{type:Number,default:0}},setup(t,{attrs:e,slots:n,expose:r}){const s=$o("TabPanel"),o=C(null);r({el:o,$el:o}),ze(()=>s.registerPanel(o)),Ot(()=>s.unregisterPanel(o));const i=Me(Ql),a=ee(()=>{if(i.value){const u=i.value.panels.indexOf(t.id);return u===-1?i.value.panels.push(t.id)-1:u}return-1}),l=ee(()=>{const u=s.panels.value.indexOf(o);return u===-1?a.value:u}),c=ee(()=>l.value===s.selectedIndex.value);return()=>{var E;const u={selected:c.value},{id:d,tabIndex:f,...m}=t,_={ref:o,id:d,role:"tabpanel","aria-labelledby":(E=Y(s.tabs.value[l.value]))==null?void 0:E.id,tabIndex:c.value?f:-1};return!c.value&&t.unmount&&!t.static?qe(mr,{as:"span","aria-hidden":!0,..._}):ct({ourProps:_,theirProps:m,slot:u,attrs:e,slots:n,features:fr.Static|fr.RenderStrategy,visible:c.value,name:"TabPanel"})}}});function j1(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function nc(t,...e){t&&e.length>0&&!t.dataset.transition?t.dataset.transition=e.join(" "):t&&e.length>0&&(t.dataset.transition=[...t.dataset.transition.split(" "),...e].join(" "))}function ia(t,...e){t&&e.length>0&&t.dataset.transition&&(t.dataset.transition=t.dataset.transition.split(" ").filter(n=>!e.includes(n)).join(" "))}var rc=(t=>(t.Finished="finished",t.Cancelled="cancelled",t))(rc||{});function L1(t,e){const n=So();if(!t)return n.dispose;const{transitionDuration:r,transitionDelay:s}=getComputedStyle(t),[o,i]=[r,s].map(a=>{const[l=0]=a.split(",").filter(Boolean).map(c=>c.includes("ms")?Number.parseFloat(c):Number.parseFloat(c)*1e3).sort((c,u)=>u-c);return l});return o!==0?n.setTimeout(()=>e("finished"),o+i):e("finished"),n.add(()=>e("cancelled")),n.dispose}function yp(t,e,n,r,s,o){const i=So(),a=o!==void 0?j1(o):()=>{};return ia(t,...s),nc(t,...e,...n),i.nextFrame(()=>{ia(t,...n),nc(t,...r),i.add(L1(t,l=>(ia(t,...r,...e),nc(t,...s),a(l))))}),i.add(()=>ia(t,...e,...n,...r,...s)),i.add(()=>a("cancelled")),i.dispose}function qr(t=""){return t.split(/\s+/).filter(e=>e.length>1)}const sc=Symbol("TransitionContext");function M1(){return Me(sc,null)!==null}function U1(){const t=Me(sc,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}const oc=Symbol("NestingContext");function Z1(){const t=Me(oc,null);if(t===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return t}function aa(t){return"children"in t?aa(t.children):t.value.filter(({state:e})=>e==="visible").length>0}function _p(t){const e=C([]),n=C(!1);ze(()=>n.value=!0),Ot(()=>n.value=!1);function r(o,i=pr.Hidden){const a=e.value.findIndex(({id:l})=>l===o);a!==-1&&(it(i,{[pr.Unmount](){e.value.splice(a,1)},[pr.Hidden](){e.value[a].state="hidden"}}),!aa(e)&&n.value&&(t==null||t()))}function s(o){const i=e.value.find(({id:a})=>a===o);return i?i.state!=="visible"&&(i.state="visible"):e.value.push({id:o,state:"visible"}),()=>r(o,pr.Unmount)}return{children:e,register:s,unregister:r}}const bp=fr.RenderStrategy,Po=ve({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(t,{emit:e,attrs:n,slots:r,expose:s}){const o=C(0);function i(){o.value|=vt.Opening,e("beforeEnter")}function a(){o.value&=~vt.Opening,e("afterEnter")}function l(){o.value|=vt.Closing,e("beforeLeave")}function c(){o.value&=~vt.Closing,e("afterLeave")}if(!M1()&&x1())return()=>qe(ic,{...t,onBeforeEnter:i,onAfterEnter:a,onBeforeLeave:l,onAfterLeave:c},r);const u=C(null),d=ee(()=>t.unmount?pr.Unmount:pr.Hidden);s({el:u,$el:u});const{show:f,appear:m}=U1(),{register:_,unregister:E}=Z1(),k=C(f.value?"visible":"hidden"),A={value:!0},B=Ht(),T={value:!1},J=_p(()=>{!T.value&&k.value!=="hidden"&&(k.value="hidden",E(B),c())});ze(()=>{const ce=_(B);Ot(ce)}),bt(()=>{if(d.value===pr.Hidden&&B){if(f.value&&k.value!=="visible"){k.value="visible";return}it(k.value,{hidden:()=>E(B),visible:()=>_(B)})}});const P=qr(t.enter),z=qr(t.enterFrom),N=qr(t.enterTo),Oe=qr(t.entered),K=qr(t.leave),R=qr(t.leaveFrom),V=qr(t.leaveTo);ze(()=>{bt(()=>{if(k.value==="visible"){const ce=Y(u);if(ce instanceof Comment&&ce.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function I(ce){const Ze=A.value&&!m.value,w=Y(u);!w||!(w instanceof HTMLElement)||Ze||(T.value=!0,f.value&&i(),f.value||l(),ce(f.value?yp(w,P,z,N,Oe,$=>{T.value=!1,$===rc.Finished&&a()}):yp(w,K,R,V,Oe,$=>{T.value=!1,$===rc.Finished&&(aa(J)||(k.value="hidden",E(B),c()))})))}return ze(()=>{lt([f],(ce,Ze,w)=>{I(w),A.value=!1},{immediate:!0})}),_t(oc,J),ep(ee(()=>it(k.value,{visible:vt.Open,hidden:vt.Closed})|o.value)),()=>{const{appear:ce,show:Ze,enter:w,enterFrom:$,enterTo:Q,entered:oe,leave:be,leaveFrom:ae,leaveTo:We,...xt}=t,Ke={ref:u},At={...xt,...m.value&&f.value&&Oo.isServer?{class:Yo([n.class,xt.class,...P,...z])}:{}};return ct({theirProps:At,ourProps:Ke,slot:{},slots:r,attrs:n,features:bp,visible:k.value==="visible",name:"TransitionChild"})}}}),B1=Po,ic=ve({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(t,{emit:e,attrs:n,slots:r}){const s=na(),o=ee(()=>t.show===null&&s!==null?(s.value&vt.Open)===vt.Open:t.show);bt(()=>{if(![!0,!1].includes(o.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});const i=C(o.value?"visible":"hidden"),a=_p(()=>{i.value="hidden"}),l=C(!0),c={show:o,appear:ee(()=>t.appear||!l.value)};return ze(()=>{bt(()=>{l.value=!1,o.value?i.value="visible":aa(a)||(i.value="hidden")})}),_t(oc,a),_t(sc,c),()=>{const u=zl(t,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),d={unmount:t.unmount};return ct({ourProps:{...d,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[qe(B1,{onBeforeEnter:()=>e("beforeEnter"),onAfterEnter:()=>e("afterEnter"),onBeforeLeave:()=>e("beforeLeave"),onAfterLeave:()=>e("afterLeave"),...n,...d,...u},r.default)]},attrs:{},features:bp,visible:i.value==="visible",name:"Transition"})}}}),F1={class:"moonbase:modal-container"},la=ve({__name:"Modal",props:{open:{type:Boolean}},emits:["close"],setup(t){return(e,n)=>(g(),Ve(b(ic),{as:"template",show:e.open},{default:ke(()=>[F(b(ap),{as:"div",class:"moonbase:modal",onClose:n[0]||(n[0]=r=>e.$emit("close"))},{default:ke(()=>[x("div",F1,[F(b(Po),{as:"template"},{default:ke(()=>[F(b(lp),{class:"moonbase:modal-overlay"})]),_:1}),F(b(Po),{as:"template"},{default:ke(()=>[F(b(cp),{class:"moonbase:modal-content"},{default:ke(()=>[nl(e.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),H1=["data-visible"],z1=ve({__name:"SignIn",emits:["signedIn"],setup(t,{emit:e}){const n=e,r=Fe(),s=It(),o=Me(Yi),i=C(r.getParameter("email")??""),a=C(""),l=C(null);async function c(){l.value=null;try{const u=await s.signIn(i.value,a.value);gn(1500).then(()=>n("signedIn",u))}catch(u){throw u instanceof ns?l.value="User not found":l.value=u.message,u}}return(u,d)=>(g(),Ve(ur,{handler:c,class:"moonbase:sign-in"},{default:ke(()=>{var f;return[F(Tt,{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(Tt,{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(dr,{success:"Signed in",label:"Sign in",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!l.value||void 0},G(l.value),9,H1),(f=b(o))!=null&&f.auth.enable.signUp?(g(),O("button",{key:0,type:"button",onClick:d[2]||(d[2]=m=>b(r).show(b(Ae).Authentication,b(he).SignUp,{email:i.value}))}," Create account ")):ge("",!0),x("button",{type:"button",onClick:d[3]||(d[3]=m=>b(r).show(b(Ae).Authentication,b(he).ForgotPassword,{email:i.value}))}," Forgot password ")]}),_:1}))}}),q1={class:"moonbase:authentication"},W1={key:0,class:"moonbase:loader"},K1=ve({__name:"Authentication",props:{open:{type:Boolean}},emits:["authenticated"],setup(t,{emit:e}){const n=e,r=Fe(),{loaded:s,user:o}=It();lt(o,a=>{a&&r.intent===he.SignIn&&(n("authenticated",a),r.dequeue())});const i=ee(()=>{switch(r.intent){case he.SignIn:return"Sign in";case he.SignUp:return"Sign up";case he.ConfirmAccount:return"Confirm account";case he.ConfirmEmailChange:return"Confirm email change";case he.ForgotPassword:return"Forgot password";case he.ResetPassword:return"Reset password"}throw new Error("Moonbase: Unknown intent")});return(a,l)=>(g(),Ve(la,{open:a.open,onClose:l[3]||(l[3]=c=>b(r).reset())},{default:ke(()=>[x("div",q1,[F(b(oa),{as:"h3"},{default:ke(()=>[je(G(i.value),1)]),_:1}),b(s)?b(r).intent===b(he).SignIn?(g(),Ve(z1,{key:1})):b(r).intent===b(he).SignUp?(g(),Ve(Mb,{key:2,onSignedUp:l[0]||(l[0]=c=>b(r).dequeue())})):b(r).intent===b(he).ConfirmAccount?(g(),Ve(Hb,{key:3,onConfirmedAccount:l[1]||(l[1]=c=>b(r).dequeue())})):b(r).intent===b(he).ConfirmEmailChange?(g(),Ve(n1,{key:4})):b(r).intent===b(he).ForgotPassword?(g(),Ve(Kb,{key:5})):b(r).intent===b(he).ResetPassword?(g(),Ve(Yb,{key:6,onPasswordReset:l[2]||(l[2]=c=>b(r).dequeue())})):ge("",!0):(g(),O("div",W1,[F(Ft)]))])]),_:1},8,["open"]))}});function Mn(t,e){return new Intl.NumberFormat(void 0,{style:"currency",currency:e,currencyDisplay:"narrowSymbol",maximumFractionDigits:2,minimumFractionDigits:2}).format(t)}const G1={class:"moonbase:product-cart-item"},J1=["src"],Y1={key:1,class:"moonbase:image-placeholder"},X1={class:"moonbase:product-cart-item-content"},Q1={key:0,class:"moonbase:cart-item-discount"},ew={class:"font-semibold"},tw={key:0,class:"ml-0.5"},nw={key:2,class:"moonbase:product-cart-item-total"},rw={key:0,class:"moonbase:discount"},sw={key:1},ow=ve({__name:"ProductCartItem",props:{lineItem:{},currency:{}},setup(t){return(e,n)=>{var r,s,o;return g(),O("div",G1,[(r=e.lineItem.product)!=null&&r.iconUrl?(g(),O("img",{key:0,src:e.lineItem.product.iconUrl,alt:""},null,8,J1)):(g(),O("div",Y1)),x("div",X1,[x("h3",null,G((s=e.lineItem.product)==null?void 0:s.name),1),x("p",null,G((o=e.lineItem.product)==null?void 0:o.tagline),1),e.lineItem.appliedDiscount?(g(),O("p",Q1,[je(" Discount applied: "),x("span",ew,G(e.lineItem.appliedDiscount.name),1),e.lineItem.appliedDiscount.total?(g(),O("span",tw," (-"+G(b(Mn)(e.lineItem.appliedDiscount.total[e.currency],e.currency))+") ",1)):ge("",!0)])):ge("",!0),x("p",null,G(e.lineItem.quantity)+" in cart",1)]),e.lineItem.variation?(g(),O("div",nw,[e.lineItem.variation.hasDiscount?(g(),O("span",rw,G(b(Mn)(e.lineItem.variation.originalPrice[e.currency],e.currency)),1)):ge("",!0),e.lineItem.quantity!==1?(g(),O("span",sw,G(e.lineItem.quantity)+" x "+G(b(Mn)(e.lineItem.variation.price[e.currency],e.currency)),1)):ge("",!0),je(" "+G(b(Mn)(e.lineItem.variation.price[e.currency]*e.lineItem.quantity,e.currency)),1)])):ge("",!0)])}}}),iw={class:"moonbase:bundle-cart-item"},aw=["src"],lw={key:1,class:"moonbase:image-placeholder"},cw={class:"moonbase:bundle-cart-item-content"},uw={key:0,class:"moonbase:cart-item-discount"},dw={class:"font-semibold"},fw={key:0,class:"ml-0.5"},pw={class:"moonbase:bundle-cart-item-summary"},hw=["data-open"],mw=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},null,-1)],vw={key:2,class:"moonbase:product-cart-item-total"},gw={key:0,class:"moonbase:discount"},yw={key:1},_w=["src"],bw={key:1,class:"moonbase:image-placeholder"},ww=["data-included"],Ew={key:0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},xw=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"},null,-1)],kw={key:0,class:"truncate italic"},Ow={key:1,class:"truncate"},Nw=ve({__name:"BundleCartItem",props:{lineItem:{},currency:{}},setup(t){const e=C(!1),n=C(null);return lt(e,r=>{n.value&&(n.value.style.height=r?`${n.value.scrollHeight}px`:"0px")}),(r,s)=>{var o,i,a,l,c,u,d;return g(),O("div",null,[x("div",iw,[(o=r.lineItem.bundle)!=null&&o.iconUrl?(g(),O("img",{key:0,src:r.lineItem.bundle.iconUrl,alt:""},null,8,aw)):(g(),O("div",lw)),x("div",cw,[x("h3",null,G((i=r.lineItem.bundle)==null?void 0:i.name),1),x("p",null,G((a=r.lineItem.bundle)==null?void 0:a.tagline),1),r.lineItem.appliedDiscount?(g(),O("p",uw,[je(" Discount applied: "),x("span",dw,G(r.lineItem.appliedDiscount.name),1),r.lineItem.appliedDiscount.total?(g(),O("span",fw," (-"+G(b(Mn)(r.lineItem.appliedDiscount.total[r.currency],r.currency))+") ",1)):ge("",!0)])):ge("",!0),x("div",pw,[x("span",null,G(r.lineItem.quantity)+" in cart",1),r.lineItem.bundle?(g(),O("button",{key:0,onClick:s[0]||(s[0]=f=>e.value=!e.value)},[x("span",null,[je(" Including "+G((l=r.lineItem.bundle)==null?void 0:l.products.filter(f=>f.included).length)+" ",1),(c=r.lineItem.bundle)!=null&&c.products.some(f=>!f.included)?(g(),O(Re,{key:0},[je("of "+G((u=r.lineItem.bundle)==null?void 0:u.products.length),1)],64)):ge("",!0),je(" products ")]),(g(),O("svg",{"data-open":e.value||void 0,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},mw,8,hw))])):ge("",!0)])]),r.lineItem.variation?(g(),O("div",vw,[r.lineItem.variation.hasDiscount?(g(),O("span",gw,G(b(Mn)(r.lineItem.variation.originalPrice[r.currency],r.currency)),1)):ge("",!0),r.lineItem.quantity!==1?(g(),O("span",yw,G(r.lineItem.quantity)+" x "+G(b(Mn)(r.lineItem.variation.price[r.currency],r.currency)),1)):ge("",!0),je(" "+G(b(Mn)(r.lineItem.variation.price[r.currency]*r.lineItem.quantity,r.currency)),1)])):ge("",!0)]),x("div",{ref_key:"productListRef",ref:n,class:"moonbase:bundle-cart-item-product-list",style:{height:"0px"}},[(g(!0),O(Re,null,fn(((d=r.lineItem.bundle)==null?void 0:d.products)||[],f=>(g(),O("div",{key:f.id},[f!=null&&f.iconUrl?(g(),O("img",{key:0,src:f.iconUrl,alt:""},null,8,_w)):(g(),O("div",bw)),x("div",null,[x("h3",{"data-included":f.included||void 0},[f.included?(g(),O("svg",Ew,xw)):ge("",!0),je(" "+G(f==null?void 0:f.name),1)],8,ww),f.included?f!=null&&f.tagline?(g(),O("p",Ow,G(f.tagline),1)):ge("",!0):(g(),O("p",kw," You already own this "))])]))),128))],512)])}}}),Sw={class:"moonbase:cart-modal-container"},Tw=ve({__name:"CartModal",props:{open:{type:Boolean}},emits:["close"],setup(t){return(e,n)=>(g(),Ve(b(ic),{as:"template",show:e.open},{default:ke(()=>[F(b(ap),{as:"div",class:"moonbase:cart-modal",onClose:n[0]||(n[0]=r=>e.$emit("close"))},{default:ke(()=>[x("div",Sw,[F(b(Po),{as:"template"},{default:ke(()=>[F(b(lp),{class:"moonbase:cart-modal-overlay"})]),_:1}),F(b(Po),{as:"template"},{default:ke(()=>[F(b(cp),{class:"moonbase:cart-modal-content"},{default:ke(()=>[nl(e.$slots,"default")]),_:3})]),_:3})])]),_:3})]),_:3},8,["show"]))}}),Cw=["disabled","data-success","data-error","data-working","data-variant"],$w=["data-visible"],wp=ve({__name:"MoonButton",props:{handler:{type:Function},label:{},success:{},error:{},variant:{},noReset:{type:Boolean}},setup(t){const e=t,n=C(!1),r=C(!1),s=C(!1),o=ee(()=>r.value?e.success??e.label:s.value?e.error:e.label);async function i(){try{const a=e.handler();if(a instanceof Promise){if(n.value=!0,await a,n.value=!1,!e.success)return;r.value=!0,await gn(2500),e.noReset||(r.value=!1)}}catch{n.value=!1,s.value=!0,await gn(2500),s.value=!1}}return(a,l)=>(g(),O("button",{class:"moonbase:button",type:"button",disabled:r.value||s.value||n.value,"data-success":r.value&&a.success||void 0,"data-error":s.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?(g(),Ve(Ft,{key:0})):ge("",!0)],8,$w),je(" "+G(o.value),1)],8,Cw))}}),Pw={class:"moonbase:cart"},Iw={key:0,role:"list",class:"moonbase:cart-items"},Aw={key:1,class:"moonbase:cart-empty"},Dw={key:2,class:"moonbase:cart-total"},Vw=x("label",null," Total ",-1),Rw=x("p",null," Sales tax to be calculated at checkout ",-1),jw=ve({__name:"Cart",props:{open:{type:Boolean}},setup(t){const e=Fe(),{items:n,total:r,currency:s,checkout:o}=Vl();async function i(){if(!await o(`${window.location.pathname}?mb_intent=view_products`))throw new Error("Cancelled checkout")}return(a,l)=>(g(),Ve(Tw,{open:a.open,onClose:l[0]||(l[0]=c=>b(e).reset())},{default:ke(()=>[x("div",Pw,[F(b(oa),{as:"h3"},{default:ke(()=>[je(" Cart ")]),_:1}),b(n).length>0?(g(),O("ul",Iw,[(g(!0),O(Re,null,fn(b(n),c=>(g(),O("li",{key:c.id},[c.type==="Product"?(g(),Ve(ow,{key:0,"line-item":c,currency:b(s)},null,8,["line-item","currency"])):c.type==="Bundle"?(g(),Ve(Nw,{key:1,"line-item":c,currency:b(s)},null,8,["line-item","currency"])):ge("",!0)]))),128))])):(g(),O("div",Aw," Your cart is empty! ")),b(n).length>0?(g(),O("div",Dw,[Vw,x("span",null,G(b(Mn)(b(r).amount,b(r).currency)),1),Rw])):ge("",!0),b(n).length>0?(g(),Ve(wp,{key:3,handler:i,label:"Checkout",error:"Cancelled"})):ge("",!0)])]),_:1},8,["open"]))}}),Lw={class:"moonbase:account"},Mw={key:0,class:"moonbase:error"},Uw={key:1,class:"moonbase:notification"},Zw={key:0,class:"moonbase:error"},Bw=ve({__name:"Account",setup(t){var B,T,J;const e=Fe(),{user:n,update:r,setPassword:s,signOut:o}=It(),i=C(((B=n.value)==null?void 0:B.name)??""),a=C(((T=n.value)==null?void 0:T.email)??""),l=C(((J=n.value)==null?void 0:J.communicationPreferences)??{newsletterOptIn:!1}),c=C(null),u=C(!1),d=C(""),f=C(""),m=C(null),_=C(!1);async function E(){c.value=null,u.value=!1;try{(await r(i.value,a.value,void 0,l.value)).needsEmailConfirmationToken&&(u.value=!0)}catch(P){throw c.value=P,P}}async function k(){m.value=null;try{await s(d.value,f.value),d.value="",f.value=""}catch(P){throw m.value=P,P}}async function A(){_.value=!0,await o(),e.reset()}return(P,z)=>(g(),O("div",Lw,[F(ur,{handler:E},{default:ke(()=>[F(Tt,{modelValue:i.value,"onUpdate:modelValue":z[0]||(z[0]=N=>i.value=N),label:"Full name",name:"name",autocomplete:"name",required:""},null,8,["modelValue"]),F(Tt,{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"]),F(Uf,{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"]),F(dr,{label:"Save",error:"Error",success:"Saved"}),c.value?(g(),O("p",Mw,G(c.value.message),1)):u.value?(g(),O("p",Uw," You need to confirm your new email address, please check your inbox ")):ge("",!0)]),_:1}),F(ur,{handler:k},{default:ke(()=>[F(Tt,{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"]),F(Tt,{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"]),F(dr,{label:"Save",error:"Error",success:"Saved"}),m.value?(g(),O("p",Zw,G(m.value.message),1)):ge("",!0)]),_:1}),F(wp,{label:"Log out",success:"Logged out",error:"Error",variant:"secondary",handler:A})]))}}),Fw={},Hw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},zw=[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 qw(t,e){return g(),O("svg",Hw,zw)}const Ep=ps(Fw,[["render",qw]]),Ww={},Kw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Gw=[x("path",{d:"M480 265H232v179l248 36V265zM216 265H32v150l184 26.7V265zM480 32L232 67.4V249h248V32zM216 69.7L32 96v153h184V69.7z",fill:"currentColor"},null,-1)];function Jw(t,e){return g(),O("svg",Kw,Gw)}const xp=ps(Ww,[["render",Jw]]),Yw={},Xw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Qw=[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 e0(t,e){return g(),O("svg",Xw,Qw)}const kp=ps(Yw,[["render",e0]]),t0={},n0={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},r0=[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 s0(t,e){return g(),O("svg",n0,r0)}const Op=ps(t0,[["render",s0]]),o0={class:"moonbase:product-downloads"},i0=["data-last","onClick"],a0={class:"moonbase:sr-only"},l0={class:"moonbase:sr-only"},c0=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),u0=["onClick"],d0=ve({__name:"ProductDownloads",props:{downloads:{}},setup(t){const e=t,n={[sn.Universal]:()=>Ep,[sn.Windows]:()=>xp,[sn.Linux]:()=>kp,[sn.Mac]:()=>Op},{downloadProduct:r}=Hi(),s=ee(()=>e.downloads.reduce((o,i)=>({...o,[i.platform]:(o[i.platform]||[]).concat({...i,icon:n[i.platform]})}),{}));return(o,i)=>(g(),O("span",o0,[(g(!0),O(Re,null,fn(s.value,(a,l,c)=>(g(),O(Re,{key:l},[a.length===1?(g(),O("button",{key:0,type:"button",role:"button","data-last":c===Object.keys(s.value).length-1||void 0,onClick:u=>b(r)(a[0])},[x("span",a0,G(l.toString()),1),(g(),Ve(tl(a[0].icon()),{class:"h-5 w-5 text-white","aria-hidden":"true"}))],8,i0)):(g(),Ve(b(Xl),{key:1,as:"div","data-last":c===Object.keys(s.value).length-1||void 0,class:"moonbase:product-downloads-group"},{default:ke(()=>[F(b(mp),null,{default:ke(()=>[x("span",l0,G(l.toString()),1),(g(),Ve(tl(a[0].icon()),{"aria-hidden":"true"})),c0]),_:2},1024),F(lo,{name:"moonbase:scale"},{default:ke(()=>[F(b(vp),{class:"moonbase:product-downloads-list"},{default:ke(()=>[(g(!0),O(Re,null,fn(a,u=>(g(),O("button",{key:u.key,type:"button",role:"button",onClick:d=>b(r)(u)},G(u.name),9,u0))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["data-last"]))],64))),128))]))}}),f0={class:"moonbase:product-activations"},p0=x("th",{scope:"col"}," Device ",-1),h0=x("th",{scope:"col"}," Activation Method ",-1),m0=x("th",{scope:"col"}," Last Online ",-1),v0={key:0,scope:"col"},g0=[x("span",{class:"sr-only"},"Actions",-1)],y0={key:0},_0={colspan:"3"},b0=x("td",null,null,-1),w0={key:1},E0=[x("td",{colspan:"3"}," No activations found ",-1)],x0={key:0},k0=["onClick"],O0=ve({__name:"ProductActivations",props:{productId:{}},emits:["revoked"],setup(t,{emit:e}){const n=t,r=e,{getProductActivations:s,revokeActivation:o}=Hi(),i=C(null);ze(async()=>{let c=await s(n.productId);for(i.value=c.items.map(u=>({...u,revoking:!1}));c.hasMore&&c.next;)c=await s(n.productId,c.next),i.value.push(...c.items.map(u=>({...u,revoking:!1})))});const a=ee(()=>i.value&&i.value.some(c=>c.activationMethod===Na.Online));async function l(c){c.revoking=!0,await o(c),r("revoked",c),i.value&&i.value.splice(i.value.indexOf(c),1)}return(c,u)=>(g(),O("table",f0,[x("thead",null,[x("tr",null,[p0,h0,m0,a.value?(g(),O("th",v0,g0)):ge("",!0)])]),x("tbody",null,[i.value?i.value.length===0?(g(),O("tr",w0,E0)):ge("",!0):(g(),O("tr",y0,[x("td",_0,[F(Ft),je(" Loading activations.. ")]),b0])),(g(!0),O(Re,null,fn(i.value,d=>{var f;return g(),O("tr",{key:d.id},[x("td",null,G(d.name),1),x("td",null,G(d.activationMethod),1),x("td",null,G((f=d.lastValidatedAt)==null?void 0:f.toLocaleDateString()),1),a.value?(g(),O("td",x0,[x("button",{class:"text-red-400 flex whitespace-nowrap items-center",onClick:m=>l(d)},[d.revoking?(g(),Ve(Ft,{key:0})):ge("",!0),je(" Revoke ")],8,k0)])):ge("",!0)])}),128))])]))}}),N0={class:"moonbase:products"},S0=x("th",{scope:"col"}," Product ",-1),T0=x("th",{scope:"col"}," Activations ",-1),C0={key:0,scope:"col"},$0={key:0},P0=x("td",null,null,-1),I0={key:1},A0=[x("td",{colspan:"3"}," No products found ",-1)],D0=["src"],V0={key:1,class:"moonbase:image-placeholder"},R0=x("span",{class:"moonbase:sr-only"},"View activations",-1),j0={key:0},L0={key:0},M0=ve({__name:"Products",setup(t){const{getProducts:e}=Hi(),n=C(null);ze(async()=>{let s=await e();for(n.value=s.items;s.hasMore&&s.next;)s=await e(s.next),n.value.push(...s.items)});const r=ee(()=>n.value&&n.value.some(s=>s.downloads));return(s,o)=>(g(),O("table",N0,[x("thead",null,[x("tr",null,[S0,T0,r.value?(g(),O("th",C0," Downloads ")):ge("",!0)])]),x("tbody",null,[n.value?n.value.length===0?(g(),O("tr",I0,A0)):ge("",!0):(g(),O("tr",$0,[x("td",null,[F(Ft),je(" Loading products.. ")]),P0])),(g(!0),O(Re,null,fn(n.value||[],i=>(g(),O("tr",{key:i.id},[x("td",null,[x("div",null,[i.iconUrl?(g(),O("img",{key:0,src:i.iconUrl,alt:""},null,8,D0)):(g(),O("div",V0)),x("span",null,G(i.name),1)])]),F(b(Xl),{as:"td"},{default:ke(()=>[F(b(mp),{class:"moonbase:button","data-variant":"secondary"},{default:ke(()=>[R0,je(" "+G(i.currentActivations)+" / "+G(i.maxActivations),1)]),_:2},1024),F(lo,{name:"moonbase:scale"},{default:ke(()=>[F(b(vp),null,{default:ke(()=>[F(O0,{"product-id":i.id},null,8,["product-id"])]),_:2},1024)]),_:2},1024)]),_:2},1024),r.value?(g(),O("td",j0,[i.currentVersion!=null?(g(),O("div",L0,[i.downloads?(g(),Ve(d0,{key:0,downloads:i.downloads},null,8,["downloads"])):ge("",!0)])):ge("",!0)])):ge("",!0)]))),128))])]))}}),U0={class:"moonbase:redeem"},Z0=["data-visible"],B0={key:1,class:"moonbase:redeem-voucher"},F0={key:0},H0={key:1},z0=x("span",null," Contains: ",-1),q0={class:"moonbase:redeem-voucher-products"},W0=["src"],K0={key:1,class:"moonbase:image-placeholder"},G0={key:0},J0={class:"moonbase:redeem-voucher-bundle"},Y0=["src"],X0={key:1,class:"moonbase:image-placeholder"},Q0={key:0},eE={class:"moonbase:redeem-voucher-bundle-products"},tE={class:"shrink-0"},nE=["src"],rE={key:1,class:"moonbase:image-placeholder"},sE=ve({__name:"Redeem",setup(t){const{redeem:e}=R_(),n=C(!1),r=C(null),s=C(null),o=C("");async function i(){n.value=!0,s.value=null;try{r.value=await e(o.value)}catch(a){throw s.value=a,a}n.value=!1}return(a,l)=>(g(),O("div",U0,[F(lo,{mode:"out-in",name:"moonbase:slide-left"},{default:ke(()=>[r.value?(g(),O("div",B0,[x("h3",null,[je(" You got: "),x("strong",null,G(r.value.name),1)]),r.value.description?(g(),O("h4",F0,G(r.value.description),1)):ge("",!0),x("h4",null,[je(" Code: "),x("strong",null,G(r.value.code),1)]),r.value.redeemsProducts.length>0?(g(),O("div",H0,[z0,x("div",q0,[(g(!0),O(Re,null,fn(r.value.redeemsProducts,({value:c,quantity:u})=>(g(),O("div",{key:c.id,class:"moonbase:redeem-voucher-product"},[x("div",null,[c.iconUrl?(g(),O("img",{key:0,src:c.iconUrl,alt:""},null,8,W0)):(g(),O("div",K0))]),x("div",null,[x("p",null,[je(G(c.name)+" ",1),u!==1?(g(),O("span",G0,"x "+G(u),1)):ge("",!0)]),x("p",null,G(c.tagline),1)])]))),128)),(g(!0),O(Re,null,fn(r.value.redeemsBundles,({value:c,quantity:u})=>(g(),O("div",{key:c.id},[x("div",J0,[x("div",null,[c.iconUrl?(g(),O("img",{key:0,src:c.iconUrl,alt:""},null,8,Y0)):(g(),O("div",X0))]),x("div",null,[x("p",null,[je(G(c.name)+" ",1),u!==1?(g(),O("span",Q0,"x "+G(u),1)):ge("",!0)]),x("p",null,G(c.tagline),1)])]),x("div",eE,[(g(!0),O(Re,null,fn(c.products,d=>(g(),O("div",{key:d.id,class:"moonbase:redeem-voucher-product"},[x("div",tE,[d.iconUrl?(g(),O("img",{key:0,src:d.iconUrl,alt:""},null,8,nE)):(g(),O("div",rE))]),x("div",null,[x("p",null,G(d.name),1),x("p",null,G(d.tagline),1)])]))),128))])]))),128))])])):ge("",!0)])):(g(),Ve(ur,{key:0,handler:i},{default:ke(()=>{var c;return[F(Tt,{modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=u=>o.value=u),label:"Voucher code",name:"code",required:""},null,8,["modelValue"]),F(dr,{label:"Redeem",success:"Redeem",error:"Error"}),x("span",{class:"moonbase:error","data-visible":!!s.value||void 0},G((c=s.value)==null?void 0:c.message),9,Z0)]}),_:1}))]),_:1})]))}}),oE={class:"moonbase:customer"},iE=ve({__name:"Customer",props:{open:{type:Boolean}},setup(t){const e=Fe();function n(o){switch(o){case he.ViewAccount:return 0;case he.ViewProducts:return 1;case he.RedeemVoucher:return 2}return 0}const r=C(n(e.intent));lt(()=>e.intent,o=>{r.value=n(o)});function s(o){r.value=o}return(o,i)=>(g(),Ve(la,{open:o.open,onClose:i[0]||(i[0]=a=>b(e).reset())},{default:ke(()=>[x("div",oE,[F(b(D1),{"selected-index":r.value,onChange:s},{default:ke(()=>[F(b(V1),null,{default:ke(()=>[F(b(ec),null,{default:ke(()=>[je("Account")]),_:1}),F(b(ec),null,{default:ke(()=>[je(" Products ")]),_:1}),F(b(ec),null,{default:ke(()=>[je("Redeem")]),_:1})]),_:1}),F(b(R1),null,{default:ke(()=>[F(b(tc),null,{default:ke(()=>[F(Bw)]),_:1}),F(b(tc),null,{default:ke(()=>[F(M0)]),_:1}),F(b(tc),null,{default:ke(()=>[F(sE)]),_:1})]),_:1})]),_:1},8,["selected-index"])])]),_:1},8,["open"]))}}),aE={class:"moonbase:auto-activate"},lE={key:0,class:"moonbase:loader"},cE={key:1,class:"moonbase:loader"},uE={key:2,class:"moonbase:loader"},dE={key:3},fE={key:0,class:"moonbase:auto-activate-product"},pE=["src"],hE={key:1,class:"moonbase:image-placeholder"},mE={key:1,class:"moonbase:loader"},vE=[x("h3",null," Uh oh ",-1),x("p",null," This activation request was cancelled, open your app to try again. ",-1)],gE={key:2,class:"moonbase:loader"},yE={key:3,class:"moonbase:loader"},_E=[x("h3",null," Done! ",-1),x("p",null," Your product is activated. ",-1)],bE={key:4,class:"moonbase:auto-activate-content"},wE={key:0},EE={key:1},xE=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),kE={class:"moonbase:auto-activate-cta"},OE=["href"],NE={key:2,class:"moonbase:auto-activate-trial"},SE={class:"moonbase:auto-activate-cta"},TE=ve({__name:"AutoActivate",setup(t){const e=Fe(),{user:n,loaded:r}=It(),s=e.getParameter("token"),{activationRequest:o,loading:i,fulfilling:a,completing:l,error:c,fulfillLicense:u,fulfillTrial:d,cancel:f}=V_(s);lt(o,E=>{var k;!a.value&&!l.value&&(E==null?void 0:E.status)===on.Requested&&((k=E==null?void 0:E.licenseEligibility)!=null&&k.eligible)&&u()});function m(){f(),e.show(Ae.Customer,he.ViewProducts)}function _(){e.enqueue(Ae.Activation,he.ActivateProduct,e.parameters??void 0),e.show(Ae.Authentication,he.SignIn)}return(E,k)=>{var A,B,T,J;return g(),O("div",aE,[b(i)||!b(r)?(g(),O("div",lE,[F(Ft)])):b(c)?(g(),O("div",cE,G(b(c)),1)):b(o)?(g(),O("div",dE,[b(o).product?(g(),O("div",fE,[b(o).product.iconUrl?(g(),O("img",{key:0,src:b(o).product.iconUrl,alt:""},null,8,pE)):(g(),O("div",hE)),x("div",null,[x("h2",null,G(b(o).product.name),1),x("h3",null,G(b(o).product.tagline),1)])])):ge("",!0),((A=b(o))==null?void 0:A.status)===b(on).Cancelled?(g(),O("div",mE,vE)):b(a)||b(l)?(g(),O("div",gE,[F(Ft),x("p",null,"Activating "+G(b(o).product.name)+"...",1)])):((B=b(o))==null?void 0:B.status)===b(on).Completed?(g(),O("div",yE,_E)):(g(),O("div",bE,[b(n)?(T=b(n).ownedProducts)!=null&&T.includes(b(o).product.id)?(g(),O("div",EE,[xE,x("span",kE,[x("button",{role:"button",class:"moonbase:button",onClick:k[0]||(k[0]=P=>m())}," Licenses "),b(o).product&&b(o).product.website?(g(),O("a",{key:0,href:b(o).product.website,class:"moonbase:button"}," Purchase ",8,OE)):ge("",!0)])])):ge("",!0):(g(),O("div",wE,[je(" Please sign in to use a license "),x("span",{class:"moonbase:auto-activate-cta"},[x("button",{role:"button",class:"moonbase:button",onClick:_}," Sign in ")])])),(J=b(o).trialEligibility)!=null&&J.eligible?(g(),O("div",NE,[je(" You are eligible for a "+G(b(o).trialEligibility.numberOfDaysPerProduct)+" day trial ",1),b(o).trialEligibility.existing?(g(),O(Re,{key:0},[je(" of which you have "+G(b(o).trialEligibility.numberOfDaysRemaining)+" days remaining ",1)],64)):ge("",!0),je(". "),x("span",SE,[x("button",{role:"button",class:"moonbase:button",onClick:k[1]||(k[1]=P=>b(d)())}," Start trial ")])])):ge("",!0)]))])):(g(),O("div",uE," Could not find activation request "))])}}}),CE={class:"moonbase:activation"},$E=ve({__name:"Activation",props:{open:{type:Boolean}},setup(t){const e=Fe();return(n,r)=>(g(),Ve(la,{open:n.open,onClose:r[0]||(r[0]=s=>b(e).reset())},{default:ke(()=>[x("div",CE,[F(b(oa),{as:"h3"},{default:ke(()=>[je(" Activate product ")]),_:1}),n.open&&b(e).intent===b(he).ActivateProduct?(g(),Ve(TE,{key:0})):ge("",!0)])]),_:1},8,["open"]))}});function PE(t){const e=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t<1)return`${t} B`;const n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),e.length-1);t=Number(t/1024**n);const r=e[n];return t>=10||t%1===0?`${t.toFixed(0)} ${r}`:`${t.toFixed(1)} ${r}`}const IE={class:"moonbase:download-product"},AE={key:0,class:"moonbase:loader"},DE={key:1,class:"moonbase:loader"},VE={key:2,class:"moonbase:loader"},RE={key:3},jE={class:"moonbase:download-product-product"},LE=["src"],ME={key:1,class:"moonbase:image-placeholder"},UE={key:0},ZE={key:0,class:"moonbase:download-product-content"},BE={key:1,class:"moonbase:download-product-content"},FE={key:2,class:"moonbase:download-product-content"},HE={key:0,role:"list"},zE={class:"moonbase:download-product-download-name"},qE=["onClick"],WE=x("span",{class:"moonbase:download-product-clicker"},null,-1),KE={class:"moonbase:download-product-download-description"},GE=x("span",null," |",-1),JE={key:1,fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},YE=[x("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},null,-1)],XE={key:1,class:"moonbase:loader"},QE=ve({__name:"DownloadProduct",setup(t){const e=Fe(),{user:n,loaded:r}=It(),{getProduct:s,downloadProduct:o}=Hi(),i={[sn.Universal]:()=>Ep,[sn.Windows]:()=>xp,[sn.Linux]:()=>kp,[sn.Mac]:()=>Op},a=C(null),l=C([]),c=C(null),u=C(!0),d=ee(()=>e.getParameter("key")),f=ee(()=>{var E,k;return(k=(E=a.value)==null?void 0:E.downloads)==null?void 0:k.filter(A=>!d.value||A.key===d.value)});ze(async()=>{const E=e.getParameter("product_id"),k=e.getParameter("version");if(!E){c.value="Link is broken";return}try{a.value=await s(E,k||void 0)}catch(A){c.value=A.message}u.value=!1});function m(){e.enqueue(Ae.Download,he.DownloadProduct,e.parameters??void 0),e.show(Ae.Authentication,he.SignIn)}async function _(E){l.value.push(E.key),await o(E),l.value=l.value.filter(k=>k!==E.key)}return(E,k)=>{var A,B;return g(),O("div",IE,[u.value||!b(r)?(g(),O("div",AE,[F(Ft)])):c.value?(g(),O("div",DE,G(c.value),1)):a.value?(g(),O("div",RE,[x("div",jE,[a.value.iconUrl?(g(),O("img",{key:0,src:a.value.iconUrl,alt:""},null,8,LE)):(g(),O("div",ME)),x("div",null,[x("h2",null,[je(G(a.value.name)+" ",1),x("span",null,"v"+G(a.value.version||a.value.currentVersion),1),a.value.prerelease?(g(),O("span",UE," (pre-release)")):ge("",!0)]),x("h3",null,G(a.value.tagline),1)])]),a.value.downloadsNeedsUser&&!b(n)?(g(),O("div",ZE,[je(" Please sign in to download product "),x("span",{class:"moonbase:download-product-cta"},[x("button",{role:"button",class:"moonbase:button",onClick:m}," Sign in ")])])):a.value.downloadsNeedsOwnership&&!((A=b(n).ownedProducts)!=null&&A.includes(a.value.id))?(g(),O("div",BE," This product requires ownership to download ")):(g(),O("div",FE,[(B=a.value)!=null&&B.downloads&&a.value.downloads.length>0?(g(),O("ul",HE,[(g(!0),O(Re,null,fn(f.value,T=>(g(),O("li",{key:T.key},[x("div",null,[x("p",zE,[x("button",{onClick:J=>_(T)},[WE,je(" "+G(T.name),1)],8,qE)]),x("p",KE,[(g(),Ve(tl(i[T.platform]()),{"aria-hidden":"true"})),je(" "+G(T.platform)+" ",1),GE,je(" "+G(b(PE)(T.size)),1)])]),x("div",null,[l.value.includes(T.key)?(g(),Ve(Ft,{key:0})):(g(),O("svg",JE,YE))])]))),128))])):(g(),O("div",XE," No downloadable files found "))]))])):(g(),O("div",VE," Could not find product "))])}}}),ex={class:"moonbase:download"},tx=ve({__name:"Download",props:{open:{type:Boolean}},setup(t){const e=Fe();return(n,r)=>(g(),Ve(la,{open:n.open,onClose:r[0]||(r[0]=s=>b(e).reset())},{default:ke(()=>[x("div",ex,[F(b(oa),{as:"h3"},{default:ke(()=>[je(" Download product ")]),_:1}),n.open&&b(e).intent===b(he).DownloadProduct?(g(),Ve(QE,{key:0})):ge("",!0)])]),_:1},8,["open"]))}}),nx=ve({__name:"App",setup(t){const e=Me(Yi),n=Fe();return(r,s)=>{var o;return g(),O(Re,null,[(o=b(e))!=null&&o.toolbar.enabled?(g(),Ve(yb,{key:0})):ge("",!0),F(jw,{open:b(n).active===b(Ae).Cart},null,8,["open"]),F(K1,{open:b(n).active===b(Ae).Authentication},null,8,["open"]),F($E,{open:b(n).active===b(Ae).Activation},null,8,["open"]),F(tx,{open:b(n).active===b(Ae).Download},null,8,["open"]),F(iE,{open:b(n).active===b(Ae).Customer},null,8,["open"])],64)}}});function ca(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ac(t,...e){if(e.length===0)return t;const n=e.shift();if(!n)return t;if(ca(t)&&ca(n)){for(const r in t)if(n.hasOwnProperty(r)){const s=n[r];ca(s)&&ca(t[r])?t[r]=ac(t[r],s):s!==void 0&&(t[r]=s)}}return ac(t,...e)}class rx{constructor(){Wr(this,"initialized",!1);Wr(this,"pinia");Wr(this,"storefront");Wr(this,"options")}async setup(e,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=ac(pb,n),this.storefront=j_(e),this.pinia=lb(),Sy(nx).use(this.storefront).use(this.pinia).provide(Yi,this.options).mount("#moonbase"),this.initialized=!0,window&&window.location){const i=new URLSearchParams(window.location.search),a=i.get("mb_intent");if(a&&Object.values(he).includes(a)){const l=Object.fromEntries([...i.entries()].filter(([u])=>u.startsWith("mb_")).map(([u,d])=>[u.substring(3),d]));if(a===he.Checkout&&l.complete)return;this[a](l);for(const u of Object.keys(l))i.delete(`mb_${u}`);const c=i.toString();window.history.replaceState(null,"",window.location.href.split("?")[0]+(c?`?${c}`:""))}}const s=Fe(this.pinia),o=It(this.storefront);this.storefront.onCheckoutClosed(i=>{i===he.ViewProducts&&(o.user?s.show(Ae.Customer,he.ViewProducts):s.show(Ae.Cart,he.ViewCart))})}sign_in(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.SignIn,e)}sign_up(e){var r;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!((r=this.options)!=null&&r.auth.enable.signUp))throw new Error("Sign ups are not enabled");Fe(this.pinia).show(Ae.Authentication,he.SignUp,e)}forgot_password(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.ForgotPassword,e)}reset_password(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.ResetPassword,e)}confirm_account(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Authentication,he.ConfirmAccount,e)}confirm_email(){}confirm_email_change(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const n=Fe(this.pinia);It(this.storefront).user.value?n.show(Ae.Authentication,he.ConfirmEmailChange,e):(n.show(Ae.Authentication,he.SignIn),n.enqueue(Ae.Authentication,he.ConfirmEmailChange,e))}view_account(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");const e=Fe(this.pinia);It(this.storefront).user.value?e.show(Ae.Customer,he.ViewAccount):(e.show(Ae.Authentication,he.SignIn),e.enqueue(Ae.Customer,he.ViewAccount))}view_products(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Cart,he.ViewCart)}redeem_voucher(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Cart,he.ViewCart,e)}download_product(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Download,he.DownloadProduct,e)}activate_product(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(e!=null&&e.token))throw new Error("You need to provide a token when activating a product");Fe(this.pinia).show(Ae.Activation,he.ActivateProduct,e)}view_cart(){if(!this.initialized)throw new Error("Moonbase has not been set up yet");Fe(this.pinia).show(Ae.Cart,he.ViewCart)}async add_to_cart(e){var s,o,i,a;if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(!(e!=null&&e.product_id)&&!(e!=null&&e.bundle_id))throw new Error("You need to provide a product or bundle ID when adding to cart");const n=Vl(this.storefront);if(e!=null&&e.product_id){const l=gf(e.product_id,this.storefront);if(l.value)n.addToCart(l.value,(s=l.value.variations)==null?void 0:s.find(c=>c.id===e.variation_id));else{await this.storefront.loadedStorefrontPromise;const c=gf(e.product_id,this.storefront);if(c.value)n.addToCart(c.value,(o=c.value.variations)==null?void 0:o.find(u=>u.id===e.variation_id));else throw new Error(`Product '${e.product_id}' not found`)}}if(e!=null&&e.bundle_id){const l=vf(e.bundle_id,this.storefront);if(l.value)n.addToCart(l.value,(i=l.value.variations)==null?void 0:i.find(c=>c.id===e.variation_id));else{await this.storefront.loadedStorefrontPromise;const c=vf(e.bundle_id,this.storefront);if(c.value)n.addToCart(c.value,(a=c.value.variations)==null?void 0:a.find(u=>u.id===e.variation_id));else throw new Error(`Bundle '${e.bundle_id}' not found`)}}Fe(this.pinia).show(Ae.Cart,he.AddToCart)}checkout(e){if(!this.initialized)throw new Error("Moonbase has not been set up yet");if(e!=null&&e.complete)return;Vl(this.storefront).checkout(`${window.location.pathname}?mb_intent=view_products`)}}const Np=new rx;globalThis&&(globalThis.Moonbase?console.warn("Multiple instances of Moonbase detected, only one will be initialized"):globalThis.Moonbase=Np),Dt.MoonbaseIntent=he,Dt.default=Np,Object.defineProperties(Dt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|