@kroo-web/design-system 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +5 -0
- package/dist/cjs/icons/Icon.stories.d.ts +2 -2
- package/dist/cjs/index.js +40 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/product/components/Button/button.stories.d.ts +5 -1
- package/dist/cjs/product/components/Button/index.d.ts +24 -3
- package/dist/cjs/product/components/Callout/Callout.stories.d.ts +1 -1
- package/dist/cjs/product/components/Columns/Columns.stories.d.ts +6 -0
- package/dist/cjs/product/components/DatePicker/DatePicker.stories.d.ts +1 -1
- package/dist/cjs/product/components/Disclosure/Disclosure.stories.d.ts +1 -1
- package/dist/cjs/product/components/Form/Form.stories.d.ts +12 -0
- package/dist/cjs/product/components/Loading/Loading.stories.d.ts +7 -0
- package/dist/cjs/product/components/Loading/Loading.test.d.ts +1 -0
- package/dist/cjs/product/components/Loading/index.d.ts +12 -0
- package/dist/cjs/product/components/Modal/Modal.stories.d.ts +7 -0
- package/dist/cjs/product/components/Modal/Modal.test.d.ts +1 -0
- package/dist/cjs/product/components/Modal/index.d.ts +25 -0
- package/dist/cjs/product/components/NumberField/numberField.stories.d.ts +1 -1
- package/dist/cjs/product/components/ProgressIndicator/ProgressIndicator.stories.d.ts +1 -1
- package/dist/cjs/product/components/ProgressIndicator/index.d.ts +2 -2
- package/dist/cjs/product/components/RadioGroup/radioGroup.stories.d.ts +1 -1
- package/dist/cjs/product/components/Range/range.stories.d.ts +2 -2
- package/dist/cjs/product/components/Select/select.stories.d.ts +2 -2
- package/dist/cjs/product/components/TextField/textField.stories.d.ts +1 -1
- package/dist/cjs/product/components/Toast/Toast.stories.d.ts +7 -0
- package/dist/cjs/product/components/Toast/index.d.ts +16 -0
- package/dist/cjs/product/components/Tooltip/Tooltip.stories.d.ts +7 -0
- package/dist/cjs/product/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/cjs/product/components/Tooltip/index.d.ts +10 -0
- package/dist/cjs/product/components/Typography/typography.stories.d.ts +1 -1
- package/dist/cjs/product/components/index.d.ts +6 -1
- package/dist/esm/icons/Icon.stories.d.ts +2 -2
- package/dist/esm/index.js +40 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/product/components/Button/button.stories.d.ts +5 -1
- package/dist/esm/product/components/Button/index.d.ts +24 -3
- package/dist/esm/product/components/Callout/Callout.stories.d.ts +1 -1
- package/dist/esm/product/components/Columns/Columns.stories.d.ts +6 -0
- package/dist/esm/product/components/DatePicker/DatePicker.stories.d.ts +1 -1
- package/dist/esm/product/components/Disclosure/Disclosure.stories.d.ts +1 -1
- package/dist/esm/product/components/Form/Form.stories.d.ts +12 -0
- package/dist/esm/product/components/Loading/Loading.stories.d.ts +7 -0
- package/dist/esm/product/components/Loading/Loading.test.d.ts +1 -0
- package/dist/esm/product/components/Loading/index.d.ts +12 -0
- package/dist/esm/product/components/Modal/Modal.stories.d.ts +7 -0
- package/dist/esm/product/components/Modal/Modal.test.d.ts +1 -0
- package/dist/esm/product/components/Modal/index.d.ts +25 -0
- package/dist/esm/product/components/NumberField/numberField.stories.d.ts +1 -1
- package/dist/esm/product/components/ProgressIndicator/ProgressIndicator.stories.d.ts +1 -1
- package/dist/esm/product/components/ProgressIndicator/index.d.ts +2 -2
- package/dist/esm/product/components/RadioGroup/radioGroup.stories.d.ts +1 -1
- package/dist/esm/product/components/Range/range.stories.d.ts +2 -2
- package/dist/esm/product/components/Select/select.stories.d.ts +2 -2
- package/dist/esm/product/components/TextField/textField.stories.d.ts +1 -1
- package/dist/esm/product/components/Toast/Toast.stories.d.ts +7 -0
- package/dist/esm/product/components/Toast/index.d.ts +16 -0
- package/dist/esm/product/components/Tooltip/Tooltip.stories.d.ts +7 -0
- package/dist/esm/product/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/esm/product/components/Tooltip/index.d.ts +10 -0
- package/dist/esm/product/components/Typography/typography.stories.d.ts +1 -1
- package/dist/esm/product/components/index.d.ts +6 -1
- package/dist/styles/dev.global.css +2 -0
- package/dist/styles/global.css +4 -0
- package/dist/styles/tokens/product.css +1 -0
- package/dist/types.d.ts +117 -26
- package/package.json +8 -5
- /package/dist/cjs/product/components/{FormField → shared/FormField}/FormField.stories.d.ts +0 -0
- /package/dist/cjs/product/components/{FormField → shared/FormField}/index.d.ts +0 -0
- /package/dist/esm/product/components/{FormField → shared/FormField}/FormField.stories.d.ts +0 -0
- /package/dist/esm/product/components/{FormField → shared/FormField}/index.d.ts +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
"use strict";var t=require("react"),e=require("react-hook-form"),n=require("react-dom");function r(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var o=r(t),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=s(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function l(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=s(t))&&(r&&(r+=" "),r+=e);return r}function u(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;var c={button:"button-module_button__dZH55",action:"button-module_action__RTWZU",focus:"button-module_focus__RNsoR",primary:"button-module_primary__CZzyo",hover:"button-module_hover__Zz9hl",active:"button-module_active__rYKZm",secondary:"button-module_secondary__tM5K3",tertiary:"button-module_tertiary__0bKi6",ghost:"button-module_ghost__xQWCE",danger:"button-module_danger__pxWDX",standard:"button-module_standard__GaQlx","only-icon":"button-module_only-icon__8lEn4"};u(".button-module_button__dZH55 {\n all: unset;\n display: flex;\n padding: var(--product-spacing-3) var(--product-spacing-7);\n border-radius: var(--product-radius-full);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_button__dZH55 > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_action__RTWZU {\n all: unset;\n display: flex;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-2_5) var(--product-spacing-6);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_action__RTWZU > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_button__dZH55:focus, .button-module_button__dZH55.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n.button-module_action__RTWZU:focus, .button-module_action__RTWZU.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n/* ! Button */\n\n/* Primary */\n\n.button-module_primary__CZzyo {\n color: var(--product-greyscale-0);\n background: var(--product-love-pink-100)\n}\n\n.button-module_primary__CZzyo:hover, .button-module_primary__CZzyo.button-module_hover__Zz9hl {\n background: var(--product-love-pink-80)\n}\n\n.button-module_primary__CZzyo:active, .button-module_primary__CZzyo.button-module_active__rYKZm {\n background: var(--product-love-pink-120)\n}\n\n/* Secondary */\n\n.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-0);\n background: var(--product-greyscale-100);\n}\n\n.button-module_secondary__tM5K3:hover, .button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_secondary__tM5K3:active, .button-module_secondary__tM5K3.button-module_active__rYKZm {\n background: var(--product-greyscale-60);\n}\n\n/* Tertiary */\n\n.button-module_tertiary__0bKi6 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_tertiary__0bKi6:hover, .button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-light-blue-20);\n}\n\n.button-module_tertiary__0bKi6:active, .button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-light-blue-40);\n}\n\n/* Ghost */\n\n.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_ghost__xQWCE:hover, .button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_ghost__xQWCE:active, .button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n/* Danger */\n\n.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var( --product-error);\n}\n\n.button-module_danger__pxWDX:hover, .button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_danger__pxWDX:active, .button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n/*! Action Button */\n\n/* Standard */\n\n.button-module_action__RTWZU.button-module_standard__GaQlx {\n color: var(--product-greyscale-0);\n background: var(--product-light-blue-100);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:hover, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_hover__Zz9hl {\n background: var(--product-light-blue-80);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:active, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_active__rYKZm {\n background: var(--product-light-blue-120);\n}\n\n/* Secondary */\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-00);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:hover, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:active, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_active__rYKZm {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n/* Tertiary */\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6 {\n background: var(--product-greyscale-100);\n color: var(--product-greyscale-0)\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:hover, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:active, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-greyscale-100);\n}\n\n/* Ghost */\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:hover, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:active, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:focus, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_focus__RNsoR {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n/* Danger */\n\n.button-module_action__RTWZU.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var(--product-error);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:hover, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:active, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n\n\n\n.button-module_button__dZH55:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled:hover, .button-module_action__RTWZU:disabled.button-module_hover__Zz9hl {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n border: none;\n}\n\n.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-3);\n border-radius: var(--product-radius-full);\n}\n\n.button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-2_5);\n border-radius: var(--product-radius-2);\n}\n\n\n\n @media (min-width: 768px) {\n .button-module_button__dZH55 {\n padding: var(--product-spacing-4) var(--product-spacing-7);\n }\n\n .button-module_action__RTWZU {\n border-radius: var(--product-radius-5);\n }\n\n .button-module_only-icon__8lEn4 {\n padding: 16px;\n }\n\n .button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: 10px;\n }\n}\n\n\n");var d={"form-label":"typography-module_form-label__7pjg0","form-helper":"typography-module_form-helper__iE-K1","form-button":"typography-module_form-button__oWjm-","form-input-normal":"typography-module_form-input-normal__t1XCT","form-input-semi-bold":"typography-module_form-input-semi-bold__HLeM-","content-regular-light":"typography-module_content-regular-light__qEDRp","content-regular":"typography-module_content-regular__I4VOF","content-regular-semi-bold":"typography-module_content-regular-semi-bold__COKU6","content-large-light":"typography-module_content-large-light__bc5mT","content-large":"typography-module_content-large__UcRKy","content-large-semi-bold":"typography-module_content-large-semi-bold__rW0r8","content-title-light":"typography-module_content-title-light__32AIU","content-title":"typography-module_content-title__adS2q","content-title-semi-bold":"typography-module_content-title-semi-bold__B-QDN"};u(".typography-module_form-label__7pjg0{\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-desktop-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n letter-spacing: var(--product-font-form-helper-letter-spacing);\n line-height: var(--product-font-form-helper-line-height);\n}\n\n.typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n letter-spacing: var(--product-font-form-input-button-letter-spacing);\n line-height: var(--product-font-form-input-button-line-height);\n font-weight: var(--product-font-weight-medium);\n}\n\n.typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n}\n\n.typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n letter-spacing: var(--product-font-content-regular-light-letter-spacing);\n line-height: var(--product-font-content-regular-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n letter-spacing: var(--product-font-content-regular-normal-letter-spacing);\n line-height: var(--product-font-content-regular-normal-line-height);\n}\n\n.typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-regular-semi-bold-letter-spacing);\n line-height: var(--product-font-content-regular-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n @media (min-width: 768px) {\n .typography-module_form-label__7pjg0{\n font-size: var(--product-font-form-label-desktop-size);\n }\n\n .typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n }\n\n .typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n }\n\n .typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n }\n\n .typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n }\n\n .typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n }\n\n .typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n\n .typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var p=function(e){var n=e.as,r=e.variant,o=void 0===r?"content-regular":r,s=e.children,u=e.className,c=a(e,["as","variant","children","className"]),p=n||"p";return t.createElement(p,i({className:l(d[o],u)},c),s)};var f="columns-module_container__ycx3n";u(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var h="datepicker-module_container__H0Ck-",m="datepicker-module_input__tm5uo",g="datepicker-module_input--error__D6wsy";u(".datepicker-module_container__H0Ck- {\n display: flex;\n flex-direction: column;\n}\n\n.datepicker-module_input__tm5uo {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.datepicker-module_input--error__D6wsy {\n border: 2px solid var(--product-error);\n}\n\n\n\n.datepicker-module_error__vTdEl {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__wCkZn {\n margin-bottom: var(--product-spacing-3);\n}\n\n @media (min-width: 768px) {\n .datepicker-module_input__tm5uo {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var v="formField-module_container__kHrDY",y="formField-module_label__n-BxC",_="formField-module_helper__tDddc",b="formField-module_error__lDnrF";u(".formField-module_container__kHrDY {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__n-BxC {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__tDddc {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__lDnrF {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n @media (min-width: 768px) {\n .formField-module_helper__tDddc, .formField-module_error__lDnrF {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n\n}\n");var x=function(e){var n=e.id,r=e.error,o=e.helper,i=e.label,a=e.children;return t.createElement("div",{className:v},t.createElement(p,{as:"label",variant:"form-input-normal",className:y,htmlFor:n},i),a,o&&t.createElement(p,{variant:"form-helper",className:_},o),r&&t.createElement(p,{variant:"form-helper",className:b},r))},w=function(e){var n=e.field,r=e.error,o=e.helper,s=a(e,["field","error","helper"]);return t.createElement(x,{id:s.id,label:s.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},t.createElement("div",{className:h},t.createElement("input",i({className:l(m,r&&g),type:"date",id:s.id},n))))};const E=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),S=t.createContext({}),k=t.createContext(null),C="undefined"!=typeof document,P=C?t.useLayoutEffect:t.useEffect,T=t.createContext({strict:!1}),R=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),A="data-"+R("framerAppearId"),O=!1,D=!1;class F{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const j=["prepare","read","update","preRender","render","postRender"];function M(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=j.reduce(((t,e)=>(t[e]=function(t){let e=new F,n=new F,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:l=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];a.has(r)&&(s.schedule(r),t()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),t)),{}),a=t=>{i[t].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,j.forEach(a),o.isProcessing=!1,n&&e&&(r=!1,t(s))};return{schedule:j.reduce(((e,a)=>{const l=i[a];return e[a]=(e,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||t(s)),l.schedule(e,i,a)),e}),{}),cancel:t=>j.forEach((e=>i[e].cancel(t))),state:o,steps:i}}const{schedule:V,cancel:L}=M(queueMicrotask,!1);function N(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function I(t){return"string"==typeof t||Array.isArray(t)}function B(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const z=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],U=["initial",...z];function $(t){return B(t.animate)||U.some((e=>I(t[e])))}function W(t){return Boolean($(t)||t.variants)}function Z(e){const{initial:n,animate:r}=function(t,e){if($(t)){const{initial:e,animate:n}=t;return{initial:!1===e||I(e)?e:void 0,animate:I(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(S));return t.useMemo((()=>({initial:n,animate:r})),[G(n),G(r)])}function G(t){return Array.isArray(t)?t.join(" "):t}const H={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Y={};for(const t in H)Y[t]={isEnabled:e=>H[t].some((t=>!!e[t]))};const q=t.createContext({}),K=t.createContext({}),X=Symbol.for("motionComponentSymbol");function Q({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:a}){e&&function(t){for(const e in t)Y[e]={...Y[e],...t[e]}}(e);const s=t.forwardRef((function(s,l){let u;const c={...t.useContext(E),...s,layoutId:J(s)},{isStatic:d}=c,p=Z(s),f=i(s,d);if(!d&&C){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(S),a=t.useContext(T),s=t.useContext(k),l=t.useContext(E).reducedMotion,u=t.useRef();o=o||a.renderer,!u.current&&o&&(u.current=o(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;t.useInsertionEffect((()=>{c&&c.update(r,s)}));const d=t.useRef(Boolean(r[A]&&!window.HandoffComplete));return P((()=>{c&&(V.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),t.useEffect((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(a,f,c,n);const r=t.useContext(K),o=t.useContext(T).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,o,e,r))}return o.createElement(S.Provider,{value:p},u&&p.visualElement?o.createElement(u,{visualElement:p.visualElement,...c}):null,r(a,s,function(e,n,r){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):N(r)&&(r.current=t))}),[n])}(f,p.visualElement,l),f,d,p.visualElement))}));return s[X]=a,s}function J({layoutId:e}){const n=t.useContext(q).id;return n&&void 0!==e?n+"-"+e:e}function tt(t){function e(e,n={}){return Q(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const et=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nt(t){return"string"==typeof t&&!t.includes("-")&&!!(et.indexOf(t)>-1||/[A-Z]/.test(t))}const rt={};const ot=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(ot);function at(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!rt[t]||"opacity"===t)}const st=t=>Boolean(t&&t.getVelocity),lt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ut=ot.length;const ct=t=>e=>"string"==typeof e&&e.startsWith(t),dt=ct("--"),pt=ct("var(--"),ft=t=>!!pt(t)&&ht.test(t.split("/*")[0].trim()),ht=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,mt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,gt=(t,e,n)=>n>e?e:n<t?t:n,vt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},yt={...vt,transform:t=>gt(0,1,t)},_t={...vt,default:1},bt=t=>Math.round(1e5*t)/1e5,xt=/(-)?([\d]*\.?[\d])+/g,wt=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Et=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function St(t){return"string"==typeof t}const kt=t=>({test:e=>St(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Ct=kt("deg"),Pt=kt("%"),Tt=kt("px"),Rt=kt("vh"),At=kt("vw"),Ot={...Pt,parse:t=>Pt.parse(t)/100,transform:t=>Pt.transform(100*t)},Dt={...vt,transform:Math.round},Ft={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,size:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,rotate:Ct,rotateX:Ct,rotateY:Ct,rotateZ:Ct,scale:_t,scaleX:_t,scaleY:_t,scaleZ:_t,skew:Ct,skewX:Ct,skewY:Ct,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:yt,originX:Ot,originY:Ot,originZ:Tt,zIndex:Dt,fillOpacity:yt,strokeOpacity:yt,numOctaves:Dt};function jt(t,e,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(dt(t)){i[t]=n;continue}const r=Ft[t],d=mt(n,r);if(it.has(t)){if(l=!0,a[t]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,s[t]=d):o[t]=d}if(e.transform||(l||r?o.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let e=0;e<ut;e++){const n=ot[e];void 0!==t[n]&&(i+=`${lt[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}(t.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;o.transformOrigin=`${t} ${e} ${n}`}}const Mt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vt(t,e,n){for(const r in e)st(e[r])||at(r,n)||(t[r]=e[r])}function Lt(e,n,r){const o={};return Vt(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo((()=>{const t=Mt();return jt(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),o}function Nt(t,e,n){const r={},o=Lt(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const It=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||It.has(t)}let zt=t=>!Bt(t);try{(Ut=require("@emotion/is-prop-valid").default)&&(zt=t=>t.startsWith("on")?!Bt(t):Ut(t))}catch(t){}var Ut;function $t(t,e,n){return"string"==typeof t?t:Tt.transform(e+n*t)}const Wt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zt={offset:"strokeDashoffset",array:"strokeDasharray"};function Gt(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(jt(t,u,c,p),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:m}=t;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(t,e,n){return`${$t(e,t.x,t.width)} ${$t(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?Wt:Zt;t[i.offset]=Tt.transform(-r);const a=Tt.transform(e),s=Tt.transform(n);t[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const Ht=()=>({...Mt(),attrs:{}}),Yt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function qt(e,n,r,o){const i=t.useMemo((()=>{const t=Ht();return Gt(t,n,{enableHardwareAcceleration:!1},Yt(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Vt(t,e.style,e),i.style={...t,...i.style}}return i}function Kt(e=!1){return(n,r,o,{latestValues:i},a)=>{const s=(nt(n)?qt:Nt)(r,i,a,n),l=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(zt(o)||!0===n&&Bt(o)||!e&&!Bt(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),u=n!==t.Fragment?{...l,...s,ref:o}:{},{children:c}=r,d=t.useMemo((()=>st(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}function Xt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const Qt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jt(t,e,n,r){Xt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(Qt.has(n)?n:R(n),e.attrs[n])}function te(t,e){const{style:n}=t,r={};for(const o in n)(st(n[o])||e.style&&st(e.style[o])||at(o,t))&&(r[o]=n[o]);return r}function ee(t,e){const n=te(t,e);for(const r in t)if(st(t[r])||st(e[r])){n[-1!==ot.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function ne(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const re=t=>Array.isArray(t),oe=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),ie=t=>re(t)?t[t.length-1]||0:t;function ae(t){const e=st(t)?t.get():t;return oe(e)?e.toValue():e}const se=e=>(n,r)=>{const o=t.useContext(S),i=t.useContext(k),a=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:le(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(e,n,o,i);return r?a():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(a)};function le(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=ae(i[t]);let{initial:a,animate:s}=t;const l=$(t),u=W(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===s&&(s=e.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!B(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=ne(t,e);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const t in a){let e=a[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const ue=t=>t,{schedule:ce,cancel:de,state:pe,steps:fe}=M("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ue,!0),he={useVisualState:se({scrapeMotionValuesFromProps:ee,createRenderState:Ht,onMount:(t,e,{renderState:n,latestValues:r})=>{ce.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),ce.render((()=>{Gt(n,r,{enableHardwareAcceleration:!1},Yt(e.tagName),t.transformTemplate),Jt(e,n)}))}})},me={useVisualState:se({scrapeMotionValuesFromProps:te,createRenderState:Mt})};function ge(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const ve=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ye(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const _e=t=>e=>ve(e)&&t(e,ye(e));function be(t,e,n,r){return ge(t,e,_e(n),r)}const xe=(t,e)=>n=>e(t(n)),we=(...t)=>t.reduce(xe);function Ee(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Se=Ee("dragHorizontal"),ke=Ee("dragVertical");function Ce(t){let e=!1;if("y"===t)e=ke();else if("x"===t)e=Se();else{const t=Se(),n=ke();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Pe(){const t=Ce(!0);return!t||(t(),!1)}class Te{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Re(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return be(t.current,n,((n,o)=>{if("touch"===n.pointerType||Pe())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&ce.update((()=>i[r](n,o)))}),{passive:!t.getProps()[r]})}const Ae=(t,e)=>!!e&&(t===e||Ae(t,e.parentElement));function Oe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ye(n))}const De=new WeakMap,Fe=new WeakMap,je=t=>{const e=De.get(t.target);e&&e(t)},Me=t=>{t.forEach(je)};function Ve(t,e,n){const r=function({root:t,...e}){const n=t||document;Fe.has(n)||Fe.set(n,{});const r=Fe.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(Me,{root:t,...e})),r[o]}(e);return De.set(t,n),r.observe(t),()=>{De.delete(t),r.unobserve(t)}}const Le={some:0,all:1};const Ne={inView:{Feature:class extends Te{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Le[r]};return Ve(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Te{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=be(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();ce.update((()=>{o||Ae(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=be(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=we(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=ge(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=ge(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Oe("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&ce.update((()=>n(t,e)))}))})),Oe("down",((t,e)=>{this.startPress(t,e)}))})),e=ge(this.node.current,"blur",(()=>{this.isPressing&&Oe("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=we(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ce.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pe()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ce.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=be(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=ge(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=we(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Te{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=we(ge(this.node.current,"focus",(()=>this.onFocus())),ge(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Te{mount(){this.unmount=we(Re(this.node,!0),Re(this.node,!1))}unmount(){}}}};function Ie(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Be(t,e,n){const r=t.getProps();return ne(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}let ze=ue,Ue=ue;"production"!==process.env.NODE_ENV&&(ze=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},Ue=(t,e)=>{if(!t)throw new Error(e)});const $e=t=>1e3*t,We=t=>t/1e3,Ze=!1,Ge=t=>Array.isArray(t)&&"number"==typeof t[0];function He(t){return Boolean(!t||"string"==typeof t&&qe[t]||Ge(t)||Array.isArray(t)&&t.every(He))}const Ye=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ye([0,.65,.55,1]),circOut:Ye([.55,0,1,.45]),backIn:Ye([.31,.01,.66,-.59]),backOut:Ye([.33,1.53,.69,.99])};function Ke(t){if(t)return Ge(t)?Ye(t):Array.isArray(t)?t.map(Ke):qe[t]}const Xe=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Qe=1e-7,Je=12;function tn(t,e,n,r){if(t===e&&n===r)return ue;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=Xe(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>Qe&&++s<Je);return a}(e,0,1,t,n);return t=>0===t||1===t?t:Xe(o(t),e,r)}const en=tn(.42,0,1,1),nn=tn(0,0,.58,1),rn=tn(.42,0,.58,1),on=t=>Array.isArray(t)&&"number"!=typeof t[0],an=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,sn=t=>e=>1-t(1-e),ln=t=>1-Math.sin(Math.acos(t)),un=sn(ln),cn=an(ln),dn=tn(.33,1.53,.69,.99),pn=sn(dn),fn=an(pn),hn={linear:ue,easeIn:en,easeInOut:rn,easeOut:nn,circIn:ln,circInOut:cn,circOut:un,backIn:pn,backInOut:fn,backOut:dn,anticipate:t=>(t*=2)<1?.5*pn(t):.5*(2-Math.pow(2,-10*(t-1)))},mn=t=>{if(Array.isArray(t)){Ue(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return tn(e,n,r,o)}return"string"==typeof t?(Ue(void 0!==hn[t],`Invalid easing type '${t}'`),hn[t]):t},gn=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},vn=(t,e,n)=>t+(e-t)*n;function yn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const _n=(t,e)=>n=>Boolean(St(n)&&Et.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),bn=(t,e,n)=>r=>{if(!St(r))return r;const[o,i,a,s]=r.match(xt);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},xn={...vt,transform:t=>Math.round((t=>gt(0,255,t))(t))},wn={test:_n("rgb","red"),parse:bn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+xn.transform(t)+", "+xn.transform(e)+", "+xn.transform(n)+", "+bt(yt.transform(r))+")"};const En={test:_n("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:wn.transform},Sn={test:_n("hsl","hue"),parse:bn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Pt.transform(bt(e))+", "+Pt.transform(bt(n))+", "+bt(yt.transform(r))+")"},kn=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Cn=[En,wn,Sn];function Pn(t){const e=(n=t,Cn.find((t=>t.test(n))));var n;Ue(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===Sn&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=yn(s,r,t+1/3),i=yn(s,r,t),a=yn(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Tn=(t,e)=>{const n=Pn(t),r=Pn(e),o={...n};return t=>(o.red=kn(n.red,r.red,t),o.green=kn(n.green,r.green,t),o.blue=kn(n.blue,r.blue,t),o.alpha=vn(n.alpha,r.alpha,t),wn.transform(o))},Rn={test:t=>wn.test(t)||En.test(t)||Sn.test(t),parse:t=>wn.test(t)?wn.parse(t):Sn.test(t)?Sn.parse(t):En.parse(t),transform:t=>St(t)?t:t.hasOwnProperty("red")?wn.transform(t):Sn.transform(t)};const An="number",On="color",Dn="var",Fn="var(",jn="${}",Mn=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function Vn(t){const e=t.toString(),n=e.match(Mn)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];Rn.test(e)?(o.color.push(t),i.push(On),r.push(Rn.parse(e))):e.startsWith(Fn)?(o.var.push(t),i.push(Dn),r.push(e)):(o.number.push(t),i.push(An),r.push(parseFloat(e)))}return{values:r,split:e.replace(Mn,jn).split(jn),indexes:o,types:i}}function Ln(t){return Vn(t).values}function Nn(t){const{split:e,types:n}=Vn(t),r=e.length;return t=>{let o="";for(let i=0;i<r;i++)if(o+=e[i],void 0!==t[i]){const e=n[i];o+=e===An?bt(t[i]):e===On?Rn.transform(t[i]):t[i]}return o}}const In=t=>"number"==typeof t?0:t;const Bn={test:function(t){var e,n;return isNaN(t)&&St(t)&&((null===(e=t.match(xt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(wt))||void 0===n?void 0:n.length)||0)>0},parse:Ln,createTransformer:Nn,getAnimatableNone:function(t){const e=Ln(t);return Nn(t)(e.map(In))}};function zn(t,e){return n=>n>0?e:t}function Un(t,e){return n=>vn(t,e,n)}function $n(t){return"number"==typeof t?Un:"string"==typeof t?ft(t)?zn:Rn.test(t)?Tn:Gn:Array.isArray(t)?Wn:"object"==typeof t?Rn.test(t)?Tn:Zn:zn}function Wn(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>$n(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}}function Zn(t,e){const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=$n(t[o])(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const Gn=(t,e)=>{const n=Bn.createTransformer(e),r=Vn(t),o=Vn(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?we(Wn(function(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],s=t.indexes[a][o[a]],l=null!==(n=t.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(ze(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),zn(t,e))};function Hn(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return vn(t,e,n);return $n(t)(t,e)}function Yn(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(Ue(i===e.length,"Both input and output ranges must be the same length"),1===i)return()=>e[0];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const r=[],o=n||Hn,i=t.length-1;for(let n=0;n<i;n++){let i=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||ue:e;i=we(t,i)}r.push(i)}return r}(e,r,o),s=a.length,l=e=>{let n=0;if(s>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=gn(t[n],t[n+1],e);return a[n](r)};return n?e=>l(gt(t[0],t[i-1],e)):l}function qn(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=gn(0,e,r);t.push(vn(n,1,o))}}(e,t.length-1),e}function Kn({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=on(r)?r.map(mn):mn(r),i={done:!1,value:e[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:qn(e),t),s=Yn(a,e,{ease:Array.isArray(o)?o:(l=e,u=o,l.map((()=>u||rn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=s(e),i.done=e>=t,i)}}function Xn(t,e){return e?t*(1e3/e):0}const Qn=5;function Jn(t,e,n){const r=Math.max(e-Qn,0);return Xn(n-t(r),e-r)}const tr=.001,er=.01,nr=10,rr=.05,or=1;function ir({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;ze(t<=$e(nr),"Spring duration must be 10 seconds or less");let a=1-e;a=gt(rr,or,a),t=gt(er,nr,We(t)),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=sr(e,a),l=Math.exp(-o);return tr-i/s*l},i=e=>{const r=e*a*t,i=r*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=sr(Math.pow(e,2),a);return(-o(e)+tr>0?-1:1)*((i-s)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-tr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<ar;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t=$e(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(s,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}const ar=12;function sr(t,e){return t*Math.sqrt(1-e*e)}const lr=["duration","bounce"],ur=["stiffness","damping","mass"];function cr(t,e){return e.some((e=>void 0!==t[e]))}function dr({keyframes:t,restDelta:e,restSpeed:n,...r}){const o=t[0],i=t[t.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!cr(t,ur)&&cr(t,lr)){const n=ir(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-We(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(s*u)),m=i-o,g=We(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),h<1){const t=sr(g,h);y=e=>{const n=Math.exp(-h*g*e);return i-n*((f+h*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===h)y=t=>i-Math.exp(-g*t)*(m+(f+g*m)*t);else{const t=g*Math.sqrt(h*h-1);y=e=>{const n=Math.exp(-h*g*e),r=Math.min(t*e,300);return i-n*((f+h*g*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{const r=y(t);if(p)a.done=t>=c;else{let o=f;0!==t&&(o=h<1?Jn(y,t,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=e;a.done=s&&l}return a.value=a.done?i:r,a}}}function pr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],p={done:!1,value:d},f=t=>void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l;let h=n*e;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=t=>-h*Math.exp(-t/r),y=t=>g+v(t),_=t=>{const e=v(t),n=y(t);p.done=Math.abs(e)<=u,p.value=p.done?g:n};let b,x;const w=t=>{var e;(e=p.value,void 0!==s&&e<s||void 0!==l&&e>l)&&(b=t,x=dr({keyframes:[p.value,f(p.value)],velocity:Jn(y,t,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,_(t),w(t)),void 0!==b&&t>b?x.next(t-b):(!e&&_(t),p)}}}let fr;function hr(){fr=void 0}const mr={now:()=>(void 0===fr&&mr.set(pe.isProcessing||D?pe.timestamp:performance.now()),fr),set:t=>{fr=t,queueMicrotask(hr)}},gr=t=>{const e=({timestamp:e})=>t(e);return{start:()=>ce.update(e,!0),stop:()=>de(e),now:()=>pe.isProcessing?pe.timestamp:mr.now()}},vr=2e4;function yr(t){let e=0;let n=t.next(e);for(;!n.done&&e<vr;)e+=50,n=t.next(e);return e>=vr?1/0:e}const _r={decay:pr,inertia:pr,tween:Kn,keyframes:Kn,spring:dr},br=t=>t/100;function xr({autoplay:t=!0,delay:e=0,driver:n=gr,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let f,h,m=1,g=!1;const v=()=>{h=new Promise((t=>{f=t}))};let y;v();const _=_r[o]||Kn;let b;_!==Kn&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&Ue(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=we(br,Hn(r[0],r[1])),r=[0,100]);const x=_({...p,keyframes:r});let w;"mirror"===s&&(w=_({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let E="idle",S=null,k=null,C=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=yr(x));const{calculatedDuration:P}=x;let T=1/0,R=1/0;null!==P&&(T=P+a,R=T*(i+1)-a);let A=0;const O=t=>{if(null===k)return;m>0&&(k=Math.min(k,t)),m<0&&(k=Math.min(t-R/m,k)),A=null!==S?S:Math.round(t-k)*m;const n=A-e*(m>=0?1:-1),o=m>=0?n<0:n>R;A=Math.max(n,0),"finished"===E&&null===S&&(A=R);let l=A,u=x;if(i){const t=Math.min(A,R)/T;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,i+1);Boolean(e%2)&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(u=w)),l=gt(0,1,n)*T}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===P||(p=m>=0?A>=R:A<=0);const f=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),f&&j(),c},D=()=>{y&&y.stop(),y=void 0},F=()=>{E="idle",D(),f(),v(),k=C=null},j=()=>{E="finished",c&&c(),D(),f()},M=()=>{if(g)return;y||(y=n(O));const t=y.now();l&&l(),null!==S?k=t-S:k&&"finished"!==E||(k=t),"finished"===E&&v(),C=k,S=null,E="running",y.start()};t&&M();const V={then:(t,e)=>h.then(t,e),get time(){return We(A)},set time(t){t=$e(t),A=t,null===S&&y&&0!==m?k=y.now()-t/m:S=t},get duration(){const t=null===x.calculatedDuration?yr(x):x.calculatedDuration;return We(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,V.time=We(A))},get state(){return E},play:M,pause:()=>{E="paused",S=A},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),F())},cancel:()=>{null!==C&&O(C),F()},complete:()=>{E="finished"},sample:t=>(k=0,O(t))};return V}const wr=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Er=new Set(["opacity","clipPath","filter","transform"]);function Sr(t,e,{onUpdate:n,onComplete:r,...o}){if(!(wr()&&Er.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1,l=!1;const u=()=>{a=new Promise((t=>{i=t}))};u();let{keyframes:c,duration:d=300,ease:p,times:f}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!He(e.ease))(e,o)){const t=xr({...o,repeat:0,delay:0});let e={done:!1,value:c[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;f=void 0,c=n,d=r-10,p="linear"}const h=function(t,e,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ke(s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,c,{...o,duration:d,ease:p,times:f}),m=()=>{l=!1,h.cancel()},g=()=>{l=!0,ce.update(m),i(),u()};h.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(c,o)),r&&r(),g())};return{then:(t,e)=>a.then(t,e),attachTimeline:t=>(h.timeline=t,h.onfinish=null,ue),get time(){return We(h.currentTime||0)},set time(t){h.currentTime=$e(t)},get speed(){return h.playbackRate},set speed(t){h.playbackRate=t},get duration(){return We(d)},play:()=>{s||(h.play(),de(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:e}=h;if(e){const n=xr({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||h.finish()},cancel:g}}const kr={type:"spring",stiffness:500,damping:25,restSpeed:10},Cr={type:"keyframes",duration:.8},Pr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tr=(t,{keyframes:e})=>e.length>2?Cr:it.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:kr:Pr,Rr=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Bn.test(e)&&"0"!==e||e.startsWith("url("))),Ar=new Set(["brightness","contrast","saturate","opacity"]);function Or(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(xt)||[];if(!r)return t;const o=n.replace(r,"");let i=Ar.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const Dr=/([a-z-]*)\(.*?\)/g,Fr={...Bn,getAnimatableNone:t=>{const e=t.match(Dr);return e?e.map(Or).join(" "):t}},jr={...Ft,color:Rn,backgroundColor:Rn,outlineColor:Rn,fill:Rn,stroke:Rn,borderColor:Rn,borderTopColor:Rn,borderRightColor:Rn,borderBottomColor:Rn,borderLeftColor:Rn,filter:Fr,WebkitFilter:Fr},Mr=t=>jr[t];function Vr(t,e){let n=Mr(t);return n!==Fr&&(n=Bn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Lr=t=>/^0[^.\s]+$/.test(t);function Nr(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||Lr(t):void 0}function Ir(t,e){return t[e]||t.default||t}const Br=(t,e,n,r={})=>o=>{const i=Ir(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=$e(a);const l=function(t,e,n,r){const o=Rr(e,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:t.get();let s;const l=[];for(let t=0;t<i.length;t++)null===i[t]&&(i[t]=0===t?a:i[t-1]),Nr(i[t])&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(s=i[t]);if(o&&l.length&&s)for(let t=0;t<l.length;t++)i[l[t]]=Vr(e,s);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=Rr(t,u),p=Rr(t,c);ze(d===p,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(f={...f,...Tr(t,f)}),f.duration&&(f.duration=$e(f.duration)),f.repeatDelay&&(f.repeatDelay=$e(f.repeatDelay)),!d||!p||Ze||!1===i.type||O)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const o=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ue,pause:ue,stop:ue,then:t=>(t(),Promise.resolve()),cancel:ue,complete:ue});return e?xr({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}(f);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Sr(e,t,f);if(n)return n}return xr(f)};function zr(t){return Boolean(st(t)&&t.add)}const Ur=t=>/^\-?\d*\.?\d+$/.test(t);function $r(t,e){-1===t.indexOf(e)&&t.push(e)}function Wr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Zr{constructor(){this.subscriptions=[]}add(t){return $r(this.subscriptions,t),()=>Wr(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gr=new Set;function Hr(t,e,n){t||Gr.has(e)||(console.warn(e),n&&console.warn(n),Gr.add(e))}class Yr{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=mr.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=mr.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&Hr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Zr);const n=this.events[t].add(e);return"change"===t?()=>{n(),ce.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=mr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Xn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(t,e){return new Yr(t,e)}const Kr=t=>e=>e.test(t),Xr=[vt,Tt,Pt,Ct,At,Rt,{test:t=>"auto"===t,parse:t=>t}],Qr=t=>Xr.find(Kr(t)),Jr=[...Xr,Rn,Bn];function to(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qr(n))}function eo(t,e){if(!e)return;return(e[t]||e.default||e).from}function no({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function ro(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}function oo(t,e,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...s}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(i=r);const u=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const e in s){const r=t.getValue(e),o=s[e];if(!r||void 0===o||c&&no(c,e))continue;const a={delay:n,elapsed:0,...Ir(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[A];if(n){const t=window.HandoffAppearAnimations(n,e,r,ce);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let d=!a.isHandoff&&!ro(r,o);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(Br(e,r,o,t.shouldReduceMotion&&it.has(e)?{type:!1}:a));const p=r.animation;zr(l)&&(l.add(e),p.then((()=>l.remove(e)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(t,e){const n=Be(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)to(t,e,ie(i[e]))}(t,a)})),u}function io(t,e,n={}){const r=Be(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(oo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,o=1,i){const a=[],s=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(ao).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(io(t,e,{...i,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[t,e]="beforeChildren"===s?[i,a]:[a,i];return t().then((()=>e()))}return Promise.all([i(),a(n.delay)])}function ao(t,e){return t.sortNodePosition(e)}const so=[...z].reverse(),lo=z.length;function uo(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>io(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=io(t,e,n);else{const o="function"==typeof e?Be(t,e,n.custom):e;r=Promise.all(oo(t,o,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function co(t){let e=uo(t);const n={animate:fo(!0),whileInView:fo(),whileHover:fo(),whileTap:fo(),whileDrag:fo(),whileFocus:fo(),exit:fo()};let r=!0;const o=(e,n)=>{const r=Be(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function i(i,a){const s=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},p=1/0;for(let e=0;e<lo;e++){const f=so[e],h=n[f],m=void 0!==s[f]?s[f]:l[f],g=I(m),v=f===a?h.isActive:null;!1===v&&(p=e);let y=m===l[f]&&m!==s[f]&&g;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===v||!m&&!h.prevProp||B(m)||"boolean"==typeof m)continue;let _=po(h.prevProp,m)||f===a&&h.isActive&&!y&&g||e>p&&g,b=!1;const x=Array.isArray(m)?m:[m];let w=x.reduce(o,{});!1===v&&(w={});const{prevResolvedValues:E={}}=h,S={...E,...w},k=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),h.needsAnimating[t]=!0};for(const t in S){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let r=!1;r=re(e)&&re(n)?!Ie(e,n):e!==n,r?void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):h.protectedKeys[t]=!0}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:f,...i}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),u.push({animation:e})}let f=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:i,setActive:function(e,r,o){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=i(o,e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function po(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Ie(e,t)}function fo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ho=0;const mo={animation:{Feature:class extends Te{constructor(t){super(t),t.animationState||(t.animationState=co(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),B(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Te{constructor(){super(...arguments),this.id=ho++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},go=(t,e)=>Math.abs(t-e);class vo{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=bo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=go(t.x,e.x),r=go(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=pe;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=yo(e,this.transformPagePoint),ce.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=bo("pointercancel"===t.type?this.lastMoveEventInfo:yo(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!ve(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=yo(ye(t),this.transformPagePoint),{point:a}=i,{timestamp:s}=pe;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=e;l&&l(t,bo(i,this.history)),this.removeListeners=we(be(this.contextWindow,"pointermove",this.handlePointerMove),be(this.contextWindow,"pointerup",this.handlePointerUp),be(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),de(this.updatePoint)}}function yo(t,e){return e?{point:e(t.point)}:t}function _o(t,e){return{x:t.x-e.x,y:t.y-e.y}}function bo({point:t},e){return{point:t,delta:_o(t,wo(e)),offset:_o(t,xo(e)),velocity:Eo(e,.1)}}function xo(t){return t[0]}function wo(t){return t[t.length-1]}function Eo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=wo(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>$e(e)));)n--;if(!r)return{x:0,y:0};const i=We(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function So(t){return t.max-t.min}function ko(t,e=0,n=.01){return Math.abs(t-e)<=n}function Co(t,e,n,r=.5){t.origin=r,t.originPoint=vn(e.min,e.max,t.origin),t.scale=So(n)/So(e),(ko(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=vn(n.min,n.max,t.origin)-t.originPoint,(ko(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Po(t,e,n,r){Co(t.x,e.x,n.x,r?r.originX:void 0),Co(t.y,e.y,n.y,r?r.originY:void 0)}function To(t,e,n){t.min=n.min+e.min,t.max=t.min+So(e)}function Ro(t,e,n){t.min=e.min-n.min,t.max=t.min+So(e)}function Ao(t,e,n){Ro(t.x,e.x,n.x),Ro(t.y,e.y,n.y)}function Oo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Do(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const Fo=.35;function jo(t,e,n){return{min:Mo(t,e),max:Mo(t,n)}}function Mo(t,e){return"number"==typeof t?t:t[e]||0}const Vo=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Lo=()=>({x:{min:0,max:0},y:{min:0,max:0}});function No(t){return[t("x"),t("y")]}function Io({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Bo(t){return void 0===t||1===t}function zo({scale:t,scaleX:e,scaleY:n}){return!Bo(t)||!Bo(e)||!Bo(n)}function Uo(t){return zo(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function $o(t){return Wo(t.x)||Wo(t.y)}function Wo(t){return t&&"0%"!==t}function Zo(t,e,n){return n+e*(t-n)}function Go(t,e,n,r,o){return void 0!==o&&(t=Zo(t,o,r)),Zo(t,n,r)+e}function Ho(t,e=0,n=1,r,o){t.min=Go(t.min,e,n,r,o),t.max=Go(t.max,e,n,r,o)}function Yo(t,{x:e,y:n}){Ho(t.x,e.translate,e.scale,e.originPoint),Ho(t.y,n.translate,n.scale,n.originPoint)}function qo(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Ko(t,e){t.min=t.min+e,t.max=t.max+e}function Xo(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=vn(t.min,t.max,i);Ho(t,e[n],e[r],a,e.scale)}const Qo=["x","scaleX","originX"],Jo=["y","scaleY","originY"];function ti(t,e){Xo(t.x,e,Qo),Xo(t.y,e,Jo)}function ei(t,e){return Io(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const ni=({current:t})=>t?t.ownerDocument.defaultView:null,ri=new WeakMap;class oi{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lo(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new vo(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ye(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ce(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),No((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Pt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=So(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&ce.update((()=>o(t,e)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>No((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:ni(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ce.update((()=>o(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!ii(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?vn(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?vn(n,t,r.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;e&&N(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:Oo(t.x,n,o),y:Oo(t.y,e,r)}}(r.layoutBox,e),this.elastic=function(t=Fo){return!1===t?t=0:!0===t&&(t=Fo),{x:jo(t,"left","right"),y:jo(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&No((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!N(t))return!1;const n=t.current;Ue(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=ei(t,n),{scroll:o}=e;return o&&(Ko(r.x,o.offset.x),Ko(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Do(t.x,e.x),y:Do(t.y,e.y)}}(r.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=Io(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=No((a=>{if(!ii(a,e,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?t[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Br(t,n,0,e))}stopAnimation(){No((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){No((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){No((e=>{const{drag:n}=this.getProps();if(!ii(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-vn(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!N(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};No((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=So(t),o=So(e);return o>r?n=gn(e.min,e.max-r,t.min):r>o&&(n=gn(t.min,t.max-o,e.min)),gt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),No((e=>{if(!ii(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(vn(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;ri.set(this.visualElement,this);const t=be(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();N(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const o=ge(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(No((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Fo,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function ii(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const ai=t=>(e,n)=>{t&&ce.update((()=>t(e,n)))};const si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function li(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ui={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Tt.test(t))return t;t=parseFloat(t)}return`${li(t,e.target.x)}% ${li(t,e.target.y)}%`}},ci={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=Bn.parse(t);if(o.length>5)return r;const i=Bn.createTransformer(t),a="number"!=typeof o[0]?1:0,s=n.x.scale*e.x,l=n.y.scale*e.y;o[0+a]/=s,o[1+a]/=l;const u=vn(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class di extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=fi,Object.assign(rt,i),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),si.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||ce.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),V.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function pi(e){const[n,r]=function(){const e=t.useContext(k);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect((()=>o(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(q);return t.createElement(di,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(K),isPresent:n,safeToRemove:r})}const fi={borderRadius:{...ui,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ui,borderTopRightRadius:ui,borderBottomLeftRadius:ui,borderBottomRightRadius:ui,boxShadow:ci},hi=["TopLeft","TopRight","BottomLeft","BottomRight"],mi=hi.length,gi=t=>"string"==typeof t?parseFloat(t):t,vi=t=>"number"==typeof t||Tt.test(t);function yi(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const _i=xi(0,.5,un),bi=xi(.5,.95,ue);function xi(t,e,n){return r=>r<t?0:r>e?1:n(gn(t,e,r))}function wi(t,e){t.min=e.min,t.max=e.max}function Ei(t,e){wi(t.x,e.x),wi(t.y,e.y)}function Si(t,e,n,r,o){return t=Zo(t-=e,1/n,r),void 0!==o&&(t=Zo(t,1/o,r)),t}function ki(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){Pt.test(e)&&(e=parseFloat(e),e=vn(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=vn(i.min,i.max,r);t===i&&(s-=e),t.min=Si(t.min,e,n,s,o),t.max=Si(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const Ci=["x","scaleX","originX"],Pi=["y","scaleY","originY"];function Ti(t,e,n,r){ki(t.x,e,Ci,n?n.x:void 0,r?r.x:void 0),ki(t.y,e,Pi,n?n.y:void 0,r?r.y:void 0)}function Ri(t){return 0===t.translate&&1===t.scale}function Ai(t){return Ri(t.x)&&Ri(t.y)}function Oi(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Di(t){return So(t.x)/So(t.y)}class Fi{constructor(){this.members=[]}add(t){$r(this.members,t),t.scheduleRender()}remove(t){if(Wr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ji(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=t.x.scale*e.x,s=t.y.scale*e.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Mi=(t,e)=>t.depth-e.depth;class Vi{constructor(){this.children=[],this.isDirty=!1}add(t){$r(this.children,t),this.isDirty=!0}remove(t){Wr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Mi),this.isDirty=!1,this.children.forEach(t)}}const Li=["","X","Y","Z"],Ni={visibility:"hidden"};let Ii=0;const Bi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function zi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Ii++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,Bi.totalNodes=Bi.resolvedTargetDeltas=Bi.recalculatedProjection=0,this.nodes.forEach(Wi),this.nodes.forEach(Xi),this.nodes.forEach(Qi),this.nodes.forEach(Zi),t=Bi,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vi)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Zr),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=mr.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(de(r),t(i-e))};return ce.read(r,!0),()=>de(r)}(r,250),si.hasAnimatedSinceResize&&(si.hasAnimatedSinceResize=!1,this.nodes.forEach(Ki))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||oa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Oi(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Ir(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Ki(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,de(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ji),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hi);this.isUpdating||this.nodes.forEach(Yi),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(qi),this.nodes.forEach(Ui),this.nodes.forEach($i),this.clearAllSnapshots();const t=mr.now();pe.delta=gt(0,1e3/60,t-pe.timestamp),pe.timestamp=t,pe.isProcessing=!0,fe.update.process(pe),fe.preRender.process(pe),fe.render.process(pe),pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,V.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Gi),this.sharedNodes.forEach(ta)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ce.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Lo(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!Ai(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||Uo(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),sa((r=n).x),sa(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return Lo();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Ko(e.x,n.offset.x),Ko(e.y,n.offset.y)),e}removeElementScroll(t){const e=Lo();Ei(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Ei(e,t);const{scroll:n}=this.root;n&&(Ko(e.x,-n.offset.x),Ko(e.y,-n.offset.y))}Ko(e.x,o.offset.x),Ko(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=Lo();Ei(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ti(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Uo(r.latestValues)&&ti(n,r.latestValues)}return Uo(this.latestValues)&&ti(n,this.latestValues),n}removeTransform(t){const e=Lo();Ei(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!Uo(n.latestValues))continue;zo(n.latestValues)&&n.updateSnapshot();const r=Lo();Ei(r,n.measurePageBox()),Ti(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Uo(this.latestValues)&&Ti(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==pe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=pe.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lo(),this.relativeTargetOrigin=Lo(),Ao(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Lo(),this.targetWithTransforms=Lo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,To(a.x,s.x,l.x),To(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ei(this.target,this.layout.layoutBox),Yo(this.target,this.targetDelta)):Ei(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lo(),this.relativeTargetOrigin=Lo(),Ao(this.relativeTargetOrigin,this.target,t.target),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Bi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!zo(this.parent.latestValues)&&!$o(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===pe.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Ei(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,r=!1){const o=n.length;if(!o)return;let i,a;e.x=e.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ti(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,Yo(t,a)),r&&Uo(i.latestValues)&&ti(t,i.latestValues))}e.x=qo(e.x),e.y=qo(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=Lo());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Vo(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Vo(),this.projectionDeltaWithTransform=Vo());const u=this.projectionTransform;Po(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ji(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Bi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Vo();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=Lo(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(ra));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,p,f,h,m,g;ea(i.x,t.x,n),ea(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,h=this.relativeTargetOrigin,m=a,g=n,na(f.x,h.x,m.x,g),na(f.y,h.y,m.y,g),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d=Lo()),Ei(d,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=vn(0,void 0!==n.opacity?n.opacity:1,_i(r)),t.opacityExit=vn(void 0!==e.opacity?e.opacity:1,0,bi(r))):i&&(t.opacity=vn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<mi;o++){const i=`border${hi[o]}Radius`;let a=yi(e,i),s=yi(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||vi(a)===vi(s)?(t[i]=Math.max(vn(gi(a),gi(s),r),0),(Pt.test(s)||Pt.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=vn(e.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(de(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ce.update((()=>{si.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=st(t)?t:qr(t);return r.start(Br("",r,e,n)),r.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&la(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Lo();const e=So(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=So(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Ei(e,n),ti(e,o),Po(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Fi);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let e=0;e<Li.length;e++){const o="rotate"+Li[e];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ni;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ae(null==t?void 0:t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ae(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Uo(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ji(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in rt){if(void 0===a[t])continue;const{correct:e,applyTo:n}=rt[t],o="none"===r.transform?a[t]:e(a[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=o}else r[t]=o}return this.options.layoutId&&(r.pointerEvents=i===this?ae(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Hi),this.root.sharedNodes.clear()}}}function Ui(t){t.updateLayout()}function $i(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?No((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=So(r);r.min=e[t].min,r.max=r.min+o})):la(o,n.layoutBox,e)&&No((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=So(e[r]);o.max=o.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)}));const a=Vo();Po(a,e,n.layoutBox);const s=Vo();i?Po(s,t.applyTransform(r,!0),n.measuredBox):Po(s,e,n.layoutBox);const l=!Ai(a);let u=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=Lo();Ao(a,n.layoutBox,o.layoutBox);const s=Lo();Ao(s,e,i.layoutBox),Oi(a,s)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Wi(t){Bi.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Zi(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gi(t){t.clearSnapshot()}function Hi(t){t.clearMeasurements()}function Yi(t){t.isLayoutDirty=!1}function qi(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ki(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Xi(t){t.resolveTargetDelta()}function Qi(t){t.calcProjection()}function Ji(t){t.resetRotation()}function ta(t){t.removeLeadSnapshot()}function ea(t,e,n){t.translate=vn(e.translate,0,n),t.scale=vn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function na(t,e,n,r){t.min=vn(e.min,n.min,r),t.max=vn(e.max,n.max,r)}function ra(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const oa={duration:.45,ease:[.4,0,.1,1]},ia=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),aa=ia("applewebkit/")&&!ia("chrome/")?Math.round:ue;function sa(t){t.min=aa(t.min),t.max=aa(t.max)}function la(t,e,n){return"position"===t||"preserve-aspect"===t&&!ko(Di(e),Di(n),.2)}const ua=zi({attachResizeListener:(t,e)=>ge(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ca={current:void 0},da=zi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ca.current){const t=new ua({});t.mount(window),t.setOptions({layoutScroll:!0}),ca.current=t}return ca.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),pa={pan:{Feature:class extends Te{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new vo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ni(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ai(t),onStart:ai(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&ce.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=be(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Te{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new oi(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:da,MeasureLayout:pi}},fa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const ha=4;function ma(t,e,n=1){Ue(n<=ha,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=fa.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const t=i.trim();return Ur(t)?parseFloat(t):t}return ft(o)?ma(o,e,n+1):o}const ga=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),va=t=>ga.has(t),ya=t=>t===vt||t===Tt,_a=(t,e)=>parseFloat(t.split(", ")[e]),ba=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return _a(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?_a(e[1],t):0}},xa=new Set(["x","y","z"]),wa=ot.filter((t=>!xa.has(t)));const Ea={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ba(4,13),y:ba(5,14)};Ea.translateX=Ea.x,Ea.translateY=Ea.y;const Sa=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(va);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],c=Qr(u);const d=e[o];let p;if(re(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=Qr(u);for(let n=e;n<t&&null!==d[n];n++)p?Ue(Qr(d[n])===p,"All keyframes must be of the same type"):(p=Qr(d[n]),Ue(p===c||ya(c)&&ya(p),"Keyframes must be of the same dimension as the current value"))}else p=Qr(d);if(c!==p)if(ya(c)&&ya(p)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===Tt&&(e[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):e[o]=c.transform(d):(a||(i=function(t){const e=[];return wa.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{s[t]=Ea[t](r,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(s[n]),t[n]=Ea[n](l,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),C&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function ka(t,e,n,r){return(t=>Object.keys(t).some(va))(e)?Sa(t,e,n,r):{target:e,transitionEnd:r}}const Ca=(t,e,n,r)=>{const o=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!ft(e))return;const n=ma(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!ft(o))continue;const i=ma(o,r);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return ka(t,e=o.target,n,r=o.transitionEnd)},Pa={current:null},Ta={current:!1};const Ra=new WeakMap,Aa=Object.keys(Y),Oa=Aa.length,Da=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Fa=U.length;class ja{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ce.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=$(e),this.isVariantNode=W(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==a[t]&&st(e)&&(e.set(a[t],!1),zr(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,Ra.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Ta.current||function(){if(Ta.current=!0,C)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Pa.current=t.matches;t.addListener(e),e()}else Pa.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Pa.current),"production"!==process.env.NODE_ENV&&Hr(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ra.delete(this.current),this.projection&&this.projection.unmount(),de(this.notifyUpdate),de(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=it.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&ce.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,o){let i,a;if("production"!==process.env.NODE_ENV&&r&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ze(!1,t):Ue(!1,t)}for(let t=0;t<Oa;t++){const n=Aa[t],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Y[n];s&&(i=s),r(e)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&N(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lo()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Da.length;e++){const n=Da[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],a=n[o];if(st(i))t.addValue(o,i),zr(r)&&r.add(o),"development"===process.env.NODE_ENV&&Hr("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(st(a))t.addValue(o,qr(i,{owner:t})),zr(r)&&r.remove(o);else if(a!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,qr(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Fa;t++){const n=U[t],r=this.props[n];(I(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=qr(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=ne(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||st(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Zr),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Ma extends ja{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},r){const o=function(t,e,n){const r={};for(const o in t){const t=eo(o,e);if(void 0!==t)r[o]=t;else{const t=n.getValue(o);t&&(r[o]=t.get())}}return r}(n,t||{},this);if(r){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),a=i.length;var s;if(a)for(let l=0;l<a;l++){const a=i[l],u=e[a];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:t.readValue(a))&&void 0!==o?o:e[a]),null!=c&&("string"==typeof c&&(Ur(c)||Lr(c))?c=parseFloat(c):(s=c,!Jr.find(Kr(s))&&Bn.test(u)&&(c=Vr(a,u))),t.addValue(a,qr(c,{owner:t})),void 0===n[a]&&(n[a]=c),null!==c&&t.setBaseTarget(a,c))}}(this,n,o);const t=Ca(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Va extends Ma{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(it.has(e)){const t=Mr(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(dt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ei(t,e)}build(t,e,n,r){jt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return te(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;st(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){Xt(t,e,n,r)}}class La extends Ma{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(it.has(e)){const t=Mr(e);return t&&t.default||0}return e=Qt.has(e)?e:R(e),t.getAttribute(e)}measureInstanceViewportBox(){return Lo()}scrapeMotionValuesFromProps(t,e){return ee(t,e)}build(t,e,n,r){Gt(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){Jt(t,e,0,r)}mount(t){this.isSVGTag=Yt(t.tagName),super.mount(t)}}const Na=(t,e)=>nt(t)?new La(e,{enableHardwareAcceleration:!1}):new Va(e,{enableHardwareAcceleration:!0}),Ia={...mo,...Ne,...pa,...{layout:{ProjectionNode:da,MeasureLayout:pi}}},Ba=tt(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...nt(t)?he:me,preloadedFeatures:n,useRender:Kt(e),createVisualElement:r,Component:t}}(t,e,Ia,Na)));var za={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},Ua="form-module_form__FGOhg";u(".form-module_form__FGOhg {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \n}\n\n.form-module_form__FGOhg > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__FGOhg > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__FGOhg > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n\n .form-module_form__FGOhg {\n padding: 0;\n }\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var $a="numberField-module_container__yjOIU",Wa="numberField-module_fake-input__cqOX-",Za="numberField-module_spinbutton-container__HkUKt",Ga="numberField-module_spinbutton-container--error__dO4fj",Ha="numberField-module_control__yE0Ro";u(".numberField-module_container__yjOIU {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__cqOX- {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__HkUKt {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__dO4fj {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__e79fV {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__UtA4B {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__DriKa {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__yE0Ro {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 44px;\n height: 44px;\n border: 2px solid black;\n}\n\n");var Ya=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],qa=function(e){var n=e.name,r=e.label,o=e.min,i=void 0===o?0:o,a=e.max,s=void 0===a?100:a,u=e.width,c=void 0===u?3:u,d=e.error,f=e.helper,h=e.field,m=h.value,g=h.onChange,v=h.onBlur,y=function(t){m<=i||g(m-t)},_=function(t){m>=s||g(m+t)};return t.createElement(x,{id:"".concat(n,"-label"),label:r,error:null==d?void 0:d.message,helper:null==f?void 0:f.message},t.createElement("div",{className:$a},t.createElement("div",{className:l(Za,d&&Ga)},t.createElement("button",{className:Ha,type:"button",tabIndex:-1,onClick:function(){return y(1)},"aria-label":"decrease"},"-"),t.createElement(p,{as:"div",className:Wa,role:"spinbutton",tabIndex:0,onKeyDown:function(t){Ya.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&_(1),"ArrowDown"===t.key&&y(1)}(t),function(t){"PageUp"===t.key&&_(5),"PageDown"===t.key&&y(5)}(t),function(t){"Home"===t.key&&g(i),"End"===t.key&&g(s)}(t))},onBlur:v,"aria-valuenow":m,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==d?void 0:d.message),"aria-errormessage":d?"".concat(n,"-error"):void 0,style:{width:"".concat(c,"ch")}},m),t.createElement("button",{className:Ha,type:"button",tabIndex:-1,onClick:function(){return _(1)},"aria-label":"increase"},"+"))))};function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ka.apply(this,arguments)}function Xa(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}function Qa(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function Ja(...e){return t.useCallback(Qa(...e),e)}function ts(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[e][a])||i,u=t.useMemo((()=>s),Object.values(s));return t.createElement(l.Provider,{value:u},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][a])||i,u=t.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},es(o,...n)]}function es(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const ns=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(is);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(rs,Ka({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(rs,Ka({},o,{ref:n}),r)}));ns.displayName="Slot";const rs=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...as(o,r.props),ref:n?Qa(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));rs.displayName="SlotClone";const os=({children:e})=>t.createElement(t.Fragment,null,e);function is(e){return t.isValidElement(e)&&e.type===os}function as(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...t)=>{i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}const ss=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?ns:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,Ka({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});const ls=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},us=o["useId".toString()]||(()=>{});let cs=0;function ds(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...t)=>{var e;return null===(e=n.current)||void 0===e?void 0:e.call(n,...t)}),[])}function ps({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=ds(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,s=a?e:o,l=ds(r);return[s,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}const fs=t.createContext(void 0);function hs(e){const n=t.useContext(fs);return e||n||"ltr"}const ms="rovingFocusGroup.onEntryFocus",gs={bubbles:!1,cancelable:!0},vs="RovingFocusGroup",[ys,_s,bs]=function(e){const n=e+"CollectionProvider",[r,o]=ts(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=Ja(n,a(s,r).collectionRef);return t.createElement(ns,{ref:i},o)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,s=t.useRef(null),c=Ja(n,s),d=a(l,r);return t.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),t.createElement(ns,{[u]:"",ref:c},o)}))},function(n){const r=a(e+"CollectionConsumer",n);return t.useCallback((()=>{const t=r.collectionRef.current;if(!t)return[];const e=Array.from(t.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort(((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(vs),[xs,ws]=ts(vs,[bs]),[Es,Ss]=xs(vs),ks=t.forwardRef(((e,n)=>t.createElement(ys.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(ys.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(Cs,Ka({},e,{ref:n})))))),Cs=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,p=t.useRef(null),f=Ja(n,p),h=hs(a),[m=null,g]=ps({prop:s,defaultProp:l,onChange:u}),[v,y]=t.useState(!1),_=ds(c),b=_s(r),x=t.useRef(!1),[w,E]=t.useState(0);return t.useEffect((()=>{const t=p.current;if(t)return t.addEventListener(ms,_),()=>t.removeEventListener(ms,_)}),[_]),t.createElement(Es,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:m,onItemFocus:t.useCallback((t=>g(t)),[g]),onItemShiftTab:t.useCallback((()=>y(!0)),[]),onFocusableItemAdd:t.useCallback((()=>E((t=>t+1))),[]),onFocusableItemRemove:t.useCallback((()=>E((t=>t-1))),[])},t.createElement(ss.div,Ka({tabIndex:v||0===w?-1:0,"data-orientation":o},d,{ref:f,style:{outline:"none",...e.style},onMouseDown:Xa(e.onMouseDown,(()=>{x.current=!0})),onFocus:Xa(e.onFocus,(t=>{const e=!x.current;if(t.target===t.currentTarget&&e&&!v){const e=new CustomEvent(ms,gs);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=b().filter((t=>t.focusable));Rs([t.find((t=>t.active)),t.find((t=>t.id===m)),...t].filter(Boolean).map((t=>t.ref.current)))}}x.current=!1})),onBlur:Xa(e.onBlur,(()=>y(!1)))})))})),Ps=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...l}=e,u=function(t){const[e,n]=o.useState(us());return ls((()=>{t||n((t=>null!=t?t:String(cs++)))}),[t]),t||(e?`radix-${e}`:"")}(),c=s||u,d=Ss("RovingFocusGroupItem",r),p=d.currentTabStopId===c,f=_s(r),{onFocusableItemAdd:h,onFocusableItemRemove:m}=d;return t.useEffect((()=>{if(i)return h(),()=>m()}),[i,h,m]),t.createElement(ys.ItemSlot,{scope:r,id:c,focusable:i,active:a},t.createElement(ss.span,Ka({tabIndex:p?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:Xa(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:Xa(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Xa(e.onKeyDown,(t=>{if("Tab"===t.key&&t.shiftKey)return void d.onItemShiftTab();if(t.target!==t.currentTarget)return;const e=function(t,e,n){const r=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ts[r]}(t,d.orientation,d.dir);if(void 0!==e){t.preventDefault();let o=f().filter((t=>t.focusable)).map((t=>t.ref.current));if("last"===e)o.reverse();else if("prev"===e||"next"===e){"prev"===e&&o.reverse();const i=o.indexOf(t.currentTarget);o=d.loop?(r=i+1,(n=o).map(((t,e)=>n[(r+e)%n.length]))):o.slice(i+1)}setTimeout((()=>Rs(o)))}var n,r}))})))})),Ts={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rs(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const As=ks,Os=Ps;const Ds=e=>{const{present:r,children:o}=e,i=function(e){const[r,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),s=t.useRef("none"),l=e?"mounted":"unmounted",[u,c]=function(e,n){return t.useReducer(((t,e)=>{const r=n[t][e];return null!=r?r:t}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const t=Fs(i.current);s.current="mounted"===u?t:"none"}),[u]),ls((()=>{const t=i.current,n=a.current;if(n!==e){const r=s.current,o=Fs(t);if(e)c("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),ls((()=>{if(r){const t=t=>{const e=Fs(i.current).includes(t.animationName);t.target===r&&e&&n.flushSync((()=>c("ANIMATION_END")))},e=t=>{t.target===r&&(s.current=Fs(i.current))};return r.addEventListener("animationstart",e),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{r.removeEventListener("animationstart",e),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback((t=>{t&&(i.current=getComputedStyle(t)),o(t)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),s=Ja(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:s}):null};function Fs(t){return(null==t?void 0:t.animationName)||"none"}Ds.displayName="Presence";const js="Radio",[Ms,Vs]=ts(js),[Ls,Ns]=Ms(js),Is=t.forwardRef(((e,n)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,p]=t.useState(null),f=Ja(n,(t=>p(t))),h=t.useRef(!1),m=!d||Boolean(d.closest("form"));return t.createElement(Ls,{scope:r,checked:i,disabled:s},t.createElement(ss.button,Ka({type:"button",role:"radio","aria-checked":i,"data-state":Us(i),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onClick:Xa(e.onClick,(t=>{i||null==u||u(),m&&(h.current=t.isPropagationStopped(),h.current||t.stopPropagation())}))})),m&&t.createElement(zs,{control:d,bubbles:!h.current,name:o,value:l,checked:i,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),Bs=t.forwardRef(((e,n)=>{const{__scopeRadio:r,forceMount:o,...i}=e,a=Ns("RadioIndicator",r);return t.createElement(Ds,{present:o||a.checked},t.createElement(ss.span,Ka({"data-state":Us(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:n})))})),zs=e=>{const{control:n,checked:r,bubbles:o=!0,...i}=e,a=t.useRef(null),s=function(e){const n=t.useRef({value:e,previous:e});return t.useMemo((()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous)),[e])}(r),l=function(e){const[n,r]=t.useState(void 0);return ls((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const t=n.borderBoxSize,e=Array.isArray(t)?t[0]:t;o=e.inlineSize,i=e.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}(n);return t.useEffect((()=>{const t=a.current,e=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(e,"checked").set;if(s!==r&&n){const e=new Event("click",{bubbles:o});n.call(t,r),t.dispatchEvent(e)}}),[s,r,o]),t.createElement("input",Ka({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Us(t){return t?"checked":"unchecked"}const $s=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ws="RadioGroup",[Zs,Gs]=ts(Ws,[ws,Vs]),Hs=ws(),Ys=Vs(),[qs,Ks]=Zs(Ws),Xs=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:i,value:a,required:s=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:p,...f}=e,h=Hs(r),m=hs(c),[g,v]=ps({prop:a,defaultProp:i,onChange:p});return t.createElement(qs,{scope:r,name:o,required:s,disabled:l,value:g,onValueChange:v},t.createElement(As,Ka({asChild:!0},h,{orientation:u,dir:m,loop:d}),t.createElement(ss.div,Ka({role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":l?"":void 0,dir:m},f,{ref:n}))))})),Qs=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,disabled:o,...i}=e,a=Ks("RadioGroupItem",r),s=a.disabled||o,l=Hs(r),u=Ys(r),c=t.useRef(null),d=Ja(n,c),p=a.value===i.value,f=t.useRef(!1);return t.useEffect((()=>{const t=t=>{$s.includes(t.key)&&(f.current=!0)},e=()=>f.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),t.createElement(Os,Ka({asChild:!0},l,{focusable:!s,active:p}),t.createElement(Is,Ka({disabled:s,required:a.required,checked:p},u,i,{name:a.name,ref:d,onCheck:()=>a.onValueChange(i.value),onKeyDown:Xa((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:Xa(i.onFocus,(()=>{var t;f.current&&(null===(t=c.current)||void 0===t||t.click())}))})))})),Js=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,...o}=e,i=Ys(r);return t.createElement(Bs,Ka({},i,o,{ref:n}))}));var tl="radioGroup-module_legend__WklzX",el="radioGroup-module_radio-root__RtJ2M",nl="radioGroup-module_radio-root--error__9DrYG",rl="radioGroup-module_radio-root-label--error__KdFST",ol="radioGroup-module_radio-item__BKOlM",il="radioGroup-module_radio-indicator__-hEEu";u('\n\n.radioGroup-module_legend__WklzX {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__RtJ2M {\n display: flex;\n gap: var(--product-spacing-2);\n}\n\n.radioGroup-module_radio-root--horizontal__S9DcQ {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__dBLhN {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__9DrYG {\n border: var( --product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__KdFST {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__BKOlM {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n\n\n\n/* ! The Circle */\n.radioGroup-module_radio-item__BKOlM::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4));\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__-hEEu::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__BKOlM:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__BKOlM:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__BKOlM {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-2);\n }\n\n\n .radioGroup-module_radio-item__BKOlM::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__-hEEu::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n');var al={Root:function(n){var r=n.children,o=n.className,s=n.name,u=n.label,c=a(n,["children","className","name","label"]),d=e.useFormContext(),f=d.control,h=d.formState.errors,m=h&&h[s];return t.createElement(e.Controller,{name:s,control:f,render:function(e){var n=e.field,s=n.onChange,d=a(n,["onChange"]);return t.createElement("fieldset",null,t.createElement(p,{className:tl,as:"legend",variant:"form-input-normal"},u),t.createElement(Xs,i({className:l(o,el,m&&nl),onValueChange:s},c,d,{"aria-required":void 0}),r),m&&t.createElement("p",{className:rl},null==m?void 0:m.message))}})},Item:function(e){var n=e.children,r=e.className,o=a(e,["children","className"]);return t.createElement(Qs,i({className:l(r,ol)},o),t.createElement(p,{variant:"form-input-normal"},n))},Indicator:function(e){var n=e.className,r=a(e,["className"]);return t.createElement(Js,i({className:l(n,il)},r))}},sl="range-module_container__SwhGo",ll="range-module_range-container__iGnY1",ul="range-module_slider__pZtfP",cl="range-module_notches__Zc4Og",dl="range-module_notch__qXs7B",pl="range-module_progress__fElkU",fl="range-module_value-container__8Zt0r";u(".range-module_container__SwhGo {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var( --product-radius-2);\n}\n\n.range-module_container__SwhGo > div {\n width: 70%;\n}\n\n.range-module_container__SwhGo > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__iGnY1 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__pZtfP {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n accent-color: var(--product-light-blue-80);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__pZtfP::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n\n\n.range-module_slider__pZtfP::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__Zc4Og {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__fElkU {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__8Zt0r {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n");var hl=function(e){var n=e.id,r=e.min,o=void 0===r?0:r,a=e.max,s=void 0===a?1e3:a,l=e.step,u=void 0===l?100:l,c=e.name,d=e.label,f=e.helper,h=e.error,m=e.field,g=m.value,v=(g-o)/(s-o)*100,y=function(t,e,n){return(e-t)/n};return t.createElement(x,{id:n,label:d,error:null==h?void 0:h.message,helper:null==f?void 0:f.message},t.createElement("div",{className:sl},t.createElement("div",{className:ll},t.createElement("div",{className:cl},Array.from({length:y(o,s,u)}).map((function(e,n){return t.createElement("div",{key:n,className:dl,style:{left:"".concat(n/y(o,s,u)*100,"%")}})}))),t.createElement("div",{className:pl,style:{width:"calc(".concat(v||0,"%)")}}),t.createElement("input",i({id:"".concat(c,"-range"),className:ul,type:"range",min:o,max:s,step:u},m))),t.createElement(p,{className:fl,variant:"content-title-semi-bold"},"£",g)))},ml="select-module_container__Lydyj",gl="select-module_input__Hcrhq",vl="select-module_icon__SCm5W",yl="select-module_input--error__4pQ0M",_l="select-module_input--disabled__zteOi",bl="select-module_error-message__89d1g",xl="select-module_helper-message__VwS-B";u("\n\n.select-module_container__Lydyj {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__Hcrhq {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding: var(--product-spacing-6);\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__Hcrhq:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__SCm5W {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__Hcrhq:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__Hcrhq:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__4pQ0M {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__zteOi {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_error-message__89d1g {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__VwS-B {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .select-module_input__Hcrhq {\n padding: var(--product-spacing-6);\n }\n}\n");var wl=function(e){var n=e.error,r=e.helper,o=e.label,a=e.items,s=e.placeholder,u=e.disabled,c=e.field;return t.createElement("div",{className:ml},t.createElement("label",{className:"sr-only"},o),t.createElement("svg",{className:vl,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),t.createElement("select",i({className:l(gl,(null==n?void 0:n.message)&&yl,u&&_l)},c),s&&t.createElement("option",{value:"placeholder",disabled:!0},s),a&&a.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.title)}))),(null==r?void 0:r.message)&&t.createElement(p,{className:xl,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&t.createElement(p,{className:bl,as:"p",variant:"form-helper"},n.message))};function El(){var e=t.useState({width:600,height:void 0}),n=e[0],r=e[1];return t.useEffect((function(){function t(){r({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),n}var Sl={container:"textField-module_container__dwME5",label:"textField-module_label__Pb0Yj",input:"textField-module_input__R8QTX","input--prefix":"textField-module_input--prefix__Fhag6",prefix:"textField-module_prefix__qF3td",inputDescription:"textField-module_inputDescription__nc-XC","container--error":"textField-module_container--error__CJ8JR",error:"textField-module_error__OWiII",helper:"textField-module_helper__arACk",rightContent:"textField-module_rightContent__6xW-l",leftContent:"textField-module_leftContent__XrivE","input--focus":"textField-module_input--focus__ngCQF","input--hover":"textField-module_input--hover__wo5JR"};u(".textField-module_container__dwME5 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__Pb0Yj {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n}\n\n.textField-module_input__R8QTX {\n all: unset;\n background: var(--product-greyscale-0);\n border: var(--product-border-width-1) solid transparent;\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n padding-left: 2rem;\n}\n\n.textField-module_prefix__qF3td {\n position: absolute;\n left: var(--product-spacing-5);\n top: 63%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__nc-XC {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-bottom: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__CJ8JR > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__CJ8JR > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__OWiII {\n color: var(--product-error);\n}\n\n.textField-module_helper__arACk {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__6xW-l {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__XrivE {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n\n.textField-module_input__R8QTX:focus {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input__R8QTX:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__wo5JR {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__R8QTX:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__R8QTX:disabled:hover {\n outline: none;\n}\n\n\n\n @media (min-width: 768px) {\n .textField-module_input__R8QTX {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n font-size: 1.25rem;\n }\n\n .textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__qF3td {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 53%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");var kl,Cl=function(e){var n=e.id,r=e.label,o=e.helper,s=e.error,u=e.type,c=e.prefix,d=e.suffix,p=e.disabled,f=e.className,h=e.rightContent,m=e.leftContent,g=e.field,v=g.value,y=g.onBlur,_=a(g,["value","onBlur"]),b=El().width,x=t.useState(!1),w=x[0],E=x[1],S=""!==v||w,k=b>768,C=o||s,P={focused:{fontSize:k?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:k?"1.25rem":"1.125rem",top:"50%"}};return t.createElement("div",null,t.createElement("div",{className:l(Sl.container,s&&Sl["container--error"])},t.createElement(Ba.label,{className:Sl.label,initial:"notFocused",variants:P,htmlFor:"input-".concat(n),animate:w||""!==v?"focused":"notFocused"},r," ",d&&t.createElement("span",null,d)),t.createElement("input",i({id:"input-".concat(n),className:l(f,Sl["input--".concat(f)],Sl.input,c&&Sl["input--prefix"]),type:u,"aria-describedby":"error-".concat(n),disabled:p,onFocus:function(){return E(!0)},onBlur:function(){y(),E(!1)},value:v},_)),c&&S&&t.createElement("span",{className:Sl.prefix},c),t.createElement("div",null,h&&t.createElement("div",{className:Sl.rightContent},h),m&&t.createElement("div",{className:Sl.leftContent},m))),C&&t.createElement("div",{className:Sl.inputDescription},o&&t.createElement("span",{id:"feedback-".concat(n),className:Sl.helper},o.message),s&&t.createElement("span",{id:"error-".concat(n),className:Sl.error},s.message)))},Pl={exports:{}},Tl={},Rl={exports:{}},Al={};var Ol,Dl,Fl,jl={exports:{}};
|
|
1
|
+
"use strict";var e=require("react"),t=require("react-hook-form"),n=require("react-dom");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=r(e),i=r(n),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=l(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function u(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=l(e))&&(r&&(r+=" "),r+=t);return r}function c(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;var d={button:"button-module_button__dZH55",action:"button-module_action__RTWZU",focus:"button-module_focus__RNsoR",primary:"button-module_primary__CZzyo",hover:"button-module_hover__Zz9hl",active:"button-module_active__rYKZm",secondary:"button-module_secondary__tM5K3",tertiary:"button-module_tertiary__0bKi6",ghost:"button-module_ghost__xQWCE",danger:"button-module_danger__pxWDX",standard:"button-module_standard__GaQlx",text:"button-module_text__0yzwq","only-icon":"button-module_only-icon__8lEn4"};c(".button-module_button__dZH55 {\n all: unset;\n display: flex;\n padding: var(--product-spacing-3) var(--product-spacing-7);\n border-radius: var(--product-radius-full);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_button__dZH55 > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_action__RTWZU {\n all: unset;\n display: flex;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-2_5) var(--product-spacing-6);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_action__RTWZU > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_button__dZH55:focus, .button-module_button__dZH55.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n.button-module_action__RTWZU:focus, .button-module_action__RTWZU.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n/* ! Button */\n\n/* Primary */\n\n.button-module_primary__CZzyo {\n color: var(--product-greyscale-0);\n background: var(--product-love-pink-100)\n}\n\n.button-module_primary__CZzyo:hover, .button-module_primary__CZzyo.button-module_hover__Zz9hl {\n background: var(--product-love-pink-80)\n}\n\n.button-module_primary__CZzyo:active, .button-module_primary__CZzyo.button-module_active__rYKZm {\n background: var(--product-love-pink-120)\n}\n\n/* Secondary */\n\n.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-0);\n background: var(--product-greyscale-100);\n}\n\n.button-module_secondary__tM5K3:hover, .button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_secondary__tM5K3:active, .button-module_secondary__tM5K3.button-module_active__rYKZm {\n background: var(--product-greyscale-60);\n}\n\n/* Tertiary */\n\n.button-module_tertiary__0bKi6 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_tertiary__0bKi6:hover, .button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-light-blue-20);\n}\n\n.button-module_tertiary__0bKi6:active, .button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-light-blue-40);\n}\n\n/* Ghost */\n\n.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_ghost__xQWCE:hover, .button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_ghost__xQWCE:active, .button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n/* Danger */\n\n.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var( --product-error);\n}\n\n.button-module_danger__pxWDX:hover, .button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_danger__pxWDX:active, .button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n/*! Action Button */\n\n/* Standard */\n\n.button-module_action__RTWZU.button-module_standard__GaQlx {\n color: var(--product-greyscale-0);\n background: var(--product-light-blue-100);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:hover, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_hover__Zz9hl {\n background: var(--product-light-blue-80);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:active, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_active__rYKZm {\n background: var(--product-light-blue-120);\n}\n\n/* Secondary */\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-00);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:hover, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:active, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_active__rYKZm {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n/* Tertiary */\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6 {\n background: var(--product-greyscale-100);\n color: var(--product-greyscale-0)\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:hover, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:active, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-greyscale-100);\n}\n\n/* Ghost */\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:hover, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:active, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:focus, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_focus__RNsoR {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n/* Danger */\n\n.button-module_action__RTWZU.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var(--product-error);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:hover, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:active, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n/*! Text Button */\n.button-module_text__0yzwq {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-1);\n border-radius: var(--product-radius-2);\n cursor: pointer;\n}\n\n/* Primary */\n\n.button-module_text__0yzwq.button-module_primary__CZzyo {\n background: none;\n border: none;\n color: var(--product-greyscale-100);\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo::after {\n content: '';\n position: absolute;\n background: var(--product-greyscale-100);\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo:hover::after, .button-module_text__0yzwq.button-module_primary__CZzyo.button-module_hover__Zz9hl::after {\n background: var(--product-love-pink-100);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo:active::after, .button-module_text__0yzwq.button-module_primary__CZzyo.button-module_active__rYKZm::after {\n background: var(--product-love-pink-120);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_primary__CZzyo:focus, .button-module_text__0yzwq.button-module_primary__CZzyo.button-module_focus__RNsoR {\n outline: 2px solid var(--product-focus);\n}\n\n/* Secondary */\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3 {\n background: none;\n border: none;\n color: var(--product-light-blue-100)\n\n}\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3:hover::after, .button-module_text__0yzwq.button-module_secondary__tM5K3.button-module_hover__Zz9hl::after {\n background: var(--product-light-blue-100);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3:active::after, .button-module_text__0yzwq.button-module_secondary__tM5K3.button-module_active__rYKZm::after {\n background: var(--product-light-blue-120);\n content: '';\n position: absolute;\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq.button-module_secondary__tM5K3:focus, .button-module_text__0yzwq.button-module_secondary__tM5K3.button-module_focus__RNsoR {\n outline: 2px solid var(--product-focus);\n}\n\n\n\n\n\n\n\n\n\n\n\n.button-module_button__dZH55:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled:hover, .button-module_action__RTWZU:disabled.button-module_hover__Zz9hl {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n border: none;\n}\n\n.button-module_text__0yzwq:disabled {\n position: relative;\n color: var(--product-disabled-text);\n border: none;\n cursor: not-allowed;\n}\n\n.button-module_text__0yzwq:disabled:hover {\n border: none;\n}\n\n.button-module_text__0yzwq:disabled:hover::after {\n content: '';\n position: absolute;\n background: var(--product-disabled-text);\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.button-module_text__0yzwq:disabled:active {\n color: var(--product-disabled-text);\n}\n\n.button-module_text__0yzwq:disabled::after {\n content: '';\n position: absolute;\n background: var(--product-disabled-text);\n height: 2px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n\n.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-3);\n border-radius: var(--product-radius-full);\n}\n\n.button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-2_5);\n border-radius: var(--product-radius-2);\n}\n\n\n\n @media (min-width: 768px) {\n .button-module_button__dZH55 {\n padding: var(--product-spacing-4) var(--product-spacing-7);\n }\n\n .button-module_action__RTWZU {\n border-radius: var(--product-radius-5);\n }\n\n .button-module_only-icon__8lEn4 {\n padding: 16px;\n }\n\n .button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: 10px;\n }\n}\n\n\n");var p={"form-label":"typography-module_form-label__7pjg0","form-helper":"typography-module_form-helper__iE-K1","form-button":"typography-module_form-button__oWjm-","form-input-normal":"typography-module_form-input-normal__t1XCT","form-input-semi-bold":"typography-module_form-input-semi-bold__HLeM-","content-regular-light":"typography-module_content-regular-light__qEDRp","content-regular":"typography-module_content-regular__I4VOF","content-regular-semi-bold":"typography-module_content-regular-semi-bold__COKU6","content-large-light":"typography-module_content-large-light__bc5mT","content-large":"typography-module_content-large__UcRKy","content-large-semi-bold":"typography-module_content-large-semi-bold__rW0r8","content-title-light":"typography-module_content-title-light__32AIU","content-title":"typography-module_content-title__adS2q","content-title-semi-bold":"typography-module_content-title-semi-bold__B-QDN"};c(".typography-module_form-label__7pjg0{\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-mobile-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-mobile-size);\n letter-spacing: var(--product-font-form-helper-letter-spacing);\n line-height: var(--product-font-form-helper-line-height);\n}\n\n.typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-mobile-size);\n letter-spacing: var(--product-font-form-input-button-letter-spacing);\n line-height: var(--product-font-form-input-button-line-height);\n font-weight: var(--product-font-weight-medium);\n}\n\n.typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n}\n\n.typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-mobile-size);\n letter-spacing: var(--product-font-content-regular-light-letter-spacing);\n line-height: var(--product-font-content-regular-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-mobile-size);\n letter-spacing: var(--product-font-content-regular-normal-letter-spacing);\n line-height: var(--product-font-content-regular-normal-line-height);\n}\n\n.typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-mobile-size);\n letter-spacing: var(--product-font-content-regular-semi-bold-letter-spacing);\n line-height: var(--product-font-content-regular-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-mobile-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-mobile-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-mobile-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-mobile-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-mobile-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-mobile-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n @media (min-width: 768px) {\n .typography-module_form-label__7pjg0{\n font-size: var(--product-font-form-label-desktop-size);\n }\n\n .typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n }\n\n .typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n }\n\n .typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n }\n\n .typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n }\n\n .typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n }\n\n .typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n\n .typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var f=function(t){var n=t.as,r=t.variant,o=void 0===r?"content-regular":r,i=t.children,l=t.className,c=s(t,["as","variant","children","className"]),d=n||"p";return e.createElement(d,a({className:u(p[o],l)},c),i)};function h(t){var n=t.as,r=t.children,o=t.variant,i=void 0===o?"primary":o,l=t.className,c=void 0===l?"":l,p=t.visualType,h=void 0===p?"button":p,m=t.onlyIcon,g=void 0!==m&&m,v=s(t,["as","children","variant","className","visualType","onlyIcon"]),y=n||"button";return e.createElement(y,a({className:u(d[c],d[i],d[h],g&&d["only-icon"])},v),g&&r,!g&&e.createElement(f,{variant:"form-button"},r))}var m,g={exports:{}},v={},y={exports:{}},_={};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var b,x,w,E={exports:{}};
|
|
2
11
|
/**
|
|
3
12
|
* @license React
|
|
4
13
|
* react.development.js
|
|
@@ -7,7 +16,7 @@
|
|
|
7
16
|
*
|
|
8
17
|
* This source code is licensed under the MIT license found in the
|
|
9
18
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/"production"===process.env.NODE_ENV?Rl.exports=function(){if(kl)return Al;kl=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function m(t,e,n){this.props=t,this.context=e,this.refs=h,this.updater=n||p}function g(){}function v(t,e,n){this.props=t,this.context=e,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},m.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},g.prototype=m.prototype;var y=v.prototype=new g;y.constructor=v,f(y,m.prototype),y.isPureReactComponent=!0;var _=Array.isArray,b=Object.prototype.hasOwnProperty,x={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)b.call(n,o)&&!w.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:t,type:e,key:a,ref:s,props:i,_owner:x.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var k=/\/+/g;function C(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function P(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case t:case e:l=!0}}if(l)return a=a(l=n),n=""===i?"."+C(l,0):i,_(a)?(o="",null!=n&&(o=n.replace(k,"$&/")+"/"),P(a,r,o,"",(function(t){return t}))):null!=a&&(S(a)&&(a=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",_(n))for(var u=0;u<n.length;u++){var c=i+C(s=n[u],u);l+=P(s,r,o,c,a)}else if(c=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=d&&t[d]||t["@@iterator"])?t:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=P(s=s.value,r,o,c=i+C(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function T(t,e,n){if(null==t)return t;var r=[],o=0;return P(t,r,"","",(function(t){return e.call(n,t,o++)})),r}function R(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){(0===t._status||-1===t._status)&&(t._status=1,t._result=e)}),(function(e){(0===t._status||-1===t._status)&&(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var A={current:null},O={transition:null},D={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:O,ReactCurrentOwner:x};return Al.Children={map:T,forEach:function(t,e,n){T(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return T(t,(function(){e++})),e},toArray:function(t){return T(t,(function(t){return t}))||[]},only:function(t){if(!S(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Al.Component=m,Al.Fragment=n,Al.Profiler=o,Al.PureComponent=v,Al.StrictMode=r,Al.Suspense=l,Al.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,Al.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=f({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=x.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in n)b.call(n,u)&&!w.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:s}},Al.createContext=function(t){return(t={$$typeof:a,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},Al.createElement=E,Al.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},Al.createRef=function(){return{current:null}},Al.forwardRef=function(t){return{$$typeof:s,render:t}},Al.isValidElement=S,Al.lazy=function(t){return{$$typeof:c,_payload:{_status:-1,_result:t},_init:R}},Al.memo=function(t,e){return{$$typeof:u,type:t,compare:void 0===e?null:e}},Al.startTransition=function(t){var e=O.transition;O.transition={};try{t()}finally{O.transition=e}},Al.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Al.useCallback=function(t,e){return A.current.useCallback(t,e)},Al.useContext=function(t){return A.current.useContext(t)},Al.useDebugValue=function(){},Al.useDeferredValue=function(t){return A.current.useDeferredValue(t)},Al.useEffect=function(t,e){return A.current.useEffect(t,e)},Al.useId=function(){return A.current.useId()},Al.useImperativeHandle=function(t,e,n){return A.current.useImperativeHandle(t,e,n)},Al.useInsertionEffect=function(t,e){return A.current.useInsertionEffect(t,e)},Al.useLayoutEffect=function(t,e){return A.current.useLayoutEffect(t,e)},Al.useMemo=function(t,e){return A.current.useMemo(t,e)},Al.useReducer=function(t,e,n){return A.current.useReducer(t,e,n)},Al.useRef=function(t){return A.current.useRef(t)},Al.useState=function(t){return A.current.useState(t)},Al.useSyncExternalStore=function(t,e,n){return A.current.useSyncExternalStore(t,e,n)},Al.useTransition=function(){return A.current.useTransition()},Al.version="18.2.0",Al}():Rl.exports=(Ol||(Ol=1,Dl=jl,Fl=jl.exports,"production"!==process.env.NODE_ENV&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.iterator,h="@@iterator";function m(t){if(null===t||"object"!=typeof t)return null;var e=f&&t[f]||t[h];return"function"==typeof e?e:null}var g={current:null},v={transition:null},y={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},_={current:null},b={},x=null;function w(t){x=t}b.setExtraStackFrame=function(t){x=t},b.getCurrentStack=null,b.getStackAddendum=function(){var t="";x&&(t+=x);var e=b.getCurrentStack;return e&&(t+=e()||""),t};var E=!1,S=!1,k=!1,C=!1,P=!1,T={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:_};function R(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("warn",t,n)}function A(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("error",t,n)}function O(t,e,n){var r=T.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]));var o=n.map((function(t){return String(t)}));o.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,o)}T.ReactDebugCurrentFrame=b,T.ReactCurrentActQueue=y;var D={};function F(t,e){var n=t.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+e;D[o]||(A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,r),D[o]=!0)}var j={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){F(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,r){F(t,"replaceState")},enqueueSetState:function(t,e,n,r){F(t,"setState")}},M=Object.assign,V={};function L(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||j}Object.freeze(V),L.prototype.isReactComponent={},L.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},L.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},I=function(t,e){Object.defineProperty(L.prototype,t,{get:function(){R("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var B in N)N.hasOwnProperty(B)&&I(B,N[B]);function z(){}function U(t,e,n){this.props=t,this.context=e,this.refs=V,this.updater=n||j}z.prototype=L.prototype;var $=U.prototype=new z;$.constructor=U,M($,L.prototype),$.isPureReactComponent=!0;var W=Array.isArray;function Z(t){return W(t)}function G(t){return""+t}function H(t){if(function(t){try{return G(t),!1}catch{return!0}}(t))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),G(t)}function Y(t){return t.displayName||"Context"}function q(t){if(null==t)return null;if("number"==typeof t.tag&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case n:return"Fragment";case e:return"Portal";case o:return"Profiler";case r:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case a:return Y(t)+".Consumer";case i:return Y(t._context)+".Provider";case s:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case c:var p=t.displayName||null;return null!==p?p:q(t.type)||"Memo";case d:var f=t,h=f._payload,m=f._init;try{return q(m(h))}catch{return null}}return null}var K,X,Q,J=Object.prototype.hasOwnProperty,tt={key:!0,ref:!0,__self:!0,__source:!0};function et(t){if(J.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function nt(t){if(J.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}Q={};var rt=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ot(t,e,n){var r,o={},i=null,a=null,s=null,l=null;if(null!=e)for(r in et(e)&&(a=e.ref,function(t){if("string"==typeof t.ref&&_.current&&t.__self&&_.current.stateNode!==t.__self){var e=q(_.current.type);Q[e]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',e,t.ref),Q[e]=!0)}}(e)),nt(e)&&(H(e.key),i=""+e.key),s=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)J.call(e,r)&&!tt.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),o.children=c}if(t&&t.defaultProps){var p=t.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(i||a){var f="function"==typeof t?t.displayName||t.name||"Unknown":t;i&&function(t,e){var n=function(){K||(K=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(o,f),a&&function(t,e){var n=function(){X||(X=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(o,f)}return rt(t,i,a,s,l,_.current,o)}function it(t,e,n){if(null==t)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r,o,i=M({},t.props),a=t.key,s=t.ref,l=t._self,u=t._source,c=t._owner;if(null!=e)for(r in et(e)&&(s=e.ref,c=_.current),nt(e)&&(H(e.key),a=""+e.key),t.type&&t.type.defaultProps&&(o=t.type.defaultProps),e)J.call(e,r)&&!tt.hasOwnProperty(r)&&(void 0===e[r]&&void 0!==o?i[r]=o[r]:i[r]=e[r]);var d=arguments.length-2;if(1===d)i.children=n;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];i.children=p}return rt(t.type,a,s,l,u,c,i)}function at(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var st=".",lt=":",ut=!1,ct=/\/+/g;function dt(t){return t.replace(ct,"$&/")}function pt(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(H(t.key),function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key)):e.toString(36)}function ft(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case t:case e:l=!0}}if(l){var u=n,c=a(u),d=""===i?st+pt(u,0):i;if(Z(c)){var p="";null!=d&&(p=dt(d)+"/"),ft(c,r,p,"",(function(t){return t}))}else null!=c&&(at(c)&&(c.key&&(!u||u.key!==c.key)&&H(c.key),c=function(t,e){return rt(t.type,e,t.ref,t._self,t._source,t._owner,t.props)}(c,o+(!c.key||u&&u.key===c.key?"":dt(""+c.key)+"/")+d)),r.push(c));return 1}var f,h=0,g=""===i?st:i+lt;if(Z(n))for(var v=0;v<n.length;v++)h+=ft(f=n[v],r,o,g+pt(f,v),a);else{var y=m(n);if("function"==typeof y){var _=n;y===_.entries&&(ut||R("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ut=!0);for(var b,x=y.call(_),w=0;!(b=x.next()).done;)h+=ft(f=b.value,r,o,g+pt(f,w++),a)}else if("object"===s){var E=String(n);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(n).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return h}function ht(t,e,n){if(null==t)return t;var r=[],o=0;return ft(t,r,"","",(function(t){return e.call(n,t,o++)})),r}var mt,gt=-1,vt=0,yt=1,_t=2;function bt(t){if(t._status===gt){var e=(0,t._result)();if(e.then((function(e){if(t._status===vt||t._status===gt){var n=t;n._status=yt,n._result=e}}),(function(e){if(t._status===vt||t._status===gt){var n=t;n._status=_t,n._result=e}})),t._status===gt){var n=t;n._status=vt,n._result=e}}if(t._status===yt){var r=t._result;return void 0===r&&A("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||A("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw t._result}function xt(t){return!!("string"==typeof t||"function"==typeof t||t===n||t===o||P||t===r||t===l||t===u||C||t===p||E||S||k||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===c||t.$$typeof===i||t.$$typeof===a||t.$$typeof===s||t.$$typeof===mt||void 0!==t.getModuleId))}function wt(){var t=g.current;return null===t&&A("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),t}mt=Symbol.for("react.module.reference");var Et,St,kt,Ct,Pt,Tt,Rt,At=0;function Ot(){}Ot.__reactDisabledLog=!0;var Dt,Ft=T.ReactCurrentDispatcher;function jt(t,e,n){if(void 0===Dt)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);Dt=r&&r[1]||""}return"\n"+Dt+t}var Mt,Vt=!1,Lt="function"==typeof WeakMap?WeakMap:Map;function Nt(t,e){if(!t||Vt)return"";var n,r=Mt.get(t);if(void 0!==r)return r;Vt=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Ft.current,Ft.current=null,function(){if(0===At){Et=console.log,St=console.info,kt=console.warn,Ct=console.error,Pt=console.group,Tt=console.groupCollapsed,Rt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Ot,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}At++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&Mt.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{Vt=!1,Ft.current=o,function(){if(0==--At){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},t,{value:Et}),info:M({},t,{value:St}),warn:M({},t,{value:kt}),error:M({},t,{value:Ct}),group:M({},t,{value:Pt}),groupCollapsed:M({},t,{value:Tt}),groupEnd:M({},t,{value:Rt})})}At<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",f=p?jt(p):"";return"function"==typeof t&&Mt.set(t,f),f}function It(t,e,n){if(null==t)return"";if("function"==typeof t)return Nt(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return jt(t);switch(t){case l:return jt("Suspense");case u:return jt("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case s:return function(t,e,n){return Nt(t,!1)}(t.render);case c:return It(t.type,e,n);case d:var r=t,o=r._payload,i=r._init;try{return It(i(o),e,n)}catch{}}return""}Mt=new Lt;var Bt,zt={},Ut=T.ReactDebugCurrentFrame;function $t(t){if(t){var e=t._owner,n=It(t.type,t._source,e?e.type:null);Ut.setExtraStackFrame(n)}else Ut.setExtraStackFrame(null)}function Wt(t){if(t){var e=t._owner;w(It(t.type,t._source,e?e.type:null))}else w(null)}function Zt(){if(_.current){var t=q(_.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}Bt=!1;var Gt={};function Ht(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=Zt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!Gt[n]){Gt[n]=!0;var r="";t&&t._owner&&t._owner!==_.current&&(r=" It was passed a child from "+q(t._owner.type)+"."),Wt(t),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Wt(null)}}}function Yt(t,e){if("object"==typeof t)if(Z(t))for(var n=0;n<t.length;n++){var r=t[n];at(r)&&Ht(r,e)}else if(at(t))t._store&&(t._store.validated=!0);else if(t){var o=m(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)at(i.value)&&Ht(i.value,e)}}function qt(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==c)return;e=n.propTypes}if(e){var r=q(n);!function(t,e,n,r,o){var i=Function.call.bind(J);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&($t(o),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),$t(null)),s instanceof Error&&!(s.message in zt)&&(zt[s.message]=!0,$t(o),A("Failed %s type: %s",n,s.message),$t(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||Bt||(Bt=!0,A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kt(e,r,o){var i=xt(e);if(!i){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=function(t){return null!=t?function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(t.__source):""}(r);a+=l||Zt(),null===e?s="null":Z(e)?s="array":void 0!==e&&e.$$typeof===t?(s="<"+(q(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var u=ot.apply(this,arguments);if(null==u)return u;if(i)for(var c=2;c<arguments.length;c++)Yt(arguments[c],e);return e===n?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){Wt(t),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Wt(null);break}}null!==t.ref&&(Wt(t),A("Invalid attribute `ref` supplied to `React.Fragment`."),Wt(null))}(u):qt(u),u}var Xt=!1,Qt=!1,Jt=null,te=0,ee=!1;function ne(t){t!==te-1&&A("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),te=t}function re(t,e,n){var r=y.current;if(null!==r)try{ie(r),function(t){if(null===Jt)try{var e=("require"+Math.random()).slice(0,7);Jt=(Dl&&Dl[e]).call(Dl,"timers").setImmediate}catch{Jt=function(t){!1===Qt&&(Qt=!0,typeof MessageChannel>"u"&&A("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var e=new MessageChannel;e.port1.onmessage=t,e.port2.postMessage(void 0)}}Jt(t)}((function(){0===r.length?(y.current=null,e(t)):re(t,e,n)}))}catch(t){n(t)}else e(t)}var oe=!1;function ie(t){if(!oe){oe=!0;var e=0;try{for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}t.length=0}catch(n){throw t=t.slice(e+1),n}finally{oe=!1}}}var ae=Kt,se=function(t,e,n){for(var r=it.apply(this,arguments),o=2;o<arguments.length;o++)Yt(arguments[o],r.type);return qt(r),r},le=function(t){var e=Kt.bind(null,t);return e.type=t,Xt||(Xt=!0,R("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return R("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},ue={map:ht,forEach:function(t,e,n){ht(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return ht(t,(function(){e++})),e},toArray:function(t){return ht(t,(function(t){return t}))||[]},only:function(t){if(!at(t))throw new Error("React.Children.only expected to receive a single React element child.");return t}};Fl.Children=ue,Fl.Component=L,Fl.Fragment=n,Fl.Profiler=o,Fl.PureComponent=U,Fl.StrictMode=r,Fl.Suspense=l,Fl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,Fl.cloneElement=se,Fl.createContext=function(t){var e={$$typeof:a,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};e.Provider={$$typeof:i,_context:e};var n=!1,r=!1,o=!1,s={$$typeof:a,_context:e};return Object.defineProperties(s,{Provider:{get:function(){return r||(r=!0,A("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),e.Provider},set:function(t){e.Provider=t}},_currentValue:{get:function(){return e._currentValue},set:function(t){e._currentValue=t}},_currentValue2:{get:function(){return e._currentValue2},set:function(t){e._currentValue2=t}},_threadCount:{get:function(){return e._threadCount},set:function(t){e._threadCount=t}},Consumer:{get:function(){return n||(n=!0,A("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),e.Consumer}},displayName:{get:function(){return e.displayName},set:function(t){o||(R("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",t),o=!0)}}}),e.Consumer=s,e._currentRenderer=null,e._currentRenderer2=null,e},Fl.createElement=ae,Fl.createFactory=le,Fl.createRef=function(){var t={current:null};return Object.seal(t),t},Fl.forwardRef=function(t){null!=t&&t.$$typeof===c?A("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?A("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&A("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null!=t.defaultProps||null!=t.propTypes)&&A("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var e,n={$$typeof:s,render:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(n){e=n,!t.name&&!t.displayName&&(t.displayName=n)}}),n},Fl.isValidElement=at,Fl.lazy=function(t){var e,n,r={$$typeof:d,_payload:{_status:gt,_result:t},_init:bt};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){A("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){A("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},Fl.memo=function(t,e){xt(t)||A("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t);var n,r={$$typeof:c,type:t,compare:void 0===e?null:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(e){n=e,!t.name&&!t.displayName&&(t.displayName=e)}}),r},Fl.startTransition=function(t,e){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{t()}finally{v.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&R("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},Fl.unstable_act=function(t){var e=te;te++,null===y.current&&(y.current=[]);var n,r=y.isBatchingLegacy;try{if(y.isBatchingLegacy=!0,n=t(),!r&&y.didScheduleLegacyUpdate){var o=y.current;null!==o&&(y.didScheduleLegacyUpdate=!1,ie(o))}}catch(t){throw ne(e),t}finally{y.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var i=n,a=!1,s={then:function(t,n){a=!0,i.then((function(r){ne(e),0===te?re(r,t,n):t(r)}),(function(t){ne(e),n(t)}))}};return!ee&&typeof Promise<"u"&&Promise.resolve().then((function(){})).then((function(){a||(ee=!0,A("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var l=n;if(ne(e),0===te){var u=y.current;return null!==u&&(ie(u),y.current=null),{then:function(t,e){null===y.current?(y.current=[],re(l,t,e)):t(l)}}}return{then:function(t,e){t(l)}}},Fl.useCallback=function(t,e){return wt().useCallback(t,e)},Fl.useContext=function(t){var e=wt();if(void 0!==t._context){var n=t._context;n.Consumer===t?A("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===t&&A("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return e.useContext(t)},Fl.useDebugValue=function(t,e){return wt().useDebugValue(t,e)},Fl.useDeferredValue=function(t){return wt().useDeferredValue(t)},Fl.useEffect=function(t,e){return wt().useEffect(t,e)},Fl.useId=function(){return wt().useId()},Fl.useImperativeHandle=function(t,e,n){return wt().useImperativeHandle(t,e,n)},Fl.useInsertionEffect=function(t,e){return wt().useInsertionEffect(t,e)},Fl.useLayoutEffect=function(t,e){return wt().useLayoutEffect(t,e)},Fl.useMemo=function(t,e){return wt().useMemo(t,e)},Fl.useReducer=function(t,e,n){return wt().useReducer(t,e,n)},Fl.useRef=function(t){return wt().useRef(t)},Fl.useState=function(t){return wt().useState(t)},Fl.useSyncExternalStore=function(t,e,n){return wt().useSyncExternalStore(t,e,n)},Fl.useTransition=function(){return wt().useTransition()},Fl.version="18.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),jl.exports);var Ml,Vl=Rl.exports;
|
|
19
|
+
*/"production"===process.env.NODE_ENV?y.exports=function(){if(m)return _;m=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,f(b,g.prototype),b.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function T(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,o)&&!S.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:E.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function k(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+R(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(P,"$&/")+"/"),k(a,r,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+R(s=n[u],u);l+=k(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=k(s=s.value,r,o,c=i+R(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return k(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)}),(function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},M={transition:null},L={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};return _.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},_.Component=g,_.Fragment=n,_.Profiler=o,_.PureComponent=y,_.StrictMode=r,_.Suspense=l,_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,_.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=f({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=E.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.call(n,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},_.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},_.createElement=T,_.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},_.createRef=function(){return{current:null}},_.forwardRef=function(e){return{$$typeof:s,render:e}},_.isValidElement=C,_.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:A}},_.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},_.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},_.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},_.useCallback=function(e,t){return D.current.useCallback(e,t)},_.useContext=function(e){return D.current.useContext(e)},_.useDebugValue=function(){},_.useDeferredValue=function(e){return D.current.useDeferredValue(e)},_.useEffect=function(e,t){return D.current.useEffect(e,t)},_.useId=function(){return D.current.useId()},_.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},_.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},_.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},_.useMemo=function(e,t){return D.current.useMemo(e,t)},_.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},_.useRef=function(e){return D.current.useRef(e)},_.useState=function(e){return D.current.useState(e)},_.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},_.useTransition=function(){return D.current.useTransition()},_.version="18.2.0",_}():y.exports=(b||(b=1,x=E,w=E.exports,"production"!==process.env.NODE_ENV&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.iterator,h="@@iterator";function m(e){if(null===e||"object"!=typeof e)return null;var t=f&&e[f]||e[h];return"function"==typeof t?t:null}var g={current:null},v={transition:null},y={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},_={current:null},b={},E=null;function S(e){E=e}b.setExtraStackFrame=function(e){E=e},b.getCurrentStack=null,b.getStackAddendum=function(){var e="";E&&(e+=E);var t=b.getCurrentStack;return t&&(e+=t()||""),e};var T=!1,C=!1,P=!1,R=!1,k=!1,O={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:v,ReactCurrentOwner:_};function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];M("warn",e,n)}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];M("error",e,n)}function M(e,t,n){var r=O.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}O.ReactDebugCurrentFrame=b,O.ReactCurrentActQueue=y;var L={};function F(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;L[o]||(D("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),L[o]=!0)}var V={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){F(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){F(e,"replaceState")},enqueueSetState:function(e,t,n,r){F(e,"setState")}},j=Object.assign,N={};function I(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||V}Object.freeze(N),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var z={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},B=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){A("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var U in z)z.hasOwnProperty(U)&&B(U,z[U]);function W(){}function $(e,t,n){this.props=e,this.context=t,this.refs=N,this.updater=n||V}W.prototype=I.prototype;var H=$.prototype=new W;H.constructor=$,j(H,I.prototype),H.isPureReactComponent=!0;var Z=Array.isArray;function q(e){return Z(e)}function K(e){return""+e}function G(e){if(function(e){try{return K(e),!1}catch{return!0}}(e))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),K(e)}function Y(e){return e.displayName||"Context"}function X(e){if(null==e)return null;if("number"==typeof e.tag&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case n:return"Fragment";case t:return"Portal";case o:return"Profiler";case r:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case a:return Y(e)+".Consumer";case i:return Y(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case c:var p=e.displayName||null;return null!==p?p:X(e.type)||"Memo";case d:var f=e,h=f._payload,m=f._init;try{return X(m(h))}catch{return null}}return null}var Q,J,ee,te=Object.prototype.hasOwnProperty,ne={key:!0,ref:!0,__self:!0,__source:!0};function re(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function oe(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ie=function(t,n,r,o,i,a,s){var l={$$typeof:e,type:t,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n){var r,o={},i=null,a=null,s=null,l=null;if(null!=t)for(r in re(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&_.current&&e.__self&&_.current.stateNode!==e.__self){var t=X(_.current.type);ee[t]||(D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),ee[t]=!0)}}(t)),oe(t)&&(G(t.key),i=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),o.children=c}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}if(i||a){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&function(e,t){var n=function(){Q||(Q=!0,D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,f),a&&function(e,t){var n=function(){J||(J=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(o,f)}return ie(e,i,a,s,l,_.current,o)}function se(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,i=j({},e.props),a=e.key,s=e.ref,l=e._self,u=e._source,c=e._owner;if(null!=t)for(r in re(t)&&(s=t.ref,c=_.current),oe(t)&&(G(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==o?i[r]=o[r]:i[r]=t[r]);var d=arguments.length-2;if(1===d)i.children=n;else if(d>1){for(var p=Array(d),f=0;f<d;f++)p[f]=arguments[f+2];i.children=p}return ie(e.type,a,s,l,u,c,i)}function le(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var ue=".",ce=":",de=!1,pe=/\/+/g;function fe(e){return e.replace(pe,"$&/")}function he(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(G(e.key),function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key)):t.toString(36)}function me(n,r,o,i,a){var s=typeof n;("undefined"===s||"boolean"===s)&&(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l){var u=n,c=a(u),d=""===i?ue+he(u,0):i;if(q(c)){var p="";null!=d&&(p=fe(d)+"/"),me(c,r,p,"",(function(e){return e}))}else null!=c&&(le(c)&&(c.key&&(!u||u.key!==c.key)&&G(c.key),c=function(e,t){return ie(e.type,t,e.ref,e._self,e._source,e._owner,e.props)}(c,o+(!c.key||u&&u.key===c.key?"":fe(""+c.key)+"/")+d)),r.push(c));return 1}var f,h=0,g=""===i?ue:i+ce;if(q(n))for(var v=0;v<n.length;v++)h+=me(f=n[v],r,o,g+he(f,v),a);else{var y=m(n);if("function"==typeof y){var _=n;y===_.entries&&(de||A("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),de=!0);for(var b,x=y.call(_),w=0;!(b=x.next()).done;)h+=me(f=b.value,r,o,g+he(f,w++),a)}else if("object"===s){var E=String(n);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(n).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return h}function ge(e,t,n){if(null==e)return e;var r=[],o=0;return me(e,r,"","",(function(e){return t.call(n,e,o++)})),r}var ve,ye=-1,_e=0,be=1,xe=2;function we(e){if(e._status===ye){var t=(0,e._result)();if(t.then((function(t){if(e._status===_e||e._status===ye){var n=e;n._status=be,n._result=t}}),(function(t){if(e._status===_e||e._status===ye){var n=e;n._status=xe,n._result=t}})),e._status===ye){var n=e;n._status=_e,n._result=t}}if(e._status===be){var r=e._result;return void 0===r&&D("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||D("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function Ee(e){return!!("string"==typeof e||"function"==typeof e||e===n||e===o||k||e===r||e===l||e===u||R||e===p||T||C||P||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===ve||void 0!==e.getModuleId))}function Se(){var e=g.current;return null===e&&D("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}ve=Symbol.for("react.module.reference");var Te,Ce,Pe,Re,ke,Oe,Ae,De=0;function Me(){}Me.__reactDisabledLog=!0;var Le,Fe=O.ReactCurrentDispatcher;function Ve(e,t,n){if(void 0===Le)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Le=r&&r[1]||""}return"\n"+Le+e}var je,Ne=!1,Ie="function"==typeof WeakMap?WeakMap:Map;function ze(e,t){if(!e||Ne)return"";var n,r=je.get(e);if(void 0!==r)return r;Ne=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Fe.current,Fe.current=null,function(){if(0===De){Te=console.log,Ce=console.info,Pe=console.warn,Re=console.error,ke=console.group,Oe=console.groupCollapsed,Ae=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}De++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&je.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Ne=!1,Fe.current=o,function(){if(0==--De){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:Te}),info:j({},e,{value:Ce}),warn:j({},e,{value:Pe}),error:j({},e,{value:Re}),group:j({},e,{value:ke}),groupCollapsed:j({},e,{value:Oe}),groupEnd:j({},e,{value:Ae})})}De<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?Ve(p):"";return"function"==typeof e&&je.set(e,f),f}function Be(e,t,n){if(null==e)return"";if("function"==typeof e)return ze(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ve(e);switch(e){case l:return Ve("Suspense");case u:return Ve("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return function(e,t,n){return ze(e,!1)}(e.render);case c:return Be(e.type,t,n);case d:var r=e,o=r._payload,i=r._init;try{return Be(i(o),t,n)}catch{}}return""}je=new Ie;var Ue,We={},$e=O.ReactDebugCurrentFrame;function He(e){if(e){var t=e._owner,n=Be(e.type,e._source,t?t.type:null);$e.setExtraStackFrame(n)}else $e.setExtraStackFrame(null)}function Ze(e){if(e){var t=e._owner;S(Be(e.type,e._source,t?t.type:null))}else S(null)}function qe(){if(_.current){var e=X(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Ue=!1;var Ke={};function Ge(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=qe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Ke[n]){Ke[n]=!0;var r="";e&&e._owner&&e._owner!==_.current&&(r=" It was passed a child from "+X(e._owner.type)+"."),Ze(e),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Ze(null)}}}function Ye(e,t){if("object"==typeof e)if(q(e))for(var n=0;n<e.length;n++){var r=e[n];le(r)&&Ge(r,t)}else if(le(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)le(i.value)&&Ge(i.value,t)}}function Xe(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==c)return;t=n.propTypes}if(t){var r=X(n);!function(e,t,n,r,o){var i=Function.call.bind(te);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(He(o),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),He(null)),s instanceof Error&&!(s.message in We)&&(We[s.message]=!0,He(o),D("Failed %s type: %s",n,s.message),He(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Ue||(Ue=!0,D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t,r,o){var i=Ee(t);if(!i){var a="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var s,l=function(e){return null!=e?function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(e.__source):""}(r);a+=l||qe(),null===t?s="null":q(t)?s="array":void 0!==t&&t.$$typeof===e?(s="<"+(X(t.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof t,D("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var u=ae.apply(this,arguments);if(null==u)return u;if(i)for(var c=2;c<arguments.length;c++)Ye(arguments[c],t);return t===n?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ze(e),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ze(null);break}}null!==e.ref&&(Ze(e),D("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}(u):Xe(u),u}var Je=!1,et=!1,tt=null,nt=0,rt=!1;function ot(e){e!==nt-1&&D("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),nt=e}function it(e,t,n){var r=y.current;if(null!==r)try{st(r),function(e){if(null===tt)try{var t=("require"+Math.random()).slice(0,7);tt=(x&&x[t]).call(x,"timers").setImmediate}catch{tt=function(e){!1===et&&(et=!0,typeof MessageChannel>"u"&&D("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(e)}((function(){0===r.length?(y.current=null,t(e)):it(e,t,n)}))}catch(e){n(e)}else t(e)}var at=!1;function st(e){if(!at){at=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{at=!1}}}var lt=Qe,ut=function(e,t,n){for(var r=se.apply(this,arguments),o=2;o<arguments.length;o++)Ye(arguments[o],r.type);return Xe(r),r},ct=function(e){var t=Qe.bind(null,e);return t.type=e,Je||(Je=!0,A("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return A("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},dt={map:ge,forEach:function(e,t,n){ge(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ge(e,(function(){t++})),t},toArray:function(e){return ge(e,(function(e){return e}))||[]},only:function(e){if(!le(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};w.Children=dt,w.Component=I,w.Fragment=n,w.Profiler=o,w.PureComponent=$,w.StrictMode=r,w.Suspense=l,w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,w.cloneElement=ut,w.createContext=function(e){var t={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:i,_context:t};var n=!1,r=!1,o=!1,s={$$typeof:a,_context:t};return Object.defineProperties(s,{Provider:{get:function(){return r||(r=!0,D("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,D("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(A("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=s,t._currentRenderer=null,t._currentRenderer2=null,t},w.createElement=lt,w.createFactory=ct,w.createRef=function(){var e={current:null};return Object.seal(e),e},w.forwardRef=function(e){null!=e&&e.$$typeof===c?D("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?D("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&D("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&D("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var t,n={$$typeof:s,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,!e.name&&!e.displayName&&(e.displayName=n)}}),n},w.isValidElement=le,w.lazy=function(e){var t,n,r={$$typeof:d,_payload:{_status:ye,_result:e},_init:we};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){D("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){D("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},w.memo=function(e,t){Ee(e)||D("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:c,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,!e.name&&!e.displayName&&(e.displayName=t)}}),r},w.startTransition=function(e,t){var n=v.transition;v.transition={};var r=v.transition;v.transition._updatedFibers=new Set;try{e()}finally{v.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&A("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},w.unstable_act=function(e){var t=nt;nt++,null===y.current&&(y.current=[]);var n,r=y.isBatchingLegacy;try{if(y.isBatchingLegacy=!0,n=e(),!r&&y.didScheduleLegacyUpdate){var o=y.current;null!==o&&(y.didScheduleLegacyUpdate=!1,st(o))}}catch(e){throw ot(t),e}finally{y.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var i=n,a=!1,s={then:function(e,n){a=!0,i.then((function(r){ot(t),0===nt?it(r,e,n):e(r)}),(function(e){ot(t),n(e)}))}};return!rt&&typeof Promise<"u"&&Promise.resolve().then((function(){})).then((function(){a||(rt=!0,D("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),s}var l=n;if(ot(t),0===nt){var u=y.current;return null!==u&&(st(u),y.current=null),{then:function(e,t){null===y.current?(y.current=[],it(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}},w.useCallback=function(e,t){return Se().useCallback(e,t)},w.useContext=function(e){var t=Se();if(void 0!==e._context){var n=e._context;n.Consumer===e?D("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&D("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},w.useDebugValue=function(e,t){return Se().useDebugValue(e,t)},w.useDeferredValue=function(e){return Se().useDeferredValue(e)},w.useEffect=function(e,t){return Se().useEffect(e,t)},w.useId=function(){return Se().useId()},w.useImperativeHandle=function(e,t,n){return Se().useImperativeHandle(e,t,n)},w.useInsertionEffect=function(e,t){return Se().useInsertionEffect(e,t)},w.useLayoutEffect=function(e,t){return Se().useLayoutEffect(e,t)},w.useMemo=function(e,t){return Se().useMemo(e,t)},w.useReducer=function(e,t,n){return Se().useReducer(e,t,n)},w.useRef=function(e){return Se().useRef(e)},w.useState=function(e){return Se().useState(e)},w.useSyncExternalStore=function(e,t,n){return Se().useSyncExternalStore(e,t,n)},w.useTransition=function(){return Se().useTransition()},w.version="18.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),E.exports);var S,T=y.exports;
|
|
11
20
|
/**
|
|
12
21
|
* @license React
|
|
13
22
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,7 +25,7 @@
|
|
|
16
25
|
*
|
|
17
26
|
* This source code is licensed under the MIT license found in the
|
|
18
27
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
28
|
+
*/var C,P={};
|
|
20
29
|
/**
|
|
21
30
|
* @license React
|
|
22
31
|
* react-jsx-runtime.development.js
|
|
@@ -25,5 +34,32 @@
|
|
|
25
34
|
*
|
|
26
35
|
* This source code is licensed under the MIT license found in the
|
|
27
36
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/"production"===process.env.NODE_ENV?Pl.exports=function(){if(Ml)return Tl;Ml=1;var t=Vl,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:e,type:t,key:u,ref:c,props:l,_owner:o.current}}return Tl.Fragment=n,Tl.jsx=a,Tl.jsxs=a,Tl}():Pl.exports=(Ll||(Ll=1,"production"!==process.env.NODE_ENV&&function(){var t=Vl,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator",g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(e+="%s",n=n.concat([o]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var y,_=!1,b=!1,x=!1,w=!1,E=!1;function S(t){return t.displayName||"Context"}function k(t){if(null==t)return null;if("number"==typeof t.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case s:return S(t)+".Consumer";case a:return S(t._context)+".Provider";case l:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:k(t.type)||"Memo";case p:var f=t,h=f._payload,m=f._init;try{return k(m(h))}catch{return null}}return null}y=Symbol.for("react.module.reference");var C,P,T,R,A,O,D,F=Object.assign,j=0;function M(){}M.__reactDisabledLog=!0;var V,L=g.ReactCurrentDispatcher;function N(t,e,n){if(void 0===V)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||""}return"\n"+V+t}var I,B=!1,z="function"==typeof WeakMap?WeakMap:Map;function U(t,e){if(!t||B)return"";var n,r=I.get(t);if(void 0!==r)return r;B=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===j){C=console.log,P=console.info,T=console.warn,R=console.error,A=console.group,O=console.groupCollapsed,D=console.groupEnd;var t={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}j++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{B=!1,L.current=o,function(){if(0==--j){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},t,{value:C}),info:F({},t,{value:P}),warn:F({},t,{value:T}),error:F({},t,{value:R}),group:F({},t,{value:A}),groupCollapsed:F({},t,{value:O}),groupEnd:F({},t,{value:D})})}j<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",f=p?N(p):"";return"function"==typeof t&&I.set(t,f),f}function $(t,e,n){if(null==t)return"";if("function"==typeof t)return U(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return N(t);switch(t){case u:return N("Suspense");case c:return N("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case l:return function(t,e,n){return U(t,!1)}(t.render);case d:return $(t.type,e,n);case p:var r=t,o=r._payload,i=r._init;try{return $(i(o),e,n)}catch{}}return""}I=new z;var W=Object.prototype.hasOwnProperty,Z={},G=g.ReactDebugCurrentFrame;function H(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function q(t){return Y(t)}function K(t){return""+t}function X(t){if(function(t){try{return K(t),!1}catch{return!0}}(t))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),K(t)}var Q,J,tt,et=g.ReactCurrentOwner,nt={key:!0,ref:!0,__self:!0,__source:!0};tt={};var rt=function(t,n,r,o,i,a,s){var l={$$typeof:e,type:t,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ot(t,e,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(X(n),s=""+n),function(t){if(W.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(X(e.key),s=""+e.key),function(t){if(W.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&et.current&&e&&et.current.stateNode!==e){var n=k(et.current.type);tt[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(et.current.type),t.ref),tt[n]=!0)}}(e,o)),e)W.call(e,i)&&!nt.hasOwnProperty(i)&&(a[i]=e[i]);if(t&&t.defaultProps){var u=t.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(s||l){var c="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&function(t,e){var n=function(){Q||(Q=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(a,c),l&&function(t,e){var n=function(){J||(J=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(a,c)}return rt(t,s,l,o,r,et.current,a)}var it,at=g.ReactCurrentOwner,st=g.ReactDebugCurrentFrame;function lt(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);st.setExtraStackFrame(n)}else st.setExtraStackFrame(null)}function ut(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function ct(){if(at.current){var t=k(at.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}it=!1;var dt={};function pt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=ct();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!dt[n]){dt[n]=!0;var r="";t&&t._owner&&t._owner!==at.current&&(r=" It was passed a child from "+k(t._owner.type)+"."),lt(t),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),lt(null)}}}function ft(t,e){if("object"==typeof t)if(q(t))for(var n=0;n<t.length;n++){var r=t[n];ut(r)&&pt(r,e)}else if(ut(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=h&&t[h]||t[m];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)ut(i.value)&&pt(i.value,e)}}function ht(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=k(n);!function(t,e,n,r,o){var i=Function.call.bind(W);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&(H(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),H(null)),s instanceof Error&&!(s.message in Z)&&(Z[s.message]=!0,H(o),v("Failed %s type: %s",n,s.message),H(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||it||(it=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mt(t,n,h,m,g,S){var C=function(t){return!!("string"==typeof t||"function"==typeof t||t===r||t===i||E||t===o||t===u||t===c||w||t===f||_||b||x||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===y||void 0!==t.getModuleId))}(t);if(!C){var P="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(P+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T,R=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(g);P+=R||ct(),null===t?T="null":q(t)?T="array":void 0!==t&&t.$$typeof===e?(T="<"+(k(t.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):T=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,P)}var A=ot(t,n,h,g,S);if(null==A)return A;if(C){var O=n.children;if(void 0!==O)if(m)if(q(O)){for(var D=0;D<O.length;D++)ft(O[D],t);Object.freeze&&Object.freeze(O)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ft(O,t)}return t===r?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){lt(t),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),lt(null);break}}null!==t.ref&&(lt(t),v("Invalid attribute `ref` supplied to `React.Fragment`."),lt(null))}(A):ht(A),A}var gt=function(t,e,n){return mt(t,e,n,!1)},vt=function(t,e,n){return mt(t,e,n,!0)};Nl.Fragment=r,Nl.jsx=gt,Nl.jsxs=vt}()),Nl);const Il=Pl.exports.jsx;function Bl(...t){return t.filter(Boolean).map((t=>t.trim())).join(" ")}const zl=Vl.forwardRef((({icon:t,onClick:e,as:n,weight:r,fill:o=!1,grade:i,size:a,style:s,color:l,className:u,...c},d)=>{const p=void 0!==e?"button":n??"span",f={color:l,...s};return o&&(f.fontVariationSettings=[f.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),r&&(f.fontVariationSettings=[f.fontVariationSettings,`"wght" ${r}`].filter(Boolean).join(", ")),i&&(f.fontVariationSettings=[f.fontVariationSettings,`"GRAD" ${i}`].filter(Boolean).join(", ")),a&&(f.fontVariationSettings=[f.fontVariationSettings,`"opsz" ${a}`].filter(Boolean).join(", "),f.fontSize=a),Il(p,{...c,ref:d,style:f,onClick:e,className:Bl("material-symbols",u),children:t})}));var Ul={regularMobile:20,regular:24,large:40,xlarge:48},$l={mobileRegularNormal:400,mobileRegularMedium:500,light:200,normal:300,medium:400},Wl=function(e){var n,r=e.size,o=void 0===r?"regular":r,s=e.weight,l=void 0===s?"normal":s,u=a(e,["size","weight"]),c=El().width<768,d=c&&"regular"===o?Ul.regularMobile:Ul[o],p="regular"===o&&c?$l["mobileRegular".concat((n=l,n.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))))]:$l[l];return t.createElement(zl,i({size:d,weight:p},u))},Zl={container:"callout-module_container__fvs15","container--info":"callout-module_container--info__DzX28","container--warning":"callout-module_container--warning__pqM-v","container--error":"callout-module_container--error__TVH7B"};u(".callout-module_container__fvs15 {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-2);\n padding-right: var(--product-spacing-4);\n gap: var(--product-spacing-2);\n border-radius: var(--product-radius-2);\n}\n\n.callout-module_container--info__DzX28 {\n background-color: var(--product-light-blue-20);\n color: var(--product-light-blue-100);\n}\n\n.callout-module_container--warning__pqM-v {\n\n}\n\n.callout-module_container--error__TVH7B {\n \n}\n");var Gl={Root:function(e){var n=e.type,r=void 0===n?"info":n,o=e.children;return t.createElement("div",{className:l(Zl.container,Zl["container--".concat(r)])},o)},Icon:function(e){return t.createElement(Wl,i({},e))},Text:function(e){var n=e.children,r=a(e,["children"]);return t.createElement(p,i({},r),n)}};exports.Button=function(e){var n=e.as,r=e.children,o=e.variant,s=void 0===o?"primary":o,u=e.className,d=void 0===u?"":u,f=e.visualType,h=void 0===f?"button":f,m=e.onlyIcon,g=a(e,["as","children","variant","className","visualType","onlyIcon"]),v=n||"button";return t.createElement(v,i({className:l(c[d],c[s],c[h],m&&c["only-icon"])},g),m&&r,!m&&t.createElement(p,{variant:"form-button"},r))},exports.Callout=Gl,exports.Columns=function(e){var n=e.cols,r=e.children;return t.createElement("div",{className:f,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},exports.DatePicker=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(w,i({},l,{field:i({},n)}))}})},exports.Disclosure=function(e){var n=e.condition,r=e.children;return t.createElement(Ba.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:za},r)},exports.Form=function(n){var r=n.methods,o=n.children,s=n.onSubmit,l=a(n,["methods","children","onSubmit"]);return t.createElement(e.FormProvider,i({},r),t.createElement("form",i({className:Ua,onSubmit:r.handleSubmit((function(t){return s(t)}))},l),o))},exports.Icon=Wl,exports.NumberField=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(qa,i({},l,{field:i({},n)}))}})},exports.RadioGroup=al,exports.Range=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(hl,i({},l,{field:i({},n)}))}})},exports.Select=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(wl,i({},l,{field:i({},n)}))}})},exports.TextField=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(Cl,i({},l,{field:i({},n)}))}})},exports.Typography=p;
|
|
37
|
+
*/"production"===process.env.NODE_ENV?g.exports=function(){if(S)return v;S=1;var e=T,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return v.Fragment=n,v.jsx=a,v.jsxs=a,v}():g.exports=(C||(C=1,"production"!==process.env.NODE_ENV&&function(){var e=T,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator",g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(t+="%s",n=n.concat([o]));var i=n.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var y,_=!1,b=!1,x=!1,w=!1,E=!1;function S(e){return e.displayName||"Context"}function C(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return S(e)+".Consumer";case a:return S(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:C(e.type)||"Memo";case p:var f=e,h=f._payload,m=f._init;try{return C(m(h))}catch{return null}}return null}y=Symbol.for("react.module.reference");var R,k,O,A,D,M,L,F=Object.assign,V=0;function j(){}j.__reactDisabledLog=!0;var N,I=g.ReactCurrentDispatcher;function z(e,t,n){if(void 0===N)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);N=r&&r[1]||""}return"\n"+N+e}var B,U=!1,W="function"==typeof WeakMap?WeakMap:Map;function $(e,t){if(!e||U)return"";var n,r=B.get(e);if(void 0!==r)return r;U=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=I.current,I.current=null,function(){if(0===V){R=console.log,k=console.info,O=console.warn,A=console.error,D=console.group,M=console.groupCollapsed,L=console.groupEnd;var e={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&B.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{U=!1,I.current=o,function(){if(0==--V){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:R}),info:F({},e,{value:k}),warn:F({},e,{value:O}),error:F({},e,{value:A}),group:F({},e,{value:D}),groupCollapsed:F({},e,{value:M}),groupEnd:F({},e,{value:L})})}V<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",f=p?z(p):"";return"function"==typeof e&&B.set(e,f),f}function H(e,t,n){if(null==e)return"";if("function"==typeof e)return $(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return z(e);switch(e){case u:return z("Suspense");case c:return z("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return function(e,t,n){return $(e,!1)}(e.render);case d:return H(e.type,t,n);case p:var r=e,o=r._payload,i=r._init;try{return H(i(o),t,n)}catch{}}return""}B=new W;var Z=Object.prototype.hasOwnProperty,q={},K=g.ReactDebugCurrentFrame;function G(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Y=Array.isArray;function X(e){return Y(e)}function Q(e){return""+e}function J(e){if(function(e){try{return Q(e),!1}catch{return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Q(e)}var ee,te,ne,re=g.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,n,r,o,i,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(J(n),s=""+n),function(e){if(Z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(J(t.key),s=""+t.key),function(e){if(Z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=C(re.current.type);ne[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',C(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)Z.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(s||l){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){ee||(ee=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,c),l&&function(e,t){var n=function(){te||(te=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,c)}return ie(e,s,l,o,r,re.current,a)}var se,le=g.ReactCurrentOwner,ue=g.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);ue.setExtraStackFrame(n)}else ue.setExtraStackFrame(null)}function de(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function pe(){if(le.current){var e=C(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var fe={};function he(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=pe();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!fe[n]){fe[n]=!0;var r="";e&&e._owner&&e._owner!==le.current&&(r=" It was passed a child from "+C(e._owner.type)+"."),ce(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ce(null)}}}function me(e,t){if("object"==typeof e)if(X(e))for(var n=0;n<e.length;n++){var r=e[n];de(r)&&he(r,t)}else if(de(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)de(i.value)&&he(i.value,t)}}function ge(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=C(n);!function(e,t,n,r,o){var i=Function.call.bind(Z);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}s&&!(s instanceof Error)&&(G(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),G(null)),s instanceof Error&&!(s.message in q)&&(q[s.message]=!0,G(o),v("Failed %s type: %s",n,s.message),G(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||se||(se=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ve(e,n,h,m,g,S){var T=function(e){return!!("string"==typeof e||"function"==typeof e||e===r||e===i||E||e===o||e===u||e===c||w||e===f||_||b||x||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===y||void 0!==e.getModuleId))}(e);if(!T){var P="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(P+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R,k=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);P+=k||pe(),null===e?R="null":X(e)?R="array":void 0!==e&&e.$$typeof===t?(R="<"+(C(e.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,P)}var O=ae(e,n,h,g,S);if(null==O)return O;if(T){var A=n.children;if(void 0!==A)if(m)if(X(A)){for(var D=0;D<A.length;D++)me(A[D],e);Object.freeze&&Object.freeze(A)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else me(A,e)}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ce(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ce(null);break}}null!==e.ref&&(ce(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(O):ge(O),O}var ye=function(e,t,n){return ve(e,t,n,!1)},_e=function(e,t,n){return ve(e,t,n,!0)};P.Fragment=r,P.jsx=ye,P.jsxs=_e}()),P);const R=g.exports.jsx;function k(...e){return e.filter(Boolean).map((e=>e.trim())).join(" ")}const O=T.forwardRef((({icon:e,onClick:t,as:n,weight:r,fill:o=!1,grade:i,size:a,style:s,color:l,className:u,...c},d)=>{const p=void 0!==t?"button":n??"span",f={color:l,...s};return o&&(f.fontVariationSettings=[f.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),r&&(f.fontVariationSettings=[f.fontVariationSettings,`"wght" ${r}`].filter(Boolean).join(", ")),i&&(f.fontVariationSettings=[f.fontVariationSettings,`"GRAD" ${i}`].filter(Boolean).join(", ")),a&&(f.fontVariationSettings=[f.fontVariationSettings,`"opsz" ${a}`].filter(Boolean).join(", "),f.fontSize=a),R(p,{...c,ref:d,style:f,onClick:t,className:k("material-symbols",u),children:e})}));function A(){var t=e.useState({width:600,height:void 0}),n=t[0],r=t[1];return e.useEffect((function(){function e(){r({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",e,{passive:!0}),e(),function(){return window.removeEventListener("resize",e)}}),[]),n}var D={regularMobile:20,regular:24,large:40,xlarge:48},M={mobileRegularNormal:400,mobileRegularMedium:500,light:200,normal:300,medium:400},L=function(t){var n,r=t.size,o=void 0===r?"regular":r,i=t.weight,l=void 0===i?"normal":i,u=s(t,["size","weight"]),c=A().width<768,d=c&&"regular"===o?D.regularMobile:D[o],p="regular"===o&&c?M["mobileRegular".concat((n=l,n.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))))]:M[l];return e.createElement(O,a({size:d,weight:p},u))},F={container:"callout-module_container__fvs15","container--info":"callout-module_container--info__DzX28","container--warning":"callout-module_container--warning__pqM-v","container--error":"callout-module_container--error__TVH7B"};c(".callout-module_container__fvs15 {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-2);\n padding-right: var(--product-spacing-4);\n gap: var(--product-spacing-2);\n border-radius: var(--product-radius-2);\n}\n\n.callout-module_container--info__DzX28 {\n background-color: var(--product-light-blue-20);\n color: var(--product-light-blue-100);\n}\n\n.callout-module_container--warning__pqM-v {\n\n}\n\n.callout-module_container--error__TVH7B {\n \n}\n");var V={Root:function(t){var n=t.type,r=void 0===n?"info":n,o=t.children;return e.createElement("div",{className:u(F.container,F["container--".concat(r)])},o)},Icon:function(t){return e.createElement(L,a({},t))},Text:function(t){var n=t.children,r=s(t,["children"]);return e.createElement(f,a({},r),n)}},j="columns-module_container__ycx3n";c(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var N="datepicker-module_container__H0Ck-",I="datepicker-module_input__tm5uo",z="datepicker-module_input--error__D6wsy";c(".datepicker-module_container__H0Ck- {\n display: flex;\n flex-direction: column;\n}\n\n.datepicker-module_input__tm5uo {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.datepicker-module_input--error__D6wsy {\n border: 2px solid var(--product-error);\n}\n\n\n\n.datepicker-module_error__vTdEl {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__wCkZn {\n margin-bottom: var(--product-spacing-3);\n}\n\n @media (min-width: 768px) {\n .datepicker-module_input__tm5uo {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var B="formField-module_container__aujOq",U="formField-module_label__33XVl",W="formField-module_helper__b9-xP",$="formField-module_error__yqBU1";c(".formField-module_container__aujOq {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__33XVl {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__b9-xP {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__yqBU1 {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n @media (min-width: 768px) {\n .formField-module_helper__b9-xP, .formField-module_error__yqBU1 {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n\n}\n");var H=function(t){var n=t.id,r=t.error,o=t.helper,i=t.label,a=t.children;return e.createElement("div",{className:B},e.createElement(f,{as:"label",variant:"form-input-normal",className:U,htmlFor:n},i),a,o&&e.createElement(f,{variant:"form-helper",className:W},o),r&&e.createElement(f,{variant:"form-helper",className:$},r))},Z=function(t){var n=t.field,r=t.error,o=t.helper,i=s(t,["field","error","helper"]);return e.createElement(H,{id:i.id,label:i.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},e.createElement("div",{className:N},e.createElement("input",a({className:u(I,r&&z),type:"date",id:i.id},n))))};const q=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),K=e.createContext({}),G=e.createContext(null),Y="undefined"!=typeof document,X=Y?e.useLayoutEffect:e.useEffect,Q=e.createContext({strict:!1}),J=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ee="data-"+J("framerAppearId"),te=!1,ne=!1;class re{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const oe=["prepare","read","update","preRender","render","postRender"];function ie(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=oe.reduce(((e,t)=>(e[t]=function(e){let t=new re,n=new re,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,u=l?t:n;return i&&a.add(e),u.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];a.has(r)&&(s.schedule(r),e()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),e)),{}),a=e=>{i[e].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,oe.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))};return{schedule:oe.reduce(((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t}),{}),cancel:e=>oe.forEach((t=>i[t].cancel(e))),state:o,steps:i}}const{schedule:ae,cancel:se}=ie(queueMicrotask,!1);function le(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ue(e){return"string"==typeof e||Array.isArray(e)}function ce(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const de=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pe=["initial",...de];function fe(e){return ce(e.animate)||pe.some((t=>ue(e[t])))}function he(e){return Boolean(fe(e)||e.variants)}function me(t){const{initial:n,animate:r}=function(e,t){if(fe(e)){const{initial:t,animate:n}=e;return{initial:!1===t||ue(t)?t:void 0,animate:ue(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(K));return e.useMemo((()=>({initial:n,animate:r})),[ge(n),ge(r)])}function ge(e){return Array.isArray(e)?e.join(" "):e}const ve={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ye={};for(const e in ve)ye[e]={isEnabled:t=>ve[e].some((e=>!!t[e]))};const _e=e.createContext({}),be=e.createContext({}),xe=Symbol.for("motionComponentSymbol");function we({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:a}){t&&function(e){for(const t in e)ye[t]={...ye[t],...e[t]}}(t);const s=e.forwardRef((function(s,l){let u;const c={...e.useContext(q),...s,layoutId:Ee(s)},{isStatic:d}=c,p=me(s),f=i(s,d);if(!d&&Y){p.visualElement=function(t,n,r,o){const{visualElement:i}=e.useContext(K),a=e.useContext(Q),s=e.useContext(G),l=e.useContext(q).reducedMotion,u=e.useRef();o=o||a.renderer,!u.current&&o&&(u.current=o(t,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;e.useInsertionEffect((()=>{c&&c.update(r,s)}));const d=e.useRef(Boolean(r[ee]&&!window.HandoffComplete));return X((()=>{c&&(ae.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),e.useEffect((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(a,f,c,n);const r=e.useContext(be),o=e.useContext(Q).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,o,t,r))}return o.createElement(K.Provider,{value:p},u&&p.visualElement?o.createElement(u,{visualElement:p.visualElement,...c}):null,r(a,s,function(t,n,r){return e.useCallback((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):le(r)&&(r.current=e))}),[n])}(f,p.visualElement,l),f,d,p.visualElement))}));return s[xe]=a,s}function Ee({layoutId:t}){const n=e.useContext(_e).id;return n&&void 0!==t?n+"-"+t:t}function Se(e){function t(t,n={}){return we(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Te=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ce(e){return"string"==typeof e&&!e.includes("-")&&!!(Te.indexOf(e)>-1||/[A-Z]/.test(e))}const Pe={};const Re=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ke=new Set(Re);function Oe(e,{layout:t,layoutId:n}){return ke.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Pe[e]||"opacity"===e)}const Ae=e=>Boolean(e&&e.getVelocity),De={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Me=Re.length;const Le=e=>t=>"string"==typeof t&&t.startsWith(e),Fe=Le("--"),Ve=Le("var(--"),je=e=>!!Ve(e)&&Ne.test(e.split("/*")[0].trim()),Ne=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Ie=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ze=(e,t,n)=>n>t?t:n<e?e:n,Be={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ue={...Be,transform:e=>ze(0,1,e)},We={...Be,default:1},$e=e=>Math.round(1e5*e)/1e5,He=/(-)?([\d]*\.?[\d])+/g,Ze=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,qe=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ke(e){return"string"==typeof e}const Ge=e=>({test:t=>Ke(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ye=Ge("deg"),Xe=Ge("%"),Qe=Ge("px"),Je=Ge("vh"),et=Ge("vw"),tt={...Xe,parse:e=>Xe.parse(e)/100,transform:e=>Xe.transform(100*e)},nt={...Be,transform:Math.round},rt={borderWidth:Qe,borderTopWidth:Qe,borderRightWidth:Qe,borderBottomWidth:Qe,borderLeftWidth:Qe,borderRadius:Qe,radius:Qe,borderTopLeftRadius:Qe,borderTopRightRadius:Qe,borderBottomRightRadius:Qe,borderBottomLeftRadius:Qe,width:Qe,maxWidth:Qe,height:Qe,maxHeight:Qe,size:Qe,top:Qe,right:Qe,bottom:Qe,left:Qe,padding:Qe,paddingTop:Qe,paddingRight:Qe,paddingBottom:Qe,paddingLeft:Qe,margin:Qe,marginTop:Qe,marginRight:Qe,marginBottom:Qe,marginLeft:Qe,rotate:Ye,rotateX:Ye,rotateY:Ye,rotateZ:Ye,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:Ye,skewX:Ye,skewY:Ye,distance:Qe,translateX:Qe,translateY:Qe,translateZ:Qe,x:Qe,y:Qe,z:Qe,perspective:Qe,transformPerspective:Qe,opacity:Ue,originX:tt,originY:tt,originZ:Qe,zIndex:nt,fillOpacity:Ue,strokeOpacity:Ue,numOctaves:nt};function ot(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const e in t){const n=t[e];if(Fe(e)){i[e]=n;continue}const r=rt[e],d=Ie(n,r);if(ke.has(e)){if(l=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Me;t++){const n=Re[t];void 0!==e[n]&&(i+=`${De[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const it=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function at(e,t,n){for(const r in t)Ae(t[r])||Oe(r,n)||(e[r]=t[r])}function st(t,n,r){const o={};return at(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n,r){return e.useMemo((()=>{const e=it();return ot(e,n,{enableHardwareAcceleration:!r},t),Object.assign({},e.vars,e.style)}),[n])}(t,n,r)),o}function lt(e,t,n){const r={},o=st(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const ut=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ct(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ut.has(e)}let dt=e=>!ct(e);try{(pt=require("@emotion/is-prop-valid").default)&&(dt=e=>e.startsWith("on")?!ct(e):pt(e))}catch(e){}var pt;function ft(e,t,n){return"string"==typeof e?e:Qe.transform(t+n*e)}const ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},mt={offset:"strokeDashoffset",array:"strokeDasharray"};function gt(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(ot(e,u,c,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${ft(t,e.x,e.width)} ${ft(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?ht:mt;e[i.offset]=Qe.transform(-r);const a=Qe.transform(t),s=Qe.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const vt=()=>({...it(),attrs:{}}),yt=e=>"string"==typeof e&&"svg"===e.toLowerCase();function _t(t,n,r,o){const i=e.useMemo((()=>{const e=vt();return gt(e,n,{enableHardwareAcceleration:!1},yt(o),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};at(e,t.style,t),i.style={...e,...i.style}}return i}function bt(t=!1){return(n,r,o,{latestValues:i},a)=>{const s=(Ce(n)?_t:lt)(r,i,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(dt(o)||!0===n&&ct(o)||!t&&!ct(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),u=n!==e.Fragment?{...l,...s,ref:o}:{},{children:c}=r,d=e.useMemo((()=>Ae(c)?c.get():c),[c]);return e.createElement(n,{...u,children:d})}}function xt(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const wt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Et(e,t,n,r){xt(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(wt.has(n)?n:J(n),t.attrs[n])}function St(e,t){const{style:n}=e,r={};for(const o in n)(Ae(n[o])||t.style&&Ae(t.style[o])||Oe(o,e))&&(r[o]=n[o]);return r}function Tt(e,t){const n=St(e,t);for(const r in e)if(Ae(e[r])||Ae(t[r])){n[-1!==Re.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Ct(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const Pt=e=>Array.isArray(e),Rt=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),kt=e=>Pt(e)?e[e.length-1]||0:e;function Ot(e){const t=Ae(e)?e.get():e;return Rt(t)?t.toValue():t}const At=t=>(n,r)=>{const o=e.useContext(K),i=e.useContext(G),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Dt(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(t,n,o,i);return r?a():function(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}(a)};function Dt(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Ot(i[e]);let{initial:a,animate:s}=e;const l=fe(e),u=he(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!ce(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Ct(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const Mt=e=>e,{schedule:Lt,cancel:Ft,state:Vt,steps:jt}=ie("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Mt,!0),Nt={useVisualState:At({scrapeMotionValuesFromProps:Tt,createRenderState:vt,onMount:(e,t,{renderState:n,latestValues:r})=>{Lt.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Lt.render((()=>{gt(n,r,{enableHardwareAcceleration:!1},yt(t.tagName),e.transformTemplate),Et(t,n)}))}})},It={useVisualState:At({scrapeMotionValuesFromProps:St,createRenderState:it})};function zt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Bt=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Ut(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Wt=e=>t=>Bt(t)&&e(t,Ut(t));function $t(e,t,n,r){return zt(e,t,Wt(n),r)}const Ht=(e,t)=>n=>t(e(n)),Zt=(...e)=>e.reduce(Ht);function qt(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Kt=qt("dragHorizontal"),Gt=qt("dragVertical");function Yt(e){let t=!1;if("y"===e)t=Gt();else if("x"===e)t=Kt();else{const e=Kt(),n=Gt();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Xt(){const e=Yt(!0);return!e||(e(),!1)}class Qt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Jt(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return $t(e.current,n,((n,o)=>{if("touch"===n.pointerType||Xt())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Lt.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const en=(e,t)=>!!t&&(e===t||en(e,t.parentElement));function tn(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ut(n))}const nn=new WeakMap,rn=new WeakMap,on=e=>{const t=nn.get(e.target);t&&t(e)},an=e=>{e.forEach(on)};function sn(e,t,n){const r=function({root:e,...t}){const n=e||document;rn.has(n)||rn.set(n,{});const r=rn.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(an,{root:e,...t})),r[o]}(t);return nn.set(e,n),r.observe(e),()=>{nn.delete(e),r.unobserve(e)}}const ln={some:0,all:1};const un={inView:{Feature:class extends Qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ln[r]};return sn(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Qt{constructor(){super(...arguments),this.removeStartListeners=Mt,this.removeEndListeners=Mt,this.removeAccessibleListeners=Mt,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=$t(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();Lt.update((()=>{o||en(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=$t(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Zt(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=zt(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=zt(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&tn("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Lt.update((()=>n(e,t)))}))})),tn("down",((e,t)=>{this.startPress(e,t)}))})),t=zt(this.node.current,"blur",(()=>{this.isPressing&&tn("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Zt(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Lt.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xt()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Lt.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=$t(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=zt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Zt(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Qt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zt(zt(this.node.current,"focus",(()=>this.onFocus())),zt(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Qt{mount(){this.unmount=Zt(Jt(this.node,!0),Jt(this.node,!1))}unmount(){}}}};function cn(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function dn(e,t,n){const r=e.getProps();return Ct(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}let pn=Mt,fn=Mt;"production"!==process.env.NODE_ENV&&(pn=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},fn=(e,t)=>{if(!e)throw new Error(t)});const hn=e=>1e3*e,mn=e=>e/1e3,gn=!1,vn=e=>Array.isArray(e)&&"number"==typeof e[0];function yn(e){return Boolean(!e||"string"==typeof e&&bn[e]||vn(e)||Array.isArray(e)&&e.every(yn))}const _n=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_n([0,.65,.55,1]),circOut:_n([.55,0,1,.45]),backIn:_n([.31,.01,.66,-.59]),backOut:_n([.33,1.53,.69,.99])};function xn(e){if(e)return vn(e)?_n(e):Array.isArray(e)?e.map(xn):bn[e]}const wn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,En=1e-7,Sn=12;function Tn(e,t,n,r){if(e===t&&n===r)return Mt;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=wn(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>En&&++s<Sn);return a}(t,0,1,e,n);return e=>0===e||1===e?e:wn(o(e),t,r)}const Cn=Tn(.42,0,1,1),Pn=Tn(0,0,.58,1),Rn=Tn(.42,0,.58,1),kn=e=>Array.isArray(e)&&"number"!=typeof e[0],On=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,An=e=>t=>1-e(1-t),Dn=e=>1-Math.sin(Math.acos(e)),Mn=An(Dn),Ln=On(Dn),Fn=Tn(.33,1.53,.69,.99),Vn=An(Fn),jn=On(Vn),Nn={linear:Mt,easeIn:Cn,easeInOut:Rn,easeOut:Pn,circIn:Dn,circInOut:Ln,circOut:Mn,backIn:Vn,backInOut:jn,backOut:Fn,anticipate:e=>(e*=2)<1?.5*Vn(e):.5*(2-Math.pow(2,-10*(e-1)))},In=e=>{if(Array.isArray(e)){fn(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Tn(t,n,r,o)}return"string"==typeof e?(fn(void 0!==Nn[e],`Invalid easing type '${e}'`),Nn[e]):e},zn=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Bn=(e,t,n)=>e+(t-e)*n;function Un(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Wn=(e,t)=>n=>Boolean(Ke(n)&&qe.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$n=(e,t,n)=>r=>{if(!Ke(r))return r;const[o,i,a,s]=r.match(He);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Hn={...Be,transform:e=>Math.round((e=>ze(0,255,e))(e))},Zn={test:Wn("rgb","red"),parse:$n("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Hn.transform(e)+", "+Hn.transform(t)+", "+Hn.transform(n)+", "+$e(Ue.transform(r))+")"};const qn={test:Wn("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Zn.transform},Kn={test:Wn("hsl","hue"),parse:$n("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xe.transform($e(t))+", "+Xe.transform($e(n))+", "+$e(Ue.transform(r))+")"},Gn=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Yn=[qn,Zn,Kn];function Xn(e){const t=(e=>Yn.find((t=>t.test(e))))(e);fn(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Kn&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Un(s,r,e+1/3),i=Un(s,r,e),a=Un(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const Qn=(e,t)=>{const n=Xn(e),r=Xn(t),o={...n};return e=>(o.red=Gn(n.red,r.red,e),o.green=Gn(n.green,r.green,e),o.blue=Gn(n.blue,r.blue,e),o.alpha=Bn(n.alpha,r.alpha,e),Zn.transform(o))},Jn={test:e=>Zn.test(e)||qn.test(e)||Kn.test(e),parse:e=>Zn.test(e)?Zn.parse(e):Kn.test(e)?Kn.parse(e):qn.parse(e),transform:e=>Ke(e)?e:e.hasOwnProperty("red")?Zn.transform(e):Kn.transform(e)};const er="number",tr="color",nr="var",rr="var(",or="${}",ir=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function ar(e){const t=e.toString(),n=t.match(ir)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let e=0;e<n.length;e++){const t=n[e];Jn.test(t)?(o.color.push(e),i.push(tr),r.push(Jn.parse(t))):t.startsWith(rr)?(o.var.push(e),i.push(nr),r.push(t)):(o.number.push(e),i.push(er),r.push(parseFloat(t)))}return{values:r,split:t.replace(ir,or).split(or),indexes:o,types:i}}function sr(e){return ar(e).values}function lr(e){const{split:t,types:n}=ar(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===er?$e(e[i]):t===tr?Jn.transform(e[i]):e[i]}return o}}const ur=e=>"number"==typeof e?0:e;const cr={test:function(e){var t,n;return isNaN(e)&&Ke(e)&&((null===(t=e.match(He))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Ze))||void 0===n?void 0:n.length)||0)>0},parse:sr,createTransformer:lr,getAnimatableNone:function(e){const t=sr(e);return lr(e)(t.map(ur))}};function dr(e,t){return n=>n>0?t:e}function pr(e,t){return n=>Bn(e,t,n)}function fr(e){return"number"==typeof e?pr:"string"==typeof e?je(e)?dr:Jn.test(e)?Qn:gr:Array.isArray(e)?hr:"object"==typeof e?Jn.test(e)?Qn:mr:dr}function hr(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>fr(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function mr(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=fr(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const gr=(e,t)=>{const n=cr.createTransformer(t),r=ar(e),o=ar(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Zt(hr(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(pn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),dr(e,t))};function vr(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Bn(e,t,n);return fr(e)(e,t)}function yr(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(fn(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||vr,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Mt:t;i=Zt(e,i)}r.push(i)}return r}(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=zn(e[n],e[n+1],t);return a[n](r)};return n?t=>l(ze(e[0],e[i-1],t)):l}function _r(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=zn(0,t,r);e.push(Bn(n,1,o))}}(t,e.length-1),t}function br({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=kn(r)?r.map(In):In(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:_r(t),e),s=yr(a,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map((()=>u||Rn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function xr(e,t){return t?e*(1e3/t):0}const wr=5;function Er(e,t,n){const r=Math.max(t-wr,0);return xr(n-e(r),t-r)}const Sr=.001,Tr=.01,Cr=10,Pr=.05,Rr=1;function kr({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;pn(e<=hn(Cr),"Spring duration must be 10 seconds or less");let a=1-t;a=ze(Pr,Rr,a),e=ze(Tr,Cr,mn(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Ar(t,a),l=Math.exp(-o);return Sr-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Ar(Math.pow(t,2),a);return(-o(t)+Sr>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Sr,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Or;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=hn(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Or=12;function Ar(e,t){return e*Math.sqrt(1-t*t)}const Dr=["duration","bounce"],Mr=["stiffness","damping","mass"];function Lr(e,t){return t.some((t=>void 0!==e[t]))}function Fr({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Lr(e,Mr)&&Lr(e,Dr)){const n=kr(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-mn(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(s*u)),m=i-o,g=mn(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),h<1){const e=Ar(g,h);y=t=>{const n=Math.exp(-h*g*t);return i-n*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)y=e=>i-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(h*h-1);y=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((f+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:p&&c||null,next:e=>{const r=y(e);if(p)a.done=e>=c;else{let o=f;0!==e&&(o=h<1?Er(y,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Vr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/r),y=e=>g+v(e),_=e=>{const t=v(e),n=y(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let b,x;const w=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(p.value)&&(b=e,x=Fr({keyframes:[p.value,f(p.value)],velocity:Er(y,e,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==b||(t=!0,_(e),w(e)),void 0!==b&&e>b?x.next(e-b):(!t&&_(e),p)}}}let jr;function Nr(){jr=void 0}const Ir={now:()=>(void 0===jr&&Ir.set(Vt.isProcessing||ne?Vt.timestamp:performance.now()),jr),set:e=>{jr=e,queueMicrotask(Nr)}},zr=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Lt.update(t,!0),stop:()=>Ft(t),now:()=>Vt.isProcessing?Vt.timestamp:Ir.now()}},Br=2e4;function Ur(e){let t=0;let n=e.next(t);for(;!n.done&&t<Br;)t+=50,n=e.next(t);return t>=Br?1/0:t}const Wr={decay:Vr,inertia:Vr,tween:br,keyframes:br,spring:Fr},$r=e=>e/100;function Hr({autoplay:e=!0,delay:t=0,driver:n=zr,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let f,h,m=1,g=!1;const v=()=>{h=new Promise((e=>{f=e}))};let y;v();const _=Wr[o]||br;let b;_!==br&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&fn(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=Zt($r,vr(r[0],r[1])),r=[0,100]);const x=_({...p,keyframes:r});let w;"mirror"===s&&(w=_({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let E="idle",S=null,T=null,C=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ur(x));const{calculatedDuration:P}=x;let R=1/0,k=1/0;null!==P&&(R=P+a,k=R*(i+1)-a);let O=0;const A=e=>{if(null===T)return;m>0&&(T=Math.min(T,e)),m<0&&(T=Math.min(e-k/m,T)),O=null!==S?S:Math.round(e-T)*m;const n=O-t*(m>=0?1:-1),o=m>=0?n<0:n>k;O=Math.max(n,0),"finished"===E&&null===S&&(O=k);let l=O,u=x;if(i){const e=Math.min(O,k)/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);Boolean(t%2)&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(u=w)),l=ze(0,1,n)*R}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===P||(p=m>=0?O>=k:O<=0);const f=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),f&&L(),c},D=()=>{y&&y.stop(),y=void 0},M=()=>{E="idle",D(),f(),v(),T=C=null},L=()=>{E="finished",c&&c(),D(),f()},F=()=>{if(g)return;y||(y=n(A));const e=y.now();l&&l(),null!==S?T=e-S:T&&"finished"!==E||(T=e),"finished"===E&&v(),C=T,S=null,E="running",y.start()};e&&F();const V={then:(e,t)=>h.then(e,t),get time(){return mn(O)},set time(e){e=hn(e),O=e,null===S&&y&&0!==m?T=y.now()-e/m:S=e},get duration(){const e=null===x.calculatedDuration?Ur(x):x.calculatedDuration;return mn(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,V.time=mn(O))},get state(){return E},play:F,pause:()=>{E="paused",S=O},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),M())},cancel:()=>{null!==C&&A(C),M()},complete:()=>{E="finished"},sample:e=>(T=0,A(e))};return V}const Zr=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),qr=new Set(["opacity","clipPath","filter","transform"]);function Kr(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Zr()&&qr.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1,l=!1;const u=()=>{a=new Promise((e=>{i=e}))};u();let{keyframes:c,duration:d=300,ease:p,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!yn(t.ease))(t,o)){const e=Hr({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,d=r-10,p="linear"}const h=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=xn(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:d,ease:p,times:f}),m=()=>{l=!1,h.cancel()},g=()=>{l=!0,Lt.update(m),i(),u()};h.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),g())};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(h.timeline=e,h.onfinish=null,Mt),get time(){return mn(h.currentTime||0)},set time(e){h.currentTime=hn(e)},get speed(){return h.playbackRate},set speed(e){h.playbackRate=e},get duration(){return mn(d)},play:()=>{s||(h.play(),Ft(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:t}=h;if(t){const n=Hr({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}g()},complete:()=>{l||h.finish()},cancel:g}}const Gr={type:"spring",stiffness:500,damping:25,restSpeed:10},Yr={type:"keyframes",duration:.8},Xr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Qr=(e,{keyframes:t})=>t.length>2?Yr:ke.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Gr:Xr,Jr=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!cr.test(t)&&"0"!==t||t.startsWith("url("))),eo=new Set(["brightness","contrast","saturate","opacity"]);function to(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(He)||[];if(!r)return e;const o=n.replace(r,"");let i=eo.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const no=/([a-z-]*)\(.*?\)/g,ro={...cr,getAnimatableNone:e=>{const t=e.match(no);return t?t.map(to).join(" "):e}},oo={...rt,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:ro,WebkitFilter:ro},io=e=>oo[e];function ao(e,t){let n=io(e);return n!==ro&&(n=cr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const so=e=>/^0[^.\s]+$/.test(e);function lo(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||so(e):void 0}function uo(e,t){return e[t]||e.default||e}const co=(e,t,n,r={})=>o=>{const i=uo(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=hn(a);const l=function(e,t,n,r){const o=Jr(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),lo(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=ao(t,s);return i}(t,e,n,i),u=l[0],c=l[l.length-1],d=Jr(e,u),p=Jr(e,c);pn(d===p,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(f={...f,...Qr(e,f)}),f.duration&&(f.duration=hn(f.duration)),f.repeatDelay&&(f.repeatDelay=hn(f.repeatDelay)),!d||!p||gn||!1===i.type||te)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Mt,pause:Mt,stop:Mt,then:e=>(e(),Promise.resolve()),cancel:Mt,complete:Mt});return t?Hr({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(f);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Kr(t,e,f);if(n)return n}return Hr(f)};function po(e){return Boolean(Ae(e)&&e.add)}const fo=e=>/^\-?\d*\.?\d+$/.test(e);function ho(e,t){-1===e.indexOf(t)&&e.push(t)}function mo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class go{constructor(){this.subscriptions=[]}add(e){return ho(this.subscriptions,e),()=>mo(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vo=new Set;function yo(e,t,n){e||vo.has(t)||(console.warn(t),n&&console.warn(n),vo.add(t))}class _o{constructor(e,t={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=Ir.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Ir.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==process.env.NODE_ENV&&yo(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new go);const n=this.events[e].add(t);return"change"===e?()=>{n(),Lt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ir.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return xr(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function bo(e,t){return new _o(e,t)}const xo=e=>t=>t.test(e),wo=[Be,Qe,Xe,Ye,et,Je,{test:e=>"auto"===e,parse:e=>e}],Eo=e=>wo.find(xo(e)),So=[...wo,Jn,cr],To=e=>So.find(xo(e));function Co(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bo(n))}function Po(e,t){if(!t)return;return(t[e]||t.default||t).from}function Ro({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ko(e,t){const n=e.get();if(!Array.isArray(t))return n!==t;for(let e=0;e<t.length;e++)if(t[e]!==n)return!0}function Oo(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||c&&Ro(c,t))continue;const a={delay:n,elapsed:0,...uo(i||{},t)};if(window.HandoffAppearAnimations){const n=e.getProps()[ee];if(n){const e=window.HandoffAppearAnimations(n,t,r,Lt);null!==e&&(a.elapsed=e,a.isHandoff=!0)}}let d=!a.isHandoff&&!ko(r,o);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(co(t,r,o,e.shouldReduceMotion&&ke.has(t)?{type:!1}:a));const p=r.animation;po(l)&&(l.add(t),p.then((()=>l.remove(t)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(e,t){const n=dn(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)Co(e,t,kt(i[t]))}(e,a)})),u}function Ao(e,t,n={}){const r=dn(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Oo(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Do).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(Ao(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function Do(e,t){return e.sortNodePosition(t)}const Mo=[...de].reverse(),Lo=de.length;function Fo(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Ao(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Ao(e,t,n);else{const o="function"==typeof t?dn(e,t,n.custom):t;r=Promise.all(Oo(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Vo(e){let t=Fo(e);const n={animate:No(!0),whileInView:No(),whileHover:No(),whileTap:No(),whileDrag:No(),whileFocus:No(),exit:No()};let r=!0;const o=(t,n)=>{const r=dn(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set;let d={},p=1/0;for(let t=0;t<Lo;t++){const f=Mo[t],h=n[f],m=void 0!==s[f]?s[f]:l[f],g=ue(m),v=f===a?h.isActive:null;!1===v&&(p=t);let y=m===l[f]&&m!==s[f]&&g;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===v||!m&&!h.prevProp||ce(m)||"boolean"==typeof m)continue;let _=jo(h.prevProp,m)||f===a&&h.isActive&&!y&&g||t>p&&g,b=!1;const x=Array.isArray(m)?m:[m];let w=x.reduce(o,{});!1===v&&(w={});const{prevResolvedValues:E={}}=h,S={...E,...w},T=e=>{_=!0,c.has(e)&&(b=!0,c.delete(e)),h.needsAnimating[e]=!0};for(const e in S){const t=w[e],n=E[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Pt(t)&&Pt(n)?!cn(t,n):t!==n,r?void 0!==t?T(e):c.add(e):void 0!==t&&c.has(e)?T(e):h.protectedKeys[e]=!0}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&e.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((e=>({animation:e,options:{type:f,...i}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),u.push({animation:t})}let f=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(u):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function jo(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!cn(t,e)}function No(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Io=0;const zo={animation:{Feature:class extends Qt{constructor(e){super(e),e.animationState||(e.animationState=Vo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ce(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Qt{constructor(){super(...arguments),this.id=Io++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Bo=(e,t)=>Math.abs(e-t);class Uo{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Ho(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Bo(e.x,t.x),r=Bo(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Vt;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Wo(t,this.transformPagePoint),Lt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Ho("pointercancel"===e.type?this.lastMoveEventInfo:Wo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Bt(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Wo(Ut(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Vt;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Ho(i,this.history)),this.removeListeners=Zt($t(this.contextWindow,"pointermove",this.handlePointerMove),$t(this.contextWindow,"pointerup",this.handlePointerUp),$t(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ft(this.updatePoint)}}function Wo(e,t){return t?{point:t(e.point)}:e}function $o(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ho({point:e},t){return{point:e,delta:$o(e,qo(t)),offset:$o(e,Zo(t)),velocity:Ko(t,.1)}}function Zo(e){return e[0]}function qo(e){return e[e.length-1]}function Ko(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=qo(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hn(t)));)n--;if(!r)return{x:0,y:0};const i=mn(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Go(e){return e.max-e.min}function Yo(e,t=0,n=.01){return Math.abs(e-t)<=n}function Xo(e,t,n,r=.5){e.origin=r,e.originPoint=Bn(t.min,t.max,e.origin),e.scale=Go(n)/Go(t),(Yo(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Bn(n.min,n.max,e.origin)-e.originPoint,(Yo(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Qo(e,t,n,r){Xo(e.x,t.x,n.x,r?r.originX:void 0),Xo(e.y,t.y,n.y,r?r.originY:void 0)}function Jo(e,t,n){e.min=n.min+t.min,e.max=e.min+Go(t)}function ei(e,t,n){e.min=t.min-n.min,e.max=e.min+Go(t)}function ti(e,t,n){ei(e.x,t.x,n.x),ei(e.y,t.y,n.y)}function ni(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ri(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const oi=.35;function ii(e,t,n){return{min:ai(e,t),max:ai(e,n)}}function ai(e,t){return"number"==typeof e?e:e[t]||0}const si=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),li=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ui(e){return[e("x"),e("y")]}function ci({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function di(e){return void 0===e||1===e}function pi({scale:e,scaleX:t,scaleY:n}){return!di(e)||!di(t)||!di(n)}function fi(e){return pi(e)||hi(e)||e.z||e.rotate||e.rotateX||e.rotateY}function hi(e){return mi(e.x)||mi(e.y)}function mi(e){return e&&"0%"!==e}function gi(e,t,n){return n+t*(e-n)}function vi(e,t,n,r,o){return void 0!==o&&(e=gi(e,o,r)),gi(e,n,r)+t}function yi(e,t=0,n=1,r,o){e.min=vi(e.min,t,n,r,o),e.max=vi(e.max,t,n,r,o)}function _i(e,{x:t,y:n}){yi(e.x,t.translate,t.scale,t.originPoint),yi(e.y,n.translate,n.scale,n.originPoint)}function bi(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function xi(e,t){e.min=e.min+t,e.max=e.max+t}function wi(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=Bn(e.min,e.max,i);yi(e,t[n],t[r],a,t.scale)}const Ei=["x","scaleX","originX"],Si=["y","scaleY","originY"];function Ti(e,t){wi(e.x,t,Ei),wi(e.y,t,Si)}function Ci(e,t){return ci(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Pi=({current:e})=>e?e.ownerDocument.defaultView:null,Ri=new WeakMap;class ki{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=li(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Uo(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Ut(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Yt(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ui((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Xe.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Go(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Lt.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ui((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Pi(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Lt.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Oi(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Bn(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Bn(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&le(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:ni(e.x,n,o),y:ni(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=oi){return!1===e?e=0:!0===e&&(e=oi),{x:ii(e,"left","right"),y:ii(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ui((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!le(e))return!1;const n=e.current;fn(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ci(e,n),{scroll:o}=t;return o&&(xi(r.x,o.offset.x),xi(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ri(e.x,t.x),y:ri(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ci(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ui((a=>{if(!Oi(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(co(e,n,0,t))}stopAnimation(){ui((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){ui((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ui((t=>{const{drag:n}=this.getProps();if(!Oi(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Bn(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!le(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ui((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Go(e),o=Go(t);return o>r?n=zn(t.min,t.max-r,e.min):r>o&&(n=zn(e.min,e.max-o,t.min)),ze(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ui((t=>{if(!Oi(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Bn(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Ri.set(this.visualElement,this);const e=$t(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();le(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=zt(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ui((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=oi,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Oi(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Ai=e=>(t,n)=>{e&&Lt.update((()=>e(t,n)))};const Di={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Li={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Qe.test(e))return e;e=parseFloat(e)}return`${Mi(e,t.target.x)}% ${Mi(e,t.target.y)}%`}},Fi={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=cr.parse(e);if(o.length>5)return r;const i=cr.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=Bn(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class Vi extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Ni,Object.assign(Pe,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Di.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Lt.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ae.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ji(t){const[n,r]=function(){const t=e.useContext(G);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=e.useId();return e.useEffect((()=>o(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=e.useContext(_e);return e.createElement(Vi,{...t,layoutGroup:o,switchLayoutGroup:e.useContext(be),isPresent:n,safeToRemove:r})}const Ni={borderRadius:{...Li,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Li,borderTopRightRadius:Li,borderBottomLeftRadius:Li,borderBottomRightRadius:Li,boxShadow:Fi},Ii=["TopLeft","TopRight","BottomLeft","BottomRight"],zi=Ii.length,Bi=e=>"string"==typeof e?parseFloat(e):e,Ui=e=>"number"==typeof e||Qe.test(e);function Wi(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const $i=Zi(0,.5,Mn),Hi=Zi(.5,.95,Mt);function Zi(e,t,n){return r=>r<e?0:r>t?1:n(zn(e,t,r))}function qi(e,t){e.min=t.min,e.max=t.max}function Ki(e,t){qi(e.x,t.x),qi(e.y,t.y)}function Gi(e,t,n,r,o){return e=gi(e-=t,1/n,r),void 0!==o&&(e=gi(e,1/o,r)),e}function Yi(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Xe.test(t)&&(t=parseFloat(t),t=Bn(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Bn(i.min,i.max,r);e===i&&(s-=t),e.min=Gi(e.min,t,n,s,o),e.max=Gi(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Xi=["x","scaleX","originX"],Qi=["y","scaleY","originY"];function Ji(e,t,n,r){Yi(e.x,t,Xi,n?n.x:void 0,r?r.x:void 0),Yi(e.y,t,Qi,n?n.y:void 0,r?r.y:void 0)}function ea(e){return 0===e.translate&&1===e.scale}function ta(e){return ea(e.x)&&ea(e.y)}function na(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function ra(e){return Go(e.x)/Go(e.y)}class oa{constructor(){this.members=[]}add(e){ho(this.members,e),e.scheduleRender()}remove(e){if(mo(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ia(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const aa=(e,t)=>e.depth-t.depth;class sa{constructor(){this.children=[],this.isDirty=!1}add(e){ho(this.children,e),this.isDirty=!0}remove(e){mo(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(aa),this.isDirty=!1,this.children.forEach(e)}}const la=["","X","Y","Z"],ua={visibility:"hidden"};let ca=0;const da={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function pa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=ca++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,da.totalNodes=da.resolvedTargetDeltas=da.recalculatedProjection=0,this.nodes.forEach(ma),this.nodes.forEach(wa),this.nodes.forEach(Ea),this.nodes.forEach(ga),e=da,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new sa)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new go),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Ir.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ft(r),e(i-t))};return Lt.read(r,!0),()=>Ft(r)}(r,250),Di.hasAnimatedSinceResize&&(Di.hasAnimatedSinceResize=!1,this.nodes.forEach(xa))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||ka,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!na(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...uo(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||xa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Sa),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ya);this.isUpdating||this.nodes.forEach(_a),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(ba),this.nodes.forEach(fa),this.nodes.forEach(ha),this.clearAllSnapshots();const e=Ir.now();Vt.delta=ze(0,1e3/60,e-Vt.timestamp),Vt.timestamp=e,Vt.isProcessing=!0,jt.update.process(Vt),jt.preRender.process(Vt),jt.render.process(Vt),Vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ae.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(va),this.sharedNodes.forEach(Ta)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Lt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=li(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!ta(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||fi(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Da((r=n).x),Da(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return li();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(xi(t.x,n.offset.x),xi(t.y,n.offset.y)),t}removeElementScroll(e){const t=li();Ki(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Ki(t,e);const{scroll:n}=this.root;n&&(xi(t.x,-n.offset.x),xi(t.y,-n.offset.y))}xi(t.x,o.offset.x),xi(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=li();Ki(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ti(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),fi(r.latestValues)&&Ti(n,r.latestValues)}return fi(this.latestValues)&&Ti(n,this.latestValues),n}removeTransform(e){const t=li();Ki(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!fi(n.latestValues))continue;pi(n.latestValues)&&n.updateSnapshot();const r=li();Ki(r,n.measurePageBox()),Ji(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return fi(this.latestValues)&&Ji(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Vt.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=li(),this.relativeTargetOrigin=li(),ti(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Ki(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=li(),this.targetWithTransforms=li()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Jo(a.x,s.x,l.x),Jo(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ki(this.target,this.layout.layoutBox),_i(this.target,this.targetDelta)):Ki(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=li(),this.relativeTargetOrigin=li(),ti(this.relativeTargetOrigin,this.target,e.target),Ki(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}da.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!pi(this.parent.latestValues)&&!hi(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Vt.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Ki(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ti(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,_i(e,a)),r&&fi(i.latestValues)&&Ti(e,i.latestValues))}t.x=bi(t.x),t.y=bi(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=li());const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=si(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=si(),this.projectionDeltaWithTransform=si());const u=this.projectionTransform;Qo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ia(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),da.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=si();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=li(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Ra));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,p,f,h,m,g;Ca(i.x,e.x,n),Ca(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ti(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,h=this.relativeTargetOrigin,m=a,g=n,Pa(f.x,h.x,m.x,g),Pa(f.y,h.y,m.y,g),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d=li()),Ki(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Bn(0,void 0!==n.opacity?n.opacity:1,$i(r)),e.opacityExit=Bn(void 0!==t.opacity?t.opacity:1,0,Hi(r))):i&&(e.opacity=Bn(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<zi;o++){const i=`border${Ii[o]}Radius`;let a=Wi(t,i),s=Wi(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ui(a)===Ui(s)?(e[i]=Math.max(Bn(Bi(a),Bi(s),r),0),(Xe.test(s)||Xe.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Bn(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Lt.update((()=>{Di.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Ae(e)?e:bo(e);return r.start(co("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ma(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||li();const t=Go(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Go(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ki(t,n),Ti(t,o),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new oa);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<la.length;t++){const o="rotate"+la[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ua;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Ot(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Ot(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!fi(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ia(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Pe){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Pe[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Ot(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(ya),this.root.sharedNodes.clear()}}}function fa(e){e.updateLayout()}function ha(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?ui((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Go(r);r.min=t[e].min,r.max=r.min+o})):Ma(o,n.layoutBox,t)&&ui((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Go(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=si();Qo(a,t,n.layoutBox);const s=si();i?Qo(s,e.applyTransform(r,!0),n.measuredBox):Qo(s,t,n.layoutBox);const l=!ta(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=li();ti(a,n.layoutBox,o.layoutBox);const s=li();ti(s,t,i.layoutBox),na(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ma(e){da.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ga(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function va(e){e.clearSnapshot()}function ya(e){e.clearMeasurements()}function _a(e){e.isLayoutDirty=!1}function ba(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function wa(e){e.resolveTargetDelta()}function Ea(e){e.calcProjection()}function Sa(e){e.resetRotation()}function Ta(e){e.removeLeadSnapshot()}function Ca(e,t,n){e.translate=Bn(t.translate,0,n),e.scale=Bn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Pa(e,t,n,r){e.min=Bn(t.min,n.min,r),e.max=Bn(t.max,n.max,r)}function Ra(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ka={duration:.45,ease:[.4,0,.1,1]},Oa=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Aa=Oa("applewebkit/")&&!Oa("chrome/")?Math.round:Mt;function Da(e){e.min=Aa(e.min),e.max=Aa(e.max)}function Ma(e,t,n){return"position"===e||"preserve-aspect"===e&&!Yo(ra(t),ra(n),.2)}const La=pa({attachResizeListener:(e,t)=>zt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fa={current:void 0},Va=pa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fa.current){const e=new La({});e.mount(window),e.setOptions({layoutScroll:!0}),Fa.current=e}return Fa.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ja={pan:{Feature:class extends Qt{constructor(){super(...arguments),this.removePointerDownListener=Mt}onPointerDown(e){this.session=new Uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ai(e),onStart:Ai(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Lt.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=$t(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Qt{constructor(e){super(e),this.removeGroupControls=Mt,this.removeListeners=Mt,this.controls=new ki(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mt}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Va,MeasureLayout:ji}},Na=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Ia=4;function za(e,t,n=1){fn(n<=Ia,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Na.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return fo(e)?parseFloat(e):e}return je(o)?za(o,t,n+1):o}const Ba=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ua=e=>Ba.has(e),Wa=e=>e===Be||e===Qe,$a=(e,t)=>parseFloat(e.split(", ")[t]),Ha=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return $a(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?$a(t[1],e):0}},Za=new Set(["x","y","z"]),qa=Re.filter((e=>!Za.has(e)));const Ka={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ha(4,13),y:Ha(5,14)};Ka.translateX=Ka.x,Ka.translateY=Ka.y;const Ga=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Ua);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let u=n[o],c=Eo(u);const d=t[o];let p;if(Pt(d)){const e=d.length,t=null===d[0]?1:0;u=d[t],c=Eo(u);for(let n=t;n<e&&null!==d[n];n++)p?fn(Eo(d[n])===p,"All keyframes must be of the same type"):(p=Eo(d[n]),fn(p===c||Wa(c)&&Wa(p),"Keyframes must be of the same dimension as the current value"))}else p=Eo(d);if(c!==p)if(Wa(c)&&Wa(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===Qe&&(t[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):t[o]=c.transform(d):(a||(i=function(e){const t=[];return qa.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Ka[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Ka[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Y&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Ya(e,t,n,r){return(e=>Object.keys(e).some(Ua))(t)?Ga(e,t,n,r):{target:t,transitionEnd:r}}const Xa=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!je(t))return;const n=za(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!je(o))continue;const i=za(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Ya(e,t=o.target,n,r=o.transitionEnd)},Qa={current:null},Ja={current:!1};const es=new WeakMap,ts=Object.keys(ye),ns=ts.length,rs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],os=pe.length;class is{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Lt.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=fe(t),this.isVariantNode=he(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(const e in u){const t=u[e];void 0!==a[e]&&Ae(t)&&(t.set(a[e],!1),po(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,es.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ja.current||function(){if(Ja.current=!0,Y)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qa.current=e.matches;e.addListener(t),t()}else Qa.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Qa.current),"production"!==process.env.NODE_ENV&&yo(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){es.delete(this.current),this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=ke.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Lt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;if("production"!==process.env.NODE_ENV&&r&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?pn(!1,e):fn(!1,e)}for(let e=0;e<ns;e++){const n=ts[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=ye[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&le(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):li()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<rs.length;t++){const n=rs[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(Ae(i))e.addValue(o,i),po(r)&&r.add(o),"development"===process.env.NODE_ENV&&yo("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(Ae(a))e.addValue(o,bo(i,{owner:e})),po(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,bo(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<os;e++){const n=pe[e],r=this.props[n];(ue(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=bo(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Ct(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Ae(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new go),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class as extends is{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},r){const o=function(e,t,n){const r={};for(const o in e){const e=Po(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=u&&("string"==typeof u&&(fo(u)||so(u))?u=parseFloat(u):!To(u)&&cr.test(l)&&(u=ao(a,l)),e.addValue(a,bo(u,{owner:e})),void 0===n[a]&&(n[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,n,o);const e=Xa(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class ss extends as{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(ke.has(t)){const e=io(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Fe(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ci(e,t)}build(e,t,n,r){ot(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return St(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ae(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){xt(e,t,n,r)}}class ls extends as{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ke.has(t)){const e=io(t);return e&&e.default||0}return t=wt.has(t)?t:J(t),e.getAttribute(t)}measureInstanceViewportBox(){return li()}scrapeMotionValuesFromProps(e,t){return Tt(e,t)}build(e,t,n,r){gt(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Et(e,t,0,r)}mount(e){this.isSVGTag=yt(e.tagName),super.mount(e)}}const us=(e,t)=>Ce(e)?new ls(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0}),cs={...zo,...un,...ja,...{layout:{ProjectionNode:Va,MeasureLayout:ji}}},ds=Se(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Ce(e)?Nt:It,preloadedFeatures:n,useRender:bt(t),createVisualElement:r,Component:e}}(e,t,cs,us)));var ps={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},fs="form-module_form__FGOhg";c(".form-module_form__FGOhg {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \n}\n\n.form-module_form__FGOhg > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__FGOhg > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__FGOhg > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n\n .form-module_form__FGOhg {\n padding: 0;\n }\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var hs={small:"25px",medium:"55px",large:"110px",full:"100%"};const ms=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i};function gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vs,ys={exports:{}},_s={},bs={exports:{}},xs={};var ws,Es,Ss,Ts={};
|
|
38
|
+
/**
|
|
39
|
+
* @license React
|
|
40
|
+
* use-sync-external-store-shim.development.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/function Cs(){return ws||(ws=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=e,n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];!function(e,t,r){var o=n.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useState,a=t.useEffect,s=t.useLayoutEffect,l=t.useDebugValue,u=!1,c=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!o(n,r)}catch(e){return!0}}var p=!!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?function(e,t,n){return t()}:function(e,n,p){u||void 0!==t.startTransition&&(u=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=n();if(!c){var h=n();o(f,h)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var m=i({inst:{value:f,getSnapshot:n}}),g=m[0].inst,v=m[1];return s((function(){g.value=f,g.getSnapshot=n,d(g)&&v({inst:g})}),[e,f,n]),a((function(){d(g)&&v({inst:g});return e((function(){d(g)&&v({inst:g})}))}),[e]),l(f),f},f=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:p;Ts.useSyncExternalStore=f,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Ts}function Ps(){return Es||(Es=1,"production"===process.env.NODE_ENV?bs.exports=function(){if(vs)return xs;vs=1;var t=e,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=r({inst:{value:n,getSnapshot:t}}),u=l[0].inst,c=l[1];return i((function(){u.value=n,u.getSnapshot=t,s(u)&&c({inst:u})}),[e,n,t]),o((function(){return s(u)&&c({inst:u}),e((function(){s(u)&&c({inst:u})}))}),[e]),a(n),n};return xs.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:l,xs}():bs.exports=Cs()),bs.exports}
|
|
47
|
+
/**
|
|
48
|
+
* @license React
|
|
49
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/var Rs,ks={};
|
|
56
|
+
/**
|
|
57
|
+
* @license React
|
|
58
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
59
|
+
*
|
|
60
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the MIT license found in the
|
|
63
|
+
* LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/"production"===process.env.NODE_ENV?ys.exports=function(){if(Ss)return _s;Ss=1;var t=e,n=Ps(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;return _s.useSyncExternalStoreWithSelector=function(e,t,n,u,c){var d=i(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=u(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return i=t}return i=e}if(t=i,r(o,e))return t;var n=u(e);return void 0!==c&&c(t,n)?t:(o=e,i=n)}var o,i,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,u,c]);var f=o(e,d[0],d[1]);return a((function(){p.hasValue=!0,p.value=f}),[f]),l(f),f},_s}():ys.exports=(Rs||(Rs=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=e,n=Ps(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;ks.useSyncExternalStoreWithSelector=function(e,t,n,u,c){var d,p=i(null);null===p.current?(d={hasValue:!1,value:null},p.current=d):d=p.current;var f=s((function(){var e,o,i=!1,a=function(t){if(!i){i=!0,e=t;var n=u(t);if(void 0!==c&&d.hasValue){var a=d.value;if(c(a,n))return o=a,a}return o=n,n}var s=o;if(r(e,t))return s;var l=u(t);return void 0!==c&&c(s,l)?s:(e=t,o=l,l)},s=void 0===n?null:n;return[function(){return a(t())},null===s?void 0:function(){return a(s())}]}),[t,n,u,c]),h=f[0],m=f[1],g=o(e,h,m);return a((function(){d.hasValue=!0,d.value=g}),[g]),l(g),g},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ks);var Os=gs(ys.exports);const{useDebugValue:As}=e,{useSyncExternalStoreWithSelector:Ds}=Os;let Ms=!1;const Ls=e=>e;const Fs=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?ms(e):ms)(e):e,n=(e,n)=>function(e,t=Ls,n){n&&!Ms&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ms=!0);const r=Ds(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return As(r),r}(t,e,n);return Object.assign(n,t),n};var Vs="modal-module_modal__-Kq3N",js="modal-module_modal-header__U-dKP";c(".modal-module_modal__-Kq3N {\n position: absolute;\n inset: 0;\n width: calc(100% - 2rem);\n height: calc(100% - 2rem);\n margin: 1rem;\n border-radius: 24px;\n border: none;\n padding: 2rem;\n}\n\n.modal-module_modal__-Kq3N::backdrop {\n background-color: rgba(0, 0, 0, 0.75);\n}\n\n\n.modal-module_modal-header__U-dKP {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid var(--product-border);\n}\n\n @media (min-width: 768px) {\n .modal-module_modal__-Kq3N {\n width: 720px;\n height: 640px;\n margin: 0;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n}\n");var Ns=(e=>e?Fs(e):Fs)()((function(e){return{activeModal:"",isOpen:!1,open:function(t){return e({activeModal:t,isOpen:!0})},close:function(){return e({activeModal:"",isOpen:!1})}}})),Is={Content:function(t){var r,o,i=t.value,a=t.children,s=Ns(),l=s.isOpen,u=i===s.activeModal&&l,c=e.useRef(null);return u?null===(r=c.current)||void 0===r||r.showModal():null===(o=c.current)||void 0===o||o.close(),n.createPortal(e.createElement("dialog",{ref:c,className:Vs},a),document.body)},Control:function(t){var n=t.value,r=t.children,o=s(t,["value","children"]),i=Ns().open;return e.createElement(h,a({onClick:function(){return i(n)},autoFocus:!0},o),r)},Header:function(t){var n=t.title,r=Ns().close;return e.createElement("header",{className:js},e.createElement(f,{variant:"content-title-semi-bold"},n),e.createElement(h,{autoFocus:!0,onlyIcon:!0,variant:"tertiary",onClick:function(){return r()}},e.createElement(L,{icon:"close"})))}},zs="numberField-module_container__yjOIU",Bs="numberField-module_fake-input__cqOX-",Us="numberField-module_spinbutton-container__HkUKt",Ws="numberField-module_spinbutton-container--error__dO4fj",$s="numberField-module_control__yE0Ro";c(".numberField-module_container__yjOIU {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__cqOX- {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__HkUKt {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__dO4fj {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__e79fV {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__UtA4B {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__DriKa {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__yE0Ro {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 44px;\n height: 44px;\n border: 2px solid black;\n}\n\n");var Hs=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],Zs=function(t){var n=t.name,r=t.label,o=t.min,i=void 0===o?0:o,a=t.max,s=void 0===a?100:a,l=t.width,c=void 0===l?3:l,d=t.error,p=t.helper,h=t.field,m=h.value,g=h.onChange,v=h.onBlur,y=function(e){m<=i||g(m-e)},_=function(e){m>=s||g(m+e)};return e.createElement(H,{id:"".concat(n,"-label"),label:r,error:null==d?void 0:d.message,helper:null==p?void 0:p.message},e.createElement("div",{className:zs},e.createElement("div",{className:u(Us,d&&Ws)},e.createElement("button",{className:$s,type:"button",tabIndex:-1,onClick:function(){return y(1)},"aria-label":"decrease"},"-"),e.createElement(f,{as:"div",className:Bs,role:"spinbutton",tabIndex:0,onKeyDown:function(e){Hs.includes(e.key)&&(e.preventDefault(),function(e){"ArrowUp"===e.key&&_(1),"ArrowDown"===e.key&&y(1)}(e),function(e){"PageUp"===e.key&&_(5),"PageDown"===e.key&&y(5)}(e),function(e){"Home"===e.key&&g(i),"End"===e.key&&g(s)}(e))},onBlur:v,"aria-valuenow":m,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==d?void 0:d.message),"aria-errormessage":d?"".concat(n,"-error"):void 0,style:{width:"".concat(c,"ch")}},m),e.createElement("button",{className:$s,type:"button",tabIndex:-1,onClick:function(){return _(1)},"aria-label":"increase"},"+"))))},qs={container:"progress-indicator-module_container__Jr2-N","container--full-width":"progress-indicator-module_container--full-width__lKP6x","container--medium":"progress-indicator-module_container--medium__7hGyE","container--small":"progress-indicator-module_container--small__M3-dI",progress:"progress-indicator-module_progress__6S2Ss","progress-bar":"progress-indicator-module_progress-bar__NW-4N",label:"progress-indicator-module_label__cKVP1"};c(".progress-indicator-module_container__Jr2-N {\n\n}\n\n.progress-indicator-module_container--full-width__lKP6x {\n width: 100%;\n}\n\n.progress-indicator-module_container--medium__7hGyE {\n width: 265px;\n}\n\n.progress-indicator-module_container--small__M3-dI {\n width: 100px;\n}\n\n.progress-indicator-module_progress__6S2Ss {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n height: .25rem;\n background: var(--product-greyscale-0);\n border-radius: .125rem;\n}\n\n.progress-indicator-module_progress-bar__NW-4N {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n background: var(--product-success);\n border-radius: .125rem;\n}\n\n.progress-indicator-module_label__cKVP1 {\n margin-top: var(--product-spacing-1);\n}\n");function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ks.apply(this,arguments)}function Gs(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Ys(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Xs(...t){return e.useCallback(Ys(...t),t)}function Qs(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[t][a])||i,u=e.useMemo((()=>s),Object.values(s));return e.createElement(l.Provider,{value:u},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[t][a])||i,u=e.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},Js(o,...n)]}function Js(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const el=e.forwardRef(((t,n)=>{const{children:r,...o}=t,i=e.Children.toArray(r),a=i.find(rl);if(a){const t=a.props.children,r=i.map((n=>n===a?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return e.createElement(tl,Ks({},o,{ref:n}),e.isValidElement(t)?e.cloneElement(t,void 0,r):null)}return e.createElement(tl,Ks({},o,{ref:n}),r)}));el.displayName="Slot";const tl=e.forwardRef(((t,n)=>{const{children:r,...o}=t;return e.isValidElement(r)?e.cloneElement(r,{...ol(o,r.props),ref:n?Ys(n,r.ref):r.ref}):e.Children.count(r)>1?e.Children.only(null):null}));tl.displayName="SlotClone";const nl=({children:t})=>e.createElement(e.Fragment,null,t);function rl(t){return e.isValidElement(t)&&t.type===nl}function ol(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const il=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?el:n;return e.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.createElement(a,Ks({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});const al=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},sl=o["useId".toString()]||(()=>{});let ll=0;function ul(e){const[t,n]=o.useState(sl());return al((()=>{e||n((e=>null!=e?e:String(ll++)))}),[e]),e||(t?`radix-${t}`:"")}function cl(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function dl({prop:t,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,i=e.useRef(o),a=cl(n);return e.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==t,s=a?t:o,l=cl(r);return[s,e.useCallback((e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&l(n)}else i(e)}),[a,t,i,l])]}const pl=e.createContext(void 0);function fl(t){const n=e.useContext(pl);return t||n||"ltr"}const hl="rovingFocusGroup.onEntryFocus",ml={bubbles:!1,cancelable:!0},gl="RovingFocusGroup",[vl,yl,_l]=function(t){const n=t+"CollectionProvider",[r,o]=Qs(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t+"CollectionSlot",l=t+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:t=>{const{scope:n,children:r}=t,o=e.useRef(null),a=e.useRef(new Map).current;return e.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:e.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=Xs(n,a(s,r).collectionRef);return e.createElement(el,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),c=Xs(n,s),d=a(l,r);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),e.createElement(el,{[u]:"",ref:c},o)}))},function(n){const r=a(t+"CollectionConsumer",n);return e.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(gl),[bl,xl]=Qs(gl,[_l]),[wl,El]=bl(gl),Sl=e.forwardRef(((t,n)=>e.createElement(vl.Provider,{scope:t.__scopeRovingFocusGroup},e.createElement(vl.Slot,{scope:t.__scopeRovingFocusGroup},e.createElement(Tl,Ks({},t,{ref:n})))))),Tl=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=t,p=e.useRef(null),f=Xs(n,p),h=fl(a),[m=null,g]=dl({prop:s,defaultProp:l,onChange:u}),[v,y]=e.useState(!1),_=cl(c),b=yl(r),x=e.useRef(!1),[w,E]=e.useState(0);return e.useEffect((()=>{const e=p.current;if(e)return e.addEventListener(hl,_),()=>e.removeEventListener(hl,_)}),[_]),e.createElement(wl,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:m,onItemFocus:e.useCallback((e=>g(e)),[g]),onItemShiftTab:e.useCallback((()=>y(!0)),[]),onFocusableItemAdd:e.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:e.useCallback((()=>E((e=>e-1))),[])},e.createElement(il.div,Ks({tabIndex:v||0===w?-1:0,"data-orientation":o},d,{ref:f,style:{outline:"none",...t.style},onMouseDown:Gs(t.onMouseDown,(()=>{x.current=!0})),onFocus:Gs(t.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(hl,ml);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));Rl([e.find((e=>e.active)),e.find((e=>e.id===m)),...e].filter(Boolean).map((e=>e.ref.current)))}}x.current=!1})),onBlur:Gs(t.onBlur,(()=>y(!1)))})))})),Cl=e.forwardRef(((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...s}=t,l=ul(),u=a||l,c=El("RovingFocusGroupItem",r),d=c.currentTabStopId===u,p=yl(r),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return e.useEffect((()=>{if(o)return f(),()=>h()}),[o,f,h]),e.createElement(vl.ItemSlot,{scope:r,id:u,focusable:o,active:i},e.createElement(il.span,Ks({tabIndex:d?0:-1,"data-orientation":c.orientation},s,{ref:n,onMouseDown:Gs(t.onMouseDown,(e=>{o?c.onItemFocus(u):e.preventDefault()})),onFocus:Gs(t.onFocus,(()=>c.onItemFocus(u))),onKeyDown:Gs(t.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Pl[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=c.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Rl(o)))}var n,r}))})))})),Pl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rl(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const kl=Sl,Ol=Cl;function Al(t){const[n,r]=e.useState(void 0);return al((()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)}),[t]),n}const Dl=t=>{const{present:r,children:o}=t,i=function(t){const[r,o]=e.useState(),i=e.useRef({}),a=e.useRef(t),s=e.useRef("none"),l=t?"mounted":"unmounted",[u,c]=function(t,n){return e.useReducer(((e,t)=>{const r=n[e][t];return null!=r?r:e}),t)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect((()=>{const e=Ml(i.current);s.current="mounted"===u?e:"none"}),[u]),al((()=>{const e=i.current,n=a.current;if(n!==t){const r=s.current,o=Ml(e);if(t)c("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=t}}),[t,c]),al((()=>{if(r){const e=e=>{const t=Ml(i.current).includes(e.animationName);e.target===r&&t&&n.flushSync((()=>c("ANIMATION_END")))},t=e=>{e.target===r&&(s.current=Ml(i.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),()=>{r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:e.useCallback((e=>{e&&(i.current=getComputedStyle(e)),o(e)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):e.Children.only(o),s=Xs(i.ref,a.ref);return"function"==typeof o||i.isPresent?e.cloneElement(a,{ref:s}):null};function Ml(e){return(null==e?void 0:e.animationName)||"none"}Dl.displayName="Presence";const Ll="Radio",[Fl,Vl]=Qs(Ll),[jl,Nl]=Fl(Ll),Il=e.forwardRef(((t,n)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=t,[d,p]=e.useState(null),f=Xs(n,(e=>p(e))),h=e.useRef(!1),m=!d||Boolean(d.closest("form"));return e.createElement(jl,{scope:r,checked:i,disabled:s},e.createElement(il.button,Ks({type:"button",role:"radio","aria-checked":i,"data-state":Ul(i),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onClick:Gs(t.onClick,(e=>{i||null==u||u(),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&e.createElement(Bl,{control:d,bubbles:!h.current,name:o,value:l,checked:i,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),zl=e.forwardRef(((t,n)=>{const{__scopeRadio:r,forceMount:o,...i}=t,a=Nl("RadioIndicator",r);return e.createElement(Dl,{present:o||a.checked},e.createElement(il.span,Ks({"data-state":Ul(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:n})))})),Bl=t=>{const{control:n,checked:r,bubbles:o=!0,...i}=t,a=e.useRef(null),s=function(t){const n=e.useRef({value:t,previous:t});return e.useMemo((()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous)),[t])}(r),l=Al(n);return e.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(s!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[s,r,o]),e.createElement("input",Ks({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:a,style:{...t.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ul(e){return e?"checked":"unchecked"}const Wl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$l="RadioGroup",[Hl,Zl]=Qs($l,[xl,Vl]),ql=xl(),Kl=Vl(),[Gl,Yl]=Hl($l),Xl=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:i,value:a,required:s=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:p,...f}=t,h=ql(r),m=fl(c),[g,v]=dl({prop:a,defaultProp:i,onChange:p});return e.createElement(Gl,{scope:r,name:o,required:s,disabled:l,value:g,onValueChange:v},e.createElement(kl,Ks({asChild:!0},h,{orientation:u,dir:m,loop:d}),e.createElement(il.div,Ks({role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":l?"":void 0,dir:m},f,{ref:n}))))})),Ql=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,disabled:o,...i}=t,a=Yl("RadioGroupItem",r),s=a.disabled||o,l=ql(r),u=Kl(r),c=e.useRef(null),d=Xs(n,c),p=a.value===i.value,f=e.useRef(!1);return e.useEffect((()=>{const e=e=>{Wl.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),e.createElement(Ol,Ks({asChild:!0},l,{focusable:!s,active:p}),e.createElement(Il,Ks({disabled:s,required:a.required,checked:p},u,i,{name:a.name,ref:d,onCheck:()=>a.onValueChange(i.value),onKeyDown:Gs((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Gs(i.onFocus,(()=>{var e;f.current&&(null===(e=c.current)||void 0===e||e.click())}))})))})),Jl=e.forwardRef(((t,n)=>{const{__scopeRadioGroup:r,...o}=t,i=Kl(r);return e.createElement(zl,Ks({},i,o,{ref:n}))}));var eu="radioGroup-module_legend__WklzX",tu="radioGroup-module_radio-root__RtJ2M",nu="radioGroup-module_radio-root--error__9DrYG",ru="radioGroup-module_radio-root-label--error__KdFST",ou="radioGroup-module_radio-item__BKOlM",iu="radioGroup-module_radio-indicator__-hEEu";c('\n\n.radioGroup-module_legend__WklzX {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__RtJ2M {\n display: flex;\n gap: var(--product-spacing-2);\n}\n\n.radioGroup-module_radio-root--horizontal__S9DcQ {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__dBLhN {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__9DrYG {\n border: var( --product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__KdFST {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__BKOlM {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n\n\n\n/* ! The Circle */\n.radioGroup-module_radio-item__BKOlM::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4));\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__-hEEu::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__BKOlM:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__BKOlM:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__BKOlM {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-2);\n }\n\n\n .radioGroup-module_radio-item__BKOlM::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__-hEEu::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n');var au={Root:function(n){var r=n.children,o=n.className,i=n.name,l=n.label,c=s(n,["children","className","name","label"]),d=t.useFormContext(),p=d.control,h=d.formState.errors,m=void 0===h?{}:h,g=m&&m[i];return e.createElement(t.Controller,{name:i,control:p,render:function(t){var n=t.field,i=n.onChange,d=s(n,["onChange"]);return e.createElement("fieldset",null,e.createElement(f,{className:eu,as:"legend",variant:"form-input-normal"},l),e.createElement(Xl,a({className:u(o,tu,g&&nu),onValueChange:i},c,d,{"aria-required":void 0}),r),g&&e.createElement("p",{className:ru},null==g?void 0:g.message))}})},Item:function(t){var n=t.children,r=t.className,o=s(t,["children","className"]);return e.createElement(Ql,a({className:u(r,ou)},o),e.createElement(f,{variant:"form-input-normal"},n))},Indicator:function(t){var n=t.className,r=s(t,["className"]);return e.createElement(Jl,a({className:u(n,iu)},r))}},su="range-module_container__SwhGo",lu="range-module_range-container__iGnY1",uu="range-module_slider__pZtfP",cu="range-module_notches__Zc4Og",du="range-module_notch__qXs7B",pu="range-module_progress__fElkU",fu="range-module_value-container__8Zt0r";c(".range-module_container__SwhGo {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var( --product-radius-2);\n}\n\n.range-module_container__SwhGo > div {\n width: 70%;\n}\n\n.range-module_container__SwhGo > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__iGnY1 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__pZtfP {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n accent-color: var(--product-light-blue-80);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__pZtfP::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n\n\n.range-module_slider__pZtfP::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__Zc4Og {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__fElkU {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__8Zt0r {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n");var hu=function(t){var n=t.id,r=t.min,o=void 0===r?0:r,i=t.max,s=void 0===i?1e3:i,l=t.step,u=void 0===l?100:l,c=t.name,d=t.label,p=t.helper,h=t.error,m=t.field,g=m.value,v=(g-o)/(s-o)*100,y=function(e,t,n){return(t-e)/n};return e.createElement(H,{id:n,label:d,error:null==h?void 0:h.message,helper:null==p?void 0:p.message},e.createElement("div",{className:su},e.createElement("div",{className:lu},e.createElement("div",{className:cu},Array.from({length:y(o,s,u)}).map((function(t,n){return e.createElement("div",{key:n,className:du,style:{left:"".concat(n/y(o,s,u)*100,"%")}})}))),e.createElement("div",{className:pu,style:{width:"calc(".concat(v||0,"%)")}}),e.createElement("input",a({id:"".concat(c,"-range"),className:uu,type:"range",min:o,max:s,step:u},m))),e.createElement(f,{className:fu,variant:"content-title-semi-bold"},"£",g)))},mu="select-module_container__Lydyj",gu="select-module_input__Hcrhq",vu="select-module_icon__SCm5W",yu="select-module_input--error__4pQ0M",_u="select-module_input--disabled__zteOi",bu="select-module_error-message__89d1g",xu="select-module_helper-message__VwS-B";c("\n\n.select-module_container__Lydyj {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__Hcrhq {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding: var(--product-spacing-6);\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__Hcrhq:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__SCm5W {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__Hcrhq:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__Hcrhq:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__4pQ0M {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__zteOi {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_error-message__89d1g {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__VwS-B {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .select-module_input__Hcrhq {\n padding: var(--product-spacing-6);\n }\n}\n");var wu=function(t){var n=t.error,r=t.helper,o=t.label,i=t.items,s=t.placeholder,l=t.disabled,c=t.field;return e.createElement("div",{className:mu},e.createElement("label",{className:"sr-only"},o),e.createElement("svg",{className:vu,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),e.createElement("select",a({className:u(gu,(null==n?void 0:n.message)&&yu,l&&_u)},c),s&&e.createElement("option",{value:"placeholder",disabled:!0},s),i&&i.map((function(t){return e.createElement("option",{key:t.id,value:t.id},t.title)}))),(null==r?void 0:r.message)&&e.createElement(f,{className:xu,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&e.createElement(f,{className:bu,as:"p",variant:"form-helper"},n.message))},Eu={container:"textField-module_container__dwME5",label:"textField-module_label__Pb0Yj",input:"textField-module_input__R8QTX","input--prefix":"textField-module_input--prefix__Fhag6",prefix:"textField-module_prefix__qF3td",inputDescription:"textField-module_inputDescription__nc-XC","container--error":"textField-module_container--error__CJ8JR",error:"textField-module_error__OWiII",helper:"textField-module_helper__arACk",rightContent:"textField-module_rightContent__6xW-l",leftContent:"textField-module_leftContent__XrivE","input--focus":"textField-module_input--focus__ngCQF","input--hover":"textField-module_input--hover__wo5JR"};c(".textField-module_container__dwME5 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__Pb0Yj {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n}\n\n.textField-module_input__R8QTX {\n all: unset;\n background: var(--product-greyscale-0);\n border: var(--product-border-width-1) solid transparent;\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n padding-left: 2rem;\n}\n\n.textField-module_prefix__qF3td {\n position: absolute;\n left: var(--product-spacing-5);\n top: 63%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__nc-XC {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-bottom: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__CJ8JR > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__CJ8JR > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__OWiII {\n color: var(--product-error);\n}\n\n.textField-module_helper__arACk {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__6xW-l {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__XrivE {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n\n.textField-module_input__R8QTX:focus {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input__R8QTX:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__wo5JR {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__R8QTX:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__R8QTX:disabled:hover {\n outline: none;\n}\n\n\n\n @media (min-width: 768px) {\n .textField-module_input__R8QTX {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n font-size: 1.25rem;\n }\n\n .textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__qF3td {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 53%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");var Su=function(t){var n=t.id,r=t.label,o=t.helper,i=t.error,l=t.type,c=t.prefix,d=t.suffix,p=t.disabled,f=t.className,h=t.rightContent,m=t.leftContent,g=t.field,v=g.value,y=g.onBlur,_=s(g,["value","onBlur"]),b=A().width,x=e.useState(!1),w=x[0],E=x[1],S=""!==v||w,T=b>768,C=o||i,P={focused:{fontSize:T?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:T?"1.25rem":"1.125rem",top:"50%"}};return e.createElement("div",null,e.createElement("div",{className:u(Eu.container,i&&Eu["container--error"])},e.createElement(ds.label,{className:Eu.label,initial:"notFocused",variants:P,htmlFor:"input-".concat(n),animate:w||""!==v?"focused":"notFocused"},r," ",d&&e.createElement("span",null,d)),e.createElement("input",a({id:"input-".concat(n),className:u(f,Eu["input--".concat(f)],Eu.input,c&&Eu["input--prefix"]),type:l,"aria-describedby":"error-".concat(n),disabled:p,onFocus:function(){return E(!0)},onBlur:function(){y(),E(!1)},value:v},_)),c&&S&&e.createElement("span",{className:Eu.prefix},c),e.createElement("div",null,h&&e.createElement("div",{className:Eu.rightContent},h),m&&e.createElement("div",{className:Eu.leftContent},m))),C&&e.createElement("div",{className:Eu.inputDescription},o&&e.createElement("span",{id:"feedback-".concat(n),className:Eu.helper},o.message),i&&e.createElement("span",{id:"error-".concat(n),className:Eu.error},i.message)))},Tu="Toast-module_title__Ipd5h";c(".Toast-module_title__Ipd5h {\n font-weight: 600;\n margin-bottom: .375rem;\n}\n\n");var Cu={Root:function(t){var n=t.children;return e.createElement("div",null,n)},Title:function(t){var n=t.className,r=t.children;return e.createElement(e.Fragment,null,e.createElement(f,{className:u(n,Tu),variant:"form-helper"},r))},Description:function(t){var n=t.children;return e.createElement(f,{variant:"form-helper"},n)}};const Pu="dismissableLayer.update",Ru="dismissableLayer.pointerDownOutside",ku="dismissableLayer.focusOutside";let Ou;const Au=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Du=e.forwardRef(((t,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=t,d=e.useContext(Au),[p,f]=e.useState(null),h=null!==(r=null==p?void 0:p.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=e.useState({}),g=Xs(n,(e=>f(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),_=v.indexOf(y),b=p?v.indexOf(p):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,w=b>=_,E=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=cl(t),o=e.useRef(!1),i=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){Lu(Ru,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));w&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())}),h),S=function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=cl(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){Lu(ku,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())}),h);return function(t,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=cl(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{b===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),h),e.useEffect((()=>{if(p)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ou=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Mu(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ou)}}),[p,h,o,d]),e.useEffect((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Mu())}),[p,d]),e.useEffect((()=>{const e=()=>m({});return document.addEventListener(Pu,e),()=>document.removeEventListener(Pu,e)}),[]),e.createElement(il.div,Ks({},c,{ref:g,style:{pointerEvents:x?w?"auto":"none":void 0,...t.style},onFocusCapture:Gs(t.onFocusCapture,S.onFocusCapture),onBlurCapture:Gs(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Gs(t.onPointerDownCapture,E.onPointerDownCapture)}))}));function Mu(){const e=new CustomEvent(Pu);document.dispatchEvent(e)}function Lu(e,t,r,{discrete:o}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),o?function(e,t){e&&n.flushSync((()=>e.dispatchEvent(t)))}(i,a):i.dispatchEvent(a)}const Fu=["top","right","bottom","left"],Vu=Math.min,ju=Math.max,Nu=Math.round,Iu=Math.floor,zu=e=>({x:e,y:e}),Bu={left:"right",right:"left",bottom:"top",top:"bottom"},Uu={start:"end",end:"start"};function Wu(e,t,n){return ju(e,Vu(t,n))}function $u(e,t){return"function"==typeof e?e(t):e}function Hu(e){return e.split("-")[0]}function Zu(e){return e.split("-")[1]}function qu(e){return"x"===e?"y":"x"}function Ku(e){return"y"===e?"height":"width"}function Gu(e){return["top","bottom"].includes(Hu(e))?"y":"x"}function Yu(e){return qu(Gu(e))}function Xu(e){return e.replace(/start|end/g,(e=>Uu[e]))}function Qu(e){return e.replace(/left|right|bottom|top/g,(e=>Bu[e]))}function Ju(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ec(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function tc(e,t,n){let{reference:r,floating:o}=e;const i=Gu(t),a=Yu(t),s=Ku(a),l=Hu(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:c,y:r.y-o.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Zu(t)){case"start":f[a]-=p*(n&&u?-1:1);break;case"end":f[a]+=p*(n&&u?-1:1)}return f}async function nc(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=$u(t,e),h=Ju(f),m=s[p?"floating"===d?"reference":"floating":d],g=ec(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),_=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=ec(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+h.top)/_.y,bottom:(b.bottom-g.bottom+h.bottom)/_.y,left:(g.left-b.left+h.left)/_.x,right:(b.right-g.right+h.right)/_.x}}function rc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oc(e){return Fu.some((t=>e[t]>=0))}const ic=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Hu(n),s=Zu(n),l="y"===Gu(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=$u(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(f="end"===s?-1*h:h),l?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}};function ac(e){return uc(e)?(e.nodeName||"").toLowerCase():"#document"}function sc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function lc(e){var t;return null==(t=(uc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function uc(e){return e instanceof Node||e instanceof sc(e).Node}function cc(e){return e instanceof Element||e instanceof sc(e).Element}function dc(e){return e instanceof HTMLElement||e instanceof sc(e).HTMLElement}function pc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof sc(e).ShadowRoot)}function fc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=yc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function hc(e){return["table","td","th"].includes(ac(e))}function mc(e){const t=gc(),n=yc(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function gc(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function vc(e){return["html","body","#document"].includes(ac(e))}function yc(e){return sc(e).getComputedStyle(e)}function _c(e){return cc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bc(e){if("html"===ac(e))return e;const t=e.assignedSlot||e.parentNode||pc(e)&&e.host||lc(e);return pc(t)?t.host:t}function xc(e){const t=bc(e);return vc(t)?e.ownerDocument?e.ownerDocument.body:e.body:dc(t)&&fc(t)?t:xc(t)}function wc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=xc(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=sc(o);return i?t.concat(a,a.visualViewport||[],fc(o)?o:[],a.frameElement&&n?wc(a.frameElement):[]):t.concat(o,wc(o,[],n))}function Ec(e){const t=yc(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=dc(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Nu(n)!==i||Nu(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Sc(e){return cc(e)?e:e.contextElement}function Tc(e){const t=Sc(e);if(!dc(t))return zu(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ec(t);let a=(i?Nu(n.width):n.width)/r,s=(i?Nu(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Cc=zu(0);function Pc(e){const t=sc(e);return gc()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Cc}function Rc(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Sc(e);let a=zu(1);t&&(r?cc(r)&&(a=Tc(r)):a=Tc(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==sc(e))&&t}(i,n,r)?Pc(i):zu(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=sc(i),t=r&&cc(r)?sc(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Tc(o),t=o.getBoundingClientRect(),r=yc(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=sc(o),o=n.frameElement}}return ec({width:c,height:d,x:l,y:u})}const kc=[":popover-open",":modal"];function Oc(e){return kc.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ac(e){return Rc(lc(e)).left+_c(e).scrollLeft}function Dc(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=sc(e),r=lc(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=gc();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=lc(e),n=_c(e),r=e.ownerDocument.body,o=ju(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ju(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ac(e);const s=-n.scrollTop;return"rtl"===yc(r).direction&&(a+=ju(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(lc(e));else if(cc(t))r=function(e,t){const n=Rc(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=dc(e)?Tc(e):zu(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Pc(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ec(r)}function Mc(e,t){const n=bc(e);return!(n===t||!cc(n)||vc(n))&&("fixed"===yc(n).position||Mc(n,t))}function Lc(e,t,n){const r=dc(t),o=lc(t),i="fixed"===n,a=Rc(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=zu(0);if(r||!r&&!i)if(("body"!==ac(t)||fc(o))&&(s=_c(t)),r){const e=Rc(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ac(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Fc(e,t){return dc(e)&&"fixed"!==yc(e).position?t?t(e):e.offsetParent:null}function Vc(e,t){const n=sc(e);if(!dc(e)||Oc(e))return n;let r=Fc(e,t);for(;r&&hc(r)&&"static"===yc(r).position;)r=Fc(r,t);return r&&("html"===ac(r)||"body"===ac(r)&&"static"===yc(r).position&&!mc(r))?n:r||function(e){let t=bc(e);for(;dc(t)&&!vc(t);){if(mc(t))return t;t=bc(t)}return null}(e)||n}const jc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=lc(r),s=!!t&&Oc(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=zu(1);const c=zu(0),d=dc(r);if((d||!d&&!i)&&(("body"!==ac(r)||fc(a))&&(l=_c(r)),dc(r))){const e=Rc(r);u=Tc(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:lc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=wc(e,[],!1).filter((e=>cc(e)&&"body"!==ac(e))),o=null;const i="fixed"===yc(e).position;let a=i?bc(e):e;for(;cc(a)&&!vc(a);){const t=yc(a),n=mc(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||fc(a)&&!n&&Mc(e,a))?r=r.filter((e=>e!==a)):o=t,a=bc(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Dc(t,n,o);return e.top=ju(r.top,e.top),e.right=Vu(r.right,e.right),e.bottom=Vu(r.bottom,e.bottom),e.left=ju(r.left,e.left),e}),Dc(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Vc,getElementRects:async function(e){const t=this.getOffsetParent||Vc,n=this.getDimensions;return{reference:Lc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ec(e);return{width:t,height:n}},getScale:Tc,isElement:cc,isRTL:function(e){return"rtl"===yc(e).direction}};function Nc(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Sc(e),c=o||i?[...u?wc(u):[],...wc(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=lc(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-Iu(c)+"px "+-Iu(o.clientWidth-(u+d))+"px "+-Iu(o.clientHeight-(c+p))+"px "+-Iu(u)+"px",threshold:ju(0,Vu(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(u,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let m=l?Rc(e):null;return l&&function t(){const r=Rc(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Ic=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$u(e,t),u={x:n,y:r},c=await nc(t,l),d=Gu(Hu(o)),p=qu(d);let f=u[p],h=u[d];if(i){const e="y"===p?"bottom":"right";f=Wu(f+c["y"===p?"top":"left"],f,f-c[e])}if(a){const e="y"===d?"bottom":"right";h=Wu(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},zc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=$u(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Hu(o),y=Hu(s)===s,_=await(null==l.isRTL?void 0:l.isRTL(u.floating)),b=p||(y||!m?[Qu(s)]:function(e){const t=Qu(e);return[Xu(e),t,Xu(t)]}(s));p||"none"===h||b.push(...function(e,t,n,r){const o=Zu(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Hu(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Xu)))),i}(s,m,h,_));const x=[s,...b],w=await nc(t,g),E=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&E.push(w[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Zu(e),o=Yu(e),i=Ku(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qu(a)),[a,Qu(a)]}(o,a,_);E.push(w[e[0]],w[e[1]])}if(S=[...S,{placement:o,overflows:E}],!E.every((e=>e<=0))){var T,C;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(C=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(f){case"bestFit":{var P;const e=null==(P=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Bc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=$u(e,t),l=await nc(t,s),u=Hu(n),c=Zu(n),d="y"===Gu(n),{width:p,height:f}=r.floating;let h,m;"top"===u||"bottom"===u?(h=u,m=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,h="end"===c?"top":"bottom");const g=f-l[h],v=p-l[m],y=!t.middlewareData.shift;let _=g,b=v;if(d){const e=p-l.left-l.right;b=c||y?Vu(v,e):e}else{const e=f-l.top-l.bottom;_=c||y?Vu(g,e):e}if(y&&!c){const e=ju(l.left,0),t=ju(l.right,0),n=ju(l.top,0),r=ju(l.bottom,0);d?b=p-2*(0!==e||0!==t?e+t:ju(l.left,l.right)):_=f-2*(0!==n||0!==r?n+r:ju(l.top,l.bottom))}await a({...t,availableWidth:b,availableHeight:_});const x=await o.getDimensions(i.floating);return p!==x.width||f!==x.height?{reset:{rects:!0}}:{}}}},Uc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$u(e,t);switch(r){case"referenceHidden":{const e=rc(await nc(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:oc(e)}}}case"escaped":{const e=rc(await nc(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:oc(e)}}}default:return{}}}}},Wc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=$u(e,t)||{};if(null==u)return{};const d=Ju(c),p={x:n,y:r},f=Yu(o),h=Ku(f),m=await a.getDimensions(u),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",_=g?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[f]-p[f]-i.floating[h],x=p[f]-i.reference[f],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let E=w?w[_]:0;E&&await(null==a.isElement?void 0:a.isElement(w))||(E=s.floating[_]||i.floating[h]);const S=b/2-x/2,T=E/2-m[h]/2-1,C=Vu(d[v],T),P=Vu(d[y],T),R=C,k=E-m[h]-P,O=E/2-m[h]/2+S,A=Wu(R,O,k),D=!l.arrow&&null!=Zu(o)&&O!==A&&i.reference[h]/2-(O<R?C:P)-m[h]/2<0,M=D?O<R?O-R:O-k:0;return{[f]:p[f]+M,data:{[f]:A,centerOffset:O-A-M,...D&&{alignmentOffset:M}},reset:D}}}),$c=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=$u(e,t),c={x:n,y:r},d=Gu(o),p=qu(d);let f=c[p],h=c[d];const m=$u(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var v,y;const e="y"===p?"width":"height",t=["top","left"].includes(Hu(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[p]:f,[d]:h}}}},Hc=(e,t,n)=>{const r=new Map,o={platform:jc,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=tc(u,r,l),p=r,f={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:y,reset:_}=await m({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[i]:{...f[i],...y}},_&&h<=50&&(h++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(u=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):_.rects),({x:c,y:d}=tc(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})},Zc=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Wc({element:n.current,padding:r}).fn(t):{}:n?Wc({element:n,padding:r}).fn(t):{};var o}});var qc="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Kc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Kc(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Kc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Gc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yc(e,t){const n=Gc(e);return Math.round(t*n)/n}function Xc(e){const t=o.useRef(e);return qc((()=>{t.current=e})),t}const Qc=e.forwardRef(((t,n)=>{const{children:r,width:o=10,height:i=5,...a}=t;return e.createElement(il.svg,Ks({},a,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?r:e.createElement("polygon",{points:"0,0 30,0 15,10"}))})),Jc="Popper",[ed,td]=Qs(Jc),[nd,rd]=ed(Jc),od=e.forwardRef(((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=rd("PopperAnchor",r),s=e.useRef(null),l=Xs(n,s);return e.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)})),o?null:e.createElement(il.div,Ks({},i,{ref:l}))})),id="PopperContent",[ad,sd]=ed(id),ld=e.forwardRef(((t,n)=>{var r,a,s,l,u,c,d,p;const{__scopePopper:f,side:h="bottom",sideOffset:m=0,align:g="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:_=!0,collisionBoundary:b=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:E=!1,updatePositionStrategy:S="optimized",onPlaced:T,...C}=t,P=rd(id,f),[R,k]=e.useState(null),O=Xs(n,(e=>k(e))),[A,D]=e.useState(null),M=Al(A),L=null!==(r=null==M?void 0:M.width)&&void 0!==r?r:0,F=null!==(a=null==M?void 0:M.height)&&void 0!==a?a:0,V=h+("center"!==g?"-"+g:""),j="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},N=Array.isArray(b)?b:[b],I=N.length>0,z={padding:j,boundary:N.filter(pd),altBoundary:I},{refs:B,floatingStyles:U,placement:W,isPositioned:$,middlewareData:H}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[p,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=o.useState(r);Kc(h,r)||m(r);const[g,v]=o.useState(null),[y,_]=o.useState(null),b=o.useCallback((e=>{e!==S.current&&(S.current=e,v(e))}),[]),x=o.useCallback((e=>{e!==T.current&&(T.current=e,_(e))}),[]),w=s||g,E=l||y,S=o.useRef(null),T=o.useRef(null),C=o.useRef(p),P=null!=c,R=Xc(c),k=Xc(a),O=o.useCallback((()=>{if(!S.current||!T.current)return;const e={placement:t,strategy:n,middleware:h};k.current&&(e.platform=k.current),Hc(S.current,T.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!Kc(C.current,t)&&(C.current=t,i.flushSync((()=>{f(t)})))}))}),[h,t,n,k]);qc((()=>{!1===d&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[d]);const A=o.useRef(!1);qc((()=>(A.current=!0,()=>{A.current=!1})),[]),qc((()=>{if(w&&(S.current=w),E&&(T.current=E),w&&E){if(R.current)return R.current(w,E,O);O()}}),[w,E,O,R,P]);const D=o.useMemo((()=>({reference:S,floating:T,setReference:b,setFloating:x})),[b,x]),M=o.useMemo((()=>({reference:w,floating:E})),[w,E]),L=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=Yc(M.floating,p.x),r=Yc(M.floating,p.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...Gc(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,M.floating,p.x,p.y]);return o.useMemo((()=>({...p,update:O,refs:D,elements:M,floatingStyles:L})),[p,O,D,M,L])}({strategy:"fixed",placement:V,whileElementsMounted:(...e)=>Nc(...e,{animationFrame:"always"===S}),elements:{reference:P.anchor},middleware:[ic({mainAxis:m+F,alignmentAxis:v}),_&&Ic({mainAxis:!0,crossAxis:!1,limiter:"partial"===w?$c():void 0,...z}),_&&zc({...z}),Bc({...z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),A&&Zc({element:A,padding:y}),fd({arrowWidth:L,arrowHeight:F}),E&&Uc({strategy:"referenceHidden",...z})]}),[Z,q]=hd(W),K=cl(T);al((()=>{$&&(null==K||K())}),[$,K]);const G=null===(s=H.arrow)||void 0===s?void 0:s.x,Y=null===(l=H.arrow)||void 0===l?void 0:l.y,X=0!==(null===(u=H.arrow)||void 0===u?void 0:u.centerOffset),[Q,J]=e.useState();return al((()=>{R&&J(window.getComputedStyle(R).zIndex)}),[R]),e.createElement("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:$?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(c=H.transformOrigin)||void 0===c?void 0:c.x,null===(d=H.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:t.dir},e.createElement(ad,{scope:f,placedSide:Z,onArrowChange:D,arrowX:G,arrowY:Y,shouldHideArrow:X},e.createElement(il.div,Ks({"data-side":Z,"data-align":q},C,{ref:O,style:{...C.style,animation:$?void 0:"none",opacity:null!==(p=H.hide)&&void 0!==p&&p.referenceHidden?0:void 0}}))))})),ud="PopperArrow",cd={top:"bottom",right:"left",bottom:"top",left:"right"},dd=e.forwardRef((function(t,n){const{__scopePopper:r,...o}=t,i=sd(ud,r),a=cd[i.placedSide];return e.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},e.createElement(Qc,Ks({},o,{ref:n,style:{...o.style,display:"block"}})))}));function pd(e){return null!==e}const fd=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[f,h]=hd(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+p/2;let y="",_="";return"bottom"===f?(y=c?m:`${g}px`,_=-p+"px"):"top"===f?(y=c?m:`${g}px`,_=`${l.floating.height+p}px`):"right"===f?(y=-p+"px",_=c?m:`${v}px`):"left"===f&&(y=`${l.floating.width+p}px`,_=c?m:`${v}px`),{data:{x:y,y:_}}}});function hd(e){const[t,n="center"]=e.split("-");return[t,n]}const md=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return e.createElement(nd,{scope:n,anchor:o,onAnchorChange:i},r)},gd=od,vd=ld,yd=dd,_d=e.forwardRef(((t,r)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=t;return i?n.createPortal(e.createElement(il.div,Ks({},a,{ref:r})),i):null})),bd=e.forwardRef(((t,n)=>e.createElement(il.span,Ks({},t,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})))),[xd,wd]=Qs("Tooltip",[td]),Ed=td(),Sd=700,Td="tooltip.open",[Cd,Pd]=xd("TooltipProvider"),Rd="Tooltip",[kd,Od]=xd(Rd),Ad="TooltipTrigger",Dd=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=Od(Ad,r),a=Pd(Ad,r),s=Ed(r),l=Xs(n,e.useRef(null),i.onTriggerChange),u=e.useRef(!1),c=e.useRef(!1),d=e.useCallback((()=>u.current=!1),[]);return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),e.createElement(gd,Ks({asChild:!0},s),e.createElement(il.button,Ks({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:l,onPointerMove:Gs(t.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))})),onPointerLeave:Gs(t.onPointerLeave,(()=>{i.onTriggerLeave(),c.current=!1})),onPointerDown:Gs(t.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:Gs(t.onFocus,(()=>{u.current||i.onOpen()})),onBlur:Gs(t.onBlur,i.onClose),onClick:Gs(t.onClick,i.onClose)})))})),Md="TooltipPortal",[Ld,Fd]=xd(Md,{forceMount:void 0}),Vd="TooltipContent",jd=e.forwardRef(((t,n)=>{const r=Fd(Vd,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=t,s=Od(Vd,t.__scopeTooltip);return e.createElement(Dl,{present:o||s.open},s.disableHoverableContent?e.createElement(Bd,Ks({side:i},a,{ref:n})):e.createElement(Nd,Ks({side:i},a,{ref:n})))})),Nd=e.forwardRef(((t,n)=>{const r=Od(Vd,t.__scopeTooltip),o=Pd(Vd,t.__scopeTooltip),i=e.useRef(null),a=Xs(n,i),[s,l]=e.useState(null),{trigger:u,onClose:c}=r,d=i.current,{onPointerInTransitChange:p}=o,f=e.useCallback((()=>{l(null),p(!1)}),[p]),h=e.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(i),p(!0)}),[p]);return e.useEffect((()=>()=>f()),[f]),e.useEffect((()=>{if(u&&d){const e=e=>h(e,d),t=e=>h(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[u,d,h,f]),e.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,u=t[i].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(o=!o)}return o}(n,s);r?f():o&&(f(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,d,s,c,f]),e.createElement(Bd,Ks({},t,{ref:a}))})),[Id,zd]=xd(Rd,{isInside:!1}),Bd=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,u=Od(Vd,r),c=Ed(r),{onClose:d}=u;return e.useEffect((()=>(document.addEventListener(Td,d),()=>document.removeEventListener(Td,d))),[d]),e.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),e.createElement(Du,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d},e.createElement(vd,Ks({"data-state":u.stateAttribute},c,l,{ref:n,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),e.createElement(nl,null,o),e.createElement(Id,{scope:r,isInside:!0},e.createElement(bd,{id:u.contentId,role:"tooltip"},i||o))))}));const Ud=t=>{const{__scopeTooltip:n,delayDuration:r=Sd,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=t,[s,l]=e.useState(!0),u=e.useRef(!1),c=e.useRef(0);return e.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),e.createElement(Cd,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:e.useCallback((()=>{window.clearTimeout(c.current),l(!1)}),[]),onClose:e.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>l(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:e.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i},a)},Wd=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=t,u=Pd(Rd,t.__scopeTooltip),c=Ed(n),[d,p]=e.useState(null),f=ul(),h=e.useRef(0),m=null!=s?s:u.disableHoverableContent,g=null!=l?l:u.delayDuration,v=e.useRef(!1),[y=!1,_]=dl({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(Td))):u.onClose(),null==a||a(e)}}),b=e.useMemo((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),x=e.useCallback((()=>{window.clearTimeout(h.current),v.current=!1,_(!0)}),[_]),w=e.useCallback((()=>{window.clearTimeout(h.current),_(!1)}),[_]),E=e.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,_(!0)}),g)}),[g,_]);return e.useEffect((()=>()=>window.clearTimeout(h.current)),[]),e.createElement(md,c,e.createElement(kd,{scope:n,contentId:f,open:y,stateAttribute:b,trigger:d,onTriggerChange:p,onTriggerEnter:e.useCallback((()=>{u.isOpenDelayed?E():x()}),[u.isOpenDelayed,E,x]),onTriggerLeave:e.useCallback((()=>{m?w():window.clearTimeout(h.current)}),[w,m]),onOpen:x,onClose:w,disableHoverableContent:m},r))},$d=Dd,Hd=t=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=t,a=Od(Md,n);return e.createElement(Ld,{scope:n,forceMount:r},e.createElement(Dl,{present:r||a.open},e.createElement(_d,{asChild:!0,container:i},o)))},Zd=jd,qd=e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=Ed(r);return zd("TooltipArrow",r).isInside?null:e.createElement(yd,Ks({},i,o,{ref:n}))}));var Kd="Tooltip-module_control__-HxLB",Gd="Tooltip-module_tooltip__4zqsl",Yd="Tooltip-module_beak__9KHCV";c(".Tooltip-module_control__-HxLB {\n all: unset;\n display: flex;\n background: black;\n color: white;\n border-radius: 1000px;\n height: -moz-fit-content;\n height: fit-content;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.Tooltip-module_tooltip__4zqsl {\n padding: 1rem;\n padding-right: .5rem;\n background: white;\n max-width: 400px;\n border-radius: 1rem;\n}\n\n.Tooltip-module_beak__9KHCV {\n fill: white;\n}\n\n\n");var Xd={Root:function(t){var n=t.children,r=s(t,["children"]);return e.createElement(Ud,null,e.createElement(Wd,a({},r),n))},Trigger:function(t){var n=t.className,r=t.children,o=s(t,["className","children"]);return e.createElement($d,a({className:u(n,Kd)},o),r)},Content:function(t){var n=t.className,r=t.children,o=s(t,["className","children"]);return e.createElement(Hd,null,e.createElement(Zd,a({className:u(n,Gd)},o),r,e.createElement(qd,{className:Yd})))}};exports.Button=h,exports.Callout=V,exports.Columns=function(t){var n=t.cols,r=t.children;return e.createElement("div",{className:j,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},exports.DatePicker=function(n){var r=t.useFormContext(),o=r.control,i=r.formState.errors,s=void 0===i?{}:i,l=n.name,u=a(a({},n),{error:s&&s[l]});return e.createElement(t.Controller,{name:l,control:o,render:function(t){var n=t.field;return e.createElement(Z,a({},u,{field:a({},n)}))}})},exports.Disclosure=function(t){var n=t.condition,r=t.children;return e.createElement(ds.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:ps},r)},exports.Form=function(n){var r=n.methods,o=n.children,i=n.onSubmit,l=s(n,["methods","children","onSubmit"]);return e.createElement(t.FormProvider,a({},r),e.createElement("form",a({className:fs,onSubmit:r.handleSubmit((function(e){return i(e)}))},l),o))},exports.Icon=L,exports.Loading=function(t){var n=t.size,r=void 0===n?"medium":n;return e.createElement("video",{style:{width:hs[r],height:"auto"},src:"./loading.webm",autoPlay:!0,loop:!0,muted:!0})},exports.Modal=Is,exports.NumberField=function(n){var r=t.useFormContext(),o=r.control,i=r.formState.errors,s=void 0===i?{}:i,l=n.name,u=a(a({},n),{error:s&&s[l]});return e.createElement(t.Controller,{name:l,control:o,render:function(t){var n=t.field;return e.createElement(Zs,a({},u,{field:a({},n)}))}})},exports.ProgressIndicator=function(t){var n=t.label,r=t.size,o=void 0===r?"full-width":r,i=t.current,a=void 0===i?1:i,s=t.max,l=void 0===s?10:s;return e.createElement("div",{className:u(qs.container,o&&qs["container--".concat(o)])},e.createElement("div",{className:qs.progress},e.createElement("div",{className:qs["progress-bar"],style:{width:"".concat(a/l*100,"%")}})),n&&e.createElement(f,{className:qs.label,variant:"form-helper"},n),e.createElement(f,{className:"sr-only"},"Step ",a," of ",l))},exports.RadioGroup=au,exports.Range=function(n){var r=t.useFormContext(),o=r.control,i=r.formState.errors,s=void 0===i?{}:i,l=n.name,u=a(a({},n),{error:s&&s[l]});return e.createElement(t.Controller,{name:l,control:o,render:function(t){var n=t.field;return e.createElement(hu,a({},u,{field:a({},n)}))}})},exports.Select=function(n){var r=t.useFormContext(),o=r.control,i=r.formState.errors,s=void 0===i?{}:i,l=n.name,u=a(a({},n),{error:s&&s[l]});return e.createElement(t.Controller,{name:l,control:o,render:function(t){var n=t.field;return e.createElement(wu,a({},u,{field:a({},n)}))}})},exports.TextField=function(n){var r=t.useFormContext(),o=r.control,i=r.formState.errors,s=void 0===i?{}:i,l=n.name,u=a(a({},n),{error:s&&s[l]});return e.createElement(t.Controller,{name:l,control:o,render:function(t){var n=t.field;return e.createElement(Su,a({},u,{field:a({},n)}))}})},exports.Toast=Cu,exports.Tooltip=Xd,exports.Typography=f,exports.useModal=Ns;
|
|
29
65
|
//# sourceMappingURL=index.js.map
|