digital-rabbit-cl 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,68 +1,68 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;font-size:2rem;height:100vh;position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:var(--desktop-hover-opacity)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as S, jsxs as G, Fragment as ke } from "react/jsx-runtime";
3
- import F, { createContext as Zt, useContext as Qt, useState as Me, useLayoutEffect as Ar, useSyncExternalStore as Nr, useMemo as He, useRef as Pe, useEffect as xe } from "react";
4
- import { createPortal as Br } from "react-dom";
5
- const Pr = "Button-module__button___2ZuB7", Rr = "Button-module__sizeSmall___DRT8P", Lr = "Button-module__sizeLarge___yeZSH", $e = {
6
- button: Pr,
7
- sizeSmall: Rr,
8
- sizeLarge: Lr
9
- }, Dr = ({
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__nav___xOfv5>*,.ResponsiveNav-module__nav___xOfv5>a{color:inherit;font-weight:700;text-decoration:none}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;font-size:2rem;height:100vh;position:fixed;top:0;right:0;text-align:left;text-transform:uppercase;transition:transform .3s ease-in-out;width:100%;z-index:10;transform:translate(100%);overflow-y:auto;overflow-x:hidden;padding-top:3.5em}.ResponsiveNav-module__navHeader___Me8bB{position:fixed;top:0;left:0;right:0;height:3.5em;background:inherit;z-index:11}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE{padding-top:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:.35em 2em;text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>a{padding:.25em 1.5em}.ResponsiveNav-module__navMobile___h795P>a.active{background:var(--mobile-active-bg);color:var(--mobile-active-color)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:.5em 1.4em}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE>button{margin:.35em 1em}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.ResponsiveNav-module__navDesktop___9wscZ>a.active,.ResponsiveNav-module__navDesktop___9wscZ>a:hover{opacity:var(--desktop-hover-opacity)}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavItem-module__trigger___og97w{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;font-weight:700;gap:.375rem;padding:0;text-decoration:none}.NavItem-module__trigger___og97w:hover,.NavItem-module__triggerOpen___7lIFg{opacity:var(--desktop-hover-opacity, .5)}.NavItem-module__chevron___awf4c{align-items:center;display:inline-flex;transition:transform .2s ease}.NavItem-module__chevronOpen___ZtUGj{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as v, jsxs as U, Fragment as pe } from "react/jsx-runtime";
3
+ import F, { createContext as mt, useContext as er, useState as ye, useLayoutEffect as Pr, useSyncExternalStore as Rr, useMemo as We, useRef as xe, useEffect as ae, useCallback as Be } from "react";
4
+ import { createPortal as at } from "react-dom";
5
+ const Or = "Button-module__button___2ZuB7", Dr = "Button-module__sizeSmall___DRT8P", Mr = "Button-module__sizeLarge___yeZSH", Pe = {
6
+ button: Or,
7
+ sizeSmall: Dr,
8
+ sizeLarge: Mr
9
+ }, Hr = ({
10
10
  isActive: e,
11
11
  disabled: r,
12
12
  color: t,
13
- hoverColor: s,
14
- hoverTextColor: o,
13
+ hoverColor: o,
14
+ hoverTextColor: s,
15
15
  outline: n,
16
16
  theme: a
17
17
  }) => {
18
18
  const l = t || a.colors.primary, f = a.buttons.textColor;
19
19
  let u, d, h;
20
- n ? (u = "transparent", d = l, h = l, e && (u = s || l, d = s || l, h = o || f)) : (u = l, d = l, h = f, e && (u = s || l, d = s || l, h = o || f));
21
- let m = 1;
22
- return r ? m = 0.3 : e && !s && (m = 0.75), {
20
+ n ? (u = "transparent", d = l, h = l, e && (u = o || l, d = o || l, h = s || f)) : (u = l, d = l, h = f, e && (u = o || l, d = o || l, h = s || f));
21
+ let y = 1;
22
+ return r ? y = 0.3 : e && !o && (y = 0.75), {
23
23
  backgroundColor: u,
24
24
  borderColor: d,
25
25
  color: h,
26
- opacity: m
26
+ opacity: y
27
27
  };
28
28
  };
29
- function Kt(e, r) {
29
+ function tr(e, r) {
30
30
  const t = { ...e };
31
- return Ee(e) && Ee(r) && Object.keys(r).forEach((s) => {
32
- const o = r[s], n = e[s];
33
- Ee(o) && Ee(n) ? t[s] = Kt(
31
+ return Re(e) && Re(r) && Object.keys(r).forEach((o) => {
32
+ const s = r[o], n = e[o];
33
+ Re(s) && Re(n) ? t[o] = tr(
34
34
  n,
35
- o
36
- ) : o !== void 0 && (t[s] = o);
35
+ s
36
+ ) : s !== void 0 && (t[o] = s);
37
37
  }), t;
38
38
  }
39
- function Ee(e) {
39
+ function Re(e) {
40
40
  return e && typeof e == "object" && !Array.isArray(e);
41
41
  }
42
- function we(e) {
42
+ function $e(e) {
43
43
  const r = e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);
44
44
  if (!r) {
45
- const o = parseInt(e, 10), n = e.replace(/[0-9.]/g, "") || "px";
45
+ const s = parseInt(e, 10), n = e.replace(/[0-9.]/g, "") || "px";
46
46
  return {
47
- maxWidth: isNaN(o) ? 768 : o - 1,
47
+ maxWidth: isNaN(s) ? 768 : s - 1,
48
48
  unit: n
49
49
  };
50
50
  }
51
- const t = parseFloat(r[1]), s = r[2];
51
+ const t = parseFloat(r[1]), o = r[2];
52
52
  return {
53
53
  maxWidth: t - 1,
54
- unit: s
54
+ unit: o
55
55
  };
56
56
  }
57
- const Ge = {
57
+ const Ye = {
58
58
  primary: "#000",
59
59
  secondary: "#FFF",
60
60
  accent: "#4381C1",
61
61
  error: "#F00",
62
62
  success: "#008000",
63
63
  warning: "#FFEB3B"
64
- }, tt = {
65
- colors: Ge,
64
+ }, it = {
65
+ colors: Ye,
66
66
  fonts: {
67
67
  color: "#000",
68
68
  lineHeight: 1.5,
@@ -81,7 +81,7 @@ const Ge = {
81
81
  textColor: "#FFF",
82
82
  paddingHorizontal: 0.35,
83
83
  primary: {
84
- textColor: Ge.secondary
84
+ textColor: Ye.secondary
85
85
  }
86
86
  },
87
87
  inputs: {
@@ -111,21 +111,21 @@ const Ge = {
111
111
  padding: "1rem"
112
112
  },
113
113
  modal: {
114
- backgroundColor: Ge.secondary,
114
+ backgroundColor: Ye.secondary,
115
115
  backdropColor: "rgba(0, 0, 0, 0.5)",
116
116
  boxShadow: "0 10px 40px rgba(0, 0, 0, 0.2)"
117
117
  }
118
- }, Yt = Zt(tt), sn = ({ theme: e, children: r }) => {
119
- const t = e ? Kt(tt, e) : tt;
120
- return /* @__PURE__ */ S(Yt.Provider, { value: t, children: r });
121
- }, H = () => Qt(Yt), Mr = ({
118
+ }, rr = mt(it), Cn = ({ theme: e, children: r }) => {
119
+ const t = e ? tr(it, e) : it;
120
+ return /* @__PURE__ */ v(rr.Provider, { value: t, children: r });
121
+ }, I = () => er(rr), Tr = ({
122
122
  // Core styling
123
123
  color: e,
124
124
  hoverColor: r,
125
125
  hoverTextColor: t,
126
126
  // Variant props
127
- disabled: s = !1,
128
- size: o = "large",
127
+ disabled: o = !1,
128
+ size: s = "large",
129
129
  outline: n = !1,
130
130
  type: a = "button",
131
131
  // Standard React props
@@ -135,87 +135,87 @@ const Ge = {
135
135
  onClick: d,
136
136
  children: h
137
137
  }) => {
138
- const m = H(), [z, x] = Me(!1), w = {
139
- ...Dr({
140
- isActive: z,
141
- disabled: s,
138
+ const y = I(), [V, w] = ye(!1), x = {
139
+ ...Hr({
140
+ isActive: V,
141
+ disabled: o,
142
142
  color: e,
143
143
  hoverColor: r,
144
144
  hoverTextColor: t,
145
145
  outline: n,
146
- theme: m
146
+ theme: y
147
147
  }),
148
- fontSize: m.fonts.size,
149
- borderWidth: m.border.width,
150
- borderRadius: m.border.radius,
151
- "--button-padding-small": `calc(${m.fonts.rhythm} * ${m.sizes.small.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,
152
- "--button-padding-large": `calc(${m.fonts.rhythm} * ${m.sizes.large.paddingVertical}) calc(${m.fonts.rhythm} * ${m.buttons.paddingHorizontal})`,
148
+ fontSize: y.fonts.size,
149
+ borderWidth: y.border.width,
150
+ borderRadius: y.border.radius,
151
+ "--button-padding-small": `calc(${y.fonts.rhythm} * ${y.sizes.small.paddingVertical}) calc(${y.fonts.rhythm} * ${y.buttons.paddingHorizontal})`,
152
+ "--button-padding-large": `calc(${y.fonts.rhythm} * ${y.sizes.large.paddingVertical}) calc(${y.fonts.rhythm} * ${y.buttons.paddingHorizontal})`,
153
153
  ...f
154
154
  // Top-level style overrides
155
- }, k = [
156
- $e.button,
157
- o === "small" ? $e.sizeSmall : $e.sizeLarge,
158
- n ? $e.outline : "",
155
+ }, $ = [
156
+ Pe.button,
157
+ s === "small" ? Pe.sizeSmall : Pe.sizeLarge,
158
+ n ? Pe.outline : "",
159
159
  l
160
160
  ].filter(Boolean).join(" ");
161
- return /* @__PURE__ */ S(
161
+ return /* @__PURE__ */ v(
162
162
  "button",
163
163
  {
164
164
  ...u,
165
- className: k,
166
- disabled: s,
165
+ className: $,
166
+ disabled: o,
167
167
  onClick: d,
168
- onMouseEnter: () => x(!0),
169
- onMouseLeave: () => x(!1),
168
+ onMouseEnter: () => w(!0),
169
+ onMouseLeave: () => w(!1),
170
170
  type: a,
171
- style: w,
171
+ style: x,
172
172
  children: h
173
173
  }
174
174
  );
175
175
  };
176
- var Ft = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Hr = new Uint8Array(16);
177
- function Or() {
178
- if (!Ft)
176
+ var Nt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), jr = new Uint8Array(16);
177
+ function Ir() {
178
+ if (!Nt)
179
179
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
180
- return Ft(Hr);
180
+ return Nt(jr);
181
181
  }
182
- var Jt = [];
183
- for (var Ae = 0; Ae < 256; ++Ae)
184
- Jt[Ae] = (Ae + 256).toString(16).substr(1);
185
- function Tr(e, r) {
186
- var t = 0, s = Jt;
187
- return [s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], "-", s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]], s[e[t++]]].join("");
182
+ var or = [];
183
+ for (var Oe = 0; Oe < 256; ++Oe)
184
+ or[Oe] = (Oe + 256).toString(16).substr(1);
185
+ function Wr(e, r) {
186
+ var t = 0, o = or;
187
+ return [o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]]].join("");
188
188
  }
189
- function Xt(e, r, t) {
190
- var s = r && t || 0;
189
+ function sr(e, r, t) {
190
+ var o = r && t || 0;
191
191
  typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
192
- var o = e.random || (e.rng || Or)();
193
- if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, r)
192
+ var s = e.random || (e.rng || Ir)();
193
+ if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, r)
194
194
  for (var n = 0; n < 16; ++n)
195
- r[s + n] = o[n];
196
- return r || Tr(o);
195
+ r[o + n] = s[n];
196
+ return r || Wr(s);
197
197
  }
198
- const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kkluC", Ur = "Checkbox-module__label___cwRtI", qe = {
199
- container: jr,
200
- svg: Ir,
201
- label: Ur
202
- }, Wr = ({
198
+ const Ur = "Checkbox-module__container___aV9qz", qr = "Checkbox-module__svg___kkluC", Gr = "Checkbox-module__label___cwRtI", Je = {
199
+ container: Ur,
200
+ svg: qr,
201
+ label: Gr
202
+ }, Zr = ({
203
203
  color: e = "#000",
204
204
  checkmarkColor: r,
205
205
  disabled: t = !1,
206
- inverted: s = !1
206
+ inverted: o = !1
207
207
  }) => {
208
- let o = e;
209
- return r ? o = r : s && (o = "white"), {
208
+ let s = e;
209
+ return r ? s = r : o && (s = "white"), {
210
210
  checkboxColor: e,
211
- checkmarkColor: o,
211
+ checkmarkColor: s,
212
212
  cursor: t ? "default" : "pointer",
213
213
  opacity: t ? 0.3 : 1
214
214
  };
215
- }, Gr = "FormLabel-module__label___0M-fo", qr = "FormLabel-module__disabled___ktIFp", Vt = {
216
- label: Gr,
217
- disabled: qr
218
- }, Zr = ({
215
+ }, Qr = "FormLabel-module__label___0M-fo", Kr = "FormLabel-module__disabled___ktIFp", Lt = {
216
+ label: Qr,
217
+ disabled: Kr
218
+ }, Yr = ({
219
219
  color: e = "#000",
220
220
  disabled: r = !1,
221
221
  fontSize: t = ".85em"
@@ -224,27 +224,27 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
224
224
  fontSize: t,
225
225
  opacity: r ? 0.5 : 1,
226
226
  cursor: r ? "not-allowed" : "default"
227
- }), it = ({
227
+ }), yt = ({
228
228
  // Color prop
229
229
  color: e,
230
230
  // State props
231
231
  disabled: r = !1,
232
232
  error: t = !1,
233
233
  // Label-specific props
234
- htmlFor: s,
234
+ htmlFor: o,
235
235
  // Content
236
- children: o,
236
+ children: s,
237
237
  // Style overrides
238
238
  className: n,
239
239
  style: a,
240
240
  // Element-specific props
241
241
  labelProps: l
242
242
  }) => {
243
- const f = H(), u = f.colors.error, d = t ? u : e || f.colors.primary, h = Zr({
243
+ const f = I(), u = f.colors.error, d = t ? u : e || f.colors.primary, h = Yr({
244
244
  color: d,
245
245
  disabled: r,
246
246
  fontSize: ".85em"
247
- }), m = {
247
+ }), y = {
248
248
  "--form-label-padding-bottom": `calc(${f.fonts.rhythm} * 0.17)`,
249
249
  color: h.color,
250
250
  fontSize: h.fontSize,
@@ -252,16 +252,16 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
252
252
  cursor: h.cursor,
253
253
  ...a
254
254
  // Top level style prop overrides
255
- }, z = [Vt.label, r ? Vt.disabled : "", n].filter(Boolean).join(" ");
256
- return /* @__PURE__ */ S("label", { ...l, className: z, htmlFor: s, style: m, children: o });
257
- }, rt = ({
255
+ }, V = [Lt.label, r ? Lt.disabled : "", n].filter(Boolean).join(" ");
256
+ return /* @__PURE__ */ v("label", { ...l, className: V, htmlFor: o, style: y, children: s });
257
+ }, lt = ({
258
258
  // Color props
259
259
  color: e,
260
260
  checkmarkColor: r,
261
261
  // State/variant props
262
262
  checked: t = !1,
263
- inverted: s = !1,
264
- disabled: o = !1,
263
+ inverted: o = !1,
264
+ disabled: s = !1,
265
265
  error: n = !1,
266
266
  // Form props
267
267
  name: a,
@@ -271,133 +271,133 @@ const jr = "Checkbox-module__container___aV9qz", Ir = "Checkbox-module__svg___kk
271
271
  labelStyle: d,
272
272
  // Style overrides
273
273
  className: h,
274
- style: m,
274
+ style: y,
275
275
  // Element-specific props
276
- divProps: z
276
+ divProps: V
277
277
  }) => {
278
- const x = H(), g = l || Xt(), w = x.colors.error, k = n ? w : e || x.colors.primary, b = Wr({
279
- color: k,
278
+ const w = I(), g = l || sr(), x = w.colors.error, $ = n ? x : e || w.colors.primary, _ = Zr({
279
+ color: $,
280
280
  checkmarkColor: r,
281
- disabled: o,
282
- inverted: s
283
- }), E = (B) => {
284
- o || f(B);
285
- }, $ = {
286
- cursor: b.cursor,
287
- fontSize: x.fonts.size,
288
- opacity: b.opacity,
289
- ...m
281
+ disabled: s,
282
+ inverted: o
283
+ }), A = (B) => {
284
+ s || f(B);
285
+ }, k = {
286
+ cursor: _.cursor,
287
+ fontSize: w.fonts.size,
288
+ opacity: _.opacity,
289
+ ...y
290
290
  // Top-level style prop overrides
291
- }, A = {
291
+ }, E = {
292
292
  width: "1em"
293
- }, M = {
294
- fill: s && t ? b.checkboxColor : "transparent",
293
+ }, H = {
294
+ fill: o && t ? _.checkboxColor : "transparent",
295
295
  strokeWidth: "25",
296
- stroke: b.checkboxColor
297
- }, O = {
298
- stroke: b.checkmarkColor,
296
+ stroke: _.checkboxColor
297
+ }, R = {
298
+ stroke: _.checkmarkColor,
299
299
  strokeWidth: "15",
300
300
  fill: "transparent"
301
- }, Y = [qe.container, h].filter(Boolean).join(" ");
302
- return /* @__PURE__ */ G("div", { ...z, className: Y, style: $, children: [
303
- /* @__PURE__ */ S(
301
+ }, K = [Je.container, h].filter(Boolean).join(" ");
302
+ return /* @__PURE__ */ U("div", { ...V, className: K, style: k, children: [
303
+ /* @__PURE__ */ v(
304
304
  "input",
305
305
  {
306
306
  id: g,
307
307
  checked: t,
308
- disabled: o,
309
- onChange: (B) => E({ target: { checked: B.target.checked, name: a, type: "checkbox" } }),
308
+ disabled: s,
309
+ onChange: (B) => A({ target: { checked: B.target.checked, name: a, type: "checkbox" } }),
310
310
  name: a,
311
311
  style: { display: "none" },
312
312
  type: "checkbox"
313
313
  }
314
314
  ),
315
- /* @__PURE__ */ G(
315
+ /* @__PURE__ */ U(
316
316
  "svg",
317
317
  {
318
318
  xmlns: "http://www.w3.org/2000/svg",
319
319
  viewBox: "0 0 100 100",
320
- onClick: () => E({ target: { checked: !t, name: a, type: "checkbox" } }),
321
- style: A,
322
- className: qe.svg,
320
+ onClick: () => A({ target: { checked: !t, name: a, type: "checkbox" } }),
321
+ style: E,
322
+ className: Je.svg,
323
323
  children: [
324
- /* @__PURE__ */ S("rect", { x: "0", y: "0", height: "100", width: "100", style: M }),
325
- t && /* @__PURE__ */ S("path", { d: "M 25 45 L 45 65 L 75 30", style: O })
324
+ /* @__PURE__ */ v("rect", { x: "0", y: "0", height: "100", width: "100", style: H }),
325
+ t && /* @__PURE__ */ v("path", { d: "M 25 45 L 45 65 L 75 30", style: R })
326
326
  ]
327
327
  }
328
328
  ),
329
- u && /* @__PURE__ */ S(
330
- it,
329
+ u && /* @__PURE__ */ v(
330
+ yt,
331
331
  {
332
332
  htmlFor: g,
333
- className: qe.label,
333
+ className: Je.label,
334
334
  style: { paddingBottom: 0, ...d },
335
- color: b.checkboxColor,
336
- disabled: o,
335
+ color: _.checkboxColor,
336
+ disabled: s,
337
337
  error: n,
338
338
  children: u
339
339
  }
340
340
  )
341
341
  ] });
342
- }, on = () => {
343
- const e = H();
344
- return Ar(() => {
342
+ }, xn = () => {
343
+ const e = I();
344
+ return Pr(() => {
345
345
  const r = document.documentElement;
346
346
  e.fonts && (e.fonts.fontFamily && r.style.setProperty("--font-family", e.fonts.fontFamily), e.fonts.size && r.style.setProperty("--font-size", e.fonts.size), e.fonts.lineHeight !== void 0 && r.style.setProperty("--line-height", e.fonts.lineHeight.toString()), e.fonts.fontWeightHeader !== void 0 && r.style.setProperty("--font-weight-header", e.fonts.fontWeightHeader.toString()), e.fonts.fontSizeH1 && r.style.setProperty("--font-size-h1", e.fonts.fontSizeH1), e.fonts.fontSizeH2 && r.style.setProperty("--font-size-h2", e.fonts.fontSizeH2), e.fonts.fontSizeH3 && r.style.setProperty("--font-size-h3", e.fonts.fontSizeH3), e.fonts.fontSizeH4 && r.style.setProperty("--font-size-h4", e.fonts.fontSizeH4), e.fonts.fontSizeH5 && r.style.setProperty("--font-size-h5", e.fonts.fontSizeH5), e.fonts.fontSizeH6 && r.style.setProperty("--font-size-h6", e.fonts.fontSizeH6)), e.colors && (e.colors.primary && r.style.setProperty("--primary-color", e.colors.primary), e.colors.secondary && r.style.setProperty("--background-color", e.colors.secondary), e.colors.accent && r.style.setProperty("--accent-color", e.colors.accent)), e.breakpoints && (e.breakpoints.xs && r.style.setProperty("--breakpoint-xs", e.breakpoints.xs), e.breakpoints.sm && r.style.setProperty("--breakpoint-sm", e.breakpoints.sm), e.breakpoints.md && r.style.setProperty("--breakpoint-md", e.breakpoints.md), e.breakpoints.lg && r.style.setProperty("--breakpoint-lg", e.breakpoints.lg)), e.layout && (e.layout.maxWidth && r.style.setProperty("--layout-max-width", e.layout.maxWidth), e.layout.paddingSm && r.style.setProperty("--layout-wrapper-padding-sm", e.layout.paddingSm), e.layout.padding && r.style.setProperty("--layout-wrapper-padding", e.layout.padding));
347
347
  }, [e]), null;
348
348
  };
349
- var Fe = (e) => e.type === "checkbox", de = (e) => e instanceof Date, K = (e) => e == null;
350
- const er = (e) => typeof e == "object";
351
- var U = (e) => !K(e) && !Array.isArray(e) && er(e) && !de(e), tr = (e) => U(e) && e.target ? Fe(e.target) ? e.target.checked : e.target.value : e, Qr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, rr = (e, r) => e.has(Qr(r)), Kr = (e) => {
349
+ var Ae = (e) => e.type === "checkbox", _e = (e) => e instanceof Date, te = (e) => e == null;
350
+ const nr = (e) => typeof e == "object";
351
+ var Z = (e) => !te(e) && !Array.isArray(e) && nr(e) && !_e(e), ar = (e) => Z(e) && e.target ? Ae(e.target) ? e.target.checked : e.target.value : e, Jr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ir = (e, r) => e.has(Jr(r)), Xr = (e) => {
352
352
  const r = e.constructor && e.constructor.prototype;
353
- return U(r) && r.hasOwnProperty("isPrototypeOf");
354
- }, lt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
355
- function W(e) {
353
+ return Z(r) && r.hasOwnProperty("isPrototypeOf");
354
+ }, ht = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
355
+ function Q(e) {
356
356
  let r;
357
- const t = Array.isArray(e), s = typeof FileList < "u" ? e instanceof FileList : !1;
357
+ const t = Array.isArray(e), o = typeof FileList < "u" ? e instanceof FileList : !1;
358
358
  if (e instanceof Date)
359
359
  r = new Date(e);
360
- else if (!(lt && (e instanceof Blob || s)) && (t || U(e)))
361
- if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Kr(e))
360
+ else if (!(ht && (e instanceof Blob || o)) && (t || Z(e)))
361
+ if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Xr(e))
362
362
  r = e;
363
363
  else
364
- for (const o in e)
365
- e.hasOwnProperty(o) && (r[o] = W(e[o]));
364
+ for (const s in e)
365
+ e.hasOwnProperty(s) && (r[s] = Q(e[s]));
366
366
  else
367
367
  return e;
368
368
  return r;
369
369
  }
370
- var Oe = (e) => /^\w*$/.test(e), T = (e) => e === void 0, ct = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ut = (e) => ct(e.replace(/["|']|\]/g, "").split(/\.|\[/)), v = (e, r, t) => {
371
- if (!r || !U(e))
370
+ var Ue = (e) => /^\w*$/.test(e), q = (e) => e === void 0, gt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], _t = (e) => gt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), S = (e, r, t) => {
371
+ if (!r || !Z(e))
372
372
  return t;
373
- const s = (Oe(r) ? [r] : ut(r)).reduce((o, n) => K(o) ? o : o[n], e);
374
- return T(s) || s === e ? T(e[r]) ? t : e[r] : s;
375
- }, ee = (e) => typeof e == "boolean", L = (e, r, t) => {
376
- let s = -1;
377
- const o = Oe(r) ? [r] : ut(r), n = o.length, a = n - 1;
378
- for (; ++s < n; ) {
379
- const l = o[s];
373
+ const o = (Ue(r) ? [r] : _t(r)).reduce((s, n) => te(s) ? s : s[n], e);
374
+ return q(o) || o === e ? q(e[r]) ? t : e[r] : o;
375
+ }, re = (e) => typeof e == "boolean", M = (e, r, t) => {
376
+ let o = -1;
377
+ const s = Ue(r) ? [r] : _t(r), n = s.length, a = n - 1;
378
+ for (; ++o < n; ) {
379
+ const l = s[o];
380
380
  let f = t;
381
- if (s !== a) {
381
+ if (o !== a) {
382
382
  const u = e[l];
383
- f = U(u) || Array.isArray(u) ? u : isNaN(+o[s + 1]) ? {} : [];
383
+ f = Z(u) || Array.isArray(u) ? u : isNaN(+s[o + 1]) ? {} : [];
384
384
  }
385
385
  if (l === "__proto__" || l === "constructor" || l === "prototype")
386
386
  return;
387
387
  e[l] = f, e = e[l];
388
388
  }
389
389
  };
390
- const Re = {
390
+ const Te = {
391
391
  BLUR: "blur",
392
392
  FOCUS_OUT: "focusout",
393
393
  CHANGE: "change"
394
- }, se = {
394
+ }, ie = {
395
395
  onBlur: "onBlur",
396
396
  onChange: "onChange",
397
397
  onSubmit: "onSubmit",
398
398
  onTouched: "onTouched",
399
399
  all: "all"
400
- }, le = {
400
+ }, fe = {
401
401
  max: "max",
402
402
  min: "min",
403
403
  maxLength: "maxLength",
@@ -405,25 +405,25 @@ const Re = {
405
405
  pattern: "pattern",
406
406
  required: "required",
407
407
  validate: "validate"
408
- }, sr = F.createContext(null);
409
- sr.displayName = "HookFormContext";
410
- const dt = () => F.useContext(sr);
411
- var or = (e, r, t, s = !0) => {
412
- const o = {
408
+ }, lr = F.createContext(null);
409
+ lr.displayName = "HookFormContext";
410
+ const pt = () => F.useContext(lr);
411
+ var cr = (e, r, t, o = !0) => {
412
+ const s = {
413
413
  defaultValues: r._defaultValues
414
414
  };
415
415
  for (const n in e)
416
- Object.defineProperty(o, n, {
416
+ Object.defineProperty(s, n, {
417
417
  get: () => {
418
418
  const a = n;
419
- return r._proxyFormState[a] !== se.all && (r._proxyFormState[a] = !s || se.all), t && (t[a] = !0), e[a];
419
+ return r._proxyFormState[a] !== ie.all && (r._proxyFormState[a] = !o || ie.all), t && (t[a] = !0), e[a];
420
420
  }
421
421
  });
422
- return o;
422
+ return s;
423
423
  };
424
- const ft = typeof window < "u" ? F.useLayoutEffect : F.useEffect;
425
- function Yr(e) {
426
- const r = dt(), { control: t = r.control, disabled: s, name: o, exact: n } = e || {}, [a, l] = F.useState(t._formState), f = F.useRef({
424
+ const vt = typeof window < "u" ? F.useLayoutEffect : F.useEffect;
425
+ function eo(e) {
426
+ const r = pt(), { control: t = r.control, disabled: o, name: s, exact: n } = e || {}, [a, l] = F.useState(t._formState), f = F.useRef({
427
427
  isDirty: !1,
428
428
  isLoading: !1,
429
429
  dirtyFields: !1,
@@ -433,193 +433,193 @@ function Yr(e) {
433
433
  isValid: !1,
434
434
  errors: !1
435
435
  });
436
- return ft(() => t._subscribe({
437
- name: o,
436
+ return vt(() => t._subscribe({
437
+ name: s,
438
438
  formState: f.current,
439
439
  exact: n,
440
440
  callback: (u) => {
441
- !s && l({
441
+ !o && l({
442
442
  ...t._formState,
443
443
  ...u
444
444
  });
445
445
  }
446
- }), [o, s, n]), F.useEffect(() => {
446
+ }), [s, o, n]), F.useEffect(() => {
447
447
  f.current.isValid && t._setValid(!0);
448
- }, [t]), F.useMemo(() => or(a, t, f.current, !1), [a, t]);
448
+ }, [t]), F.useMemo(() => cr(a, t, f.current, !1), [a, t]);
449
449
  }
450
- var te = (e) => typeof e == "string", st = (e, r, t, s, o) => te(e) ? (s && r.watch.add(e), v(t, e, o)) : Array.isArray(e) ? e.map((n) => (s && r.watch.add(n), v(t, n))) : (s && (r.watchAll = !0), t), ot = (e) => K(e) || !er(e);
451
- function oe(e, r, t = /* @__PURE__ */ new WeakSet()) {
452
- if (ot(e) || ot(r))
450
+ var oe = (e) => typeof e == "string", ct = (e, r, t, o, s) => oe(e) ? (o && r.watch.add(e), S(t, e, s)) : Array.isArray(e) ? e.map((n) => (o && r.watch.add(n), S(t, n))) : (o && (r.watchAll = !0), t), ut = (e) => te(e) || !nr(e);
451
+ function le(e, r, t = /* @__PURE__ */ new WeakSet()) {
452
+ if (ut(e) || ut(r))
453
453
  return e === r;
454
- if (de(e) && de(r))
454
+ if (_e(e) && _e(r))
455
455
  return e.getTime() === r.getTime();
456
- const s = Object.keys(e), o = Object.keys(r);
457
- if (s.length !== o.length)
456
+ const o = Object.keys(e), s = Object.keys(r);
457
+ if (o.length !== s.length)
458
458
  return !1;
459
459
  if (t.has(e) || t.has(r))
460
460
  return !0;
461
461
  t.add(e), t.add(r);
462
- for (const n of s) {
462
+ for (const n of o) {
463
463
  const a = e[n];
464
- if (!o.includes(n))
464
+ if (!s.includes(n))
465
465
  return !1;
466
466
  if (n !== "ref") {
467
467
  const l = r[n];
468
- if (de(a) && de(l) || U(a) && U(l) || Array.isArray(a) && Array.isArray(l) ? !oe(a, l, t) : a !== l)
468
+ if (_e(a) && _e(l) || Z(a) && Z(l) || Array.isArray(a) && Array.isArray(l) ? !le(a, l, t) : a !== l)
469
469
  return !1;
470
470
  }
471
471
  }
472
472
  return !0;
473
473
  }
474
- function Jr(e) {
475
- const r = dt(), { control: t = r.control, name: s, defaultValue: o, disabled: n, exact: a, compute: l } = e || {}, f = F.useRef(o), u = F.useRef(l), d = F.useRef(void 0), h = F.useRef(t), m = F.useRef(s);
474
+ function to(e) {
475
+ const r = pt(), { control: t = r.control, name: o, defaultValue: s, disabled: n, exact: a, compute: l } = e || {}, f = F.useRef(s), u = F.useRef(l), d = F.useRef(void 0), h = F.useRef(t), y = F.useRef(o);
476
476
  u.current = l;
477
- const [z, x] = F.useState(() => {
478
- const $ = t._getWatch(s, f.current);
479
- return u.current ? u.current($) : $;
480
- }), g = F.useCallback(($) => {
481
- const A = st(s, t._names, $ || t._formValues, !1, f.current);
482
- return u.current ? u.current(A) : A;
483
- }, [t._formValues, t._names, s]), w = F.useCallback(($) => {
477
+ const [V, w] = F.useState(() => {
478
+ const k = t._getWatch(o, f.current);
479
+ return u.current ? u.current(k) : k;
480
+ }), g = F.useCallback((k) => {
481
+ const E = ct(o, t._names, k || t._formValues, !1, f.current);
482
+ return u.current ? u.current(E) : E;
483
+ }, [t._formValues, t._names, o]), x = F.useCallback((k) => {
484
484
  if (!n) {
485
- const A = st(s, t._names, $ || t._formValues, !1, f.current);
485
+ const E = ct(o, t._names, k || t._formValues, !1, f.current);
486
486
  if (u.current) {
487
- const M = u.current(A);
488
- oe(M, d.current) || (x(M), d.current = M);
487
+ const H = u.current(E);
488
+ le(H, d.current) || (w(H), d.current = H);
489
489
  } else
490
- x(A);
490
+ w(E);
491
491
  }
492
- }, [t._formValues, t._names, n, s]);
493
- ft(() => ((h.current !== t || !oe(m.current, s)) && (h.current = t, m.current = s, w()), t._subscribe({
494
- name: s,
492
+ }, [t._formValues, t._names, n, o]);
493
+ vt(() => ((h.current !== t || !le(y.current, o)) && (h.current = t, y.current = o, x()), t._subscribe({
494
+ name: o,
495
495
  formState: {
496
496
  values: !0
497
497
  },
498
498
  exact: a,
499
- callback: ($) => {
500
- w($.values);
499
+ callback: (k) => {
500
+ x(k.values);
501
501
  }
502
- })), [t, a, s, w]), F.useEffect(() => t._removeUnmounted());
503
- const k = h.current !== t, b = m.current, E = F.useMemo(() => {
502
+ })), [t, a, o, x]), F.useEffect(() => t._removeUnmounted());
503
+ const $ = h.current !== t, _ = y.current, A = F.useMemo(() => {
504
504
  if (n)
505
505
  return null;
506
- const $ = !k && !oe(b, s);
507
- return k || $ ? g() : null;
508
- }, [n, k, s, b, g]);
509
- return E !== null ? E : z;
506
+ const k = !$ && !le(_, o);
507
+ return $ || k ? g() : null;
508
+ }, [n, $, o, _, g]);
509
+ return A !== null ? A : V;
510
510
  }
511
- function Xr(e) {
512
- const r = dt(), { name: t, disabled: s, control: o = r.control, shouldUnregister: n, defaultValue: a } = e, l = rr(o._names.array, t), f = F.useMemo(() => v(o._formValues, t, v(o._defaultValues, t, a)), [o, t, a]), u = Jr({
513
- control: o,
511
+ function ro(e) {
512
+ const r = pt(), { name: t, disabled: o, control: s = r.control, shouldUnregister: n, defaultValue: a } = e, l = ir(s._names.array, t), f = F.useMemo(() => S(s._formValues, t, S(s._defaultValues, t, a)), [s, t, a]), u = to({
513
+ control: s,
514
514
  name: t,
515
515
  defaultValue: f,
516
516
  exact: !0
517
- }), d = Yr({
518
- control: o,
517
+ }), d = eo({
518
+ control: s,
519
519
  name: t,
520
520
  exact: !0
521
- }), h = F.useRef(e), m = F.useRef(void 0), z = F.useRef(o.register(t, {
521
+ }), h = F.useRef(e), y = F.useRef(void 0), V = F.useRef(s.register(t, {
522
522
  ...e.rules,
523
523
  value: u,
524
- ...ee(e.disabled) ? { disabled: e.disabled } : {}
524
+ ...re(e.disabled) ? { disabled: e.disabled } : {}
525
525
  }));
526
526
  h.current = e;
527
- const x = F.useMemo(() => Object.defineProperties({}, {
527
+ const w = F.useMemo(() => Object.defineProperties({}, {
528
528
  invalid: {
529
529
  enumerable: !0,
530
- get: () => !!v(d.errors, t)
530
+ get: () => !!S(d.errors, t)
531
531
  },
532
532
  isDirty: {
533
533
  enumerable: !0,
534
- get: () => !!v(d.dirtyFields, t)
534
+ get: () => !!S(d.dirtyFields, t)
535
535
  },
536
536
  isTouched: {
537
537
  enumerable: !0,
538
- get: () => !!v(d.touchedFields, t)
538
+ get: () => !!S(d.touchedFields, t)
539
539
  },
540
540
  isValidating: {
541
541
  enumerable: !0,
542
- get: () => !!v(d.validatingFields, t)
542
+ get: () => !!S(d.validatingFields, t)
543
543
  },
544
544
  error: {
545
545
  enumerable: !0,
546
- get: () => v(d.errors, t)
546
+ get: () => S(d.errors, t)
547
547
  }
548
- }), [d, t]), g = F.useCallback((E) => z.current.onChange({
548
+ }), [d, t]), g = F.useCallback((A) => V.current.onChange({
549
549
  target: {
550
- value: tr(E),
550
+ value: ar(A),
551
551
  name: t
552
552
  },
553
- type: Re.CHANGE
554
- }), [t]), w = F.useCallback(() => z.current.onBlur({
553
+ type: Te.CHANGE
554
+ }), [t]), x = F.useCallback(() => V.current.onBlur({
555
555
  target: {
556
- value: v(o._formValues, t),
556
+ value: S(s._formValues, t),
557
557
  name: t
558
558
  },
559
- type: Re.BLUR
560
- }), [t, o._formValues]), k = F.useCallback((E) => {
561
- const $ = v(o._fields, t);
562
- $ && E && ($._f.ref = {
563
- focus: () => E.focus && E.focus(),
564
- select: () => E.select && E.select(),
565
- setCustomValidity: (A) => E.setCustomValidity(A),
566
- reportValidity: () => E.reportValidity()
559
+ type: Te.BLUR
560
+ }), [t, s._formValues]), $ = F.useCallback((A) => {
561
+ const k = S(s._fields, t);
562
+ k && A && (k._f.ref = {
563
+ focus: () => A.focus && A.focus(),
564
+ select: () => A.select && A.select(),
565
+ setCustomValidity: (E) => A.setCustomValidity(E),
566
+ reportValidity: () => A.reportValidity()
567
567
  });
568
- }, [o._fields, t]), b = F.useMemo(() => ({
568
+ }, [s._fields, t]), _ = F.useMemo(() => ({
569
569
  name: t,
570
570
  value: u,
571
- ...ee(s) || d.disabled ? { disabled: d.disabled || s } : {},
571
+ ...re(o) || d.disabled ? { disabled: d.disabled || o } : {},
572
572
  onChange: g,
573
- onBlur: w,
574
- ref: k
575
- }), [t, s, d.disabled, g, w, k, u]);
573
+ onBlur: x,
574
+ ref: $
575
+ }), [t, o, d.disabled, g, x, $, u]);
576
576
  return F.useEffect(() => {
577
- const E = o._options.shouldUnregister || n, $ = m.current;
578
- $ && $ !== t && !l && o.unregister($), o.register(t, {
577
+ const A = s._options.shouldUnregister || n, k = y.current;
578
+ k && k !== t && !l && s.unregister(k), s.register(t, {
579
579
  ...h.current.rules,
580
- ...ee(h.current.disabled) ? { disabled: h.current.disabled } : {}
580
+ ...re(h.current.disabled) ? { disabled: h.current.disabled } : {}
581
581
  });
582
- const A = (M, O) => {
583
- const Y = v(o._fields, M);
584
- Y && Y._f && (Y._f.mount = O);
582
+ const E = (H, R) => {
583
+ const K = S(s._fields, H);
584
+ K && K._f && (K._f.mount = R);
585
585
  };
586
- if (A(t, !0), E) {
587
- const M = W(v(o._options.defaultValues, t, h.current.defaultValue));
588
- L(o._defaultValues, t, M), T(v(o._formValues, t)) && L(o._formValues, t, M);
586
+ if (E(t, !0), A) {
587
+ const H = Q(S(s._options.defaultValues, t, h.current.defaultValue));
588
+ M(s._defaultValues, t, H), q(S(s._formValues, t)) && M(s._formValues, t, H);
589
589
  }
590
- return !l && o.register(t), m.current = t, () => {
591
- (l ? E && !o._state.action : E) ? o.unregister(t) : A(t, !1);
590
+ return !l && s.register(t), y.current = t, () => {
591
+ (l ? A && !s._state.action : A) ? s.unregister(t) : E(t, !1);
592
592
  };
593
- }, [t, o, l, n]), F.useEffect(() => {
594
- o._setDisabledField({
595
- disabled: s,
593
+ }, [t, s, l, n]), F.useEffect(() => {
594
+ s._setDisabledField({
595
+ disabled: o,
596
596
  name: t
597
597
  });
598
- }, [s, t, o]), F.useMemo(() => ({
599
- field: b,
598
+ }, [o, t, s]), F.useMemo(() => ({
599
+ field: _,
600
600
  formState: d,
601
- fieldState: x
602
- }), [b, d, x]);
601
+ fieldState: w
602
+ }), [_, d, w]);
603
603
  }
604
- var yt = (e, r, t, s, o) => r ? {
604
+ var bt = (e, r, t, o, s) => r ? {
605
605
  ...t[e],
606
606
  types: {
607
607
  ...t[e] && t[e].types ? t[e].types : {},
608
- [s]: o || !0
608
+ [o]: s || !0
609
609
  }
610
- } : {}, Se = (e) => Array.isArray(e) ? e : [e], zt = () => {
610
+ } : {}, ze = (e) => Array.isArray(e) ? e : [e], Bt = () => {
611
611
  let e = [];
612
612
  return {
613
613
  get observers() {
614
614
  return e;
615
615
  },
616
- next: (o) => {
616
+ next: (s) => {
617
617
  for (const n of e)
618
- n.next && n.next(o);
618
+ n.next && n.next(s);
619
619
  },
620
- subscribe: (o) => (e.push(o), {
620
+ subscribe: (s) => (e.push(s), {
621
621
  unsubscribe: () => {
622
- e = e.filter((n) => n !== o);
622
+ e = e.filter((n) => n !== s);
623
623
  }
624
624
  }),
625
625
  unsubscribe: () => {
@@ -627,66 +627,66 @@ var yt = (e, r, t, s, o) => r ? {
627
627
  }
628
628
  };
629
629
  };
630
- function nr(e, r) {
630
+ function ur(e, r) {
631
631
  const t = {};
632
- for (const s in e)
633
- if (e.hasOwnProperty(s)) {
634
- const o = e[s], n = r[s];
635
- if (o && U(o) && n) {
636
- const a = nr(o, n);
637
- U(a) && (t[s] = a);
638
- } else e[s] && (t[s] = n);
632
+ for (const o in e)
633
+ if (e.hasOwnProperty(o)) {
634
+ const s = e[o], n = r[o];
635
+ if (s && Z(s) && n) {
636
+ const a = ur(s, n);
637
+ Z(a) && (t[o] = a);
638
+ } else e[o] && (t[o] = n);
639
639
  }
640
640
  return t;
641
641
  }
642
- var Z = (e) => U(e) && !Object.keys(e).length, mt = (e) => e.type === "file", ne = (e) => typeof e == "function", Le = (e) => {
643
- if (!lt)
642
+ var ee = (e) => Z(e) && !Object.keys(e).length, St = (e) => e.type === "file", ce = (e) => typeof e == "function", je = (e) => {
643
+ if (!ht)
644
644
  return !1;
645
645
  const r = e ? e.ownerDocument : 0;
646
646
  return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
647
- }, ar = (e) => e.type === "select-multiple", ht = (e) => e.type === "radio", es = (e) => ht(e) || Fe(e), Ze = (e) => Le(e) && e.isConnected;
648
- function ts(e, r) {
647
+ }, dr = (e) => e.type === "select-multiple", wt = (e) => e.type === "radio", oo = (e) => wt(e) || Ae(e), Xe = (e) => je(e) && e.isConnected;
648
+ function so(e, r) {
649
649
  const t = r.slice(0, -1).length;
650
- let s = 0;
651
- for (; s < t; )
652
- e = T(e) ? s++ : e[r[s++]];
650
+ let o = 0;
651
+ for (; o < t; )
652
+ e = q(e) ? o++ : e[r[o++]];
653
653
  return e;
654
654
  }
655
- function rs(e) {
655
+ function no(e) {
656
656
  for (const r in e)
657
- if (e.hasOwnProperty(r) && !T(e[r]))
657
+ if (e.hasOwnProperty(r) && !q(e[r]))
658
658
  return !1;
659
659
  return !0;
660
660
  }
661
- function I(e, r) {
662
- const t = Array.isArray(r) ? r : Oe(r) ? [r] : ut(r), s = t.length === 1 ? e : ts(e, t), o = t.length - 1, n = t[o];
663
- return s && delete s[n], o !== 0 && (U(s) && Z(s) || Array.isArray(s) && rs(s)) && I(e, t.slice(0, -1)), e;
661
+ function G(e, r) {
662
+ const t = Array.isArray(r) ? r : Ue(r) ? [r] : _t(r), o = t.length === 1 ? e : so(e, t), s = t.length - 1, n = t[s];
663
+ return o && delete o[n], s !== 0 && (Z(o) && ee(o) || Array.isArray(o) && no(o)) && G(e, t.slice(0, -1)), e;
664
664
  }
665
- var ss = (e) => {
665
+ var ao = (e) => {
666
666
  for (const r in e)
667
- if (ne(e[r]))
667
+ if (ce(e[r]))
668
668
  return !0;
669
669
  return !1;
670
670
  };
671
- function ir(e) {
672
- return Array.isArray(e) || U(e) && !ss(e);
671
+ function fr(e) {
672
+ return Array.isArray(e) || Z(e) && !ao(e);
673
673
  }
674
- function nt(e, r = {}) {
674
+ function dt(e, r = {}) {
675
675
  for (const t in e)
676
- ir(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, nt(e[t], r[t])) : T(e[t]) || (r[t] = !0);
676
+ fr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, dt(e[t], r[t])) : q(e[t]) || (r[t] = !0);
677
677
  return r;
678
678
  }
679
- function _e(e, r, t) {
680
- t || (t = nt(r));
681
- for (const s in e)
682
- ir(e[s]) ? T(r) || ot(t[s]) ? t[s] = nt(e[s], Array.isArray(e[s]) ? [] : {}) : _e(e[s], K(r) ? {} : r[s], t[s]) : t[s] = !oe(e[s], r[s]);
679
+ function Ce(e, r, t) {
680
+ t || (t = dt(r));
681
+ for (const o in e)
682
+ fr(e[o]) ? q(r) || ut(t[o]) ? t[o] = dt(e[o], Array.isArray(e[o]) ? [] : {}) : Ce(e[o], te(r) ? {} : r[o], t[o]) : t[o] = !le(e[o], r[o]);
683
683
  return t;
684
684
  }
685
- const $t = {
685
+ const Pt = {
686
686
  value: !1,
687
687
  isValid: !1
688
- }, Et = { value: !0, isValid: !0 };
689
- var lr = (e) => {
688
+ }, Rt = { value: !0, isValid: !0 };
689
+ var mr = (e) => {
690
690
  if (Array.isArray(e)) {
691
691
  if (e.length > 1) {
692
692
  const r = e.filter((t) => t && t.checked && !t.disabled).map((t) => t.value);
@@ -694,71 +694,71 @@ var lr = (e) => {
694
694
  }
695
695
  return e[0].checked && !e[0].disabled ? (
696
696
  // @ts-expect-error expected to work in the browser
697
- e[0].attributes && !T(e[0].attributes.value) ? T(e[0].value) || e[0].value === "" ? Et : { value: e[0].value, isValid: !0 } : Et
698
- ) : $t;
697
+ e[0].attributes && !q(e[0].attributes.value) ? q(e[0].value) || e[0].value === "" ? Rt : { value: e[0].value, isValid: !0 } : Rt
698
+ ) : Pt;
699
699
  }
700
- return $t;
701
- }, cr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => T(e) ? e : r ? e === "" ? NaN : e && +e : t && te(e) ? new Date(e) : s ? s(e) : e;
702
- const At = {
700
+ return Pt;
701
+ }, yr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: o }) => q(e) ? e : r ? e === "" ? NaN : e && +e : t && oe(e) ? new Date(e) : o ? o(e) : e;
702
+ const Ot = {
703
703
  isValid: !1,
704
704
  value: null
705
705
  };
706
- var ur = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
706
+ var hr = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
707
707
  isValid: !0,
708
708
  value: t.value
709
- } : r, At) : At;
710
- function Nt(e) {
709
+ } : r, Ot) : Ot;
710
+ function Dt(e) {
711
711
  const r = e.ref;
712
- return mt(r) ? r.files : ht(r) ? ur(e.refs).value : ar(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Fe(r) ? lr(e.refs).value : cr(T(r.value) ? e.ref.value : r.value, e);
712
+ return St(r) ? r.files : wt(r) ? hr(e.refs).value : dr(r) ? [...r.selectedOptions].map(({ value: t }) => t) : Ae(r) ? mr(e.refs).value : yr(q(r.value) ? e.ref.value : r.value, e);
713
713
  }
714
- var os = (e, r, t, s) => {
715
- const o = {};
714
+ var io = (e, r, t, o) => {
715
+ const s = {};
716
716
  for (const n of e) {
717
- const a = v(r, n);
718
- a && L(o, n, a._f);
717
+ const a = S(r, n);
718
+ a && M(s, n, a._f);
719
719
  }
720
720
  return {
721
721
  criteriaMode: t,
722
722
  names: [...e],
723
- fields: o,
724
- shouldUseNativeValidation: s
723
+ fields: s,
724
+ shouldUseNativeValidation: o
725
725
  };
726
- }, De = (e) => e instanceof RegExp, ve = (e) => T(e) ? e : De(e) ? e.source : U(e) ? De(e.value) ? e.value.source : e.value : e, Bt = (e) => ({
727
- isOnSubmit: !e || e === se.onSubmit,
728
- isOnBlur: e === se.onBlur,
729
- isOnChange: e === se.onChange,
730
- isOnAll: e === se.all,
731
- isOnTouch: e === se.onTouched
726
+ }, Ie = (e) => e instanceof RegExp, Fe = (e) => q(e) ? e : Ie(e) ? e.source : Z(e) ? Ie(e.value) ? e.value.source : e.value : e, Mt = (e) => ({
727
+ isOnSubmit: !e || e === ie.onSubmit,
728
+ isOnBlur: e === ie.onBlur,
729
+ isOnChange: e === ie.onChange,
730
+ isOnAll: e === ie.all,
731
+ isOnTouch: e === ie.onTouched
732
732
  });
733
- const Pt = "AsyncFunction";
734
- var ns = (e) => !!e && !!e.validate && !!(ne(e.validate) && e.validate.constructor.name === Pt || U(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Pt)), as = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Rt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
735
- const Ce = (e, r, t, s) => {
736
- for (const o of t || Object.keys(e)) {
737
- const n = v(e, o);
733
+ const Ht = "AsyncFunction";
734
+ var lo = (e) => !!e && !!e.validate && !!(ce(e.validate) && e.validate.constructor.name === Ht || Z(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === Ht)), co = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), Tt = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((o) => e.startsWith(o) && /^\.\w+/.test(e.slice(o.length))));
735
+ const Ee = (e, r, t, o) => {
736
+ for (const s of t || Object.keys(e)) {
737
+ const n = S(e, s);
738
738
  if (n) {
739
739
  const { _f: a, ...l } = n;
740
740
  if (a) {
741
- if (a.refs && a.refs[0] && r(a.refs[0], o) && !s)
741
+ if (a.refs && a.refs[0] && r(a.refs[0], s) && !o)
742
742
  return !0;
743
- if (a.ref && r(a.ref, a.name) && !s)
743
+ if (a.ref && r(a.ref, a.name) && !o)
744
744
  return !0;
745
- if (Ce(l, r))
745
+ if (Ee(l, r))
746
746
  break;
747
- } else if (U(l) && Ce(l, r))
747
+ } else if (Z(l) && Ee(l, r))
748
748
  break;
749
749
  }
750
750
  }
751
751
  };
752
- function Lt(e, r, t) {
753
- const s = v(e, t);
754
- if (s || Oe(t))
752
+ function jt(e, r, t) {
753
+ const o = S(e, t);
754
+ if (o || Ue(t))
755
755
  return {
756
- error: s,
756
+ error: o,
757
757
  name: t
758
758
  };
759
- const o = t.split(".");
760
- for (; o.length; ) {
761
- const n = o.join("."), a = v(r, n), l = v(e, n);
759
+ const s = t.split(".");
760
+ for (; s.length; ) {
761
+ const n = s.join("."), a = S(r, n), l = S(e, n);
762
762
  if (a && !Array.isArray(a) && t !== n)
763
763
  return { name: t };
764
764
  if (l && l.type)
@@ -771,126 +771,126 @@ function Lt(e, r, t) {
771
771
  name: `${n}.root`,
772
772
  error: l.root
773
773
  };
774
- o.pop();
774
+ s.pop();
775
775
  }
776
776
  return {
777
777
  name: t
778
778
  };
779
779
  }
780
- var is = (e, r, t, s) => {
780
+ var uo = (e, r, t, o) => {
781
781
  t(e);
782
- const { name: o, ...n } = e;
783
- return Z(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!s || se.all));
784
- }, ls = (e, r, t) => !e || !r || e === r || Se(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), cs = (e, r, t, s, o) => o.isOnAll ? !1 : !t && o.isOnTouch ? !(r || e) : (t ? s.isOnBlur : o.isOnBlur) ? !e : (t ? s.isOnChange : o.isOnChange) ? e : !0, us = (e, r) => !ct(v(e, r)).length && I(e, r), ds = (e, r, t) => {
785
- const s = Se(v(e, t));
786
- return L(s, "root", r[t]), L(e, t, s), e;
782
+ const { name: s, ...n } = e;
783
+ return ee(n) || Object.keys(n).length >= Object.keys(r).length || Object.keys(n).find((a) => r[a] === (!o || ie.all));
784
+ }, fo = (e, r, t) => !e || !r || e === r || ze(e).some((o) => o && (t ? o === r : o.startsWith(r) || r.startsWith(o))), mo = (e, r, t, o, s) => s.isOnAll ? !1 : !t && s.isOnTouch ? !(r || e) : (t ? o.isOnBlur : s.isOnBlur) ? !e : (t ? o.isOnChange : s.isOnChange) ? e : !0, yo = (e, r) => !gt(S(e, r)).length && G(e, r), ho = (e, r, t) => {
785
+ const o = ze(S(e, t));
786
+ return M(o, "root", r[t]), M(e, t, o), e;
787
787
  };
788
- function Dt(e, r, t = "validate") {
789
- if (te(e) || Array.isArray(e) && e.every(te) || ee(e) && !e)
788
+ function It(e, r, t = "validate") {
789
+ if (oe(e) || Array.isArray(e) && e.every(oe) || re(e) && !e)
790
790
  return {
791
791
  type: t,
792
- message: te(e) ? e : "",
792
+ message: oe(e) ? e : "",
793
793
  ref: r
794
794
  };
795
795
  }
796
- var me = (e) => U(e) && !De(e) ? e : {
796
+ var be = (e) => Z(e) && !Ie(e) ? e : {
797
797
  value: e,
798
798
  message: ""
799
- }, Mt = async (e, r, t, s, o, n) => {
800
- const { ref: a, refs: l, required: f, maxLength: u, minLength: d, min: h, max: m, pattern: z, validate: x, name: g, valueAsNumber: w, mount: k } = e._f, b = v(t, g);
801
- if (!k || r.has(g))
799
+ }, Wt = async (e, r, t, o, s, n) => {
800
+ const { ref: a, refs: l, required: f, maxLength: u, minLength: d, min: h, max: y, pattern: V, validate: w, name: g, valueAsNumber: x, mount: $ } = e._f, _ = S(t, g);
801
+ if (!$ || r.has(g))
802
802
  return {};
803
- const E = l ? l[0] : a, $ = (N) => {
804
- o && E.reportValidity && (E.setCustomValidity(ee(N) ? "" : N || ""), E.reportValidity());
805
- }, A = {}, M = ht(a), O = Fe(a), Y = M || O, B = (w || mt(a)) && T(a.value) && T(b) || Le(a) && a.value === "" || b === "" || Array.isArray(b) && !b.length, J = yt.bind(null, g, s, A), X = (N, P, j, q = le.maxLength, Q = le.minLength) => {
806
- const ie = N ? P : j;
807
- A[g] = {
808
- type: N ? q : Q,
809
- message: ie,
803
+ const A = l ? l[0] : a, k = (N) => {
804
+ s && A.reportValidity && (A.setCustomValidity(re(N) ? "" : N || ""), A.reportValidity());
805
+ }, E = {}, H = wt(a), R = Ae(a), K = H || R, B = (x || St(a)) && q(a.value) && q(_) || je(a) && a.value === "" || _ === "" || Array.isArray(_) && !_.length, Y = bt.bind(null, g, o, E), J = (N, L, P, j = fe.maxLength, W = fe.minLength) => {
806
+ const se = N ? L : P;
807
+ E[g] = {
808
+ type: N ? j : W,
809
+ message: se,
810
810
  ref: a,
811
- ...J(N ? q : Q, ie)
811
+ ...Y(N ? j : W, se)
812
812
  };
813
813
  };
814
- if (n ? !Array.isArray(b) || !b.length : f && (!Y && (B || K(b)) || ee(b) && !b || O && !lr(l).isValid || M && !ur(l).isValid)) {
815
- const { value: N, message: P } = te(f) ? { value: !!f, message: f } : me(f);
816
- if (N && (A[g] = {
817
- type: le.required,
818
- message: P,
819
- ref: E,
820
- ...J(le.required, P)
821
- }, !s))
822
- return $(P), A;
814
+ if (n ? !Array.isArray(_) || !_.length : f && (!K && (B || te(_)) || re(_) && !_ || R && !mr(l).isValid || H && !hr(l).isValid)) {
815
+ const { value: N, message: L } = oe(f) ? { value: !!f, message: f } : be(f);
816
+ if (N && (E[g] = {
817
+ type: fe.required,
818
+ message: L,
819
+ ref: A,
820
+ ...Y(fe.required, L)
821
+ }, !o))
822
+ return k(L), E;
823
823
  }
824
- if (!B && (!K(h) || !K(m))) {
825
- let N, P;
826
- const j = me(m), q = me(h);
827
- if (!K(b) && !isNaN(b)) {
828
- const Q = a.valueAsNumber || b && +b;
829
- K(j.value) || (N = Q > j.value), K(q.value) || (P = Q < q.value);
824
+ if (!B && (!te(h) || !te(y))) {
825
+ let N, L;
826
+ const P = be(y), j = be(h);
827
+ if (!te(_) && !isNaN(_)) {
828
+ const W = a.valueAsNumber || _ && +_;
829
+ te(P.value) || (N = W > P.value), te(j.value) || (L = W < j.value);
830
830
  } else {
831
- const Q = a.valueAsDate || new Date(b), ie = (Ve) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Ve), pe = a.type == "time", ye = a.type == "week";
832
- te(j.value) && b && (N = pe ? ie(b) > ie(j.value) : ye ? b > j.value : Q > new Date(j.value)), te(q.value) && b && (P = pe ? ie(b) < ie(q.value) : ye ? b < q.value : Q < new Date(q.value));
831
+ const W = a.valueAsDate || new Date(_), se = (X) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + X), he = a.type == "time", O = a.type == "week";
832
+ oe(P.value) && _ && (N = he ? se(_) > se(P.value) : O ? _ > P.value : W > new Date(P.value)), oe(j.value) && _ && (L = he ? se(_) < se(j.value) : O ? _ < j.value : W < new Date(j.value));
833
833
  }
834
- if ((N || P) && (X(!!N, j.message, q.message, le.max, le.min), !s))
835
- return $(A[g].message), A;
834
+ if ((N || L) && (J(!!N, P.message, j.message, fe.max, fe.min), !o))
835
+ return k(E[g].message), E;
836
836
  }
837
- if ((u || d) && !B && (te(b) || n && Array.isArray(b))) {
838
- const N = me(u), P = me(d), j = !K(N.value) && b.length > +N.value, q = !K(P.value) && b.length < +P.value;
839
- if ((j || q) && (X(j, N.message, P.message), !s))
840
- return $(A[g].message), A;
837
+ if ((u || d) && !B && (oe(_) || n && Array.isArray(_))) {
838
+ const N = be(u), L = be(d), P = !te(N.value) && _.length > +N.value, j = !te(L.value) && _.length < +L.value;
839
+ if ((P || j) && (J(P, N.message, L.message), !o))
840
+ return k(E[g].message), E;
841
841
  }
842
- if (z && !B && te(b)) {
843
- const { value: N, message: P } = me(z);
844
- if (De(N) && !b.match(N) && (A[g] = {
845
- type: le.pattern,
846
- message: P,
842
+ if (V && !B && oe(_)) {
843
+ const { value: N, message: L } = be(V);
844
+ if (Ie(N) && !_.match(N) && (E[g] = {
845
+ type: fe.pattern,
846
+ message: L,
847
847
  ref: a,
848
- ...J(le.pattern, P)
849
- }, !s))
850
- return $(P), A;
848
+ ...Y(fe.pattern, L)
849
+ }, !o))
850
+ return k(L), E;
851
851
  }
852
- if (x) {
853
- if (ne(x)) {
854
- const N = await x(b, t), P = Dt(N, E);
855
- if (P && (A[g] = {
856
- ...P,
857
- ...J(le.validate, P.message)
858
- }, !s))
859
- return $(P.message), A;
860
- } else if (U(x)) {
852
+ if (w) {
853
+ if (ce(w)) {
854
+ const N = await w(_, t), L = It(N, A);
855
+ if (L && (E[g] = {
856
+ ...L,
857
+ ...Y(fe.validate, L.message)
858
+ }, !o))
859
+ return k(L.message), E;
860
+ } else if (Z(w)) {
861
861
  let N = {};
862
- for (const P in x) {
863
- if (!Z(N) && !s)
862
+ for (const L in w) {
863
+ if (!ee(N) && !o)
864
864
  break;
865
- const j = Dt(await x[P](b, t), E, P);
866
- j && (N = {
867
- ...j,
868
- ...J(P, j.message)
869
- }, $(j.message), s && (A[g] = N));
865
+ const P = It(await w[L](_, t), A, L);
866
+ P && (N = {
867
+ ...P,
868
+ ...Y(L, P.message)
869
+ }, k(P.message), o && (E[g] = N));
870
870
  }
871
- if (!Z(N) && (A[g] = {
872
- ref: E,
871
+ if (!ee(N) && (E[g] = {
872
+ ref: A,
873
873
  ...N
874
- }, !s))
875
- return A;
874
+ }, !o))
875
+ return E;
876
876
  }
877
877
  }
878
- return $(!0), A;
878
+ return k(!0), E;
879
879
  };
880
- const fs = {
881
- mode: se.onSubmit,
882
- reValidateMode: se.onChange,
880
+ const go = {
881
+ mode: ie.onSubmit,
882
+ reValidateMode: ie.onChange,
883
883
  shouldFocusError: !0
884
884
  };
885
- function ys(e = {}) {
885
+ function _o(e = {}) {
886
886
  let r = {
887
- ...fs,
887
+ ...go,
888
888
  ...e
889
889
  }, t = {
890
890
  submitCount: 0,
891
891
  isDirty: !1,
892
892
  isReady: !1,
893
- isLoading: ne(r.defaultValues),
893
+ isLoading: ce(r.defaultValues),
894
894
  isValidating: !1,
895
895
  isSubmitted: !1,
896
896
  isSubmitting: !1,
@@ -901,7 +901,7 @@ function ys(e = {}) {
901
901
  validatingFields: {},
902
902
  errors: r.errors || {},
903
903
  disabled: r.disabled || !1
904
- }, s = {}, o = U(r.defaultValues) || U(r.values) ? W(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : W(o), a = {
904
+ }, o = {}, s = Z(r.defaultValues) || Z(r.values) ? Q(r.defaultValues || r.values) || {} : {}, n = r.shouldUnregister ? {} : Q(s), a = {
905
905
  action: !1,
906
906
  mount: !1,
907
907
  watch: !1
@@ -924,396 +924,396 @@ function ys(e = {}) {
924
924
  let h = {
925
925
  ...d
926
926
  };
927
- const m = {
928
- array: zt(),
929
- state: zt()
930
- }, z = r.criteriaMode === se.all, x = (i) => (c) => {
927
+ const y = {
928
+ array: Bt(),
929
+ state: Bt()
930
+ }, V = r.criteriaMode === ie.all, w = (i) => (c) => {
931
931
  clearTimeout(u), u = setTimeout(i, c);
932
932
  }, g = async (i) => {
933
933
  if (!r.disabled && (d.isValid || h.isValid || i)) {
934
- const c = r.resolver ? Z((await O()).errors) : await B(s, !0);
935
- c !== t.isValid && m.state.next({
934
+ const c = r.resolver ? ee((await R()).errors) : await B(o, !0);
935
+ c !== t.isValid && y.state.next({
936
936
  isValid: c
937
937
  });
938
938
  }
939
- }, w = (i, c) => {
940
- !r.disabled && (d.isValidating || d.validatingFields || h.isValidating || h.validatingFields) && ((i || Array.from(l.mount)).forEach((y) => {
941
- y && (c ? L(t.validatingFields, y, c) : I(t.validatingFields, y));
942
- }), m.state.next({
939
+ }, x = (i, c) => {
940
+ !r.disabled && (d.isValidating || d.validatingFields || h.isValidating || h.validatingFields) && ((i || Array.from(l.mount)).forEach((m) => {
941
+ m && (c ? M(t.validatingFields, m, c) : G(t.validatingFields, m));
942
+ }), y.state.next({
943
943
  validatingFields: t.validatingFields,
944
- isValidating: !Z(t.validatingFields)
944
+ isValidating: !ee(t.validatingFields)
945
945
  }));
946
- }, k = (i, c = [], y, C, p = !0, _ = !0) => {
947
- if (C && y && !r.disabled) {
948
- if (a.action = !0, _ && Array.isArray(v(s, i))) {
949
- const V = y(v(s, i), C.argA, C.argB);
950
- p && L(s, i, V);
946
+ }, $ = (i, c = [], m, C, b = !0, p = !0) => {
947
+ if (C && m && !r.disabled) {
948
+ if (a.action = !0, p && Array.isArray(S(o, i))) {
949
+ const z = m(S(o, i), C.argA, C.argB);
950
+ b && M(o, i, z);
951
951
  }
952
- if (_ && Array.isArray(v(t.errors, i))) {
953
- const V = y(v(t.errors, i), C.argA, C.argB);
954
- p && L(t.errors, i, V), us(t.errors, i);
952
+ if (p && Array.isArray(S(t.errors, i))) {
953
+ const z = m(S(t.errors, i), C.argA, C.argB);
954
+ b && M(t.errors, i, z), yo(t.errors, i);
955
955
  }
956
- if ((d.touchedFields || h.touchedFields) && _ && Array.isArray(v(t.touchedFields, i))) {
957
- const V = y(v(t.touchedFields, i), C.argA, C.argB);
958
- p && L(t.touchedFields, i, V);
956
+ if ((d.touchedFields || h.touchedFields) && p && Array.isArray(S(t.touchedFields, i))) {
957
+ const z = m(S(t.touchedFields, i), C.argA, C.argB);
958
+ b && M(t.touchedFields, i, z);
959
959
  }
960
- (d.dirtyFields || h.dirtyFields) && (t.dirtyFields = _e(o, n)), m.state.next({
960
+ (d.dirtyFields || h.dirtyFields) && (t.dirtyFields = Ce(s, n)), y.state.next({
961
961
  name: i,
962
- isDirty: X(i, c),
962
+ isDirty: J(i, c),
963
963
  dirtyFields: t.dirtyFields,
964
964
  errors: t.errors,
965
965
  isValid: t.isValid
966
966
  });
967
967
  } else
968
- L(n, i, c);
969
- }, b = (i, c) => {
970
- L(t.errors, i, c), m.state.next({
968
+ M(n, i, c);
969
+ }, _ = (i, c) => {
970
+ M(t.errors, i, c), y.state.next({
971
971
  errors: t.errors
972
972
  });
973
- }, E = (i) => {
974
- t.errors = i, m.state.next({
973
+ }, A = (i) => {
974
+ t.errors = i, y.state.next({
975
975
  errors: t.errors,
976
976
  isValid: !1
977
977
  });
978
- }, $ = (i, c, y, C) => {
979
- const p = v(s, i);
980
- if (p) {
981
- const _ = v(n, i, T(y) ? v(o, i) : y);
982
- T(_) || C && C.defaultChecked || c ? L(n, i, c ? _ : Nt(p._f)) : j(i, _), a.mount && g();
978
+ }, k = (i, c, m, C) => {
979
+ const b = S(o, i);
980
+ if (b) {
981
+ const p = S(n, i, q(m) ? S(s, i) : m);
982
+ q(p) || C && C.defaultChecked || c ? M(n, i, c ? p : Dt(b._f)) : P(i, p), a.mount && g();
983
983
  }
984
- }, A = (i, c, y, C, p) => {
985
- let _ = !1, V = !1;
986
- const R = {
984
+ }, E = (i, c, m, C, b) => {
985
+ let p = !1, z = !1;
986
+ const D = {
987
987
  name: i
988
988
  };
989
989
  if (!r.disabled) {
990
- if (!y || C) {
991
- (d.isDirty || h.isDirty) && (V = t.isDirty, t.isDirty = R.isDirty = X(), _ = V !== R.isDirty);
992
- const D = oe(v(o, i), c);
993
- V = !!v(t.dirtyFields, i), D ? I(t.dirtyFields, i) : L(t.dirtyFields, i, !0), R.dirtyFields = t.dirtyFields, _ = _ || (d.dirtyFields || h.dirtyFields) && V !== !D;
990
+ if (!m || C) {
991
+ (d.isDirty || h.isDirty) && (z = t.isDirty, t.isDirty = D.isDirty = J(), p = z !== D.isDirty);
992
+ const T = le(S(s, i), c);
993
+ z = !!S(t.dirtyFields, i), T ? G(t.dirtyFields, i) : M(t.dirtyFields, i, !0), D.dirtyFields = t.dirtyFields, p = p || (d.dirtyFields || h.dirtyFields) && z !== !T;
994
994
  }
995
- if (y) {
996
- const D = v(t.touchedFields, i);
997
- D || (L(t.touchedFields, i, y), R.touchedFields = t.touchedFields, _ = _ || (d.touchedFields || h.touchedFields) && D !== y);
995
+ if (m) {
996
+ const T = S(t.touchedFields, i);
997
+ T || (M(t.touchedFields, i, m), D.touchedFields = t.touchedFields, p = p || (d.touchedFields || h.touchedFields) && T !== m);
998
998
  }
999
- _ && p && m.state.next(R);
999
+ p && b && y.state.next(D);
1000
1000
  }
1001
- return _ ? R : {};
1002
- }, M = (i, c, y, C) => {
1003
- const p = v(t.errors, i), _ = (d.isValid || h.isValid) && ee(c) && t.isValid !== c;
1004
- if (r.delayError && y ? (f = x(() => b(i, y)), f(r.delayError)) : (clearTimeout(u), f = null, y ? L(t.errors, i, y) : I(t.errors, i)), (y ? !oe(p, y) : p) || !Z(C) || _) {
1005
- const V = {
1001
+ return p ? D : {};
1002
+ }, H = (i, c, m, C) => {
1003
+ const b = S(t.errors, i), p = (d.isValid || h.isValid) && re(c) && t.isValid !== c;
1004
+ if (r.delayError && m ? (f = w(() => _(i, m)), f(r.delayError)) : (clearTimeout(u), f = null, m ? M(t.errors, i, m) : G(t.errors, i)), (m ? !le(b, m) : b) || !ee(C) || p) {
1005
+ const z = {
1006
1006
  ...C,
1007
- ..._ && ee(c) ? { isValid: c } : {},
1007
+ ...p && re(c) ? { isValid: c } : {},
1008
1008
  errors: t.errors,
1009
1009
  name: i
1010
1010
  };
1011
1011
  t = {
1012
1012
  ...t,
1013
- ...V
1014
- }, m.state.next(V);
1013
+ ...z
1014
+ }, y.state.next(z);
1015
1015
  }
1016
- }, O = async (i) => {
1017
- w(i, !0);
1018
- const c = await r.resolver(n, r.context, os(i || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
1019
- return w(i), c;
1020
- }, Y = async (i) => {
1021
- const { errors: c } = await O(i);
1016
+ }, R = async (i) => {
1017
+ x(i, !0);
1018
+ const c = await r.resolver(n, r.context, io(i || l.mount, o, r.criteriaMode, r.shouldUseNativeValidation));
1019
+ return x(i), c;
1020
+ }, K = async (i) => {
1021
+ const { errors: c } = await R(i);
1022
1022
  if (i)
1023
- for (const y of i) {
1024
- const C = v(c, y);
1025
- C ? L(t.errors, y, C) : I(t.errors, y);
1023
+ for (const m of i) {
1024
+ const C = S(c, m);
1025
+ C ? M(t.errors, m, C) : G(t.errors, m);
1026
1026
  }
1027
1027
  else
1028
1028
  t.errors = c;
1029
1029
  return c;
1030
- }, B = async (i, c, y = {
1030
+ }, B = async (i, c, m = {
1031
1031
  valid: !0
1032
1032
  }) => {
1033
1033
  for (const C in i) {
1034
- const p = i[C];
1035
- if (p) {
1036
- const { _f: _, ...V } = p;
1037
- if (_) {
1038
- const R = l.array.has(_.name), D = p._f && ns(p._f);
1039
- D && d.validatingFields && w([_.name], !0);
1040
- const re = await Mt(p, l.disabled, n, z, r.shouldUseNativeValidation && !c, R);
1041
- if (D && d.validatingFields && w([_.name]), re[_.name] && (y.valid = !1, c))
1034
+ const b = i[C];
1035
+ if (b) {
1036
+ const { _f: p, ...z } = b;
1037
+ if (p) {
1038
+ const D = l.array.has(p.name), T = b._f && lo(b._f);
1039
+ T && d.validatingFields && x([p.name], !0);
1040
+ const ne = await Wt(b, l.disabled, n, V, r.shouldUseNativeValidation && !c, D);
1041
+ if (T && d.validatingFields && x([p.name]), ne[p.name] && (m.valid = !1, c))
1042
1042
  break;
1043
- !c && (v(re, _.name) ? R ? ds(t.errors, re, _.name) : L(t.errors, _.name, re[_.name]) : I(t.errors, _.name));
1043
+ !c && (S(ne, p.name) ? D ? ho(t.errors, ne, p.name) : M(t.errors, p.name, ne[p.name]) : G(t.errors, p.name));
1044
1044
  }
1045
- !Z(V) && await B(V, c, y);
1045
+ !ee(z) && await B(z, c, m);
1046
1046
  }
1047
1047
  }
1048
- return y.valid;
1049
- }, J = () => {
1048
+ return m.valid;
1049
+ }, Y = () => {
1050
1050
  for (const i of l.unMount) {
1051
- const c = v(s, i);
1052
- c && (c._f.refs ? c._f.refs.every((y) => !Ze(y)) : !Ze(c._f.ref)) && Te(i);
1051
+ const c = S(o, i);
1052
+ c && (c._f.refs ? c._f.refs.every((m) => !Xe(m)) : !Xe(c._f.ref)) && qe(i);
1053
1053
  }
1054
1054
  l.unMount = /* @__PURE__ */ new Set();
1055
- }, X = (i, c) => !r.disabled && (i && c && L(n, i, c), !oe(Ve(), o)), N = (i, c, y) => st(i, l, {
1056
- ...a.mount ? n : T(c) ? o : te(i) ? { [i]: c } : c
1057
- }, y, c), P = (i) => ct(v(a.mount ? n : o, i, r.shouldUnregister ? v(o, i, []) : [])), j = (i, c, y = {}) => {
1058
- const C = v(s, i);
1059
- let p = c;
1055
+ }, J = (i, c) => !r.disabled && (i && c && M(n, i, c), !le(X(), s)), N = (i, c, m) => ct(i, l, {
1056
+ ...a.mount ? n : q(c) ? s : oe(i) ? { [i]: c } : c
1057
+ }, m, c), L = (i) => gt(S(a.mount ? n : s, i, r.shouldUnregister ? S(s, i, []) : [])), P = (i, c, m = {}) => {
1058
+ const C = S(o, i);
1059
+ let b = c;
1060
1060
  if (C) {
1061
- const _ = C._f;
1062
- _ && (!_.disabled && L(n, i, cr(c, _)), p = Le(_.ref) && K(c) ? "" : c, ar(_.ref) ? [..._.ref.options].forEach((V) => V.selected = p.includes(V.value)) : _.refs ? Fe(_.ref) ? _.refs.forEach((V) => {
1063
- (!V.defaultChecked || !V.disabled) && (Array.isArray(p) ? V.checked = !!p.find((R) => R === V.value) : V.checked = p === V.value || !!p);
1064
- }) : _.refs.forEach((V) => V.checked = V.value === p) : mt(_.ref) ? _.ref.value = "" : (_.ref.value = p, _.ref.type || m.state.next({
1061
+ const p = C._f;
1062
+ p && (!p.disabled && M(n, i, yr(c, p)), b = je(p.ref) && te(c) ? "" : c, dr(p.ref) ? [...p.ref.options].forEach((z) => z.selected = b.includes(z.value)) : p.refs ? Ae(p.ref) ? p.refs.forEach((z) => {
1063
+ (!z.defaultChecked || !z.disabled) && (Array.isArray(b) ? z.checked = !!b.find((D) => D === z.value) : z.checked = b === z.value || !!b);
1064
+ }) : p.refs.forEach((z) => z.checked = z.value === b) : St(p.ref) ? p.ref.value = "" : (p.ref.value = b, p.ref.type || y.state.next({
1065
1065
  name: i,
1066
- values: W(n)
1066
+ values: Q(n)
1067
1067
  })));
1068
1068
  }
1069
- (y.shouldDirty || y.shouldTouch) && A(i, p, y.shouldTouch, y.shouldDirty, !0), y.shouldValidate && ye(i);
1070
- }, q = (i, c, y) => {
1069
+ (m.shouldDirty || m.shouldTouch) && E(i, b, m.shouldTouch, m.shouldDirty, !0), m.shouldValidate && O(i);
1070
+ }, j = (i, c, m) => {
1071
1071
  for (const C in c) {
1072
1072
  if (!c.hasOwnProperty(C))
1073
1073
  return;
1074
- const p = c[C], _ = i + "." + C, V = v(s, _);
1075
- (l.array.has(i) || U(p) || V && !V._f) && !de(p) ? q(_, p, y) : j(_, p, y);
1074
+ const b = c[C], p = i + "." + C, z = S(o, p);
1075
+ (l.array.has(i) || Z(b) || z && !z._f) && !_e(b) ? j(p, b, m) : P(p, b, m);
1076
1076
  }
1077
- }, Q = (i, c, y = {}) => {
1078
- const C = v(s, i), p = l.array.has(i), _ = W(c);
1079
- L(n, i, _), p ? (m.array.next({
1077
+ }, W = (i, c, m = {}) => {
1078
+ const C = S(o, i), b = l.array.has(i), p = Q(c);
1079
+ M(n, i, p), b ? (y.array.next({
1080
1080
  name: i,
1081
- values: W(n)
1082
- }), (d.isDirty || d.dirtyFields || h.isDirty || h.dirtyFields) && y.shouldDirty && m.state.next({
1081
+ values: Q(n)
1082
+ }), (d.isDirty || d.dirtyFields || h.isDirty || h.dirtyFields) && m.shouldDirty && y.state.next({
1083
1083
  name: i,
1084
- dirtyFields: _e(o, n),
1085
- isDirty: X(i, _)
1086
- })) : C && !C._f && !K(_) ? q(i, _, y) : j(i, _, y), Rt(i, l) && m.state.next({ ...t, name: i }), m.state.next({
1084
+ dirtyFields: Ce(s, n),
1085
+ isDirty: J(i, p)
1086
+ })) : C && !C._f && !te(p) ? j(i, p, m) : P(i, p, m), Tt(i, l) && y.state.next({ ...t, name: i }), y.state.next({
1087
1087
  name: a.mount ? i : void 0,
1088
- values: W(n)
1088
+ values: Q(n)
1089
1089
  });
1090
- }, ie = async (i) => {
1090
+ }, se = async (i) => {
1091
1091
  a.mount = !0;
1092
1092
  const c = i.target;
1093
- let y = c.name, C = !0;
1094
- const p = v(s, y), _ = (D) => {
1095
- C = Number.isNaN(D) || de(D) && isNaN(D.getTime()) || oe(D, v(n, y, D));
1096
- }, V = Bt(r.mode), R = Bt(r.reValidateMode);
1097
- if (p) {
1098
- let D, re;
1099
- const ze = c.type ? Nt(p._f) : tr(i), ce = i.type === Re.BLUR || i.type === Re.FOCUS_OUT, zr = !as(p._f) && !r.resolver && !v(t.errors, y) && !p._f.deps || cs(ce, v(t.touchedFields, y), t.isSubmitted, R, V), Ue = Rt(y, l, ce);
1100
- L(n, y, ze), ce ? (!c || !c.readOnly) && (p._f.onBlur && p._f.onBlur(i), f && f(0)) : p._f.onChange && p._f.onChange(i);
1101
- const We = A(y, ze, ce), $r = !Z(We) || Ue;
1102
- if (!ce && m.state.next({
1103
- name: y,
1093
+ let m = c.name, C = !0;
1094
+ const b = S(o, m), p = (T) => {
1095
+ C = Number.isNaN(T) || _e(T) && isNaN(T.getTime()) || le(T, S(n, m, T));
1096
+ }, z = Mt(r.mode), D = Mt(r.reValidateMode);
1097
+ if (b) {
1098
+ let T, ne;
1099
+ const Le = c.type ? Dt(b._f) : ar(i), me = i.type === Te.BLUR || i.type === Te.FOCUS_OUT, Nr = !co(b._f) && !r.resolver && !S(t.errors, m) && !b._f.deps || mo(me, S(t.touchedFields, m), t.isSubmitted, D, z), Qe = Tt(m, l, me);
1100
+ M(n, m, Le), me ? (!c || !c.readOnly) && (b._f.onBlur && b._f.onBlur(i), f && f(0)) : b._f.onChange && b._f.onChange(i);
1101
+ const Ke = E(m, Le, me), Lr = !ee(Ke) || Qe;
1102
+ if (!me && y.state.next({
1103
+ name: m,
1104
1104
  type: i.type,
1105
- values: W(n)
1106
- }), zr)
1107
- return (d.isValid || h.isValid) && (r.mode === "onBlur" ? ce && g() : ce || g()), $r && m.state.next({ name: y, ...Ue ? {} : We });
1108
- if (!ce && Ue && m.state.next({ ...t }), r.resolver) {
1109
- const { errors: wt } = await O([y]);
1110
- if (_(ze), C) {
1111
- const Er = Lt(t.errors, s, y), kt = Lt(wt, s, Er.name || y);
1112
- D = kt.error, y = kt.name, re = Z(wt);
1105
+ values: Q(n)
1106
+ }), Nr)
1107
+ return (d.isValid || h.isValid) && (r.mode === "onBlur" ? me && g() : me || g()), Lr && y.state.next({ name: m, ...Qe ? {} : Ke });
1108
+ if (!me && Qe && y.state.next({ ...t }), r.resolver) {
1109
+ const { errors: $t } = await R([m]);
1110
+ if (p(Le), C) {
1111
+ const Br = jt(t.errors, o, m), At = jt($t, o, Br.name || m);
1112
+ T = At.error, m = At.name, ne = ee($t);
1113
1113
  }
1114
1114
  } else
1115
- w([y], !0), D = (await Mt(p, l.disabled, n, z, r.shouldUseNativeValidation))[y], w([y]), _(ze), C && (D ? re = !1 : (d.isValid || h.isValid) && (re = await B(s, !0)));
1116
- C && (p._f.deps && (!Array.isArray(p._f.deps) || p._f.deps.length > 0) && ye(p._f.deps), M(y, re, D, We));
1115
+ x([m], !0), T = (await Wt(b, l.disabled, n, V, r.shouldUseNativeValidation))[m], x([m]), p(Le), C && (T ? ne = !1 : (d.isValid || h.isValid) && (ne = await B(o, !0)));
1116
+ C && (b._f.deps && (!Array.isArray(b._f.deps) || b._f.deps.length > 0) && O(b._f.deps), H(m, ne, T, Ke));
1117
1117
  }
1118
- }, pe = (i, c) => {
1119
- if (v(t.errors, c) && i.focus)
1118
+ }, he = (i, c) => {
1119
+ if (S(t.errors, c) && i.focus)
1120
1120
  return i.focus(), 1;
1121
- }, ye = async (i, c = {}) => {
1122
- let y, C;
1123
- const p = Se(i);
1121
+ }, O = async (i, c = {}) => {
1122
+ let m, C;
1123
+ const b = ze(i);
1124
1124
  if (r.resolver) {
1125
- const _ = await Y(T(i) ? i : p);
1126
- y = Z(_), C = i ? !p.some((V) => v(_, V)) : y;
1127
- } else i ? (C = (await Promise.all(p.map(async (_) => {
1128
- const V = v(s, _);
1129
- return await B(V && V._f ? { [_]: V } : V);
1130
- }))).every(Boolean), !(!C && !t.isValid) && g()) : C = y = await B(s);
1131
- return m.state.next({
1132
- ...!te(i) || (d.isValid || h.isValid) && y !== t.isValid ? {} : { name: i },
1133
- ...r.resolver || !i ? { isValid: y } : {},
1125
+ const p = await K(q(i) ? i : b);
1126
+ m = ee(p), C = i ? !b.some((z) => S(p, z)) : m;
1127
+ } else i ? (C = (await Promise.all(b.map(async (p) => {
1128
+ const z = S(o, p);
1129
+ return await B(z && z._f ? { [p]: z } : z);
1130
+ }))).every(Boolean), !(!C && !t.isValid) && g()) : C = m = await B(o);
1131
+ return y.state.next({
1132
+ ...!oe(i) || (d.isValid || h.isValid) && m !== t.isValid ? {} : { name: i },
1133
+ ...r.resolver || !i ? { isValid: m } : {},
1134
1134
  errors: t.errors
1135
- }), c.shouldFocus && !C && Ce(s, pe, i ? p : l.mount), C;
1136
- }, Ve = (i, c) => {
1137
- let y = {
1138
- ...a.mount ? n : o
1135
+ }), c.shouldFocus && !C && Ee(o, he, i ? b : l.mount), C;
1136
+ }, X = (i, c) => {
1137
+ let m = {
1138
+ ...a.mount ? n : s
1139
1139
  };
1140
- return c && (y = nr(c.dirtyFields ? t.dirtyFields : t.touchedFields, y)), T(i) ? y : te(i) ? v(y, i) : i.map((C) => v(y, C));
1141
- }, gt = (i, c) => ({
1142
- invalid: !!v((c || t).errors, i),
1143
- isDirty: !!v((c || t).dirtyFields, i),
1144
- error: v((c || t).errors, i),
1145
- isValidating: !!v(t.validatingFields, i),
1146
- isTouched: !!v((c || t).touchedFields, i)
1147
- }), Sr = (i) => {
1148
- i && Se(i).forEach((c) => I(t.errors, c)), m.state.next({
1140
+ return c && (m = ur(c.dirtyFields ? t.dirtyFields : t.touchedFields, m)), q(i) ? m : oe(i) ? S(m, i) : i.map((C) => S(m, C));
1141
+ }, ke = (i, c) => ({
1142
+ invalid: !!S((c || t).errors, i),
1143
+ isDirty: !!S((c || t).dirtyFields, i),
1144
+ error: S((c || t).errors, i),
1145
+ isValidating: !!S(t.validatingFields, i),
1146
+ isTouched: !!S((c || t).touchedFields, i)
1147
+ }), Ne = (i) => {
1148
+ i && ze(i).forEach((c) => G(t.errors, c)), y.state.next({
1149
1149
  errors: i ? t.errors : {}
1150
1150
  });
1151
- }, _t = (i, c, y) => {
1152
- const C = (v(s, i, { _f: {} })._f || {}).ref, p = v(t.errors, i) || {}, { ref: _, message: V, type: R, ...D } = p;
1153
- L(t.errors, i, {
1154
- ...D,
1151
+ }, Ct = (i, c, m) => {
1152
+ const C = (S(o, i, { _f: {} })._f || {}).ref, b = S(t.errors, i) || {}, { ref: p, message: z, type: D, ...T } = b;
1153
+ M(t.errors, i, {
1154
+ ...T,
1155
1155
  ...c,
1156
1156
  ref: C
1157
- }), m.state.next({
1157
+ }), y.state.next({
1158
1158
  name: i,
1159
1159
  errors: t.errors,
1160
1160
  isValid: !1
1161
- }), y && y.shouldFocus && C && C.focus && C.focus();
1162
- }, Cr = (i, c) => ne(i) ? m.state.subscribe({
1163
- next: (y) => "values" in y && i(N(void 0, c), y)
1164
- }) : N(i, c, !0), pt = (i) => m.state.subscribe({
1161
+ }), m && m.shouldFocus && C && C.focus && C.focus();
1162
+ }, Fr = (i, c) => ce(i) ? y.state.subscribe({
1163
+ next: (m) => "values" in m && i(N(void 0, c), m)
1164
+ }) : N(i, c, !0), xt = (i) => y.state.subscribe({
1165
1165
  next: (c) => {
1166
- ls(i.name, c.name, i.exact) && is(c, i.formState || d, Vr, i.reRenderRoot) && i.callback({
1166
+ fo(i.name, c.name, i.exact) && uo(c, i.formState || d, Ar, i.reRenderRoot) && i.callback({
1167
1167
  values: { ...n },
1168
1168
  ...t,
1169
1169
  ...c,
1170
- defaultValues: o
1170
+ defaultValues: s
1171
1171
  });
1172
1172
  }
1173
- }).unsubscribe, xr = (i) => (a.mount = !0, h = {
1173
+ }).unsubscribe, Vr = (i) => (a.mount = !0, h = {
1174
1174
  ...h,
1175
1175
  ...i.formState
1176
- }, pt({
1176
+ }, xt({
1177
1177
  ...i,
1178
1178
  formState: h
1179
- })), Te = (i, c = {}) => {
1180
- for (const y of i ? Se(i) : l.mount)
1181
- l.mount.delete(y), l.array.delete(y), c.keepValue || (I(s, y), I(n, y)), !c.keepError && I(t.errors, y), !c.keepDirty && I(t.dirtyFields, y), !c.keepTouched && I(t.touchedFields, y), !c.keepIsValidating && I(t.validatingFields, y), !r.shouldUnregister && !c.keepDefaultValue && I(o, y);
1182
- m.state.next({
1183
- values: W(n)
1184
- }), m.state.next({
1179
+ })), qe = (i, c = {}) => {
1180
+ for (const m of i ? ze(i) : l.mount)
1181
+ l.mount.delete(m), l.array.delete(m), c.keepValue || (G(o, m), G(n, m)), !c.keepError && G(t.errors, m), !c.keepDirty && G(t.dirtyFields, m), !c.keepTouched && G(t.touchedFields, m), !c.keepIsValidating && G(t.validatingFields, m), !r.shouldUnregister && !c.keepDefaultValue && G(s, m);
1182
+ y.state.next({
1183
+ values: Q(n)
1184
+ }), y.state.next({
1185
1185
  ...t,
1186
- ...c.keepDirty ? { isDirty: X() } : {}
1186
+ ...c.keepDirty ? { isDirty: J() } : {}
1187
1187
  }), !c.keepIsValid && g();
1188
- }, vt = ({ disabled: i, name: c }) => {
1189
- (ee(i) && a.mount || i || l.disabled.has(c)) && (i ? l.disabled.add(c) : l.disabled.delete(c));
1190
- }, je = (i, c = {}) => {
1191
- let y = v(s, i);
1192
- const C = ee(c.disabled) || ee(r.disabled);
1193
- return L(s, i, {
1194
- ...y || {},
1188
+ }, kt = ({ disabled: i, name: c }) => {
1189
+ (re(i) && a.mount || i || l.disabled.has(c)) && (i ? l.disabled.add(c) : l.disabled.delete(c));
1190
+ }, Ge = (i, c = {}) => {
1191
+ let m = S(o, i);
1192
+ const C = re(c.disabled) || re(r.disabled);
1193
+ return M(o, i, {
1194
+ ...m || {},
1195
1195
  _f: {
1196
- ...y && y._f ? y._f : { ref: { name: i } },
1196
+ ...m && m._f ? m._f : { ref: { name: i } },
1197
1197
  name: i,
1198
1198
  mount: !0,
1199
1199
  ...c
1200
1200
  }
1201
- }), l.mount.add(i), y ? vt({
1202
- disabled: ee(c.disabled) ? c.disabled : r.disabled,
1201
+ }), l.mount.add(i), m ? kt({
1202
+ disabled: re(c.disabled) ? c.disabled : r.disabled,
1203
1203
  name: i
1204
- }) : $(i, !0, c.value), {
1204
+ }) : k(i, !0, c.value), {
1205
1205
  ...C ? { disabled: c.disabled || r.disabled } : {},
1206
1206
  ...r.progressive ? {
1207
1207
  required: !!c.required,
1208
- min: ve(c.min),
1209
- max: ve(c.max),
1210
- minLength: ve(c.minLength),
1211
- maxLength: ve(c.maxLength),
1212
- pattern: ve(c.pattern)
1208
+ min: Fe(c.min),
1209
+ max: Fe(c.max),
1210
+ minLength: Fe(c.minLength),
1211
+ maxLength: Fe(c.maxLength),
1212
+ pattern: Fe(c.pattern)
1213
1213
  } : {},
1214
1214
  name: i,
1215
- onChange: ie,
1216
- onBlur: ie,
1217
- ref: (p) => {
1218
- if (p) {
1219
- je(i, c), y = v(s, i);
1220
- const _ = T(p.value) && p.querySelectorAll && p.querySelectorAll("input,select,textarea")[0] || p, V = es(_), R = y._f.refs || [];
1221
- if (V ? R.find((D) => D === _) : _ === y._f.ref)
1215
+ onChange: se,
1216
+ onBlur: se,
1217
+ ref: (b) => {
1218
+ if (b) {
1219
+ Ge(i, c), m = S(o, i);
1220
+ const p = q(b.value) && b.querySelectorAll && b.querySelectorAll("input,select,textarea")[0] || b, z = oo(p), D = m._f.refs || [];
1221
+ if (z ? D.find((T) => T === p) : p === m._f.ref)
1222
1222
  return;
1223
- L(s, i, {
1223
+ M(o, i, {
1224
1224
  _f: {
1225
- ...y._f,
1226
- ...V ? {
1225
+ ...m._f,
1226
+ ...z ? {
1227
1227
  refs: [
1228
- ...R.filter(Ze),
1229
- _,
1230
- ...Array.isArray(v(o, i)) ? [{}] : []
1228
+ ...D.filter(Xe),
1229
+ p,
1230
+ ...Array.isArray(S(s, i)) ? [{}] : []
1231
1231
  ],
1232
- ref: { type: _.type, name: i }
1233
- } : { ref: _ }
1232
+ ref: { type: p.type, name: i }
1233
+ } : { ref: p }
1234
1234
  }
1235
- }), $(i, !1, void 0, _);
1235
+ }), k(i, !1, void 0, p);
1236
1236
  } else
1237
- y = v(s, i, {}), y._f && (y._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(rr(l.array, i) && a.action) && l.unMount.add(i);
1237
+ m = S(o, i, {}), m._f && (m._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(ir(l.array, i) && a.action) && l.unMount.add(i);
1238
1238
  }
1239
1239
  };
1240
- }, Ie = () => r.shouldFocusError && Ce(s, pe, l.mount), wr = (i) => {
1241
- ee(i) && (m.state.next({ disabled: i }), Ce(s, (c, y) => {
1242
- const C = v(s, y);
1243
- C && (c.disabled = C._f.disabled || i, Array.isArray(C._f.refs) && C._f.refs.forEach((p) => {
1244
- p.disabled = C._f.disabled || i;
1240
+ }, Ze = () => r.shouldFocusError && Ee(o, he, l.mount), zr = (i) => {
1241
+ re(i) && (y.state.next({ disabled: i }), Ee(o, (c, m) => {
1242
+ const C = S(o, m);
1243
+ C && (c.disabled = C._f.disabled || i, Array.isArray(C._f.refs) && C._f.refs.forEach((b) => {
1244
+ b.disabled = C._f.disabled || i;
1245
1245
  }));
1246
1246
  }, 0, !1));
1247
- }, bt = (i, c) => async (y) => {
1247
+ }, Ft = (i, c) => async (m) => {
1248
1248
  let C;
1249
- y && (y.preventDefault && y.preventDefault(), y.persist && y.persist());
1250
- let p = W(n);
1251
- if (m.state.next({
1249
+ m && (m.preventDefault && m.preventDefault(), m.persist && m.persist());
1250
+ let b = Q(n);
1251
+ if (y.state.next({
1252
1252
  isSubmitting: !0
1253
1253
  }), r.resolver) {
1254
- const { errors: _, values: V } = await O();
1255
- t.errors = _, p = W(V);
1254
+ const { errors: p, values: z } = await R();
1255
+ t.errors = p, b = Q(z);
1256
1256
  } else
1257
- await B(s);
1257
+ await B(o);
1258
1258
  if (l.disabled.size)
1259
- for (const _ of l.disabled)
1260
- I(p, _);
1261
- if (I(t.errors, "root"), Z(t.errors)) {
1262
- m.state.next({
1259
+ for (const p of l.disabled)
1260
+ G(b, p);
1261
+ if (G(t.errors, "root"), ee(t.errors)) {
1262
+ y.state.next({
1263
1263
  errors: {}
1264
1264
  });
1265
1265
  try {
1266
- await i(p, y);
1267
- } catch (_) {
1268
- C = _;
1266
+ await i(b, m);
1267
+ } catch (p) {
1268
+ C = p;
1269
1269
  }
1270
1270
  } else
1271
- c && await c({ ...t.errors }, y), Ie(), setTimeout(Ie);
1272
- if (m.state.next({
1271
+ c && await c({ ...t.errors }, m), Ze(), setTimeout(Ze);
1272
+ if (y.state.next({
1273
1273
  isSubmitted: !0,
1274
1274
  isSubmitting: !1,
1275
- isSubmitSuccessful: Z(t.errors) && !C,
1275
+ isSubmitSuccessful: ee(t.errors) && !C,
1276
1276
  submitCount: t.submitCount + 1,
1277
1277
  errors: t.errors
1278
1278
  }), C)
1279
1279
  throw C;
1280
- }, kr = (i, c = {}) => {
1281
- v(s, i) && (T(c.defaultValue) ? Q(i, W(v(o, i))) : (Q(i, c.defaultValue), L(o, i, W(c.defaultValue))), c.keepTouched || I(t.touchedFields, i), c.keepDirty || (I(t.dirtyFields, i), t.isDirty = c.defaultValue ? X(i, W(v(o, i))) : X()), c.keepError || (I(t.errors, i), d.isValid && g()), m.state.next({ ...t }));
1282
- }, St = (i, c = {}) => {
1283
- const y = i ? W(i) : o, C = W(y), p = Z(i), _ = p ? o : C;
1284
- if (c.keepDefaultValues || (o = y), !c.keepValues) {
1280
+ }, Er = (i, c = {}) => {
1281
+ S(o, i) && (q(c.defaultValue) ? W(i, Q(S(s, i))) : (W(i, c.defaultValue), M(s, i, Q(c.defaultValue))), c.keepTouched || G(t.touchedFields, i), c.keepDirty || (G(t.dirtyFields, i), t.isDirty = c.defaultValue ? J(i, Q(S(s, i))) : J()), c.keepError || (G(t.errors, i), d.isValid && g()), y.state.next({ ...t }));
1282
+ }, Vt = (i, c = {}) => {
1283
+ const m = i ? Q(i) : s, C = Q(m), b = ee(i), p = b ? s : C;
1284
+ if (c.keepDefaultValues || (s = m), !c.keepValues) {
1285
1285
  if (c.keepDirtyValues) {
1286
- const V = /* @__PURE__ */ new Set([
1286
+ const z = /* @__PURE__ */ new Set([
1287
1287
  ...l.mount,
1288
- ...Object.keys(_e(o, n))
1288
+ ...Object.keys(Ce(s, n))
1289
1289
  ]);
1290
- for (const R of Array.from(V))
1291
- v(t.dirtyFields, R) ? L(_, R, v(n, R)) : Q(R, v(_, R));
1290
+ for (const D of Array.from(z))
1291
+ S(t.dirtyFields, D) ? M(p, D, S(n, D)) : W(D, S(p, D));
1292
1292
  } else {
1293
- if (lt && T(i))
1294
- for (const V of l.mount) {
1295
- const R = v(s, V);
1296
- if (R && R._f) {
1297
- const D = Array.isArray(R._f.refs) ? R._f.refs[0] : R._f.ref;
1298
- if (Le(D)) {
1299
- const re = D.closest("form");
1300
- if (re) {
1301
- re.reset();
1293
+ if (ht && q(i))
1294
+ for (const z of l.mount) {
1295
+ const D = S(o, z);
1296
+ if (D && D._f) {
1297
+ const T = Array.isArray(D._f.refs) ? D._f.refs[0] : D._f.ref;
1298
+ if (je(T)) {
1299
+ const ne = T.closest("form");
1300
+ if (ne) {
1301
+ ne.reset();
1302
1302
  break;
1303
1303
  }
1304
1304
  }
1305
1305
  }
1306
1306
  }
1307
1307
  if (c.keepFieldsRef)
1308
- for (const V of l.mount)
1309
- Q(V, v(_, V));
1308
+ for (const z of l.mount)
1309
+ W(z, S(p, z));
1310
1310
  else
1311
- s = {};
1311
+ o = {};
1312
1312
  }
1313
- n = r.shouldUnregister ? c.keepDefaultValues ? W(o) : {} : W(_), m.array.next({
1314
- values: { ..._ }
1315
- }), m.state.next({
1316
- values: { ..._ }
1313
+ n = r.shouldUnregister ? c.keepDefaultValues ? Q(s) : {} : Q(p), y.array.next({
1314
+ values: { ...p }
1315
+ }), y.state.next({
1316
+ values: { ...p }
1317
1317
  });
1318
1318
  }
1319
1319
  l = {
@@ -1324,57 +1324,57 @@ function ys(e = {}) {
1324
1324
  watch: /* @__PURE__ */ new Set(),
1325
1325
  watchAll: !1,
1326
1326
  focus: ""
1327
- }, a.mount = !d.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !Z(_), a.watch = !!r.shouldUnregister, m.state.next({
1327
+ }, a.mount = !d.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !ee(p), a.watch = !!r.shouldUnregister, y.state.next({
1328
1328
  submitCount: c.keepSubmitCount ? t.submitCount : 0,
1329
- isDirty: p ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !oe(i, o)),
1329
+ isDirty: b ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !le(i, s)),
1330
1330
  isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
1331
- dirtyFields: p ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? _e(o, n) : t.dirtyFields : c.keepDefaultValues && i ? _e(o, i) : c.keepDirty ? t.dirtyFields : {},
1331
+ dirtyFields: b ? {} : c.keepDirtyValues ? c.keepDefaultValues && n ? Ce(s, n) : t.dirtyFields : c.keepDefaultValues && i ? Ce(s, i) : c.keepDirty ? t.dirtyFields : {},
1332
1332
  touchedFields: c.keepTouched ? t.touchedFields : {},
1333
1333
  errors: c.keepErrors ? t.errors : {},
1334
1334
  isSubmitSuccessful: c.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
1335
1335
  isSubmitting: !1,
1336
- defaultValues: o
1336
+ defaultValues: s
1337
1337
  });
1338
- }, Ct = (i, c) => St(ne(i) ? i(n) : i, c), Fr = (i, c = {}) => {
1339
- const y = v(s, i), C = y && y._f;
1338
+ }, zt = (i, c) => Vt(ce(i) ? i(n) : i, c), $r = (i, c = {}) => {
1339
+ const m = S(o, i), C = m && m._f;
1340
1340
  if (C) {
1341
- const p = C.refs ? C.refs[0] : C.ref;
1342
- p.focus && (p.focus(), c.shouldSelect && ne(p.select) && p.select());
1341
+ const b = C.refs ? C.refs[0] : C.ref;
1342
+ b.focus && (b.focus(), c.shouldSelect && ce(b.select) && b.select());
1343
1343
  }
1344
- }, Vr = (i) => {
1344
+ }, Ar = (i) => {
1345
1345
  t = {
1346
1346
  ...t,
1347
1347
  ...i
1348
1348
  };
1349
- }, xt = {
1349
+ }, Et = {
1350
1350
  control: {
1351
- register: je,
1352
- unregister: Te,
1353
- getFieldState: gt,
1354
- handleSubmit: bt,
1355
- setError: _t,
1356
- _subscribe: pt,
1357
- _runSchema: O,
1358
- _focusError: Ie,
1351
+ register: Ge,
1352
+ unregister: qe,
1353
+ getFieldState: ke,
1354
+ handleSubmit: Ft,
1355
+ setError: Ct,
1356
+ _subscribe: xt,
1357
+ _runSchema: R,
1358
+ _focusError: Ze,
1359
1359
  _getWatch: N,
1360
- _getDirty: X,
1360
+ _getDirty: J,
1361
1361
  _setValid: g,
1362
- _setFieldArray: k,
1363
- _setDisabledField: vt,
1364
- _setErrors: E,
1365
- _getFieldArray: P,
1366
- _reset: St,
1367
- _resetDefaultValues: () => ne(r.defaultValues) && r.defaultValues().then((i) => {
1368
- Ct(i, r.resetOptions), m.state.next({
1362
+ _setFieldArray: $,
1363
+ _setDisabledField: kt,
1364
+ _setErrors: A,
1365
+ _getFieldArray: L,
1366
+ _reset: Vt,
1367
+ _resetDefaultValues: () => ce(r.defaultValues) && r.defaultValues().then((i) => {
1368
+ zt(i, r.resetOptions), y.state.next({
1369
1369
  isLoading: !1
1370
1370
  });
1371
1371
  }),
1372
- _removeUnmounted: J,
1373
- _disableForm: wr,
1374
- _subjects: m,
1372
+ _removeUnmounted: Y,
1373
+ _disableForm: zr,
1374
+ _subjects: y,
1375
1375
  _proxyFormState: d,
1376
1376
  get _fields() {
1377
- return s;
1377
+ return o;
1378
1378
  },
1379
1379
  get _formValues() {
1380
1380
  return n;
@@ -1386,7 +1386,7 @@ function ys(e = {}) {
1386
1386
  a = i;
1387
1387
  },
1388
1388
  get _defaultValues() {
1389
- return o;
1389
+ return s;
1390
1390
  },
1391
1391
  get _names() {
1392
1392
  return l;
@@ -1407,31 +1407,31 @@ function ys(e = {}) {
1407
1407
  };
1408
1408
  }
1409
1409
  },
1410
- subscribe: xr,
1411
- trigger: ye,
1412
- register: je,
1413
- handleSubmit: bt,
1414
- watch: Cr,
1415
- setValue: Q,
1416
- getValues: Ve,
1417
- reset: Ct,
1418
- resetField: kr,
1419
- clearErrors: Sr,
1420
- unregister: Te,
1421
- setError: _t,
1422
- setFocus: Fr,
1423
- getFieldState: gt
1410
+ subscribe: Vr,
1411
+ trigger: O,
1412
+ register: Ge,
1413
+ handleSubmit: Ft,
1414
+ watch: Fr,
1415
+ setValue: W,
1416
+ getValues: X,
1417
+ reset: zt,
1418
+ resetField: Er,
1419
+ clearErrors: Ne,
1420
+ unregister: qe,
1421
+ setError: Ct,
1422
+ setFocus: $r,
1423
+ getFieldState: ke
1424
1424
  };
1425
1425
  return {
1426
- ...xt,
1427
- formControl: xt
1426
+ ...Et,
1427
+ formControl: Et
1428
1428
  };
1429
1429
  }
1430
- function ms(e = {}) {
1431
- const r = F.useRef(void 0), t = F.useRef(void 0), [s, o] = F.useState({
1430
+ function po(e = {}) {
1431
+ const r = F.useRef(void 0), t = F.useRef(void 0), [o, s] = F.useState({
1432
1432
  isDirty: !1,
1433
1433
  isValidating: !1,
1434
- isLoading: ne(e.defaultValues),
1434
+ isLoading: ce(e.defaultValues),
1435
1435
  isSubmitted: !1,
1436
1436
  isSubmitting: !1,
1437
1437
  isSubmitSuccessful: !1,
@@ -1443,29 +1443,29 @@ function ms(e = {}) {
1443
1443
  errors: e.errors || {},
1444
1444
  disabled: e.disabled || !1,
1445
1445
  isReady: !1,
1446
- defaultValues: ne(e.defaultValues) ? void 0 : e.defaultValues
1446
+ defaultValues: ce(e.defaultValues) ? void 0 : e.defaultValues
1447
1447
  });
1448
1448
  if (!r.current)
1449
1449
  if (e.formControl)
1450
1450
  r.current = {
1451
1451
  ...e.formControl,
1452
- formState: s
1453
- }, e.defaultValues && !ne(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
1452
+ formState: o
1453
+ }, e.defaultValues && !ce(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
1454
1454
  else {
1455
- const { formControl: a, ...l } = ys(e);
1455
+ const { formControl: a, ...l } = _o(e);
1456
1456
  r.current = {
1457
1457
  ...l,
1458
- formState: s
1458
+ formState: o
1459
1459
  };
1460
1460
  }
1461
1461
  const n = r.current.control;
1462
- return n._options = e, ft(() => {
1462
+ return n._options = e, vt(() => {
1463
1463
  const a = n._subscribe({
1464
1464
  formState: n._proxyFormState,
1465
- callback: () => o({ ...n._formState }),
1465
+ callback: () => s({ ...n._formState }),
1466
1466
  reRenderRoot: !0
1467
1467
  });
1468
- return o((l) => ({
1468
+ return s((l) => ({
1469
1469
  ...l,
1470
1470
  isReady: !0
1471
1471
  })), n._formState.isReady = !0, a;
@@ -1480,49 +1480,49 @@ function ms(e = {}) {
1480
1480
  }, [n, e.shouldUnregister]), F.useEffect(() => {
1481
1481
  if (n._proxyFormState.isDirty) {
1482
1482
  const a = n._getDirty();
1483
- a !== s.isDirty && n._subjects.state.next({
1483
+ a !== o.isDirty && n._subjects.state.next({
1484
1484
  isDirty: a
1485
1485
  });
1486
1486
  }
1487
- }, [n, s.isDirty]), F.useEffect(() => {
1488
- e.values && !oe(e.values, t.current) ? (n._reset(e.values, {
1487
+ }, [n, o.isDirty]), F.useEffect(() => {
1488
+ e.values && !le(e.values, t.current) ? (n._reset(e.values, {
1489
1489
  keepFieldsRef: !0,
1490
1490
  ...n._options.resetOptions
1491
- }), t.current = e.values, o((a) => ({ ...a }))) : n._resetDefaultValues();
1491
+ }), t.current = e.values, s((a) => ({ ...a }))) : n._resetDefaultValues();
1492
1492
  }, [n, e.values]), F.useEffect(() => {
1493
1493
  n._state.mount || (n._setValid(), n._state.mount = !0), n._state.watch && (n._state.watch = !1, n._subjects.state.next({ ...n._formState })), n._removeUnmounted();
1494
- }), r.current.formState = or(s, n), r.current;
1494
+ }), r.current.formState = cr(o, n), r.current;
1495
1495
  }
1496
- const Ht = (e, r, t) => {
1496
+ const Ut = (e, r, t) => {
1497
1497
  if (e && "reportValidity" in e) {
1498
- const s = v(t, r);
1499
- e.setCustomValidity(s && s.message || ""), e.reportValidity();
1498
+ const o = S(t, r);
1499
+ e.setCustomValidity(o && o.message || ""), e.reportValidity();
1500
1500
  }
1501
- }, at = (e, r) => {
1501
+ }, ft = (e, r) => {
1502
1502
  for (const t in r.fields) {
1503
- const s = r.fields[t];
1504
- s && s.ref && "reportValidity" in s.ref ? Ht(s.ref, t, e) : s && s.refs && s.refs.forEach((o) => Ht(o, t, e));
1503
+ const o = r.fields[t];
1504
+ o && o.ref && "reportValidity" in o.ref ? Ut(o.ref, t, e) : o && o.refs && o.refs.forEach((s) => Ut(s, t, e));
1505
1505
  }
1506
- }, Ot = (e, r) => {
1507
- r.shouldUseNativeValidation && at(e, r);
1506
+ }, qt = (e, r) => {
1507
+ r.shouldUseNativeValidation && ft(e, r);
1508
1508
  const t = {};
1509
- for (const s in e) {
1510
- const o = v(r.fields, s), n = Object.assign(e[s] || {}, { ref: o && o.ref });
1511
- if (hs(r.names || Object.keys(e), s)) {
1512
- const a = Object.assign({}, v(t, s));
1513
- L(a, "root", n), L(t, s, a);
1514
- } else L(t, s, n);
1509
+ for (const o in e) {
1510
+ const s = S(r.fields, o), n = Object.assign(e[o] || {}, { ref: s && s.ref });
1511
+ if (vo(r.names || Object.keys(e), o)) {
1512
+ const a = Object.assign({}, S(t, o));
1513
+ M(a, "root", n), M(t, o, a);
1514
+ } else M(t, o, n);
1515
1515
  }
1516
1516
  return t;
1517
- }, hs = (e, r) => {
1518
- const t = Tt(r);
1519
- return e.some((s) => Tt(s).match(`^${t}\\.\\d+`));
1517
+ }, vo = (e, r) => {
1518
+ const t = Gt(r);
1519
+ return e.some((o) => Gt(o).match(`^${t}\\.\\d+`));
1520
1520
  };
1521
- function Tt(e) {
1521
+ function Gt(e) {
1522
1522
  return e.replace(/\]|\[/g, "");
1523
1523
  }
1524
- function dr(e, r, t) {
1525
- function s(l, f) {
1524
+ function gr(e, r, t) {
1525
+ function o(l, f) {
1526
1526
  var u;
1527
1527
  Object.defineProperty(l, "_zod", {
1528
1528
  value: l._zod ?? {},
@@ -1532,157 +1532,157 @@ function dr(e, r, t) {
1532
1532
  d in l || Object.defineProperty(l, d, { value: a.prototype[d].bind(l) });
1533
1533
  l._zod.constr = a, l._zod.def = f;
1534
1534
  }
1535
- const o = (t == null ? void 0 : t.Parent) ?? Object;
1536
- class n extends o {
1535
+ const s = (t == null ? void 0 : t.Parent) ?? Object;
1536
+ class n extends s {
1537
1537
  }
1538
1538
  Object.defineProperty(n, "name", { value: e });
1539
1539
  function a(l) {
1540
1540
  var f;
1541
1541
  const u = t != null && t.Parent ? new n() : this;
1542
- s(u, l), (f = u._zod).deferred ?? (f.deferred = []);
1542
+ o(u, l), (f = u._zod).deferred ?? (f.deferred = []);
1543
1543
  for (const d of u._zod.deferred)
1544
1544
  d();
1545
1545
  return u;
1546
1546
  }
1547
- return Object.defineProperty(a, "init", { value: s }), Object.defineProperty(a, Symbol.hasInstance, {
1547
+ return Object.defineProperty(a, "init", { value: o }), Object.defineProperty(a, Symbol.hasInstance, {
1548
1548
  value: (l) => {
1549
1549
  var f, u;
1550
1550
  return t != null && t.Parent && l instanceof t.Parent ? !0 : (u = (f = l == null ? void 0 : l._zod) == null ? void 0 : f.traits) == null ? void 0 : u.has(e);
1551
1551
  }
1552
1552
  }), Object.defineProperty(a, "name", { value: e }), a;
1553
1553
  }
1554
- class gs extends Error {
1554
+ class bo extends Error {
1555
1555
  constructor() {
1556
1556
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
1557
1557
  }
1558
1558
  }
1559
- const _s = {};
1560
- function fr(e) {
1561
- return _s;
1559
+ const So = {};
1560
+ function _r(e) {
1561
+ return So;
1562
1562
  }
1563
- function ps(e, r) {
1563
+ function wo(e, r) {
1564
1564
  return typeof r == "bigint" ? r.toString() : r;
1565
1565
  }
1566
- const yr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1566
+ const pr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1567
1567
  };
1568
- function Ne(e) {
1568
+ function De(e) {
1569
1569
  return typeof e == "string" ? e : e == null ? void 0 : e.message;
1570
1570
  }
1571
- function mr(e, r, t) {
1572
- var o, n, a, l, f, u;
1573
- const s = { ...e, path: e.path ?? [] };
1571
+ function vr(e, r, t) {
1572
+ var s, n, a, l, f, u;
1573
+ const o = { ...e, path: e.path ?? [] };
1574
1574
  if (!e.message) {
1575
- const d = Ne((a = (n = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : n.error) == null ? void 0 : a.call(n, e)) ?? Ne((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? Ne((f = t.customError) == null ? void 0 : f.call(t, e)) ?? Ne((u = t.localeError) == null ? void 0 : u.call(t, e)) ?? "Invalid input";
1576
- s.message = d;
1575
+ const d = De((a = (n = (s = e.inst) == null ? void 0 : s._zod.def) == null ? void 0 : n.error) == null ? void 0 : a.call(n, e)) ?? De((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? De((f = t.customError) == null ? void 0 : f.call(t, e)) ?? De((u = t.localeError) == null ? void 0 : u.call(t, e)) ?? "Invalid input";
1576
+ o.message = d;
1577
1577
  }
1578
- return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
1578
+ return delete o.inst, delete o.continue, r != null && r.reportInput || delete o.input, o;
1579
1579
  }
1580
- const hr = (e, r) => {
1580
+ const br = (e, r) => {
1581
1581
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
1582
1582
  value: e._zod,
1583
1583
  enumerable: !1
1584
1584
  }), Object.defineProperty(e, "issues", {
1585
1585
  value: r,
1586
1586
  enumerable: !1
1587
- }), e.message = JSON.stringify(r, ps, 2), Object.defineProperty(e, "toString", {
1587
+ }), e.message = JSON.stringify(r, wo, 2), Object.defineProperty(e, "toString", {
1588
1588
  value: () => e.message,
1589
1589
  enumerable: !1
1590
1590
  });
1591
- }, vs = dr("$ZodError", hr), gr = dr("$ZodError", hr, { Parent: Error }), bs = (e) => (r, t, s, o) => {
1592
- const n = s ? Object.assign(s, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, n);
1591
+ }, Co = gr("$ZodError", br), Sr = gr("$ZodError", br, { Parent: Error }), xo = (e) => (r, t, o, s) => {
1592
+ const n = o ? Object.assign(o, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, n);
1593
1593
  if (a instanceof Promise)
1594
- throw new gs();
1594
+ throw new bo();
1595
1595
  if (a.issues.length) {
1596
- const l = new ((o == null ? void 0 : o.Err) ?? e)(a.issues.map((f) => mr(f, n, fr())));
1597
- throw yr(l, o == null ? void 0 : o.callee), l;
1596
+ const l = new ((s == null ? void 0 : s.Err) ?? e)(a.issues.map((f) => vr(f, n, _r())));
1597
+ throw pr(l, s == null ? void 0 : s.callee), l;
1598
1598
  }
1599
1599
  return a.value;
1600
- }, Ss = /* @__PURE__ */ bs(gr), Cs = (e) => async (r, t, s, o) => {
1601
- const n = s ? Object.assign(s, { async: !0 }) : { async: !0 };
1600
+ }, ko = /* @__PURE__ */ xo(Sr), Fo = (e) => async (r, t, o, s) => {
1601
+ const n = o ? Object.assign(o, { async: !0 }) : { async: !0 };
1602
1602
  let a = r._zod.run({ value: t, issues: [] }, n);
1603
1603
  if (a instanceof Promise && (a = await a), a.issues.length) {
1604
- const l = new ((o == null ? void 0 : o.Err) ?? e)(a.issues.map((f) => mr(f, n, fr())));
1605
- throw yr(l, o == null ? void 0 : o.callee), l;
1604
+ const l = new ((s == null ? void 0 : s.Err) ?? e)(a.issues.map((f) => vr(f, n, _r())));
1605
+ throw pr(l, s == null ? void 0 : s.callee), l;
1606
1606
  }
1607
1607
  return a.value;
1608
- }, xs = /* @__PURE__ */ Cs(gr);
1609
- function jt(e, r) {
1608
+ }, Vo = /* @__PURE__ */ Fo(Sr);
1609
+ function Zt(e, r) {
1610
1610
  try {
1611
1611
  var t = e();
1612
- } catch (s) {
1613
- return r(s);
1612
+ } catch (o) {
1613
+ return r(o);
1614
1614
  }
1615
1615
  return t && t.then ? t.then(void 0, r) : t;
1616
1616
  }
1617
- function ws(e, r) {
1617
+ function zo(e, r) {
1618
1618
  for (var t = {}; e.length; ) {
1619
- var s = e[0], o = s.code, n = s.message, a = s.path.join(".");
1620
- if (!t[a]) if ("unionErrors" in s) {
1621
- var l = s.unionErrors[0].errors[0];
1619
+ var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
1620
+ if (!t[a]) if ("unionErrors" in o) {
1621
+ var l = o.unionErrors[0].errors[0];
1622
1622
  t[a] = { message: l.message, type: l.code };
1623
- } else t[a] = { message: n, type: o };
1624
- if ("unionErrors" in s && s.unionErrors.forEach(function(d) {
1623
+ } else t[a] = { message: n, type: s };
1624
+ if ("unionErrors" in o && o.unionErrors.forEach(function(d) {
1625
1625
  return d.errors.forEach(function(h) {
1626
1626
  return e.push(h);
1627
1627
  });
1628
1628
  }), r) {
1629
- var f = t[a].types, u = f && f[s.code];
1630
- t[a] = yt(a, r, t, o, u ? [].concat(u, s.message) : s.message);
1629
+ var f = t[a].types, u = f && f[o.code];
1630
+ t[a] = bt(a, r, t, s, u ? [].concat(u, o.message) : o.message);
1631
1631
  }
1632
1632
  e.shift();
1633
1633
  }
1634
1634
  return t;
1635
1635
  }
1636
- function ks(e, r) {
1636
+ function Eo(e, r) {
1637
1637
  for (var t = {}; e.length; ) {
1638
- var s = e[0], o = s.code, n = s.message, a = s.path.join(".");
1639
- if (!t[a]) if (s.code === "invalid_union" && s.errors.length > 0) {
1640
- var l = s.errors[0][0];
1638
+ var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
1639
+ if (!t[a]) if (o.code === "invalid_union" && o.errors.length > 0) {
1640
+ var l = o.errors[0][0];
1641
1641
  t[a] = { message: l.message, type: l.code };
1642
- } else t[a] = { message: n, type: o };
1643
- if (s.code === "invalid_union" && s.errors.forEach(function(d) {
1642
+ } else t[a] = { message: n, type: s };
1643
+ if (o.code === "invalid_union" && o.errors.forEach(function(d) {
1644
1644
  return d.forEach(function(h) {
1645
1645
  return e.push(h);
1646
1646
  });
1647
1647
  }), r) {
1648
- var f = t[a].types, u = f && f[s.code];
1649
- t[a] = yt(a, r, t, o, u ? [].concat(u, s.message) : s.message);
1648
+ var f = t[a].types, u = f && f[o.code];
1649
+ t[a] = bt(a, r, t, s, u ? [].concat(u, o.message) : o.message);
1650
1650
  }
1651
1651
  e.shift();
1652
1652
  }
1653
1653
  return t;
1654
1654
  }
1655
- function Fs(e, r, t) {
1656
- if (t === void 0 && (t = {}), (function(s) {
1657
- return "_def" in s && typeof s._def == "object" && "typeName" in s._def;
1658
- })(e)) return function(s, o, n) {
1655
+ function $o(e, r, t) {
1656
+ if (t === void 0 && (t = {}), (function(o) {
1657
+ return "_def" in o && typeof o._def == "object" && "typeName" in o._def;
1658
+ })(e)) return function(o, s, n) {
1659
1659
  try {
1660
- return Promise.resolve(jt(function() {
1661
- return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(a) {
1662
- return n.shouldUseNativeValidation && at({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1660
+ return Promise.resolve(Zt(function() {
1661
+ return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](o, r)).then(function(a) {
1662
+ return n.shouldUseNativeValidation && ft({}, n), { errors: {}, values: t.raw ? Object.assign({}, o) : a };
1663
1663
  });
1664
1664
  }, function(a) {
1665
1665
  if ((function(l) {
1666
1666
  return Array.isArray(l == null ? void 0 : l.issues);
1667
- })(a)) return { values: {}, errors: Ot(ws(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
1667
+ })(a)) return { values: {}, errors: qt(zo(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
1668
1668
  throw a;
1669
1669
  }));
1670
1670
  } catch (a) {
1671
1671
  return Promise.reject(a);
1672
1672
  }
1673
1673
  };
1674
- if ((function(s) {
1675
- return "_zod" in s && typeof s._zod == "object";
1676
- })(e)) return function(s, o, n) {
1674
+ if ((function(o) {
1675
+ return "_zod" in o && typeof o._zod == "object";
1676
+ })(e)) return function(o, s, n) {
1677
1677
  try {
1678
- return Promise.resolve(jt(function() {
1679
- return Promise.resolve((t.mode === "sync" ? Ss : xs)(e, s, r)).then(function(a) {
1680
- return n.shouldUseNativeValidation && at({}, n), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1678
+ return Promise.resolve(Zt(function() {
1679
+ return Promise.resolve((t.mode === "sync" ? ko : Vo)(e, o, r)).then(function(a) {
1680
+ return n.shouldUseNativeValidation && ft({}, n), { errors: {}, values: t.raw ? Object.assign({}, o) : a };
1681
1681
  });
1682
1682
  }, function(a) {
1683
1683
  if ((function(l) {
1684
- return l instanceof vs;
1685
- })(a)) return { values: {}, errors: Ot(ks(a.issues, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
1684
+ return l instanceof Co;
1685
+ })(a)) return { values: {}, errors: qt(Eo(a.issues, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
1686
1686
  throw a;
1687
1687
  }));
1688
1688
  } catch (a) {
@@ -1691,67 +1691,67 @@ function Fs(e, r, t) {
1691
1691
  };
1692
1692
  throw new Error("Invalid input: not a Zod schema");
1693
1693
  }
1694
- const _r = F.createContext(null);
1695
- function Vs() {
1696
- const e = F.useContext(_r);
1694
+ const wr = F.createContext(null);
1695
+ function Ao() {
1696
+ const e = F.useContext(wr);
1697
1697
  if (!e)
1698
1698
  throw new Error("useFormContext must be used within a Form component");
1699
1699
  return e;
1700
1700
  }
1701
- function zs({
1701
+ function No({
1702
1702
  onSubmit: e,
1703
1703
  children: r,
1704
1704
  schema: t,
1705
- defaultValues: s,
1706
- mode: o = "onSubmit",
1705
+ defaultValues: o,
1706
+ mode: s = "onSubmit",
1707
1707
  reValidateMode: n = "onChange",
1708
1708
  className: a,
1709
1709
  style: l,
1710
1710
  formProps: f
1711
1711
  }) {
1712
- const u = ms({
1713
- resolver: t ? Fs(t) : void 0,
1714
- defaultValues: s,
1715
- mode: o,
1712
+ const u = po({
1713
+ resolver: t ? $o(t) : void 0,
1714
+ defaultValues: o,
1715
+ mode: s,
1716
1716
  reValidateMode: n
1717
1717
  }), d = u.handleSubmit(e);
1718
- return /* @__PURE__ */ S(_r.Provider, { value: u, children: /* @__PURE__ */ S("form", { ...f, className: a, style: l, onSubmit: d, children: typeof r == "function" ? r(u) : r }) });
1718
+ return /* @__PURE__ */ v(wr.Provider, { value: u, children: /* @__PURE__ */ v("form", { ...f, className: a, style: l, onSubmit: d, children: typeof r == "function" ? r(u) : r }) });
1719
1719
  }
1720
- const nn = zs, $s = "FormError-module__formError___kaUBn", Es = {
1721
- formError: $s
1722
- }, As = ({
1720
+ const kn = No, Lo = "FormError-module__formError___kaUBn", Bo = {
1721
+ formError: Lo
1722
+ }, Po = ({
1723
1723
  // Color prop
1724
1724
  color: e,
1725
1725
  // Content
1726
1726
  children: r,
1727
1727
  // Style overrides
1728
1728
  className: t,
1729
- style: s,
1729
+ style: o,
1730
1730
  // Element-specific props
1731
- divProps: o
1731
+ divProps: s
1732
1732
  }) => {
1733
- const n = H(), a = {
1733
+ const n = I(), a = {
1734
1734
  "--form-error-margin-top": `calc(${n.fonts.rhythm} * 0.17)`,
1735
1735
  color: e || n.colors.error,
1736
- ...s
1736
+ ...o
1737
1737
  // Top level style prop overrides
1738
- }, l = [Es.formError, t].filter(Boolean).join(" ");
1739
- return /* @__PURE__ */ S("div", { ...o, className: l, style: a, role: "alert", "aria-live": "polite", children: r });
1740
- }, Ns = "FormGroup-module__formGroup___aVI-B", Bs = "FormGroup-module__inputWrapper___429QE", Ps = "FormGroup-module__indented___t61iz", Rs = "FormGroup-module__disabled___W-tJ0", Ls = "FormGroup-module__required___mO3xA", he = {
1741
- formGroup: Ns,
1742
- inputWrapper: Bs,
1743
- indented: Ps,
1744
- disabled: Rs,
1745
- required: Ls
1746
- }, Ds = ({
1738
+ }, l = [Bo.formError, t].filter(Boolean).join(" ");
1739
+ return /* @__PURE__ */ v("div", { ...s, className: l, style: a, role: "alert", "aria-live": "polite", children: r });
1740
+ }, Ro = "FormGroup-module__formGroup___aVI-B", Oo = "FormGroup-module__inputWrapper___429QE", Do = "FormGroup-module__indented___t61iz", Mo = "FormGroup-module__disabled___W-tJ0", Ho = "FormGroup-module__required___mO3xA", Se = {
1741
+ formGroup: Ro,
1742
+ inputWrapper: Oo,
1743
+ indented: Do,
1744
+ disabled: Mo,
1745
+ required: Ho
1746
+ }, To = ({
1747
1747
  // State props
1748
1748
  disabled: e = !1,
1749
1749
  error: r = !1,
1750
1750
  required: t = !1,
1751
1751
  // Variant props
1752
- indent: s = !1,
1752
+ indent: o = !1,
1753
1753
  // Form props
1754
- name: o,
1754
+ name: s,
1755
1755
  label: n,
1756
1756
  errorMessage: a,
1757
1757
  labelProps: l,
@@ -1763,103 +1763,103 @@ const nn = zs, $s = "FormError-module__formError___kaUBn", Es = {
1763
1763
  // Element-specific props
1764
1764
  divProps: h
1765
1765
  }) => {
1766
- const m = H(), z = [
1767
- he.formGroup,
1768
- r ? he.error : "",
1769
- e ? he.disabled : "",
1766
+ const y = I(), V = [
1767
+ Se.formGroup,
1768
+ r ? Se.error : "",
1769
+ e ? Se.disabled : "",
1770
1770
  u
1771
- ].filter(Boolean).join(" "), x = {
1772
- "--form-group-margin-bottom": `calc(${m.fonts.rhythm} * 0.35)`,
1771
+ ].filter(Boolean).join(" "), w = {
1772
+ "--form-group-margin-bottom": `calc(${y.fonts.rhythm} * 0.35)`,
1773
1773
  ...d
1774
- }, g = F.Children.map(f, (w) => {
1775
- if (F.isValidElement(w)) {
1776
- const k = {};
1777
- if (e && w.props.disabled === void 0 && (k.disabled = !0), r && w.props.error === void 0 && (k.error = !0), o && w.props.id === void 0 && w.type !== F.Fragment && (k.id = o), Object.keys(k).length > 0)
1778
- return F.cloneElement(w, k);
1774
+ }, g = F.Children.map(f, (x) => {
1775
+ if (F.isValidElement(x)) {
1776
+ const $ = {};
1777
+ if (e && x.props.disabled === void 0 && ($.disabled = !0), r && x.props.error === void 0 && ($.error = !0), s && x.props.id === void 0 && x.type !== F.Fragment && ($.id = s), Object.keys($).length > 0)
1778
+ return F.cloneElement(x, $);
1779
1779
  }
1780
- return w;
1780
+ return x;
1781
1781
  });
1782
- return /* @__PURE__ */ G("div", { ...h, className: z, style: x, children: [
1783
- n && /* @__PURE__ */ G(it, { htmlFor: o, disabled: e, error: r, ...l, children: [
1782
+ return /* @__PURE__ */ U("div", { ...h, className: V, style: w, children: [
1783
+ n && /* @__PURE__ */ U(yt, { htmlFor: s, disabled: e, error: r, ...l, children: [
1784
1784
  n,
1785
- t && /* @__PURE__ */ G("span", { className: he.required, "aria-label": "required", children: [
1785
+ t && /* @__PURE__ */ U("span", { className: Se.required, "aria-label": "required", children: [
1786
1786
  " ",
1787
1787
  "*"
1788
1788
  ] })
1789
1789
  ] }),
1790
- /* @__PURE__ */ S("div", { className: `${he.inputWrapper} ${s ? he.indented : ""}`, children: g }),
1791
- r && a && /* @__PURE__ */ S(As, { children: a })
1790
+ /* @__PURE__ */ v("div", { className: `${Se.inputWrapper} ${o ? Se.indented : ""}`, children: g }),
1791
+ r && a && /* @__PURE__ */ v(Po, { children: a })
1792
1792
  ] });
1793
1793
  };
1794
- function fe({
1794
+ function ve({
1795
1795
  name: e,
1796
1796
  label: r,
1797
1797
  required: t,
1798
- children: s,
1799
- rules: o,
1798
+ children: o,
1799
+ rules: s,
1800
1800
  disabled: n,
1801
1801
  className: a,
1802
1802
  style: l,
1803
1803
  indent: f,
1804
1804
  labelProps: u
1805
1805
  }) {
1806
- const { control: d } = Vs(), {
1806
+ const { control: d } = Ao(), {
1807
1807
  field: h,
1808
- fieldState: { error: m }
1809
- } = Xr({
1808
+ fieldState: { error: y }
1809
+ } = ro({
1810
1810
  name: e,
1811
1811
  control: d,
1812
- rules: o
1812
+ rules: s
1813
1813
  });
1814
- return /* @__PURE__ */ S(
1815
- Ds,
1814
+ return /* @__PURE__ */ v(
1815
+ To,
1816
1816
  {
1817
1817
  label: r,
1818
1818
  name: e,
1819
- error: !!m,
1820
- errorMessage: m == null ? void 0 : m.message,
1819
+ error: !!y,
1820
+ errorMessage: y == null ? void 0 : y.message,
1821
1821
  disabled: n,
1822
1822
  required: t,
1823
1823
  className: a,
1824
1824
  style: l,
1825
1825
  indent: f,
1826
1826
  labelProps: u,
1827
- children: s({
1827
+ children: o({
1828
1828
  value: h.value,
1829
1829
  onChange: h.onChange,
1830
1830
  onBlur: h.onBlur,
1831
1831
  name: h.name,
1832
- error: !!m,
1832
+ error: !!y,
1833
1833
  indent: f
1834
1834
  })
1835
1835
  }
1836
1836
  );
1837
1837
  }
1838
- const Ms = "Input-module__input___WjT81", Hs = "Input-module__sizeSmall___NFvsi", Os = "Input-module__sizeLarge___4Boj3", Qe = {
1839
- input: Ms,
1840
- sizeSmall: Hs,
1841
- sizeLarge: Os
1842
- }, Ts = ({
1838
+ const jo = "Input-module__input___WjT81", Io = "Input-module__sizeSmall___NFvsi", Wo = "Input-module__sizeLarge___4Boj3", et = {
1839
+ input: jo,
1840
+ sizeSmall: Io,
1841
+ sizeLarge: Wo
1842
+ }, Uo = ({
1843
1843
  color: e = "#000",
1844
1844
  disabled: r = !1,
1845
1845
  fontSize: t = "1em",
1846
- placeholderOpacity: s = 0.3
1846
+ placeholderOpacity: o = 0.3
1847
1847
  }) => ({
1848
1848
  borderColor: e,
1849
1849
  color: e,
1850
1850
  fontSize: t,
1851
1851
  opacity: r ? 0.3 : 1,
1852
- placeholderOpacity: s
1853
- }), js = ({
1852
+ placeholderOpacity: o
1853
+ }), qo = ({
1854
1854
  // State props
1855
1855
  disabled: e = !1,
1856
1856
  error: r = !1,
1857
1857
  // Color prop
1858
1858
  color: t,
1859
1859
  // Size variant
1860
- size: s = "large",
1860
+ size: o = "large",
1861
1861
  // Form props
1862
- id: o,
1862
+ id: s,
1863
1863
  name: n = "",
1864
1864
  placeholder: a,
1865
1865
  placeholderOpacity: l = 0.3,
@@ -1869,89 +1869,89 @@ const Ms = "Input-module__input___WjT81", Hs = "Input-module__sizeSmall___NFvsi"
1869
1869
  onChange: d,
1870
1870
  onBlur: h,
1871
1871
  // Standard React props
1872
- className: m,
1873
- style: z,
1872
+ className: y,
1873
+ style: V,
1874
1874
  // Element-specific props
1875
- inputProps: x
1875
+ inputProps: w
1876
1876
  }) => {
1877
- const g = H(), w = g.colors.error, k = r ? w : t || g.colors.primary, b = Ts({
1878
- color: k,
1877
+ const g = I(), x = g.colors.error, $ = r ? x : t || g.colors.primary, _ = Uo({
1878
+ color: $,
1879
1879
  disabled: e,
1880
1880
  fontSize: g.fonts.size,
1881
1881
  placeholderOpacity: l
1882
- }), E = {
1883
- "--placeholder-opacity": b.placeholderOpacity,
1882
+ }), A = {
1883
+ "--placeholder-opacity": _.placeholderOpacity,
1884
1884
  "--input-padding-small": `calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
1885
1885
  "--input-padding-large": `calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
1886
- borderColor: b.borderColor,
1886
+ borderColor: _.borderColor,
1887
1887
  borderWidth: g.border.width,
1888
1888
  borderRadius: g.border.radius,
1889
- color: b.color,
1890
- fontSize: b.fontSize,
1891
- opacity: b.opacity,
1892
- ...z
1889
+ color: _.color,
1890
+ fontSize: _.fontSize,
1891
+ opacity: _.opacity,
1892
+ ...V
1893
1893
  // Top level style prop overrides
1894
- }, $ = [
1895
- Qe.input,
1896
- s === "small" ? Qe.sizeSmall : Qe.sizeLarge,
1897
- m
1894
+ }, k = [
1895
+ et.input,
1896
+ o === "small" ? et.sizeSmall : et.sizeLarge,
1897
+ y
1898
1898
  ].filter(Boolean).join(" ");
1899
- return /* @__PURE__ */ S(
1899
+ return /* @__PURE__ */ v(
1900
1900
  "input",
1901
1901
  {
1902
- ...x,
1903
- className: $,
1902
+ ...w,
1903
+ className: k,
1904
1904
  disabled: e,
1905
- id: o,
1905
+ id: s,
1906
1906
  name: n,
1907
1907
  onChange: d,
1908
1908
  onBlur: h,
1909
1909
  placeholder: a,
1910
1910
  type: f,
1911
1911
  value: u,
1912
- style: E
1912
+ style: A
1913
1913
  }
1914
1914
  );
1915
1915
  };
1916
- function an({
1916
+ function Fn({
1917
1917
  name: e,
1918
1918
  label: r,
1919
1919
  required: t,
1920
- rules: s,
1921
- disabled: o,
1920
+ rules: o,
1921
+ disabled: s,
1922
1922
  className: n,
1923
1923
  style: a,
1924
1924
  ...l
1925
1925
  }) {
1926
- return /* @__PURE__ */ S(
1927
- fe,
1926
+ return /* @__PURE__ */ v(
1927
+ ve,
1928
1928
  {
1929
1929
  name: e,
1930
1930
  label: r,
1931
1931
  required: t,
1932
- rules: s,
1933
- disabled: o,
1932
+ rules: o,
1933
+ disabled: s,
1934
1934
  className: n,
1935
1935
  style: a,
1936
- children: ({ value: f, onChange: u, onBlur: d, name: h, error: m }) => /* @__PURE__ */ S(
1937
- js,
1936
+ children: ({ value: f, onChange: u, onBlur: d, name: h, error: y }) => /* @__PURE__ */ v(
1937
+ qo,
1938
1938
  {
1939
1939
  ...l,
1940
1940
  name: h,
1941
1941
  value: f || "",
1942
- onChange: (z) => u(z.target.value),
1942
+ onChange: (V) => u(V.target.value),
1943
1943
  onBlur: d,
1944
- error: m
1944
+ error: y
1945
1945
  }
1946
1946
  )
1947
1947
  }
1948
1948
  );
1949
1949
  }
1950
- const Is = "Textarea-module__textarea___Z-y6g", Us = "Textarea-module__sizeSmall___HHFEM", Ws = "Textarea-module__sizeLarge___5a3sf", Ke = {
1951
- textarea: Is,
1952
- sizeSmall: Us,
1953
- sizeLarge: Ws
1954
- }, Gs = ({
1950
+ const Go = "Textarea-module__textarea___Z-y6g", Zo = "Textarea-module__sizeSmall___HHFEM", Qo = "Textarea-module__sizeLarge___5a3sf", tt = {
1951
+ textarea: Go,
1952
+ sizeSmall: Zo,
1953
+ sizeLarge: Qo
1954
+ }, Ko = ({
1955
1955
  color: e = "#000",
1956
1956
  disabled: r = !1,
1957
1957
  placeholderOpacity: t = 0.3
@@ -1960,16 +1960,16 @@ const Is = "Textarea-module__textarea___Z-y6g", Us = "Textarea-module__sizeSmall
1960
1960
  borderColor: e,
1961
1961
  opacity: r ? 0.3 : 1,
1962
1962
  placeholderOpacity: t
1963
- }), qs = ({
1963
+ }), Yo = ({
1964
1964
  // State props
1965
1965
  disabled: e = !1,
1966
1966
  error: r = !1,
1967
1967
  // Color prop
1968
1968
  color: t,
1969
1969
  // Size variant
1970
- size: s = "large",
1970
+ size: o = "large",
1971
1971
  // Form props
1972
- id: o,
1972
+ id: s,
1973
1973
  name: n = "",
1974
1974
  placeholder: a,
1975
1975
  placeholderOpacity: l = 0.3,
@@ -1979,88 +1979,88 @@ const Is = "Textarea-module__textarea___Z-y6g", Us = "Textarea-module__sizeSmall
1979
1979
  onChange: d,
1980
1980
  onBlur: h,
1981
1981
  // Standard React props
1982
- className: m,
1983
- style: z,
1982
+ className: y,
1983
+ style: V,
1984
1984
  // Element-specific props
1985
- textareaProps: x
1985
+ textareaProps: w
1986
1986
  }) => {
1987
- const g = H(), w = g.colors.error, k = r ? w : t || g.colors.primary, b = Gs({
1988
- color: k,
1987
+ const g = I(), x = g.colors.error, $ = r ? x : t || g.colors.primary, _ = Ko({
1988
+ color: $,
1989
1989
  disabled: e,
1990
1990
  placeholderOpacity: l
1991
- }), E = {
1992
- "--placeholder-opacity": b.placeholderOpacity,
1991
+ }), A = {
1992
+ "--placeholder-opacity": _.placeholderOpacity,
1993
1993
  "--textarea-padding-small": `calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
1994
1994
  "--textarea-padding-large": `calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,
1995
- borderColor: b.borderColor,
1995
+ borderColor: _.borderColor,
1996
1996
  borderWidth: g.border.width,
1997
1997
  borderRadius: g.border.radius,
1998
- color: b.color,
1998
+ color: _.color,
1999
1999
  fontSize: g.fonts.size,
2000
- opacity: b.opacity,
2001
- ...z
2000
+ opacity: _.opacity,
2001
+ ...V
2002
2002
  // Top level style overrides
2003
- }, $ = [
2004
- Ke.textarea,
2005
- s === "small" ? Ke.sizeSmall : Ke.sizeLarge,
2006
- m
2003
+ }, k = [
2004
+ tt.textarea,
2005
+ o === "small" ? tt.sizeSmall : tt.sizeLarge,
2006
+ y
2007
2007
  ].filter(Boolean).join(" ");
2008
- return /* @__PURE__ */ S(
2008
+ return /* @__PURE__ */ v(
2009
2009
  "textarea",
2010
2010
  {
2011
- ...x,
2012
- className: $,
2011
+ ...w,
2012
+ className: k,
2013
2013
  disabled: e,
2014
- id: o,
2014
+ id: s,
2015
2015
  name: n,
2016
2016
  onChange: d,
2017
2017
  onBlur: h,
2018
2018
  placeholder: a,
2019
2019
  rows: f,
2020
2020
  value: u,
2021
- style: E
2021
+ style: A
2022
2022
  }
2023
2023
  );
2024
2024
  };
2025
- function ln({
2025
+ function Vn({
2026
2026
  name: e,
2027
2027
  label: r,
2028
2028
  required: t,
2029
- rules: s,
2030
- disabled: o,
2029
+ rules: o,
2030
+ disabled: s,
2031
2031
  className: n,
2032
2032
  style: a,
2033
2033
  ...l
2034
2034
  }) {
2035
- return /* @__PURE__ */ S(
2036
- fe,
2035
+ return /* @__PURE__ */ v(
2036
+ ve,
2037
2037
  {
2038
2038
  name: e,
2039
2039
  label: r,
2040
2040
  required: t,
2041
- rules: s,
2042
- disabled: o,
2041
+ rules: o,
2042
+ disabled: s,
2043
2043
  className: n,
2044
2044
  style: a,
2045
- children: ({ value: f, onChange: u, onBlur: d, name: h, error: m }) => /* @__PURE__ */ S(
2046
- qs,
2045
+ children: ({ value: f, onChange: u, onBlur: d, name: h, error: y }) => /* @__PURE__ */ v(
2046
+ Yo,
2047
2047
  {
2048
2048
  ...l,
2049
2049
  name: h,
2050
2050
  value: f || "",
2051
- onChange: (z) => u(z.target.value),
2051
+ onChange: (V) => u(V.target.value),
2052
2052
  onBlur: d,
2053
- error: m
2053
+ error: y
2054
2054
  }
2055
2055
  )
2056
2056
  }
2057
2057
  );
2058
2058
  }
2059
- const Zs = "Select-module__select___cjdcr", Qs = "Select-module__sizeSmall___i1quj", Ks = "Select-module__sizeLarge___eBA1T", Ye = {
2060
- select: Zs,
2061
- sizeSmall: Qs,
2062
- sizeLarge: Ks
2063
- }, Ys = ({
2059
+ const Jo = "Select-module__select___cjdcr", Xo = "Select-module__sizeSmall___i1quj", es = "Select-module__sizeLarge___eBA1T", rt = {
2060
+ select: Jo,
2061
+ sizeSmall: Xo,
2062
+ sizeLarge: es
2063
+ }, ts = ({
2064
2064
  color: e = "#000",
2065
2065
  disabled: r = !1
2066
2066
  }) => ({
@@ -2087,16 +2087,16 @@ const Zs = "Select-module__select___cjdcr", Qs = "Select-module__sizeSmall___i1q
2087
2087
  `.trim();
2088
2088
  return `url("data:image/svg+xml,${encodeURIComponent(a)}")`;
2089
2089
  })(e)
2090
- }), Js = ({
2090
+ }), rs = ({
2091
2091
  // State props
2092
2092
  disabled: e = !1,
2093
2093
  error: r = !1,
2094
2094
  // Color prop
2095
2095
  color: t,
2096
2096
  // Size variant
2097
- size: s = "large",
2097
+ size: o = "large",
2098
2098
  // Form props
2099
- id: o,
2099
+ id: s,
2100
2100
  name: n = "",
2101
2101
  placeholder: a = "",
2102
2102
  value: l = "",
@@ -2106,110 +2106,110 @@ const Zs = "Select-module__select___cjdcr", Qs = "Select-module__sizeSmall___i1q
2106
2106
  // Standard React props
2107
2107
  children: d,
2108
2108
  className: h,
2109
- style: m,
2109
+ style: y,
2110
2110
  // Element-specific props
2111
- selectProps: z
2111
+ selectProps: V
2112
2112
  }) => {
2113
- const x = H(), g = x.colors.error, w = r ? g : t || x.colors.primary, k = Ys({
2114
- color: w,
2113
+ const w = I(), g = w.colors.error, x = r ? g : t || w.colors.primary, $ = ts({
2114
+ color: x,
2115
2115
  disabled: e
2116
- }), b = {
2117
- "--select-padding-small": `calc(${x.fonts.rhythm} * ${x.sizes.small.paddingVertical}) calc(${x.fonts.rhythm} * 1.2) calc(${x.fonts.rhythm} * ${x.sizes.small.paddingVertical}) calc(${x.fonts.rhythm} * ${x.inputs.paddingHorizontal})`,
2118
- "--select-padding-large": `calc(${x.fonts.rhythm} * ${x.sizes.large.paddingVertical}) calc(${x.fonts.rhythm} * 1.4) calc(${x.fonts.rhythm} * ${x.sizes.large.paddingVertical}) calc(${x.fonts.rhythm} * ${x.inputs.paddingHorizontal})`,
2119
- backgroundImage: k.backgroundImage,
2116
+ }), _ = {
2117
+ "--select-padding-small": `calc(${w.fonts.rhythm} * ${w.sizes.small.paddingVertical}) calc(${w.fonts.rhythm} * 1.2) calc(${w.fonts.rhythm} * ${w.sizes.small.paddingVertical}) calc(${w.fonts.rhythm} * ${w.inputs.paddingHorizontal})`,
2118
+ "--select-padding-large": `calc(${w.fonts.rhythm} * ${w.sizes.large.paddingVertical}) calc(${w.fonts.rhythm} * 1.4) calc(${w.fonts.rhythm} * ${w.sizes.large.paddingVertical}) calc(${w.fonts.rhythm} * ${w.inputs.paddingHorizontal})`,
2119
+ backgroundImage: $.backgroundImage,
2120
2120
  backgroundPosition: "right center",
2121
2121
  backgroundRepeat: "no-repeat",
2122
2122
  backgroundSize: "auto 85%",
2123
2123
  backgroundColor: "transparent",
2124
- borderColor: k.borderColor,
2125
- borderWidth: x.border.width,
2126
- borderRadius: x.border.radius,
2127
- color: k.color,
2128
- cursor: k.cursor,
2129
- fontSize: x.fonts.size,
2130
- opacity: k.opacity,
2131
- ...m
2124
+ borderColor: $.borderColor,
2125
+ borderWidth: w.border.width,
2126
+ borderRadius: w.border.radius,
2127
+ color: $.color,
2128
+ cursor: $.cursor,
2129
+ fontSize: w.fonts.size,
2130
+ opacity: $.opacity,
2131
+ ...y
2132
2132
  // Top level style overrides
2133
- }, E = [
2134
- Ye.select,
2135
- s === "small" ? Ye.sizeSmall : Ye.sizeLarge,
2133
+ }, A = [
2134
+ rt.select,
2135
+ o === "small" ? rt.sizeSmall : rt.sizeLarge,
2136
2136
  h
2137
2137
  ].filter(Boolean).join(" ");
2138
- return /* @__PURE__ */ G(
2138
+ return /* @__PURE__ */ U(
2139
2139
  "select",
2140
2140
  {
2141
- ...z,
2142
- className: E,
2141
+ ...V,
2142
+ className: A,
2143
2143
  disabled: e,
2144
- id: o,
2144
+ id: s,
2145
2145
  name: n,
2146
2146
  onChange: f,
2147
2147
  onBlur: u,
2148
2148
  value: l,
2149
- style: b,
2149
+ style: _,
2150
2150
  children: [
2151
- a !== "" && /* @__PURE__ */ S("option", { disabled: !0, value: "", children: a }),
2151
+ a !== "" && /* @__PURE__ */ v("option", { disabled: !0, value: "", children: a }),
2152
2152
  d
2153
2153
  ]
2154
2154
  }
2155
2155
  );
2156
2156
  };
2157
- function cn({
2157
+ function zn({
2158
2158
  name: e,
2159
2159
  label: r,
2160
2160
  required: t,
2161
- rules: s,
2162
- disabled: o,
2161
+ rules: o,
2162
+ disabled: s,
2163
2163
  className: n,
2164
2164
  style: a,
2165
2165
  children: l,
2166
2166
  ...f
2167
2167
  }) {
2168
- return /* @__PURE__ */ S(
2169
- fe,
2168
+ return /* @__PURE__ */ v(
2169
+ ve,
2170
2170
  {
2171
2171
  name: e,
2172
2172
  label: r,
2173
2173
  required: t,
2174
- rules: s,
2175
- disabled: o,
2174
+ rules: o,
2175
+ disabled: s,
2176
2176
  className: n,
2177
2177
  style: a,
2178
- children: ({ value: u, onChange: d, onBlur: h, name: m, error: z }) => /* @__PURE__ */ S(
2179
- Js,
2178
+ children: ({ value: u, onChange: d, onBlur: h, name: y, error: V }) => /* @__PURE__ */ v(
2179
+ rs,
2180
2180
  {
2181
2181
  ...f,
2182
- name: m,
2182
+ name: y,
2183
2183
  value: u || "",
2184
- onChange: (x) => d(x.target.value),
2184
+ onChange: (w) => d(w.target.value),
2185
2185
  onBlur: h,
2186
- error: z,
2186
+ error: V,
2187
2187
  children: l
2188
2188
  }
2189
2189
  )
2190
2190
  }
2191
2191
  );
2192
2192
  }
2193
- function un({
2193
+ function En({
2194
2194
  name: e,
2195
2195
  required: r,
2196
2196
  rules: t,
2197
- disabled: s,
2198
- className: o,
2197
+ disabled: o,
2198
+ className: s,
2199
2199
  style: n,
2200
2200
  ...a
2201
2201
  }) {
2202
- return /* @__PURE__ */ S(
2203
- fe,
2202
+ return /* @__PURE__ */ v(
2203
+ ve,
2204
2204
  {
2205
2205
  name: e,
2206
2206
  required: r,
2207
2207
  rules: t,
2208
- disabled: s,
2209
- className: o,
2208
+ disabled: o,
2209
+ className: s,
2210
2210
  style: n,
2211
- children: ({ value: l, onChange: f, name: u, error: d }) => /* @__PURE__ */ S(
2212
- rt,
2211
+ children: ({ value: l, onChange: f, name: u, error: d }) => /* @__PURE__ */ v(
2212
+ lt,
2213
2213
  {
2214
2214
  ...a,
2215
2215
  name: u,
@@ -2221,26 +2221,26 @@ function un({
2221
2221
  }
2222
2222
  );
2223
2223
  }
2224
- const Xs = "Radio-module__container___AQxhk", eo = "Radio-module__svg___zl5kF", to = "Radio-module__label___vAFIP", Je = {
2225
- container: Xs,
2226
- svg: eo,
2227
- label: to
2228
- }, ro = ({
2224
+ const os = "Radio-module__container___AQxhk", ss = "Radio-module__svg___zl5kF", ns = "Radio-module__label___vAFIP", ot = {
2225
+ container: os,
2226
+ svg: ss,
2227
+ label: ns
2228
+ }, as = ({
2229
2229
  color: e = "#000",
2230
2230
  disabled: r = !1
2231
2231
  }) => ({
2232
2232
  radioColor: e,
2233
2233
  cursor: r ? "default" : "pointer",
2234
2234
  opacity: r ? 0.3 : 1
2235
- }), pr = ({
2235
+ }), Cr = ({
2236
2236
  // Color prop
2237
2237
  color: e,
2238
2238
  // State props
2239
2239
  checked: r = !1,
2240
2240
  disabled: t = !1,
2241
- error: s = !1,
2241
+ error: o = !1,
2242
2242
  // Form props
2243
- name: o,
2243
+ name: s,
2244
2244
  id: n,
2245
2245
  onChange: a,
2246
2246
  label: l,
@@ -2251,118 +2251,118 @@ const Xs = "Radio-module__container___AQxhk", eo = "Radio-module__svg___zl5kF",
2251
2251
  // Element-specific props
2252
2252
  divProps: h
2253
2253
  }) => {
2254
- const m = H(), z = n || Xt(), x = m.colors.error, g = s ? x : e || m.colors.primary, w = ro({
2254
+ const y = I(), V = n || sr(), w = y.colors.error, g = o ? w : e || y.colors.primary, x = as({
2255
2255
  color: g,
2256
2256
  disabled: t
2257
- }), k = (O) => {
2258
- t || a(O);
2259
- }, b = {
2260
- cursor: w.cursor,
2261
- fontSize: m.fonts.size,
2262
- opacity: w.opacity,
2257
+ }), $ = (R) => {
2258
+ t || a(R);
2259
+ }, _ = {
2260
+ cursor: x.cursor,
2261
+ fontSize: y.fonts.size,
2262
+ opacity: x.opacity,
2263
2263
  ...d
2264
2264
  // Top level style overrides
2265
- }, E = {
2265
+ }, A = {
2266
2266
  width: "1em"
2267
- }, $ = {
2267
+ }, k = {
2268
2268
  fill: "transparent",
2269
2269
  strokeWidth: "12.5",
2270
- stroke: w.radioColor
2271
- }, A = {
2272
- fill: w.radioColor
2273
- }, M = [Je.container, u].filter(Boolean).join(" ");
2274
- return /* @__PURE__ */ G("div", { ...h, className: M, style: b, children: [
2275
- /* @__PURE__ */ S(
2270
+ stroke: x.radioColor
2271
+ }, E = {
2272
+ fill: x.radioColor
2273
+ }, H = [ot.container, u].filter(Boolean).join(" ");
2274
+ return /* @__PURE__ */ U("div", { ...h, className: H, style: _, children: [
2275
+ /* @__PURE__ */ v(
2276
2276
  "input",
2277
2277
  {
2278
- id: z,
2278
+ id: V,
2279
2279
  checked: r,
2280
2280
  disabled: t,
2281
- name: o,
2282
- onChange: (O) => k({ target: { checked: O.target.checked, name: o, type: "radio" } }),
2281
+ name: s,
2282
+ onChange: (R) => $({ target: { checked: R.target.checked, name: s, type: "radio" } }),
2283
2283
  style: { display: "none" },
2284
2284
  type: "radio"
2285
2285
  }
2286
2286
  ),
2287
- /* @__PURE__ */ G(
2287
+ /* @__PURE__ */ U(
2288
2288
  "svg",
2289
2289
  {
2290
2290
  xmlns: "http://www.w3.org/2000/svg",
2291
2291
  viewBox: "0 0 100 100",
2292
- onClick: () => k({ target: { checked: !r, name: o, type: "radio" } }),
2293
- className: Je.svg,
2294
- style: E,
2292
+ onClick: () => $({ target: { checked: !r, name: s, type: "radio" } }),
2293
+ className: ot.svg,
2294
+ style: A,
2295
2295
  children: [
2296
- /* @__PURE__ */ S("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: $ }),
2297
- r && /* @__PURE__ */ S("circle", { cx: "50", cy: "50", r: "25", style: A })
2296
+ /* @__PURE__ */ v("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: k }),
2297
+ r && /* @__PURE__ */ v("circle", { cx: "50", cy: "50", r: "25", style: E })
2298
2298
  ]
2299
2299
  }
2300
2300
  ),
2301
- l && /* @__PURE__ */ S(
2302
- it,
2301
+ l && /* @__PURE__ */ v(
2302
+ yt,
2303
2303
  {
2304
- htmlFor: z,
2305
- className: Je.label,
2304
+ htmlFor: V,
2305
+ className: ot.label,
2306
2306
  style: { paddingBottom: 0, ...f },
2307
- color: w.radioColor,
2307
+ color: x.radioColor,
2308
2308
  disabled: t,
2309
- error: s,
2309
+ error: o,
2310
2310
  children: l
2311
2311
  }
2312
2312
  )
2313
2313
  ] });
2314
2314
  };
2315
- function dn({
2315
+ function $n({
2316
2316
  name: e,
2317
2317
  label: r,
2318
2318
  required: t,
2319
- rules: s,
2320
- disabled: o,
2319
+ rules: o,
2320
+ disabled: s,
2321
2321
  className: n,
2322
2322
  style: a,
2323
2323
  value: l,
2324
2324
  ...f
2325
2325
  }) {
2326
- return /* @__PURE__ */ S(
2327
- fe,
2326
+ return /* @__PURE__ */ v(
2327
+ ve,
2328
2328
  {
2329
2329
  name: e,
2330
2330
  required: t,
2331
- rules: s,
2332
- disabled: o,
2331
+ rules: o,
2332
+ disabled: s,
2333
2333
  className: n,
2334
2334
  style: a,
2335
- children: ({ value: u, onChange: d, name: h, error: m }) => /* @__PURE__ */ S(
2336
- pr,
2335
+ children: ({ value: u, onChange: d, name: h, error: y }) => /* @__PURE__ */ v(
2336
+ Cr,
2337
2337
  {
2338
2338
  ...f,
2339
2339
  name: h,
2340
2340
  checked: u === l,
2341
2341
  onChange: () => d(l),
2342
- error: m,
2342
+ error: y,
2343
2343
  label: r
2344
2344
  }
2345
2345
  )
2346
2346
  }
2347
2347
  );
2348
2348
  }
2349
- function fn({
2349
+ function An({
2350
2350
  name: e,
2351
2351
  label: r,
2352
2352
  required: t,
2353
- options: s,
2354
- disabled: o,
2353
+ options: o,
2354
+ disabled: s,
2355
2355
  className: n,
2356
2356
  style: a,
2357
2357
  indent: l = !0
2358
2358
  }) {
2359
- return /* @__PURE__ */ S(
2360
- fe,
2359
+ return /* @__PURE__ */ v(
2360
+ ve,
2361
2361
  {
2362
2362
  name: e,
2363
2363
  label: r,
2364
2364
  required: t,
2365
- disabled: o,
2365
+ disabled: s,
2366
2366
  className: n,
2367
2367
  style: a,
2368
2368
  indent: l,
@@ -2371,34 +2371,34 @@ function fn({
2371
2371
  marginBottom: ".25em"
2372
2372
  }
2373
2373
  },
2374
- children: ({ value: f, onChange: u, name: d, error: h }) => /* @__PURE__ */ S(ke, { children: s.map((m) => /* @__PURE__ */ S(
2375
- pr,
2374
+ children: ({ value: f, onChange: u, name: d, error: h }) => /* @__PURE__ */ v(pe, { children: o.map((y) => /* @__PURE__ */ v(
2375
+ Cr,
2376
2376
  {
2377
2377
  name: d,
2378
- checked: f === m.value,
2379
- onChange: () => u(m.value),
2380
- label: m.label,
2381
- disabled: o || m.disabled,
2378
+ checked: f === y.value,
2379
+ onChange: () => u(y.value),
2380
+ label: y.label,
2381
+ disabled: s || y.disabled,
2382
2382
  error: h
2383
2383
  },
2384
- m.value
2384
+ y.value
2385
2385
  )) })
2386
2386
  }
2387
2387
  );
2388
2388
  }
2389
- function yn({
2389
+ function Nn({
2390
2390
  name: e,
2391
2391
  label: r,
2392
2392
  required: t,
2393
- options: s,
2394
- children: o,
2393
+ options: o,
2394
+ children: s,
2395
2395
  disabled: n,
2396
2396
  className: a,
2397
2397
  style: l,
2398
2398
  indent: f = !0
2399
2399
  }) {
2400
- return /* @__PURE__ */ S(
2401
- fe,
2400
+ return /* @__PURE__ */ v(
2401
+ ve,
2402
2402
  {
2403
2403
  name: e,
2404
2404
  label: r,
@@ -2412,29 +2412,29 @@ function yn({
2412
2412
  marginBottom: ".25em"
2413
2413
  }
2414
2414
  },
2415
- children: ({ value: u, onChange: d, name: h, error: m }) => {
2416
- const z = Array.isArray(u) ? u : [], x = (g, w) => {
2417
- d(w ? [...z, g] : z.filter((k) => k !== g));
2415
+ children: ({ value: u, onChange: d, name: h, error: y }) => {
2416
+ const V = Array.isArray(u) ? u : [], w = (g, x) => {
2417
+ d(x ? [...V, g] : V.filter(($) => $ !== g));
2418
2418
  };
2419
- return /* @__PURE__ */ S(ke, { children: s ? s.map((g) => /* @__PURE__ */ S(
2420
- rt,
2419
+ return /* @__PURE__ */ v(pe, { children: o ? o.map((g) => /* @__PURE__ */ v(
2420
+ lt,
2421
2421
  {
2422
2422
  name: `${h}[]`,
2423
- checked: z.includes(g.value),
2424
- onChange: (w) => x(g.value, w.target.checked),
2423
+ checked: V.includes(g.value),
2424
+ onChange: (x) => w(g.value, x.target.checked),
2425
2425
  label: g.label,
2426
2426
  disabled: n || g.disabled,
2427
- error: m
2427
+ error: y
2428
2428
  },
2429
2429
  g.value
2430
- )) : F.Children.map(o, (g) => {
2431
- if (F.isValidElement(g) && g.type === rt) {
2432
- const w = g.props.value || g.props.name;
2430
+ )) : F.Children.map(s, (g) => {
2431
+ if (F.isValidElement(g) && g.type === lt) {
2432
+ const x = g.props.value || g.props.name;
2433
2433
  return F.cloneElement(g, {
2434
2434
  name: `${h}[]`,
2435
- checked: z.includes(w),
2436
- onChange: (k) => x(w, k.target.checked),
2437
- error: m || g.props.error,
2435
+ checked: V.includes(x),
2436
+ onChange: ($) => w(x, $.target.checked),
2437
+ error: y || g.props.error,
2438
2438
  disabled: n || g.props.disabled
2439
2439
  });
2440
2440
  }
@@ -2444,32 +2444,32 @@ function yn({
2444
2444
  }
2445
2445
  );
2446
2446
  }
2447
- const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line___gybZM", no = "Hamburger-module__open___gRswh", be = {
2448
- hamburger: so,
2449
- line: oo,
2450
- open: no
2451
- }, ao = ({
2447
+ const is = "Hamburger-module__hamburger___Tf4-t", ls = "Hamburger-module__line___gybZM", cs = "Hamburger-module__open___gRswh", Ve = {
2448
+ hamburger: is,
2449
+ line: ls,
2450
+ open: cs
2451
+ }, us = ({
2452
2452
  compact: e,
2453
2453
  color: r,
2454
2454
  visible: t,
2455
- border: s
2455
+ border: o
2456
2456
  }) => {
2457
- const o = H(), n = e ? "1.5em" : "2em";
2457
+ const s = I(), n = e ? "1.5em" : "2em";
2458
2458
  return {
2459
- "--hamburger-border-radius": (s == null ? void 0 : s.radius) || o.border.radius,
2459
+ "--hamburger-border-radius": (o == null ? void 0 : o.radius) || s.border.radius,
2460
2460
  color: r || "inherit",
2461
2461
  display: t ? "flex" : "none",
2462
2462
  width: n,
2463
2463
  height: n
2464
2464
  };
2465
- }, io = ({
2465
+ }, ds = ({
2466
2466
  // Color props
2467
2467
  color: e,
2468
2468
  // State/variant props
2469
2469
  visible: r,
2470
2470
  compact: t,
2471
- hamburgerRef: s,
2472
- open: o = !1,
2471
+ hamburgerRef: o,
2472
+ open: s = !1,
2473
2473
  // Layout props
2474
2474
  border: n,
2475
2475
  // Form props
@@ -2478,37 +2478,37 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2478
2478
  className: l,
2479
2479
  style: f
2480
2480
  }) => {
2481
- const u = ao({
2481
+ const u = us({
2482
2482
  compact: t,
2483
2483
  color: e,
2484
2484
  visible: r,
2485
2485
  border: n
2486
- }), d = [be.hamburger, o ? be.open : "", l].filter(Boolean).join(" ");
2487
- return /* @__PURE__ */ G(
2486
+ }), d = [Ve.hamburger, s ? Ve.open : "", l].filter(Boolean).join(" ");
2487
+ return /* @__PURE__ */ U(
2488
2488
  "button",
2489
2489
  {
2490
- ref: s,
2490
+ ref: o,
2491
2491
  className: d,
2492
- onClick: () => a(!o),
2492
+ onClick: () => a(!s),
2493
2493
  style: { ...u, ...f },
2494
2494
  "aria-label": "Toggle menu",
2495
- "aria-expanded": o,
2495
+ "aria-expanded": s,
2496
2496
  children: [
2497
- /* @__PURE__ */ S("div", { className: be.line }),
2498
- /* @__PURE__ */ S("div", { className: be.line }),
2499
- /* @__PURE__ */ S("div", { className: be.line })
2497
+ /* @__PURE__ */ v("div", { className: Ve.line }),
2498
+ /* @__PURE__ */ v("div", { className: Ve.line }),
2499
+ /* @__PURE__ */ v("div", { className: Ve.line })
2500
2500
  ]
2501
2501
  }
2502
2502
  );
2503
- }, lo = "Header-module__header___RUooH", co = "Header-module__container___t68M9", It = {
2504
- header: lo,
2505
- container: co
2506
- }, uo = ({
2503
+ }, fs = "Header-module__header___RUooH", ms = "Header-module__container___t68M9", Qt = {
2504
+ header: fs,
2505
+ container: ms
2506
+ }, ys = ({
2507
2507
  isSmallScreen: e = !1,
2508
2508
  maxWidth: r,
2509
2509
  minWidth: t,
2510
- width: s,
2511
- height: o,
2510
+ width: o,
2511
+ height: s,
2512
2512
  paddingSm: n,
2513
2513
  padding: a,
2514
2514
  margin: l,
@@ -2516,34 +2516,34 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2516
2516
  backgroundColor: u,
2517
2517
  color: d
2518
2518
  } = {}) => {
2519
- const h = H();
2519
+ const h = I();
2520
2520
  return {
2521
2521
  "--header-max-width": r || h.layout.maxWidth,
2522
2522
  "--header-min-width": t,
2523
- "--header-width": s,
2524
- "--header-height": o,
2523
+ "--header-width": o,
2524
+ "--header-height": s,
2525
2525
  "--header-padding": e ? n || h.layout.paddingSm : a || h.layout.padding,
2526
2526
  "--header-margin": l,
2527
2527
  "--header-gap": f,
2528
2528
  backgroundColor: u,
2529
2529
  color: d
2530
2530
  };
2531
- }, ae = (e) => {
2531
+ }, ue = (e) => {
2532
2532
  const r = typeof window < "u" && typeof window.matchMedia == "function";
2533
- return Nr((n) => {
2533
+ return Rr((n) => {
2534
2534
  if (!r) return () => {
2535
2535
  };
2536
2536
  const a = window.matchMedia(e);
2537
2537
  return a.addEventListener("change", n), () => a.removeEventListener("change", n);
2538
2538
  }, () => r ? window.matchMedia(e).matches : !1, () => !1);
2539
- }, fo = ({
2539
+ }, hs = ({
2540
2540
  // Color props
2541
2541
  backgroundColor: e,
2542
2542
  color: r,
2543
2543
  // Layout props
2544
2544
  maxWidth: t,
2545
- minWidth: s,
2546
- width: o,
2545
+ minWidth: o,
2546
+ width: s,
2547
2547
  height: n,
2548
2548
  padding: a,
2549
2549
  paddingSm: l,
@@ -2552,18 +2552,18 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2552
2552
  breakpoint: d,
2553
2553
  fixed: h = !1,
2554
2554
  // Content
2555
- children: m,
2555
+ children: y,
2556
2556
  // Style overrides
2557
- className: z,
2558
- style: x,
2557
+ className: V,
2558
+ style: w,
2559
2559
  // Element-specific props
2560
2560
  headerProps: g
2561
2561
  }) => {
2562
- const w = H(), k = d || w.breakpoints.sm, { maxWidth: b, unit: E } = we(k), $ = ae(`(max-width: ${b}${E})`), A = uo({
2563
- isSmallScreen: $,
2562
+ const x = I(), $ = d || x.breakpoints.sm, { maxWidth: _, unit: A } = $e($), k = ue(`(max-width: ${_}${A})`), E = ys({
2563
+ isSmallScreen: k,
2564
2564
  maxWidth: t,
2565
- minWidth: s,
2566
- width: o,
2565
+ minWidth: o,
2566
+ width: s,
2567
2567
  height: n,
2568
2568
  paddingSm: l,
2569
2569
  padding: a,
@@ -2571,32 +2571,32 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2571
2571
  gap: u,
2572
2572
  backgroundColor: e,
2573
2573
  color: r
2574
- }), M = [It.container, z].filter(Boolean).join(" "), O = h ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
2575
- return /* @__PURE__ */ S("header", { ...g, className: It.header, style: O, children: /* @__PURE__ */ S(
2574
+ }), H = [Qt.container, V].filter(Boolean).join(" "), R = h ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
2575
+ return /* @__PURE__ */ v("header", { ...g, className: Qt.header, style: R, children: /* @__PURE__ */ v(
2576
2576
  "div",
2577
2577
  {
2578
- className: M,
2579
- style: { ...A, ...x },
2580
- children: m
2578
+ className: H,
2579
+ style: { ...E, ...w },
2580
+ children: y
2581
2581
  }
2582
2582
  ) });
2583
- }, yo = "ResponsiveNav-module__nav___xOfv5", mo = "ResponsiveNav-module__navMobile___h795P", ho = "ResponsiveNav-module__navHeader___Me8bB", go = "ResponsiveNav-module__compact___UhuAE", _o = "ResponsiveNav-module__open___WDCAf", po = "ResponsiveNav-module__navDesktop___9wscZ", ge = {
2584
- nav: yo,
2585
- navMobile: mo,
2586
- navHeader: ho,
2587
- compact: go,
2588
- open: _o,
2589
- navDesktop: po
2590
- }, vo = ({
2583
+ }, gs = "ResponsiveNav-module__nav___xOfv5", _s = "ResponsiveNav-module__navMobile___h795P", ps = "ResponsiveNav-module__navHeader___Me8bB", vs = "ResponsiveNav-module__compact___UhuAE", bs = "ResponsiveNav-module__open___WDCAf", Ss = "ResponsiveNav-module__navDesktop___9wscZ", we = {
2584
+ nav: gs,
2585
+ navMobile: _s,
2586
+ navHeader: ps,
2587
+ compact: vs,
2588
+ open: bs,
2589
+ navDesktop: Ss
2590
+ }, ws = ({
2591
2591
  isMobile: e,
2592
2592
  isCompact: r,
2593
2593
  mobile: t,
2594
- desktop: s
2594
+ desktop: o
2595
2595
  }) => {
2596
- const o = H();
2597
- return He(() => {
2596
+ const s = I();
2597
+ return We(() => {
2598
2598
  if (e) {
2599
- const n = (t == null ? void 0 : t.backgroundColor) || o.colors.primary, a = (t == null ? void 0 : t.color) || o.colors.secondary, l = (t == null ? void 0 : t.activeBackgroundColor) || o.colors.secondary, f = (t == null ? void 0 : t.activeColor) || o.colors.primary, u = r || t != null && t.compact ? "1.5rem" : "2rem";
2599
+ const n = (t == null ? void 0 : t.backgroundColor) || s.colors.primary, a = (t == null ? void 0 : t.color) || s.colors.secondary, l = (t == null ? void 0 : t.activeBackgroundColor) || s.colors.secondary, f = (t == null ? void 0 : t.activeColor) || s.colors.primary, u = r || t != null && t.compact ? "1.5rem" : "2rem";
2600
2600
  return {
2601
2601
  navStyles: {
2602
2602
  backgroundColor: n,
@@ -2613,12 +2613,12 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2613
2613
  }
2614
2614
  };
2615
2615
  } else {
2616
- const n = s == null ? void 0 : s.backgroundColor, a = (s == null ? void 0 : s.color) || o.fonts.color, l = (s == null ? void 0 : s.hoverOpacity) ?? 0.5, f = s == null ? void 0 : s.activeBackgroundColor, u = s == null ? void 0 : s.activeColor;
2616
+ const n = o == null ? void 0 : o.backgroundColor, a = (o == null ? void 0 : o.color) || s.fonts.color, l = (o == null ? void 0 : o.hoverOpacity) ?? 0.5, f = o == null ? void 0 : o.activeBackgroundColor, u = o == null ? void 0 : o.activeColor;
2617
2617
  return {
2618
2618
  navStyles: {
2619
2619
  ...n && { backgroundColor: n },
2620
2620
  color: a,
2621
- ...s == null ? void 0 : s.style
2621
+ ...o == null ? void 0 : o.style
2622
2622
  },
2623
2623
  linkActiveStyles: {
2624
2624
  ...f && { backgroundColor: f },
@@ -2630,104 +2630,372 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2630
2630
  }
2631
2631
  };
2632
2632
  }
2633
- }, [e, r, t, s, o]);
2634
- }, mn = ({
2633
+ }, [e, r, t, o, s]);
2634
+ }, Cs = mt({
2635
+ isMobile: !1,
2636
+ setOpen: () => {
2637
+ }
2638
+ }), Ln = ({
2635
2639
  mobile: e,
2636
2640
  desktop: r,
2637
2641
  breakpoints: t,
2638
- children: s,
2639
- className: o,
2642
+ children: o,
2643
+ className: s,
2640
2644
  style: n,
2641
- navProps: a
2645
+ navProps: a,
2646
+ disableMobileTreatment: l = !1
2642
2647
  }) => {
2643
- var X;
2644
- const [l, f] = Me(!1), u = Pe(null), d = Pe(null), h = H(), m = { ...h.breakpoints, ...t }, { maxWidth: z, unit: x } = we(m.md), { maxWidth: g, unit: w } = we(m.sm), k = ae(`(max-width: ${z}${x})`), b = ae(`(max-width: ${g}${w})`), { navStyles: E, linkActiveStyles: $, linkHoverStyles: A } = vo({
2648
+ var P;
2649
+ const [f, u] = ye(!1), d = xe(null), h = xe(null), y = I(), V = { ...y.breakpoints, ...t }, { maxWidth: w, unit: g } = $e(V.md), { maxWidth: x, unit: $ } = $e(V.sm), _ = ue(`(max-width: ${w}${g})`), A = ue(`(max-width: ${x}${$})`), k = l ? !1 : _, E = l ? !1 : A, { navStyles: H, linkActiveStyles: R, linkHoverStyles: K } = ws({
2645
2650
  isMobile: k,
2646
- isCompact: b,
2651
+ isCompact: E,
2647
2652
  mobile: e,
2648
2653
  desktop: r
2649
- }), M = {
2650
- ...E,
2654
+ }), B = {
2655
+ ...H,
2651
2656
  // Mobile active state colors
2652
- ...$.backgroundColor && {
2653
- "--mobile-active-bg": $.backgroundColor
2657
+ ...R.backgroundColor && {
2658
+ "--mobile-active-bg": R.backgroundColor
2654
2659
  },
2655
- ...$.color && { "--mobile-active-color": $.color },
2660
+ ...R.color && { "--mobile-active-color": R.color },
2656
2661
  // Desktop hover opacity
2657
- ...A.opacity !== void 0 && {
2658
- "--desktop-hover-opacity": A.opacity
2662
+ ...K.opacity !== void 0 && {
2663
+ "--desktop-hover-opacity": K.opacity
2659
2664
  }
2660
2665
  };
2661
- xe(() => {
2662
- if (k && l) {
2663
- const N = window.scrollY;
2664
- return document.body.style.position = "fixed", document.body.style.top = `-${N}px`, document.body.style.width = "100%", () => {
2665
- document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, N);
2666
+ ae(() => {
2667
+ if (k && f) {
2668
+ const j = window.scrollY;
2669
+ return document.body.style.position = "fixed", document.body.style.top = `-${j}px`, document.body.style.width = "100%", () => {
2670
+ document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, j);
2666
2671
  };
2667
2672
  }
2668
- }, [k, l]), xe(() => {
2669
- const N = (P) => {
2670
- !d.current || d.current.contains(P.target) || u.current && u.current.contains(P.target) || f(!1);
2673
+ }, [k, f]), ae(() => {
2674
+ const j = (W) => {
2675
+ !h.current || h.current.contains(W.target) || d.current && d.current.contains(W.target) || u(!1);
2671
2676
  };
2672
- return document.addEventListener("mousedown", N), () => {
2673
- document.removeEventListener("mousedown", N);
2677
+ return document.addEventListener("mousedown", j), () => {
2678
+ document.removeEventListener("mousedown", j);
2674
2679
  };
2675
- }, [u, d, f]);
2676
- const O = [
2677
- ge.nav,
2678
- k ? ge.navMobile : ge.navDesktop,
2679
- k && l ? ge.open : "",
2680
- k && (b || e != null && e.compact) ? ge.compact : "",
2681
- o
2682
- ].filter(Boolean).join(" "), Y = (N) => {
2680
+ }, [d, h, u]);
2681
+ const Y = [
2682
+ we.nav,
2683
+ k ? we.navMobile : we.navDesktop,
2684
+ k && f ? we.open : "",
2685
+ k && (E || e != null && e.compact) ? we.compact : "",
2686
+ s
2687
+ ].filter(Boolean).join(" "), J = (j) => {
2683
2688
  if (!k) return;
2684
- N.target.closest("a, button") && f(!1);
2685
- }, B = k ? (e == null ? void 0 : e.content) || s : (r == null ? void 0 : r.content) || s, J = l ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || h.colors.secondary : (X = e == null ? void 0 : e.hamburgerProps) == null ? void 0 : X.color;
2686
- return /* @__PURE__ */ G(ke, { children: [
2687
- /* @__PURE__ */ S(
2688
- io,
2689
+ const W = j.target;
2690
+ W.closest("[data-navitem-trigger]") || W.closest("a, button") && u(!1);
2691
+ }, N = k ? (e == null ? void 0 : e.content) || o : (r == null ? void 0 : r.content) || o, L = f ? (e == null ? void 0 : e.hamburgerColor) || (e == null ? void 0 : e.color) || y.colors.secondary : (P = e == null ? void 0 : e.hamburgerProps) == null ? void 0 : P.color;
2692
+ return /* @__PURE__ */ v(Cs.Provider, { value: { isMobile: k, setOpen: u }, children: /* @__PURE__ */ U(pe, { children: [
2693
+ /* @__PURE__ */ v(
2694
+ ds,
2689
2695
  {
2690
- hamburgerRef: u,
2696
+ hamburgerRef: d,
2691
2697
  visible: k,
2692
- compact: b,
2693
- open: l,
2694
- setOpen: f,
2695
- color: J,
2698
+ compact: E,
2699
+ open: f,
2700
+ setOpen: u,
2701
+ color: L,
2696
2702
  ...e == null ? void 0 : e.hamburgerProps
2697
2703
  }
2698
2704
  ),
2699
- /* @__PURE__ */ G(
2705
+ /* @__PURE__ */ U(
2700
2706
  "nav",
2701
2707
  {
2702
2708
  ...a,
2703
- ref: d,
2704
- className: O,
2705
- style: { ...M, ...n },
2706
- onClickCapture: Y,
2709
+ ref: h,
2710
+ className: Y,
2711
+ style: { ...B, ...n },
2712
+ onClickCapture: J,
2707
2713
  children: [
2708
- k && l && /* @__PURE__ */ S("div", { className: ge.navHeader }),
2709
- typeof B == "function" ? B({ setOpen: f }) : B
2714
+ k && f && /* @__PURE__ */ v("div", { className: we.navHeader }),
2715
+ typeof N == "function" ? N({ setOpen: u }) : N
2710
2716
  ]
2711
2717
  }
2712
2718
  )
2719
+ ] }) });
2720
+ }, xs = "Popover-module__triggerWrapper___dZpf6", ks = "Popover-module__popup___JAvrb", Fs = "Popover-module__panelOverlay___1xDU5", Vs = "Popover-module__panelOverlayVisible___BgtIQ", zs = "Popover-module__backdrop___e8qHL", Es = "Popover-module__panel___eUJ2E", $s = "Popover-module__panelLeft___9nSLp", As = "Popover-module__panelRight___OrQfl", Ns = "Popover-module__panelOpen___hhvV-", Ls = "Popover-module__panelCloseButton___kALaN", de = {
2721
+ triggerWrapper: xs,
2722
+ popup: ks,
2723
+ panelOverlay: Fs,
2724
+ panelOverlayVisible: Vs,
2725
+ backdrop: zs,
2726
+ panel: Es,
2727
+ panelLeft: $s,
2728
+ panelRight: As,
2729
+ panelOpen: Ns,
2730
+ panelCloseButton: Ls
2731
+ }, Bs = ({
2732
+ trigger: e,
2733
+ children: r,
2734
+ variant: t = "popup",
2735
+ isOpen: o,
2736
+ onOpenChange: s,
2737
+ placement: n = "bottom-start",
2738
+ side: a = "left",
2739
+ panelWidth: l = "75%",
2740
+ backdropColor: f = "rgba(0, 0, 0, 0.5)",
2741
+ hideCloseButton: u = !1,
2742
+ closeOnBackdropClick: d = !0,
2743
+ className: h,
2744
+ style: y,
2745
+ popoverProps: V
2746
+ }) => {
2747
+ const w = I(), g = o !== void 0, [x, $] = ye(!1), _ = g ? o : x, [A, k] = ye(!1), [E, H] = ye(!1), R = xe(null), K = xe(null), [B, Y] = ye({}), J = Be(
2748
+ (O) => {
2749
+ g || $(O), s == null || s(O);
2750
+ },
2751
+ [g, s]
2752
+ ), N = Be(() => J(!_), [_, J]), L = Be(() => J(!1), [J]);
2753
+ ae(() => {
2754
+ t === "panel" && (_ ? k(!0) : H(!1));
2755
+ }, [_, t]), ae(() => {
2756
+ if (t !== "panel" || !A || !_) return;
2757
+ let O, X;
2758
+ return O = requestAnimationFrame(() => {
2759
+ X = requestAnimationFrame(() => H(!0));
2760
+ }), () => {
2761
+ cancelAnimationFrame(O), cancelAnimationFrame(X);
2762
+ };
2763
+ }, [A, _, t]);
2764
+ const P = Be(() => {
2765
+ if (t !== "popup" || !R.current) return;
2766
+ const O = R.current.getBoundingClientRect(), X = {
2767
+ position: "fixed",
2768
+ top: O.bottom + 4,
2769
+ zIndex: 999
2770
+ };
2771
+ Y(n === "bottom-start" ? { ...X, left: O.left } : n === "bottom" ? {
2772
+ ...X,
2773
+ left: O.left + O.width / 2,
2774
+ transform: "translateX(-50%)"
2775
+ } : { ...X, left: O.right, transform: "translateX(-100%)" });
2776
+ }, [t, n]);
2777
+ ae(() => {
2778
+ _ && t === "popup" && P();
2779
+ }, [_, t, P]), ae(() => {
2780
+ if (!(!_ || t !== "popup"))
2781
+ return window.addEventListener("scroll", P, !0), window.addEventListener("resize", P), () => {
2782
+ window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", P);
2783
+ };
2784
+ }, [_, t, P]), ae(() => {
2785
+ if (!_ || t !== "popup") return;
2786
+ const O = (X) => {
2787
+ var ke, Ne;
2788
+ (ke = K.current) != null && ke.contains(X.target) || (Ne = R.current) != null && Ne.contains(X.target) || L();
2789
+ };
2790
+ return document.addEventListener("mousedown", O), () => document.removeEventListener("mousedown", O);
2791
+ }, [_, t, L]), ae(() => {
2792
+ if (!_) return;
2793
+ const O = (X) => {
2794
+ X.key === "Escape" && L();
2795
+ };
2796
+ return document.addEventListener("keydown", O), () => document.removeEventListener("keydown", O);
2797
+ }, [_, L]), ae(() => {
2798
+ if (!_ || t !== "panel") return;
2799
+ const O = window.scrollY;
2800
+ return document.body.style.position = "fixed", document.body.style.top = `-${O}px`, document.body.style.width = "100%", () => {
2801
+ document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, O);
2802
+ };
2803
+ }, [_, t]);
2804
+ const j = typeof e == "function" ? e({ onClick: N, isOpen: _ }) : (
2805
+ // Non-function trigger: wrap in a span that delegates clicks to the trigger element.
2806
+ // The wrapped element (e.g. <button>) handles its own keyboard accessibility.
2807
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2808
+ /* @__PURE__ */ v("span", { onClick: N, style: { cursor: "pointer", display: "contents" }, children: e })
2809
+ ), W = /* @__PURE__ */ v("span", { ref: R, className: de.triggerWrapper, children: j });
2810
+ if (t === "popup") {
2811
+ const O = {
2812
+ backgroundColor: w.colors.secondary,
2813
+ borderRadius: w.border.radius,
2814
+ boxShadow: "0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",
2815
+ ...B,
2816
+ ...y
2817
+ };
2818
+ return /* @__PURE__ */ U(pe, { children: [
2819
+ W,
2820
+ _ && at(
2821
+ /* @__PURE__ */ v(
2822
+ "div",
2823
+ {
2824
+ ref: K,
2825
+ className: [de.popup, h].filter(Boolean).join(" "),
2826
+ style: O,
2827
+ ...V,
2828
+ children: r
2829
+ }
2830
+ ),
2831
+ document.body
2832
+ )
2833
+ ] });
2834
+ }
2835
+ const se = {
2836
+ width: l,
2837
+ backgroundColor: w.colors.secondary,
2838
+ ...y
2839
+ }, he = () => {
2840
+ E || k(!1);
2841
+ };
2842
+ return /* @__PURE__ */ U(pe, { children: [
2843
+ W,
2844
+ A && at(
2845
+ /* @__PURE__ */ U(
2846
+ "div",
2847
+ {
2848
+ className: [de.panelOverlay, E ? de.panelOverlayVisible : ""].filter(Boolean).join(" "),
2849
+ children: [
2850
+ /* @__PURE__ */ v(
2851
+ "div",
2852
+ {
2853
+ className: de.backdrop,
2854
+ style: { backgroundColor: E ? f : "transparent" },
2855
+ onClick: d ? L : void 0,
2856
+ role: "presentation"
2857
+ }
2858
+ ),
2859
+ /* @__PURE__ */ U(
2860
+ "div",
2861
+ {
2862
+ ref: K,
2863
+ className: [
2864
+ de.panel,
2865
+ a === "right" ? de.panelRight : de.panelLeft,
2866
+ E ? de.panelOpen : "",
2867
+ h
2868
+ ].filter(Boolean).join(" "),
2869
+ style: se,
2870
+ role: "dialog",
2871
+ "aria-modal": "true",
2872
+ onTransitionEnd: he,
2873
+ ...V,
2874
+ children: [
2875
+ !u && /* @__PURE__ */ v(
2876
+ "button",
2877
+ {
2878
+ className: de.panelCloseButton,
2879
+ onClick: L,
2880
+ "aria-label": "Close panel",
2881
+ type: "button",
2882
+ children: /* @__PURE__ */ v(
2883
+ "svg",
2884
+ {
2885
+ width: "100%",
2886
+ height: "100%",
2887
+ viewBox: "0 0 20 20",
2888
+ fill: "none",
2889
+ xmlns: "http://www.w3.org/2000/svg",
2890
+ "aria-hidden": "true",
2891
+ children: /* @__PURE__ */ v(
2892
+ "path",
2893
+ {
2894
+ d: "M15 5L5 15M5 5L15 15",
2895
+ stroke: "currentColor",
2896
+ strokeWidth: "2",
2897
+ strokeLinecap: "round",
2898
+ strokeLinejoin: "round"
2899
+ }
2900
+ )
2901
+ }
2902
+ )
2903
+ }
2904
+ ),
2905
+ r
2906
+ ]
2907
+ }
2908
+ )
2909
+ ]
2910
+ }
2911
+ ),
2912
+ document.body
2913
+ )
2713
2914
  ] });
2714
- }, bo = ({
2915
+ }, Ps = "NavItem-module__trigger___og97w", Rs = "NavItem-module__triggerOpen___7lIFg", Os = "NavItem-module__chevron___awf4c", Ds = "NavItem-module__chevronOpen___ZtUGj", Me = {
2916
+ trigger: Ps,
2917
+ triggerOpen: Rs,
2918
+ chevron: Os,
2919
+ chevronOpen: Ds
2920
+ }, Bn = ({
2921
+ label: e,
2922
+ children: r,
2923
+ dropdownVariant: t = "popup",
2924
+ side: o = "left",
2925
+ panelWidth: s = "75%",
2926
+ color: n,
2927
+ className: a,
2928
+ style: l,
2929
+ buttonProps: f
2930
+ }) => {
2931
+ const u = I(), d = n || u.fonts.color;
2932
+ return /* @__PURE__ */ v(
2933
+ Bs,
2934
+ {
2935
+ variant: t,
2936
+ side: o,
2937
+ panelWidth: s,
2938
+ trigger: ({ onClick: h, isOpen: y }) => /* @__PURE__ */ U(
2939
+ "button",
2940
+ {
2941
+ type: "button",
2942
+ className: [Me.trigger, y ? Me.triggerOpen : "", a].filter(Boolean).join(" "),
2943
+ style: { color: d, ...l },
2944
+ "data-navitem-trigger": !0,
2945
+ onClick: h,
2946
+ ...f,
2947
+ children: [
2948
+ e,
2949
+ /* @__PURE__ */ v(
2950
+ "span",
2951
+ {
2952
+ className: [Me.chevron, y ? Me.chevronOpen : ""].filter(Boolean).join(" "),
2953
+ "aria-hidden": "true",
2954
+ children: /* @__PURE__ */ v(
2955
+ "svg",
2956
+ {
2957
+ width: "12",
2958
+ height: "12",
2959
+ viewBox: "0 0 12 12",
2960
+ fill: "none",
2961
+ xmlns: "http://www.w3.org/2000/svg",
2962
+ children: /* @__PURE__ */ v(
2963
+ "path",
2964
+ {
2965
+ d: "M2 4L6 8L10 4",
2966
+ stroke: "currentColor",
2967
+ strokeWidth: "1.5",
2968
+ strokeLinecap: "round",
2969
+ strokeLinejoin: "round"
2970
+ }
2971
+ )
2972
+ }
2973
+ )
2974
+ }
2975
+ )
2976
+ ]
2977
+ }
2978
+ ),
2979
+ children: r
2980
+ }
2981
+ );
2982
+ }, Ms = ({
2715
2983
  // Color props
2716
2984
  color: e,
2717
2985
  backgroundColor: r,
2718
2986
  // State/variant props
2719
2987
  fullScreen: t = !0,
2720
2988
  // Style overrides
2721
- className: s,
2722
- style: o,
2989
+ className: o,
2990
+ style: s,
2723
2991
  // Element-specific props
2724
2992
  divProps: n
2725
2993
  }) => {
2726
- const a = H(), l = e || a.colors.primary, f = r || a.colors.secondary, u = /* @__PURE__ */ S(
2994
+ const a = I(), l = e || a.colors.primary, f = r || a.colors.secondary, u = /* @__PURE__ */ v(
2727
2995
  "div",
2728
2996
  {
2729
2997
  ...t ? void 0 : n,
2730
- className: t ? void 0 : s,
2998
+ className: t ? void 0 : o,
2731
2999
  style: {
2732
3000
  fontSize: "2.5em",
2733
3001
  // Default size
@@ -2735,81 +3003,81 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2735
3003
  width: "1em",
2736
3004
  height: "1em",
2737
3005
  animation: "spin 1s linear infinite",
2738
- ...t ? {} : o,
3006
+ ...t ? {} : s,
2739
3007
  // Apply user style (can override fontSize, etc.)
2740
3008
  border: `0.1em solid ${l}`,
2741
3009
  // Color borders always take precedence
2742
3010
  borderTop: `0.1em solid ${f}`
2743
3011
  }
2744
3012
  }
2745
- ), d = /* @__PURE__ */ G(ke, { children: [
3013
+ ), d = /* @__PURE__ */ U(pe, { children: [
2746
3014
  u,
2747
- /* @__PURE__ */ S("style", { children: `
3015
+ /* @__PURE__ */ v("style", { children: `
2748
3016
  @keyframes spin {
2749
3017
  0% { transform: rotate(0deg); }
2750
3018
  100% { transform: rotate(360deg); }
2751
3019
  }
2752
3020
  ` })
2753
3021
  ] });
2754
- return t ? /* @__PURE__ */ S(
3022
+ return t ? /* @__PURE__ */ v(
2755
3023
  "div",
2756
3024
  {
2757
3025
  ...n,
2758
- className: s,
3026
+ className: o,
2759
3027
  style: {
2760
3028
  display: "flex",
2761
3029
  justifyContent: "center",
2762
3030
  alignItems: "center",
2763
3031
  height: "100vh",
2764
3032
  width: "100vw",
2765
- ...o
3033
+ ...s
2766
3034
  // Top level style prop overrides
2767
3035
  },
2768
3036
  children: d
2769
3037
  }
2770
3038
  ) : d;
2771
- }, hn = ({ children: e, loadingComponent: r }) => {
2772
- const [t, s] = Me(!1);
2773
- return xe(() => {
3039
+ }, Pn = ({ children: e, loadingComponent: r }) => {
3040
+ const [t, o] = ye(!1);
3041
+ return ae(() => {
2774
3042
  requestAnimationFrame(() => {
2775
- s(!0);
3043
+ o(!0);
2776
3044
  });
2777
- }, []), t ? /* @__PURE__ */ S(ke, { children: e }) : r || /* @__PURE__ */ S(bo, {});
2778
- }, So = "Modal-module__backdrop___GVUh4", Co = "Modal-module__modal___aD7aP", xo = "Modal-module__header___ILG9i", wo = "Modal-module__title___A5OeE", ko = "Modal-module__closeButton___3LpSf", Fo = "Modal-module__content___dWO-B", Vo = "Modal-module__actions___hY6zi", ue = {
2779
- backdrop: So,
2780
- modal: Co,
2781
- header: xo,
2782
- title: wo,
2783
- closeButton: ko,
2784
- content: Fo,
2785
- actions: Vo
2786
- }, zo = "Stack-module__stack___yUU-B", $o = "Stack-module__vertical___sKTyQ", Eo = "Stack-module__horizontal___YsvtV", Xe = {
2787
- stack: zo,
2788
- vertical: $o,
2789
- horizontal: Eo
2790
- }, Ao = ({
3045
+ }, []), t ? /* @__PURE__ */ v(pe, { children: e }) : r || /* @__PURE__ */ v(Ms, {});
3046
+ }, Hs = "Modal-module__backdrop___GVUh4", Ts = "Modal-module__modal___aD7aP", js = "Modal-module__header___ILG9i", Is = "Modal-module__title___A5OeE", Ws = "Modal-module__closeButton___3LpSf", Us = "Modal-module__content___dWO-B", qs = "Modal-module__actions___hY6zi", ge = {
3047
+ backdrop: Hs,
3048
+ modal: Ts,
3049
+ header: js,
3050
+ title: Is,
3051
+ closeButton: Ws,
3052
+ content: Us,
3053
+ actions: qs
3054
+ }, Gs = "Stack-module__stack___yUU-B", Zs = "Stack-module__vertical___sKTyQ", Qs = "Stack-module__horizontal___YsvtV", st = {
3055
+ stack: Gs,
3056
+ vertical: Zs,
3057
+ horizontal: Qs
3058
+ }, Ks = ({
2791
3059
  // Layout props
2792
3060
  direction: e = "row",
2793
3061
  // Content
2794
3062
  children: r,
2795
3063
  // Style overrides
2796
3064
  className: t,
2797
- style: s,
3065
+ style: o,
2798
3066
  // Element-specific props
2799
- divProps: o
3067
+ divProps: s
2800
3068
  }) => {
2801
3069
  const n = [
2802
- Xe.stack,
2803
- e === "column" ? Xe.vertical : Xe.horizontal,
3070
+ st.stack,
3071
+ e === "column" ? st.vertical : st.horizontal,
2804
3072
  t
2805
3073
  ].filter(Boolean).join(" ");
2806
- return /* @__PURE__ */ S("div", { ...o, className: n, style: s, children: r });
2807
- }, No = ({
3074
+ return /* @__PURE__ */ v("div", { ...s, className: n, style: o, children: r });
3075
+ }, Ys = ({
2808
3076
  isOpen: e,
2809
3077
  onClose: r,
2810
3078
  children: t,
2811
- title: s,
2812
- hideCloseButton: o = !1,
3079
+ title: o,
3080
+ hideCloseButton: s = !1,
2813
3081
  closeOnBackdropClick: n = !0,
2814
3082
  closeOnEscape: a = !0,
2815
3083
  actions: l = [],
@@ -2817,65 +3085,65 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2817
3085
  width: u = "500px",
2818
3086
  maxWidth: d = "90vw",
2819
3087
  backgroundColor: h,
2820
- backdropColor: m = "rgba(0, 0, 0, 0.5)",
2821
- className: z,
2822
- style: x,
3088
+ backdropColor: y = "rgba(0, 0, 0, 0.5)",
3089
+ className: V,
3090
+ style: w,
2823
3091
  divProps: g
2824
3092
  }) => {
2825
- const w = H(), k = Pe(null), b = Pe(null), { maxWidth: E } = we(w.breakpoints.md), $ = ae(`(max-width: ${E - 1}px)`);
2826
- xe(() => {
3093
+ const x = I(), $ = xe(null), _ = xe(null), { maxWidth: A } = $e(x.breakpoints.md), k = ue(`(max-width: ${A - 1}px)`);
3094
+ ae(() => {
2827
3095
  if (e)
2828
- return b.current = document.activeElement, document.body.style.overflow = "hidden", k.current && k.current.focus(), () => {
2829
- document.body.style.overflow = "", b.current && b.current.focus();
3096
+ return _.current = document.activeElement, document.body.style.overflow = "hidden", $.current && $.current.focus(), () => {
3097
+ document.body.style.overflow = "", _.current && _.current.focus();
2830
3098
  };
2831
- }, [e]), xe(() => {
3099
+ }, [e]), ae(() => {
2832
3100
  if (!e || !a) return;
2833
- const B = (J) => {
2834
- J.key === "Escape" && r();
3101
+ const B = (Y) => {
3102
+ Y.key === "Escape" && r();
2835
3103
  };
2836
3104
  return document.addEventListener("keydown", B), () => document.removeEventListener("keydown", B);
2837
3105
  }, [e, a, r]);
2838
- const A = (B) => {
3106
+ const E = (B) => {
2839
3107
  B.target === B.currentTarget && n && r();
2840
3108
  };
2841
3109
  if (!e) return null;
2842
- const M = {
3110
+ const H = {
2843
3111
  width: u,
2844
3112
  maxWidth: d,
2845
- backgroundColor: h || w.colors.secondary,
2846
- borderRadius: w.border.radius,
2847
- ...x
2848
- }, O = {
2849
- backgroundColor: m
2850
- }, Y = /* @__PURE__ */ S(
3113
+ backgroundColor: h || x.colors.secondary,
3114
+ borderRadius: x.border.radius,
3115
+ ...w
3116
+ }, R = {
3117
+ backgroundColor: y
3118
+ }, K = /* @__PURE__ */ v(
2851
3119
  "div",
2852
3120
  {
2853
- className: ue.backdrop,
2854
- style: O,
2855
- onClick: A,
3121
+ className: ge.backdrop,
3122
+ style: R,
3123
+ onClick: E,
2856
3124
  role: "presentation",
2857
- children: /* @__PURE__ */ G(
3125
+ children: /* @__PURE__ */ U(
2858
3126
  "div",
2859
3127
  {
2860
- ref: k,
2861
- className: [ue.modal, z].filter(Boolean).join(" "),
2862
- style: M,
3128
+ ref: $,
3129
+ className: [ge.modal, V].filter(Boolean).join(" "),
3130
+ style: H,
2863
3131
  role: "dialog",
2864
3132
  "aria-modal": "true",
2865
- "aria-labelledby": s ? "modal-title" : void 0,
3133
+ "aria-labelledby": o ? "modal-title" : void 0,
2866
3134
  tabIndex: -1,
2867
3135
  ...g,
2868
3136
  children: [
2869
- /* @__PURE__ */ G("div", { className: ue.header, children: [
2870
- s && /* @__PURE__ */ S("h2", { id: "modal-title", className: ue.title, children: s }),
2871
- !o && /* @__PURE__ */ S(
3137
+ /* @__PURE__ */ U("div", { className: ge.header, children: [
3138
+ o && /* @__PURE__ */ v("h2", { id: "modal-title", className: ge.title, children: o }),
3139
+ !s && /* @__PURE__ */ v(
2872
3140
  "button",
2873
3141
  {
2874
- className: ue.closeButton,
3142
+ className: ge.closeButton,
2875
3143
  onClick: r,
2876
3144
  "aria-label": "Close modal",
2877
3145
  type: "button",
2878
- children: /* @__PURE__ */ S(
3146
+ children: /* @__PURE__ */ v(
2879
3147
  "svg",
2880
3148
  {
2881
3149
  width: "100%",
@@ -2884,7 +3152,7 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2884
3152
  fill: "none",
2885
3153
  xmlns: "http://www.w3.org/2000/svg",
2886
3154
  "aria-hidden": "true",
2887
- children: /* @__PURE__ */ S(
3155
+ children: /* @__PURE__ */ v(
2888
3156
  "path",
2889
3157
  {
2890
3158
  d: "M15 5L5 15M5 5L15 15",
@@ -2899,9 +3167,9 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2899
3167
  }
2900
3168
  )
2901
3169
  ] }),
2902
- /* @__PURE__ */ S("div", { className: ue.content, children: t }),
2903
- l.length > 0 && /* @__PURE__ */ S(Ao, { direction: $ ? "column" : "row", className: ue.actions, children: l.map((B, J) => /* @__PURE__ */ S(
2904
- Mr,
3170
+ /* @__PURE__ */ v("div", { className: ge.content, children: t }),
3171
+ l.length > 0 && /* @__PURE__ */ v(Ks, { direction: k ? "column" : "row", className: ge.actions, children: l.map((B, Y) => /* @__PURE__ */ v(
3172
+ Tr,
2905
3173
  {
2906
3174
  color: B.color,
2907
3175
  outline: B.variant === "outline",
@@ -2911,19 +3179,19 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2911
3179
  },
2912
3180
  children: B.label
2913
3181
  },
2914
- J
3182
+ Y
2915
3183
  )) })
2916
3184
  ]
2917
3185
  }
2918
3186
  )
2919
3187
  }
2920
3188
  );
2921
- return Br(Y, document.body);
2922
- }, vr = Zt(null), gn = ({ children: e }) => {
2923
- const [r, t] = Me(null), s = F.useCallback((u) => new Promise((d, h) => {
2924
- const m = Math.random().toString(36).substr(2, 9);
3189
+ return at(K, document.body);
3190
+ }, xr = mt(null), Rn = ({ children: e }) => {
3191
+ const [r, t] = ye(null), o = F.useCallback((u) => new Promise((d, h) => {
3192
+ const y = Math.random().toString(36).substr(2, 9);
2925
3193
  t({
2926
- id: m,
3194
+ id: y,
2927
3195
  content: u.content,
2928
3196
  title: u.title,
2929
3197
  actions: u.actions,
@@ -2931,10 +3199,10 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2931
3199
  resolve: d,
2932
3200
  reject: h
2933
3201
  });
2934
- }), []), o = F.useCallback((u) => {
3202
+ }), []), s = F.useCallback((u) => {
2935
3203
  t((d) => (d && d.resolve(u), null));
2936
3204
  }, []), n = F.useCallback(
2937
- (u) => s({
3205
+ (u) => o({
2938
3206
  title: u.title || "Confirm",
2939
3207
  content: u.message,
2940
3208
  actions: [
@@ -2951,9 +3219,9 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2951
3219
  ],
2952
3220
  options: u.options
2953
3221
  }),
2954
- [s]
3222
+ [o]
2955
3223
  ), a = F.useCallback(
2956
- (u) => s({
3224
+ (u) => o({
2957
3225
  title: u.title || "Alert",
2958
3226
  content: u.message,
2959
3227
  actions: [
@@ -2965,49 +3233,49 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
2965
3233
  ],
2966
3234
  options: u.options
2967
3235
  }),
2968
- [s]
3236
+ [o]
2969
3237
  ), l = F.useCallback(() => {
2970
- o();
2971
- }, [o]), f = F.useMemo(
3238
+ s();
3239
+ }, [s]), f = F.useMemo(
2972
3240
  () => ({
2973
- show: s,
2974
- resolve: o,
3241
+ show: o,
3242
+ resolve: s,
2975
3243
  confirm: n,
2976
3244
  alert: a
2977
3245
  }),
2978
- [s, o, n, a]
3246
+ [o, s, n, a]
2979
3247
  );
2980
- return /* @__PURE__ */ G(vr.Provider, { value: f, children: [
3248
+ return /* @__PURE__ */ U(xr.Provider, { value: f, children: [
2981
3249
  e,
2982
- r && /* @__PURE__ */ S(
2983
- No,
3250
+ r && /* @__PURE__ */ v(
3251
+ Ys,
2984
3252
  {
2985
3253
  isOpen: !0,
2986
3254
  onClose: l,
2987
3255
  title: r.title,
2988
3256
  actions: r.actions,
2989
- resolveModal: o,
3257
+ resolveModal: s,
2990
3258
  ...r.options,
2991
- children: typeof r.content == "function" ? r.content(o) : r.content
3259
+ children: typeof r.content == "function" ? r.content(s) : r.content
2992
3260
  }
2993
3261
  )
2994
3262
  ] });
2995
- }, _n = () => {
2996
- const e = Qt(vr);
3263
+ }, On = () => {
3264
+ const e = er(xr);
2997
3265
  if (!e)
2998
3266
  throw new Error("useModal must be used within a ModalProvider");
2999
3267
  return e;
3000
- }, Bo = "ResponsiveSection-module__section___gBESK", Po = "ResponsiveSection-module__innerDiv___r1bky", Ut = {
3001
- section: Bo,
3002
- innerDiv: Po
3003
- }, br = ({
3268
+ }, Js = "ResponsiveSection-module__section___gBESK", Xs = "ResponsiveSection-module__innerDiv___r1bky", Kt = {
3269
+ section: Js,
3270
+ innerDiv: Xs
3271
+ }, kr = ({
3004
3272
  // Color props
3005
3273
  backgroundColor: e,
3006
3274
  color: r,
3007
3275
  // Layout props
3008
3276
  maxWidth: t,
3009
- minWidth: s,
3010
- width: o,
3277
+ minWidth: o,
3278
+ width: s,
3011
3279
  height: n,
3012
3280
  padding: a,
3013
3281
  paddingSm: l,
@@ -3017,43 +3285,43 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
3017
3285
  // Content
3018
3286
  children: h,
3019
3287
  // Style overrides
3020
- className: m,
3021
- style: z,
3288
+ className: y,
3289
+ style: V,
3022
3290
  // Element-specific props
3023
- sectionProps: x
3291
+ sectionProps: w
3024
3292
  }) => {
3025
- const g = H(), w = ae(`(min-width: ${g.breakpoints.sm})`), k = {
3293
+ const g = I(), x = ue(`(min-width: ${g.breakpoints.sm})`), $ = {
3026
3294
  backgroundColor: e,
3027
3295
  color: r || g.fonts.color,
3028
3296
  margin: f,
3029
- ...z
3297
+ ...V
3030
3298
  // Top level style prop overrides
3031
- }, b = `calc(${g.fonts.rhythm} * ${d})`, E = w ? a || g.layout.padding : l || g.layout.paddingSm, $ = {
3299
+ }, _ = `calc(${g.fonts.rhythm} * ${d})`, A = x ? a || g.layout.padding : l || g.layout.paddingSm, k = {
3032
3300
  "--max-width": t || g.layout.maxWidth,
3033
- "--min-width": s,
3034
- "--width": o,
3301
+ "--min-width": o,
3302
+ "--width": s,
3035
3303
  "--height": n,
3036
- "--section-padding": `${b} ${E}`,
3304
+ "--section-padding": `${_} ${A}`,
3037
3305
  "--gap": u
3038
- }, A = [Ut.section, m].filter(Boolean).join(" ");
3039
- return /* @__PURE__ */ S("section", { ...x, className: A, style: k, children: /* @__PURE__ */ S("div", { className: Ut.innerDiv, style: $, children: h }) });
3040
- }, Ro = "Hero-module__hero___IB2tg", Lo = "Hero-module__content___rkkfQ", Wt = {
3041
- hero: Ro,
3042
- content: Lo
3043
- }, Do = ({
3306
+ }, E = [Kt.section, y].filter(Boolean).join(" ");
3307
+ return /* @__PURE__ */ v("section", { ...w, className: E, style: $, children: /* @__PURE__ */ v("div", { className: Kt.innerDiv, style: k, children: h }) });
3308
+ }, en = "Hero-module__hero___IB2tg", tn = "Hero-module__content___rkkfQ", Yt = {
3309
+ hero: en,
3310
+ content: tn
3311
+ }, rn = ({
3044
3312
  isMd: e = !1,
3045
3313
  isLg: r = !1,
3046
3314
  theme: t
3047
- }) => He(() => {
3048
- const { rhythm: s } = t.fonts;
3049
- let o = `calc(${s} * 2) 0`, n = "2rem", a = "1.125rem";
3050
- return r ? (o = `calc(${s} * 4) 0`, n = "3.5rem", a = "1.5rem") : e && (o = `calc(${s} * 3.5) 0`, n = "3rem", a = "1.25rem"), {
3051
- "--hero-padding": o,
3315
+ }) => We(() => {
3316
+ const { rhythm: o } = t.fonts;
3317
+ let s = `calc(${o} * 2) 0`, n = "2rem", a = "1.125rem";
3318
+ return r ? (s = `calc(${o} * 4) 0`, n = "3.5rem", a = "1.5rem") : e && (s = `calc(${o} * 3.5) 0`, n = "3rem", a = "1.25rem"), {
3319
+ "--hero-padding": s,
3052
3320
  "--hero-h1-font-size": n,
3053
3321
  "--hero-p-font-size": a,
3054
- "--hero-h1-margin-bottom": `calc(${s} * 0.7)`
3322
+ "--hero-h1-margin-bottom": `calc(${o} * 0.7)`
3055
3323
  };
3056
- }, [e, r, t.fonts]), pn = ({
3324
+ }, [e, r, t.fonts]), Dn = ({
3057
3325
  // Color props
3058
3326
  color: e,
3059
3327
  // Layout props
@@ -3061,30 +3329,30 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
3061
3329
  // Content
3062
3330
  children: t,
3063
3331
  // Style overrides
3064
- className: s,
3065
- style: o,
3332
+ className: o,
3333
+ style: s,
3066
3334
  ...n
3067
3335
  }) => {
3068
- const a = H(), l = [Wt.hero, s].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, u = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = ae(`(min-width: ${f})`), h = ae(`(min-width: ${u})`), m = Do({ isMd: d, isLg: h, theme: a });
3069
- return /* @__PURE__ */ S(
3070
- br,
3336
+ const a = I(), l = [Yt.hero, o].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, u = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = ue(`(min-width: ${f})`), h = ue(`(min-width: ${u})`), y = rn({ isMd: d, isLg: h, theme: a });
3337
+ return /* @__PURE__ */ v(
3338
+ kr,
3071
3339
  {
3072
3340
  className: l,
3073
3341
  color: e || a.fonts.color,
3074
- style: { ...m, ...o },
3342
+ style: { ...y, ...s },
3075
3343
  ...n,
3076
- children: /* @__PURE__ */ S("div", { className: Wt.content, children: t })
3344
+ children: /* @__PURE__ */ v("div", { className: Yt.content, children: t })
3077
3345
  }
3078
3346
  );
3079
- }, Mo = "Footer-module__footer___A76NF", Ho = "Footer-module__container___QneNs", Gt = {
3080
- footer: Mo,
3081
- container: Ho
3082
- }, Oo = ({
3347
+ }, on = "Footer-module__footer___A76NF", sn = "Footer-module__container___QneNs", Jt = {
3348
+ footer: on,
3349
+ container: sn
3350
+ }, nn = ({
3083
3351
  isSmallScreen: e = !1,
3084
3352
  maxWidth: r,
3085
3353
  minWidth: t,
3086
- width: s,
3087
- height: o,
3354
+ width: o,
3355
+ height: s,
3088
3356
  paddingSm: n,
3089
3357
  padding: a,
3090
3358
  margin: l,
@@ -3092,26 +3360,26 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
3092
3360
  backgroundColor: u,
3093
3361
  color: d
3094
3362
  } = {}) => {
3095
- const h = H();
3363
+ const h = I();
3096
3364
  return {
3097
3365
  maxWidth: r || h.layout.maxWidth,
3098
3366
  minWidth: t,
3099
- width: s,
3100
- height: o,
3367
+ width: o,
3368
+ height: s,
3101
3369
  padding: e ? n || h.layout.paddingSm : a || h.layout.padding,
3102
3370
  margin: l,
3103
3371
  gap: f,
3104
3372
  backgroundColor: u,
3105
3373
  color: d || h.fonts.color
3106
3374
  };
3107
- }, To = ({
3375
+ }, an = ({
3108
3376
  // Color props
3109
3377
  backgroundColor: e,
3110
3378
  color: r,
3111
3379
  // Layout props
3112
3380
  maxWidth: t,
3113
- minWidth: s,
3114
- width: o,
3381
+ minWidth: o,
3382
+ width: s,
3115
3383
  height: n,
3116
3384
  padding: a,
3117
3385
  paddingSm: l,
@@ -3121,16 +3389,16 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
3121
3389
  // Content
3122
3390
  children: h,
3123
3391
  // Style overrides
3124
- className: m,
3125
- style: z,
3392
+ className: y,
3393
+ style: V,
3126
3394
  // Element-specific props
3127
- footerProps: x
3395
+ footerProps: w
3128
3396
  }) => {
3129
- const g = H(), w = d || g.breakpoints.sm, { maxWidth: k, unit: b } = we(w), E = ae(`(max-width: ${k}${b})`), $ = Oo({
3130
- isSmallScreen: E,
3397
+ const g = I(), x = d || g.breakpoints.sm, { maxWidth: $, unit: _ } = $e(x), A = ue(`(max-width: ${$}${_})`), k = nn({
3398
+ isSmallScreen: A,
3131
3399
  maxWidth: t,
3132
- minWidth: s,
3133
- width: o,
3400
+ minWidth: o,
3401
+ width: s,
3134
3402
  height: n,
3135
3403
  paddingSm: l,
3136
3404
  padding: a,
@@ -3138,17 +3406,17 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
3138
3406
  gap: u,
3139
3407
  backgroundColor: e,
3140
3408
  color: r
3141
- }), A = [Gt.container, m].filter(Boolean).join(" ");
3142
- return /* @__PURE__ */ S("footer", { ...x, className: Gt.footer, children: /* @__PURE__ */ S("div", { className: A, style: { ...$, ...z }, children: h }) });
3143
- }, jo = "FeatureCard-module__card___XQt66", Io = "FeatureCard-module__icon___dXJ92", Uo = "FeatureCard-module__title___KxXyA", Wo = "FeatureCard-module__content___68xkw", Be = {
3144
- card: jo,
3145
- icon: Io,
3146
- title: Uo,
3147
- content: Wo
3148
- }, Go = ({
3409
+ }), E = [Jt.container, y].filter(Boolean).join(" ");
3410
+ return /* @__PURE__ */ v("footer", { ...w, className: Jt.footer, children: /* @__PURE__ */ v("div", { className: E, style: { ...k, ...V }, children: h }) });
3411
+ }, ln = "FeatureCard-module__card___XQt66", cn = "FeatureCard-module__icon___dXJ92", un = "FeatureCard-module__title___KxXyA", dn = "FeatureCard-module__content___68xkw", He = {
3412
+ card: ln,
3413
+ icon: cn,
3414
+ title: un,
3415
+ content: dn
3416
+ }, fn = ({
3149
3417
  isMd: e = !1,
3150
3418
  theme: r
3151
- }) => He(() => {
3419
+ }) => We(() => {
3152
3420
  const { rhythm: t } = r.fonts;
3153
3421
  return {
3154
3422
  "--feature-icon-font-size": e ? "3rem" : "2.5rem",
@@ -3157,41 +3425,41 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
3157
3425
  "--feature-icon-margin-bottom": `calc(${t} * 0.7)`,
3158
3426
  "--feature-title-margin-bottom": `calc(${t} * 0.5)`
3159
3427
  };
3160
- }, [e, r.fonts]), vn = ({
3428
+ }, [e, r.fonts]), Mn = ({
3161
3429
  // Layout props
3162
3430
  breakpoint: e,
3163
3431
  // Content
3164
3432
  icon: r,
3165
3433
  title: t,
3166
- children: s,
3434
+ children: o,
3167
3435
  // Style overrides
3168
- className: o,
3436
+ className: s,
3169
3437
  style: n,
3170
3438
  // Element-specific props
3171
3439
  divProps: a
3172
3440
  }) => {
3173
- const l = H(), f = [Be.card, o].filter(Boolean).join(" "), u = e || l.breakpoints.md, d = ae(`(min-width: ${u})`), h = Go({ isMd: d, theme: l });
3174
- return /* @__PURE__ */ G(
3441
+ const l = I(), f = [He.card, s].filter(Boolean).join(" "), u = e || l.breakpoints.md, d = ue(`(min-width: ${u})`), h = fn({ isMd: d, theme: l });
3442
+ return /* @__PURE__ */ U(
3175
3443
  "div",
3176
3444
  {
3177
3445
  ...a,
3178
3446
  className: f,
3179
3447
  style: { ...h, ...n },
3180
3448
  children: [
3181
- r && /* @__PURE__ */ S("div", { className: Be.icon, children: r }),
3182
- /* @__PURE__ */ S("h3", { className: Be.title, children: t }),
3183
- /* @__PURE__ */ S("div", { className: Be.content, children: s })
3449
+ r && /* @__PURE__ */ v("div", { className: He.icon, children: r }),
3450
+ /* @__PURE__ */ v("h3", { className: He.title, children: t }),
3451
+ /* @__PURE__ */ v("div", { className: He.content, children: o })
3184
3452
  ]
3185
3453
  }
3186
3454
  );
3187
- }, qo = "FeatureGridSection-module__section___wZrbC", Zo = "FeatureGridSection-module__grid___iwPJv", qt = {
3188
- section: qo,
3189
- grid: Zo
3190
- }, Qo = ({
3455
+ }, mn = "FeatureGridSection-module__section___wZrbC", yn = "FeatureGridSection-module__grid___iwPJv", Xt = {
3456
+ section: mn,
3457
+ grid: yn
3458
+ }, hn = ({
3191
3459
  columns: e,
3192
3460
  isMd: r = !1,
3193
3461
  isLg: t = !1
3194
- }) => He(() => r ? r && !t && (e === 3 || e === 4) ? {
3462
+ }) => We(() => r ? r && !t && (e === 3 || e === 4) ? {
3195
3463
  "--grid-template-columns": "repeat(2, 1fr)"
3196
3464
  } : {
3197
3465
  "--grid-template-columns": {
@@ -3202,91 +3470,94 @@ const so = "Hamburger-module__hamburger___Tf4-t", oo = "Hamburger-module__line__
3202
3470
  }[e]
3203
3471
  } : {
3204
3472
  "--grid-template-columns": "1fr"
3205
- }, [e, r, t]), bn = ({
3473
+ }, [e, r, t]), Hn = ({
3206
3474
  // Layout props
3207
3475
  columns: e = 3,
3208
3476
  breakpoints: r,
3209
3477
  gap: t,
3210
3478
  // Content
3211
- children: s,
3479
+ children: o,
3212
3480
  // Style overrides
3213
- className: o,
3481
+ className: s,
3214
3482
  style: n,
3215
3483
  ...a
3216
3484
  }) => {
3217
- const l = H(), f = [qt.section, o].filter(Boolean).join(" "), u = (r == null ? void 0 : r.md) || l.breakpoints.md, d = (r == null ? void 0 : r.lg) || l.breakpoints.lg, h = ae(`(min-width: ${u})`), m = ae(`(min-width: ${d})`), z = Qo({ columns: e, isMd: h, isLg: m }), x = {
3485
+ const l = I(), f = [Xt.section, s].filter(Boolean).join(" "), u = (r == null ? void 0 : r.md) || l.breakpoints.md, d = (r == null ? void 0 : r.lg) || l.breakpoints.lg, h = ue(`(min-width: ${u})`), y = ue(`(min-width: ${d})`), V = hn({ columns: e, isMd: h, isLg: y }), w = {
3218
3486
  "--section-padding-vertical": `calc(${l.fonts.rhythm} * 2)`
3219
3487
  }, g = {
3220
- ...z,
3488
+ ...V,
3221
3489
  gap: t,
3222
3490
  ...n
3223
3491
  };
3224
- return /* @__PURE__ */ S(br, { className: f, style: x, ...a, children: /* @__PURE__ */ S("div", { className: qt.grid, style: g, children: s }) });
3225
- }, Ko = "PageLayout-module__layoutContainer___diLdT", Yo = "PageLayout-module__content___h2mBr", Jo = "PageLayout-module__main___Sw7Pv", et = {
3226
- layoutContainer: Ko,
3227
- content: Yo,
3228
- main: Jo
3229
- }, Sn = ({
3492
+ return /* @__PURE__ */ v(kr, { className: f, style: w, ...a, children: /* @__PURE__ */ v("div", { className: Xt.grid, style: g, children: o }) });
3493
+ }, gn = "PageLayout-module__layoutContainer___diLdT", _n = "PageLayout-module__content___h2mBr", pn = "PageLayout-module__main___Sw7Pv", nt = {
3494
+ layoutContainer: gn,
3495
+ content: _n,
3496
+ main: pn
3497
+ }, Tn = ({
3230
3498
  // Content
3231
3499
  header: e,
3232
3500
  footer: r,
3233
3501
  children: t,
3234
3502
  // Style overrides
3235
- className: s,
3236
- style: o,
3503
+ className: o,
3504
+ style: s,
3237
3505
  // Element-specific props
3238
3506
  headerProps: n,
3239
3507
  footerProps: a,
3240
3508
  divProps: l,
3241
3509
  mainProps: f
3242
3510
  }) => {
3243
- const u = [et.layoutContainer, s].filter(Boolean).join(" ");
3244
- return /* @__PURE__ */ G("div", { ...l, className: u, style: o, children: [
3245
- /* @__PURE__ */ G("div", { className: et.content, children: [
3246
- e && /* @__PURE__ */ S(fo, { ...n, children: e }),
3247
- /* @__PURE__ */ S("main", { ...f, className: et.main, children: t })
3511
+ const u = [nt.layoutContainer, o].filter(Boolean).join(" ");
3512
+ return /* @__PURE__ */ U("div", { ...l, className: u, style: s, children: [
3513
+ /* @__PURE__ */ U("div", { className: nt.content, children: [
3514
+ e && /* @__PURE__ */ v(hs, { ...n, children: e }),
3515
+ /* @__PURE__ */ v("main", { ...f, className: nt.main, children: t })
3248
3516
  ] }),
3249
- r && /* @__PURE__ */ S(To, { ...a, children: r })
3517
+ r && /* @__PURE__ */ v(an, { ...a, children: r })
3250
3518
  ] });
3251
3519
  };
3252
3520
  export {
3253
- Mr as Button,
3254
- on as CSSReset,
3255
- rt as Checkbox,
3256
- vn as FeatureCard,
3257
- bn as FeatureGridSection,
3258
- To as Footer,
3259
- nn as Form,
3260
- un as FormCheckbox,
3261
- yn as FormCheckboxGroup,
3262
- As as FormError,
3263
- fe as FormField,
3264
- Ds as FormGroup,
3265
- an as FormInput,
3266
- it as FormLabel,
3267
- dn as FormRadio,
3268
- fn as FormRadioGroup,
3269
- cn as FormSelect,
3270
- ln as FormTextarea,
3271
- io as Hamburger,
3272
- fo as Header,
3273
- pn as Hero,
3274
- js as Input,
3275
- bo as LoadingSpinner,
3276
- No as Modal,
3277
- gn as ModalProvider,
3278
- Sn as PageLayout,
3279
- pr as Radio,
3280
- mn as ResponsiveNav,
3281
- br as ResponsiveSection,
3282
- Js as Select,
3283
- Ao as Stack,
3284
- hn as StyleLoader,
3285
- qs as Textarea,
3286
- sn as ThemeProvider,
3287
- we as parseBreakpoint,
3288
- Vs as useFormContext,
3289
- ae as useMediaQuery,
3290
- _n as useModal,
3291
- H as useTheme
3521
+ Tr as Button,
3522
+ xn as CSSReset,
3523
+ lt as Checkbox,
3524
+ Mn as FeatureCard,
3525
+ Hn as FeatureGridSection,
3526
+ an as Footer,
3527
+ kn as Form,
3528
+ En as FormCheckbox,
3529
+ Nn as FormCheckboxGroup,
3530
+ Po as FormError,
3531
+ ve as FormField,
3532
+ To as FormGroup,
3533
+ Fn as FormInput,
3534
+ yt as FormLabel,
3535
+ $n as FormRadio,
3536
+ An as FormRadioGroup,
3537
+ zn as FormSelect,
3538
+ Vn as FormTextarea,
3539
+ ds as Hamburger,
3540
+ hs as Header,
3541
+ Dn as Hero,
3542
+ qo as Input,
3543
+ Ms as LoadingSpinner,
3544
+ Ys as Modal,
3545
+ Rn as ModalProvider,
3546
+ Bn as NavItem,
3547
+ Tn as PageLayout,
3548
+ Bs as Popover,
3549
+ Cr as Radio,
3550
+ Ln as ResponsiveNav,
3551
+ Cs as ResponsiveNavContext,
3552
+ kr as ResponsiveSection,
3553
+ rs as Select,
3554
+ Ks as Stack,
3555
+ Pn as StyleLoader,
3556
+ Yo as Textarea,
3557
+ Cn as ThemeProvider,
3558
+ $e as parseBreakpoint,
3559
+ Ao as useFormContext,
3560
+ ue as useMediaQuery,
3561
+ On as useModal,
3562
+ I as useTheme
3292
3563
  };