digital-rabbit-cl 1.2.1 → 1.2.2

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