lawgic-dev-kit 0.2.4 → 0.3.4

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 (683) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/client.js +5 -0
  3. package/dist/_virtual/client2.js +4 -0
  4. package/dist/_virtual/index.js +7 -0
  5. package/dist/_virtual/index2.js +4 -0
  6. package/dist/_virtual/index3.js +5 -0
  7. package/dist/_virtual/index4.js +5 -0
  8. package/dist/_virtual/index5.js +7 -0
  9. package/dist/_virtual/index6.js +4 -0
  10. package/dist/_virtual/index7.js +4 -0
  11. package/dist/_virtual/index8.js +4 -0
  12. package/dist/_virtual/jsx-runtime.js +5 -0
  13. package/dist/_virtual/jsx-runtime2.js +4 -0
  14. package/dist/_virtual/lodash.js +5 -0
  15. package/dist/_virtual/lodash2.js +4 -0
  16. package/dist/_virtual/react-dom-client.development.js +4 -0
  17. package/dist/_virtual/react-dom-client.production.js +4 -0
  18. package/dist/_virtual/react-is.development.js +4 -0
  19. package/dist/_virtual/react-is.production.min.js +4 -0
  20. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  21. package/dist/_virtual/react-jsx-runtime.production.js +4 -0
  22. package/dist/_virtual/scheduler.development.js +4 -0
  23. package/dist/_virtual/scheduler.production.js +4 -0
  24. package/dist/components/atoms/ActionButton/ActionButton.js +51 -0
  25. package/dist/components/atoms/AsyncToast/index.js +33 -0
  26. package/dist/components/atoms/Avatar/Avatar.js +100 -0
  27. package/dist/components/atoms/BoxContainer/BoxContainer.js +18 -0
  28. package/dist/components/atoms/Button/Button.js +25 -0
  29. package/dist/components/atoms/Button/Button.styles.js +43 -0
  30. package/dist/components/atoms/CenterModal/CenterModal.js +79 -0
  31. package/dist/components/atoms/CountrySelectInput/CountryDropdown.js +256 -0
  32. package/dist/components/atoms/Divider/Divider.js +5 -0
  33. package/dist/components/atoms/FullLogo/FullLogo.js +21 -0
  34. package/dist/components/atoms/IconButton/IconButton.js +35 -0
  35. package/dist/components/atoms/IconButton/IconButton.styles.js +34 -0
  36. package/dist/components/atoms/ImageProfileInput/ImageProfileInput.js +115 -0
  37. package/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +8 -0
  38. package/dist/components/atoms/InfoCard/InfoCard.js +17 -0
  39. package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +20 -0
  40. package/dist/components/atoms/PasswordInput/PasswordInput.js +91 -0
  41. package/dist/components/atoms/ProgressBar/ProgressBar.js +23 -0
  42. package/dist/components/atoms/SearchBar/index.js +44 -0
  43. package/dist/components/atoms/SectionButton/SectionButton.js +10 -0
  44. package/dist/components/atoms/SectionButton/desktop/SectionButton.js +60 -0
  45. package/dist/components/atoms/SectionButton/desktop/SectionButton.styles.js +11 -0
  46. package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.js +19 -0
  47. package/dist/components/atoms/SectionButton/mobile/SectionButton.js +59 -0
  48. package/dist/components/atoms/SelectDropdown/SelectDropdown.js +178 -0
  49. package/dist/components/atoms/Tab/Tab.js +23 -0
  50. package/dist/components/atoms/Tab/Tab.styles.js +15 -0
  51. package/dist/components/atoms/TextButton/TextButton.js +23 -0
  52. package/dist/components/atoms/TextButton/TextButton.styles.js +13 -0
  53. package/dist/components/atoms/TextInput/TextInput.js +81 -0
  54. package/dist/components/atoms/Toast/Toast.js +113 -0
  55. package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +58 -0
  56. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +80 -0
  57. package/dist/components/atoms/UploadContainer/UploadContainer.js +115 -0
  58. package/dist/components/molecules/AlertModal/AlertModal.js +112 -0
  59. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +221 -0
  60. package/dist/components/molecules/CalendarSelector/PeriodToggle.js +51 -0
  61. package/dist/components/molecules/CalendarSelector/TimeDisplay.js +16 -0
  62. package/dist/components/molecules/DateInput/DateInput.js +73 -0
  63. package/dist/components/molecules/DialogModal/DialogModal.js +125 -0
  64. package/dist/components/molecules/Dropdown/Dropdown.js +77 -0
  65. package/dist/components/molecules/FileUpload/FileUpload.js +121 -0
  66. package/dist/components/molecules/FileUpload/FileUpload.types.js +8 -0
  67. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +82 -0
  68. package/dist/components/molecules/SearchModal/SearchModal.js +64 -0
  69. package/dist/components/molecules/Stepper/Stepper.js +225 -0
  70. package/dist/components/molecules/Tabs/Tabs.js +36 -0
  71. package/dist/components/organisms/index.js +4 -0
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +106 -0
  74. package/dist/lawgic-dev-kit.css +1 -0
  75. package/dist/lawgic-dev-kit.umd.js +136 -136
  76. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +428 -0
  77. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +393 -0
  78. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +586 -0
  79. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +55 -0
  80. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +199 -0
  81. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
  82. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  83. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +2661 -0
  84. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +23 -0
  85. package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +73 -0
  86. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +13 -0
  87. package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +28 -0
  88. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +266 -0
  89. package/dist/node_modules/clsx/dist/clsx.js +17 -0
  90. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  91. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  92. package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
  93. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  94. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  95. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  96. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  97. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  98. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  99. package/dist/node_modules/date-fns/addMonths.js +20 -0
  100. package/dist/node_modules/date-fns/constants.js +6 -0
  101. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  102. package/dist/node_modules/date-fns/constructNow.js +8 -0
  103. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  104. package/dist/node_modules/date-fns/eachDayOfInterval.js +17 -0
  105. package/dist/node_modules/date-fns/endOfMonth.js +9 -0
  106. package/dist/node_modules/date-fns/endOfWeek.js +11 -0
  107. package/dist/node_modules/date-fns/format.js +59 -0
  108. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  109. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  110. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  111. package/dist/node_modules/date-fns/getWeek.js +12 -0
  112. package/dist/node_modules/date-fns/getWeekYear.js +17 -0
  113. package/dist/node_modules/date-fns/isDate.js +7 -0
  114. package/dist/node_modules/date-fns/isSameDay.js +14 -0
  115. package/dist/node_modules/date-fns/isSameMonth.js +13 -0
  116. package/dist/node_modules/date-fns/isToday.js +13 -0
  117. package/dist/node_modules/date-fns/isValid.js +9 -0
  118. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  119. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  120. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  121. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  122. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  123. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  124. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  125. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  126. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  127. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  128. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
  129. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
  130. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
  131. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
  132. package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
  133. package/dist/node_modules/date-fns/locale/es.js +21 -0
  134. package/dist/node_modules/date-fns/setHours.js +9 -0
  135. package/dist/node_modules/date-fns/setMinutes.js +9 -0
  136. package/dist/node_modules/date-fns/setSeconds.js +9 -0
  137. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  138. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  139. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  140. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  141. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  142. package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
  143. package/dist/node_modules/date-fns/startOfYear.js +9 -0
  144. package/dist/node_modules/date-fns/subMonths.js +8 -0
  145. package/dist/node_modules/date-fns/toDate.js +8 -0
  146. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +11 -0
  147. package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +205 -0
  148. package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +83 -0
  149. package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
  150. package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
  151. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
  152. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
  153. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +18 -0
  154. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
  155. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +6 -0
  156. package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +37 -0
  157. package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
  158. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
  159. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
  160. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +92 -0
  161. package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
  162. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +47 -0
  163. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +46 -0
  164. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
  165. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
  166. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
  167. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  168. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
  169. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
  170. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
  171. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
  172. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +7 -0
  173. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
  174. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
  175. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
  176. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
  177. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  178. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
  179. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  180. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
  181. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  182. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  183. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  184. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  185. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
  186. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  187. package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +5 -0
  188. package/dist/node_modules/framer-motion/dist/es/easing/back.js +9 -0
  189. package/dist/node_modules/framer-motion/dist/es/easing/circ.js +8 -0
  190. package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +19 -0
  191. package/dist/node_modules/framer-motion/dist/es/easing/ease.js +7 -0
  192. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
  193. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
  194. package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
  195. package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +32 -0
  196. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +6 -0
  197. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  198. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +15 -0
  199. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
  200. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -0
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +68 -0
  202. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
  203. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
  204. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +85 -0
  205. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
  206. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +24 -0
  207. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +27 -0
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +75 -0
  215. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  216. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +11 -0
  217. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
  218. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  219. package/dist/node_modules/framer-motion/dist/es/motion/index.js +59 -0
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
  225. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
  226. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +33 -0
  227. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
  228. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +14 -0
  229. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
  230. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
  231. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
  232. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
  233. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +34 -0
  234. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  235. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  236. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +608 -0
  237. package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +15 -0
  238. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +59 -0
  239. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
  240. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
  241. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
  242. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +13 -0
  243. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
  244. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
  245. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +13 -0
  246. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +229 -0
  247. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +20 -0
  248. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
  249. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +15 -0
  250. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
  251. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
  252. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
  253. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  254. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -0
  255. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
  256. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
  257. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
  258. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
  259. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  260. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
  261. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
  262. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
  263. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
  264. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
  265. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
  266. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
  267. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
  268. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
  269. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
  270. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
  271. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
  272. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
  273. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
  274. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +12 -0
  275. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
  276. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
  277. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
  278. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  279. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
  280. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
  281. package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
  282. package/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
  283. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +8 -0
  284. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
  285. package/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
  286. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +48 -0
  287. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +44 -0
  288. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  289. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
  290. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
  291. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  292. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  293. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  294. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
  295. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +18 -0
  296. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +11 -0
  297. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  298. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
  299. package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +77 -0
  300. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +128 -0
  301. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
  302. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +20 -0
  303. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
  304. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
  305. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
  306. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +27 -0
  307. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  308. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
  309. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +19 -0
  310. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
  311. package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +4 -0
  312. package/dist/node_modules/framer-motion/dist/es/utils/delay.js +13 -0
  313. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
  314. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
  315. package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
  316. package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +41 -0
  317. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  318. package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
  319. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  320. package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
  321. package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +29 -0
  322. package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +52 -0
  323. package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
  324. package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +8 -0
  325. package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +4 -0
  326. package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +8 -0
  327. package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +8 -0
  328. package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +13 -0
  329. package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
  330. package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +4 -0
  331. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
  332. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
  333. package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +6 -0
  334. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +14 -0
  335. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
  336. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  337. package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +19 -0
  338. package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +12 -0
  339. package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +11 -0
  340. package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +16 -0
  341. package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +18 -0
  342. package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +24 -0
  343. package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +49 -0
  344. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +17 -0
  345. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +17 -0
  346. package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
  347. package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
  348. package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
  349. package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
  350. package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
  351. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
  352. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +7 -0
  353. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
  354. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
  355. package/dist/node_modules/lodash/lodash.js +3677 -0
  356. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animate/single-value.js +10 -0
  357. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +204 -0
  358. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/BaseAnimation.js +82 -0
  359. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
  360. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +17 -0
  361. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
  362. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
  363. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/index.js +17 -0
  364. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
  365. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +5 -0
  366. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/inertia.js +37 -0
  367. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
  368. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
  369. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
  370. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/index.js +91 -0
  371. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/utils/velocity.js +9 -0
  372. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/motion-value.js +46 -0
  373. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-target.js +45 -0
  374. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
  375. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
  376. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
  377. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  378. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
  379. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
  380. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
  381. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
  382. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-none.js +7 -0
  383. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
  384. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
  385. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
  386. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
  387. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  388. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
  389. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  390. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +5 -0
  391. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  392. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  393. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  394. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  395. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/PresenceContext.js +5 -0
  396. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  397. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/anticipate.js +5 -0
  398. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/back.js +9 -0
  399. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/circ.js +8 -0
  400. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/cubic-bezier.js +18 -0
  401. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/ease.js +7 -0
  402. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
  403. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
  404. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
  405. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/utils/map.js +32 -0
  406. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/add-dom-event.js +6 -0
  407. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  408. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/event-info.js +14 -0
  409. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
  410. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/index.js +18 -0
  411. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
  412. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/focus.js +28 -0
  413. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/hover.js +21 -0
  414. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/pan/PanSession.js +84 -0
  415. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/pan/index.js +43 -0
  416. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/press.js +23 -0
  417. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/Feature.js +10 -0
  418. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
  419. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animation/index.js +34 -0
  420. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animations.js +13 -0
  421. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/definitions.js +27 -0
  422. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/drag.js +17 -0
  423. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/gestures.js +21 -0
  424. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +74 -0
  425. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/layout.js +11 -0
  426. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/load-features.js +11 -0
  427. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
  428. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  429. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/index.js +59 -0
  430. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
  431. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  432. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
  433. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-visual-element.js +64 -0
  434. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
  435. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
  436. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/animation/mix-values.js +32 -0
  437. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
  438. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/copy.js +14 -0
  439. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
  440. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
  441. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
  442. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/models.js +18 -0
  443. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/utils.js +34 -0
  444. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  445. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  446. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +607 -0
  447. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/state.js +15 -0
  448. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/shared/stack.js +58 -0
  449. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
  450. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
  451. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
  452. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/transform.js +13 -0
  453. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
  454. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
  455. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/measure.js +13 -0
  456. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/VisualElement.js +228 -0
  457. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/create-factory.js +20 -0
  458. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/create-proxy.js +17 -0
  459. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/create.js +15 -0
  460. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
  461. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
  462. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
  463. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  464. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/use-render.js +18 -0
  465. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
  466. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
  467. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
  468. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
  469. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  470. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
  471. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
  472. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
  473. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
  474. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
  475. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
  476. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
  477. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
  478. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
  479. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
  480. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
  481. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
  482. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
  483. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
  484. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/config-motion.js +12 -0
  485. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/use-props.js +27 -0
  486. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
  487. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
  488. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  489. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
  490. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
  491. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
  492. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
  493. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/render.js +8 -0
  494. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
  495. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/store.js +4 -0
  496. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/SVGVisualElement.js +47 -0
  497. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/config-motion.js +43 -0
  498. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  499. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/use-props.js +22 -0
  500. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
  501. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  502. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  503. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  504. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
  505. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/path.js +18 -0
  506. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/render.js +11 -0
  507. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  508. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
  509. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/KeyframesResolver.js +76 -0
  510. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/animation-state.js +128 -0
  511. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
  512. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/flat-tree.js +19 -0
  513. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
  514. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
  515. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
  516. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/motion-values.js +26 -0
  517. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  518. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
  519. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/setters.js +18 -0
  520. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/variant-props.js +13 -0
  521. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +4 -0
  522. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/delay.js +12 -0
  523. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/distance.js +9 -0
  524. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/get-context-window.js +4 -0
  525. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
  526. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/interpolate.js +41 -0
  527. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-browser.js +4 -0
  528. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
  529. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  530. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
  531. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/color.js +29 -0
  532. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/complex.js +52 -0
  533. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/immediate.js +6 -0
  534. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/index.js +8 -0
  535. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/number.js +4 -0
  536. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/visibility.js +8 -0
  537. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/default.js +8 -0
  538. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/fill.js +12 -0
  539. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/time.js +6 -0
  540. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/pipe.js +4 -0
  541. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
  542. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
  543. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/resolve-value.js +6 -0
  544. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/shallow-compare.js +14 -0
  545. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-constant.js +8 -0
  546. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  547. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +19 -0
  548. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +12 -0
  549. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +11 -0
  550. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +16 -0
  551. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +18 -0
  552. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +24 -0
  553. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +49 -0
  554. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +17 -0
  555. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +17 -0
  556. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
  557. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
  558. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
  559. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
  560. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
  561. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
  562. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/use-will-change/is.js +7 -0
  563. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
  564. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
  565. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
  566. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/controls/Group.js +9 -0
  567. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  568. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  569. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
  570. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
  571. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
  572. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/linear.js +11 -0
  573. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/batcher.js +26 -0
  574. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/frame.js +9 -0
  575. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/microtask.js +5 -0
  576. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/order.js +17 -0
  577. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/render-step.js +42 -0
  578. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/sync-time.js +15 -0
  579. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  580. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  581. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/hover.js +24 -0
  582. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/index.js +32 -0
  583. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
  584. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  585. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  586. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  587. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  588. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  589. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/stats/buffer.js +6 -0
  590. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
  591. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/resolve-elements.js +14 -0
  592. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/flags.js +6 -0
  593. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  594. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/memo.js +12 -0
  595. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
  596. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/value/index.js +201 -0
  597. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/array.js +11 -0
  598. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +12 -0
  599. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/global-config.js +6 -0
  600. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/memo.js +8 -0
  601. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +4 -0
  602. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/progress.js +7 -0
  603. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/subscription-manager.js +29 -0
  604. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/time-conversion.js +5 -0
  605. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/velocity-per-second.js +6 -0
  606. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/warn-once.js +7 -0
  607. package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
  608. package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +9 -0
  609. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  610. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  611. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
  612. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
  613. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
  614. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +12 -0
  615. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
  616. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +10 -0
  617. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
  618. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +17 -0
  619. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +42 -0
  620. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +16 -0
  621. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  622. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  623. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
  624. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -0
  625. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
  626. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  627. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  628. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  629. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  630. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  631. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +6 -0
  632. package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
  633. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +14 -0
  634. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
  635. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  636. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +13 -0
  637. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
  638. package/dist/node_modules/motion-dom/dist/es/value/index.js +202 -0
  639. package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
  640. package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
  641. package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
  642. package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
  643. package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
  644. package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
  645. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
  646. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
  647. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
  648. package/dist/node_modules/motion-utils/dist/es/warn-once.js +7 -0
  649. package/dist/node_modules/object-assign/index.js +54 -0
  650. package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
  651. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  652. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  653. package/dist/node_modules/prop-types/index.js +17 -0
  654. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  655. package/dist/node_modules/prop-types/lib/has.js +7 -0
  656. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
  657. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
  658. package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  659. package/dist/node_modules/property-expr/index.js +82 -0
  660. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +247 -0
  661. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
  662. package/dist/node_modules/react/jsx-runtime.js +10 -0
  663. package/dist/node_modules/react-dom/cjs/react-dom-client.development.js +15314 -0
  664. package/dist/node_modules/react-dom/cjs/react-dom-client.production.js +9408 -0
  665. package/dist/node_modules/react-dom/client.js +23 -0
  666. package/dist/node_modules/react-hook-form/dist/index.esm.js +203 -0
  667. package/dist/node_modules/scheduler/cjs/scheduler.development.js +236 -0
  668. package/dist/node_modules/scheduler/cjs/scheduler.production.js +233 -0
  669. package/dist/node_modules/scheduler/index.js +10 -0
  670. package/dist/node_modules/tiny-case/index.js +22 -0
  671. package/dist/node_modules/toposort/index.js +66 -0
  672. package/dist/node_modules/yup/index.esm.js +1359 -0
  673. package/dist/providers/ThemeProvider.js +19 -0
  674. package/dist/themes/default.js +9 -0
  675. package/dist/utils/dates.js +14 -0
  676. package/dist/utils/files.js +29 -0
  677. package/dist/utils/images.js +4 -0
  678. package/dist/utils/modal.js +87 -0
  679. package/dist/utils/renderContentOptions.js +15 -0
  680. package/dist/utils/strings.js +16 -0
  681. package/dist/utils/toast.js +114 -0
  682. package/package.json +15 -14
  683. package/dist/lawgic-dev-kit.es.js +0 -50777
