digital-rabbit-cl 1.2.2 → 1.2.3

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,37 +1,37 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___iwWOV{padding:var(--button-padding-default)}.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-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___AxPA0{padding:var(--input-padding-default)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___LL2Uc{padding:var(--textarea-padding-default)}.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-width:var(--border-width, .15em);border-style:solid;border-radius:var(--border-radius, 0px);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__sizeDefault___EiWvW{padding:var(--select-padding-default)}.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:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.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)}.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{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:var(--nav-padding-top);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%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:var(--nav-link-padding);text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:var(--nav-button-margin)}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.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:.5}.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{margin-top:auto;--section-padding-mobile: 1rem 1rem;--section-padding-desktop: 1.5rem 2rem}.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, #0066cc)}.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, #666)}.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__header___ChdTF{flex-shrink:0}.PageLayout-module__main___Sw7Pv{flex:1}.PageLayout-module__mainPadded___ZKio3{padding:var(--main-padding-vertical) 0}.PageLayout-module__footer___DUw6m{flex-shrink:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as S, jsxs as Q, Fragment as Xe } from "react/jsx-runtime";
3
- import V, { createContext as wr, useContext as Fr, useState as Ye, useLayoutEffect as xr, useMemo as Se, useSyncExternalStore as kr, useRef as bt, useEffect as jt } from "react";
4
- const Vr = "Button-module__button___2ZuB7", Cr = "Button-module__sizeSmall___DRT8P", Er = "Button-module__sizeDefault___iwWOV", Ve = {
5
- button: Vr,
6
- sizeSmall: Cr,
7
- sizeDefault: Er
8
- }, zr = ({
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___iwWOV{padding:var(--button-padding-default)}.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-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___AxPA0{padding:var(--input-padding-default)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-width:var(--border-width, .15em);border-radius:var(--border-radius, 0px);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__sizeDefault___LL2Uc{padding:var(--textarea-padding-default)}.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-width:var(--border-width, .15em);border-style:solid;border-radius:var(--border-radius, 0px);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__sizeDefault___EiWvW{padding:var(--select-padding-default)}.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:fixed;right:1em;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:.25em;position:relative;transform-origin:1px;transition:all .3s linear;width:2em}.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)}.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{background:var(--mobile-nav-background, #0066cc);color:var(--mobile-nav-color, #000);flex-direction:column;font-size:2rem;height:100vh;padding-top:var(--nav-padding-top);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%)}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__open___WDCAf{transform:translate(0)}.ResponsiveNav-module__navMobile___h795P>a{padding:var(--nav-link-padding);text-align:center;width:100%}.ResponsiveNav-module__navMobile___h795P>a.active,.ResponsiveNav-module__navMobile___h795P>a:hover{background:var(--mobile-nav-active-background, #000);color:var(--mobile-nav-active-color, #0066cc)}.ResponsiveNav-module__navMobile___h795P>button{align-self:center;margin:var(--nav-button-margin)}.ResponsiveNav-module__navMobile___h795P>button:hover{color:var(--mobile-nav-button-hover-text-color, #4381c1)!important}.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:.5}.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;font-size:var(--footer-font-size);max-width:var(--footer-max-width);padding:var(--footer-padding)}.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, #0066cc)}.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, #666)}.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__header___ChdTF{flex-shrink:0}.PageLayout-module__main___Sw7Pv{flex:1}.PageLayout-module__mainPadded___ZKio3{padding:var(--main-padding-vertical) 0}.PageLayout-module__footer___DUw6m{flex-shrink:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { jsx as w, jsxs as Q, Fragment as Xe } from "react/jsx-runtime";
3
+ import V, { createContext as xr, useContext as Fr, useState as Ye, useLayoutEffect as kr, useMemo as Se, useSyncExternalStore as Vr, useRef as vt, useEffect as jt } from "react";
4
+ const Cr = "Button-module__button___2ZuB7", Er = "Button-module__sizeSmall___DRT8P", zr = "Button-module__sizeDefault___iwWOV", Ve = {
5
+ button: Cr,
6
+ sizeSmall: Er,
7
+ sizeDefault: zr
8
+ }, $r = ({
9
9
  isActive: e,
10
10
  disabled: r,
11
11
  buttonColor: t = "#FFF",
12
12
  textColor: s = "#000",
13
13
  hoverColor: n,
14
14
  hoverTextColor: o,
15
- outline: a
15
+ outline: l
16
16
  }) => {
17
- let l, d, m;
18
- a ? (l = "transparent", d = t, m = t, e && (l = n || t, d = n || t, m = o || s)) : (l = t, d = t, m = s, e && (l = n || t, d = n || t, m = o || s));
17
+ let a, d, m;
18
+ l ? (a = "transparent", d = t, m = t, e && (a = n || t, d = n || t, m = o || s)) : (a = t, d = t, m = s, e && (a = n || t, d = n || t, m = o || s));
19
19
  let y = 1;
20
- return r ? y = 0.3 : e && (y = n || a ? 1 : 0.75), {
21
- backgroundColor: l,
20
+ return r ? y = 0.3 : e && (y = n || l ? 1 : 0.75), {
21
+ backgroundColor: a,
22
22
  borderColor: d,
23
23
  color: m,
24
24
  opacity: y
25
25
  };
26
- }, St = {
26
+ }, bt = {
27
27
  primary: "#000",
28
28
  secondary: "#FFF",
29
29
  accent: "#4381C1",
30
30
  error: "#F00",
31
31
  success: "#008000",
32
32
  warning: "#FFEB3B"
33
- }, le = {
34
- colors: St,
33
+ }, ce = {
34
+ colors: bt,
35
35
  fonts: {
36
36
  color: "#000",
37
37
  lineHeight: 1.5,
@@ -49,7 +49,7 @@ const Vr = "Button-module__button___2ZuB7", Cr = "Button-module__sizeSmall___DRT
49
49
  buttons: {
50
50
  textColor: "#FFF",
51
51
  primary: {
52
- textColor: St.secondary
52
+ textColor: bt.secondary
53
53
  }
54
54
  },
55
55
  border: {
@@ -68,101 +68,101 @@ const Vr = "Button-module__button___2ZuB7", Cr = "Button-module__sizeSmall___DRT
68
68
  wrapperPaddingSm: "0.5rem",
69
69
  wrapperPadding: "1rem"
70
70
  }
71
- }, Wt = wr(le), Lo = ({ theme: e = {}, children: r }) => {
71
+ }, Wt = xr(ce), Mo = ({ theme: e = {}, children: r }) => {
72
72
  var s;
73
73
  const t = {
74
- ...le,
74
+ ...ce,
75
75
  ...e,
76
76
  colors: {
77
- ...le.colors,
77
+ ...ce.colors,
78
78
  ...e.colors
79
79
  },
80
80
  fonts: {
81
- ...le.fonts,
81
+ ...ce.fonts,
82
82
  ...e.fonts
83
83
  },
84
84
  buttons: {
85
- ...le.buttons,
85
+ ...ce.buttons,
86
86
  ...e.buttons,
87
87
  primary: {
88
- ...le.buttons.primary,
88
+ ...ce.buttons.primary,
89
89
  ...(s = e.buttons) == null ? void 0 : s.primary
90
90
  }
91
91
  },
92
92
  border: {
93
- ...le.border,
93
+ ...ce.border,
94
94
  ...e.border
95
95
  },
96
96
  breakpoints: {
97
- ...le.breakpoints,
97
+ ...ce.breakpoints,
98
98
  ...e.breakpoints
99
99
  },
100
100
  layout: {
101
- ...le.layout,
101
+ ...ce.layout,
102
102
  ...e.layout
103
103
  }
104
104
  };
105
- return /* @__PURE__ */ S(Wt.Provider, { value: t, children: r });
106
- }, T = () => Fr(Wt), To = ({
105
+ return /* @__PURE__ */ w(Wt.Provider, { value: t, children: r });
106
+ }, L = () => Fr(Wt), Io = ({
107
107
  color: e,
108
108
  hoverColor: r,
109
109
  hoverTextColor: t,
110
110
  textColor: s,
111
111
  outline: n = !1,
112
112
  size: o,
113
- type: a = "button",
114
- buttonProps: l = {},
113
+ type: l = "button",
114
+ buttonProps: a = {},
115
115
  children: d,
116
116
  disabled: m = !1,
117
117
  onClick: y,
118
- fontSize: _
118
+ fontSize: h
119
119
  }) => {
120
- const f = T(), [b, C] = Ye(!1);
121
- let w;
122
- s ? w = s : w = e ? f.buttons.textColor : f.buttons.primary.textColor;
123
- const B = {
124
- ...zr({
120
+ const f = L(), [b, C] = Ye(!1);
121
+ let S;
122
+ s ? S = s : S = e ? f.buttons.textColor : f.buttons.primary.textColor;
123
+ const R = {
124
+ ...$r({
125
125
  isActive: b,
126
126
  disabled: m,
127
127
  buttonColor: e || f.colors.primary,
128
- textColor: w,
128
+ textColor: S,
129
129
  hoverColor: r,
130
130
  hoverTextColor: t,
131
131
  outline: n
132
132
  }),
133
- fontSize: _ || f.fonts.size,
133
+ fontSize: h || f.fonts.size,
134
134
  "--border-width": f.border.width,
135
135
  "--border-radius": f.border.radius,
136
136
  "--button-padding-small": `calc(${f.fonts.rhythm} * 0.07) calc(${f.fonts.rhythm} * 0.35)`,
137
137
  "--button-padding-default": `calc(${f.fonts.rhythm} * 0.17) calc(${f.fonts.rhythm} * 0.35)`
138
- }, F = [
138
+ }, x = [
139
139
  Ve.button,
140
140
  o === "small" ? Ve.sizeSmall : Ve.sizeDefault,
141
141
  n ? Ve.outline : ""
142
142
  ].filter(Boolean).join(" ");
143
- return /* @__PURE__ */ S(
143
+ return /* @__PURE__ */ w(
144
144
  "button",
145
145
  {
146
- className: F,
146
+ className: x,
147
147
  disabled: m,
148
148
  onClick: y,
149
149
  onMouseEnter: () => C(!0),
150
150
  onMouseLeave: () => C(!1),
151
- type: a,
152
- ...l,
151
+ type: l,
152
+ ...a,
153
153
  style: {
154
- ...B,
155
- ...l.style
154
+ ...R,
155
+ ...a.style
156
156
  },
157
157
  children: d
158
158
  }
159
159
  );
160
160
  };
161
- var wt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Ar = new Uint8Array(16);
162
- function $r() {
163
- if (!wt)
161
+ var St = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Ar = new Uint8Array(16);
162
+ function Pr() {
163
+ if (!St)
164
164
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
165
- return wt(Ar);
165
+ return St(Ar);
166
166
  }
167
167
  var qt = [];
168
168
  for (var Ce = 0; Ce < 256; ++Ce)
@@ -174,17 +174,17 @@ function Dr(e, r) {
174
174
  function Gt(e, r, t) {
175
175
  var s = r && t || 0;
176
176
  typeof e == "string" && (r = e === "binary" ? new Array(16) : null, e = null), e = e || {};
177
- var n = e.random || (e.rng || $r)();
177
+ var n = e.random || (e.rng || Pr)();
178
178
  if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, r)
179
179
  for (var o = 0; o < 16; ++o)
180
180
  r[s + o] = n[o];
181
181
  return r || Dr(n);
182
182
  }
183
- const Pr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kkluC", Rr = "Checkbox-module__label___cwRtI", Ie = {
184
- container: Pr,
185
- svg: Nr,
186
- label: Rr
187
- }, Br = ({
183
+ const Nr = "Checkbox-module__container___aV9qz", Rr = "Checkbox-module__svg___kkluC", Br = "Checkbox-module__label___cwRtI", Ie = {
184
+ container: Nr,
185
+ svg: Rr,
186
+ label: Br
187
+ }, Or = ({
188
188
  color: e = "#000",
189
189
  checkmarkColor: r,
190
190
  disabled: t = !1,
@@ -197,10 +197,10 @@ const Pr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kk
197
197
  cursor: t ? "default" : "pointer",
198
198
  opacity: t ? 0.3 : 1
199
199
  };
200
- }, Or = "FormLabel-module__label___0M-fo", Lr = "FormLabel-module__disabled___ktIFp", Ft = {
201
- label: Or,
202
- disabled: Lr
203
- }, Tr = ({
200
+ }, Lr = "FormLabel-module__label___0M-fo", Tr = "FormLabel-module__disabled___ktIFp", wt = {
201
+ label: Lr,
202
+ disabled: Tr
203
+ }, Mr = ({
204
204
  color: e = "#000",
205
205
  disabled: r = !1,
206
206
  fontSize: t = ".85em"
@@ -216,61 +216,61 @@ const Pr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kk
216
216
  error: s = !1,
217
217
  fontSize: n,
218
218
  htmlFor: o,
219
- style: a,
220
- ...l
219
+ style: l,
220
+ ...a
221
221
  }) => {
222
- const d = T(), m = d.colors.error, y = s ? m : r || d.colors.primary, _ = Tr({
222
+ const d = L(), m = d.colors.error, y = s ? m : r || d.colors.primary, h = Mr({
223
223
  color: y,
224
224
  disabled: t,
225
225
  fontSize: n || ".85em"
226
226
  }), f = {
227
227
  "--form-label-padding-bottom": `calc(${d.fonts.rhythm} * 0.17)`,
228
- color: _.color,
229
- fontSize: _.fontSize,
230
- opacity: _.opacity,
231
- cursor: _.cursor,
232
- ...a
233
- }, b = [Ft.label, t ? Ft.disabled : ""].filter(Boolean).join(" ");
234
- return /* @__PURE__ */ S("label", { className: b, htmlFor: o, style: f, ...l, children: e });
235
- }, Mr = ({
228
+ color: h.color,
229
+ fontSize: h.fontSize,
230
+ opacity: h.opacity,
231
+ cursor: h.cursor,
232
+ ...l
233
+ }, b = [wt.label, t ? wt.disabled : ""].filter(Boolean).join(" ");
234
+ return /* @__PURE__ */ w("label", { className: b, htmlFor: o, style: f, ...a, children: e });
235
+ }, Ir = ({
236
236
  checked: e = !1,
237
237
  checkmarkColor: r,
238
238
  color: t,
239
239
  disabled: s = !1,
240
240
  error: n = !1,
241
241
  fontSize: o,
242
- id: a,
243
- inverted: l = !1,
242
+ id: l,
243
+ inverted: a = !1,
244
244
  label: d,
245
245
  labelStyle: m,
246
246
  name: y,
247
- onChange: _,
247
+ onChange: h,
248
248
  style: f,
249
249
  ...b
250
250
  }) => {
251
- const C = T(), w = a || Gt(), k = C.colors.error, B = n ? k : t || C.colors.primary, F = Br({
252
- color: B,
251
+ const C = L(), S = l || Gt(), k = C.colors.error, R = n ? k : t || C.colors.primary, x = Or({
252
+ color: R,
253
253
  checkmarkColor: r,
254
254
  disabled: s,
255
- inverted: l
256
- }), A = (O) => {
257
- s || _(O);
255
+ inverted: a
256
+ }), $ = (O) => {
257
+ s || h(O);
258
258
  }, z = {
259
- cursor: F.cursor,
259
+ cursor: x.cursor,
260
260
  fontSize: o || C.fonts.size,
261
- opacity: F.opacity,
261
+ opacity: x.opacity,
262
262
  ...f
263
263
  }, E = {
264
264
  width: o || "1rem"
265
265
  };
266
266
  return /* @__PURE__ */ Q("div", { className: Ie.container, style: z, ...b, children: [
267
- /* @__PURE__ */ S(
267
+ /* @__PURE__ */ w(
268
268
  "input",
269
269
  {
270
- id: w,
270
+ id: S,
271
271
  checked: e,
272
272
  disabled: s,
273
- onChange: (O) => A({ target: { checked: O.target.checked, name: y, type: "checkbox" } }),
273
+ onChange: (O) => $({ target: { checked: O.target.checked, name: y, type: "checkbox" } }),
274
274
  name: y,
275
275
  style: { display: "none" },
276
276
  type: "checkbox"
@@ -281,11 +281,11 @@ const Pr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kk
281
281
  {
282
282
  xmlns: "http://www.w3.org/2000/svg",
283
283
  viewBox: "0 0 100 100",
284
- onClick: () => A({ target: { checked: !e, name: y, type: "checkbox" } }),
284
+ onClick: () => $({ target: { checked: !e, name: y, type: "checkbox" } }),
285
285
  style: E,
286
286
  className: Ie.svg,
287
287
  children: [
288
- /* @__PURE__ */ S(
288
+ /* @__PURE__ */ w(
289
289
  "rect",
290
290
  {
291
291
  x: "0",
@@ -293,17 +293,17 @@ const Pr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kk
293
293
  height: "100",
294
294
  width: "100",
295
295
  style: {
296
- fill: l && e ? F.boxColor : "transparent",
296
+ fill: a && e ? x.boxColor : "transparent",
297
297
  strokeWidth: "25",
298
- stroke: F.boxColor
298
+ stroke: x.boxColor
299
299
  }
300
300
  }
301
301
  ),
302
- e && /* @__PURE__ */ S(
302
+ e && /* @__PURE__ */ w(
303
303
  "path",
304
304
  {
305
305
  d: "M 25 45 L 45 65 L 75 30",
306
- stroke: F.checkmarkColor,
306
+ stroke: x.checkmarkColor,
307
307
  strokeWidth: "15",
308
308
  fill: "transparent"
309
309
  }
@@ -311,13 +311,13 @@ const Pr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kk
311
311
  ]
312
312
  }
313
313
  ),
314
- d && /* @__PURE__ */ S(
314
+ d && /* @__PURE__ */ w(
315
315
  et,
316
316
  {
317
- htmlFor: w,
317
+ htmlFor: S,
318
318
  className: Ie.label,
319
319
  style: m,
320
- color: F.boxColor,
320
+ color: x.boxColor,
321
321
  disabled: s,
322
322
  error: n,
323
323
  fontSize: o,
@@ -325,16 +325,16 @@ const Pr = "Checkbox-module__container___aV9qz", Nr = "Checkbox-module__svg___kk
325
325
  }
326
326
  )
327
327
  ] });
328
- }, Mo = () => {
329
- const e = T();
330
- return xr(() => {
328
+ }, Ho = () => {
329
+ const e = L();
330
+ return kr(() => {
331
331
  const r = document.documentElement;
332
332
  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.wrapperPaddingSm && r.style.setProperty("--layout-wrapper-padding-sm", e.layout.wrapperPaddingSm), e.layout.wrapperPadding && r.style.setProperty("--layout-wrapper-padding", e.layout.wrapperPadding));
333
333
  }, [e]), null;
334
334
  };
335
335
  var we = (e) => e.type === "checkbox", de = (e) => e instanceof Date, Z = (e) => e == null;
336
336
  const Zt = (e) => typeof e == "object";
337
- var H = (e) => !Z(e) && !Array.isArray(e) && Zt(e) && !de(e), Qt = (e) => H(e) && e.target ? we(e.target) ? e.target.checked : e.target.value : e, Ir = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Kt = (e, r) => e.has(Ir(r)), Hr = (e) => {
337
+ var H = (e) => !Z(e) && !Array.isArray(e) && Zt(e) && !de(e), Qt = (e) => H(e) && e.target ? we(e.target) ? e.target.checked : e.target.value : e, Hr = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Kt = (e, r) => e.has(Hr(r)), Ur = (e) => {
338
338
  const r = e.constructor && e.constructor.prototype;
339
339
  return H(r) && r.hasOwnProperty("isPrototypeOf");
340
340
  }, tt = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -344,7 +344,7 @@ function U(e) {
344
344
  if (e instanceof Date)
345
345
  r = new Date(e);
346
346
  else if (!(tt && (e instanceof Blob || s)) && (t || H(e)))
347
- if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Hr(e))
347
+ if (r = t ? [] : Object.create(Object.getPrototypeOf(e)), !t && !Ur(e))
348
348
  r = e;
349
349
  else
350
350
  for (const n in e)
@@ -353,27 +353,27 @@ function U(e) {
353
353
  return e;
354
354
  return r;
355
355
  }
356
- var Re = (e) => /^\w*$/.test(e), L = (e) => e === void 0, rt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], st = (e) => rt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), p = (e, r, t) => {
356
+ var Re = (e) => /^\w*$/.test(e), T = (e) => e === void 0, rt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], st = (e) => rt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), p = (e, r, t) => {
357
357
  if (!r || !H(e))
358
358
  return t;
359
359
  const s = (Re(r) ? [r] : st(r)).reduce((n, o) => Z(n) ? n : n[o], e);
360
- return L(s) || s === e ? L(e[r]) ? t : e[r] : s;
361
- }, K = (e) => typeof e == "boolean", P = (e, r, t) => {
360
+ return T(s) || s === e ? T(e[r]) ? t : e[r] : s;
361
+ }, K = (e) => typeof e == "boolean", D = (e, r, t) => {
362
362
  let s = -1;
363
- const n = Re(r) ? [r] : st(r), o = n.length, a = o - 1;
363
+ const n = Re(r) ? [r] : st(r), o = n.length, l = o - 1;
364
364
  for (; ++s < o; ) {
365
- const l = n[s];
365
+ const a = n[s];
366
366
  let d = t;
367
- if (s !== a) {
368
- const m = e[l];
367
+ if (s !== l) {
368
+ const m = e[a];
369
369
  d = H(m) || Array.isArray(m) ? m : isNaN(+n[s + 1]) ? {} : [];
370
370
  }
371
- if (l === "__proto__" || l === "constructor" || l === "prototype")
371
+ if (a === "__proto__" || a === "constructor" || a === "prototype")
372
372
  return;
373
- e[l] = d, e = e[l];
373
+ e[a] = d, e = e[a];
374
374
  }
375
375
  };
376
- const De = {
376
+ const Pe = {
377
377
  BLUR: "blur",
378
378
  FOCUS_OUT: "focusout",
379
379
  CHANGE: "change"
@@ -383,7 +383,7 @@ const De = {
383
383
  onSubmit: "onSubmit",
384
384
  onTouched: "onTouched",
385
385
  all: "all"
386
- }, ae = {
386
+ }, le = {
387
387
  max: "max",
388
388
  min: "min",
389
389
  maxLength: "maxLength",
@@ -401,15 +401,15 @@ var Xt = (e, r, t, s = !0) => {
401
401
  for (const o in e)
402
402
  Object.defineProperty(n, o, {
403
403
  get: () => {
404
- const a = o;
405
- return r._proxyFormState[a] !== ee.all && (r._proxyFormState[a] = !s || ee.all), t && (t[a] = !0), e[a];
404
+ const l = o;
405
+ return r._proxyFormState[l] !== ee.all && (r._proxyFormState[l] = !s || ee.all), t && (t[l] = !0), e[l];
406
406
  }
407
407
  });
408
408
  return n;
409
409
  };
410
410
  const nt = typeof window < "u" ? V.useLayoutEffect : V.useEffect;
411
- function Ur(e) {
412
- const r = ot(), { control: t = r.control, disabled: s, name: n, exact: o } = e || {}, [a, l] = V.useState(t._formState), d = V.useRef({
411
+ function jr(e) {
412
+ const r = ot(), { control: t = r.control, disabled: s, name: n, exact: o } = e || {}, [l, a] = V.useState(t._formState), d = V.useRef({
413
413
  isDirty: !1,
414
414
  isLoading: !1,
415
415
  dirtyFields: !1,
@@ -424,14 +424,14 @@ function Ur(e) {
424
424
  formState: d.current,
425
425
  exact: o,
426
426
  callback: (m) => {
427
- !s && l({
427
+ !s && a({
428
428
  ...t._formState,
429
429
  ...m
430
430
  });
431
431
  }
432
432
  }), [n, s, o]), V.useEffect(() => {
433
433
  d.current.isValid && t._setValid(!0);
434
- }, [t]), V.useMemo(() => Xt(a, t, d.current, !1), [a, t]);
434
+ }, [t]), V.useMemo(() => Xt(l, t, d.current, !1), [l, t]);
435
435
  }
436
436
  var J = (e) => typeof e == "string", Ze = (e, r, t, s, n) => J(e) ? (s && r.watch.add(e), p(t, e, n)) : Array.isArray(e) ? e.map((o) => (s && r.watch.add(o), p(t, o))) : (s && (r.watchAll = !0), t), Qe = (e) => Z(e) || !Zt(e);
437
437
  function te(e, r, t = /* @__PURE__ */ new WeakSet()) {
@@ -446,24 +446,24 @@ function te(e, r, t = /* @__PURE__ */ new WeakSet()) {
446
446
  return !0;
447
447
  t.add(e), t.add(r);
448
448
  for (const o of s) {
449
- const a = e[o];
449
+ const l = e[o];
450
450
  if (!n.includes(o))
451
451
  return !1;
452
452
  if (o !== "ref") {
453
- const l = r[o];
454
- if (de(a) && de(l) || H(a) && H(l) || Array.isArray(a) && Array.isArray(l) ? !te(a, l, t) : a !== l)
453
+ const a = r[o];
454
+ if (de(l) && de(a) || H(l) && H(a) || Array.isArray(l) && Array.isArray(a) ? !te(l, a, t) : l !== a)
455
455
  return !1;
456
456
  }
457
457
  }
458
458
  return !0;
459
459
  }
460
- function jr(e) {
461
- const r = ot(), { control: t = r.control, name: s, defaultValue: n, disabled: o, exact: a, compute: l } = e || {}, d = V.useRef(n), m = V.useRef(l), y = V.useRef(void 0), _ = V.useRef(t), f = V.useRef(s);
462
- m.current = l;
460
+ function Wr(e) {
461
+ const r = ot(), { control: t = r.control, name: s, defaultValue: n, disabled: o, exact: l, compute: a } = e || {}, d = V.useRef(n), m = V.useRef(a), y = V.useRef(void 0), h = V.useRef(t), f = V.useRef(s);
462
+ m.current = a;
463
463
  const [b, C] = V.useState(() => {
464
464
  const z = t._getWatch(s, d.current);
465
465
  return m.current ? m.current(z) : z;
466
- }), w = V.useCallback((z) => {
466
+ }), S = V.useCallback((z) => {
467
467
  const E = Ze(s, t._names, z || t._formValues, !1, d.current);
468
468
  return m.current ? m.current(E) : E;
469
469
  }, [t._formValues, t._names, s]), k = V.useCallback((z) => {
@@ -476,40 +476,40 @@ function jr(e) {
476
476
  C(E);
477
477
  }
478
478
  }, [t._formValues, t._names, o, s]);
479
- nt(() => ((_.current !== t || !te(f.current, s)) && (_.current = t, f.current = s, k()), t._subscribe({
479
+ nt(() => ((h.current !== t || !te(f.current, s)) && (h.current = t, f.current = s, k()), t._subscribe({
480
480
  name: s,
481
481
  formState: {
482
482
  values: !0
483
483
  },
484
- exact: a,
484
+ exact: l,
485
485
  callback: (z) => {
486
486
  k(z.values);
487
487
  }
488
- })), [t, a, s, k]), V.useEffect(() => t._removeUnmounted());
489
- const B = _.current !== t, F = f.current, A = V.useMemo(() => {
488
+ })), [t, l, s, k]), V.useEffect(() => t._removeUnmounted());
489
+ const R = h.current !== t, x = f.current, $ = V.useMemo(() => {
490
490
  if (o)
491
491
  return null;
492
- const z = !B && !te(F, s);
493
- return B || z ? w() : null;
494
- }, [o, B, s, F, w]);
495
- return A !== null ? A : b;
492
+ const z = !R && !te(x, s);
493
+ return R || z ? S() : null;
494
+ }, [o, R, s, x, S]);
495
+ return $ !== null ? $ : b;
496
496
  }
497
- function Wr(e) {
498
- const r = ot(), { name: t, disabled: s, control: n = r.control, shouldUnregister: o, defaultValue: a } = e, l = Kt(n._names.array, t), d = V.useMemo(() => p(n._formValues, t, p(n._defaultValues, t, a)), [n, t, a]), m = jr({
497
+ function qr(e) {
498
+ const r = ot(), { name: t, disabled: s, control: n = r.control, shouldUnregister: o, defaultValue: l } = e, a = Kt(n._names.array, t), d = V.useMemo(() => p(n._formValues, t, p(n._defaultValues, t, l)), [n, t, l]), m = Wr({
499
499
  control: n,
500
500
  name: t,
501
501
  defaultValue: d,
502
502
  exact: !0
503
- }), y = Ur({
503
+ }), y = jr({
504
504
  control: n,
505
505
  name: t,
506
506
  exact: !0
507
- }), _ = V.useRef(e), f = V.useRef(void 0), b = V.useRef(n.register(t, {
507
+ }), h = V.useRef(e), f = V.useRef(void 0), b = V.useRef(n.register(t, {
508
508
  ...e.rules,
509
509
  value: m,
510
510
  ...K(e.disabled) ? { disabled: e.disabled } : {}
511
511
  }));
512
- _.current = e;
512
+ h.current = e;
513
513
  const C = V.useMemo(() => Object.defineProperties({}, {
514
514
  invalid: {
515
515
  enumerable: !0,
@@ -531,61 +531,61 @@ function Wr(e) {
531
531
  enumerable: !0,
532
532
  get: () => p(y.errors, t)
533
533
  }
534
- }), [y, t]), w = V.useCallback((A) => b.current.onChange({
534
+ }), [y, t]), S = V.useCallback(($) => b.current.onChange({
535
535
  target: {
536
- value: Qt(A),
536
+ value: Qt($),
537
537
  name: t
538
538
  },
539
- type: De.CHANGE
539
+ type: Pe.CHANGE
540
540
  }), [t]), k = V.useCallback(() => b.current.onBlur({
541
541
  target: {
542
542
  value: p(n._formValues, t),
543
543
  name: t
544
544
  },
545
- type: De.BLUR
546
- }), [t, n._formValues]), B = V.useCallback((A) => {
545
+ type: Pe.BLUR
546
+ }), [t, n._formValues]), R = V.useCallback(($) => {
547
547
  const z = p(n._fields, t);
548
- z && A && (z._f.ref = {
549
- focus: () => A.focus && A.focus(),
550
- select: () => A.select && A.select(),
551
- setCustomValidity: (E) => A.setCustomValidity(E),
552
- reportValidity: () => A.reportValidity()
548
+ z && $ && (z._f.ref = {
549
+ focus: () => $.focus && $.focus(),
550
+ select: () => $.select && $.select(),
551
+ setCustomValidity: (E) => $.setCustomValidity(E),
552
+ reportValidity: () => $.reportValidity()
553
553
  });
554
- }, [n._fields, t]), F = V.useMemo(() => ({
554
+ }, [n._fields, t]), x = V.useMemo(() => ({
555
555
  name: t,
556
556
  value: m,
557
557
  ...K(s) || y.disabled ? { disabled: y.disabled || s } : {},
558
- onChange: w,
558
+ onChange: S,
559
559
  onBlur: k,
560
- ref: B
561
- }), [t, s, y.disabled, w, k, B, m]);
560
+ ref: R
561
+ }), [t, s, y.disabled, S, k, R, m]);
562
562
  return V.useEffect(() => {
563
- const A = n._options.shouldUnregister || o, z = f.current;
564
- z && z !== t && !l && n.unregister(z), n.register(t, {
565
- ..._.current.rules,
566
- ...K(_.current.disabled) ? { disabled: _.current.disabled } : {}
563
+ const $ = n._options.shouldUnregister || o, z = f.current;
564
+ z && z !== t && !a && n.unregister(z), n.register(t, {
565
+ ...h.current.rules,
566
+ ...K(h.current.disabled) ? { disabled: h.current.disabled } : {}
567
567
  });
568
568
  const E = (O, X) => {
569
- const ie = p(n._fields, O);
570
- ie && ie._f && (ie._f.mount = X);
569
+ const ae = p(n._fields, O);
570
+ ae && ae._f && (ae._f.mount = X);
571
571
  };
572
- if (E(t, !0), A) {
573
- const O = U(p(n._options.defaultValues, t, _.current.defaultValue));
574
- P(n._defaultValues, t, O), L(p(n._formValues, t)) && P(n._formValues, t, O);
572
+ if (E(t, !0), $) {
573
+ const O = U(p(n._options.defaultValues, t, h.current.defaultValue));
574
+ D(n._defaultValues, t, O), T(p(n._formValues, t)) && D(n._formValues, t, O);
575
575
  }
576
- return !l && n.register(t), f.current = t, () => {
577
- (l ? A && !n._state.action : A) ? n.unregister(t) : E(t, !1);
576
+ return !a && n.register(t), f.current = t, () => {
577
+ (a ? $ && !n._state.action : $) ? n.unregister(t) : E(t, !1);
578
578
  };
579
- }, [t, n, l, o]), V.useEffect(() => {
579
+ }, [t, n, a, o]), V.useEffect(() => {
580
580
  n._setDisabledField({
581
581
  disabled: s,
582
582
  name: t
583
583
  });
584
584
  }, [s, t, n]), V.useMemo(() => ({
585
- field: F,
585
+ field: x,
586
586
  formState: y,
587
587
  fieldState: C
588
- }), [F, y, C]);
588
+ }), [x, y, C]);
589
589
  }
590
590
  var it = (e, r, t, s, n) => r ? {
591
591
  ...t[e],
@@ -619,59 +619,59 @@ function Yt(e, r) {
619
619
  if (e.hasOwnProperty(s)) {
620
620
  const n = e[s], o = r[s];
621
621
  if (n && H(n) && o) {
622
- const a = Yt(n, o);
623
- H(a) && (t[s] = a);
622
+ const l = Yt(n, o);
623
+ H(l) && (t[s] = l);
624
624
  } else e[s] && (t[s] = o);
625
625
  }
626
626
  return t;
627
627
  }
628
- var W = (e) => H(e) && !Object.keys(e).length, at = (e) => e.type === "file", re = (e) => typeof e == "function", Pe = (e) => {
628
+ var W = (e) => H(e) && !Object.keys(e).length, at = (e) => e.type === "file", re = (e) => typeof e == "function", De = (e) => {
629
629
  if (!tt)
630
630
  return !1;
631
631
  const r = e ? e.ownerDocument : 0;
632
632
  return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
633
- }, er = (e) => e.type === "select-multiple", lt = (e) => e.type === "radio", qr = (e) => lt(e) || we(e), He = (e) => Pe(e) && e.isConnected;
634
- function Gr(e, r) {
633
+ }, er = (e) => e.type === "select-multiple", lt = (e) => e.type === "radio", Gr = (e) => lt(e) || we(e), He = (e) => De(e) && e.isConnected;
634
+ function Zr(e, r) {
635
635
  const t = r.slice(0, -1).length;
636
636
  let s = 0;
637
637
  for (; s < t; )
638
- e = L(e) ? s++ : e[r[s++]];
638
+ e = T(e) ? s++ : e[r[s++]];
639
639
  return e;
640
640
  }
641
- function Zr(e) {
641
+ function Qr(e) {
642
642
  for (const r in e)
643
- if (e.hasOwnProperty(r) && !L(e[r]))
643
+ if (e.hasOwnProperty(r) && !T(e[r]))
644
644
  return !1;
645
645
  return !0;
646
646
  }
647
647
  function I(e, r) {
648
- const t = Array.isArray(r) ? r : Re(r) ? [r] : st(r), s = t.length === 1 ? e : Gr(e, t), n = t.length - 1, o = t[n];
649
- return s && delete s[o], n !== 0 && (H(s) && W(s) || Array.isArray(s) && Zr(s)) && I(e, t.slice(0, -1)), e;
648
+ const t = Array.isArray(r) ? r : Re(r) ? [r] : st(r), s = t.length === 1 ? e : Zr(e, t), n = t.length - 1, o = t[n];
649
+ return s && delete s[o], n !== 0 && (H(s) && W(s) || Array.isArray(s) && Qr(s)) && I(e, t.slice(0, -1)), e;
650
650
  }
651
- var Qr = (e) => {
651
+ var Kr = (e) => {
652
652
  for (const r in e)
653
653
  if (re(e[r]))
654
654
  return !0;
655
655
  return !1;
656
656
  };
657
657
  function tr(e) {
658
- return Array.isArray(e) || H(e) && !Qr(e);
658
+ return Array.isArray(e) || H(e) && !Kr(e);
659
659
  }
660
660
  function Ke(e, r = {}) {
661
661
  for (const t in e)
662
- tr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, Ke(e[t], r[t])) : L(e[t]) || (r[t] = !0);
662
+ tr(e[t]) ? (r[t] = Array.isArray(e[t]) ? [] : {}, Ke(e[t], r[t])) : T(e[t]) || (r[t] = !0);
663
663
  return r;
664
664
  }
665
665
  function he(e, r, t) {
666
666
  t || (t = Ke(r));
667
667
  for (const s in e)
668
- tr(e[s]) ? L(r) || Qe(t[s]) ? t[s] = Ke(e[s], Array.isArray(e[s]) ? [] : {}) : he(e[s], Z(r) ? {} : r[s], t[s]) : t[s] = !te(e[s], r[s]);
668
+ tr(e[s]) ? T(r) || Qe(t[s]) ? t[s] = Ke(e[s], Array.isArray(e[s]) ? [] : {}) : he(e[s], Z(r) ? {} : r[s], t[s]) : t[s] = !te(e[s], r[s]);
669
669
  return t;
670
670
  }
671
- const kt = {
671
+ const Ft = {
672
672
  value: !1,
673
673
  isValid: !1
674
- }, Vt = { value: !0, isValid: !0 };
674
+ }, kt = { value: !0, isValid: !0 };
675
675
  var rr = (e) => {
676
676
  if (Array.isArray(e)) {
677
677
  if (e.length > 1) {
@@ -680,28 +680,28 @@ var rr = (e) => {
680
680
  }
681
681
  return e[0].checked && !e[0].disabled ? (
682
682
  // @ts-expect-error expected to work in the browser
683
- e[0].attributes && !L(e[0].attributes.value) ? L(e[0].value) || e[0].value === "" ? Vt : { value: e[0].value, isValid: !0 } : Vt
684
- ) : kt;
683
+ e[0].attributes && !T(e[0].attributes.value) ? T(e[0].value) || e[0].value === "" ? kt : { value: e[0].value, isValid: !0 } : kt
684
+ ) : Ft;
685
685
  }
686
- return kt;
687
- }, sr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => L(e) ? e : r ? e === "" ? NaN : e && +e : t && J(e) ? new Date(e) : s ? s(e) : e;
688
- const Ct = {
686
+ return Ft;
687
+ }, sr = (e, { valueAsNumber: r, valueAsDate: t, setValueAs: s }) => T(e) ? e : r ? e === "" ? NaN : e && +e : t && J(e) ? new Date(e) : s ? s(e) : e;
688
+ const Vt = {
689
689
  isValid: !1,
690
690
  value: null
691
691
  };
692
692
  var or = (e) => Array.isArray(e) ? e.reduce((r, t) => t && t.checked && !t.disabled ? {
693
693
  isValid: !0,
694
694
  value: t.value
695
- } : r, Ct) : Ct;
696
- function Et(e) {
695
+ } : r, Vt) : Vt;
696
+ function Ct(e) {
697
697
  const r = e.ref;
698
- return at(r) ? r.files : lt(r) ? or(e.refs).value : er(r) ? [...r.selectedOptions].map(({ value: t }) => t) : we(r) ? rr(e.refs).value : sr(L(r.value) ? e.ref.value : r.value, e);
698
+ return at(r) ? r.files : lt(r) ? or(e.refs).value : er(r) ? [...r.selectedOptions].map(({ value: t }) => t) : we(r) ? rr(e.refs).value : sr(T(r.value) ? e.ref.value : r.value, e);
699
699
  }
700
- var Kr = (e, r, t, s) => {
700
+ var Jr = (e, r, t, s) => {
701
701
  const n = {};
702
702
  for (const o of e) {
703
- const a = p(r, o);
704
- a && P(n, o, a._f);
703
+ const l = p(r, o);
704
+ l && D(n, o, l._f);
705
705
  }
706
706
  return {
707
707
  criteriaMode: t,
@@ -709,33 +709,33 @@ var Kr = (e, r, t, s) => {
709
709
  fields: n,
710
710
  shouldUseNativeValidation: s
711
711
  };
712
- }, Ne = (e) => e instanceof RegExp, ge = (e) => L(e) ? e : Ne(e) ? e.source : H(e) ? Ne(e.value) ? e.value.source : e.value : e, zt = (e) => ({
712
+ }, Ne = (e) => e instanceof RegExp, ge = (e) => T(e) ? e : Ne(e) ? e.source : H(e) ? Ne(e.value) ? e.value.source : e.value : e, Et = (e) => ({
713
713
  isOnSubmit: !e || e === ee.onSubmit,
714
714
  isOnBlur: e === ee.onBlur,
715
715
  isOnChange: e === ee.onChange,
716
716
  isOnAll: e === ee.all,
717
717
  isOnTouch: e === ee.onTouched
718
718
  });
719
- const At = "AsyncFunction";
720
- var Jr = (e) => !!e && !!e.validate && !!(re(e.validate) && e.validate.constructor.name === At || H(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === At)), Xr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), $t = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
719
+ const zt = "AsyncFunction";
720
+ var Xr = (e) => !!e && !!e.validate && !!(re(e.validate) && e.validate.constructor.name === zt || H(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === zt)), Yr = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate), $t = (e, r, t) => !t && (r.watchAll || r.watch.has(e) || [...r.watch].some((s) => e.startsWith(s) && /^\.\w+/.test(e.slice(s.length))));
721
721
  const be = (e, r, t, s) => {
722
722
  for (const n of t || Object.keys(e)) {
723
723
  const o = p(e, n);
724
724
  if (o) {
725
- const { _f: a, ...l } = o;
726
- if (a) {
727
- if (a.refs && a.refs[0] && r(a.refs[0], n) && !s)
725
+ const { _f: l, ...a } = o;
726
+ if (l) {
727
+ if (l.refs && l.refs[0] && r(l.refs[0], n) && !s)
728
728
  return !0;
729
- if (a.ref && r(a.ref, a.name) && !s)
729
+ if (l.ref && r(l.ref, l.name) && !s)
730
730
  return !0;
731
- if (be(l, r))
731
+ if (be(a, r))
732
732
  break;
733
- } else if (H(l) && be(l, r))
733
+ } else if (H(a) && be(a, r))
734
734
  break;
735
735
  }
736
736
  }
737
737
  };
738
- function Dt(e, r, t) {
738
+ function At(e, r, t) {
739
739
  const s = p(e, t);
740
740
  if (s || Re(t))
741
741
  return {
@@ -744,18 +744,18 @@ function Dt(e, r, t) {
744
744
  };
745
745
  const n = t.split(".");
746
746
  for (; n.length; ) {
747
- const o = n.join("."), a = p(r, o), l = p(e, o);
748
- if (a && !Array.isArray(a) && t !== o)
747
+ const o = n.join("."), l = p(r, o), a = p(e, o);
748
+ if (l && !Array.isArray(l) && t !== o)
749
749
  return { name: t };
750
- if (l && l.type)
750
+ if (a && a.type)
751
751
  return {
752
752
  name: o,
753
- error: l
753
+ error: a
754
754
  };
755
- if (l && l.root && l.root.type)
755
+ if (a && a.root && a.root.type)
756
756
  return {
757
757
  name: `${o}.root`,
758
- error: l.root
758
+ error: a.root
759
759
  };
760
760
  n.pop();
761
761
  }
@@ -763,13 +763,13 @@ function Dt(e, r, t) {
763
763
  name: t
764
764
  };
765
765
  }
766
- var Yr = (e, r, t, s) => {
766
+ var es = (e, r, t, s) => {
767
767
  t(e);
768
768
  const { name: n, ...o } = e;
769
- return W(o) || Object.keys(o).length >= Object.keys(r).length || Object.keys(o).find((a) => r[a] === (!s || ee.all));
770
- }, es = (e, r, t) => !e || !r || e === r || ve(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), ts = (e, r, t, s, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(r || e) : (t ? s.isOnBlur : n.isOnBlur) ? !e : (t ? s.isOnChange : n.isOnChange) ? e : !0, rs = (e, r) => !rt(p(e, r)).length && I(e, r), ss = (e, r, t) => {
769
+ return W(o) || Object.keys(o).length >= Object.keys(r).length || Object.keys(o).find((l) => r[l] === (!s || ee.all));
770
+ }, ts = (e, r, t) => !e || !r || e === r || ve(e).some((s) => s && (t ? s === r : s.startsWith(r) || r.startsWith(s))), rs = (e, r, t, s, n) => n.isOnAll ? !1 : !t && n.isOnTouch ? !(r || e) : (t ? s.isOnBlur : n.isOnBlur) ? !e : (t ? s.isOnChange : n.isOnChange) ? e : !0, ss = (e, r) => !rt(p(e, r)).length && I(e, r), os = (e, r, t) => {
771
771
  const s = ve(p(e, t));
772
- return P(s, "root", r[t]), P(e, t, s), e;
772
+ return D(s, "root", r[t]), D(e, t, s), e;
773
773
  };
774
774
  function Pt(e, r, t = "validate") {
775
775
  if (J(e) || Array.isArray(e) && e.every(J) || K(e) && !e)
@@ -782,95 +782,95 @@ function Pt(e, r, t = "validate") {
782
782
  var ye = (e) => H(e) && !Ne(e) ? e : {
783
783
  value: e,
784
784
  message: ""
785
- }, Nt = async (e, r, t, s, n, o) => {
786
- const { ref: a, refs: l, required: d, maxLength: m, minLength: y, min: _, max: f, pattern: b, validate: C, name: w, valueAsNumber: k, mount: B } = e._f, F = p(t, w);
787
- if (!B || r.has(w))
785
+ }, Dt = async (e, r, t, s, n, o) => {
786
+ const { ref: l, refs: a, required: d, maxLength: m, minLength: y, min: h, max: f, pattern: b, validate: C, name: S, valueAsNumber: k, mount: R } = e._f, x = p(t, S);
787
+ if (!R || r.has(S))
788
788
  return {};
789
- const A = l ? l[0] : a, z = ($) => {
790
- n && A.reportValidity && (A.setCustomValidity(K($) ? "" : $ || ""), A.reportValidity());
791
- }, E = {}, O = lt(a), X = we(a), ie = O || X, q = (k || at(a)) && L(a.value) && L(F) || Pe(a) && a.value === "" || F === "" || Array.isArray(F) && !F.length, se = it.bind(null, w, s, E), oe = ($, N, M, j = ae.maxLength, G = ae.minLength) => {
792
- const ne = $ ? N : M;
793
- E[w] = {
794
- type: $ ? j : G,
789
+ const $ = a ? a[0] : l, z = (A) => {
790
+ n && $.reportValidity && ($.setCustomValidity(K(A) ? "" : A || ""), $.reportValidity());
791
+ }, E = {}, O = lt(l), X = we(l), ae = O || X, q = (k || at(l)) && T(l.value) && T(x) || De(l) && l.value === "" || x === "" || Array.isArray(x) && !x.length, se = it.bind(null, S, s, E), oe = (A, N, M, j = le.maxLength, G = le.minLength) => {
792
+ const ne = A ? N : M;
793
+ E[S] = {
794
+ type: A ? j : G,
795
795
  message: ne,
796
- ref: a,
797
- ...se($ ? j : G, ne)
796
+ ref: l,
797
+ ...se(A ? j : G, ne)
798
798
  };
799
799
  };
800
- if (o ? !Array.isArray(F) || !F.length : d && (!ie && (q || Z(F)) || K(F) && !F || X && !rr(l).isValid || O && !or(l).isValid)) {
801
- const { value: $, message: N } = J(d) ? { value: !!d, message: d } : ye(d);
802
- if ($ && (E[w] = {
803
- type: ae.required,
800
+ if (o ? !Array.isArray(x) || !x.length : d && (!ae && (q || Z(x)) || K(x) && !x || X && !rr(a).isValid || O && !or(a).isValid)) {
801
+ const { value: A, message: N } = J(d) ? { value: !!d, message: d } : ye(d);
802
+ if (A && (E[S] = {
803
+ type: le.required,
804
804
  message: N,
805
- ref: A,
806
- ...se(ae.required, N)
805
+ ref: $,
806
+ ...se(le.required, N)
807
807
  }, !s))
808
808
  return z(N), E;
809
809
  }
810
- if (!q && (!Z(_) || !Z(f))) {
811
- let $, N;
812
- const M = ye(f), j = ye(_);
813
- if (!Z(F) && !isNaN(F)) {
814
- const G = a.valueAsNumber || F && +F;
815
- Z(M.value) || ($ = G > M.value), Z(j.value) || (N = G < j.value);
810
+ if (!q && (!Z(h) || !Z(f))) {
811
+ let A, N;
812
+ const M = ye(f), j = ye(h);
813
+ if (!Z(x) && !isNaN(x)) {
814
+ const G = l.valueAsNumber || x && +x;
815
+ Z(M.value) || (A = G > M.value), Z(j.value) || (N = G < j.value);
816
816
  } else {
817
- const G = a.valueAsDate || new Date(F), ne = (xe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + xe), _e = a.type == "time", fe = a.type == "week";
818
- J(M.value) && F && ($ = _e ? ne(F) > ne(M.value) : fe ? F > M.value : G > new Date(M.value)), J(j.value) && F && (N = _e ? ne(F) < ne(j.value) : fe ? F < j.value : G < new Date(j.value));
817
+ const G = l.valueAsDate || new Date(x), ne = (Fe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Fe), _e = l.type == "time", fe = l.type == "week";
818
+ J(M.value) && x && (A = _e ? ne(x) > ne(M.value) : fe ? x > M.value : G > new Date(M.value)), J(j.value) && x && (N = _e ? ne(x) < ne(j.value) : fe ? x < j.value : G < new Date(j.value));
819
819
  }
820
- if (($ || N) && (oe(!!$, M.message, j.message, ae.max, ae.min), !s))
821
- return z(E[w].message), E;
820
+ if ((A || N) && (oe(!!A, M.message, j.message, le.max, le.min), !s))
821
+ return z(E[S].message), E;
822
822
  }
823
- if ((m || y) && !q && (J(F) || o && Array.isArray(F))) {
824
- const $ = ye(m), N = ye(y), M = !Z($.value) && F.length > +$.value, j = !Z(N.value) && F.length < +N.value;
825
- if ((M || j) && (oe(M, $.message, N.message), !s))
826
- return z(E[w].message), E;
823
+ if ((m || y) && !q && (J(x) || o && Array.isArray(x))) {
824
+ const A = ye(m), N = ye(y), M = !Z(A.value) && x.length > +A.value, j = !Z(N.value) && x.length < +N.value;
825
+ if ((M || j) && (oe(M, A.message, N.message), !s))
826
+ return z(E[S].message), E;
827
827
  }
828
- if (b && !q && J(F)) {
829
- const { value: $, message: N } = ye(b);
830
- if (Ne($) && !F.match($) && (E[w] = {
831
- type: ae.pattern,
828
+ if (b && !q && J(x)) {
829
+ const { value: A, message: N } = ye(b);
830
+ if (Ne(A) && !x.match(A) && (E[S] = {
831
+ type: le.pattern,
832
832
  message: N,
833
- ref: a,
834
- ...se(ae.pattern, N)
833
+ ref: l,
834
+ ...se(le.pattern, N)
835
835
  }, !s))
836
836
  return z(N), E;
837
837
  }
838
838
  if (C) {
839
839
  if (re(C)) {
840
- const $ = await C(F, t), N = Pt($, A);
841
- if (N && (E[w] = {
840
+ const A = await C(x, t), N = Pt(A, $);
841
+ if (N && (E[S] = {
842
842
  ...N,
843
- ...se(ae.validate, N.message)
843
+ ...se(le.validate, N.message)
844
844
  }, !s))
845
845
  return z(N.message), E;
846
846
  } else if (H(C)) {
847
- let $ = {};
847
+ let A = {};
848
848
  for (const N in C) {
849
- if (!W($) && !s)
849
+ if (!W(A) && !s)
850
850
  break;
851
- const M = Pt(await C[N](F, t), A, N);
852
- M && ($ = {
851
+ const M = Pt(await C[N](x, t), $, N);
852
+ M && (A = {
853
853
  ...M,
854
854
  ...se(N, M.message)
855
- }, z(M.message), s && (E[w] = $));
855
+ }, z(M.message), s && (E[S] = A));
856
856
  }
857
- if (!W($) && (E[w] = {
858
- ref: A,
859
- ...$
857
+ if (!W(A) && (E[S] = {
858
+ ref: $,
859
+ ...A
860
860
  }, !s))
861
861
  return E;
862
862
  }
863
863
  }
864
864
  return z(!0), E;
865
865
  };
866
- const os = {
866
+ const ns = {
867
867
  mode: ee.onSubmit,
868
868
  reValidateMode: ee.onChange,
869
869
  shouldFocusError: !0
870
870
  };
871
- function ns(e = {}) {
871
+ function is(e = {}) {
872
872
  let r = {
873
- ...os,
873
+ ...ns,
874
874
  ...e
875
875
  }, t = {
876
876
  submitCount: 0,
@@ -887,11 +887,11 @@ function ns(e = {}) {
887
887
  validatingFields: {},
888
888
  errors: r.errors || {},
889
889
  disabled: r.disabled || !1
890
- }, s = {}, n = H(r.defaultValues) || H(r.values) ? U(r.defaultValues || r.values) || {} : {}, o = r.shouldUnregister ? {} : U(n), a = {
890
+ }, s = {}, n = H(r.defaultValues) || H(r.values) ? U(r.defaultValues || r.values) || {} : {}, o = r.shouldUnregister ? {} : U(n), l = {
891
891
  action: !1,
892
892
  mount: !1,
893
893
  watch: !1
894
- }, l = {
894
+ }, a = {
895
895
  mount: /* @__PURE__ */ new Set(),
896
896
  disabled: /* @__PURE__ */ new Set(),
897
897
  unMount: /* @__PURE__ */ new Set(),
@@ -907,7 +907,7 @@ function ns(e = {}) {
907
907
  isValid: !1,
908
908
  errors: !1
909
909
  };
910
- let _ = {
910
+ let h = {
911
911
  ...y
912
912
  };
913
913
  const f = {
@@ -915,35 +915,35 @@ function ns(e = {}) {
915
915
  state: xt()
916
916
  }, b = r.criteriaMode === ee.all, C = (i) => (c) => {
917
917
  clearTimeout(m), m = setTimeout(i, c);
918
- }, w = async (i) => {
919
- if (!r.disabled && (y.isValid || _.isValid || i)) {
918
+ }, S = async (i) => {
919
+ if (!r.disabled && (y.isValid || h.isValid || i)) {
920
920
  const c = r.resolver ? W((await X()).errors) : await q(s, !0);
921
921
  c !== t.isValid && f.state.next({
922
922
  isValid: c
923
923
  });
924
924
  }
925
925
  }, k = (i, c) => {
926
- !r.disabled && (y.isValidating || y.validatingFields || _.isValidating || _.validatingFields) && ((i || Array.from(l.mount)).forEach((u) => {
927
- u && (c ? P(t.validatingFields, u, c) : I(t.validatingFields, u));
926
+ !r.disabled && (y.isValidating || y.validatingFields || h.isValidating || h.validatingFields) && ((i || Array.from(a.mount)).forEach((u) => {
927
+ u && (c ? D(t.validatingFields, u, c) : I(t.validatingFields, u));
928
928
  }), f.state.next({
929
929
  validatingFields: t.validatingFields,
930
930
  isValidating: !W(t.validatingFields)
931
931
  }));
932
- }, B = (i, c = [], u, v, g = !0, h = !0) => {
932
+ }, R = (i, c = [], u, v, g = !0, _ = !0) => {
933
933
  if (v && u && !r.disabled) {
934
- if (a.action = !0, h && Array.isArray(p(s, i))) {
935
- const x = u(p(s, i), v.argA, v.argB);
936
- g && P(s, i, x);
934
+ if (l.action = !0, _ && Array.isArray(p(s, i))) {
935
+ const F = u(p(s, i), v.argA, v.argB);
936
+ g && D(s, i, F);
937
937
  }
938
- if (h && Array.isArray(p(t.errors, i))) {
939
- const x = u(p(t.errors, i), v.argA, v.argB);
940
- g && P(t.errors, i, x), rs(t.errors, i);
938
+ if (_ && Array.isArray(p(t.errors, i))) {
939
+ const F = u(p(t.errors, i), v.argA, v.argB);
940
+ g && D(t.errors, i, F), ss(t.errors, i);
941
941
  }
942
- if ((y.touchedFields || _.touchedFields) && h && Array.isArray(p(t.touchedFields, i))) {
943
- const x = u(p(t.touchedFields, i), v.argA, v.argB);
944
- g && P(t.touchedFields, i, x);
942
+ if ((y.touchedFields || h.touchedFields) && _ && Array.isArray(p(t.touchedFields, i))) {
943
+ const F = u(p(t.touchedFields, i), v.argA, v.argB);
944
+ g && D(t.touchedFields, i, F);
945
945
  }
946
- (y.dirtyFields || _.dirtyFields) && (t.dirtyFields = he(n, o)), f.state.next({
946
+ (y.dirtyFields || h.dirtyFields) && (t.dirtyFields = he(n, o)), f.state.next({
947
947
  name: i,
948
948
  isDirty: oe(i, c),
949
949
  dirtyFields: t.dirtyFields,
@@ -951,12 +951,12 @@ function ns(e = {}) {
951
951
  isValid: t.isValid
952
952
  });
953
953
  } else
954
- P(o, i, c);
955
- }, F = (i, c) => {
956
- P(t.errors, i, c), f.state.next({
954
+ D(o, i, c);
955
+ }, x = (i, c) => {
956
+ D(t.errors, i, c), f.state.next({
957
957
  errors: t.errors
958
958
  });
959
- }, A = (i) => {
959
+ }, $ = (i) => {
960
960
  t.errors = i, f.state.next({
961
961
  errors: t.errors,
962
962
  isValid: !1
@@ -964,51 +964,51 @@ function ns(e = {}) {
964
964
  }, z = (i, c, u, v) => {
965
965
  const g = p(s, i);
966
966
  if (g) {
967
- const h = p(o, i, L(u) ? p(n, i) : u);
968
- L(h) || v && v.defaultChecked || c ? P(o, i, c ? h : Et(g._f)) : M(i, h), a.mount && w();
967
+ const _ = p(o, i, T(u) ? p(n, i) : u);
968
+ T(_) || v && v.defaultChecked || c ? D(o, i, c ? _ : Ct(g._f)) : M(i, _), l.mount && S();
969
969
  }
970
970
  }, E = (i, c, u, v, g) => {
971
- let h = !1, x = !1;
972
- const D = {
971
+ let _ = !1, F = !1;
972
+ const P = {
973
973
  name: i
974
974
  };
975
975
  if (!r.disabled) {
976
976
  if (!u || v) {
977
- (y.isDirty || _.isDirty) && (x = t.isDirty, t.isDirty = D.isDirty = oe(), h = x !== D.isDirty);
978
- const R = te(p(n, i), c);
979
- x = !!p(t.dirtyFields, i), R ? I(t.dirtyFields, i) : P(t.dirtyFields, i, !0), D.dirtyFields = t.dirtyFields, h = h || (y.dirtyFields || _.dirtyFields) && x !== !R;
977
+ (y.isDirty || h.isDirty) && (F = t.isDirty, t.isDirty = P.isDirty = oe(), _ = F !== P.isDirty);
978
+ const B = te(p(n, i), c);
979
+ F = !!p(t.dirtyFields, i), B ? I(t.dirtyFields, i) : D(t.dirtyFields, i, !0), P.dirtyFields = t.dirtyFields, _ = _ || (y.dirtyFields || h.dirtyFields) && F !== !B;
980
980
  }
981
981
  if (u) {
982
- const R = p(t.touchedFields, i);
983
- R || (P(t.touchedFields, i, u), D.touchedFields = t.touchedFields, h = h || (y.touchedFields || _.touchedFields) && R !== u);
982
+ const B = p(t.touchedFields, i);
983
+ B || (D(t.touchedFields, i, u), P.touchedFields = t.touchedFields, _ = _ || (y.touchedFields || h.touchedFields) && B !== u);
984
984
  }
985
- h && g && f.state.next(D);
985
+ _ && g && f.state.next(P);
986
986
  }
987
- return h ? D : {};
987
+ return _ ? P : {};
988
988
  }, O = (i, c, u, v) => {
989
- const g = p(t.errors, i), h = (y.isValid || _.isValid) && K(c) && t.isValid !== c;
990
- if (r.delayError && u ? (d = C(() => F(i, u)), d(r.delayError)) : (clearTimeout(m), d = null, u ? P(t.errors, i, u) : I(t.errors, i)), (u ? !te(g, u) : g) || !W(v) || h) {
991
- const x = {
989
+ const g = p(t.errors, i), _ = (y.isValid || h.isValid) && K(c) && t.isValid !== c;
990
+ if (r.delayError && u ? (d = C(() => x(i, u)), d(r.delayError)) : (clearTimeout(m), d = null, u ? D(t.errors, i, u) : I(t.errors, i)), (u ? !te(g, u) : g) || !W(v) || _) {
991
+ const F = {
992
992
  ...v,
993
- ...h && K(c) ? { isValid: c } : {},
993
+ ..._ && K(c) ? { isValid: c } : {},
994
994
  errors: t.errors,
995
995
  name: i
996
996
  };
997
997
  t = {
998
998
  ...t,
999
- ...x
1000
- }, f.state.next(x);
999
+ ...F
1000
+ }, f.state.next(F);
1001
1001
  }
1002
1002
  }, X = async (i) => {
1003
1003
  k(i, !0);
1004
- const c = await r.resolver(o, r.context, Kr(i || l.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
1004
+ const c = await r.resolver(o, r.context, Jr(i || a.mount, s, r.criteriaMode, r.shouldUseNativeValidation));
1005
1005
  return k(i), c;
1006
- }, ie = async (i) => {
1006
+ }, ae = async (i) => {
1007
1007
  const { errors: c } = await X(i);
1008
1008
  if (i)
1009
1009
  for (const u of i) {
1010
1010
  const v = p(c, u);
1011
- v ? P(t.errors, u, v) : I(t.errors, u);
1011
+ v ? D(t.errors, u, v) : I(t.errors, u);
1012
1012
  }
1013
1013
  else
1014
1014
  t.errors = c;
@@ -1019,35 +1019,35 @@ function ns(e = {}) {
1019
1019
  for (const v in i) {
1020
1020
  const g = i[v];
1021
1021
  if (g) {
1022
- const { _f: h, ...x } = g;
1023
- if (h) {
1024
- const D = l.array.has(h.name), R = g._f && Jr(g._f);
1025
- R && y.validatingFields && k([h.name], !0);
1026
- const Y = await Nt(g, l.disabled, o, b, r.shouldUseNativeValidation && !c, D);
1027
- if (R && y.validatingFields && k([h.name]), Y[h.name] && (u.valid = !1, c))
1022
+ const { _f: _, ...F } = g;
1023
+ if (_) {
1024
+ const P = a.array.has(_.name), B = g._f && Xr(g._f);
1025
+ B && y.validatingFields && k([_.name], !0);
1026
+ const Y = await Dt(g, a.disabled, o, b, r.shouldUseNativeValidation && !c, P);
1027
+ if (B && y.validatingFields && k([_.name]), Y[_.name] && (u.valid = !1, c))
1028
1028
  break;
1029
- !c && (p(Y, h.name) ? D ? ss(t.errors, Y, h.name) : P(t.errors, h.name, Y[h.name]) : I(t.errors, h.name));
1029
+ !c && (p(Y, _.name) ? P ? os(t.errors, Y, _.name) : D(t.errors, _.name, Y[_.name]) : I(t.errors, _.name));
1030
1030
  }
1031
- !W(x) && await q(x, c, u);
1031
+ !W(F) && await q(F, c, u);
1032
1032
  }
1033
1033
  }
1034
1034
  return u.valid;
1035
1035
  }, se = () => {
1036
- for (const i of l.unMount) {
1036
+ for (const i of a.unMount) {
1037
1037
  const c = p(s, i);
1038
1038
  c && (c._f.refs ? c._f.refs.every((u) => !He(u)) : !He(c._f.ref)) && Be(i);
1039
1039
  }
1040
- l.unMount = /* @__PURE__ */ new Set();
1041
- }, oe = (i, c) => !r.disabled && (i && c && P(o, i, c), !te(xe(), n)), $ = (i, c, u) => Ze(i, l, {
1042
- ...a.mount ? o : L(c) ? n : J(i) ? { [i]: c } : c
1043
- }, u, c), N = (i) => rt(p(a.mount ? o : n, i, r.shouldUnregister ? p(n, i, []) : [])), M = (i, c, u = {}) => {
1040
+ a.unMount = /* @__PURE__ */ new Set();
1041
+ }, oe = (i, c) => !r.disabled && (i && c && D(o, i, c), !te(Fe(), n)), A = (i, c, u) => Ze(i, a, {
1042
+ ...l.mount ? o : T(c) ? n : J(i) ? { [i]: c } : c
1043
+ }, u, c), N = (i) => rt(p(l.mount ? o : n, i, r.shouldUnregister ? p(n, i, []) : [])), M = (i, c, u = {}) => {
1044
1044
  const v = p(s, i);
1045
1045
  let g = c;
1046
1046
  if (v) {
1047
- const h = v._f;
1048
- h && (!h.disabled && P(o, i, sr(c, h)), g = Pe(h.ref) && Z(c) ? "" : c, er(h.ref) ? [...h.ref.options].forEach((x) => x.selected = g.includes(x.value)) : h.refs ? we(h.ref) ? h.refs.forEach((x) => {
1049
- (!x.defaultChecked || !x.disabled) && (Array.isArray(g) ? x.checked = !!g.find((D) => D === x.value) : x.checked = g === x.value || !!g);
1050
- }) : h.refs.forEach((x) => x.checked = x.value === g) : at(h.ref) ? h.ref.value = "" : (h.ref.value = g, h.ref.type || f.state.next({
1047
+ const _ = v._f;
1048
+ _ && (!_.disabled && D(o, i, sr(c, _)), g = De(_.ref) && Z(c) ? "" : c, er(_.ref) ? [..._.ref.options].forEach((F) => F.selected = g.includes(F.value)) : _.refs ? we(_.ref) ? _.refs.forEach((F) => {
1049
+ (!F.defaultChecked || !F.disabled) && (Array.isArray(g) ? F.checked = !!g.find((P) => P === F.value) : F.checked = g === F.value || !!g);
1050
+ }) : _.refs.forEach((F) => F.checked = F.value === g) : at(_.ref) ? _.ref.value = "" : (_.ref.value = g, _.ref.type || f.state.next({
1051
1051
  name: i,
1052
1052
  values: U(o)
1053
1053
  })));
@@ -1057,49 +1057,49 @@ function ns(e = {}) {
1057
1057
  for (const v in c) {
1058
1058
  if (!c.hasOwnProperty(v))
1059
1059
  return;
1060
- const g = c[v], h = i + "." + v, x = p(s, h);
1061
- (l.array.has(i) || H(g) || x && !x._f) && !de(g) ? j(h, g, u) : M(h, g, u);
1060
+ const g = c[v], _ = i + "." + v, F = p(s, _);
1061
+ (a.array.has(i) || H(g) || F && !F._f) && !de(g) ? j(_, g, u) : M(_, g, u);
1062
1062
  }
1063
1063
  }, G = (i, c, u = {}) => {
1064
- const v = p(s, i), g = l.array.has(i), h = U(c);
1065
- P(o, i, h), g ? (f.array.next({
1064
+ const v = p(s, i), g = a.array.has(i), _ = U(c);
1065
+ D(o, i, _), g ? (f.array.next({
1066
1066
  name: i,
1067
1067
  values: U(o)
1068
- }), (y.isDirty || y.dirtyFields || _.isDirty || _.dirtyFields) && u.shouldDirty && f.state.next({
1068
+ }), (y.isDirty || y.dirtyFields || h.isDirty || h.dirtyFields) && u.shouldDirty && f.state.next({
1069
1069
  name: i,
1070
1070
  dirtyFields: he(n, o),
1071
- isDirty: oe(i, h)
1072
- })) : v && !v._f && !Z(h) ? j(i, h, u) : M(i, h, u), $t(i, l) && f.state.next({ ...t, name: i }), f.state.next({
1073
- name: a.mount ? i : void 0,
1071
+ isDirty: oe(i, _)
1072
+ })) : v && !v._f && !Z(_) ? j(i, _, u) : M(i, _, u), $t(i, a) && f.state.next({ ...t, name: i }), f.state.next({
1073
+ name: l.mount ? i : void 0,
1074
1074
  values: U(o)
1075
1075
  });
1076
1076
  }, ne = async (i) => {
1077
- a.mount = !0;
1077
+ l.mount = !0;
1078
1078
  const c = i.target;
1079
1079
  let u = c.name, v = !0;
1080
- const g = p(s, u), h = (R) => {
1081
- v = Number.isNaN(R) || de(R) && isNaN(R.getTime()) || te(R, p(o, u, R));
1082
- }, x = zt(r.mode), D = zt(r.reValidateMode);
1080
+ const g = p(s, u), _ = (B) => {
1081
+ v = Number.isNaN(B) || de(B) && isNaN(B.getTime()) || te(B, p(o, u, B));
1082
+ }, F = Et(r.mode), P = Et(r.reValidateMode);
1083
1083
  if (g) {
1084
- let R, Y;
1085
- const ke = c.type ? Et(g._f) : Qt(i), ue = i.type === De.BLUR || i.type === De.FOCUS_OUT, vr = !Xr(g._f) && !r.resolver && !p(t.errors, u) && !g._f.deps || ts(ue, p(t.touchedFields, u), t.isSubmitted, D, x), Te = $t(u, l, ue);
1086
- P(o, u, ke), ue ? (!c || !c.readOnly) && (g._f.onBlur && g._f.onBlur(i), d && d(0)) : g._f.onChange && g._f.onChange(i);
1087
- const Me = E(u, ke, ue), br = !W(Me) || Te;
1084
+ let B, Y;
1085
+ const ke = c.type ? Ct(g._f) : Qt(i), ue = i.type === Pe.BLUR || i.type === Pe.FOCUS_OUT, br = !Yr(g._f) && !r.resolver && !p(t.errors, u) && !g._f.deps || rs(ue, p(t.touchedFields, u), t.isSubmitted, P, F), Te = $t(u, a, ue);
1086
+ D(o, u, ke), ue ? (!c || !c.readOnly) && (g._f.onBlur && g._f.onBlur(i), d && d(0)) : g._f.onChange && g._f.onChange(i);
1087
+ const Me = E(u, ke, ue), Sr = !W(Me) || Te;
1088
1088
  if (!ue && f.state.next({
1089
1089
  name: u,
1090
1090
  type: i.type,
1091
1091
  values: U(o)
1092
- }), vr)
1093
- return (y.isValid || _.isValid) && (r.mode === "onBlur" ? ue && w() : ue || w()), br && f.state.next({ name: u, ...Te ? {} : Me });
1092
+ }), br)
1093
+ return (y.isValid || h.isValid) && (r.mode === "onBlur" ? ue && S() : ue || S()), Sr && f.state.next({ name: u, ...Te ? {} : Me });
1094
1094
  if (!ue && Te && f.state.next({ ...t }), r.resolver) {
1095
- const { errors: pt } = await X([u]);
1096
- if (h(ke), v) {
1097
- const Sr = Dt(t.errors, s, u), vt = Dt(pt, s, Sr.name || u);
1098
- R = vt.error, u = vt.name, Y = W(pt);
1095
+ const { errors: gt } = await X([u]);
1096
+ if (_(ke), v) {
1097
+ const wr = At(t.errors, s, u), pt = At(gt, s, wr.name || u);
1098
+ B = pt.error, u = pt.name, Y = W(gt);
1099
1099
  }
1100
1100
  } else
1101
- k([u], !0), R = (await Nt(g, l.disabled, o, b, r.shouldUseNativeValidation))[u], k([u]), h(ke), v && (R ? Y = !1 : (y.isValid || _.isValid) && (Y = await q(s, !0)));
1102
- v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) && fe(g._f.deps), O(u, Y, R, Me));
1101
+ k([u], !0), B = (await Dt(g, a.disabled, o, b, r.shouldUseNativeValidation))[u], k([u]), _(ke), v && (B ? Y = !1 : (y.isValid || h.isValid) && (Y = await q(s, !0)));
1102
+ v && (g._f.deps && (!Array.isArray(g._f.deps) || g._f.deps.length > 0) && fe(g._f.deps), O(u, Y, B, Me));
1103
1103
  }
1104
1104
  }, _e = (i, c) => {
1105
1105
  if (p(t.errors, c) && i.focus)
@@ -1108,36 +1108,36 @@ function ns(e = {}) {
1108
1108
  let u, v;
1109
1109
  const g = ve(i);
1110
1110
  if (r.resolver) {
1111
- const h = await ie(L(i) ? i : g);
1112
- u = W(h), v = i ? !g.some((x) => p(h, x)) : u;
1113
- } else i ? (v = (await Promise.all(g.map(async (h) => {
1114
- const x = p(s, h);
1115
- return await q(x && x._f ? { [h]: x } : x);
1116
- }))).every(Boolean), !(!v && !t.isValid) && w()) : v = u = await q(s);
1111
+ const _ = await ae(T(i) ? i : g);
1112
+ u = W(_), v = i ? !g.some((F) => p(_, F)) : u;
1113
+ } else i ? (v = (await Promise.all(g.map(async (_) => {
1114
+ const F = p(s, _);
1115
+ return await q(F && F._f ? { [_]: F } : F);
1116
+ }))).every(Boolean), !(!v && !t.isValid) && S()) : v = u = await q(s);
1117
1117
  return f.state.next({
1118
- ...!J(i) || (y.isValid || _.isValid) && u !== t.isValid ? {} : { name: i },
1118
+ ...!J(i) || (y.isValid || h.isValid) && u !== t.isValid ? {} : { name: i },
1119
1119
  ...r.resolver || !i ? { isValid: u } : {},
1120
1120
  errors: t.errors
1121
- }), c.shouldFocus && !v && be(s, _e, i ? g : l.mount), v;
1122
- }, xe = (i, c) => {
1121
+ }), c.shouldFocus && !v && be(s, _e, i ? g : a.mount), v;
1122
+ }, Fe = (i, c) => {
1123
1123
  let u = {
1124
- ...a.mount ? o : n
1124
+ ...l.mount ? o : n
1125
1125
  };
1126
- return c && (u = Yt(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)), L(i) ? u : J(i) ? p(u, i) : i.map((v) => p(u, v));
1127
- }, ut = (i, c) => ({
1126
+ return c && (u = Yt(c.dirtyFields ? t.dirtyFields : t.touchedFields, u)), T(i) ? u : J(i) ? p(u, i) : i.map((v) => p(u, v));
1127
+ }, ct = (i, c) => ({
1128
1128
  invalid: !!p((c || t).errors, i),
1129
1129
  isDirty: !!p((c || t).dirtyFields, i),
1130
1130
  error: p((c || t).errors, i),
1131
1131
  isValidating: !!p(t.validatingFields, i),
1132
1132
  isTouched: !!p((c || t).touchedFields, i)
1133
- }), fr = (i) => {
1133
+ }), yr = (i) => {
1134
1134
  i && ve(i).forEach((c) => I(t.errors, c)), f.state.next({
1135
1135
  errors: i ? t.errors : {}
1136
1136
  });
1137
- }, dt = (i, c, u) => {
1138
- const v = (p(s, i, { _f: {} })._f || {}).ref, g = p(t.errors, i) || {}, { ref: h, message: x, type: D, ...R } = g;
1139
- P(t.errors, i, {
1140
- ...R,
1137
+ }, ut = (i, c, u) => {
1138
+ const v = (p(s, i, { _f: {} })._f || {}).ref, g = p(t.errors, i) || {}, { ref: _, message: F, type: P, ...B } = g;
1139
+ D(t.errors, i, {
1140
+ ...B,
1141
1141
  ...c,
1142
1142
  ref: v
1143
1143
  }), f.state.next({
@@ -1145,38 +1145,38 @@ function ns(e = {}) {
1145
1145
  errors: t.errors,
1146
1146
  isValid: !1
1147
1147
  }), u && u.shouldFocus && v && v.focus && v.focus();
1148
- }, yr = (i, c) => re(i) ? f.state.subscribe({
1149
- next: (u) => "values" in u && i($(void 0, c), u)
1150
- }) : $(i, c, !0), ft = (i) => f.state.subscribe({
1148
+ }, mr = (i, c) => re(i) ? f.state.subscribe({
1149
+ next: (u) => "values" in u && i(A(void 0, c), u)
1150
+ }) : A(i, c, !0), dt = (i) => f.state.subscribe({
1151
1151
  next: (c) => {
1152
- es(i.name, c.name, i.exact) && Yr(c, i.formState || y, pr, i.reRenderRoot) && i.callback({
1152
+ ts(i.name, c.name, i.exact) && es(c, i.formState || y, vr, i.reRenderRoot) && i.callback({
1153
1153
  values: { ...o },
1154
1154
  ...t,
1155
1155
  ...c,
1156
1156
  defaultValues: n
1157
1157
  });
1158
1158
  }
1159
- }).unsubscribe, mr = (i) => (a.mount = !0, _ = {
1160
- ..._,
1159
+ }).unsubscribe, hr = (i) => (l.mount = !0, h = {
1160
+ ...h,
1161
1161
  ...i.formState
1162
- }, ft({
1162
+ }, dt({
1163
1163
  ...i,
1164
- formState: _
1164
+ formState: h
1165
1165
  })), Be = (i, c = {}) => {
1166
- for (const u of i ? ve(i) : l.mount)
1167
- l.mount.delete(u), l.array.delete(u), c.keepValue || (I(s, u), I(o, u)), !c.keepError && I(t.errors, u), !c.keepDirty && I(t.dirtyFields, u), !c.keepTouched && I(t.touchedFields, u), !c.keepIsValidating && I(t.validatingFields, u), !r.shouldUnregister && !c.keepDefaultValue && I(n, u);
1166
+ for (const u of i ? ve(i) : a.mount)
1167
+ a.mount.delete(u), a.array.delete(u), c.keepValue || (I(s, u), I(o, u)), !c.keepError && I(t.errors, u), !c.keepDirty && I(t.dirtyFields, u), !c.keepTouched && I(t.touchedFields, u), !c.keepIsValidating && I(t.validatingFields, u), !r.shouldUnregister && !c.keepDefaultValue && I(n, u);
1168
1168
  f.state.next({
1169
1169
  values: U(o)
1170
1170
  }), f.state.next({
1171
1171
  ...t,
1172
1172
  ...c.keepDirty ? { isDirty: oe() } : {}
1173
- }), !c.keepIsValid && w();
1174
- }, yt = ({ disabled: i, name: c }) => {
1175
- (K(i) && a.mount || i || l.disabled.has(c)) && (i ? l.disabled.add(c) : l.disabled.delete(c));
1173
+ }), !c.keepIsValid && S();
1174
+ }, ft = ({ disabled: i, name: c }) => {
1175
+ (K(i) && l.mount || i || a.disabled.has(c)) && (i ? a.disabled.add(c) : a.disabled.delete(c));
1176
1176
  }, Oe = (i, c = {}) => {
1177
1177
  let u = p(s, i);
1178
1178
  const v = K(c.disabled) || K(r.disabled);
1179
- return P(s, i, {
1179
+ return D(s, i, {
1180
1180
  ...u || {},
1181
1181
  _f: {
1182
1182
  ...u && u._f ? u._f : { ref: { name: i } },
@@ -1184,7 +1184,7 @@ function ns(e = {}) {
1184
1184
  mount: !0,
1185
1185
  ...c
1186
1186
  }
1187
- }), l.mount.add(i), u ? yt({
1187
+ }), a.mount.add(i), u ? ft({
1188
1188
  disabled: K(c.disabled) ? c.disabled : r.disabled,
1189
1189
  name: i
1190
1190
  }) : z(i, !0, c.value), {
@@ -1203,55 +1203,55 @@ function ns(e = {}) {
1203
1203
  ref: (g) => {
1204
1204
  if (g) {
1205
1205
  Oe(i, c), u = p(s, i);
1206
- const h = L(g.value) && g.querySelectorAll && g.querySelectorAll("input,select,textarea")[0] || g, x = qr(h), D = u._f.refs || [];
1207
- if (x ? D.find((R) => R === h) : h === u._f.ref)
1206
+ const _ = T(g.value) && g.querySelectorAll && g.querySelectorAll("input,select,textarea")[0] || g, F = Gr(_), P = u._f.refs || [];
1207
+ if (F ? P.find((B) => B === _) : _ === u._f.ref)
1208
1208
  return;
1209
- P(s, i, {
1209
+ D(s, i, {
1210
1210
  _f: {
1211
1211
  ...u._f,
1212
- ...x ? {
1212
+ ...F ? {
1213
1213
  refs: [
1214
- ...D.filter(He),
1215
- h,
1214
+ ...P.filter(He),
1215
+ _,
1216
1216
  ...Array.isArray(p(n, i)) ? [{}] : []
1217
1217
  ],
1218
- ref: { type: h.type, name: i }
1219
- } : { ref: h }
1218
+ ref: { type: _.type, name: i }
1219
+ } : { ref: _ }
1220
1220
  }
1221
- }), z(i, !1, void 0, h);
1221
+ }), z(i, !1, void 0, _);
1222
1222
  } else
1223
- u = p(s, i, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Kt(l.array, i) && a.action) && l.unMount.add(i);
1223
+ u = p(s, i, {}), u._f && (u._f.mount = !1), (r.shouldUnregister || c.shouldUnregister) && !(Kt(a.array, i) && l.action) && a.unMount.add(i);
1224
1224
  }
1225
1225
  };
1226
- }, Le = () => r.shouldFocusError && be(s, _e, l.mount), hr = (i) => {
1226
+ }, Le = () => r.shouldFocusError && be(s, _e, a.mount), _r = (i) => {
1227
1227
  K(i) && (f.state.next({ disabled: i }), be(s, (c, u) => {
1228
1228
  const v = p(s, u);
1229
1229
  v && (c.disabled = v._f.disabled || i, Array.isArray(v._f.refs) && v._f.refs.forEach((g) => {
1230
1230
  g.disabled = v._f.disabled || i;
1231
1231
  }));
1232
1232
  }, 0, !1));
1233
- }, mt = (i, c) => async (u) => {
1233
+ }, yt = (i, c) => async (u) => {
1234
1234
  let v;
1235
1235
  u && (u.preventDefault && u.preventDefault(), u.persist && u.persist());
1236
1236
  let g = U(o);
1237
1237
  if (f.state.next({
1238
1238
  isSubmitting: !0
1239
1239
  }), r.resolver) {
1240
- const { errors: h, values: x } = await X();
1241
- t.errors = h, g = U(x);
1240
+ const { errors: _, values: F } = await X();
1241
+ t.errors = _, g = U(F);
1242
1242
  } else
1243
1243
  await q(s);
1244
- if (l.disabled.size)
1245
- for (const h of l.disabled)
1246
- I(g, h);
1244
+ if (a.disabled.size)
1245
+ for (const _ of a.disabled)
1246
+ I(g, _);
1247
1247
  if (I(t.errors, "root"), W(t.errors)) {
1248
1248
  f.state.next({
1249
1249
  errors: {}
1250
1250
  });
1251
1251
  try {
1252
1252
  await i(g, u);
1253
- } catch (h) {
1254
- v = h;
1253
+ } catch (_) {
1254
+ v = _;
1255
1255
  }
1256
1256
  } else
1257
1257
  c && await c({ ...t.errors }, u), Le(), setTimeout(Le);
@@ -1263,26 +1263,26 @@ function ns(e = {}) {
1263
1263
  errors: t.errors
1264
1264
  }), v)
1265
1265
  throw v;
1266
- }, _r = (i, c = {}) => {
1267
- p(s, i) && (L(c.defaultValue) ? G(i, U(p(n, i))) : (G(i, c.defaultValue), P(n, i, U(c.defaultValue))), c.keepTouched || I(t.touchedFields, i), c.keepDirty || (I(t.dirtyFields, i), t.isDirty = c.defaultValue ? oe(i, U(p(n, i))) : oe()), c.keepError || (I(t.errors, i), y.isValid && w()), f.state.next({ ...t }));
1268
- }, ht = (i, c = {}) => {
1269
- const u = i ? U(i) : n, v = U(u), g = W(i), h = g ? n : v;
1266
+ }, gr = (i, c = {}) => {
1267
+ p(s, i) && (T(c.defaultValue) ? G(i, U(p(n, i))) : (G(i, c.defaultValue), D(n, i, U(c.defaultValue))), c.keepTouched || I(t.touchedFields, i), c.keepDirty || (I(t.dirtyFields, i), t.isDirty = c.defaultValue ? oe(i, U(p(n, i))) : oe()), c.keepError || (I(t.errors, i), y.isValid && S()), f.state.next({ ...t }));
1268
+ }, mt = (i, c = {}) => {
1269
+ const u = i ? U(i) : n, v = U(u), g = W(i), _ = g ? n : v;
1270
1270
  if (c.keepDefaultValues || (n = u), !c.keepValues) {
1271
1271
  if (c.keepDirtyValues) {
1272
- const x = /* @__PURE__ */ new Set([
1273
- ...l.mount,
1272
+ const F = /* @__PURE__ */ new Set([
1273
+ ...a.mount,
1274
1274
  ...Object.keys(he(n, o))
1275
1275
  ]);
1276
- for (const D of Array.from(x))
1277
- p(t.dirtyFields, D) ? P(h, D, p(o, D)) : G(D, p(h, D));
1276
+ for (const P of Array.from(F))
1277
+ p(t.dirtyFields, P) ? D(_, P, p(o, P)) : G(P, p(_, P));
1278
1278
  } else {
1279
- if (tt && L(i))
1280
- for (const x of l.mount) {
1281
- const D = p(s, x);
1282
- if (D && D._f) {
1283
- const R = Array.isArray(D._f.refs) ? D._f.refs[0] : D._f.ref;
1284
- if (Pe(R)) {
1285
- const Y = R.closest("form");
1279
+ if (tt && T(i))
1280
+ for (const F of a.mount) {
1281
+ const P = p(s, F);
1282
+ if (P && P._f) {
1283
+ const B = Array.isArray(P._f.refs) ? P._f.refs[0] : P._f.ref;
1284
+ if (De(B)) {
1285
+ const Y = B.closest("form");
1286
1286
  if (Y) {
1287
1287
  Y.reset();
1288
1288
  break;
@@ -1291,26 +1291,26 @@ function ns(e = {}) {
1291
1291
  }
1292
1292
  }
1293
1293
  if (c.keepFieldsRef)
1294
- for (const x of l.mount)
1295
- G(x, p(h, x));
1294
+ for (const F of a.mount)
1295
+ G(F, p(_, F));
1296
1296
  else
1297
1297
  s = {};
1298
1298
  }
1299
- o = r.shouldUnregister ? c.keepDefaultValues ? U(n) : {} : U(h), f.array.next({
1300
- values: { ...h }
1299
+ o = r.shouldUnregister ? c.keepDefaultValues ? U(n) : {} : U(_), f.array.next({
1300
+ values: { ..._ }
1301
1301
  }), f.state.next({
1302
- values: { ...h }
1302
+ values: { ..._ }
1303
1303
  });
1304
1304
  }
1305
- l = {
1306
- mount: c.keepDirtyValues ? l.mount : /* @__PURE__ */ new Set(),
1305
+ a = {
1306
+ mount: c.keepDirtyValues ? a.mount : /* @__PURE__ */ new Set(),
1307
1307
  unMount: /* @__PURE__ */ new Set(),
1308
1308
  array: /* @__PURE__ */ new Set(),
1309
1309
  disabled: /* @__PURE__ */ new Set(),
1310
1310
  watch: /* @__PURE__ */ new Set(),
1311
1311
  watchAll: !1,
1312
1312
  focus: ""
1313
- }, a.mount = !y.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !W(h), a.watch = !!r.shouldUnregister, f.state.next({
1313
+ }, l.mount = !y.isValid || !!c.keepIsValid || !!c.keepDirtyValues || !r.shouldUnregister && !W(_), l.watch = !!r.shouldUnregister, f.state.next({
1314
1314
  submitCount: c.keepSubmitCount ? t.submitCount : 0,
1315
1315
  isDirty: g ? !1 : c.keepDirty ? t.isDirty : !!(c.keepDefaultValues && !te(i, n)),
1316
1316
  isSubmitted: c.keepIsSubmitted ? t.isSubmitted : !1,
@@ -1321,42 +1321,42 @@ function ns(e = {}) {
1321
1321
  isSubmitting: !1,
1322
1322
  defaultValues: n
1323
1323
  });
1324
- }, _t = (i, c) => ht(re(i) ? i(o) : i, c), gr = (i, c = {}) => {
1324
+ }, ht = (i, c) => mt(re(i) ? i(o) : i, c), pr = (i, c = {}) => {
1325
1325
  const u = p(s, i), v = u && u._f;
1326
1326
  if (v) {
1327
1327
  const g = v.refs ? v.refs[0] : v.ref;
1328
1328
  g.focus && (g.focus(), c.shouldSelect && re(g.select) && g.select());
1329
1329
  }
1330
- }, pr = (i) => {
1330
+ }, vr = (i) => {
1331
1331
  t = {
1332
1332
  ...t,
1333
1333
  ...i
1334
1334
  };
1335
- }, gt = {
1335
+ }, _t = {
1336
1336
  control: {
1337
1337
  register: Oe,
1338
1338
  unregister: Be,
1339
- getFieldState: ut,
1340
- handleSubmit: mt,
1341
- setError: dt,
1342
- _subscribe: ft,
1339
+ getFieldState: ct,
1340
+ handleSubmit: yt,
1341
+ setError: ut,
1342
+ _subscribe: dt,
1343
1343
  _runSchema: X,
1344
1344
  _focusError: Le,
1345
- _getWatch: $,
1345
+ _getWatch: A,
1346
1346
  _getDirty: oe,
1347
- _setValid: w,
1348
- _setFieldArray: B,
1349
- _setDisabledField: yt,
1350
- _setErrors: A,
1347
+ _setValid: S,
1348
+ _setFieldArray: R,
1349
+ _setDisabledField: ft,
1350
+ _setErrors: $,
1351
1351
  _getFieldArray: N,
1352
- _reset: ht,
1352
+ _reset: mt,
1353
1353
  _resetDefaultValues: () => re(r.defaultValues) && r.defaultValues().then((i) => {
1354
- _t(i, r.resetOptions), f.state.next({
1354
+ ht(i, r.resetOptions), f.state.next({
1355
1355
  isLoading: !1
1356
1356
  });
1357
1357
  }),
1358
1358
  _removeUnmounted: se,
1359
- _disableForm: hr,
1359
+ _disableForm: _r,
1360
1360
  _subjects: f,
1361
1361
  _proxyFormState: y,
1362
1362
  get _fields() {
@@ -1366,19 +1366,19 @@ function ns(e = {}) {
1366
1366
  return o;
1367
1367
  },
1368
1368
  get _state() {
1369
- return a;
1369
+ return l;
1370
1370
  },
1371
1371
  set _state(i) {
1372
- a = i;
1372
+ l = i;
1373
1373
  },
1374
1374
  get _defaultValues() {
1375
1375
  return n;
1376
1376
  },
1377
1377
  get _names() {
1378
- return l;
1378
+ return a;
1379
1379
  },
1380
1380
  set _names(i) {
1381
- l = i;
1381
+ a = i;
1382
1382
  },
1383
1383
  get _formState() {
1384
1384
  return t;
@@ -1393,27 +1393,27 @@ function ns(e = {}) {
1393
1393
  };
1394
1394
  }
1395
1395
  },
1396
- subscribe: mr,
1396
+ subscribe: hr,
1397
1397
  trigger: fe,
1398
1398
  register: Oe,
1399
- handleSubmit: mt,
1400
- watch: yr,
1399
+ handleSubmit: yt,
1400
+ watch: mr,
1401
1401
  setValue: G,
1402
- getValues: xe,
1403
- reset: _t,
1404
- resetField: _r,
1405
- clearErrors: fr,
1402
+ getValues: Fe,
1403
+ reset: ht,
1404
+ resetField: gr,
1405
+ clearErrors: yr,
1406
1406
  unregister: Be,
1407
- setError: dt,
1408
- setFocus: gr,
1409
- getFieldState: ut
1407
+ setError: ut,
1408
+ setFocus: pr,
1409
+ getFieldState: ct
1410
1410
  };
1411
1411
  return {
1412
- ...gt,
1413
- formControl: gt
1412
+ ..._t,
1413
+ formControl: _t
1414
1414
  };
1415
1415
  }
1416
- function is(e = {}) {
1416
+ function as(e = {}) {
1417
1417
  const r = V.useRef(void 0), t = V.useRef(void 0), [s, n] = V.useState({
1418
1418
  isDirty: !1,
1419
1419
  isValidating: !1,
@@ -1438,23 +1438,23 @@ function is(e = {}) {
1438
1438
  formState: s
1439
1439
  }, e.defaultValues && !re(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
1440
1440
  else {
1441
- const { formControl: a, ...l } = ns(e);
1441
+ const { formControl: l, ...a } = is(e);
1442
1442
  r.current = {
1443
- ...l,
1443
+ ...a,
1444
1444
  formState: s
1445
1445
  };
1446
1446
  }
1447
1447
  const o = r.current.control;
1448
1448
  return o._options = e, nt(() => {
1449
- const a = o._subscribe({
1449
+ const l = o._subscribe({
1450
1450
  formState: o._proxyFormState,
1451
1451
  callback: () => n({ ...o._formState }),
1452
1452
  reRenderRoot: !0
1453
1453
  });
1454
- return n((l) => ({
1455
- ...l,
1454
+ return n((a) => ({
1455
+ ...a,
1456
1456
  isReady: !0
1457
- })), o._formState.isReady = !0, a;
1457
+ })), o._formState.isReady = !0, l;
1458
1458
  }, [o]), V.useEffect(() => o._disableForm(e.disabled), [o, e.disabled]), V.useEffect(() => {
1459
1459
  e.mode && (o._options.mode = e.mode), e.reValidateMode && (o._options.reValidateMode = e.reValidateMode);
1460
1460
  }, [o, e.mode, e.reValidateMode]), V.useEffect(() => {
@@ -1465,21 +1465,21 @@ function is(e = {}) {
1465
1465
  });
1466
1466
  }, [o, e.shouldUnregister]), V.useEffect(() => {
1467
1467
  if (o._proxyFormState.isDirty) {
1468
- const a = o._getDirty();
1469
- a !== s.isDirty && o._subjects.state.next({
1470
- isDirty: a
1468
+ const l = o._getDirty();
1469
+ l !== s.isDirty && o._subjects.state.next({
1470
+ isDirty: l
1471
1471
  });
1472
1472
  }
1473
1473
  }, [o, s.isDirty]), V.useEffect(() => {
1474
1474
  e.values && !te(e.values, t.current) ? (o._reset(e.values, {
1475
1475
  keepFieldsRef: !0,
1476
1476
  ...o._options.resetOptions
1477
- }), t.current = e.values, n((a) => ({ ...a }))) : o._resetDefaultValues();
1477
+ }), t.current = e.values, n((l) => ({ ...l }))) : o._resetDefaultValues();
1478
1478
  }, [o, e.values]), V.useEffect(() => {
1479
1479
  o._state.mount || (o._setValid(), o._state.mount = !0), o._state.watch && (o._state.watch = !1, o._subjects.state.next({ ...o._formState })), o._removeUnmounted();
1480
1480
  }), r.current.formState = Xt(s, o), r.current;
1481
1481
  }
1482
- const Rt = (e, r, t) => {
1482
+ const Nt = (e, r, t) => {
1483
1483
  if (e && "reportValidity" in e) {
1484
1484
  const s = p(t, r);
1485
1485
  e.setCustomValidity(s && s.message || ""), e.reportValidity();
@@ -1487,66 +1487,66 @@ const Rt = (e, r, t) => {
1487
1487
  }, Je = (e, r) => {
1488
1488
  for (const t in r.fields) {
1489
1489
  const s = r.fields[t];
1490
- s && s.ref && "reportValidity" in s.ref ? Rt(s.ref, t, e) : s && s.refs && s.refs.forEach((n) => Rt(n, t, e));
1490
+ s && s.ref && "reportValidity" in s.ref ? Nt(s.ref, t, e) : s && s.refs && s.refs.forEach((n) => Nt(n, t, e));
1491
1491
  }
1492
- }, Bt = (e, r) => {
1492
+ }, Rt = (e, r) => {
1493
1493
  r.shouldUseNativeValidation && Je(e, r);
1494
1494
  const t = {};
1495
1495
  for (const s in e) {
1496
1496
  const n = p(r.fields, s), o = Object.assign(e[s] || {}, { ref: n && n.ref });
1497
- if (as(r.names || Object.keys(e), s)) {
1498
- const a = Object.assign({}, p(t, s));
1499
- P(a, "root", o), P(t, s, a);
1500
- } else P(t, s, o);
1497
+ if (ls(r.names || Object.keys(e), s)) {
1498
+ const l = Object.assign({}, p(t, s));
1499
+ D(l, "root", o), D(t, s, l);
1500
+ } else D(t, s, o);
1501
1501
  }
1502
1502
  return t;
1503
- }, as = (e, r) => {
1504
- const t = Ot(r);
1505
- return e.some((s) => Ot(s).match(`^${t}\\.\\d+`));
1503
+ }, ls = (e, r) => {
1504
+ const t = Bt(r);
1505
+ return e.some((s) => Bt(s).match(`^${t}\\.\\d+`));
1506
1506
  };
1507
- function Ot(e) {
1507
+ function Bt(e) {
1508
1508
  return e.replace(/\]|\[/g, "");
1509
1509
  }
1510
1510
  function nr(e, r, t) {
1511
- function s(l, d) {
1511
+ function s(a, d) {
1512
1512
  var m;
1513
- Object.defineProperty(l, "_zod", {
1514
- value: l._zod ?? {},
1513
+ Object.defineProperty(a, "_zod", {
1514
+ value: a._zod ?? {},
1515
1515
  enumerable: !1
1516
- }), (m = l._zod).traits ?? (m.traits = /* @__PURE__ */ new Set()), l._zod.traits.add(e), r(l, d);
1517
- for (const y in a.prototype)
1518
- y in l || Object.defineProperty(l, y, { value: a.prototype[y].bind(l) });
1519
- l._zod.constr = a, l._zod.def = d;
1516
+ }), (m = a._zod).traits ?? (m.traits = /* @__PURE__ */ new Set()), a._zod.traits.add(e), r(a, d);
1517
+ for (const y in l.prototype)
1518
+ y in a || Object.defineProperty(a, y, { value: l.prototype[y].bind(a) });
1519
+ a._zod.constr = l, a._zod.def = d;
1520
1520
  }
1521
1521
  const n = (t == null ? void 0 : t.Parent) ?? Object;
1522
1522
  class o extends n {
1523
1523
  }
1524
1524
  Object.defineProperty(o, "name", { value: e });
1525
- function a(l) {
1525
+ function l(a) {
1526
1526
  var d;
1527
1527
  const m = t != null && t.Parent ? new o() : this;
1528
- s(m, l), (d = m._zod).deferred ?? (d.deferred = []);
1528
+ s(m, a), (d = m._zod).deferred ?? (d.deferred = []);
1529
1529
  for (const y of m._zod.deferred)
1530
1530
  y();
1531
1531
  return m;
1532
1532
  }
1533
- return Object.defineProperty(a, "init", { value: s }), Object.defineProperty(a, Symbol.hasInstance, {
1534
- value: (l) => {
1533
+ return Object.defineProperty(l, "init", { value: s }), Object.defineProperty(l, Symbol.hasInstance, {
1534
+ value: (a) => {
1535
1535
  var d, m;
1536
- return t != null && t.Parent && l instanceof t.Parent ? !0 : (m = (d = l == null ? void 0 : l._zod) == null ? void 0 : d.traits) == null ? void 0 : m.has(e);
1536
+ return t != null && t.Parent && a instanceof t.Parent ? !0 : (m = (d = a == null ? void 0 : a._zod) == null ? void 0 : d.traits) == null ? void 0 : m.has(e);
1537
1537
  }
1538
- }), Object.defineProperty(a, "name", { value: e }), a;
1538
+ }), Object.defineProperty(l, "name", { value: e }), l;
1539
1539
  }
1540
- class ls extends Error {
1540
+ class cs extends Error {
1541
1541
  constructor() {
1542
1542
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
1543
1543
  }
1544
1544
  }
1545
- const cs = {};
1545
+ const us = {};
1546
1546
  function ir(e) {
1547
- return cs;
1547
+ return us;
1548
1548
  }
1549
- function us(e, r) {
1549
+ function ds(e, r) {
1550
1550
  return typeof r == "bigint" ? r.toString() : r;
1551
1551
  }
1552
1552
  const ar = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
@@ -1555,10 +1555,10 @@ function Ee(e) {
1555
1555
  return typeof e == "string" ? e : e == null ? void 0 : e.message;
1556
1556
  }
1557
1557
  function lr(e, r, t) {
1558
- var n, o, a, l, d, m;
1558
+ var n, o, l, a, d, m;
1559
1559
  const s = { ...e, path: e.path ?? [] };
1560
1560
  if (!e.message) {
1561
- const y = Ee((a = (o = (n = e.inst) == null ? void 0 : n._zod.def) == null ? void 0 : o.error) == null ? void 0 : a.call(o, e)) ?? Ee((l = r == null ? void 0 : r.error) == null ? void 0 : l.call(r, e)) ?? Ee((d = t.customError) == null ? void 0 : d.call(t, e)) ?? Ee((m = t.localeError) == null ? void 0 : m.call(t, e)) ?? "Invalid input";
1561
+ const y = Ee((l = (o = (n = e.inst) == null ? void 0 : n._zod.def) == null ? void 0 : o.error) == null ? void 0 : l.call(o, e)) ?? Ee((a = r == null ? void 0 : r.error) == null ? void 0 : a.call(r, e)) ?? Ee((d = t.customError) == null ? void 0 : d.call(t, e)) ?? Ee((m = t.localeError) == null ? void 0 : m.call(t, e)) ?? "Invalid input";
1562
1562
  s.message = y;
1563
1563
  }
1564
1564
  return delete s.inst, delete s.continue, r != null && r.reportInput || delete s.input, s;
@@ -1570,29 +1570,29 @@ const cr = (e, r) => {
1570
1570
  }), Object.defineProperty(e, "issues", {
1571
1571
  value: r,
1572
1572
  enumerable: !1
1573
- }), e.message = JSON.stringify(r, us, 2), Object.defineProperty(e, "toString", {
1573
+ }), e.message = JSON.stringify(r, ds, 2), Object.defineProperty(e, "toString", {
1574
1574
  value: () => e.message,
1575
1575
  enumerable: !1
1576
1576
  });
1577
- }, ds = nr("$ZodError", cr), ur = nr("$ZodError", cr, { Parent: Error }), fs = (e) => (r, t, s, n) => {
1578
- const o = s ? Object.assign(s, { async: !1 }) : { async: !1 }, a = r._zod.run({ value: t, issues: [] }, o);
1579
- if (a instanceof Promise)
1580
- throw new ls();
1581
- if (a.issues.length) {
1582
- const l = new ((n == null ? void 0 : n.Err) ?? e)(a.issues.map((d) => lr(d, o, ir())));
1583
- throw ar(l, n == null ? void 0 : n.callee), l;
1577
+ }, fs = nr("$ZodError", cr), ur = nr("$ZodError", cr, { Parent: Error }), ys = (e) => (r, t, s, n) => {
1578
+ const o = s ? Object.assign(s, { async: !1 }) : { async: !1 }, l = r._zod.run({ value: t, issues: [] }, o);
1579
+ if (l instanceof Promise)
1580
+ throw new cs();
1581
+ if (l.issues.length) {
1582
+ const a = new ((n == null ? void 0 : n.Err) ?? e)(l.issues.map((d) => lr(d, o, ir())));
1583
+ throw ar(a, n == null ? void 0 : n.callee), a;
1584
1584
  }
1585
- return a.value;
1586
- }, ys = /* @__PURE__ */ fs(ur), ms = (e) => async (r, t, s, n) => {
1585
+ return l.value;
1586
+ }, ms = /* @__PURE__ */ ys(ur), hs = (e) => async (r, t, s, n) => {
1587
1587
  const o = s ? Object.assign(s, { async: !0 }) : { async: !0 };
1588
- let a = r._zod.run({ value: t, issues: [] }, o);
1589
- if (a instanceof Promise && (a = await a), a.issues.length) {
1590
- const l = new ((n == null ? void 0 : n.Err) ?? e)(a.issues.map((d) => lr(d, o, ir())));
1591
- throw ar(l, n == null ? void 0 : n.callee), l;
1588
+ let l = r._zod.run({ value: t, issues: [] }, o);
1589
+ if (l instanceof Promise && (l = await l), l.issues.length) {
1590
+ const a = new ((n == null ? void 0 : n.Err) ?? e)(l.issues.map((d) => lr(d, o, ir())));
1591
+ throw ar(a, n == null ? void 0 : n.callee), a;
1592
1592
  }
1593
- return a.value;
1594
- }, hs = /* @__PURE__ */ ms(ur);
1595
- function Lt(e, r) {
1593
+ return l.value;
1594
+ }, _s = /* @__PURE__ */ hs(ur);
1595
+ function Ot(e, r) {
1596
1596
  try {
1597
1597
  var t = e();
1598
1598
  } catch (s) {
@@ -1600,194 +1600,194 @@ function Lt(e, r) {
1600
1600
  }
1601
1601
  return t && t.then ? t.then(void 0, r) : t;
1602
1602
  }
1603
- function _s(e, r) {
1603
+ function gs(e, r) {
1604
1604
  for (var t = {}; e.length; ) {
1605
- var s = e[0], n = s.code, o = s.message, a = s.path.join(".");
1606
- if (!t[a]) if ("unionErrors" in s) {
1607
- var l = s.unionErrors[0].errors[0];
1608
- t[a] = { message: l.message, type: l.code };
1609
- } else t[a] = { message: o, type: n };
1605
+ var s = e[0], n = s.code, o = s.message, l = s.path.join(".");
1606
+ if (!t[l]) if ("unionErrors" in s) {
1607
+ var a = s.unionErrors[0].errors[0];
1608
+ t[l] = { message: a.message, type: a.code };
1609
+ } else t[l] = { message: o, type: n };
1610
1610
  if ("unionErrors" in s && s.unionErrors.forEach(function(y) {
1611
- return y.errors.forEach(function(_) {
1612
- return e.push(_);
1611
+ return y.errors.forEach(function(h) {
1612
+ return e.push(h);
1613
1613
  });
1614
1614
  }), r) {
1615
- var d = t[a].types, m = d && d[s.code];
1616
- t[a] = it(a, r, t, n, m ? [].concat(m, s.message) : s.message);
1615
+ var d = t[l].types, m = d && d[s.code];
1616
+ t[l] = it(l, r, t, n, m ? [].concat(m, s.message) : s.message);
1617
1617
  }
1618
1618
  e.shift();
1619
1619
  }
1620
1620
  return t;
1621
1621
  }
1622
- function gs(e, r) {
1622
+ function ps(e, r) {
1623
1623
  for (var t = {}; e.length; ) {
1624
- var s = e[0], n = s.code, o = s.message, a = s.path.join(".");
1625
- if (!t[a]) if (s.code === "invalid_union" && s.errors.length > 0) {
1626
- var l = s.errors[0][0];
1627
- t[a] = { message: l.message, type: l.code };
1628
- } else t[a] = { message: o, type: n };
1624
+ var s = e[0], n = s.code, o = s.message, l = s.path.join(".");
1625
+ if (!t[l]) if (s.code === "invalid_union" && s.errors.length > 0) {
1626
+ var a = s.errors[0][0];
1627
+ t[l] = { message: a.message, type: a.code };
1628
+ } else t[l] = { message: o, type: n };
1629
1629
  if (s.code === "invalid_union" && s.errors.forEach(function(y) {
1630
- return y.forEach(function(_) {
1631
- return e.push(_);
1630
+ return y.forEach(function(h) {
1631
+ return e.push(h);
1632
1632
  });
1633
1633
  }), r) {
1634
- var d = t[a].types, m = d && d[s.code];
1635
- t[a] = it(a, r, t, n, m ? [].concat(m, s.message) : s.message);
1634
+ var d = t[l].types, m = d && d[s.code];
1635
+ t[l] = it(l, r, t, n, m ? [].concat(m, s.message) : s.message);
1636
1636
  }
1637
1637
  e.shift();
1638
1638
  }
1639
1639
  return t;
1640
1640
  }
1641
- function ps(e, r, t) {
1641
+ function vs(e, r, t) {
1642
1642
  if (t === void 0 && (t = {}), (function(s) {
1643
1643
  return "_def" in s && typeof s._def == "object" && "typeName" in s._def;
1644
1644
  })(e)) return function(s, n, o) {
1645
1645
  try {
1646
- return Promise.resolve(Lt(function() {
1647
- return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(a) {
1648
- return o.shouldUseNativeValidation && Je({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1646
+ return Promise.resolve(Ot(function() {
1647
+ return Promise.resolve(e[t.mode === "sync" ? "parse" : "parseAsync"](s, r)).then(function(l) {
1648
+ return o.shouldUseNativeValidation && Je({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : l };
1649
1649
  });
1650
- }, function(a) {
1651
- if ((function(l) {
1652
- return Array.isArray(l == null ? void 0 : l.issues);
1653
- })(a)) return { values: {}, errors: Bt(_s(a.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
1654
- throw a;
1650
+ }, function(l) {
1651
+ if ((function(a) {
1652
+ return Array.isArray(a == null ? void 0 : a.issues);
1653
+ })(l)) return { values: {}, errors: Rt(gs(l.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
1654
+ throw l;
1655
1655
  }));
1656
- } catch (a) {
1657
- return Promise.reject(a);
1656
+ } catch (l) {
1657
+ return Promise.reject(l);
1658
1658
  }
1659
1659
  };
1660
1660
  if ((function(s) {
1661
1661
  return "_zod" in s && typeof s._zod == "object";
1662
1662
  })(e)) return function(s, n, o) {
1663
1663
  try {
1664
- return Promise.resolve(Lt(function() {
1665
- return Promise.resolve((t.mode === "sync" ? ys : hs)(e, s, r)).then(function(a) {
1666
- return o.shouldUseNativeValidation && Je({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : a };
1664
+ return Promise.resolve(Ot(function() {
1665
+ return Promise.resolve((t.mode === "sync" ? ms : _s)(e, s, r)).then(function(l) {
1666
+ return o.shouldUseNativeValidation && Je({}, o), { errors: {}, values: t.raw ? Object.assign({}, s) : l };
1667
1667
  });
1668
- }, function(a) {
1669
- if ((function(l) {
1670
- return l instanceof ds;
1671
- })(a)) return { values: {}, errors: Bt(gs(a.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
1672
- throw a;
1668
+ }, function(l) {
1669
+ if ((function(a) {
1670
+ return a instanceof fs;
1671
+ })(l)) return { values: {}, errors: Rt(ps(l.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
1672
+ throw l;
1673
1673
  }));
1674
- } catch (a) {
1675
- return Promise.reject(a);
1674
+ } catch (l) {
1675
+ return Promise.reject(l);
1676
1676
  }
1677
1677
  };
1678
1678
  throw new Error("Invalid input: not a Zod schema");
1679
1679
  }
1680
1680
  const dr = V.createContext(null);
1681
- function vs() {
1681
+ function bs() {
1682
1682
  const e = V.useContext(dr);
1683
1683
  if (!e)
1684
1684
  throw new Error("useFormContext must be used within a Form component");
1685
1685
  return e;
1686
1686
  }
1687
- function bs({
1687
+ function Ss({
1688
1688
  onSubmit: e,
1689
1689
  children: r,
1690
1690
  schema: t,
1691
1691
  defaultValues: s,
1692
1692
  mode: n = "onSubmit",
1693
1693
  reValidateMode: o = "onChange",
1694
- ...a
1694
+ ...l
1695
1695
  }) {
1696
- const l = is({
1697
- resolver: t ? ps(t) : void 0,
1696
+ const a = as({
1697
+ resolver: t ? vs(t) : void 0,
1698
1698
  defaultValues: s,
1699
1699
  mode: n,
1700
1700
  reValidateMode: o
1701
- }), d = l.handleSubmit(e);
1702
- return /* @__PURE__ */ S(dr.Provider, { value: l, children: /* @__PURE__ */ S("form", { onSubmit: d, ...a, children: typeof r == "function" ? r(l) : r }) });
1701
+ }), d = a.handleSubmit(e);
1702
+ return /* @__PURE__ */ w(dr.Provider, { value: a, children: /* @__PURE__ */ w("form", { onSubmit: d, ...l, children: typeof r == "function" ? r(a) : r }) });
1703
1703
  }
1704
- const Io = bs, Ss = "FormError-module__formError___kaUBn", ws = {
1705
- formError: Ss
1704
+ const Uo = Ss, ws = "FormError-module__formError___kaUBn", xs = {
1705
+ formError: ws
1706
1706
  }, Fs = ({ children: e, className: r, style: t }) => {
1707
- const s = T(), n = {
1707
+ const s = L(), n = {
1708
1708
  "--form-error-margin-top": `calc(${s.fonts.rhythm} * 0.17)`,
1709
1709
  color: s.colors.error,
1710
1710
  ...t
1711
1711
  };
1712
- return /* @__PURE__ */ S(
1712
+ return /* @__PURE__ */ w(
1713
1713
  "div",
1714
1714
  {
1715
- className: `${ws.formError} ${r || ""}`.trim(),
1715
+ className: `${xs.formError} ${r || ""}`.trim(),
1716
1716
  style: n,
1717
1717
  role: "alert",
1718
1718
  "aria-live": "polite",
1719
1719
  children: e
1720
1720
  }
1721
1721
  );
1722
- }, xs = "FormGroup-module__formGroup___aVI-B", ks = "FormGroup-module__inputWrapper___429QE", Vs = "FormGroup-module__indented___t61iz", Cs = "FormGroup-module__disabled___W-tJ0", Es = "FormGroup-module__required___mO3xA", me = {
1723
- formGroup: xs,
1724
- inputWrapper: ks,
1725
- indented: Vs,
1726
- disabled: Cs,
1727
- required: Es
1728
- }, zs = ({
1722
+ }, ks = "FormGroup-module__formGroup___aVI-B", Vs = "FormGroup-module__inputWrapper___429QE", Cs = "FormGroup-module__indented___t61iz", Es = "FormGroup-module__disabled___W-tJ0", zs = "FormGroup-module__required___mO3xA", me = {
1723
+ formGroup: ks,
1724
+ inputWrapper: Vs,
1725
+ indented: Cs,
1726
+ disabled: Es,
1727
+ required: zs
1728
+ }, $s = ({
1729
1729
  children: e,
1730
1730
  label: r,
1731
1731
  name: t,
1732
1732
  error: s = !1,
1733
1733
  errorMessage: n,
1734
1734
  disabled: o = !1,
1735
- required: a = !1,
1736
- indent: l = !1,
1735
+ required: l = !1,
1736
+ indent: a = !1,
1737
1737
  className: d,
1738
1738
  style: m,
1739
1739
  labelProps: y
1740
1740
  }) => {
1741
- const _ = T(), f = [
1741
+ const h = L(), f = [
1742
1742
  me.formGroup,
1743
1743
  s ? me.error : "",
1744
1744
  o ? me.disabled : "",
1745
1745
  d
1746
1746
  ].filter(Boolean).join(" "), b = {
1747
- "--form-group-margin-bottom": `calc(${_.fonts.rhythm} * 0.35)`,
1747
+ "--form-group-margin-bottom": `calc(${h.fonts.rhythm} * 0.35)`,
1748
1748
  ...m
1749
- }, C = V.Children.map(e, (w) => {
1750
- if (V.isValidElement(w)) {
1749
+ }, C = V.Children.map(e, (S) => {
1750
+ if (V.isValidElement(S)) {
1751
1751
  const k = {};
1752
- if (o && w.props.disabled === void 0 && (k.disabled = !0), s && w.props.error === void 0 && (k.error = !0), t && w.props.id === void 0 && (k.id = t), Object.keys(k).length > 0)
1753
- return V.cloneElement(w, k);
1752
+ if (o && S.props.disabled === void 0 && (k.disabled = !0), s && S.props.error === void 0 && (k.error = !0), t && S.props.id === void 0 && (k.id = t), Object.keys(k).length > 0)
1753
+ return V.cloneElement(S, k);
1754
1754
  }
1755
- return w;
1755
+ return S;
1756
1756
  });
1757
1757
  return /* @__PURE__ */ Q("div", { className: f, style: b, children: [
1758
1758
  r && /* @__PURE__ */ Q(et, { htmlFor: t, disabled: o, error: s, ...y, children: [
1759
1759
  r,
1760
- a && /* @__PURE__ */ Q("span", { className: me.required, "aria-label": "required", children: [
1760
+ l && /* @__PURE__ */ Q("span", { className: me.required, "aria-label": "required", children: [
1761
1761
  " ",
1762
1762
  "*"
1763
1763
  ] })
1764
1764
  ] }),
1765
- /* @__PURE__ */ S("div", { className: `${me.inputWrapper} ${l ? me.indented : ""}`, children: C }),
1766
- s && n && /* @__PURE__ */ S(Fs, { children: n })
1765
+ /* @__PURE__ */ w("div", { className: `${me.inputWrapper} ${a ? me.indented : ""}`, children: C }),
1766
+ s && n && /* @__PURE__ */ w(Fs, { children: n })
1767
1767
  ] });
1768
1768
  };
1769
- function Fe({
1769
+ function xe({
1770
1770
  name: e,
1771
1771
  label: r,
1772
1772
  required: t,
1773
1773
  children: s,
1774
1774
  rules: n,
1775
1775
  disabled: o,
1776
- className: a,
1777
- style: l,
1776
+ className: l,
1777
+ style: a,
1778
1778
  indent: d,
1779
1779
  labelProps: m
1780
1780
  }) {
1781
- const { control: y } = vs(), {
1782
- field: _,
1781
+ const { control: y } = bs(), {
1782
+ field: h,
1783
1783
  fieldState: { error: f }
1784
- } = Wr({
1784
+ } = qr({
1785
1785
  name: e,
1786
1786
  control: y,
1787
1787
  rules: n
1788
1788
  });
1789
- return /* @__PURE__ */ S(
1790
- zs,
1789
+ return /* @__PURE__ */ w(
1790
+ $s,
1791
1791
  {
1792
1792
  label: r,
1793
1793
  name: e,
@@ -1795,26 +1795,26 @@ function Fe({
1795
1795
  errorMessage: f == null ? void 0 : f.message,
1796
1796
  disabled: o,
1797
1797
  required: t,
1798
- className: a,
1799
- style: l,
1798
+ className: l,
1799
+ style: a,
1800
1800
  indent: d,
1801
1801
  labelProps: m,
1802
1802
  children: s({
1803
- value: _.value,
1804
- onChange: _.onChange,
1805
- onBlur: _.onBlur,
1806
- name: _.name,
1803
+ value: h.value,
1804
+ onChange: h.onChange,
1805
+ onBlur: h.onBlur,
1806
+ name: h.name,
1807
1807
  error: !!f,
1808
1808
  indent: d
1809
1809
  })
1810
1810
  }
1811
1811
  );
1812
1812
  }
1813
- const As = "Input-module__input___WjT81", $s = "Input-module__sizeSmall___NFvsi", Ds = "Input-module__sizeDefault___AxPA0", Ue = {
1813
+ const As = "Input-module__input___WjT81", Ps = "Input-module__sizeSmall___NFvsi", Ds = "Input-module__sizeDefault___AxPA0", Ue = {
1814
1814
  input: As,
1815
- sizeSmall: $s,
1815
+ sizeSmall: Ps,
1816
1816
  sizeDefault: Ds
1817
- }, Ps = ({
1817
+ }, Ns = ({
1818
1818
  color: e = "#000",
1819
1819
  disabled: r = !1,
1820
1820
  fontSize: t = "1em",
@@ -1825,27 +1825,27 @@ const As = "Input-module__input___WjT81", $s = "Input-module__sizeSmall___NFvsi"
1825
1825
  fontSize: t,
1826
1826
  opacity: r ? 0.3 : 1,
1827
1827
  placeholderOpacity: s
1828
- }), Ns = ({
1828
+ }), Rs = ({
1829
1829
  color: e,
1830
1830
  disabled: r = !1,
1831
1831
  error: t = !1,
1832
1832
  fontSize: s,
1833
1833
  name: n = "",
1834
1834
  onChange: o,
1835
- placeholder: a,
1836
- placeholderOpacity: l = 0.3,
1835
+ placeholder: l,
1836
+ placeholderOpacity: a = 0.3,
1837
1837
  size: d,
1838
1838
  style: m,
1839
1839
  type: y = "text",
1840
- value: _ = "",
1840
+ value: h = "",
1841
1841
  ...f
1842
1842
  }) => {
1843
- const b = T(), C = b.colors.error, w = t ? C : e || b.colors.primary, k = Ps({
1844
- color: w,
1843
+ const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k = Ns({
1844
+ color: S,
1845
1845
  disabled: r,
1846
1846
  fontSize: s || b.fonts.size,
1847
- placeholderOpacity: l
1848
- }), B = {
1847
+ placeholderOpacity: a
1848
+ }), R = {
1849
1849
  "--placeholder-opacity": k.placeholderOpacity,
1850
1850
  "--border-width": b.border.width,
1851
1851
  "--border-radius": b.border.radius,
@@ -1856,34 +1856,34 @@ const As = "Input-module__input___WjT81", $s = "Input-module__sizeSmall___NFvsi"
1856
1856
  fontSize: k.fontSize,
1857
1857
  opacity: k.opacity,
1858
1858
  ...m
1859
- }, F = [Ue.input, d === "small" ? Ue.sizeSmall : Ue.sizeDefault].filter(Boolean).join(" ");
1860
- return /* @__PURE__ */ S(
1859
+ }, x = [Ue.input, d === "small" ? Ue.sizeSmall : Ue.sizeDefault].filter(Boolean).join(" ");
1860
+ return /* @__PURE__ */ w(
1861
1861
  "input",
1862
1862
  {
1863
- className: F,
1863
+ className: x,
1864
1864
  disabled: r,
1865
1865
  name: n,
1866
1866
  onChange: o,
1867
- placeholder: a,
1868
- style: B,
1867
+ placeholder: l,
1868
+ style: R,
1869
1869
  type: y,
1870
- value: _,
1870
+ value: h,
1871
1871
  ...f
1872
1872
  }
1873
1873
  );
1874
1874
  };
1875
- function Ho({
1875
+ function jo({
1876
1876
  name: e,
1877
1877
  label: r,
1878
1878
  required: t,
1879
1879
  rules: s,
1880
1880
  disabled: n,
1881
1881
  className: o,
1882
- style: a,
1883
- ...l
1882
+ style: l,
1883
+ ...a
1884
1884
  }) {
1885
- return /* @__PURE__ */ S(
1886
- Fe,
1885
+ return /* @__PURE__ */ w(
1886
+ xe,
1887
1887
  {
1888
1888
  name: e,
1889
1889
  label: r,
@@ -1891,12 +1891,12 @@ function Ho({
1891
1891
  rules: s,
1892
1892
  disabled: n,
1893
1893
  className: o,
1894
- style: a,
1895
- children: ({ value: d, onChange: m, onBlur: y, name: _, error: f }) => /* @__PURE__ */ S(
1896
- Ns,
1894
+ style: l,
1895
+ children: ({ value: d, onChange: m, onBlur: y, name: h, error: f }) => /* @__PURE__ */ w(
1896
+ Rs,
1897
1897
  {
1898
- ...l,
1899
- name: _,
1898
+ ...a,
1899
+ name: h,
1900
1900
  value: d || "",
1901
1901
  onChange: (b) => m(b.target.value),
1902
1902
  onBlur: y,
@@ -1906,11 +1906,11 @@ function Ho({
1906
1906
  }
1907
1907
  );
1908
1908
  }
1909
- const Rs = "Textarea-module__textarea___Z-y6g", Bs = "Textarea-module__sizeSmall___HHFEM", Os = "Textarea-module__sizeDefault___LL2Uc", je = {
1910
- textarea: Rs,
1911
- sizeSmall: Bs,
1912
- sizeDefault: Os
1913
- }, Ls = ({
1909
+ const Bs = "Textarea-module__textarea___Z-y6g", Os = "Textarea-module__sizeSmall___HHFEM", Ls = "Textarea-module__sizeDefault___LL2Uc", je = {
1910
+ textarea: Bs,
1911
+ sizeSmall: Os,
1912
+ sizeDefault: Ls
1913
+ }, Ts = ({
1914
1914
  color: e = "#000",
1915
1915
  disabled: r = !1,
1916
1916
  placeholderOpacity: t = 0.3
@@ -1919,26 +1919,26 @@ const Rs = "Textarea-module__textarea___Z-y6g", Bs = "Textarea-module__sizeSmall
1919
1919
  borderColor: e,
1920
1920
  opacity: r ? 0.3 : 1,
1921
1921
  placeholderOpacity: t
1922
- }), Ts = ({
1922
+ }), Ms = ({
1923
1923
  color: e,
1924
1924
  disabled: r = !1,
1925
1925
  error: t = !1,
1926
1926
  fontSize: s,
1927
1927
  name: n = "",
1928
1928
  onChange: o,
1929
- placeholder: a,
1930
- placeholderOpacity: l = 0.3,
1929
+ placeholder: l,
1930
+ placeholderOpacity: a = 0.3,
1931
1931
  rows: d = 3,
1932
1932
  size: m,
1933
1933
  style: y,
1934
- value: _ = "",
1934
+ value: h = "",
1935
1935
  ...f
1936
1936
  }) => {
1937
- const b = T(), C = b.colors.error, w = t ? C : e || b.colors.primary, k = Ls({
1938
- color: w,
1937
+ const b = L(), C = b.colors.error, S = t ? C : e || b.colors.primary, k = Ts({
1938
+ color: S,
1939
1939
  disabled: r,
1940
- placeholderOpacity: l
1941
- }), B = {
1940
+ placeholderOpacity: a
1941
+ }), R = {
1942
1942
  "--placeholder-opacity": k.placeholderOpacity,
1943
1943
  "--border-width": b.border.width,
1944
1944
  "--border-radius": b.border.radius,
@@ -1949,34 +1949,34 @@ const Rs = "Textarea-module__textarea___Z-y6g", Bs = "Textarea-module__sizeSmall
1949
1949
  fontSize: s || b.fonts.size,
1950
1950
  opacity: k.opacity,
1951
1951
  ...y
1952
- }, F = [je.textarea, m === "small" ? je.sizeSmall : je.sizeDefault].filter(Boolean).join(" ");
1953
- return /* @__PURE__ */ S(
1952
+ }, x = [je.textarea, m === "small" ? je.sizeSmall : je.sizeDefault].filter(Boolean).join(" ");
1953
+ return /* @__PURE__ */ w(
1954
1954
  "textarea",
1955
1955
  {
1956
- className: F,
1956
+ className: x,
1957
1957
  disabled: r,
1958
1958
  name: n,
1959
1959
  onChange: o,
1960
- placeholder: a,
1960
+ placeholder: l,
1961
1961
  rows: d,
1962
- style: B,
1963
- value: _,
1962
+ style: R,
1963
+ value: h,
1964
1964
  ...f
1965
1965
  }
1966
1966
  );
1967
1967
  };
1968
- function Uo({
1968
+ function Wo({
1969
1969
  name: e,
1970
1970
  label: r,
1971
1971
  required: t,
1972
1972
  rules: s,
1973
1973
  disabled: n,
1974
1974
  className: o,
1975
- style: a,
1976
- ...l
1975
+ style: l,
1976
+ ...a
1977
1977
  }) {
1978
- return /* @__PURE__ */ S(
1979
- Fe,
1978
+ return /* @__PURE__ */ w(
1979
+ xe,
1980
1980
  {
1981
1981
  name: e,
1982
1982
  label: r,
@@ -1984,12 +1984,12 @@ function Uo({
1984
1984
  rules: s,
1985
1985
  disabled: n,
1986
1986
  className: o,
1987
- style: a,
1988
- children: ({ value: d, onChange: m, onBlur: y, name: _, error: f }) => /* @__PURE__ */ S(
1989
- Ts,
1987
+ style: l,
1988
+ children: ({ value: d, onChange: m, onBlur: y, name: h, error: f }) => /* @__PURE__ */ w(
1989
+ Ms,
1990
1990
  {
1991
- ...l,
1992
- name: _,
1991
+ ...a,
1992
+ name: h,
1993
1993
  value: d || "",
1994
1994
  onChange: (b) => m(b.target.value),
1995
1995
  onBlur: y,
@@ -1999,11 +1999,11 @@ function Uo({
1999
1999
  }
2000
2000
  );
2001
2001
  }
2002
- const Ms = "Select-module__select___cjdcr", Is = "Select-module__sizeSmall___i1quj", Hs = "Select-module__sizeDefault___EiWvW", We = {
2003
- select: Ms,
2004
- sizeSmall: Is,
2005
- sizeDefault: Hs
2006
- }, Us = ({
2002
+ const Is = "Select-module__select___cjdcr", Hs = "Select-module__sizeSmall___i1quj", Us = "Select-module__sizeDefault___EiWvW", We = {
2003
+ select: Is,
2004
+ sizeSmall: Hs,
2005
+ sizeDefault: Us
2006
+ }, js = ({
2007
2007
  color: e = "#000",
2008
2008
  disabled: r = !1
2009
2009
  }) => ({
@@ -2012,7 +2012,7 @@ const Ms = "Select-module__select___cjdcr", Is = "Select-module__sizeSmall___i1q
2012
2012
  cursor: r ? "default" : "pointer",
2013
2013
  opacity: r ? 0.3 : 1,
2014
2014
  backgroundImage: ((o) => {
2015
- const a = `
2015
+ const l = `
2016
2016
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
2017
2017
  <path
2018
2018
  d="M 30 42.5 L 50 22.5 L 70 42.5"
@@ -2028,23 +2028,23 @@ const Ms = "Select-module__select___cjdcr", Is = "Select-module__sizeSmall___i1q
2028
2028
  />
2029
2029
  </svg>
2030
2030
  `.trim();
2031
- return `url("data:image/svg+xml,${encodeURIComponent(a)}")`;
2031
+ return `url("data:image/svg+xml,${encodeURIComponent(l)}")`;
2032
2032
  })(e)
2033
- }), js = ({
2033
+ }), Ws = ({
2034
2034
  children: e,
2035
2035
  color: r,
2036
2036
  disabled: t = !1,
2037
2037
  error: s = !1,
2038
2038
  fontSize: n,
2039
2039
  name: o = "",
2040
- onChange: a,
2041
- placeholder: l = "",
2040
+ onChange: l,
2041
+ placeholder: a = "",
2042
2042
  size: d,
2043
2043
  style: m,
2044
2044
  value: y = "",
2045
- ..._
2045
+ ...h
2046
2046
  }) => {
2047
- const f = T(), b = f.colors.error, C = s ? b : r || f.colors.primary, w = Us({
2047
+ const f = L(), b = f.colors.error, C = s ? b : r || f.colors.primary, S = js({
2048
2048
  color: C,
2049
2049
  disabled: t
2050
2050
  }), k = {
@@ -2052,48 +2052,48 @@ const Ms = "Select-module__select___cjdcr", Is = "Select-module__sizeSmall___i1q
2052
2052
  "--border-radius": f.border.radius,
2053
2053
  "--select-padding-small": `calc(${f.fonts.rhythm} * 0.07) calc(${f.fonts.rhythm} * 1.2) calc(${f.fonts.rhythm} * 0.07) calc(${f.fonts.rhythm} * 0.17)`,
2054
2054
  "--select-padding-default": `calc(${f.fonts.rhythm} * 0.17) calc(${f.fonts.rhythm} * 1.4) calc(${f.fonts.rhythm} * 0.17) calc(${f.fonts.rhythm} * 0.35)`,
2055
- backgroundImage: w.backgroundImage,
2055
+ backgroundImage: S.backgroundImage,
2056
2056
  backgroundPosition: "right center",
2057
2057
  backgroundRepeat: "no-repeat",
2058
2058
  backgroundSize: "auto 85%",
2059
2059
  backgroundColor: "transparent",
2060
- borderColor: w.borderColor,
2061
- color: w.color,
2062
- cursor: w.cursor,
2060
+ borderColor: S.borderColor,
2061
+ color: S.color,
2062
+ cursor: S.cursor,
2063
2063
  fontSize: n || f.fonts.size,
2064
- opacity: w.opacity,
2064
+ opacity: S.opacity,
2065
2065
  ...m
2066
- }, B = [We.select, d === "small" ? We.sizeSmall : We.sizeDefault].filter(Boolean).join(" ");
2066
+ }, R = [We.select, d === "small" ? We.sizeSmall : We.sizeDefault].filter(Boolean).join(" ");
2067
2067
  return /* @__PURE__ */ Q(
2068
2068
  "select",
2069
2069
  {
2070
- className: B,
2070
+ className: R,
2071
2071
  disabled: t,
2072
2072
  name: o,
2073
- onChange: a,
2073
+ onChange: l,
2074
2074
  style: k,
2075
2075
  value: y,
2076
- ..._,
2076
+ ...h,
2077
2077
  children: [
2078
- l !== "" && /* @__PURE__ */ S("option", { disabled: !0, value: "", children: l }),
2078
+ a !== "" && /* @__PURE__ */ w("option", { disabled: !0, value: "", children: a }),
2079
2079
  e
2080
2080
  ]
2081
2081
  }
2082
2082
  );
2083
2083
  };
2084
- function jo({
2084
+ function qo({
2085
2085
  name: e,
2086
2086
  label: r,
2087
2087
  required: t,
2088
2088
  rules: s,
2089
2089
  disabled: n,
2090
2090
  className: o,
2091
- style: a,
2092
- children: l,
2091
+ style: l,
2092
+ children: a,
2093
2093
  ...d
2094
2094
  }) {
2095
- return /* @__PURE__ */ S(
2096
- Fe,
2095
+ return /* @__PURE__ */ w(
2096
+ xe,
2097
2097
  {
2098
2098
  name: e,
2099
2099
  label: r,
@@ -2101,33 +2101,33 @@ function jo({
2101
2101
  rules: s,
2102
2102
  disabled: n,
2103
2103
  className: o,
2104
- style: a,
2105
- children: ({ value: m, onChange: y, onBlur: _, name: f, error: b }) => /* @__PURE__ */ S(
2106
- js,
2104
+ style: l,
2105
+ children: ({ value: m, onChange: y, onBlur: h, name: f, error: b }) => /* @__PURE__ */ w(
2106
+ Ws,
2107
2107
  {
2108
2108
  ...d,
2109
2109
  name: f,
2110
2110
  value: m || "",
2111
2111
  onChange: (C) => y(C.target.value),
2112
- onBlur: _,
2112
+ onBlur: h,
2113
2113
  error: b,
2114
- children: l
2114
+ children: a
2115
2115
  }
2116
2116
  )
2117
2117
  }
2118
2118
  );
2119
2119
  }
2120
- function Wo({
2120
+ function Go({
2121
2121
  name: e,
2122
2122
  required: r,
2123
2123
  rules: t,
2124
2124
  disabled: s,
2125
2125
  className: n,
2126
2126
  style: o,
2127
- ...a
2127
+ ...l
2128
2128
  }) {
2129
- return /* @__PURE__ */ S(
2130
- Fe,
2129
+ return /* @__PURE__ */ w(
2130
+ xe,
2131
2131
  {
2132
2132
  name: e,
2133
2133
  required: r,
@@ -2135,55 +2135,55 @@ function Wo({
2135
2135
  disabled: s,
2136
2136
  className: n,
2137
2137
  style: o,
2138
- children: ({ value: l, onChange: d, name: m, error: y }) => /* @__PURE__ */ S(
2139
- Mr,
2138
+ children: ({ value: a, onChange: d, name: m, error: y }) => /* @__PURE__ */ w(
2139
+ Ir,
2140
2140
  {
2141
- ...a,
2141
+ ...l,
2142
2142
  name: m,
2143
- checked: !!l,
2144
- onChange: (_) => d(_.target.checked),
2143
+ checked: !!a,
2144
+ onChange: (h) => d(h.target.checked),
2145
2145
  error: y
2146
2146
  }
2147
2147
  )
2148
2148
  }
2149
2149
  );
2150
2150
  }
2151
- const Ws = "Radio-module__container___AQxhk", qs = "Radio-module__svg___zl5kF", Gs = "Radio-module__label___vAFIP", qe = {
2152
- container: Ws,
2153
- svg: qs,
2154
- label: Gs
2155
- }, Zs = ({
2151
+ const qs = "Radio-module__container___AQxhk", Gs = "Radio-module__svg___zl5kF", Zs = "Radio-module__label___vAFIP", qe = {
2152
+ container: qs,
2153
+ svg: Gs,
2154
+ label: Zs
2155
+ }, Qs = ({
2156
2156
  color: e = "#000",
2157
2157
  disabled: r = !1
2158
2158
  }) => ({
2159
2159
  radioColor: e,
2160
2160
  cursor: r ? "default" : "pointer",
2161
2161
  opacity: r ? 0.3 : 1
2162
- }), Qs = ({
2162
+ }), Ks = ({
2163
2163
  checked: e = !1,
2164
2164
  color: r,
2165
2165
  disabled: t = !1,
2166
2166
  error: s = !1,
2167
2167
  fontSize: n,
2168
2168
  id: o,
2169
- label: a,
2170
- labelStyle: l,
2169
+ label: l,
2170
+ labelStyle: a,
2171
2171
  name: d,
2172
2172
  onChange: m,
2173
2173
  style: y,
2174
- ..._
2174
+ ...h
2175
2175
  }) => {
2176
- const f = T(), b = o || Gt(), C = f.colors.error, w = s ? C : r || f.colors.primary, k = Zs({
2177
- color: w,
2176
+ const f = L(), b = o || Gt(), C = f.colors.error, S = s ? C : r || f.colors.primary, k = Qs({
2177
+ color: S,
2178
2178
  disabled: t
2179
- }), B = (O) => {
2179
+ }), R = (O) => {
2180
2180
  t || m(O);
2181
- }, F = {
2181
+ }, x = {
2182
2182
  cursor: k.cursor,
2183
2183
  fontSize: n || f.fonts.size,
2184
2184
  opacity: k.opacity,
2185
2185
  ...y
2186
- }, A = {
2186
+ }, $ = {
2187
2187
  width: n || f.fonts.size
2188
2188
  }, z = {
2189
2189
  fill: "transparent",
@@ -2192,15 +2192,15 @@ const Ws = "Radio-module__container___AQxhk", qs = "Radio-module__svg___zl5kF",
2192
2192
  }, E = {
2193
2193
  fill: k.radioColor
2194
2194
  };
2195
- return /* @__PURE__ */ Q("div", { className: qe.container, style: F, ..._, children: [
2196
- /* @__PURE__ */ S(
2195
+ return /* @__PURE__ */ Q("div", { className: qe.container, style: x, ...h, children: [
2196
+ /* @__PURE__ */ w(
2197
2197
  "input",
2198
2198
  {
2199
2199
  id: b,
2200
2200
  checked: e,
2201
2201
  disabled: t,
2202
2202
  name: d,
2203
- onChange: (O) => B({ target: { checked: O.target.checked, name: d, type: "radio" } }),
2203
+ onChange: (O) => R({ target: { checked: O.target.checked, name: d, type: "radio" } }),
2204
2204
  style: { display: "none" },
2205
2205
  type: "radio"
2206
2206
  }
@@ -2210,57 +2210,57 @@ const Ws = "Radio-module__container___AQxhk", qs = "Radio-module__svg___zl5kF",
2210
2210
  {
2211
2211
  xmlns: "http://www.w3.org/2000/svg",
2212
2212
  viewBox: "0 0 100 100",
2213
- onClick: () => B({ target: { checked: !e, name: d, type: "radio" } }),
2213
+ onClick: () => R({ target: { checked: !e, name: d, type: "radio" } }),
2214
2214
  className: qe.svg,
2215
- style: A,
2215
+ style: $,
2216
2216
  children: [
2217
- /* @__PURE__ */ S("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: z }),
2218
- e && /* @__PURE__ */ S("circle", { cx: "50", cy: "50", r: "25", style: E })
2217
+ /* @__PURE__ */ w("circle", { cx: "50", cy: "50", r: "42.5", width: "100%", style: z }),
2218
+ e && /* @__PURE__ */ w("circle", { cx: "50", cy: "50", r: "25", style: E })
2219
2219
  ]
2220
2220
  }
2221
2221
  ),
2222
- a && /* @__PURE__ */ S(
2222
+ l && /* @__PURE__ */ w(
2223
2223
  et,
2224
2224
  {
2225
2225
  htmlFor: b,
2226
2226
  className: qe.label,
2227
- style: l,
2227
+ style: a,
2228
2228
  color: k.radioColor,
2229
2229
  disabled: t,
2230
2230
  error: s,
2231
2231
  fontSize: n,
2232
- children: a
2232
+ children: l
2233
2233
  }
2234
2234
  )
2235
2235
  ] });
2236
2236
  };
2237
- function qo({
2237
+ function Zo({
2238
2238
  name: e,
2239
2239
  label: r,
2240
2240
  required: t,
2241
2241
  rules: s,
2242
2242
  disabled: n,
2243
2243
  className: o,
2244
- style: a,
2245
- value: l,
2244
+ style: l,
2245
+ value: a,
2246
2246
  ...d
2247
2247
  }) {
2248
- return /* @__PURE__ */ S(
2249
- Fe,
2248
+ return /* @__PURE__ */ w(
2249
+ xe,
2250
2250
  {
2251
2251
  name: e,
2252
2252
  required: t,
2253
2253
  rules: s,
2254
2254
  disabled: n,
2255
2255
  className: o,
2256
- style: a,
2257
- children: ({ value: m, onChange: y, name: _, error: f }) => /* @__PURE__ */ S(
2258
- Qs,
2256
+ style: l,
2257
+ children: ({ value: m, onChange: y, name: h, error: f }) => /* @__PURE__ */ w(
2258
+ Ks,
2259
2259
  {
2260
2260
  ...d,
2261
- name: _,
2262
- checked: m === l,
2263
- onChange: () => y(l),
2261
+ name: h,
2262
+ checked: m === a,
2263
+ onChange: () => y(a),
2264
2264
  error: f,
2265
2265
  label: r
2266
2266
  }
@@ -2268,17 +2268,17 @@ function qo({
2268
2268
  }
2269
2269
  );
2270
2270
  }
2271
- const Ks = "Hamburger-module__hamburger___Tf4-t", Js = "Hamburger-module__line___gybZM", Xs = "Hamburger-module__open___gRswh", pe = {
2272
- hamburger: Ks,
2273
- line: Js,
2274
- open: Xs
2275
- }, Ys = ({
2271
+ const Js = "Hamburger-module__hamburger___Tf4-t", Xs = "Hamburger-module__line___gybZM", Ys = "Hamburger-module__open___gRswh", pe = {
2272
+ hamburger: Js,
2273
+ line: Xs,
2274
+ open: Ys
2275
+ }, eo = ({
2276
2276
  compact: e,
2277
2277
  color: r,
2278
2278
  visible: t,
2279
2279
  borderRadius: s
2280
2280
  }) => {
2281
- const n = T();
2281
+ const n = L();
2282
2282
  return Se(() => {
2283
2283
  const o = e ? { right: ".5em" } : {};
2284
2284
  return {
@@ -2288,21 +2288,21 @@ const Ks = "Hamburger-module__hamburger___Tf4-t", Js = "Hamburger-module__line__
2288
2288
  ...o
2289
2289
  };
2290
2290
  }, [r, t, e, s, n.borderRadius]);
2291
- }, eo = ({
2291
+ }, to = ({
2292
2292
  visible: e,
2293
2293
  compact: r,
2294
2294
  color: t,
2295
2295
  hamburgerRef: s,
2296
2296
  open: n = !1,
2297
2297
  setOpen: o,
2298
- buttonProps: a,
2299
- borderRadius: l
2298
+ buttonProps: l,
2299
+ borderRadius: a
2300
2300
  }) => {
2301
- const d = Ys({
2301
+ const d = eo({
2302
2302
  compact: r,
2303
2303
  color: t,
2304
2304
  visible: e,
2305
- borderRadius: l
2305
+ borderRadius: a
2306
2306
  }), m = [pe.hamburger, n ? pe.open : ""].filter(Boolean).join(" ");
2307
2307
  return /* @__PURE__ */ Q(
2308
2308
  "button",
@@ -2313,88 +2313,88 @@ const Ks = "Hamburger-module__hamburger___Tf4-t", Js = "Hamburger-module__line__
2313
2313
  style: d,
2314
2314
  "aria-label": "Toggle menu",
2315
2315
  "aria-expanded": n,
2316
- ...a,
2316
+ ...l,
2317
2317
  children: [
2318
- /* @__PURE__ */ S("div", { className: pe.line }),
2319
- /* @__PURE__ */ S("div", { className: pe.line }),
2320
- /* @__PURE__ */ S("div", { className: pe.line })
2318
+ /* @__PURE__ */ w("div", { className: pe.line }),
2319
+ /* @__PURE__ */ w("div", { className: pe.line }),
2320
+ /* @__PURE__ */ w("div", { className: pe.line })
2321
2321
  ]
2322
2322
  }
2323
2323
  );
2324
- }, to = "Header-module__header___RUooH", ro = "Header-module__container___t68M9", Tt = {
2325
- header: to,
2326
- container: ro
2327
- }, so = ({
2324
+ }, ro = "Header-module__header___RUooH", so = "Header-module__container___t68M9", Lt = {
2325
+ header: ro,
2326
+ container: so
2327
+ }, oo = ({
2328
2328
  isSmallScreen: e = !1,
2329
2329
  maxWidth: r,
2330
2330
  paddingSm: t,
2331
2331
  padding: s,
2332
2332
  fontSize: n
2333
2333
  } = {}) => {
2334
- const o = T();
2334
+ const o = L();
2335
2335
  return {
2336
2336
  "--header-max-width": r || o.layout.maxWidth,
2337
2337
  "--header-padding": e ? t || o.layout.wrapperPaddingSm : s || o.layout.wrapperPadding,
2338
2338
  "--header-font-size": e ? "0.75rem" : n || o.fonts.size
2339
2339
  };
2340
- }, ce = (e) => {
2340
+ }, ie = (e) => {
2341
2341
  const r = typeof window < "u" && typeof window.matchMedia == "function";
2342
- return kr((o) => {
2342
+ return Vr((o) => {
2343
2343
  if (!r) return () => {
2344
2344
  };
2345
- const a = window.matchMedia(e);
2346
- return a.addEventListener("change", o), () => a.removeEventListener("change", o);
2345
+ const l = window.matchMedia(e);
2346
+ return l.addEventListener("change", o), () => l.removeEventListener("change", o);
2347
2347
  }, () => r ? window.matchMedia(e).matches : !1, () => !1);
2348
- }, oo = ({
2348
+ }, no = ({
2349
2349
  children: e,
2350
2350
  breakPointSm: r,
2351
2351
  maxWidth: t,
2352
2352
  paddingSm: s,
2353
2353
  padding: n,
2354
2354
  fontSize: o,
2355
- style: a = {},
2356
- headerProps: l = {},
2355
+ style: l = {},
2356
+ headerProps: a = {},
2357
2357
  headerRef: d
2358
2358
  }) => {
2359
- const m = T(), _ = (r || m.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), f = _ ? parseInt(_[1], 10) - 1 : 474, b = _ ? _[2] : "px", C = ce(`(max-width: ${f}${b})`), w = so({
2359
+ const m = L(), h = (r || m.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), f = h ? parseInt(h[1], 10) - 1 : 474, b = h ? h[2] : "px", C = ie(`(max-width: ${f}${b})`), S = oo({
2360
2360
  isSmallScreen: C,
2361
2361
  maxWidth: t,
2362
2362
  paddingSm: s,
2363
2363
  padding: n,
2364
2364
  fontSize: o
2365
2365
  });
2366
- return /* @__PURE__ */ S("header", { ref: d, className: Tt.header, ...l, children: /* @__PURE__ */ S(
2366
+ return /* @__PURE__ */ w("header", { ref: d, className: Lt.header, ...a, children: /* @__PURE__ */ w(
2367
2367
  "div",
2368
2368
  {
2369
- className: Tt.container,
2370
- style: { ...w, ...a },
2369
+ className: Lt.container,
2370
+ style: { ...S, ...l },
2371
2371
  children: e
2372
2372
  }
2373
2373
  ) });
2374
- }, no = "ResponsiveNav-module__nav___xOfv5", io = "ResponsiveNav-module__navMobile___h795P", ao = "ResponsiveNav-module__open___WDCAf", lo = "ResponsiveNav-module__navDesktop___9wscZ", ze = {
2375
- nav: no,
2376
- navMobile: io,
2377
- open: ao,
2378
- navDesktop: lo
2379
- }, co = ({
2374
+ }, io = "ResponsiveNav-module__nav___xOfv5", ao = "ResponsiveNav-module__navMobile___h795P", lo = "ResponsiveNav-module__open___WDCAf", co = "ResponsiveNav-module__navDesktop___9wscZ", ze = {
2375
+ nav: io,
2376
+ navMobile: ao,
2377
+ open: lo,
2378
+ navDesktop: co
2379
+ }, uo = ({
2380
2380
  isMobile: e,
2381
2381
  isCompact: r,
2382
2382
  mobileBackground: t,
2383
2383
  mobileColor: s,
2384
2384
  mobileActiveBackground: n,
2385
2385
  mobileActiveColor: o,
2386
- mobileButtonHoverColor: a
2386
+ mobileButtonHoverColor: l
2387
2387
  }) => {
2388
- const l = T();
2388
+ const a = L();
2389
2389
  return Se(() => {
2390
- const { rhythm: d } = l.fonts;
2390
+ const { rhythm: d } = a.fonts;
2391
2391
  return {
2392
2392
  ...e ? {
2393
- "--mobile-nav-background": t || l.colors.accent,
2394
- "--mobile-nav-color": s || l.colors.primary,
2395
- "--mobile-nav-active-background": n || l.colors.primary,
2396
- "--mobile-nav-active-color": o || l.colors.accent,
2397
- "--mobile-nav-button-hover-text-color": a || t || l.colors.accent,
2393
+ "--mobile-nav-background": t || a.colors.accent,
2394
+ "--mobile-nav-color": s || a.colors.primary,
2395
+ "--mobile-nav-active-background": n || a.colors.primary,
2396
+ "--mobile-nav-active-color": o || a.colors.accent,
2397
+ "--mobile-nav-button-hover-text-color": l || t || a.colors.accent,
2398
2398
  "--nav-padding-top": `calc(${d} * 3)`,
2399
2399
  "--nav-link-padding": `calc(${d} * 0.35) calc(${d} * 2)`,
2400
2400
  "--nav-button-margin": `calc(${d} * 0.5) calc(${d} * 1.4)`
@@ -2405,87 +2405,87 @@ const Ks = "Hamburger-module__hamburger___Tf4-t", Js = "Hamburger-module__line__
2405
2405
  s,
2406
2406
  n,
2407
2407
  o,
2408
- a,
2409
- l.colors.accent,
2410
- l.colors.primary,
2411
- l.fonts,
2408
+ l,
2409
+ a.colors.accent,
2410
+ a.colors.primary,
2411
+ a.fonts,
2412
2412
  e,
2413
2413
  r
2414
2414
  ]);
2415
2415
  };
2416
- function Mt(e) {
2416
+ function Tt(e) {
2417
2417
  const t = parseInt(e) - 1, s = e.replace(/[0-9]/g, "");
2418
2418
  return { maxWidth: t, unit: s };
2419
2419
  }
2420
- const Go = ({
2420
+ const Qo = ({
2421
2421
  breakPointMd: e,
2422
2422
  breakPointSm: r,
2423
2423
  children: t,
2424
2424
  mobileBackground: s,
2425
2425
  mobileColor: n,
2426
2426
  mobileActiveBackground: o,
2427
- mobileActiveColor: a,
2428
- mobileButtonHoverColor: l,
2427
+ mobileActiveColor: l,
2428
+ mobileButtonHoverColor: a,
2429
2429
  style: d,
2430
2430
  navProps: m
2431
2431
  }) => {
2432
- const [y, _] = Ye(!1), f = bt(null), b = bt(null), C = T(), w = e || C.breakpoints.md, k = r || C.breakpoints.sm, { maxWidth: B, unit: F } = Mt(w), { maxWidth: A, unit: z } = Mt(k), E = ce(`(max-width: ${B}${F})`), O = ce(`(max-width: ${A}${z})`), X = co({
2432
+ const [y, h] = Ye(!1), f = vt(null), b = vt(null), C = L(), S = e || C.breakpoints.md, k = r || C.breakpoints.sm, { maxWidth: R, unit: x } = Tt(S), { maxWidth: $, unit: z } = Tt(k), E = ie(`(max-width: ${R}${x})`), O = ie(`(max-width: ${$}${z})`), X = uo({
2433
2433
  isMobile: E,
2434
2434
  isCompact: O,
2435
2435
  mobileBackground: s,
2436
2436
  mobileColor: n,
2437
2437
  mobileActiveBackground: o,
2438
- mobileActiveColor: a,
2439
- mobileButtonHoverColor: l
2438
+ mobileActiveColor: l,
2439
+ mobileButtonHoverColor: a
2440
2440
  });
2441
2441
  jt(() => {
2442
2442
  const q = (se) => {
2443
- !b.current || b.current.contains(se.target) || f.current && f.current.contains(se.target) || _(!1);
2443
+ !b.current || b.current.contains(se.target) || f.current && f.current.contains(se.target) || h(!1);
2444
2444
  };
2445
2445
  return document.addEventListener("mousedown", q), () => {
2446
2446
  document.removeEventListener("mousedown", q);
2447
2447
  };
2448
- }, [f, b, _]);
2449
- const ie = [
2448
+ }, [f, b, h]);
2449
+ const ae = [
2450
2450
  ze.nav,
2451
2451
  E ? ze.navMobile : ze.navDesktop,
2452
2452
  E && y ? ze.open : ""
2453
2453
  ].filter(Boolean).join(" ");
2454
2454
  return /* @__PURE__ */ Q(Xe, { children: [
2455
- /* @__PURE__ */ S(
2456
- eo,
2455
+ /* @__PURE__ */ w(
2456
+ to,
2457
2457
  {
2458
2458
  hamburgerRef: f,
2459
2459
  visible: E,
2460
2460
  compact: O,
2461
2461
  open: y,
2462
- setOpen: _
2462
+ setOpen: h
2463
2463
  }
2464
2464
  ),
2465
- /* @__PURE__ */ S(
2465
+ /* @__PURE__ */ w(
2466
2466
  "nav",
2467
2467
  {
2468
2468
  ref: b,
2469
- className: ie,
2469
+ className: ae,
2470
2470
  style: { ...X, ...d },
2471
2471
  ...m,
2472
- children: typeof t == "function" ? t({ setOpen: _ }) : t
2472
+ children: typeof t == "function" ? t({ setOpen: h }) : t
2473
2473
  }
2474
2474
  )
2475
2475
  ] });
2476
- }, uo = ({
2476
+ }, fo = ({
2477
2477
  size: e = 2.5,
2478
2478
  color: r,
2479
2479
  innerColor: t,
2480
2480
  fullScreen: s = !0
2481
2481
  }) => {
2482
- const n = T(), o = r || n.colors.primary, a = t || n.colors.secondary, l = /* @__PURE__ */ Q(Xe, { children: [
2483
- /* @__PURE__ */ S(
2482
+ const n = L(), o = r || n.colors.primary, l = t || n.colors.secondary, a = /* @__PURE__ */ Q(Xe, { children: [
2483
+ /* @__PURE__ */ w(
2484
2484
  "div",
2485
2485
  {
2486
2486
  style: {
2487
2487
  border: `0.25em solid ${o}`,
2488
- borderTop: `0.25em solid ${a}`,
2488
+ borderTop: `0.25em solid ${l}`,
2489
2489
  borderRadius: "50%",
2490
2490
  width: `${e}em`,
2491
2491
  height: `${e}em`,
@@ -2493,14 +2493,14 @@ const Go = ({
2493
2493
  }
2494
2494
  }
2495
2495
  ),
2496
- /* @__PURE__ */ S("style", { children: `
2496
+ /* @__PURE__ */ w("style", { children: `
2497
2497
  @keyframes spin {
2498
2498
  0% { transform: rotate(0deg); }
2499
2499
  100% { transform: rotate(360deg); }
2500
2500
  }
2501
2501
  ` })
2502
2502
  ] });
2503
- return s ? /* @__PURE__ */ S(
2503
+ return s ? /* @__PURE__ */ w(
2504
2504
  "div",
2505
2505
  {
2506
2506
  style: {
@@ -2510,21 +2510,21 @@ const Go = ({
2510
2510
  height: "100vh",
2511
2511
  width: "100vw"
2512
2512
  },
2513
- children: l
2513
+ children: a
2514
2514
  }
2515
- ) : l;
2516
- }, Zo = ({ children: e, loadingComponent: r }) => {
2515
+ ) : a;
2516
+ }, Ko = ({ children: e, loadingComponent: r }) => {
2517
2517
  const [t, s] = Ye(!1);
2518
2518
  return jt(() => {
2519
2519
  requestAnimationFrame(() => {
2520
2520
  s(!0);
2521
2521
  });
2522
- }, []), t ? /* @__PURE__ */ S(Xe, { children: e }) : r || /* @__PURE__ */ S(uo, {});
2523
- }, fo = "Stack-module__stack___yUU-B", yo = "Stack-module__vertical___sKTyQ", mo = "Stack-module__horizontal___YsvtV", Ge = {
2524
- stack: fo,
2525
- vertical: yo,
2526
- horizontal: mo
2527
- }, Qo = ({
2522
+ }, []), t ? /* @__PURE__ */ w(Xe, { children: e }) : r || /* @__PURE__ */ w(fo, {});
2523
+ }, yo = "Stack-module__stack___yUU-B", mo = "Stack-module__vertical___sKTyQ", ho = "Stack-module__horizontal___YsvtV", Ge = {
2524
+ stack: yo,
2525
+ vertical: mo,
2526
+ horizontal: ho
2527
+ }, Jo = ({
2528
2528
  children: e,
2529
2529
  direction: r = "column",
2530
2530
  className: t,
@@ -2536,78 +2536,120 @@ const Go = ({
2536
2536
  r === "row" ? Ge.horizontal : Ge.vertical,
2537
2537
  t
2538
2538
  ].filter(Boolean).join(" ");
2539
- return /* @__PURE__ */ S("div", { className: o, style: s, ...n, children: e });
2540
- }, ho = "ResponsiveSection-module__section___gBESK", _o = "ResponsiveSection-module__innerDiv___r1bky", It = {
2541
- section: ho,
2542
- innerDiv: _o
2543
- }, ct = ({
2539
+ return /* @__PURE__ */ w("div", { className: o, style: s, ...n, children: e });
2540
+ }, _o = "ResponsiveSection-module__section___gBESK", go = "ResponsiveSection-module__innerDiv___r1bky", Mt = {
2541
+ section: _o,
2542
+ innerDiv: go
2543
+ }, fr = ({
2544
2544
  children: e,
2545
2545
  background: r,
2546
2546
  color: t,
2547
2547
  className: s,
2548
2548
  style: n,
2549
- ...o
2549
+ verticalRhythm: o = 3,
2550
+ ...l
2550
2551
  }) => {
2551
- const a = T(), l = ce(`(min-width: ${a.breakpoints.sm})`), d = {
2552
+ const a = L(), d = ie(`(min-width: ${a.breakpoints.sm})`), m = {
2552
2553
  background: r,
2553
2554
  color: t || a.fonts.color,
2554
2555
  ...n
2555
- }, m = `calc(${a.fonts.rhythm} * 3)`, y = l ? a.layout.wrapperPadding : a.layout.wrapperPaddingSm, _ = {
2556
+ }, y = `calc(${a.fonts.rhythm} * ${o})`, h = d ? a.layout.wrapperPadding : a.layout.wrapperPaddingSm, f = {
2556
2557
  "--max-width": a.layout.maxWidth,
2557
- "--section-padding": `${m} ${y}`
2558
- }, f = [It.section, s].filter(Boolean).join(" ");
2559
- return /* @__PURE__ */ S("section", { className: f, style: d, ...o, children: /* @__PURE__ */ S("div", { className: It.innerDiv, style: _, children: e }) });
2560
- }, go = "Hero-module__hero___IB2tg", po = "Hero-module__content___rkkfQ", Ht = {
2561
- hero: go,
2562
- content: po
2563
- }, vo = ({
2558
+ "--section-padding": `${y} ${h}`
2559
+ }, b = [Mt.section, s].filter(Boolean).join(" ");
2560
+ return /* @__PURE__ */ w("section", { className: b, style: m, ...l, children: /* @__PURE__ */ w("div", { className: Mt.innerDiv, style: f, children: e }) });
2561
+ }, po = "Hero-module__hero___IB2tg", vo = "Hero-module__content___rkkfQ", It = {
2562
+ hero: po,
2563
+ content: vo
2564
+ }, bo = ({
2564
2565
  isMd: e = !1,
2565
2566
  isLg: r = !1,
2566
2567
  theme: t
2567
2568
  }) => Se(() => {
2568
2569
  const { rhythm: s } = t.fonts;
2569
- let n = `calc(${s} * 2) 0`, o = "2rem", a = "1.125rem";
2570
- return r ? (n = `calc(${s} * 4) 0`, o = "3.5rem", a = "1.5rem") : e && (n = `calc(${s} * 3.5) 0`, o = "3rem", a = "1.25rem"), {
2570
+ let n = `calc(${s} * 2) 0`, o = "2rem", l = "1.125rem";
2571
+ return r ? (n = `calc(${s} * 4) 0`, o = "3.5rem", l = "1.5rem") : e && (n = `calc(${s} * 3.5) 0`, o = "3rem", l = "1.25rem"), {
2571
2572
  "--hero-padding": n,
2572
2573
  "--hero-h1-font-size": o,
2573
- "--hero-p-font-size": a,
2574
+ "--hero-p-font-size": l,
2574
2575
  "--hero-h1-margin-bottom": `calc(${s} * 0.7)`
2575
2576
  };
2576
- }, [e, r, t.fonts]), Ko = ({
2577
+ }, [e, r, t.fonts]), Xo = ({
2577
2578
  children: e,
2578
2579
  className: r,
2579
2580
  color: t,
2580
2581
  breakPointMd: s,
2581
2582
  breakPointLg: n,
2582
2583
  style: o,
2583
- ...a
2584
+ ...l
2584
2585
  }) => {
2585
- const l = T(), d = [Ht.hero, r].filter(Boolean).join(" "), m = s || l.breakpoints.md, y = n || l.breakpoints.lg, _ = ce(`(min-width: ${m})`), f = ce(`(min-width: ${y})`), b = vo({ isMd: _, isLg: f, theme: l });
2586
- return /* @__PURE__ */ S(
2587
- ct,
2586
+ const a = L(), d = [It.hero, r].filter(Boolean).join(" "), m = s || a.breakpoints.md, y = n || a.breakpoints.lg, h = ie(`(min-width: ${m})`), f = ie(`(min-width: ${y})`), b = bo({ isMd: h, isLg: f, theme: a });
2587
+ return /* @__PURE__ */ w(
2588
+ fr,
2588
2589
  {
2589
2590
  className: d,
2590
- color: t || l.fonts.color,
2591
+ color: t || a.fonts.color,
2591
2592
  style: { ...b, ...o },
2592
- ...a,
2593
- children: /* @__PURE__ */ S("div", { className: Ht.content, children: e })
2593
+ ...l,
2594
+ children: /* @__PURE__ */ w("div", { className: It.content, children: e })
2594
2595
  }
2595
2596
  );
2596
- }, bo = "Footer-module__footer___A76NF", So = {
2597
- footer: bo
2598
- }, wo = ({ children: e, className: r, style: t, background: s, color: n }) => {
2599
- const o = T(), a = [So.footer, r].filter(Boolean).join(" "), l = {
2600
- background: s,
2601
- color: n || o.fonts.color,
2602
- ...t
2597
+ }, So = "Footer-module__footer___A76NF", wo = "Footer-module__container___QneNs", Ht = {
2598
+ footer: So,
2599
+ container: wo
2600
+ }, xo = ({
2601
+ isSmallScreen: e = !1,
2602
+ maxWidth: r,
2603
+ paddingSm: t,
2604
+ padding: s,
2605
+ fontSize: n,
2606
+ background: o,
2607
+ color: l
2608
+ } = {}) => {
2609
+ const a = L();
2610
+ return {
2611
+ "--footer-max-width": r || a.layout.maxWidth,
2612
+ "--footer-padding": e ? t || a.layout.wrapperPaddingSm : s || a.layout.wrapperPadding,
2613
+ "--footer-font-size": e ? "0.75rem" : n || a.fonts.size,
2614
+ background: o,
2615
+ color: l || a.fonts.color
2603
2616
  };
2604
- return /* @__PURE__ */ S(ct, { className: a, style: l, children: e });
2605
- }, Fo = "FeatureCard-module__card___XQt66", xo = "FeatureCard-module__icon___dXJ92", ko = "FeatureCard-module__title___KxXyA", Vo = "FeatureCard-module__content___68xkw", Ae = {
2606
- card: Fo,
2607
- icon: xo,
2608
- title: ko,
2609
- content: Vo
2610
- }, Co = ({
2617
+ }, Fo = ({
2618
+ children: e,
2619
+ breakPointSm: r,
2620
+ maxWidth: t,
2621
+ paddingSm: s,
2622
+ padding: n,
2623
+ fontSize: o,
2624
+ background: l,
2625
+ color: a,
2626
+ style: d = {},
2627
+ footerProps: m = {},
2628
+ footerRef: y
2629
+ }) => {
2630
+ const h = L(), b = (r || h.breakpoints.sm).match(/^(\d+(?:\.\d+)?)(px|em|rem)$/), C = b ? parseInt(b[1], 10) - 1 : 474, S = b ? b[2] : "px", k = ie(`(max-width: ${C}${S})`), R = xo({
2631
+ isSmallScreen: k,
2632
+ maxWidth: t,
2633
+ paddingSm: s,
2634
+ padding: n,
2635
+ fontSize: o,
2636
+ background: l,
2637
+ color: a
2638
+ });
2639
+ return /* @__PURE__ */ w("footer", { ref: y, className: Ht.footer, ...m, children: /* @__PURE__ */ w(
2640
+ "div",
2641
+ {
2642
+ className: Ht.container,
2643
+ style: { ...R, ...d },
2644
+ children: e
2645
+ }
2646
+ ) });
2647
+ }, ko = "FeatureCard-module__card___XQt66", Vo = "FeatureCard-module__icon___dXJ92", Co = "FeatureCard-module__title___KxXyA", Eo = "FeatureCard-module__content___68xkw", $e = {
2648
+ card: ko,
2649
+ icon: Vo,
2650
+ title: Co,
2651
+ content: Eo
2652
+ }, zo = ({
2611
2653
  isMd: e = !1,
2612
2654
  theme: r
2613
2655
  }) => Se(() => {
@@ -2619,7 +2661,7 @@ const Go = ({
2619
2661
  "--feature-icon-margin-bottom": `calc(${t} * 0.7)`,
2620
2662
  "--feature-title-margin-bottom": `calc(${t} * 0.5)`
2621
2663
  };
2622
- }, [e, r.fonts]), Jo = ({
2664
+ }, [e, r.fonts]), Yo = ({
2623
2665
  icon: e,
2624
2666
  title: r,
2625
2667
  children: t,
@@ -2627,16 +2669,16 @@ const Go = ({
2627
2669
  style: n,
2628
2670
  breakPointMd: o
2629
2671
  }) => {
2630
- const a = T(), l = [Ae.card, s].filter(Boolean).join(" "), d = o || a.breakpoints.md, m = ce(`(min-width: ${d})`), y = Co({ isMd: m, theme: a });
2631
- return /* @__PURE__ */ Q("div", { className: l, style: { ...y, ...n }, children: [
2632
- e && /* @__PURE__ */ S("div", { className: Ae.icon, children: e }),
2633
- /* @__PURE__ */ S("h3", { className: Ae.title, children: r }),
2634
- /* @__PURE__ */ S("div", { className: Ae.content, children: t })
2672
+ const l = L(), a = [$e.card, s].filter(Boolean).join(" "), d = o || l.breakpoints.md, m = ie(`(min-width: ${d})`), y = zo({ isMd: m, theme: l });
2673
+ return /* @__PURE__ */ Q("div", { className: a, style: { ...y, ...n }, children: [
2674
+ e && /* @__PURE__ */ w("div", { className: $e.icon, children: e }),
2675
+ /* @__PURE__ */ w("h3", { className: $e.title, children: r }),
2676
+ /* @__PURE__ */ w("div", { className: $e.content, children: t })
2635
2677
  ] });
2636
- }, Eo = "FeatureGridSection-module__section___wZrbC", zo = "FeatureGridSection-module__grid___iwPJv", Ut = {
2637
- section: Eo,
2638
- grid: zo
2639
- }, Ao = ({
2678
+ }, $o = "FeatureGridSection-module__section___wZrbC", Ao = "FeatureGridSection-module__grid___iwPJv", Ut = {
2679
+ section: $o,
2680
+ grid: Ao
2681
+ }, Po = ({
2640
2682
  columns: e,
2641
2683
  isMd: r = !1,
2642
2684
  isLg: t = !1
@@ -2651,25 +2693,25 @@ const Go = ({
2651
2693
  }[e]
2652
2694
  } : {
2653
2695
  "--grid-template-columns": "1fr"
2654
- }, [e, r, t]), Xo = ({
2696
+ }, [e, r, t]), en = ({
2655
2697
  children: e,
2656
2698
  columns: r = 3,
2657
2699
  className: t,
2658
2700
  breakPointMd: s,
2659
2701
  breakPointLg: n,
2660
2702
  style: o,
2661
- ...a
2703
+ ...l
2662
2704
  }) => {
2663
- const l = T(), d = [Ut.section, t].filter(Boolean).join(" "), m = s || l.breakpoints.md, y = n || l.breakpoints.lg, _ = ce(`(min-width: ${m})`), f = ce(`(min-width: ${y})`), b = Ao({ columns: r, isMd: _, isLg: f }), C = {
2664
- "--section-padding-vertical": `calc(${l.fonts.rhythm} * 2)`
2705
+ const a = L(), d = [Ut.section, t].filter(Boolean).join(" "), m = s || a.breakpoints.md, y = n || a.breakpoints.lg, h = ie(`(min-width: ${m})`), f = ie(`(min-width: ${y})`), b = Po({ columns: r, isMd: h, isLg: f }), C = {
2706
+ "--section-padding-vertical": `calc(${a.fonts.rhythm} * 2)`
2665
2707
  };
2666
- return /* @__PURE__ */ S(ct, { className: d, style: C, ...a, children: /* @__PURE__ */ S("div", { className: Ut.grid, style: { ...b, ...o }, children: e }) });
2667
- }, $o = "PageLayout-module__layoutContainer___diLdT", Do = "PageLayout-module__content___h2mBr", Po = "PageLayout-module__main___Sw7Pv", No = "PageLayout-module__mainPadded___ZKio3", $e = {
2668
- layoutContainer: $o,
2669
- content: Do,
2670
- main: Po,
2671
- mainPadded: No
2672
- }, Yo = ({
2708
+ return /* @__PURE__ */ w(fr, { className: d, style: C, ...l, children: /* @__PURE__ */ w("div", { className: Ut.grid, style: { ...b, ...o }, children: e }) });
2709
+ }, Do = "PageLayout-module__layoutContainer___diLdT", No = "PageLayout-module__content___h2mBr", Ro = "PageLayout-module__main___Sw7Pv", Bo = "PageLayout-module__mainPadded___ZKio3", Ae = {
2710
+ layoutContainer: Do,
2711
+ content: No,
2712
+ main: Ro,
2713
+ mainPadded: Bo
2714
+ }, tn = ({
2673
2715
  children: e,
2674
2716
  header: r,
2675
2717
  footer: t,
@@ -2677,48 +2719,48 @@ const Go = ({
2677
2719
  className: n,
2678
2720
  style: o
2679
2721
  }) => {
2680
- const a = T(), l = [$e.layoutContainer, n].filter(Boolean).join(" "), d = [$e.main, s ? $e.mainPadded : ""].filter(Boolean).join(" "), m = s ? {
2681
- "--main-padding-vertical": `calc(${a.fonts.rhythm} * 1.4)`
2722
+ const l = L(), a = [Ae.layoutContainer, n].filter(Boolean).join(" "), d = [Ae.main, s ? Ae.mainPadded : ""].filter(Boolean).join(" "), m = s ? {
2723
+ "--main-padding-vertical": `calc(${l.fonts.rhythm} * 1.4)`
2682
2724
  } : void 0;
2683
- return /* @__PURE__ */ Q("div", { className: l, style: o, children: [
2684
- /* @__PURE__ */ Q("div", { className: $e.content, children: [
2685
- r && /* @__PURE__ */ S(oo, { children: r }),
2686
- /* @__PURE__ */ S("main", { className: d, style: m, children: e })
2725
+ return /* @__PURE__ */ Q("div", { className: a, style: o, children: [
2726
+ /* @__PURE__ */ Q("div", { className: Ae.content, children: [
2727
+ r && /* @__PURE__ */ w(no, { children: r }),
2728
+ /* @__PURE__ */ w("main", { className: d, style: m, children: e })
2687
2729
  ] }),
2688
- t && /* @__PURE__ */ S(wo, { children: t })
2730
+ t && /* @__PURE__ */ w(Fo, { children: t })
2689
2731
  ] });
2690
2732
  };
2691
2733
  export {
2692
- To as Button,
2693
- Mo as CSSReset,
2694
- Mr as Checkbox,
2695
- Jo as FeatureCard,
2696
- Xo as FeatureGridSection,
2697
- wo as Footer,
2698
- Io as Form,
2699
- Wo as FormCheckbox,
2734
+ Io as Button,
2735
+ Ho as CSSReset,
2736
+ Ir as Checkbox,
2737
+ Yo as FeatureCard,
2738
+ en as FeatureGridSection,
2739
+ Fo as Footer,
2740
+ Uo as Form,
2741
+ Go as FormCheckbox,
2700
2742
  Fs as FormError,
2701
- Fe as FormField,
2702
- zs as FormGroup,
2703
- Ho as FormInput,
2743
+ xe as FormField,
2744
+ $s as FormGroup,
2745
+ jo as FormInput,
2704
2746
  et as FormLabel,
2705
- qo as FormRadio,
2706
- jo as FormSelect,
2707
- Uo as FormTextarea,
2708
- eo as Hamburger,
2709
- oo as Header,
2710
- Ko as Hero,
2711
- Ns as Input,
2712
- uo as LoadingSpinner,
2713
- Yo as PageLayout,
2714
- Qs as Radio,
2715
- Go as ResponsiveNav,
2716
- ct as ResponsiveSection,
2717
- js as Select,
2718
- Qo as Stack,
2719
- Zo as StyleLoader,
2720
- Ts as Textarea,
2721
- Lo as ThemeProvider,
2722
- vs as useFormContext,
2723
- T as useTheme
2747
+ Zo as FormRadio,
2748
+ qo as FormSelect,
2749
+ Wo as FormTextarea,
2750
+ to as Hamburger,
2751
+ no as Header,
2752
+ Xo as Hero,
2753
+ Rs as Input,
2754
+ fo as LoadingSpinner,
2755
+ tn as PageLayout,
2756
+ Ks as Radio,
2757
+ Qo as ResponsiveNav,
2758
+ fr as ResponsiveSection,
2759
+ Ws as Select,
2760
+ Jo as Stack,
2761
+ Ko as StyleLoader,
2762
+ Ms as Textarea,
2763
+ Mo as ThemeProvider,
2764
+ bs as useFormContext,
2765
+ L as useTheme
2724
2766
  };