@@ -0,0 +1,1359 @@
1
+ import { p as v } from "../../_virtual/index3.js";
2
+ import { t as U } from "../../_virtual/index4.js";
3
+ import oe from "../../_virtual/index5.js";
4
+ const ce = Object.prototype.toString, he = Error.prototype.toString, fe = RegExp.prototype.toString, de = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", pe = /^Symbol\((.*)\)(.*)$/;
5
+ function me(n) {
6
+ return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
7
+ }
8
+ function X(n, t = !1) {
9
+ if (n == null || n === !0 || n === !1) return "" + n;
10
+ const e = typeof n;
11
+ if (e === "number") return me(n);
12
+ if (e === "string") return t ? `"${n}"` : n;
13
+ if (e === "function") return "[Function " + (n.name || "anonymous") + "]";
14
+ if (e === "symbol") return de.call(n).replace(pe, "Symbol($1)");
15
+ const r = ce.call(n).slice(8, -1);
16
+ return r === "Date" ? isNaN(n.getTime()) ? "" + n : n.toISOString(n) : r === "Error" || n instanceof Error ? "[" + he.call(n) + "]" : r === "RegExp" ? fe.call(n) : null;
17
+ }
18
+ function _(n, t) {
19
+ let e = X(n, t);
20
+ return e !== null ? e : JSON.stringify(n, function(r, s) {
21
+ let i = X(this[r], t);
22
+ return i !== null ? i : s;
23
+ }, 2);
24
+ }
25
+ function re(n) {
26
+ return n == null ? [] : [].concat(n);
27
+ }
28
+ let se, ne, ie, ye = /\$\{\s*(\w+)\s*\}/g;
29
+ se = Symbol.toStringTag;
30
+ class Q {
31
+ constructor(t, e, r, s) {
32
+ this.name = void 0, this.message = void 0, this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = void 0, this.inner = void 0, this[se] = "Error", this.name = "ValidationError", this.value = e, this.path = r, this.type = s, this.errors = [], this.inner = [], re(t).forEach((i) => {
33
+ if (m.isError(i)) {
34
+ this.errors.push(...i.errors);
35
+ const a = i.inner.length ? i.inner : [i];
36
+ this.inner.push(...a);
37
+ } else
38
+ this.errors.push(i);
39
+ }), this.message = this.errors.length > 1 ? `${this.errors.length} errors occurred` : this.errors[0];
40
+ }
41
+ }
42
+ ne = Symbol.hasInstance;
43
+ ie = Symbol.toStringTag;
44
+ class m extends Error {
45
+ static formatError(t, e) {
46
+ const r = e.label || e.path || "this";
47
+ return e = Object.assign({}, e, {
48
+ path: r,
49
+ originalPath: e.path
50
+ }), typeof t == "string" ? t.replace(ye, (s, i) => _(e[i])) : typeof t == "function" ? t(e) : t;
51
+ }
52
+ static isError(t) {
53
+ return t && t.name === "ValidationError";
54
+ }
55
+ constructor(t, e, r, s, i) {
56
+ const a = new Q(t, e, r, s);
57
+ if (i)
58
+ return a;
59
+ super(), this.value = void 0, this.path = void 0, this.type = void 0, this.params = void 0, this.errors = [], this.inner = [], this[ie] = "Error", this.name = a.name, this.message = a.message, this.type = a.type, this.value = a.value, this.path = a.path, this.errors = a.errors, this.inner = a.inner, Error.captureStackTrace && Error.captureStackTrace(this, m);
60
+ }
61
+ static [ne](t) {
62
+ return Q[Symbol.hasInstance](t) || super[Symbol.hasInstance](t);
63
+ }
64
+ }
65
+ let b = {
66
+ default: "${path} is invalid",
67
+ required: "${path} is a required field",
68
+ defined: "${path} must be defined",
69
+ notNull: "${path} cannot be null",
70
+ oneOf: "${path} must be one of the following values: ${values}",
71
+ notOneOf: "${path} must not be one of the following values: ${values}",
72
+ notType: ({
73
+ path: n,
74
+ type: t,
75
+ value: e,
76
+ originalValue: r
77
+ }) => {
78
+ const s = r != null && r !== e ? ` (cast from the value \`${_(r, !0)}\`).` : ".";
79
+ return t !== "mixed" ? `${n} must be a \`${t}\` type, but the final value was: \`${_(e, !0)}\`` + s : `${n} must match the configured type. The validated value was: \`${_(e, !0)}\`` + s;
80
+ }
81
+ }, p = {
82
+ length: "${path} must be exactly ${length} characters",
83
+ min: "${path} must be at least ${min} characters",
84
+ max: "${path} must be at most ${max} characters",
85
+ matches: '${path} must match the following: "${regex}"',
86
+ email: "${path} must be a valid email",
87
+ url: "${path} must be a valid URL",
88
+ uuid: "${path} must be a valid UUID",
89
+ datetime: "${path} must be a valid ISO date-time",
90
+ datetime_precision: "${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",
91
+ datetime_offset: '${path} must be a valid ISO date-time with UTC "Z" timezone',
92
+ trim: "${path} must be a trimmed string",
93
+ lowercase: "${path} must be a lowercase string",
94
+ uppercase: "${path} must be a upper case string"
95
+ }, ge = {
96
+ min: "${path} must be greater than or equal to ${min}",
97
+ max: "${path} must be less than or equal to ${max}",
98
+ lessThan: "${path} must be less than ${less}",
99
+ moreThan: "${path} must be greater than ${more}",
100
+ positive: "${path} must be a positive number",
101
+ negative: "${path} must be a negative number",
102
+ integer: "${path} must be an integer"
103
+ }, q = {
104
+ min: "${path} field must be later than ${min}",
105
+ max: "${path} field must be at earlier than ${max}"
106
+ }, be = {
107
+ isValue: "${path} field must be ${value}"
108
+ }, N = {
109
+ noUnknown: "${path} field has unspecified keys: ${unknown}",
110
+ exact: "${path} object contains unknown properties: ${properties}"
111
+ }, Fe = {
112
+ min: "${path} field must have at least ${min} items",
113
+ max: "${path} field must have less than or equal to ${max} items",
114
+ length: "${path} must have ${length} items"
115
+ }, $e = {
116
+ notType: (n) => {
117
+ const {
118
+ path: t,
119
+ value: e,
120
+ spec: r
121
+ } = n, s = r.types.length;
122
+ if (Array.isArray(e)) {
123
+ if (e.length < s) return `${t} tuple value has too few items, expected a length of ${s} but got ${e.length} for value: \`${_(e, !0)}\``;
124
+ if (e.length > s) return `${t} tuple value has too many items, expected a length of ${s} but got ${e.length} for value: \`${_(e, !0)}\``;
125
+ }
126
+ return m.formatError(b.notType, n);
127
+ }
128
+ };
129
+ Object.assign(/* @__PURE__ */ Object.create(null), {
130
+ mixed: b,
131
+ string: p,
132
+ number: ge,
133
+ date: q,
134
+ object: N,
135
+ array: Fe,
136
+ boolean: be,
137
+ tuple: $e
138
+ });
139
+ const L = (n) => n && n.__isYupSchema__;
140
+ class R {
141
+ static fromOptions(t, e) {
142
+ if (!e.then && !e.otherwise) throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");
143
+ let {
144
+ is: r,
145
+ then: s,
146
+ otherwise: i
147
+ } = e, a = typeof r == "function" ? r : (...l) => l.every((u) => u === r);
148
+ return new R(t, (l, u) => {
149
+ var o;
150
+ let h = a(...l) ? s : i;
151
+ return (o = h == null ? void 0 : h(u)) != null ? o : u;
152
+ });
153
+ }
154
+ constructor(t, e) {
155
+ this.fn = void 0, this.refs = t, this.refs = t, this.fn = e;
156
+ }
157
+ resolve(t, e) {
158
+ let r = this.refs.map((i) => (
159
+ // TODO: ? operator here?
160
+ i.getValue(e == null ? void 0 : e.value, e == null ? void 0 : e.parent, e == null ? void 0 : e.context)
161
+ )), s = this.fn(r, t, e);
162
+ if (s === void 0 || // @ts-ignore this can be base
163
+ s === t)
164
+ return t;
165
+ if (!L(s)) throw new TypeError("conditions must return a schema object");
166
+ return s.resolve(e);
167
+ }
168
+ }
169
+ const C = {
170
+ context: "$",
171
+ value: "."
172
+ };
173
+ class S {
174
+ constructor(t, e = {}) {
175
+ if (this.key = void 0, this.isContext = void 0, this.isValue = void 0, this.isSibling = void 0, this.path = void 0, this.getter = void 0, this.map = void 0, typeof t != "string") throw new TypeError("ref must be a string, got: " + t);
176
+ if (this.key = t.trim(), t === "") throw new TypeError("ref must be a non-empty string");
177
+ this.isContext = this.key[0] === C.context, this.isValue = this.key[0] === C.value, this.isSibling = !this.isContext && !this.isValue;
178
+ let r = this.isContext ? C.context : this.isValue ? C.value : "";
179
+ this.path = this.key.slice(r.length), this.getter = this.path && v.getter(this.path, !0), this.map = e.map;
180
+ }
181
+ getValue(t, e, r) {
182
+ let s = this.isContext ? r : this.isValue ? t : e;
183
+ return this.getter && (s = this.getter(s || {})), this.map && (s = this.map(s)), s;
184
+ }
185
+ /**
186
+ *
187
+ * @param {*} value
188
+ * @param {Object} options
189
+ * @param {Object=} options.context
190
+ * @param {Object=} options.parent
191
+ */
192
+ cast(t, e) {
193
+ return this.getValue(t, e == null ? void 0 : e.parent, e == null ? void 0 : e.context);
194
+ }
195
+ resolve() {
196
+ return this;
197
+ }
198
+ describe() {
199
+ return {
200
+ type: "ref",
201
+ key: this.key
202
+ };
203
+ }
204
+ toString() {
205
+ return `Ref(${this.key})`;
206
+ }
207
+ static isRef(t) {
208
+ return t && t.__isYupRef;
209
+ }
210
+ }
211
+ S.prototype.__isYupRef = !0;
212
+ const k = (n) => n == null;
213
+ function T(n) {
214
+ function t({
215
+ value: e,
216
+ path: r = "",
217
+ options: s,
218
+ originalValue: i,
219
+ schema: a
220
+ }, l, u) {
221
+ const {
222
+ name: o,
223
+ test: h,
224
+ params: c,
225
+ message: f,
226
+ skipAbsent: g
227
+ } = n;
228
+ let {
229
+ parent: w,
230
+ context: y,
231
+ abortEarly: x = a.spec.abortEarly,
232
+ disableStackTrace: j = a.spec.disableStackTrace
233
+ } = s;
234
+ function O(d) {
235
+ return S.isRef(d) ? d.getValue(e, w, y) : d;
236
+ }
237
+ function K(d = {}) {
238
+ const E = Object.assign({
239
+ value: e,
240
+ originalValue: i,
241
+ label: a.spec.label,
242
+ path: d.path || r,
243
+ spec: a.spec,
244
+ disableStackTrace: d.disableStackTrace || j
245
+ }, c, d.params);
246
+ for (const H of Object.keys(E)) E[H] = O(E[H]);
247
+ const B = new m(m.formatError(d.message || f, E), e, E.path, d.type || o, E.disableStackTrace);
248
+ return B.params = E, B;
249
+ }
250
+ const M = x ? l : u;
251
+ let P = {
252
+ path: r,
253
+ parent: w,
254
+ type: o,
255
+ from: s.from,
256
+ createError: K,
257
+ resolve: O,
258
+ options: s,
259
+ originalValue: i,
260
+ schema: a
261
+ };
262
+ const V = (d) => {
263
+ m.isError(d) ? M(d) : d ? u(null) : M(K());
264
+ }, J = (d) => {
265
+ m.isError(d) ? M(d) : l(d);
266
+ };
267
+ if (g && k(e))
268
+ return V(!0);
269
+ let A;
270
+ try {
271
+ var G;
272
+ if (A = h.call(P, e, P), typeof ((G = A) == null ? void 0 : G.then) == "function") {
273
+ if (s.sync)
274
+ throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
275
+ return Promise.resolve(A).then(V, J);
276
+ }
277
+ } catch (d) {
278
+ J(d);
279
+ return;
280
+ }
281
+ V(A);
282
+ }
283
+ return t.OPTIONS = n, t;
284
+ }
285
+ function we(n, t, e, r = e) {
286
+ let s, i, a;
287
+ return t ? (v.forEach(t, (l, u, o) => {
288
+ let h = u ? l.slice(1, l.length - 1) : l;
289
+ n = n.resolve({
290
+ context: r,
291
+ parent: s,
292
+ value: e
293
+ });
294
+ let c = n.type === "tuple", f = o ? parseInt(h, 10) : 0;
295
+ if (n.innerType || c) {
296
+ if (c && !o) throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);
297
+ if (e && f >= e.length)
298
+ throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);
299
+ s = e, e = e && e[f], n = c ? n.spec.types[f] : n.innerType;
300
+ }
301
+ if (!o) {
302
+ if (!n.fields || !n.fields[h]) throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${n.type}")`);
303
+ s = e, e = e && e[h], n = n.fields[h];
304
+ }
305
+ i = h, a = u ? "[" + l + "]" : "." + l;
306
+ }), {
307
+ schema: n,
308
+ parent: s,
309
+ parentPath: i
310
+ }) : {
311
+ parent: s,
312
+ parentPath: t,
313
+ schema: n
314
+ };
315
+ }
316
+ class z extends Set {
317
+ describe() {
318
+ const t = [];
319
+ for (const e of this.values())
320
+ t.push(S.isRef(e) ? e.describe() : e);
321
+ return t;
322
+ }
323
+ resolveAll(t) {
324
+ let e = [];
325
+ for (const r of this.values())
326
+ e.push(t(r));
327
+ return e;
328
+ }
329
+ clone() {
330
+ return new z(this.values());
331
+ }
332
+ merge(t, e) {
333
+ const r = this.clone();
334
+ return t.forEach((s) => r.add(s)), e.forEach((s) => r.delete(s)), r;
335
+ }
336
+ }
337
+ function D(n, t = /* @__PURE__ */ new Map()) {
338
+ if (L(n) || !n || typeof n != "object") return n;
339
+ if (t.has(n)) return t.get(n);
340
+ let e;
341
+ if (n instanceof Date)
342
+ e = new Date(n.getTime()), t.set(n, e);
343
+ else if (n instanceof RegExp)
344
+ e = new RegExp(n), t.set(n, e);
345
+ else if (Array.isArray(n)) {
346
+ e = new Array(n.length), t.set(n, e);
347
+ for (let r = 0; r < n.length; r++) e[r] = D(n[r], t);
348
+ } else if (n instanceof Map) {
349
+ e = /* @__PURE__ */ new Map(), t.set(n, e);
350
+ for (const [r, s] of n.entries()) e.set(r, D(s, t));
351
+ } else if (n instanceof Set) {
352
+ e = /* @__PURE__ */ new Set(), t.set(n, e);
353
+ for (const r of n) e.add(D(r, t));
354
+ } else if (n instanceof Object) {
355
+ e = {}, t.set(n, e);
356
+ for (const [r, s] of Object.entries(n)) e[r] = D(s, t);
357
+ } else
358
+ throw Error(`Unable to clone ${n}`);
359
+ return e;
360
+ }
361
+ class F {
362
+ constructor(t) {
363
+ this.type = void 0, this.deps = [], this.tests = void 0, this.transforms = void 0, this.conditions = [], this._mutate = void 0, this.internalTests = {}, this._whitelist = new z(), this._blacklist = new z(), this.exclusiveTests = /* @__PURE__ */ Object.create(null), this._typeCheck = void 0, this.spec = void 0, this.tests = [], this.transforms = [], this.withMutation(() => {
364
+ this.typeError(b.notType);
365
+ }), this.type = t.type, this._typeCheck = t.check, this.spec = Object.assign({
366
+ strip: !1,
367
+ strict: !1,
368
+ abortEarly: !0,
369
+ recursive: !0,
370
+ disableStackTrace: !1,
371
+ nullable: !1,
372
+ optional: !0,
373
+ coerce: !0
374
+ }, t == null ? void 0 : t.spec), this.withMutation((e) => {
375
+ e.nonNullable();
376
+ });
377
+ }
378
+ // TODO: remove
379
+ get _type() {
380
+ return this.type;
381
+ }
382
+ clone(t) {
383
+ if (this._mutate)
384
+ return t && Object.assign(this.spec, t), this;
385
+ const e = Object.create(Object.getPrototypeOf(this));
386
+ return e.type = this.type, e._typeCheck = this._typeCheck, e._whitelist = this._whitelist.clone(), e._blacklist = this._blacklist.clone(), e.internalTests = Object.assign({}, this.internalTests), e.exclusiveTests = Object.assign({}, this.exclusiveTests), e.deps = [...this.deps], e.conditions = [...this.conditions], e.tests = [...this.tests], e.transforms = [...this.transforms], e.spec = D(Object.assign({}, this.spec, t)), e;
387
+ }
388
+ label(t) {
389
+ let e = this.clone();
390
+ return e.spec.label = t, e;
391
+ }
392
+ meta(...t) {
393
+ if (t.length === 0) return this.spec.meta;
394
+ let e = this.clone();
395
+ return e.spec.meta = Object.assign(e.spec.meta || {}, t[0]), e;
396
+ }
397
+ withMutation(t) {
398
+ let e = this._mutate;
399
+ this._mutate = !0;
400
+ let r = t(this);
401
+ return this._mutate = e, r;
402
+ }
403
+ concat(t) {
404
+ if (!t || t === this) return this;
405
+ if (t.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);
406
+ let e = this, r = t.clone();
407
+ const s = Object.assign({}, e.spec, r.spec);
408
+ return r.spec = s, r.internalTests = Object.assign({}, e.internalTests, r.internalTests), r._whitelist = e._whitelist.merge(t._whitelist, t._blacklist), r._blacklist = e._blacklist.merge(t._blacklist, t._whitelist), r.tests = e.tests, r.exclusiveTests = e.exclusiveTests, r.withMutation((i) => {
409
+ t.tests.forEach((a) => {
410
+ i.test(a.OPTIONS);
411
+ });
412
+ }), r.transforms = [...e.transforms, ...r.transforms], r;
413
+ }
414
+ isType(t) {
415
+ return t == null ? !!(this.spec.nullable && t === null || this.spec.optional && t === void 0) : this._typeCheck(t);
416
+ }
417
+ resolve(t) {
418
+ let e = this;
419
+ if (e.conditions.length) {
420
+ let r = e.conditions;
421
+ e = e.clone(), e.conditions = [], e = r.reduce((s, i) => i.resolve(s, t), e), e = e.resolve(t);
422
+ }
423
+ return e;
424
+ }
425
+ resolveOptions(t) {
426
+ var e, r, s, i;
427
+ return Object.assign({}, t, {
428
+ from: t.from || [],
429
+ strict: (e = t.strict) != null ? e : this.spec.strict,
430
+ abortEarly: (r = t.abortEarly) != null ? r : this.spec.abortEarly,
431
+ recursive: (s = t.recursive) != null ? s : this.spec.recursive,
432
+ disableStackTrace: (i = t.disableStackTrace) != null ? i : this.spec.disableStackTrace
433
+ });
434
+ }
435
+ /**
436
+ * Run the configured transform pipeline over an input value.
437
+ */
438
+ cast(t, e = {}) {
439
+ let r = this.resolve(Object.assign({
440
+ value: t
441
+ }, e)), s = e.assert === "ignore-optionality", i = r._cast(t, e);
442
+ if (e.assert !== !1 && !r.isType(i)) {
443
+ if (s && k(i))
444
+ return i;
445
+ let a = _(t), l = _(i);
446
+ throw new TypeError(`The value of ${e.path || "field"} could not be cast to a value that satisfies the schema type: "${r.type}".
447
+
448
+ attempted value: ${a}
449
+ ` + (l !== a ? `result of cast: ${l}` : ""));
450
+ }
451
+ return i;
452
+ }
453
+ _cast(t, e) {
454
+ let r = t === void 0 ? t : this.transforms.reduce((s, i) => i.call(this, s, t, this), t);
455
+ return r === void 0 && (r = this.getDefault(e)), r;
456
+ }
457
+ _validate(t, e = {}, r, s) {
458
+ let {
459
+ path: i,
460
+ originalValue: a = t,
461
+ strict: l = this.spec.strict
462
+ } = e, u = t;
463
+ l || (u = this._cast(u, Object.assign({
464
+ assert: !1
465
+ }, e)));
466
+ let o = [];
467
+ for (let h of Object.values(this.internalTests))
468
+ h && o.push(h);
469
+ this.runTests({
470
+ path: i,
471
+ value: u,
472
+ originalValue: a,
473
+ options: e,
474
+ tests: o
475
+ }, r, (h) => {
476
+ if (h.length)
477
+ return s(h, u);
478
+ this.runTests({
479
+ path: i,
480
+ value: u,
481
+ originalValue: a,
482
+ options: e,
483
+ tests: this.tests
484
+ }, r, s);
485
+ });
486
+ }
487
+ /**
488
+ * Executes a set of validations, either schema, produced Tests or a nested
489
+ * schema validate result.
490
+ */
491
+ runTests(t, e, r) {
492
+ let s = !1, {
493
+ tests: i,
494
+ value: a,
495
+ originalValue: l,
496
+ path: u,
497
+ options: o
498
+ } = t, h = (y) => {
499
+ s || (s = !0, e(y, a));
500
+ }, c = (y) => {
501
+ s || (s = !0, r(y, a));
502
+ }, f = i.length, g = [];
503
+ if (!f) return c([]);
504
+ let w = {
505
+ value: a,
506
+ originalValue: l,
507
+ path: u,
508
+ options: o,
509
+ schema: this
510
+ };
511
+ for (let y = 0; y < i.length; y++) {
512
+ const x = i[y];
513
+ x(w, h, function(O) {
514
+ O && (Array.isArray(O) ? g.push(...O) : g.push(O)), --f <= 0 && c(g);
515
+ });
516
+ }
517
+ }
518
+ asNestedTest({
519
+ key: t,
520
+ index: e,
521
+ parent: r,
522
+ parentPath: s,
523
+ originalParent: i,
524
+ options: a
525
+ }) {
526
+ const l = t ?? e;
527
+ if (l == null)
528
+ throw TypeError("Must include `key` or `index` for nested validations");
529
+ const u = typeof l == "number";
530
+ let o = r[l];
531
+ const h = Object.assign({}, a, {
532
+ // Nested validations fields are always strict:
533
+ // 1. parent isn't strict so the casting will also have cast inner values
534
+ // 2. parent is strict in which case the nested values weren't cast either
535
+ strict: !0,
536
+ parent: r,
537
+ value: o,
538
+ originalValue: i[l],
539
+ // FIXME: tests depend on `index` being passed around deeply,
540
+ // we should not let the options.key/index bleed through
541
+ key: void 0,
542
+ // index: undefined,
543
+ [u ? "index" : "key"]: l,
544
+ path: u || l.includes(".") ? `${s || ""}[${u ? l : `"${l}"`}]` : (s ? `${s}.` : "") + t
545
+ });
546
+ return (c, f, g) => this.resolve(h)._validate(o, h, f, g);
547
+ }
548
+ validate(t, e) {
549
+ var r;
550
+ let s = this.resolve(Object.assign({}, e, {
551
+ value: t
552
+ })), i = (r = e == null ? void 0 : e.disableStackTrace) != null ? r : s.spec.disableStackTrace;
553
+ return new Promise((a, l) => s._validate(t, e, (u, o) => {
554
+ m.isError(u) && (u.value = o), l(u);
555
+ }, (u, o) => {
556
+ u.length ? l(new m(u, o, void 0, void 0, i)) : a(o);
557
+ }));
558
+ }
559
+ validateSync(t, e) {
560
+ var r;
561
+ let s = this.resolve(Object.assign({}, e, {
562
+ value: t
563
+ })), i, a = (r = e == null ? void 0 : e.disableStackTrace) != null ? r : s.spec.disableStackTrace;
564
+ return s._validate(t, Object.assign({}, e, {
565
+ sync: !0
566
+ }), (l, u) => {
567
+ throw m.isError(l) && (l.value = u), l;
568
+ }, (l, u) => {
569
+ if (l.length) throw new m(l, t, void 0, void 0, a);
570
+ i = u;
571
+ }), i;
572
+ }
573
+ isValid(t, e) {
574
+ return this.validate(t, e).then(() => !0, (r) => {
575
+ if (m.isError(r)) return !1;
576
+ throw r;
577
+ });
578
+ }
579
+ isValidSync(t, e) {
580
+ try {
581
+ return this.validateSync(t, e), !0;
582
+ } catch (r) {
583
+ if (m.isError(r)) return !1;
584
+ throw r;
585
+ }
586
+ }
587
+ _getDefault(t) {
588
+ let e = this.spec.default;
589
+ return e == null ? e : typeof e == "function" ? e.call(this, t) : D(e);
590
+ }
591
+ getDefault(t) {
592
+ return this.resolve(t || {})._getDefault(t);
593
+ }
594
+ default(t) {
595
+ return arguments.length === 0 ? this._getDefault() : this.clone({
596
+ default: t
597
+ });
598
+ }
599
+ strict(t = !0) {
600
+ return this.clone({
601
+ strict: t
602
+ });
603
+ }
604
+ nullability(t, e) {
605
+ const r = this.clone({
606
+ nullable: t
607
+ });
608
+ return r.internalTests.nullable = T({
609
+ message: e,
610
+ name: "nullable",
611
+ test(s) {
612
+ return s === null ? this.schema.spec.nullable : !0;
613
+ }
614
+ }), r;
615
+ }
616
+ optionality(t, e) {
617
+ const r = this.clone({
618
+ optional: t
619
+ });
620
+ return r.internalTests.optionality = T({
621
+ message: e,
622
+ name: "optionality",
623
+ test(s) {
624
+ return s === void 0 ? this.schema.spec.optional : !0;
625
+ }
626
+ }), r;
627
+ }
628
+ optional() {
629
+ return this.optionality(!0);
630
+ }
631
+ defined(t = b.defined) {
632
+ return this.optionality(!1, t);
633
+ }
634
+ nullable() {
635
+ return this.nullability(!0);
636
+ }
637
+ nonNullable(t = b.notNull) {
638
+ return this.nullability(!1, t);
639
+ }
640
+ required(t = b.required) {
641
+ return this.clone().withMutation((e) => e.nonNullable(t).defined(t));
642
+ }
643
+ notRequired() {
644
+ return this.clone().withMutation((t) => t.nullable().optional());
645
+ }
646
+ transform(t) {
647
+ let e = this.clone();
648
+ return e.transforms.push(t), e;
649
+ }
650
+ /**
651
+ * Adds a test function to the schema's queue of tests.
652
+ * tests can be exclusive or non-exclusive.
653
+ *
654
+ * - exclusive tests, will replace any existing tests of the same name.
655
+ * - non-exclusive: can be stacked
656
+ *
657
+ * If a non-exclusive test is added to a schema with an exclusive test of the same name
658
+ * the exclusive test is removed and further tests of the same name will be stacked.
659
+ *
660
+ * If an exclusive test is added to a schema with non-exclusive tests of the same name
661
+ * the previous tests are removed and further tests of the same name will replace each other.
662
+ */
663
+ test(...t) {
664
+ let e;
665
+ if (t.length === 1 ? typeof t[0] == "function" ? e = {
666
+ test: t[0]
667
+ } : e = t[0] : t.length === 2 ? e = {
668
+ name: t[0],
669
+ test: t[1]
670
+ } : e = {
671
+ name: t[0],
672
+ message: t[1],
673
+ test: t[2]
674
+ }, e.message === void 0 && (e.message = b.default), typeof e.test != "function") throw new TypeError("`test` is a required parameters");
675
+ let r = this.clone(), s = T(e), i = e.exclusive || e.name && r.exclusiveTests[e.name] === !0;
676
+ if (e.exclusive && !e.name)
677
+ throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");
678
+ return e.name && (r.exclusiveTests[e.name] = !!e.exclusive), r.tests = r.tests.filter((a) => !(a.OPTIONS.name === e.name && (i || a.OPTIONS.test === s.OPTIONS.test))), r.tests.push(s), r;
679
+ }
680
+ when(t, e) {
681
+ !Array.isArray(t) && typeof t != "string" && (e = t, t = ".");
682
+ let r = this.clone(), s = re(t).map((i) => new S(i));
683
+ return s.forEach((i) => {
684
+ i.isSibling && r.deps.push(i.key);
685
+ }), r.conditions.push(typeof e == "function" ? new R(s, e) : R.fromOptions(s, e)), r;
686
+ }
687
+ typeError(t) {
688
+ let e = this.clone();
689
+ return e.internalTests.typeError = T({
690
+ message: t,
691
+ name: "typeError",
692
+ skipAbsent: !0,
693
+ test(r) {
694
+ return this.schema._typeCheck(r) ? !0 : this.createError({
695
+ params: {
696
+ type: this.schema.type
697
+ }
698
+ });
699
+ }
700
+ }), e;
701
+ }
702
+ oneOf(t, e = b.oneOf) {
703
+ let r = this.clone();
704
+ return t.forEach((s) => {
705
+ r._whitelist.add(s), r._blacklist.delete(s);
706
+ }), r.internalTests.whiteList = T({
707
+ message: e,
708
+ name: "oneOf",
709
+ skipAbsent: !0,
710
+ test(s) {
711
+ let i = this.schema._whitelist, a = i.resolveAll(this.resolve);
712
+ return a.includes(s) ? !0 : this.createError({
713
+ params: {
714
+ values: Array.from(i).join(", "),
715
+ resolved: a
716
+ }
717
+ });
718
+ }
719
+ }), r;
720
+ }
721
+ notOneOf(t, e = b.notOneOf) {
722
+ let r = this.clone();
723
+ return t.forEach((s) => {
724
+ r._blacklist.add(s), r._whitelist.delete(s);
725
+ }), r.internalTests.blacklist = T({
726
+ message: e,
727
+ name: "notOneOf",
728
+ test(s) {
729
+ let i = this.schema._blacklist, a = i.resolveAll(this.resolve);
730
+ return a.includes(s) ? this.createError({
731
+ params: {
732
+ values: Array.from(i).join(", "),
733
+ resolved: a
734
+ }
735
+ }) : !0;
736
+ }
737
+ }), r;
738
+ }
739
+ strip(t = !0) {
740
+ let e = this.clone();
741
+ return e.spec.strip = t, e;
742
+ }
743
+ /**
744
+ * Return a serialized description of the schema including validations, flags, types etc.
745
+ *
746
+ * @param options Provide any needed context for resolving runtime schema alterations (lazy, when conditions, etc).
747
+ */
748
+ describe(t) {
749
+ const e = (t ? this.resolve(t) : this).clone(), {
750
+ label: r,
751
+ meta: s,
752
+ optional: i,
753
+ nullable: a
754
+ } = e.spec;
755
+ return {
756
+ meta: s,
757
+ label: r,
758
+ optional: i,
759
+ nullable: a,
760
+ default: e.getDefault(t),
761
+ type: e.type,
762
+ oneOf: e._whitelist.describe(),
763
+ notOneOf: e._blacklist.describe(),
764
+ tests: e.tests.map((u) => ({
765
+ name: u.OPTIONS.name,
766
+ params: u.OPTIONS.params
767
+ })).filter((u, o, h) => h.findIndex((c) => c.name === u.name) === o)
768
+ };
769
+ }
770
+ }
771
+ F.prototype.__isYupSchema__ = !0;
772
+ for (const n of ["validate", "validateSync"]) F.prototype[`${n}At`] = function(t, e, r = {}) {
773
+ const {
774
+ parent: s,
775
+ parentPath: i,
776
+ schema: a
777
+ } = we(this, t, e, r.context);
778
+ return a[n](s && s[i], Object.assign({}, r, {
779
+ parent: s,
780
+ path: t
781
+ }));
782
+ };
783
+ for (const n of ["equals", "is"]) F.prototype[n] = F.prototype.oneOf;
784
+ for (const n of ["not", "nope"]) F.prototype[n] = F.prototype.notOneOf;
785
+ const xe = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
786
+ function _e(n) {
787
+ const t = Z(n);
788
+ if (!t) return Date.parse ? Date.parse(n) : Number.NaN;
789
+ if (t.z === void 0 && t.plusMinus === void 0)
790
+ return new Date(t.year, t.month, t.day, t.hour, t.minute, t.second, t.millisecond).valueOf();
791
+ let e = 0;
792
+ return t.z !== "Z" && t.plusMinus !== void 0 && (e = t.hourOffset * 60 + t.minuteOffset, t.plusMinus === "+" && (e = 0 - e)), Date.UTC(t.year, t.month, t.day, t.hour, t.minute + e, t.second, t.millisecond);
793
+ }
794
+ function Z(n) {
795
+ var t, e;
796
+ const r = xe.exec(n);
797
+ return r ? {
798
+ year: $(r[1]),
799
+ month: $(r[2], 1) - 1,
800
+ day: $(r[3], 1),
801
+ hour: $(r[4]),
802
+ minute: $(r[5]),
803
+ second: $(r[6]),
804
+ millisecond: r[7] ? (
805
+ // allow arbitrary sub-second precision beyond milliseconds
806
+ $(r[7].substring(0, 3))
807
+ ) : 0,
808
+ precision: (t = (e = r[7]) == null ? void 0 : e.length) != null ? t : void 0,
809
+ z: r[8] || void 0,
810
+ plusMinus: r[9] || void 0,
811
+ hourOffset: $(r[10]),
812
+ minuteOffset: $(r[11])
813
+ } : null;
814
+ }
815
+ function $(n, t = 0) {
816
+ return Number(n) || t;
817
+ }
818
+ let Oe = (
819
+ // eslint-disable-next-line
820
+ /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
821
+ ), Ee = (
822
+ // eslint-disable-next-line
823
+ /^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
824
+ ), ke = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, ve = "^\\d{4}-\\d{2}-\\d{2}", Se = "\\d{2}:\\d{2}:\\d{2}", Te = "(([+-]\\d{2}(:?\\d{2})?)|Z)", De = new RegExp(`${ve}T${Se}(\\.\\d+)?${Te}$`), je = (n) => k(n) || n === n.trim(), Ae = {}.toString();
825
+ function Ce() {
826
+ return new ae();
827
+ }
828
+ class ae extends F {
829
+ constructor() {
830
+ super({
831
+ type: "string",
832
+ check(t) {
833
+ return t instanceof String && (t = t.valueOf()), typeof t == "string";
834
+ }
835
+ }), this.withMutation(() => {
836
+ this.transform((t, e, r) => {
837
+ if (!r.spec.coerce || r.isType(t) || Array.isArray(t)) return t;
838
+ const s = t != null && t.toString ? t.toString() : t;
839
+ return s === Ae ? t : s;
840
+ });
841
+ });
842
+ }
843
+ required(t) {
844
+ return super.required(t).withMutation((e) => e.test({
845
+ message: t || b.required,
846
+ name: "required",
847
+ skipAbsent: !0,
848
+ test: (r) => !!r.length
849
+ }));
850
+ }
851
+ notRequired() {
852
+ return super.notRequired().withMutation((t) => (t.tests = t.tests.filter((e) => e.OPTIONS.name !== "required"), t));
853
+ }
854
+ length(t, e = p.length) {
855
+ return this.test({
856
+ message: e,
857
+ name: "length",
858
+ exclusive: !0,
859
+ params: {
860
+ length: t
861
+ },
862
+ skipAbsent: !0,
863
+ test(r) {
864
+ return r.length === this.resolve(t);
865
+ }
866
+ });
867
+ }
868
+ min(t, e = p.min) {
869
+ return this.test({
870
+ message: e,
871
+ name: "min",
872
+ exclusive: !0,
873
+ params: {
874
+ min: t
875
+ },
876
+ skipAbsent: !0,
877
+ test(r) {
878
+ return r.length >= this.resolve(t);
879
+ }
880
+ });
881
+ }
882
+ max(t, e = p.max) {
883
+ return this.test({
884
+ name: "max",
885
+ exclusive: !0,
886
+ message: e,
887
+ params: {
888
+ max: t
889
+ },
890
+ skipAbsent: !0,
891
+ test(r) {
892
+ return r.length <= this.resolve(t);
893
+ }
894
+ });
895
+ }
896
+ matches(t, e) {
897
+ let r = !1, s, i;
898
+ return e && (typeof e == "object" ? {
899
+ excludeEmptyString: r = !1,
900
+ message: s,
901
+ name: i
902
+ } = e : s = e), this.test({
903
+ name: i || "matches",
904
+ message: s || p.matches,
905
+ params: {
906
+ regex: t
907
+ },
908
+ skipAbsent: !0,
909
+ test: (a) => a === "" && r || a.search(t) !== -1
910
+ });
911
+ }
912
+ email(t = p.email) {
913
+ return this.matches(Oe, {
914
+ name: "email",
915
+ message: t,
916
+ excludeEmptyString: !0
917
+ });
918
+ }
919
+ url(t = p.url) {
920
+ return this.matches(Ee, {
921
+ name: "url",
922
+ message: t,
923
+ excludeEmptyString: !0
924
+ });
925
+ }
926
+ uuid(t = p.uuid) {
927
+ return this.matches(ke, {
928
+ name: "uuid",
929
+ message: t,
930
+ excludeEmptyString: !1
931
+ });
932
+ }
933
+ datetime(t) {
934
+ let e = "", r, s;
935
+ return t && (typeof t == "object" ? {
936
+ message: e = "",
937
+ allowOffset: r = !1,
938
+ precision: s = void 0
939
+ } = t : e = t), this.matches(De, {
940
+ name: "datetime",
941
+ message: e || p.datetime,
942
+ excludeEmptyString: !0
943
+ }).test({
944
+ name: "datetime_offset",
945
+ message: e || p.datetime_offset,
946
+ params: {
947
+ allowOffset: r
948
+ },
949
+ skipAbsent: !0,
950
+ test: (i) => {
951
+ if (!i || r) return !0;
952
+ const a = Z(i);
953
+ return a ? !!a.z : !1;
954
+ }
955
+ }).test({
956
+ name: "datetime_precision",
957
+ message: e || p.datetime_precision,
958
+ params: {
959
+ precision: s
960
+ },
961
+ skipAbsent: !0,
962
+ test: (i) => {
963
+ if (!i || s == null) return !0;
964
+ const a = Z(i);
965
+ return a ? a.precision === s : !1;
966
+ }
967
+ });
968
+ }
969
+ //-- transforms --
970
+ ensure() {
971
+ return this.default("").transform((t) => t === null ? "" : t);
972
+ }
973
+ trim(t = p.trim) {
974
+ return this.transform((e) => e != null ? e.trim() : e).test({
975
+ message: t,
976
+ name: "trim",
977
+ test: je
978
+ });
979
+ }
980
+ lowercase(t = p.lowercase) {
981
+ return this.transform((e) => k(e) ? e : e.toLowerCase()).test({
982
+ message: t,
983
+ name: "string_case",
984
+ exclusive: !0,
985
+ skipAbsent: !0,
986
+ test: (e) => k(e) || e === e.toLowerCase()
987
+ });
988
+ }
989
+ uppercase(t = p.uppercase) {
990
+ return this.transform((e) => k(e) ? e : e.toUpperCase()).test({
991
+ message: t,
992
+ name: "string_case",
993
+ exclusive: !0,
994
+ skipAbsent: !0,
995
+ test: (e) => k(e) || e === e.toUpperCase()
996
+ });
997
+ }
998
+ }
999
+ Ce.prototype = ae.prototype;
1000
+ let Ne = /* @__PURE__ */ new Date(""), Ie = (n) => Object.prototype.toString.call(n) === "[object Date]";
1001
+ class Y extends F {
1002
+ constructor() {
1003
+ super({
1004
+ type: "date",
1005
+ check(t) {
1006
+ return Ie(t) && !isNaN(t.getTime());
1007
+ }
1008
+ }), this.withMutation(() => {
1009
+ this.transform((t, e, r) => !r.spec.coerce || r.isType(t) || t === null ? t : (t = _e(t), isNaN(t) ? Y.INVALID_DATE : new Date(t)));
1010
+ });
1011
+ }
1012
+ prepareParam(t, e) {
1013
+ let r;
1014
+ if (S.isRef(t))
1015
+ r = t;
1016
+ else {
1017
+ let s = this.cast(t);
1018
+ if (!this._typeCheck(s)) throw new TypeError(`\`${e}\` must be a Date or a value that can be \`cast()\` to a Date`);
1019
+ r = s;
1020
+ }
1021
+ return r;
1022
+ }
1023
+ min(t, e = q.min) {
1024
+ let r = this.prepareParam(t, "min");
1025
+ return this.test({
1026
+ message: e,
1027
+ name: "min",
1028
+ exclusive: !0,
1029
+ params: {
1030
+ min: t
1031
+ },
1032
+ skipAbsent: !0,
1033
+ test(s) {
1034
+ return s >= this.resolve(r);
1035
+ }
1036
+ });
1037
+ }
1038
+ max(t, e = q.max) {
1039
+ let r = this.prepareParam(t, "max");
1040
+ return this.test({
1041
+ message: e,
1042
+ name: "max",
1043
+ exclusive: !0,
1044
+ params: {
1045
+ max: t
1046
+ },
1047
+ skipAbsent: !0,
1048
+ test(s) {
1049
+ return s <= this.resolve(r);
1050
+ }
1051
+ });
1052
+ }
1053
+ }
1054
+ Y.INVALID_DATE = Ne;
1055
+ function Re(n, t = []) {
1056
+ let e = [], r = /* @__PURE__ */ new Set(), s = new Set(t.map(([a, l]) => `${a}-${l}`));
1057
+ function i(a, l) {
1058
+ let u = v.split(a)[0];
1059
+ r.add(u), s.has(`${l}-${u}`) || e.push([l, u]);
1060
+ }
1061
+ for (const a of Object.keys(n)) {
1062
+ let l = n[a];
1063
+ r.add(a), S.isRef(l) && l.isSibling ? i(l.path, a) : L(l) && "deps" in l && l.deps.forEach((u) => i(u, a));
1064
+ }
1065
+ return oe.array(Array.from(r), e).reverse();
1066
+ }
1067
+ function W(n, t) {
1068
+ let e = 1 / 0;
1069
+ return n.some((r, s) => {
1070
+ var i;
1071
+ if ((i = t.path) != null && i.includes(r))
1072
+ return e = s, !0;
1073
+ }), e;
1074
+ }
1075
+ function le(n) {
1076
+ return (t, e) => W(n, t) - W(n, e);
1077
+ }
1078
+ const ze = (n, t, e) => {
1079
+ if (typeof n != "string")
1080
+ return n;
1081
+ let r = n;
1082
+ try {
1083
+ r = JSON.parse(n);
1084
+ } catch {
1085
+ }
1086
+ return e.isType(r) ? r : n;
1087
+ };
1088
+ function I(n) {
1089
+ if ("fields" in n) {
1090
+ const t = {};
1091
+ for (const [e, r] of Object.entries(n.fields))
1092
+ t[e] = I(r);
1093
+ return n.setFields(t);
1094
+ }
1095
+ if (n.type === "array") {
1096
+ const t = n.optional();
1097
+ return t.innerType && (t.innerType = I(t.innerType)), t;
1098
+ }
1099
+ return n.type === "tuple" ? n.optional().clone({
1100
+ types: n.spec.types.map(I)
1101
+ }) : "optional" in n ? n.optional() : n;
1102
+ }
1103
+ const Me = (n, t) => {
1104
+ const e = [...v.normalizePath(t)];
1105
+ if (e.length === 1) return e[0] in n;
1106
+ let r = e.pop(), s = v.getter(v.join(e), !0)(n);
1107
+ return !!(s && r in s);
1108
+ };
1109
+ let ee = (n) => Object.prototype.toString.call(n) === "[object Object]";
1110
+ function te(n, t) {
1111
+ let e = Object.keys(n.fields);
1112
+ return Object.keys(t).filter((r) => e.indexOf(r) === -1);
1113
+ }
1114
+ const Pe = le([]);
1115
+ function Ve(n) {
1116
+ return new ue(n);
1117
+ }
1118
+ class ue extends F {
1119
+ constructor(t) {
1120
+ super({
1121
+ type: "object",
1122
+ check(e) {
1123
+ return ee(e) || typeof e == "function";
1124
+ }
1125
+ }), this.fields = /* @__PURE__ */ Object.create(null), this._sortErrors = Pe, this._nodes = [], this._excludedEdges = [], this.withMutation(() => {
1126
+ t && this.shape(t);
1127
+ });
1128
+ }
1129
+ _cast(t, e = {}) {
1130
+ var r;
1131
+ let s = super._cast(t, e);
1132
+ if (s === void 0) return this.getDefault(e);
1133
+ if (!this._typeCheck(s)) return s;
1134
+ let i = this.fields, a = (r = e.stripUnknown) != null ? r : this.spec.noUnknown, l = [].concat(this._nodes, Object.keys(s).filter((c) => !this._nodes.includes(c))), u = {}, o = Object.assign({}, e, {
1135
+ parent: u,
1136
+ __validating: e.__validating || !1
1137
+ }), h = !1;
1138
+ for (const c of l) {
1139
+ let f = i[c], g = c in s;
1140
+ if (f) {
1141
+ let w, y = s[c];
1142
+ o.path = (e.path ? `${e.path}.` : "") + c, f = f.resolve({
1143
+ value: y,
1144
+ context: e.context,
1145
+ parent: u
1146
+ });
1147
+ let x = f instanceof F ? f.spec : void 0, j = x == null ? void 0 : x.strict;
1148
+ if (x != null && x.strip) {
1149
+ h = h || c in s;
1150
+ continue;
1151
+ }
1152
+ w = !e.__validating || !j ? (
1153
+ // TODO: use _cast, this is double resolving
1154
+ f.cast(s[c], o)
1155
+ ) : s[c], w !== void 0 && (u[c] = w);
1156
+ } else g && !a && (u[c] = s[c]);
1157
+ (g !== c in u || u[c] !== s[c]) && (h = !0);
1158
+ }
1159
+ return h ? u : s;
1160
+ }
1161
+ _validate(t, e = {}, r, s) {
1162
+ let {
1163
+ from: i = [],
1164
+ originalValue: a = t,
1165
+ recursive: l = this.spec.recursive
1166
+ } = e;
1167
+ e.from = [{
1168
+ schema: this,
1169
+ value: a
1170
+ }, ...i], e.__validating = !0, e.originalValue = a, super._validate(t, e, r, (u, o) => {
1171
+ if (!l || !ee(o)) {
1172
+ s(u, o);
1173
+ return;
1174
+ }
1175
+ a = a || o;
1176
+ let h = [];
1177
+ for (let c of this._nodes) {
1178
+ let f = this.fields[c];
1179
+ !f || S.isRef(f) || h.push(f.asNestedTest({
1180
+ options: e,
1181
+ key: c,
1182
+ parent: o,
1183
+ parentPath: e.path,
1184
+ originalParent: a
1185
+ }));
1186
+ }
1187
+ this.runTests({
1188
+ tests: h,
1189
+ value: o,
1190
+ originalValue: a,
1191
+ options: e
1192
+ }, r, (c) => {
1193
+ s(c.sort(this._sortErrors).concat(u), o);
1194
+ });
1195
+ });
1196
+ }
1197
+ clone(t) {
1198
+ const e = super.clone(t);
1199
+ return e.fields = Object.assign({}, this.fields), e._nodes = this._nodes, e._excludedEdges = this._excludedEdges, e._sortErrors = this._sortErrors, e;
1200
+ }
1201
+ concat(t) {
1202
+ let e = super.concat(t), r = e.fields;
1203
+ for (let [s, i] of Object.entries(this.fields)) {
1204
+ const a = r[s];
1205
+ r[s] = a === void 0 ? i : a;
1206
+ }
1207
+ return e.withMutation((s) => (
1208
+ // XXX: excludes here is wrong
1209
+ s.setFields(r, [...this._excludedEdges, ...t._excludedEdges])
1210
+ ));
1211
+ }
1212
+ _getDefault(t) {
1213
+ if ("default" in this.spec)
1214
+ return super._getDefault(t);
1215
+ if (!this._nodes.length)
1216
+ return;
1217
+ let e = {};
1218
+ return this._nodes.forEach((r) => {
1219
+ var s;
1220
+ const i = this.fields[r];
1221
+ let a = t;
1222
+ (s = a) != null && s.value && (a = Object.assign({}, a, {
1223
+ parent: a.value,
1224
+ value: a.value[r]
1225
+ })), e[r] = i && "getDefault" in i ? i.getDefault(a) : void 0;
1226
+ }), e;
1227
+ }
1228
+ setFields(t, e) {
1229
+ let r = this.clone();
1230
+ return r.fields = t, r._nodes = Re(t, e), r._sortErrors = le(Object.keys(t)), e && (r._excludedEdges = e), r;
1231
+ }
1232
+ shape(t, e = []) {
1233
+ return this.clone().withMutation((r) => {
1234
+ let s = r._excludedEdges;
1235
+ return e.length && (Array.isArray(e[0]) || (e = [e]), s = [...r._excludedEdges, ...e]), r.setFields(Object.assign(r.fields, t), s);
1236
+ });
1237
+ }
1238
+ partial() {
1239
+ const t = {};
1240
+ for (const [e, r] of Object.entries(this.fields))
1241
+ t[e] = "optional" in r && r.optional instanceof Function ? r.optional() : r;
1242
+ return this.setFields(t);
1243
+ }
1244
+ deepPartial() {
1245
+ return I(this);
1246
+ }
1247
+ pick(t) {
1248
+ const e = {};
1249
+ for (const r of t)
1250
+ this.fields[r] && (e[r] = this.fields[r]);
1251
+ return this.setFields(e, this._excludedEdges.filter(([r, s]) => t.includes(r) && t.includes(s)));
1252
+ }
1253
+ omit(t) {
1254
+ const e = [];
1255
+ for (const r of Object.keys(this.fields))
1256
+ t.includes(r) || e.push(r);
1257
+ return this.pick(e);
1258
+ }
1259
+ from(t, e, r) {
1260
+ let s = v.getter(t, !0);
1261
+ return this.transform((i) => {
1262
+ if (!i) return i;
1263
+ let a = i;
1264
+ return Me(i, t) && (a = Object.assign({}, i), r || delete a[t], a[e] = s(i)), a;
1265
+ });
1266
+ }
1267
+ /** Parse an input JSON string to an object */
1268
+ json() {
1269
+ return this.transform(ze);
1270
+ }
1271
+ /**
1272
+ * Similar to `noUnknown` but only validates that an object is the right shape without stripping the unknown keys
1273
+ */
1274
+ exact(t) {
1275
+ return this.test({
1276
+ name: "exact",
1277
+ exclusive: !0,
1278
+ message: t || N.exact,
1279
+ test(e) {
1280
+ if (e == null) return !0;
1281
+ const r = te(this.schema, e);
1282
+ return r.length === 0 || this.createError({
1283
+ params: {
1284
+ properties: r.join(", ")
1285
+ }
1286
+ });
1287
+ }
1288
+ });
1289
+ }
1290
+ stripUnknown() {
1291
+ return this.clone({
1292
+ noUnknown: !0
1293
+ });
1294
+ }
1295
+ noUnknown(t = !0, e = N.noUnknown) {
1296
+ typeof t != "boolean" && (e = t, t = !0);
1297
+ let r = this.test({
1298
+ name: "noUnknown",
1299
+ exclusive: !0,
1300
+ message: e,
1301
+ test(s) {
1302
+ if (s == null) return !0;
1303
+ const i = te(this.schema, s);
1304
+ return !t || i.length === 0 || this.createError({
1305
+ params: {
1306
+ unknown: i.join(", ")
1307
+ }
1308
+ });
1309
+ }
1310
+ });
1311
+ return r.spec.noUnknown = t, r;
1312
+ }
1313
+ unknown(t = !0, e = N.noUnknown) {
1314
+ return this.noUnknown(!t, e);
1315
+ }
1316
+ transformKeys(t) {
1317
+ return this.transform((e) => {
1318
+ if (!e) return e;
1319
+ const r = {};
1320
+ for (const s of Object.keys(e)) r[t(s)] = e[s];
1321
+ return r;
1322
+ });
1323
+ }
1324
+ camelCase() {
1325
+ return this.transformKeys(U.camelCase);
1326
+ }
1327
+ snakeCase() {
1328
+ return this.transformKeys(U.snakeCase);
1329
+ }
1330
+ constantCase() {
1331
+ return this.transformKeys((t) => U.snakeCase(t).toUpperCase());
1332
+ }
1333
+ describe(t) {
1334
+ const e = (t ? this.resolve(t) : this).clone(), r = super.describe(t);
1335
+ r.fields = {};
1336
+ for (const [i, a] of Object.entries(e.fields)) {
1337
+ var s;
1338
+ let l = t;
1339
+ (s = l) != null && s.value && (l = Object.assign({}, l, {
1340
+ parent: l.value,
1341
+ value: l.value[i]
1342
+ })), r.fields[i] = a.describe(l);
1343
+ }
1344
+ return r;
1345
+ }
1346
+ }
1347
+ Ve.prototype = ue.prototype;
1348
+ export {
1349
+ Y as DateSchema,
1350
+ ue as ObjectSchema,
1351
+ F as Schema,
1352
+ ae as StringSchema,
1353
+ m as ValidationError,
1354
+ we as getIn,
1355
+ L as isSchema,
1356
+ Ve as object,
1357
+ _ as printValue,
1358
+ Ce as string
1359
+ };