@kroo-web/design-system 1.0.39 → 1.0.40
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/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as t from"react";import e,{createContext as n,useLayoutEffect as r,useEffect as o,useContext as i,useRef as a,useInsertionEffect as s,useCallback as l,useMemo as u,forwardRef as c,Fragment as d,createElement as p,useId as h,Children as f,isValidElement as m,cloneElement as g,useState as v,useReducer as y}from"react";import{useFormContext as _,Controller as b,FormProvider as x}from"react-hook-form";import{flushSync as w}from"react-dom";var E=function(){return E=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},E.apply(this,arguments)};function S(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 k(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=k(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function P(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=k(t))&&(r&&(r+=" "),r+=e);return r}function T(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"};T(".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 R={"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"};T(".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 A=function(t){var n=t.as,r=t.variant,o=void 0===r?"content-regular":r,i=t.children,a=t.className,s=S(t,["as","variant","children","className"]),l=n||"p";return e.createElement(l,E({className:P(R[o],a)},s),i)};function O(t){var n=t.as,r=t.children,o=t.variant,i=void 0===o?"primary":o,a=t.className,s=void 0===a?"":a,l=t.visualType,u=void 0===l?"button":l,c=t.onlyIcon,d=S(t,["as","children","variant","className","visualType","onlyIcon"]),p=n||"button";return e.createElement(p,E({className:P(C[s],C[i],C[u],c&&C["only-icon"])},d),c&&r,!c&&e.createElement(A,{variant:"form-button"},r))}var D="columns-module_container__ycx3n";T(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var j=function(t){var n=t.cols,r=t.children;return e.createElement("div",{className:D,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},F="datepicker-module_container__H0Ck-",M="datepicker-module_input__tm5uo",V="datepicker-module_input--error__D6wsy";T(".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 L="formField-module_container__kHrDY",N="formField-module_label__n-BxC",I="formField-module_helper__tDddc",B="formField-module_error__lDnrF";T(".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 U=function(t){var n=t.id,r=t.error,o=t.helper,i=t.label,a=t.children;return e.createElement("div",{className:L},e.createElement(A,{as:"label",variant:"form-input-normal",className:N,htmlFor:n},i),a,o&&e.createElement(A,{variant:"form-helper",className:I},o),r&&e.createElement(A,{variant:"form-helper",className:B},r))},z=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement($,E({},a,{field:E({},n)}))}})},$=function(t){var n=t.field,r=t.error,o=t.helper,i=S(t,["field","error","helper"]);return e.createElement(U,{id:i.id,label:i.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},e.createElement("div",{className:F},e.createElement("input",E({className:P(M,r&&V),type:"date",id:i.id},n))))};const W=n({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Z=n({}),G=n(null),H="undefined"!=typeof document,Y=H?r:o,K=n({strict:!1}),q=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),X="data-"+q("framerAppearId"),Q=!1,J=!1;class tt{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 et=["prepare","read","update","preRender","render","postRender"];function nt(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=et.reduce(((t,e)=>(t[e]=function(t){let e=new tt,n=new tt,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,et.forEach(a),o.isProcessing=!1,n&&e&&(r=!1,t(s))};return{schedule:et.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=>et.forEach((e=>i[e].cancel(t))),state:o,steps:i}}const{schedule:rt,cancel:ot}=nt(queueMicrotask,!1);function it(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function at(t){return"string"==typeof t||Array.isArray(t)}function st(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const lt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ut=["initial",...lt];function ct(t){return st(t.animate)||ut.some((e=>at(t[e])))}function dt(t){return Boolean(ct(t)||t.variants)}function pt(t){const{initial:e,animate:n}=function(t,e){if(ct(t)){const{initial:e,animate:n}=t;return{initial:!1===e||at(e)?e:void 0,animate:at(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,i(Z));return u((()=>({initial:e,animate:n})),[ht(e),ht(n)])}function ht(t){return Array.isArray(t)?t.join(" "):t}const ft={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"]},mt={};for(const t in ft)mt[t]={isEnabled:e=>ft[t].some((t=>!!e[t]))};const gt=n({}),vt=n({}),yt=Symbol.for("motionComponentSymbol");function _t({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:u,Component:d}){e&&function(t){for(const e in t)mt[e]={...mt[e],...t[e]}}(e);const p=c((function(c,p){let h;const f={...i(W),...c,layoutId:bt(c)},{isStatic:m}=f,g=pt(c),v=u(c,m);if(!m&&H){g.visualElement=function(t,e,n,r){const{visualElement:l}=i(Z),u=i(K),c=i(G),d=i(W).reducedMotion,p=a();r=r||u.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:l,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const h=p.current;s((()=>{h&&h.update(n,c)}));const f=a(Boolean(n[X]&&!window.HandoffComplete));return Y((()=>{h&&(rt.postRender(h.render),f.current&&h.animationState&&h.animationState.animateChanges())})),o((()=>{h&&(h.updateFeatures(),!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))})),h}(d,v,f,n);const t=i(vt),r=i(K).strict;g.visualElement&&(h=g.visualElement.loadFeatures(f,r,e,t))}return t.createElement(Z.Provider,{value:g},h&&g.visualElement?t.createElement(h,{visualElement:g.visualElement,...f}):null,r(d,c,function(t,e,n){return l((r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):it(n)&&(n.current=r))}),[e])}(v,g.visualElement,p),v,m,g.visualElement))}));return p[yt]=d,p}function bt({layoutId:t}){const e=i(gt).id;return e&&void 0!==t?e+"-"+t:t}function xt(t){function e(e,n={}){return _t(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 wt=["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 Et(t){return"string"==typeof t&&!t.includes("-")&&!!(wt.indexOf(t)>-1||/[A-Z]/.test(t))}const St={};const kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set(kt);function Tt(t,{layout:e,layoutId:n}){return Pt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!St[t]||"opacity"===t)}const Ct=t=>Boolean(t&&t.getVelocity),Rt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},At=kt.length;const Ot=t=>e=>"string"==typeof e&&e.startsWith(t),Dt=Ot("--"),jt=Ot("var(--"),Ft=t=>!!jt(t)&&Mt.test(t.split("/*")[0].trim()),Mt=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Vt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Lt=(t,e,n)=>n>e?e:n<t?t:n,Nt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},It={...Nt,transform:t=>Lt(0,1,t)},Bt={...Nt,default:1},Ut=t=>Math.round(1e5*t)/1e5,zt=/(-)?([\d]*\.?[\d])+/g,$t=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Wt=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zt(t){return"string"==typeof t}const Gt=t=>({test:e=>Zt(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Ht=Gt("deg"),Yt=Gt("%"),Kt=Gt("px"),qt=Gt("vh"),Xt=Gt("vw"),Qt={...Yt,parse:t=>Yt.parse(t)/100,transform:t=>Yt.transform(100*t)},Jt={...Nt,transform:Math.round},te={borderWidth:Kt,borderTopWidth:Kt,borderRightWidth:Kt,borderBottomWidth:Kt,borderLeftWidth:Kt,borderRadius:Kt,radius:Kt,borderTopLeftRadius:Kt,borderTopRightRadius:Kt,borderBottomRightRadius:Kt,borderBottomLeftRadius:Kt,width:Kt,maxWidth:Kt,height:Kt,maxHeight:Kt,size:Kt,top:Kt,right:Kt,bottom:Kt,left:Kt,padding:Kt,paddingTop:Kt,paddingRight:Kt,paddingBottom:Kt,paddingLeft:Kt,margin:Kt,marginTop:Kt,marginRight:Kt,marginBottom:Kt,marginLeft:Kt,rotate:Ht,rotateX:Ht,rotateY:Ht,rotateZ:Ht,scale:Bt,scaleX:Bt,scaleY:Bt,scaleZ:Bt,skew:Ht,skewX:Ht,skewY:Ht,distance:Kt,translateX:Kt,translateY:Kt,translateZ:Kt,x:Kt,y:Kt,z:Kt,perspective:Kt,transformPerspective:Kt,opacity:It,originX:Qt,originY:Qt,originZ:Kt,zIndex:Jt,fillOpacity:It,strokeOpacity:It,numOctaves:Jt};function ee(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=te[t],d=Vt(n,r);if(Pt.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<At;e++){const n=kt[e];void 0!==t[n]&&(i+=`${Rt[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 ne=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function re(t,e,n){for(const r in e)Ct(e[r])||Tt(r,n)||(t[r]=e[r])}function oe(t,e,n){const r={};return re(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},e,n){return u((()=>{const r=ne();return ee(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)}),[e])}(t,e,n)),r}function ie(t,e,n){const r={},o=oe(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 ae=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 se(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ae.has(t)}let le=t=>!se(t);try{(ue=require("@emotion/is-prop-valid").default)&&(le=t=>t.startsWith("on")?!se(t):ue(t))}catch(t){}var ue;function ce(t,e,n){return"string"==typeof t?t:Kt.transform(e+n*t)}const de={offset:"stroke-dashoffset",array:"stroke-dasharray"},pe={offset:"strokeDashoffset",array:"strokeDasharray"};function he(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(ee(t,u,c,p),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:f,dimensions:m}=t;h.transform&&(m&&(f.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(t,e,n){return`${ce(e,t.x,t.width)} ${ce(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?de:pe;t[i.offset]=Kt.transform(-r);const a=Kt.transform(e),s=Kt.transform(n);t[i.array]=`${a} ${s}`}(h,a,s,l,!1)}const fe=()=>({...ne(),attrs:{}}),me=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ge(t,e,n,r){const o=u((()=>{const n=fe();return he(n,e,{enableHardwareAcceleration:!1},me(r),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};re(e,t.style,t),o.style={...e,...o.style}}return o}function ve(t=!1){return(e,n,r,{latestValues:o},i)=>{const a=(Et(e)?ge:ie)(n,o,i,e),s=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(le(o)||!0===n&&se(o)||!e&&!se(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"==typeof e,t),l=e!==d?{...s,...a,ref:r}:{},{children:c}=n,h=u((()=>Ct(c)?c.get():c),[c]);return p(e,{...l,children:h})}}function ye(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 _e=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 be(t,e,n,r){ye(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(_e.has(n)?n:q(n),e.attrs[n])}function xe(t,e){const{style:n}=t,r={};for(const o in n)(Ct(n[o])||e.style&&Ct(e.style[o])||Tt(o,t))&&(r[o]=n[o]);return r}function we(t,e){const n=xe(t,e);for(const r in t)if(Ct(t[r])||Ct(e[r])){n[-1!==kt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function Ee(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 Se=t=>Array.isArray(t),ke=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Pe=t=>Se(t)?t[t.length-1]||0:t;function Te(t){const e=Ct(t)?t.get():t;return ke(e)?e.toValue():e}const Ce=t=>(e,n)=>{const r=i(Z),o=i(G),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:Re(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(t,e,r,o);return n?s():function(t){const e=a(null);return null===e.current&&(e.current=t()),e.current}(s)};function Re(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=Te(i[t]);let{initial:a,animate:s}=t;const l=ct(t),u=dt(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&&!st(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=Ee(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 Ae=t=>t,{schedule:Oe,cancel:De,state:je,steps:Fe}=nt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ae,!0),Me={useVisualState:Ce({scrapeMotionValuesFromProps:we,createRenderState:fe,onMount:(t,e,{renderState:n,latestValues:r})=>{Oe.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),Oe.render((()=>{he(n,r,{enableHardwareAcceleration:!1},me(e.tagName),t.transformTemplate),be(e,n)}))}})},Ve={useVisualState:Ce({scrapeMotionValuesFromProps:xe,createRenderState:ne})};function Le(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Ne=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Ie(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Be=t=>e=>Ne(e)&&t(e,Ie(e));function Ue(t,e,n,r){return Le(t,e,Be(n),r)}const ze=(t,e)=>n=>e(t(n)),$e=(...t)=>t.reduce(ze);function We(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Ze=We("dragHorizontal"),Ge=We("dragVertical");function He(t){let e=!1;if("y"===t)e=Ge();else if("x"===t)e=Ze();else{const t=Ze(),n=Ge();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Ye(){const t=He(!0);return!t||(t(),!1)}class Ke{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qe(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return Ue(t.current,n,((n,o)=>{if("touch"===n.pointerType||Ye())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&Oe.update((()=>i[r](n,o)))}),{passive:!t.getProps()[r]})}const Xe=(t,e)=>!!e&&(t===e||Xe(t,e.parentElement));function Qe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ie(n))}const Je=new WeakMap,tn=new WeakMap,en=t=>{const e=Je.get(t.target);e&&e(t)},nn=t=>{t.forEach(en)};function rn(t,e,n){const r=function({root:t,...e}){const n=t||document;tn.has(n)||tn.set(n,{});const r=tn.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(nn,{root:t,...e})),r[o]}(e);return Je.set(t,n),r.observe(t),()=>{Je.delete(t),r.unobserve(t)}}const on={some:0,all:1};const an={inView:{Feature:class extends Ke{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:on[r]};return rn(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 Ke{constructor(){super(...arguments),this.removeStartListeners=Ae,this.removeEndListeners=Ae,this.removeAccessibleListeners=Ae,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Ue(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();Oe.update((()=>{o||Xe(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Ue(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=$e(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Le(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Le(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Qe("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Oe.update((()=>n(t,e)))}))})),Qe("down",((t,e)=>{this.startPress(t,e)}))})),e=Le(this.node.current,"blur",(()=>{this.isPressing&&Qe("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=$e(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&&Oe.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ye()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Oe.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Ue(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Le(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$e(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Ke{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=$e(Le(this.node.current,"focus",(()=>this.onFocus())),Le(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ke{mount(){this.unmount=$e(qe(this.node,!0),qe(this.node,!1))}unmount(){}}}};function sn(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 ln(t,e,n){const r=t.getProps();return Ee(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 un=Ae,cn=Ae;"production"!==process.env.NODE_ENV&&(un=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},cn=(t,e)=>{if(!t)throw new Error(e)});const dn=t=>1e3*t,pn=t=>t/1e3,hn=!1,fn=t=>Array.isArray(t)&&"number"==typeof t[0];function mn(t){return Boolean(!t||"string"==typeof t&&vn[t]||fn(t)||Array.isArray(t)&&t.every(mn))}const gn=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,vn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gn([0,.65,.55,1]),circOut:gn([.55,0,1,.45]),backIn:gn([.31,.01,.66,-.59]),backOut:gn([.33,1.53,.69,.99])};function yn(t){if(t)return fn(t)?gn(t):Array.isArray(t)?t.map(yn):vn[t]}const _n=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,bn=1e-7,xn=12;function wn(t,e,n,r){if(t===e&&n===r)return Ae;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=_n(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>bn&&++s<xn);return a}(e,0,1,t,n);return t=>0===t||1===t?t:_n(o(t),e,r)}const En=wn(.42,0,1,1),Sn=wn(0,0,.58,1),kn=wn(.42,0,.58,1),Pn=t=>Array.isArray(t)&&"number"!=typeof t[0],Tn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Cn=t=>e=>1-t(1-e),Rn=t=>1-Math.sin(Math.acos(t)),An=Cn(Rn),On=Tn(Rn),Dn=wn(.33,1.53,.69,.99),jn=Cn(Dn),Fn=Tn(jn),Mn={linear:Ae,easeIn:En,easeInOut:kn,easeOut:Sn,circIn:Rn,circInOut:On,circOut:An,backIn:jn,backInOut:Fn,backOut:Dn,anticipate:t=>(t*=2)<1?.5*jn(t):.5*(2-Math.pow(2,-10*(t-1)))},Vn=t=>{if(Array.isArray(t)){cn(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return wn(e,n,r,o)}return"string"==typeof t?(cn(void 0!==Mn[t],`Invalid easing type '${t}'`),Mn[t]):t},Ln=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Nn=(t,e,n)=>t+(e-t)*n;function In(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 Bn=(t,e)=>n=>Boolean(Zt(n)&&Wt.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Un=(t,e,n)=>r=>{if(!Zt(r))return r;const[o,i,a,s]=r.match(zt);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},zn={...Nt,transform:t=>Math.round((t=>Lt(0,255,t))(t))},$n={test:Bn("rgb","red"),parse:Un("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+zn.transform(t)+", "+zn.transform(e)+", "+zn.transform(n)+", "+Ut(It.transform(r))+")"};const Wn={test:Bn("#"),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:$n.transform},Zn={test:Bn("hsl","hue"),parse:Un("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Yt.transform(Ut(e))+", "+Yt.transform(Ut(n))+", "+Ut(It.transform(r))+")"},Gn=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Hn=[Wn,$n,Zn];function Yn(t){const e=(n=t,Hn.find((t=>t.test(n))));var n;cn(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===Zn&&(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=In(s,r,t+1/3),i=In(s,r,t),a=In(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 Kn=(t,e)=>{const n=Yn(t),r=Yn(e),o={...n};return t=>(o.red=Gn(n.red,r.red,t),o.green=Gn(n.green,r.green,t),o.blue=Gn(n.blue,r.blue,t),o.alpha=Nn(n.alpha,r.alpha,t),$n.transform(o))},qn={test:t=>$n.test(t)||Wn.test(t)||Zn.test(t),parse:t=>$n.test(t)?$n.parse(t):Zn.test(t)?Zn.parse(t):Wn.parse(t),transform:t=>Zt(t)?t:t.hasOwnProperty("red")?$n.transform(t):Zn.transform(t)};const Xn="number",Qn="color",Jn="var",tr="var(",er="${}",nr=/(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 rr(t){const e=t.toString(),n=e.match(nr)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];qn.test(e)?(o.color.push(t),i.push(Qn),r.push(qn.parse(e))):e.startsWith(tr)?(o.var.push(t),i.push(Jn),r.push(e)):(o.number.push(t),i.push(Xn),r.push(parseFloat(e)))}return{values:r,split:e.replace(nr,er).split(er),indexes:o,types:i}}function or(t){return rr(t).values}function ir(t){const{split:e,types:n}=rr(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===Xn?Ut(t[i]):e===Qn?qn.transform(t[i]):t[i]}return o}}const ar=t=>"number"==typeof t?0:t;const sr={test:function(t){var e,n;return isNaN(t)&&Zt(t)&&((null===(e=t.match(zt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match($t))||void 0===n?void 0:n.length)||0)>0},parse:or,createTransformer:ir,getAnimatableNone:function(t){const e=or(t);return ir(t)(e.map(ar))}};function lr(t,e){return n=>n>0?e:t}function ur(t,e){return n=>Nn(t,e,n)}function cr(t){return"number"==typeof t?ur:"string"==typeof t?Ft(t)?lr:qn.test(t)?Kn:hr:Array.isArray(t)?dr:"object"==typeof t?qn.test(t)?Kn:pr:lr}function dr(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>cr(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}}function pr(t,e){const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=cr(t[o])(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const hr=(t,e)=>{const n=sr.createTransformer(e),r=rr(t),o=rr(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?$e(dr(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):(un(!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.`),lr(t,e))};function fr(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Nn(t,e,n);return cr(t)(t,e)}function mr(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(cn(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||fr,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]||Ae:e;i=$e(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=Ln(t[n],t[n+1],e);return a[n](r)};return n?e=>l(Lt(t[0],t[i-1],e)):l}function gr(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=Ln(0,e,r);t.push(Nn(n,1,o))}}(e,t.length-1),e}function vr({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=Pn(r)?r.map(Vn):Vn(r),i={done:!1,value:e[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:gr(e),t),s=mr(a,e,{ease:Array.isArray(o)?o:(l=e,u=o,l.map((()=>u||kn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=s(e),i.done=e>=t,i)}}function yr(t,e){return e?t*(1e3/e):0}const _r=5;function br(t,e,n){const r=Math.max(e-_r,0);return yr(n-t(r),e-r)}const xr=.001,wr=.01,Er=10,Sr=.05,kr=1;function Pr({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;un(t<=dn(Er),"Spring duration must be 10 seconds or less");let a=1-e;a=Lt(Sr,kr,a),t=Lt(wr,Er,pn(t)),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=Cr(e,a),l=Math.exp(-o);return xr-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=Cr(Math.pow(e,2),a);return(-o(e)+xr>0?-1:1)*((i-s)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-xr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<Tr;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t=dn(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 Tr=12;function Cr(t,e){return t*Math.sqrt(1-e*e)}const Rr=["duration","bounce"],Ar=["stiffness","damping","mass"];function Or(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(!Or(t,Ar)&&Or(t,Rr)){const n=Pr(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-pn(r.velocity||0)}),h=d||0,f=l/(2*Math.sqrt(s*u)),m=i-o,g=pn(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),f<1){const t=Cr(g,f);y=e=>{const n=Math.exp(-f*g*e);return i-n*((h+f*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===f)y=t=>i-Math.exp(-g*t)*(m+(h+g*m)*t);else{const t=g*Math.sqrt(f*f-1);y=e=>{const n=Math.exp(-f*g*e),r=Math.min(t*e,300);return i-n*((h+f*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=h;0!==t&&(o=f<1?br(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 jr({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},h=t=>void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l;let f=n*e;const m=d+f,g=void 0===a?m:a(m);g!==m&&(f=g-d);const v=t=>-f*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,h(p.value)],velocity:br(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 Mr(){Fr=void 0}const Vr={now:()=>(void 0===Fr&&Vr.set(je.isProcessing||J?je.timestamp:performance.now()),Fr),set:t=>{Fr=t,queueMicrotask(Mr)}},Lr=t=>{const e=({timestamp:e})=>t(e);return{start:()=>Oe.update(e,!0),stop:()=>De(e),now:()=>je.isProcessing?je.timestamp:Vr.now()}},Nr=2e4;function Ir(t){let e=0;let n=t.next(e);for(;!n.done&&e<Nr;)e+=50,n=t.next(e);return e>=Nr?1/0:e}const Br={decay:jr,inertia:jr,tween:vr,keyframes:vr,spring:Dr},Ur=t=>t/100;function zr({autoplay:t=!0,delay:e=0,driver:n=Lr,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let h,f,m=1,g=!1;const v=()=>{f=new Promise((t=>{h=t}))};let y;v();const _=Br[o]||vr;let b;_!==vr&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&cn(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=$e(Ur,fr(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,P=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ir(x));const{calculatedDuration:T}=x;let C=1/0,R=1/0;null!==T&&(C=T+a,R=C*(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)/C;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/C)):"mirror"===s&&(u=w)),l=Lt(0,1,n)*C}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===T||(p=m>=0?A>=R:A<=0);const h=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),h&&F(),c},D=()=>{y&&y.stop(),y=void 0},j=()=>{E="idle",D(),h(),v(),k=P=null},F=()=>{E="finished",c&&c(),D(),h()},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(),P=k,S=null,E="running",y.start()};t&&M();const V={then:(t,e)=>f.then(t,e),get time(){return pn(A)},set time(t){t=dn(t),A=t,null===S&&y&&0!==m?k=y.now()-t/m:S=t},get duration(){const t=null===x.calculatedDuration?Ir(x):x.calculatedDuration;return pn(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,V.time=pn(A))},get state(){return E},play:M,pause:()=>{E="paused",S=A},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),j())},cancel:()=>{null!==P&&O(P),j()},complete:()=>{E="finished"},sample:t=>(k=0,O(t))};return V}const $r=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Wr=new Set(["opacity","clipPath","filter","transform"]);function Zr(t,e,{onUpdate:n,onComplete:r,...o}){if(!($r()&&Wr.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:h}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!mn(e.ease))(e,o)){const t=zr({...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;h=void 0,c=n,d=r-10,p="linear"}const f=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=yn(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:h}),m=()=>{l=!1,f.cancel()},g=()=>{l=!0,Oe.update(m),i(),u()};f.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=>(f.timeline=t,f.onfinish=null,Ae),get time(){return pn(f.currentTime||0)},set time(t){f.currentTime=dn(t)},get speed(){return f.playbackRate},set speed(t){f.playbackRate=t},get duration(){return pn(d)},play:()=>{s||(f.play(),De(m))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:e}=f;if(e){const n=zr({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||f.finish()},cancel:g}}const Gr={type:"spring",stiffness:500,damping:25,restSpeed:10},Hr={type:"keyframes",duration:.8},Yr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kr=(t,{keyframes:e})=>e.length>2?Hr:Pt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Gr:Yr,qr=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!sr.test(e)&&"0"!==e||e.startsWith("url("))),Xr=new Set(["brightness","contrast","saturate","opacity"]);function Qr(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(zt)||[];if(!r)return t;const o=n.replace(r,"");let i=Xr.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const Jr=/([a-z-]*)\(.*?\)/g,to={...sr,getAnimatableNone:t=>{const e=t.match(Jr);return e?e.map(Qr).join(" "):t}},eo={...te,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:to,WebkitFilter:to},no=t=>eo[t];function ro(t,e){let n=no(t);return n!==to&&(n=sr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const oo=t=>/^0[^.\s]+$/.test(t);function io(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||oo(t):void 0}function ao(t,e){return t[e]||t.default||t}const so=(t,e,n,r={})=>o=>{const i=ao(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=dn(a);const l=function(t,e,n,r){const o=qr(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]),io(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]]=ro(e,s);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=qr(t,u),p=qr(t,c);un(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 h={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)||(h={...h,...Kr(t,h)}),h.duration&&(h.duration=dn(h.duration)),h.repeatDelay&&(h.repeatDelay=dn(h.repeatDelay)),!d||!p||hn||!1===i.type||Q)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:Ae,pause:Ae,stop:Ae,then:t=>(t(),Promise.resolve()),cancel:Ae,complete:Ae});return e?zr({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}(h);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Zr(e,t,h);if(n)return n}return zr(h)};function lo(t){return Boolean(Ct(t)&&t.add)}const uo=t=>/^\-?\d*\.?\d+$/.test(t);function co(t,e){-1===t.indexOf(e)&&t.push(e)}function po(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ho{constructor(){this.subscriptions=[]}add(t){return co(this.subscriptions,t),()=>po(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 fo=new Set;function mo(t,e,n){t||fo.has(e)||(console.warn(e),n&&console.warn(n),fo.add(e))}class go{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Vr.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=Vr.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&mo(!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 ho);const n=this.events[t].add(e);return"change"===t?()=>{n(),Oe.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=Vr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return yr(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 vo(t,e){return new go(t,e)}const yo=t=>e=>e.test(t),_o=[Nt,Kt,Yt,Ht,Xt,qt,{test:t=>"auto"===t,parse:t=>t}],bo=t=>_o.find(yo(t)),xo=[..._o,qn,sr];function wo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,vo(n))}function Eo(t,e){if(!e)return;return(e[t]||e.default||e).from}function So({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function ko(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 Po(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&&So(c,e))continue;const a={delay:n,elapsed:0,...ao(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[X];if(n){const t=window.HandoffAppearAnimations(n,e,r,Oe);null!==t&&(a.elapsed=t,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(so(e,r,o,t.shouldReduceMotion&&Pt.has(e)?{type:!1}:a));const p=r.animation;lo(l)&&(l.add(e),p.then((()=>l.remove(e)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(t,e){const n=ln(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)wo(t,e,Pe(i[e]))}(t,a)})),u}function To(t,e,n={}){const r=ln(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Po(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(Co).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(To(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 Co(t,e){return t.sortNodePosition(e)}const Ro=[...lt].reverse(),Ao=lt.length;function Oo(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=>To(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=To(t,e,n);else{const o="function"==typeof e?ln(t,e,n.custom):e;r=Promise.all(Po(t,o,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Do(t){let e=Oo(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=ln(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<Ao;e++){const h=Ro[e],f=n[h],m=void 0!==s[h]?s[h]:l[h],g=at(m),v=h===a?f.isActive:null;!1===v&&(p=e);let y=m===l[h]&&m!==s[h]&&g;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...d},!f.isActive&&null===v||!m&&!f.prevProp||st(m)||"boolean"==typeof m)continue;let _=jo(f.prevProp,m)||h===a&&f.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={}}=f,S={...E,...w},k=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),f.needsAnimating[t]=!0};for(const t in S){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let r=!1;r=Se(e)&&Se(n)?!sn(e,n):e!==n,r?void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):f.protectedKeys[t]=!0}f.prevProp=m,f.prevResolvedValues=w,f.isActive&&(d={...d,...w}),r&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:h,...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 h=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(h=!1),r=!1,h?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 jo(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!sn(e,t)}function Fo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Mo=0;const Vo={animation:{Feature:class extends Ke{constructor(t){super(t),t.animationState||(t.animationState=Do(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),st(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 Ke{constructor(){super(...arguments),this.id=Mo++}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(){}}}},Lo=(t,e)=>Math.abs(t-e);class No{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=Uo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Lo(t.x,e.x),r=Lo(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}=je;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=Io(e,this.transformPagePoint),Oe.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=Uo("pointercancel"===t.type?this.lastMoveEventInfo:Io(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!Ne(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=Io(Ie(t),this.transformPagePoint),{point:a}=i,{timestamp:s}=je;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=e;l&&l(t,Uo(i,this.history)),this.removeListeners=$e(Ue(this.contextWindow,"pointermove",this.handlePointerMove),Ue(this.contextWindow,"pointerup",this.handlePointerUp),Ue(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),De(this.updatePoint)}}function Io(t,e){return e?{point:e(t.point)}:t}function Bo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Uo({point:t},e){return{point:t,delta:Bo(t,$o(e)),offset:Bo(t,zo(e)),velocity:Wo(e,.1)}}function zo(t){return t[0]}function $o(t){return t[t.length-1]}function Wo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=$o(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>dn(e)));)n--;if(!r)return{x:0,y:0};const i=pn(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 Zo(t){return t.max-t.min}function Go(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ho(t,e,n,r=.5){t.origin=r,t.originPoint=Nn(e.min,e.max,t.origin),t.scale=Zo(n)/Zo(e),(Go(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Nn(n.min,n.max,t.origin)-t.originPoint,(Go(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Yo(t,e,n,r){Ho(t.x,e.x,n.x,r?r.originX:void 0),Ho(t.y,e.y,n.y,r?r.originY:void 0)}function Ko(t,e,n){t.min=n.min+e.min,t.max=t.min+Zo(e)}function qo(t,e,n){t.min=e.min-n.min,t.max=t.min+Zo(e)}function Xo(t,e,n){qo(t.x,e.x,n.x),qo(t.y,e.y,n.y)}function Qo(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 Jo(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 ti=.35;function ei(t,e,n){return{min:ni(t,e),max:ni(t,n)}}function ni(t,e){return"number"==typeof t?t:t[e]||0}const ri=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),oi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ii(t){return[t("x"),t("y")]}function ai({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function si(t){return void 0===t||1===t}function li({scale:t,scaleX:e,scaleY:n}){return!si(t)||!si(e)||!si(n)}function ui(t){return li(t)||ci(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ci(t){return di(t.x)||di(t.y)}function di(t){return t&&"0%"!==t}function pi(t,e,n){return n+e*(t-n)}function hi(t,e,n,r,o){return void 0!==o&&(t=pi(t,o,r)),pi(t,n,r)+e}function fi(t,e=0,n=1,r,o){t.min=hi(t.min,e,n,r,o),t.max=hi(t.max,e,n,r,o)}function mi(t,{x:e,y:n}){fi(t.x,e.translate,e.scale,e.originPoint),fi(t.y,n.translate,n.scale,n.originPoint)}function gi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function vi(t,e){t.min=t.min+e,t.max=t.max+e}function yi(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=Nn(t.min,t.max,i);fi(t,e[n],e[r],a,e.scale)}const _i=["x","scaleX","originX"],bi=["y","scaleY","originY"];function xi(t,e){yi(t.x,e,_i),yi(t.y,e,bi)}function wi(t,e){return ai(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 Ei=({current:t})=>t?t.ownerDocument.defaultView:null,Si=new WeakMap;class ki{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=oi(),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 No(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Ie(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=He(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),ii((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Yt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=Zo(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&Oe.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:()=>ii((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:Ei(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&&Oe.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||!Pi(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?Nn(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?Nn(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&&it(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:Qo(t.x,n,o),y:Qo(t.y,e,r)}}(r.layoutBox,e),this.elastic=function(t=ti){return!1===t?t=0:!0===t&&(t=ti),{x:ei(t,"left","right"),y:ei(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ii((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||!it(t))return!1;const n=t.current;cn(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=wi(t,n),{scroll:o}=e;return o&&(vi(r.x,o.offset.x),vi(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Jo(t.x,e.x),y:Jo(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=ai(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ii((a=>{if(!Pi(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(so(t,n,0,e))}stopAnimation(){ii((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ii((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){ii((e=>{const{drag:n}=this.getProps();if(!Pi(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]-Nn(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!it(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ii((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=Zo(t),o=Zo(e);return o>r?n=Ln(e.min,e.max-r,t.min):r>o&&(n=Ln(t.min,t.max-o,e.min)),Lt(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(),ii((e=>{if(!Pi(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(Nn(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Si.set(this.visualElement,this);const t=Ue(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();it(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=Le(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ii((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=ti,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Pi(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Ti=t=>(e,n)=>{t&&Oe.update((()=>t(e,n)))};const Ci={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ri(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ai={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Kt.test(t))return t;t=parseFloat(t)}return`${Ri(t,e.target.x)}% ${Ri(t,e.target.y)}%`}},Oi={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=sr.parse(t);if(o.length>5)return r;const i=sr.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=Nn(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 e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=Fi,Object.assign(St,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()})),Ci.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()||Oe.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rt.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 ji(t){const[n,r]=function(){const t=i(G);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,a=h();return o((()=>r(a)),[]),!e&&n?[!1,()=>n&&n(a)]:[!0]}(),a=i(gt);return e.createElement(Di,{...t,layoutGroup:a,switchLayoutGroup:i(vt),isPresent:n,safeToRemove:r})}const Fi={borderRadius:{...Ai,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ai,borderTopRightRadius:Ai,borderBottomLeftRadius:Ai,borderBottomRightRadius:Ai,boxShadow:Oi},Mi=["TopLeft","TopRight","BottomLeft","BottomRight"],Vi=Mi.length,Li=t=>"string"==typeof t?parseFloat(t):t,Ni=t=>"number"==typeof t||Kt.test(t);function Ii(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Bi=zi(0,.5,An),Ui=zi(.5,.95,Ae);function zi(t,e,n){return r=>r<t?0:r>e?1:n(Ln(t,e,r))}function $i(t,e){t.min=e.min,t.max=e.max}function Wi(t,e){$i(t.x,e.x),$i(t.y,e.y)}function Zi(t,e,n,r,o){return t=pi(t-=e,1/n,r),void 0!==o&&(t=pi(t,1/o,r)),t}function Gi(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){Yt.test(e)&&(e=parseFloat(e),e=Nn(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=Nn(i.min,i.max,r);t===i&&(s-=e),t.min=Zi(t.min,e,n,s,o),t.max=Zi(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const Hi=["x","scaleX","originX"],Yi=["y","scaleY","originY"];function Ki(t,e,n,r){Gi(t.x,e,Hi,n?n.x:void 0,r?r.x:void 0),Gi(t.y,e,Yi,n?n.y:void 0,r?r.y:void 0)}function qi(t){return 0===t.translate&&1===t.scale}function Xi(t){return qi(t.x)&&qi(t.y)}function Qi(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 Ji(t){return Zo(t.x)/Zo(t.y)}class ta{constructor(){this.members=[]}add(t){co(this.members,t),t.scheduleRender()}remove(t){if(po(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 ea(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 na=(t,e)=>t.depth-e.depth;class ra{constructor(){this.children=[],this.isDirty=!1}add(t){co(this.children,t),this.isDirty=!0}remove(t){po(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(na),this.isDirty=!1,this.children.forEach(t)}}const oa=["","X","Y","Z"],ia={visibility:"hidden"};let aa=0;const sa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function la({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=aa++,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,sa.totalNodes=sa.resolvedTargetDeltas=sa.recalculatedProjection=0,this.nodes.forEach(da),this.nodes.forEach(ya),this.nodes.forEach(_a),this.nodes.forEach(pa),t=sa,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 ra)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ho),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=Vr.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(De(r),t(i-e))};return Oe.read(r,!0),()=>De(r)}(r,250),Ci.hasAnimatedSinceResize&&(Ci.hasAnimatedSinceResize=!1,this.nodes.forEach(va))}))}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()||ka,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Qi(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={...ao(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||va(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(ba),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(fa);this.isUpdating||this.nodes.forEach(ma),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(ga),this.nodes.forEach(ua),this.nodes.forEach(ca),this.clearAllSnapshots();const t=Vr.now();je.delta=Lt(0,1e3/60,t-je.timestamp),je.timestamp=t,je.isProcessing=!0,Fe.update.process(je),Fe.preRender.process(je),Fe.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rt.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(ha),this.sharedNodes.forEach(xa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Oe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Oe.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=oi(),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&&!Xi(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||ui(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)),Ca((r=n).x),Ca(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return oi();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(vi(e.x,n.offset.x),vi(e.y,n.offset.y)),e}removeElementScroll(t){const e=oi();Wi(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){Wi(e,t);const{scroll:n}=this.root;n&&(vi(e.x,-n.offset.x),vi(e.y,-n.offset.y))}vi(e.x,o.offset.x),vi(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=oi();Wi(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&&xi(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ui(r.latestValues)&&xi(n,r.latestValues)}return ui(this.latestValues)&&xi(n,this.latestValues),n}removeTransform(t){const e=oi();Wi(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!ui(n.latestValues))continue;li(n.latestValues)&&n.updateSnapshot();const r=oi();Wi(r,n.measurePageBox()),Ki(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ui(this.latestValues)&&Ki(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!==je.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=je.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oi(),this.relativeTargetOrigin=oi(),Xo(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Wi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=oi(),this.targetWithTransforms=oi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Ko(a.x,s.x,l.x),Ko(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Wi(this.target,this.layout.layoutBox),mi(this.target,this.targetDelta)):Wi(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=oi(),this.relativeTargetOrigin=oi(),Xo(this.relativeTargetOrigin,this.target,t.target),Wi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!li(this.parent.latestValues)&&!ci(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===je.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;Wi(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&&xi(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,mi(t,a)),r&&ui(i.latestValues)&&xi(t,i.latestValues))}e.x=gi(e.x),e.y=gi(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=oi());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=ri(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=ri(),this.projectionDeltaWithTransform=ri());const u=this.projectionTransform;Yo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ea(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sa.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=ri();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=oi(),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(Sa));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,p,h,f,m,g;wa(i.x,t.x,n),wa(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xo(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=n,Ea(h.x,f.x,m.x,g),Ea(h.y,f.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=oi()),Wi(d,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=Nn(0,void 0!==n.opacity?n.opacity:1,Bi(r)),t.opacityExit=Nn(void 0!==e.opacity?e.opacity:1,0,Ui(r))):i&&(t.opacity=Nn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Vi;o++){const i=`border${Mi[o]}Radius`;let a=Ii(e,i),s=Ii(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ni(a)===Ni(s)?(t[i]=Math.max(Nn(Li(a),Li(s),r),0),(Yt.test(s)||Yt.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=Nn(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=Oe.update((()=>{Ci.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=Ct(t)?t:vo(t);return r.start(so("",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&&Ra(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||oi();const e=Zo(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=Zo(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Wi(e,n),xi(e,o),Yo(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ta);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<oa.length;e++){const o="rotate"+oa[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 ia;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Te(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=Te(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ui(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ea(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 St){if(void 0===a[t])continue;const{correct:e,applyTo:n}=St[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?Te(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(fa),this.root.sharedNodes.clear()}}}function ua(t){t.updateLayout()}function ca(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?ii((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=Zo(r);r.min=e[t].min,r.max=r.min+o})):Ra(o,n.layoutBox,e)&&ii((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Zo(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=ri();Yo(a,e,n.layoutBox);const s=ri();i?Yo(s,t.applyTransform(r,!0),n.measuredBox):Yo(s,e,n.layoutBox);const l=!Xi(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=oi();Xo(a,n.layoutBox,o.layoutBox);const s=oi();Xo(s,e,i.layoutBox),Qi(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 da(t){sa.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 pa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ha(t){t.clearSnapshot()}function fa(t){t.clearMeasurements()}function ma(t){t.isLayoutDirty=!1}function ga(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function va(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ya(t){t.resolveTargetDelta()}function _a(t){t.calcProjection()}function ba(t){t.resetRotation()}function xa(t){t.removeLeadSnapshot()}function wa(t,e,n){t.translate=Nn(e.translate,0,n),t.scale=Nn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ea(t,e,n,r){t.min=Nn(e.min,n.min,r),t.max=Nn(e.max,n.max,r)}function Sa(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ka={duration:.45,ease:[.4,0,.1,1]},Pa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ta=Pa("applewebkit/")&&!Pa("chrome/")?Math.round:Ae;function Ca(t){t.min=Ta(t.min),t.max=Ta(t.max)}function Ra(t,e,n){return"position"===t||"preserve-aspect"===t&&!Go(Ji(e),Ji(n),.2)}const Aa=la({attachResizeListener:(t,e)=>Le(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oa={current:void 0},Da=la({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Oa.current){const t=new Aa({});t.mount(window),t.setOptions({layoutScroll:!0}),Oa.current=t}return Oa.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),ja={pan:{Feature:class extends Ke{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new No(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ei(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ti(t),onStart:Ti(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&Oe.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=Ue(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 Ke{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new ki(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Da,MeasureLayout:ji}},Fa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Ma=4;function Va(t,e,n=1){cn(n<=Ma,`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 uo(t)?parseFloat(t):t}return Ft(o)?Va(o,e,n+1):o}const La=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Na=t=>La.has(t),Ia=t=>t===Nt||t===Kt,Ba=(t,e)=>parseFloat(t.split(", ")[e]),Ua=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ba(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Ba(e[1],t):0}},za=new Set(["x","y","z"]),$a=kt.filter((t=>!za.has(t)));const Wa={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:Ua(4,13),y:Ua(5,14)};Wa.translateX=Wa.x,Wa.translateY=Wa.y;const Za=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(Na);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=bo(u);const d=e[o];let p;if(Se(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=bo(u);for(let n=e;n<t&&null!==d[n];n++)p?cn(bo(d[n])===p,"All keyframes must be of the same type"):(p=bo(d[n]),cn(p===c||Ia(c)&&Ia(p),"Keyframes must be of the same dimension as the current value"))}else p=bo(d);if(c!==p)if(Ia(c)&&Ia(p)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===Kt&&(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 $a.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]=Wa[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]=Wa[n](l,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),H&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Ga(t,e,n,r){return(t=>Object.keys(t).some(Na))(e)?Za(t,e,n,r):{target:e,transitionEnd:r}}const Ha=(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=Va(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!Ft(o))continue;const i=Va(o,r);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return Ga(t,e=o.target,n,r=o.transitionEnd)},Ya={current:null},Ka={current:!1};const qa=new WeakMap,Xa=Object.keys(mt),Qa=Xa.length,Ja=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ts=ut.length;class es{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=()=>Oe.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=ct(e),this.isVariantNode=dt(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]&&Ct(e)&&(e.set(a[t],!1),lo(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,qa.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))),Ka.current||function(){if(Ka.current=!0,H)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ya.current=t.matches;t.addListener(e),e()}else Ya.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ya.current),"production"!==process.env.NODE_ENV&&mo(!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(){qa.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=Pt.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Oe.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?un(!1,t):cn(!1,t)}for(let t=0;t<Qa;t++){const n=Xa[t],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=mt[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&&it(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):oi()}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<Ja.length;e++){const n=Ja[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(Ct(i))t.addValue(o,i),lo(r)&&r.add(o),"development"===process.env.NODE_ENV&&mo("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(Ct(a))t.addValue(o,vo(i,{owner:t})),lo(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,vo(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<ts;t++){const n=ut[t],r=this.props[n];(at(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=vo(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=Ee(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||Ct(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 ho),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ns extends es{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&&(uo(c)||oo(c))?c=parseFloat(c):(s=c,!xo.find(yo(s))&&sr.test(u)&&(c=ro(a,u))),t.addValue(a,vo(c,{owner:t})),void 0===n[a]&&(n[a]=c),null!==c&&t.setBaseTarget(a,c))}}(this,n,o);const t=Ha(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class rs extends ns{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(Pt.has(e)){const t=no(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 wi(t,e)}build(t,e,n,r){ee(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return xe(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){ye(t,e,n,r)}}class os extends ns{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Pt.has(e)){const t=no(e);return t&&t.default||0}return e=_e.has(e)?e:q(e),t.getAttribute(e)}measureInstanceViewportBox(){return oi()}scrapeMotionValuesFromProps(t,e){return we(t,e)}build(t,e,n,r){he(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){be(t,e,0,r)}mount(t){this.isSVGTag=me(t.tagName),super.mount(t)}}const is=(t,e)=>Et(t)?new os(e,{enableHardwareAcceleration:!1}):new rs(e,{enableHardwareAcceleration:!0}),as={...Vo,...an,...ja,...{layout:{ProjectionNode:Da,MeasureLayout:ji}}},ss=xt(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...Et(t)?Me:Ve,preloadedFeatures:n,useRender:ve(e),createVisualElement:r,Component:t}}(t,e,as,is)));var ls={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},us=function(t){var n=t.condition,r=t.children;return e.createElement(ss.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:ls},r)},cs="form-module_form__FGOhg";T(".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 ds=function(t){var n=t.methods,r=t.children,o=t.onSubmit,i=S(t,["methods","children","onSubmit"]);return e.createElement(x,E({},n),e.createElement("form",E({className:cs,onSubmit:n.handleSubmit((function(t){return o(t)}))},i),r))},ps="numberField-module_container__yjOIU",hs="numberField-module_fake-input__cqOX-",fs="numberField-module_spinbutton-container__HkUKt",ms="numberField-module_spinbutton-container--error__dO4fj",gs="numberField-module_control__yE0Ro";T(".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 vs=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],ys=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(_s,E({},a,{field:E({},n)}))}})},_s=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,u=void 0===l?3:l,c=t.error,d=t.helper,p=t.field,h=p.value,f=p.onChange,m=p.onBlur,g=function(t){h<=i||f(h-t)},v=function(t){h>=s||f(h+t)};return e.createElement(U,{id:"".concat(n,"-label"),label:r,error:null==c?void 0:c.message,helper:null==d?void 0:d.message},e.createElement("div",{className:ps},e.createElement("div",{className:P(fs,c&&ms)},e.createElement("button",{className:gs,type:"button",tabIndex:-1,onClick:function(){return g(1)},"aria-label":"decrease"},"-"),e.createElement(A,{as:"div",className:hs,role:"spinbutton",tabIndex:0,onKeyDown:function(t){vs.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&v(1),"ArrowDown"===t.key&&g(1)}(t),function(t){"PageUp"===t.key&&v(5),"PageDown"===t.key&&g(5)}(t),function(t){"Home"===t.key&&f(i),"End"===t.key&&f(s)}(t))},onBlur:m,"aria-valuenow":h,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==c?void 0:c.message),"aria-errormessage":c?"".concat(n,"-error"):void 0,style:{width:"".concat(u,"ch")}},h),e.createElement("button",{className:gs,type:"button",tabIndex:-1,onClick:function(){return v(1)},"aria-label":"increase"},"+"))))};function bs(){return bs=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},bs.apply(this,arguments)}function xs(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 ws(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function Es(...t){return l(ws(...t),t)}function Ss(t,e=[]){let r=[];const o=()=>{const e=r.map((t=>n(t)));return function(n){const r=(null==n?void 0:n[t])||e;return u((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(e,o){const a=n(o),s=r.length;function l(e){const{scope:n,children:r,...o}=e,i=(null==n?void 0:n[t][s])||a,l=u((()=>o),Object.values(o));return p(i.Provider,{value:l},r)}return r=[...r,o],l.displayName=e+"Provider",[l,function(n,r){const l=(null==r?void 0:r[t][s])||a,u=i(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},ks(o,...e)]}function ks(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const r=n.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return u((()=>({[`__scope${e.scopeName}`]:r})),[r])}};return n.scopeName=e.scopeName,n}const Ps=c(((t,e)=>{const{children:n,...r}=t,o=f.toArray(n),i=o.find(Rs);if(i){const t=i.props.children,n=o.map((e=>e===i?f.count(t)>1?f.only(null):m(t)?t.props.children:null:e));return p(Ts,bs({},r,{ref:e}),m(t)?g(t,void 0,n):null)}return p(Ts,bs({},r,{ref:e}),n)}));Ps.displayName="Slot";const Ts=c(((t,e)=>{const{children:n,...r}=t;return m(n)?g(n,{...As(r,n.props),ref:e?ws(e,n.ref):n.ref}):f.count(n)>1?f.only(null):null}));Ts.displayName="SlotClone";const Cs=({children:t})=>p(d,null,t);function Rs(t){return m(t)&&t.type===Cs}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 Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=c(((t,n)=>{const{asChild:r,...i}=t,a=r?Ps:e;return o((()=>{window[Symbol.for("radix-ui")]=!0}),[]),p(a,bs({},i,{ref:n}))}));return n.displayName=`Primitive.${e}`,{...t,[e]:n}}),{});const Ds=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r:()=>{},js=t["useId".toString()]||(()=>{});let Fs=0;function Ms(t){const e=a(t);return o((()=>{e.current=t})),u((()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)}),[])}function Vs({prop:t,defaultProp:e,onChange:n=(()=>{})}){const[r,i]=function({defaultProp:t,onChange:e}){const n=v(t),[r]=n,i=a(r),s=Ms(e);return o((()=>{i.current!==r&&(s(r),i.current=r)}),[r,i,s]),n}({defaultProp:e,onChange:n}),s=void 0!==t,u=s?t:r,c=Ms(n);return[u,l((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[s,t,i,c])]}const Ls=n(void 0);function Ns(t){const e=i(Ls);return t||e||"ltr"}const Is="rovingFocusGroup.onEntryFocus",Bs={bubbles:!1,cancelable:!0},Us="RovingFocusGroup",[zs,$s,Ws]=function(t){const n=t+"CollectionProvider",[r,o]=Ss(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=Es(n,a(s,r).collectionRef);return e.createElement(Ps,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),c=Es(n,s),d=a(l,r);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),e.createElement(Ps,{[u]:"",ref:c},o)}))},function(n){const r=a(t+"CollectionConsumer",n);return e.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]}(Us),[Zs,Gs]=Ss(Us,[Ws]),[Hs,Ys]=Zs(Us),Ks=c(((t,e)=>p(zs.Provider,{scope:t.__scopeRovingFocusGroup},p(zs.Slot,{scope:t.__scopeRovingFocusGroup},p(qs,bs({},t,{ref:e})))))),qs=c(((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:h,...f}=t,m=a(null),g=Es(e,m),y=Ns(s),[_=null,b]=Vs({prop:u,defaultProp:c,onChange:d}),[x,w]=v(!1),E=Ms(h),S=$s(n),k=a(!1),[P,T]=v(0);return o((()=>{const t=m.current;if(t)return t.addEventListener(Is,E),()=>t.removeEventListener(Is,E)}),[E]),p(Hs,{scope:n,orientation:r,dir:y,loop:i,currentTabStopId:_,onItemFocus:l((t=>b(t)),[b]),onItemShiftTab:l((()=>w(!0)),[]),onFocusableItemAdd:l((()=>T((t=>t+1))),[]),onFocusableItemRemove:l((()=>T((t=>t-1))),[])},p(Os.div,bs({tabIndex:x||0===P?-1:0,"data-orientation":r},f,{ref:g,style:{outline:"none",...t.style},onMouseDown:xs(t.onMouseDown,(()=>{k.current=!0})),onFocus:xs(t.onFocus,(t=>{const e=!k.current;if(t.target===t.currentTarget&&e&&!x){const e=new CustomEvent(Is,Bs);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=S().filter((t=>t.focusable));Js([t.find((t=>t.active)),t.find((t=>t.id===_)),...t].filter(Boolean).map((t=>t.ref.current)))}}k.current=!1})),onBlur:xs(t.onBlur,(()=>w(!1)))})))})),Xs=c(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...l}=e,u=function(e){const[n,r]=t.useState(js());return Ds((()=>{e||r((t=>null!=t?t:String(Fs++)))}),[e]),e||(n?`radix-${n}`:"")}(),c=s||u,d=Ys("RovingFocusGroupItem",r),h=d.currentTabStopId===c,f=$s(r),{onFocusableItemAdd:m,onFocusableItemRemove:g}=d;return o((()=>{if(i)return m(),()=>g()}),[i,m,g]),p(zs.ItemSlot,{scope:r,id:c,focusable:i,active:a},p(Os.span,bs({tabIndex:h?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:xs(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:xs(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:xs(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:Qs[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((()=>Js(o)))}var n,r}))})))})),Qs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Js(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const tl=Ks,el=Xs;const nl=t=>{const{present:e,children:n}=t,r=function(t){const[e,n]=v(),r=a({}),i=a(t),s=a("none"),u=t?"mounted":"unmounted",[c,d]=function(t,e){return y(((t,n)=>{const r=e[t][n];return null!=r?r:t}),t)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o((()=>{const t=rl(r.current);s.current="mounted"===c?t:"none"}),[c]),Ds((()=>{const e=r.current,n=i.current;if(n!==t){const r=s.current,o=rl(e);if(t)d("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}}),[t,d]),Ds((()=>{if(e){const t=t=>{const n=rl(r.current).includes(t.animationName);t.target===e&&n&&w((()=>d("ANIMATION_END")))},n=t=>{t.target===e&&(s.current=rl(r.current))};return e.addEventListener("animationstart",n),e.addEventListener("animationcancel",t),e.addEventListener("animationend",t),()=>{e.removeEventListener("animationstart",n),e.removeEventListener("animationcancel",t),e.removeEventListener("animationend",t)}}d("ANIMATION_END")}),[e,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l((t=>{t&&(r.current=getComputedStyle(t)),n(t)}),[])}}(e),i="function"==typeof n?n({present:r.isPresent}):f.only(n),s=Es(r.ref,i.ref);return"function"==typeof n||r.isPresent?g(i,{ref:s}):null};function rl(t){return(null==t?void 0:t.animationName)||"none"}nl.displayName="Presence";const ol="Radio",[il,al]=Ss(ol),[sl,ll]=il(ol),ul=c(((t,e)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:s,value:l="on",onCheck:u,...c}=t,[d,h]=v(null),f=Es(e,(t=>h(t))),m=a(!1),g=!d||Boolean(d.closest("form"));return p(sl,{scope:n,checked:o,disabled:s},p(Os.button,bs({type:"button",role:"radio","aria-checked":o,"data-state":pl(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onClick:xs(t.onClick,(t=>{o||null==u||u(),g&&(m.current=t.isPropagationStopped(),m.current||t.stopPropagation())}))})),g&&p(dl,{control:d,bubbles:!m.current,name:r,value:l,checked:o,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),cl=c(((t,e)=>{const{__scopeRadio:n,forceMount:r,...o}=t,i=ll("RadioIndicator",n);return p(nl,{present:r||i.checked},p(Os.span,bs({"data-state":pl(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:e})))})),dl=t=>{const{control:e,checked:n,bubbles:r=!0,...i}=t,s=a(null),l=function(t){const e=a({value:t,previous:t});return u((()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous)),[t])}(n),c=function(t){const[e,n]=v(void 0);return Ds((()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let o,i;if("borderBoxSize"in r){const t=r.borderBoxSize,e=Array.isArray(t)?t[0]:t;o=e.inlineSize,i=e.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),e}(e);return o((()=>{const t=s.current,e=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(e,"checked").set;if(l!==n&&o){const e=new Event("click",{bubbles:r});o.call(t,n),t.dispatchEvent(e)}}),[l,n,r]),p("input",bs({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function pl(t){return t?"checked":"unchecked"}const hl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fl="RadioGroup",[ml,gl]=Ss(fl,[Gs,al]),vl=Gs(),yl=al(),[_l,bl]=ml(fl),xl=c(((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...h}=t,f=vl(n),m=Ns(u),[g,v]=Vs({prop:i,defaultProp:o,onChange:d});return p(_l,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:v},p(tl,bs({asChild:!0},f,{orientation:l,dir:m,loop:c}),p(Os.div,bs({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},h,{ref:e}))))})),wl=c(((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...i}=t,s=bl("RadioGroupItem",n),l=s.disabled||r,u=vl(n),c=yl(n),d=a(null),h=Es(e,d),f=s.value===i.value,m=a(!1);return o((()=>{const t=t=>{hl.includes(t.key)&&(m.current=!0)},e=()=>m.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),p(el,bs({asChild:!0},u,{focusable:!l,active:f}),p(ul,bs({disabled:l,required:s.required,checked:f},c,i,{name:s.name,ref:h,onCheck:()=>s.onValueChange(i.value),onKeyDown:xs((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:xs(i.onFocus,(()=>{var t;m.current&&(null===(t=d.current)||void 0===t||t.click())}))})))})),El=c(((t,e)=>{const{__scopeRadioGroup:n,...r}=t,o=yl(n);return p(cl,bs({},o,r,{ref:e}))}));var Sl="radioGroup-module_legend__WklzX",kl="radioGroup-module_radio-root__RtJ2M",Pl="radioGroup-module_radio-root--error__9DrYG",Tl="radioGroup-module_radio-root-label--error__KdFST",Cl="radioGroup-module_radio-item__BKOlM",Rl="radioGroup-module_radio-indicator__-hEEu";T('\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(t){var n=t.children,r=t.className,o=t.name,i=t.label,a=S(t,["children","className","name","label"]),s=_(),l=s.control,u=s.formState.errors,c=u&&u[o];return e.createElement(b,{name:o,control:l,render:function(t){var o=t.field,s=o.onChange,l=S(o,["onChange"]);return e.createElement("fieldset",null,e.createElement(A,{className:Sl,as:"legend",variant:"form-input-normal"},i),e.createElement(xl,E({className:P(r,kl,c&&Pl),onValueChange:s},a,l,{"aria-required":void 0}),n),c&&e.createElement("p",{className:Tl},null==c?void 0:c.message))}})},Item:function(t){var n=t.children,r=t.className,o=S(t,["children","className"]);return e.createElement(wl,E({className:P(r,Cl)},o),e.createElement(A,{variant:"form-input-normal"},n))},Indicator:function(t){var n=t.className,r=S(t,["className"]);return e.createElement(El,E({className:P(n,Rl)},r))}},Ol="range-module_container__SwhGo",Dl="range-module_range-container__iGnY1",jl="range-module_slider__pZtfP",Fl="range-module_notches__Zc4Og",Ml="range-module_notch__qXs7B",Vl="range-module_progress__fElkU",Ll="range-module_value-container__8Zt0r";T(".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 Nl=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(Il,E({},a,{field:E({},n)}))}})},Il=function(t){var n=t.id,r=t.min,o=void 0===r?0:r,i=t.max,a=void 0===i?1e3:i,s=t.step,l=void 0===s?100:s,u=t.name,c=t.label,d=t.helper,p=t.error,h=t.field,f=h.value,m=(f-o)/(a-o)*100,g=function(t,e,n){return(e-t)/n};return e.createElement(U,{id:n,label:c,error:null==p?void 0:p.message,helper:null==d?void 0:d.message},e.createElement("div",{className:Ol},e.createElement("div",{className:Dl},e.createElement("div",{className:Fl},Array.from({length:g(o,a,l)}).map((function(t,n){return e.createElement("div",{key:n,className:Ml,style:{left:"".concat(n/g(o,a,l)*100,"%")}})}))),e.createElement("div",{className:Vl,style:{width:"calc(".concat(m||0,"%)")}}),e.createElement("input",E({id:"".concat(u,"-range"),className:jl,type:"range",min:o,max:a,step:l},h))),e.createElement(A,{className:Ll,variant:"content-title-semi-bold"},"£",f)))},Bl="select-module_container__Lydyj",Ul="select-module_input__Hcrhq",zl="select-module_icon__SCm5W",$l="select-module_input--error__4pQ0M",Wl="select-module_input--disabled__zteOi",Zl="select-module_error-message__89d1g",Gl="select-module_helper-message__VwS-B";T("\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 Hl=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(Yl,E({},a,{field:E({},n)}))}})},Yl=function(t){var n=t.error,r=t.helper,o=t.label,i=t.items,a=t.placeholder,s=t.disabled,l=t.field;return e.createElement("div",{className:Bl},e.createElement("label",{className:"sr-only"},o),e.createElement("svg",{className:zl,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",E({className:P(Ul,(null==n?void 0:n.message)&&$l,s&&Wl)},l),a&&e.createElement("option",{value:"placeholder",disabled:!0},a),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(A,{className:Gl,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&e.createElement(A,{className:Zl,as:"p",variant:"form-helper"},n.message))};function Kl(){var t=v({width:600,height:void 0}),e=t[0],n=t[1];return o((function(){function t(){n({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),e}var ql={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"};T(".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 Xl,Ql=function(t){var n=_(),r=n.control,o=n.formState.errors,i=t.name,a=E(E({},t),{error:o&&o[i]});return e.createElement(b,{name:i,control:r,render:function(t){var n=t.field;return e.createElement(Jl,E({},a,{field:E({},n)}))}})},Jl=function(t){var n=t.id,r=t.label,o=t.helper,i=t.error,a=t.type,s=t.prefix,l=t.suffix,u=t.disabled,c=t.className,d=t.rightContent,p=t.leftContent,h=t.field,f=h.value,m=h.onBlur,g=S(h,["value","onBlur"]),y=Kl().width,_=v(!1),b=_[0],x=_[1],w=""!==f||b,k=y>768,T=o||i,C={focused:{fontSize:k?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:k?"1.25rem":"1.125rem",top:"50%"}};return e.createElement("div",null,e.createElement("div",{className:P(ql.container,i&&ql["container--error"])},e.createElement(ss.label,{className:ql.label,initial:"notFocused",variants:C,htmlFor:"input-".concat(n),animate:b||""!==f?"focused":"notFocused"},r," ",l&&e.createElement("span",null,l)),e.createElement("input",E({id:"input-".concat(n),className:P(c,ql["input--".concat(c)],ql.input,s&&ql["input--prefix"]),type:a,"aria-describedby":"error-".concat(n),disabled:u,onFocus:function(){return x(!0)},onBlur:function(){m(),x(!1)},value:f},g)),s&&w&&e.createElement("span",{className:ql.prefix},s),e.createElement("div",null,d&&e.createElement("div",{className:ql.rightContent},d),p&&e.createElement("div",{className:ql.leftContent},p))),T&&e.createElement("div",{className:ql.inputDescription},o&&e.createElement("span",{id:"feedback-".concat(n),className:ql.helper},o.message),i&&e.createElement("span",{id:"error-".concat(n),className:ql.error},i.message)))},tu={exports:{}},eu={},nu={exports:{}},ru={};var ou,iu,au,su={exports:{}};
|
|
1
|
+
import*as t from"react";import e,{createContext as n,useLayoutEffect as r,useEffect as o,useContext as i,useRef as a,useInsertionEffect as s,useCallback as l,useMemo as u,forwardRef as c,Fragment as d,createElement as p,useId as h,Children as f,isValidElement as m,cloneElement as g,useState as v,useReducer as y}from"react";import{useFormContext as _,Controller as b,FormProvider as x}from"react-hook-form";import{flushSync as w}from"react-dom";var E=function(){return E=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},E.apply(this,arguments)};function S(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 k(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=k(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function P(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=k(t))&&(r&&(r+=" "),r+=e);return r}function T(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"};T(".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 R={"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"};T(".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 A=function(t){var n=t.as,r=t.variant,o=void 0===r?"content-regular":r,i=t.children,a=t.className,s=S(t,["as","variant","children","className"]),l=n||"p";return e.createElement(l,E({className:P(R[o],a)},s),i)};function O(t){var n=t.as,r=t.children,o=t.variant,i=void 0===o?"primary":o,a=t.className,s=void 0===a?"":a,l=t.visualType,u=void 0===l?"button":l,c=t.onlyIcon,d=S(t,["as","children","variant","className","visualType","onlyIcon"]),p=n||"button";return e.createElement(p,E({className:P(C[s],C[i],C[u],c&&C["only-icon"])},d),c&&r,!c&&e.createElement(A,{variant:"form-button"},r))}var D="columns-module_container__ycx3n";T(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var j=function(t){var n=t.cols,r=t.children;return e.createElement("div",{className:D,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},F="datepicker-module_container__H0Ck-",M="datepicker-module_input__tm5uo",V="datepicker-module_input--error__D6wsy";T(".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 L="formField-module_container__kHrDY",N="formField-module_label__n-BxC",I="formField-module_helper__tDddc",B="formField-module_error__lDnrF";T(".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 U=function(t){var n=t.id,r=t.error,o=t.helper,i=t.label,a=t.children;return e.createElement("div",{className:L},e.createElement(A,{as:"label",variant:"form-input-normal",className:N,htmlFor:n},i),a,o&&e.createElement(A,{variant:"form-helper",className:I},o),r&&e.createElement(A,{variant:"form-helper",className:B},r))},z=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=E(E({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement($,E({},s,{field:E({},n)}))}})},$=function(t){var n=t.field,r=t.error,o=t.helper,i=S(t,["field","error","helper"]);return e.createElement(U,{id:i.id,label:i.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},e.createElement("div",{className:F},e.createElement("input",E({className:P(M,r&&V),type:"date",id:i.id},n))))};const W=n({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Z=n({}),G=n(null),H="undefined"!=typeof document,Y=H?r:o,K=n({strict:!1}),q=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),X="data-"+q("framerAppearId"),Q=!1,J=!1;class tt{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 et=["prepare","read","update","preRender","render","postRender"];function nt(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=et.reduce(((t,e)=>(t[e]=function(t){let e=new tt,n=new tt,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,et.forEach(a),o.isProcessing=!1,n&&e&&(r=!1,t(s))};return{schedule:et.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=>et.forEach((e=>i[e].cancel(t))),state:o,steps:i}}const{schedule:rt,cancel:ot}=nt(queueMicrotask,!1);function it(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function at(t){return"string"==typeof t||Array.isArray(t)}function st(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const lt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ut=["initial",...lt];function ct(t){return st(t.animate)||ut.some((e=>at(t[e])))}function dt(t){return Boolean(ct(t)||t.variants)}function pt(t){const{initial:e,animate:n}=function(t,e){if(ct(t)){const{initial:e,animate:n}=t;return{initial:!1===e||at(e)?e:void 0,animate:at(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,i(Z));return u((()=>({initial:e,animate:n})),[ht(e),ht(n)])}function ht(t){return Array.isArray(t)?t.join(" "):t}const ft={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"]},mt={};for(const t in ft)mt[t]={isEnabled:e=>ft[t].some((t=>!!e[t]))};const gt=n({}),vt=n({}),yt=Symbol.for("motionComponentSymbol");function _t({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:u,Component:d}){e&&function(t){for(const e in t)mt[e]={...mt[e],...t[e]}}(e);const p=c((function(c,p){let h;const f={...i(W),...c,layoutId:bt(c)},{isStatic:m}=f,g=pt(c),v=u(c,m);if(!m&&H){g.visualElement=function(t,e,n,r){const{visualElement:l}=i(Z),u=i(K),c=i(G),d=i(W).reducedMotion,p=a();r=r||u.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:l,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const h=p.current;s((()=>{h&&h.update(n,c)}));const f=a(Boolean(n[X]&&!window.HandoffComplete));return Y((()=>{h&&(rt.postRender(h.render),f.current&&h.animationState&&h.animationState.animateChanges())})),o((()=>{h&&(h.updateFeatures(),!f.current&&h.animationState&&h.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))})),h}(d,v,f,n);const t=i(vt),r=i(K).strict;g.visualElement&&(h=g.visualElement.loadFeatures(f,r,e,t))}return t.createElement(Z.Provider,{value:g},h&&g.visualElement?t.createElement(h,{visualElement:g.visualElement,...f}):null,r(d,c,function(t,e,n){return l((r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):it(n)&&(n.current=r))}),[e])}(v,g.visualElement,p),v,m,g.visualElement))}));return p[yt]=d,p}function bt({layoutId:t}){const e=i(gt).id;return e&&void 0!==t?e+"-"+t:t}function xt(t){function e(e,n={}){return _t(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 wt=["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 Et(t){return"string"==typeof t&&!t.includes("-")&&!!(wt.indexOf(t)>-1||/[A-Z]/.test(t))}const St={};const kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pt=new Set(kt);function Tt(t,{layout:e,layoutId:n}){return Pt.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!St[t]||"opacity"===t)}const Ct=t=>Boolean(t&&t.getVelocity),Rt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},At=kt.length;const Ot=t=>e=>"string"==typeof e&&e.startsWith(t),Dt=Ot("--"),jt=Ot("var(--"),Ft=t=>!!jt(t)&&Mt.test(t.split("/*")[0].trim()),Mt=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,Vt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Lt=(t,e,n)=>n>e?e:n<t?t:n,Nt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},It={...Nt,transform:t=>Lt(0,1,t)},Bt={...Nt,default:1},Ut=t=>Math.round(1e5*t)/1e5,zt=/(-)?([\d]*\.?[\d])+/g,$t=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Wt=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zt(t){return"string"==typeof t}const Gt=t=>({test:e=>Zt(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Ht=Gt("deg"),Yt=Gt("%"),Kt=Gt("px"),qt=Gt("vh"),Xt=Gt("vw"),Qt={...Yt,parse:t=>Yt.parse(t)/100,transform:t=>Yt.transform(100*t)},Jt={...Nt,transform:Math.round},te={borderWidth:Kt,borderTopWidth:Kt,borderRightWidth:Kt,borderBottomWidth:Kt,borderLeftWidth:Kt,borderRadius:Kt,radius:Kt,borderTopLeftRadius:Kt,borderTopRightRadius:Kt,borderBottomRightRadius:Kt,borderBottomLeftRadius:Kt,width:Kt,maxWidth:Kt,height:Kt,maxHeight:Kt,size:Kt,top:Kt,right:Kt,bottom:Kt,left:Kt,padding:Kt,paddingTop:Kt,paddingRight:Kt,paddingBottom:Kt,paddingLeft:Kt,margin:Kt,marginTop:Kt,marginRight:Kt,marginBottom:Kt,marginLeft:Kt,rotate:Ht,rotateX:Ht,rotateY:Ht,rotateZ:Ht,scale:Bt,scaleX:Bt,scaleY:Bt,scaleZ:Bt,skew:Ht,skewX:Ht,skewY:Ht,distance:Kt,translateX:Kt,translateY:Kt,translateZ:Kt,x:Kt,y:Kt,z:Kt,perspective:Kt,transformPerspective:Kt,opacity:It,originX:Qt,originY:Qt,originZ:Kt,zIndex:Jt,fillOpacity:It,strokeOpacity:It,numOctaves:Jt};function ee(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=te[t],d=Vt(n,r);if(Pt.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<At;e++){const n=kt[e];void 0!==t[n]&&(i+=`${Rt[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 ne=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function re(t,e,n){for(const r in e)Ct(e[r])||Tt(r,n)||(t[r]=e[r])}function oe(t,e,n){const r={};return re(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},e,n){return u((()=>{const r=ne();return ee(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)}),[e])}(t,e,n)),r}function ie(t,e,n){const r={},o=oe(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 ae=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 se(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ae.has(t)}let le=t=>!se(t);try{(ue=require("@emotion/is-prop-valid").default)&&(le=t=>t.startsWith("on")?!se(t):ue(t))}catch(t){}var ue;function ce(t,e,n){return"string"==typeof t?t:Kt.transform(e+n*t)}const de={offset:"stroke-dashoffset",array:"stroke-dasharray"},pe={offset:"strokeDashoffset",array:"strokeDasharray"};function he(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(ee(t,u,c,p),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:f,dimensions:m}=t;h.transform&&(m&&(f.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(t,e,n){return`${ce(e,t.x,t.width)} ${ce(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?de:pe;t[i.offset]=Kt.transform(-r);const a=Kt.transform(e),s=Kt.transform(n);t[i.array]=`${a} ${s}`}(h,a,s,l,!1)}const fe=()=>({...ne(),attrs:{}}),me=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ge(t,e,n,r){const o=u((()=>{const n=fe();return he(n,e,{enableHardwareAcceleration:!1},me(r),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};re(e,t.style,t),o.style={...e,...o.style}}return o}function ve(t=!1){return(e,n,r,{latestValues:o},i)=>{const a=(Et(e)?ge:ie)(n,o,i,e),s=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(le(o)||!0===n&&se(o)||!e&&!se(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"==typeof e,t),l=e!==d?{...s,...a,ref:r}:{},{children:c}=n,h=u((()=>Ct(c)?c.get():c),[c]);return p(e,{...l,children:h})}}function ye(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 _e=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 be(t,e,n,r){ye(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(_e.has(n)?n:q(n),e.attrs[n])}function xe(t,e){const{style:n}=t,r={};for(const o in n)(Ct(n[o])||e.style&&Ct(e.style[o])||Tt(o,t))&&(r[o]=n[o]);return r}function we(t,e){const n=xe(t,e);for(const r in t)if(Ct(t[r])||Ct(e[r])){n[-1!==kt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function Ee(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 Se=t=>Array.isArray(t),ke=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Pe=t=>Se(t)?t[t.length-1]||0:t;function Te(t){const e=Ct(t)?t.get():t;return ke(e)?e.toValue():e}const Ce=t=>(e,n)=>{const r=i(Z),o=i(G),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:Re(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(t,e,r,o);return n?s():function(t){const e=a(null);return null===e.current&&(e.current=t()),e.current}(s)};function Re(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=Te(i[t]);let{initial:a,animate:s}=t;const l=ct(t),u=dt(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&&!st(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=Ee(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 Ae=t=>t,{schedule:Oe,cancel:De,state:je,steps:Fe}=nt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Ae,!0),Me={useVisualState:Ce({scrapeMotionValuesFromProps:we,createRenderState:fe,onMount:(t,e,{renderState:n,latestValues:r})=>{Oe.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),Oe.render((()=>{he(n,r,{enableHardwareAcceleration:!1},me(e.tagName),t.transformTemplate),be(e,n)}))}})},Ve={useVisualState:Ce({scrapeMotionValuesFromProps:xe,createRenderState:ne})};function Le(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Ne=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function Ie(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Be=t=>e=>Ne(e)&&t(e,Ie(e));function Ue(t,e,n,r){return Le(t,e,Be(n),r)}const ze=(t,e)=>n=>e(t(n)),$e=(...t)=>t.reduce(ze);function We(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Ze=We("dragHorizontal"),Ge=We("dragVertical");function He(t){let e=!1;if("y"===t)e=Ge();else if("x"===t)e=Ze();else{const t=Ze(),n=Ge();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Ye(){const t=He(!0);return!t||(t(),!1)}class Ke{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qe(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return Ue(t.current,n,((n,o)=>{if("touch"===n.pointerType||Ye())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&Oe.update((()=>i[r](n,o)))}),{passive:!t.getProps()[r]})}const Xe=(t,e)=>!!e&&(t===e||Xe(t,e.parentElement));function Qe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ie(n))}const Je=new WeakMap,tn=new WeakMap,en=t=>{const e=Je.get(t.target);e&&e(t)},nn=t=>{t.forEach(en)};function rn(t,e,n){const r=function({root:t,...e}){const n=t||document;tn.has(n)||tn.set(n,{});const r=tn.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(nn,{root:t,...e})),r[o]}(e);return Je.set(t,n),r.observe(t),()=>{Je.delete(t),r.unobserve(t)}}const on={some:0,all:1};const an={inView:{Feature:class extends Ke{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:on[r]};return rn(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 Ke{constructor(){super(...arguments),this.removeStartListeners=Ae,this.removeEndListeners=Ae,this.removeAccessibleListeners=Ae,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Ue(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();Oe.update((()=>{o||Xe(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Ue(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=$e(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Le(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Le(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Qe("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Oe.update((()=>n(t,e)))}))})),Qe("down",((t,e)=>{this.startPress(t,e)}))})),e=Le(this.node.current,"blur",(()=>{this.isPressing&&Qe("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=$e(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&&Oe.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ye()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Oe.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Ue(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Le(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$e(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Ke{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=$e(Le(this.node.current,"focus",(()=>this.onFocus())),Le(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ke{mount(){this.unmount=$e(qe(this.node,!0),qe(this.node,!1))}unmount(){}}}};function sn(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 ln(t,e,n){const r=t.getProps();return Ee(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 un=Ae,cn=Ae;"production"!==process.env.NODE_ENV&&(un=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},cn=(t,e)=>{if(!t)throw new Error(e)});const dn=t=>1e3*t,pn=t=>t/1e3,hn=!1,fn=t=>Array.isArray(t)&&"number"==typeof t[0];function mn(t){return Boolean(!t||"string"==typeof t&&vn[t]||fn(t)||Array.isArray(t)&&t.every(mn))}const gn=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,vn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gn([0,.65,.55,1]),circOut:gn([.55,0,1,.45]),backIn:gn([.31,.01,.66,-.59]),backOut:gn([.33,1.53,.69,.99])};function yn(t){if(t)return fn(t)?gn(t):Array.isArray(t)?t.map(yn):vn[t]}const _n=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,bn=1e-7,xn=12;function wn(t,e,n,r){if(t===e&&n===r)return Ae;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=_n(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>bn&&++s<xn);return a}(e,0,1,t,n);return t=>0===t||1===t?t:_n(o(t),e,r)}const En=wn(.42,0,1,1),Sn=wn(0,0,.58,1),kn=wn(.42,0,.58,1),Pn=t=>Array.isArray(t)&&"number"!=typeof t[0],Tn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Cn=t=>e=>1-t(1-e),Rn=t=>1-Math.sin(Math.acos(t)),An=Cn(Rn),On=Tn(Rn),Dn=wn(.33,1.53,.69,.99),jn=Cn(Dn),Fn=Tn(jn),Mn={linear:Ae,easeIn:En,easeInOut:kn,easeOut:Sn,circIn:Rn,circInOut:On,circOut:An,backIn:jn,backInOut:Fn,backOut:Dn,anticipate:t=>(t*=2)<1?.5*jn(t):.5*(2-Math.pow(2,-10*(t-1)))},Vn=t=>{if(Array.isArray(t)){cn(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return wn(e,n,r,o)}return"string"==typeof t?(cn(void 0!==Mn[t],`Invalid easing type '${t}'`),Mn[t]):t},Ln=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Nn=(t,e,n)=>t+(e-t)*n;function In(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 Bn=(t,e)=>n=>Boolean(Zt(n)&&Wt.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Un=(t,e,n)=>r=>{if(!Zt(r))return r;const[o,i,a,s]=r.match(zt);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},zn={...Nt,transform:t=>Math.round((t=>Lt(0,255,t))(t))},$n={test:Bn("rgb","red"),parse:Un("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+zn.transform(t)+", "+zn.transform(e)+", "+zn.transform(n)+", "+Ut(It.transform(r))+")"};const Wn={test:Bn("#"),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:$n.transform},Zn={test:Bn("hsl","hue"),parse:Un("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Yt.transform(Ut(e))+", "+Yt.transform(Ut(n))+", "+Ut(It.transform(r))+")"},Gn=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Hn=[Wn,$n,Zn];function Yn(t){const e=(n=t,Hn.find((t=>t.test(n))));var n;cn(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===Zn&&(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=In(s,r,t+1/3),i=In(s,r,t),a=In(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 Kn=(t,e)=>{const n=Yn(t),r=Yn(e),o={...n};return t=>(o.red=Gn(n.red,r.red,t),o.green=Gn(n.green,r.green,t),o.blue=Gn(n.blue,r.blue,t),o.alpha=Nn(n.alpha,r.alpha,t),$n.transform(o))},qn={test:t=>$n.test(t)||Wn.test(t)||Zn.test(t),parse:t=>$n.test(t)?$n.parse(t):Zn.test(t)?Zn.parse(t):Wn.parse(t),transform:t=>Zt(t)?t:t.hasOwnProperty("red")?$n.transform(t):Zn.transform(t)};const Xn="number",Qn="color",Jn="var",tr="var(",er="${}",nr=/(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 rr(t){const e=t.toString(),n=e.match(nr)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];qn.test(e)?(o.color.push(t),i.push(Qn),r.push(qn.parse(e))):e.startsWith(tr)?(o.var.push(t),i.push(Jn),r.push(e)):(o.number.push(t),i.push(Xn),r.push(parseFloat(e)))}return{values:r,split:e.replace(nr,er).split(er),indexes:o,types:i}}function or(t){return rr(t).values}function ir(t){const{split:e,types:n}=rr(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===Xn?Ut(t[i]):e===Qn?qn.transform(t[i]):t[i]}return o}}const ar=t=>"number"==typeof t?0:t;const sr={test:function(t){var e,n;return isNaN(t)&&Zt(t)&&((null===(e=t.match(zt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match($t))||void 0===n?void 0:n.length)||0)>0},parse:or,createTransformer:ir,getAnimatableNone:function(t){const e=or(t);return ir(t)(e.map(ar))}};function lr(t,e){return n=>n>0?e:t}function ur(t,e){return n=>Nn(t,e,n)}function cr(t){return"number"==typeof t?ur:"string"==typeof t?Ft(t)?lr:qn.test(t)?Kn:hr:Array.isArray(t)?dr:"object"==typeof t?qn.test(t)?Kn:pr:lr}function dr(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>cr(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}}function pr(t,e){const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=cr(t[o])(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const hr=(t,e)=>{const n=sr.createTransformer(e),r=rr(t),o=rr(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?$e(dr(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):(un(!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.`),lr(t,e))};function fr(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Nn(t,e,n);return cr(t)(t,e)}function mr(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(cn(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||fr,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]||Ae:e;i=$e(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=Ln(t[n],t[n+1],e);return a[n](r)};return n?e=>l(Lt(t[0],t[i-1],e)):l}function gr(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=Ln(0,e,r);t.push(Nn(n,1,o))}}(e,t.length-1),e}function vr({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=Pn(r)?r.map(Vn):Vn(r),i={done:!1,value:e[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:gr(e),t),s=mr(a,e,{ease:Array.isArray(o)?o:(l=e,u=o,l.map((()=>u||kn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=s(e),i.done=e>=t,i)}}function yr(t,e){return e?t*(1e3/e):0}const _r=5;function br(t,e,n){const r=Math.max(e-_r,0);return yr(n-t(r),e-r)}const xr=.001,wr=.01,Er=10,Sr=.05,kr=1;function Pr({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;un(t<=dn(Er),"Spring duration must be 10 seconds or less");let a=1-e;a=Lt(Sr,kr,a),t=Lt(wr,Er,pn(t)),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=Cr(e,a),l=Math.exp(-o);return xr-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=Cr(Math.pow(e,2),a);return(-o(e)+xr>0?-1:1)*((i-s)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-xr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<Tr;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t=dn(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 Tr=12;function Cr(t,e){return t*Math.sqrt(1-e*e)}const Rr=["duration","bounce"],Ar=["stiffness","damping","mass"];function Or(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(!Or(t,Ar)&&Or(t,Rr)){const n=Pr(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-pn(r.velocity||0)}),h=d||0,f=l/(2*Math.sqrt(s*u)),m=i-o,g=pn(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),f<1){const t=Cr(g,f);y=e=>{const n=Math.exp(-f*g*e);return i-n*((h+f*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===f)y=t=>i-Math.exp(-g*t)*(m+(h+g*m)*t);else{const t=g*Math.sqrt(f*f-1);y=e=>{const n=Math.exp(-f*g*e),r=Math.min(t*e,300);return i-n*((h+f*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=h;0!==t&&(o=f<1?br(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 jr({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},h=t=>void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l;let f=n*e;const m=d+f,g=void 0===a?m:a(m);g!==m&&(f=g-d);const v=t=>-f*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,h(p.value)],velocity:br(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 Mr(){Fr=void 0}const Vr={now:()=>(void 0===Fr&&Vr.set(je.isProcessing||J?je.timestamp:performance.now()),Fr),set:t=>{Fr=t,queueMicrotask(Mr)}},Lr=t=>{const e=({timestamp:e})=>t(e);return{start:()=>Oe.update(e,!0),stop:()=>De(e),now:()=>je.isProcessing?je.timestamp:Vr.now()}},Nr=2e4;function Ir(t){let e=0;let n=t.next(e);for(;!n.done&&e<Nr;)e+=50,n=t.next(e);return e>=Nr?1/0:e}const Br={decay:jr,inertia:jr,tween:vr,keyframes:vr,spring:Dr},Ur=t=>t/100;function zr({autoplay:t=!0,delay:e=0,driver:n=Lr,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let h,f,m=1,g=!1;const v=()=>{f=new Promise((t=>{h=t}))};let y;v();const _=Br[o]||vr;let b;_!==vr&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&cn(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=$e(Ur,fr(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,P=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ir(x));const{calculatedDuration:T}=x;let C=1/0,R=1/0;null!==T&&(C=T+a,R=C*(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)/C;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/C)):"mirror"===s&&(u=w)),l=Lt(0,1,n)*C}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===T||(p=m>=0?A>=R:A<=0);const h=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),h&&F(),c},D=()=>{y&&y.stop(),y=void 0},j=()=>{E="idle",D(),h(),v(),k=P=null},F=()=>{E="finished",c&&c(),D(),h()},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(),P=k,S=null,E="running",y.start()};t&&M();const V={then:(t,e)=>f.then(t,e),get time(){return pn(A)},set time(t){t=dn(t),A=t,null===S&&y&&0!==m?k=y.now()-t/m:S=t},get duration(){const t=null===x.calculatedDuration?Ir(x):x.calculatedDuration;return pn(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,V.time=pn(A))},get state(){return E},play:M,pause:()=>{E="paused",S=A},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),j())},cancel:()=>{null!==P&&O(P),j()},complete:()=>{E="finished"},sample:t=>(k=0,O(t))};return V}const $r=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Wr=new Set(["opacity","clipPath","filter","transform"]);function Zr(t,e,{onUpdate:n,onComplete:r,...o}){if(!($r()&&Wr.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:h}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!mn(e.ease))(e,o)){const t=zr({...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;h=void 0,c=n,d=r-10,p="linear"}const f=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=yn(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:h}),m=()=>{l=!1,f.cancel()},g=()=>{l=!0,Oe.update(m),i(),u()};f.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=>(f.timeline=t,f.onfinish=null,Ae),get time(){return pn(f.currentTime||0)},set time(t){f.currentTime=dn(t)},get speed(){return f.playbackRate},set speed(t){f.playbackRate=t},get duration(){return pn(d)},play:()=>{s||(f.play(),De(m))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:e}=f;if(e){const n=zr({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||f.finish()},cancel:g}}const Gr={type:"spring",stiffness:500,damping:25,restSpeed:10},Hr={type:"keyframes",duration:.8},Yr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kr=(t,{keyframes:e})=>e.length>2?Hr:Pt.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Gr:Yr,qr=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!sr.test(e)&&"0"!==e||e.startsWith("url("))),Xr=new Set(["brightness","contrast","saturate","opacity"]);function Qr(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(zt)||[];if(!r)return t;const o=n.replace(r,"");let i=Xr.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const Jr=/([a-z-]*)\(.*?\)/g,to={...sr,getAnimatableNone:t=>{const e=t.match(Jr);return e?e.map(Qr).join(" "):t}},eo={...te,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:to,WebkitFilter:to},no=t=>eo[t];function ro(t,e){let n=no(t);return n!==to&&(n=sr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const oo=t=>/^0[^.\s]+$/.test(t);function io(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||oo(t):void 0}function ao(t,e){return t[e]||t.default||t}const so=(t,e,n,r={})=>o=>{const i=ao(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=dn(a);const l=function(t,e,n,r){const o=qr(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]),io(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]]=ro(e,s);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=qr(t,u),p=qr(t,c);un(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 h={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)||(h={...h,...Kr(t,h)}),h.duration&&(h.duration=dn(h.duration)),h.repeatDelay&&(h.repeatDelay=dn(h.repeatDelay)),!d||!p||hn||!1===i.type||Q)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:Ae,pause:Ae,stop:Ae,then:t=>(t(),Promise.resolve()),cancel:Ae,complete:Ae});return e?zr({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}(h);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Zr(e,t,h);if(n)return n}return zr(h)};function lo(t){return Boolean(Ct(t)&&t.add)}const uo=t=>/^\-?\d*\.?\d+$/.test(t);function co(t,e){-1===t.indexOf(e)&&t.push(e)}function po(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ho{constructor(){this.subscriptions=[]}add(t){return co(this.subscriptions,t),()=>po(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 fo=new Set;function mo(t,e,n){t||fo.has(e)||(console.warn(e),n&&console.warn(n),fo.add(e))}class go{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=Vr.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=Vr.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&mo(!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 ho);const n=this.events[t].add(e);return"change"===t?()=>{n(),Oe.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=Vr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return yr(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 vo(t,e){return new go(t,e)}const yo=t=>e=>e.test(t),_o=[Nt,Kt,Yt,Ht,Xt,qt,{test:t=>"auto"===t,parse:t=>t}],bo=t=>_o.find(yo(t)),xo=[..._o,qn,sr];function wo(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,vo(n))}function Eo(t,e){if(!e)return;return(e[t]||e.default||e).from}function So({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function ko(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 Po(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&&So(c,e))continue;const a={delay:n,elapsed:0,...ao(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[X];if(n){const t=window.HandoffAppearAnimations(n,e,r,Oe);null!==t&&(a.elapsed=t,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(so(e,r,o,t.shouldReduceMotion&&Pt.has(e)?{type:!1}:a));const p=r.animation;lo(l)&&(l.add(e),p.then((()=>l.remove(e)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(t,e){const n=ln(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)wo(t,e,Pe(i[e]))}(t,a)})),u}function To(t,e,n={}){const r=ln(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Po(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(Co).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(To(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 Co(t,e){return t.sortNodePosition(e)}const Ro=[...lt].reverse(),Ao=lt.length;function Oo(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=>To(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=To(t,e,n);else{const o="function"==typeof e?ln(t,e,n.custom):e;r=Promise.all(Po(t,o,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Do(t){let e=Oo(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=ln(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<Ao;e++){const h=Ro[e],f=n[h],m=void 0!==s[h]?s[h]:l[h],g=at(m),v=h===a?f.isActive:null;!1===v&&(p=e);let y=m===l[h]&&m!==s[h]&&g;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...d},!f.isActive&&null===v||!m&&!f.prevProp||st(m)||"boolean"==typeof m)continue;let _=jo(f.prevProp,m)||h===a&&f.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={}}=f,S={...E,...w},k=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),f.needsAnimating[t]=!0};for(const t in S){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let r=!1;r=Se(e)&&Se(n)?!sn(e,n):e!==n,r?void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):f.protectedKeys[t]=!0}f.prevProp=m,f.prevResolvedValues=w,f.isActive&&(d={...d,...w}),r&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:h,...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 h=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(h=!1),r=!1,h?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 jo(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!sn(e,t)}function Fo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Mo=0;const Vo={animation:{Feature:class extends Ke{constructor(t){super(t),t.animationState||(t.animationState=Do(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),st(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 Ke{constructor(){super(...arguments),this.id=Mo++}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(){}}}},Lo=(t,e)=>Math.abs(t-e);class No{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=Uo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Lo(t.x,e.x),r=Lo(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}=je;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=Io(e,this.transformPagePoint),Oe.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=Uo("pointercancel"===t.type?this.lastMoveEventInfo:Io(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!Ne(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=Io(Ie(t),this.transformPagePoint),{point:a}=i,{timestamp:s}=je;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=e;l&&l(t,Uo(i,this.history)),this.removeListeners=$e(Ue(this.contextWindow,"pointermove",this.handlePointerMove),Ue(this.contextWindow,"pointerup",this.handlePointerUp),Ue(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),De(this.updatePoint)}}function Io(t,e){return e?{point:e(t.point)}:t}function Bo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Uo({point:t},e){return{point:t,delta:Bo(t,$o(e)),offset:Bo(t,zo(e)),velocity:Wo(e,.1)}}function zo(t){return t[0]}function $o(t){return t[t.length-1]}function Wo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=$o(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>dn(e)));)n--;if(!r)return{x:0,y:0};const i=pn(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 Zo(t){return t.max-t.min}function Go(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ho(t,e,n,r=.5){t.origin=r,t.originPoint=Nn(e.min,e.max,t.origin),t.scale=Zo(n)/Zo(e),(Go(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Nn(n.min,n.max,t.origin)-t.originPoint,(Go(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Yo(t,e,n,r){Ho(t.x,e.x,n.x,r?r.originX:void 0),Ho(t.y,e.y,n.y,r?r.originY:void 0)}function Ko(t,e,n){t.min=n.min+e.min,t.max=t.min+Zo(e)}function qo(t,e,n){t.min=e.min-n.min,t.max=t.min+Zo(e)}function Xo(t,e,n){qo(t.x,e.x,n.x),qo(t.y,e.y,n.y)}function Qo(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 Jo(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 ti=.35;function ei(t,e,n){return{min:ni(t,e),max:ni(t,n)}}function ni(t,e){return"number"==typeof t?t:t[e]||0}const ri=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),oi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ii(t){return[t("x"),t("y")]}function ai({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function si(t){return void 0===t||1===t}function li({scale:t,scaleX:e,scaleY:n}){return!si(t)||!si(e)||!si(n)}function ui(t){return li(t)||ci(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ci(t){return di(t.x)||di(t.y)}function di(t){return t&&"0%"!==t}function pi(t,e,n){return n+e*(t-n)}function hi(t,e,n,r,o){return void 0!==o&&(t=pi(t,o,r)),pi(t,n,r)+e}function fi(t,e=0,n=1,r,o){t.min=hi(t.min,e,n,r,o),t.max=hi(t.max,e,n,r,o)}function mi(t,{x:e,y:n}){fi(t.x,e.translate,e.scale,e.originPoint),fi(t.y,n.translate,n.scale,n.originPoint)}function gi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function vi(t,e){t.min=t.min+e,t.max=t.max+e}function yi(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=Nn(t.min,t.max,i);fi(t,e[n],e[r],a,e.scale)}const _i=["x","scaleX","originX"],bi=["y","scaleY","originY"];function xi(t,e){yi(t.x,e,_i),yi(t.y,e,bi)}function wi(t,e){return ai(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 Ei=({current:t})=>t?t.ownerDocument.defaultView:null,Si=new WeakMap;class ki{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=oi(),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 No(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(Ie(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=He(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),ii((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Yt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=Zo(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&Oe.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:()=>ii((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:Ei(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&&Oe.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||!Pi(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?Nn(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?Nn(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&&it(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:Qo(t.x,n,o),y:Qo(t.y,e,r)}}(r.layoutBox,e),this.elastic=function(t=ti){return!1===t?t=0:!0===t&&(t=ti),{x:ei(t,"left","right"),y:ei(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ii((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||!it(t))return!1;const n=t.current;cn(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=wi(t,n),{scroll:o}=e;return o&&(vi(r.x,o.offset.x),vi(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Jo(t.x,e.x),y:Jo(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=ai(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ii((a=>{if(!Pi(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(so(t,n,0,e))}stopAnimation(){ii((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ii((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){ii((e=>{const{drag:n}=this.getProps();if(!Pi(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]-Nn(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!it(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ii((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=Zo(t),o=Zo(e);return o>r?n=Ln(e.min,e.max-r,t.min):r>o&&(n=Ln(t.min,t.max-o,e.min)),Lt(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(),ii((e=>{if(!Pi(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(Nn(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Si.set(this.visualElement,this);const t=Ue(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();it(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=Le(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ii((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=ti,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Pi(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const Ti=t=>(e,n)=>{t&&Oe.update((()=>t(e,n)))};const Ci={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ri(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ai={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Kt.test(t))return t;t=parseFloat(t)}return`${Ri(t,e.target.x)}% ${Ri(t,e.target.y)}%`}},Oi={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=sr.parse(t);if(o.length>5)return r;const i=sr.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=Nn(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 e.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=Fi,Object.assign(St,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()})),Ci.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()||Oe.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rt.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 ji(t){const[n,r]=function(){const t=i(G);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,a=h();return o((()=>r(a)),[]),!e&&n?[!1,()=>n&&n(a)]:[!0]}(),a=i(gt);return e.createElement(Di,{...t,layoutGroup:a,switchLayoutGroup:i(vt),isPresent:n,safeToRemove:r})}const Fi={borderRadius:{...Ai,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ai,borderTopRightRadius:Ai,borderBottomLeftRadius:Ai,borderBottomRightRadius:Ai,boxShadow:Oi},Mi=["TopLeft","TopRight","BottomLeft","BottomRight"],Vi=Mi.length,Li=t=>"string"==typeof t?parseFloat(t):t,Ni=t=>"number"==typeof t||Kt.test(t);function Ii(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Bi=zi(0,.5,An),Ui=zi(.5,.95,Ae);function zi(t,e,n){return r=>r<t?0:r>e?1:n(Ln(t,e,r))}function $i(t,e){t.min=e.min,t.max=e.max}function Wi(t,e){$i(t.x,e.x),$i(t.y,e.y)}function Zi(t,e,n,r,o){return t=pi(t-=e,1/n,r),void 0!==o&&(t=pi(t,1/o,r)),t}function Gi(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){Yt.test(e)&&(e=parseFloat(e),e=Nn(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=Nn(i.min,i.max,r);t===i&&(s-=e),t.min=Zi(t.min,e,n,s,o),t.max=Zi(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const Hi=["x","scaleX","originX"],Yi=["y","scaleY","originY"];function Ki(t,e,n,r){Gi(t.x,e,Hi,n?n.x:void 0,r?r.x:void 0),Gi(t.y,e,Yi,n?n.y:void 0,r?r.y:void 0)}function qi(t){return 0===t.translate&&1===t.scale}function Xi(t){return qi(t.x)&&qi(t.y)}function Qi(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 Ji(t){return Zo(t.x)/Zo(t.y)}class ta{constructor(){this.members=[]}add(t){co(this.members,t),t.scheduleRender()}remove(t){if(po(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 ea(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 na=(t,e)=>t.depth-e.depth;class ra{constructor(){this.children=[],this.isDirty=!1}add(t){co(this.children,t),this.isDirty=!0}remove(t){po(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(na),this.isDirty=!1,this.children.forEach(t)}}const oa=["","X","Y","Z"],ia={visibility:"hidden"};let aa=0;const sa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function la({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=aa++,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,sa.totalNodes=sa.resolvedTargetDeltas=sa.recalculatedProjection=0,this.nodes.forEach(da),this.nodes.forEach(ya),this.nodes.forEach(_a),this.nodes.forEach(pa),t=sa,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 ra)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ho),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=Vr.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(De(r),t(i-e))};return Oe.read(r,!0),()=>De(r)}(r,250),Ci.hasAnimatedSinceResize&&(Ci.hasAnimatedSinceResize=!1,this.nodes.forEach(va))}))}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()||ka,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Qi(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={...ao(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||va(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(ba),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(fa);this.isUpdating||this.nodes.forEach(ma),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(ga),this.nodes.forEach(ua),this.nodes.forEach(ca),this.clearAllSnapshots();const t=Vr.now();je.delta=Lt(0,1e3/60,t-je.timestamp),je.timestamp=t,je.isProcessing=!0,Fe.update.process(je),Fe.preRender.process(je),Fe.render.process(je),je.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rt.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(ha),this.sharedNodes.forEach(xa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Oe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Oe.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=oi(),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&&!Xi(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||ui(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)),Ca((r=n).x),Ca(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return oi();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(vi(e.x,n.offset.x),vi(e.y,n.offset.y)),e}removeElementScroll(t){const e=oi();Wi(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){Wi(e,t);const{scroll:n}=this.root;n&&(vi(e.x,-n.offset.x),vi(e.y,-n.offset.y))}vi(e.x,o.offset.x),vi(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=oi();Wi(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&&xi(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ui(r.latestValues)&&xi(n,r.latestValues)}return ui(this.latestValues)&&xi(n,this.latestValues),n}removeTransform(t){const e=oi();Wi(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!ui(n.latestValues))continue;li(n.latestValues)&&n.updateSnapshot();const r=oi();Wi(r,n.measurePageBox()),Ki(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ui(this.latestValues)&&Ki(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!==je.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=je.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=oi(),this.relativeTargetOrigin=oi(),Xo(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Wi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=oi(),this.targetWithTransforms=oi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Ko(a.x,s.x,l.x),Ko(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Wi(this.target,this.layout.layoutBox),mi(this.target,this.targetDelta)):Wi(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=oi(),this.relativeTargetOrigin=oi(),Xo(this.relativeTargetOrigin,this.target,t.target),Wi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!li(this.parent.latestValues)&&!ci(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===je.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;Wi(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&&xi(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,mi(t,a)),r&&ui(i.latestValues)&&xi(t,i.latestValues))}e.x=gi(e.x),e.y=gi(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=oi());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=ri(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=ri(),this.projectionDeltaWithTransform=ri());const u=this.projectionTransform;Yo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ea(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sa.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=ri();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=oi(),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(Sa));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,p,h,f,m,g;wa(i.x,t.x,n),wa(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xo(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=n,Ea(h.x,f.x,m.x,g),Ea(h.y,f.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=oi()),Wi(d,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=Nn(0,void 0!==n.opacity?n.opacity:1,Bi(r)),t.opacityExit=Nn(void 0!==e.opacity?e.opacity:1,0,Ui(r))):i&&(t.opacity=Nn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Vi;o++){const i=`border${Mi[o]}Radius`;let a=Ii(e,i),s=Ii(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ni(a)===Ni(s)?(t[i]=Math.max(Nn(Li(a),Li(s),r),0),(Yt.test(s)||Yt.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=Nn(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=Oe.update((()=>{Ci.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=Ct(t)?t:vo(t);return r.start(so("",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&&Ra(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||oi();const e=Zo(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=Zo(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Wi(e,n),xi(e,o),Yo(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ta);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<oa.length;e++){const o="rotate"+oa[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 ia;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Te(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=Te(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ui(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ea(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 St){if(void 0===a[t])continue;const{correct:e,applyTo:n}=St[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?Te(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(fa),this.root.sharedNodes.clear()}}}function ua(t){t.updateLayout()}function ca(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?ii((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=Zo(r);r.min=e[t].min,r.max=r.min+o})):Ra(o,n.layoutBox,e)&&ii((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Zo(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=ri();Yo(a,e,n.layoutBox);const s=ri();i?Yo(s,t.applyTransform(r,!0),n.measuredBox):Yo(s,e,n.layoutBox);const l=!Xi(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=oi();Xo(a,n.layoutBox,o.layoutBox);const s=oi();Xo(s,e,i.layoutBox),Qi(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 da(t){sa.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 pa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ha(t){t.clearSnapshot()}function fa(t){t.clearMeasurements()}function ma(t){t.isLayoutDirty=!1}function ga(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function va(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ya(t){t.resolveTargetDelta()}function _a(t){t.calcProjection()}function ba(t){t.resetRotation()}function xa(t){t.removeLeadSnapshot()}function wa(t,e,n){t.translate=Nn(e.translate,0,n),t.scale=Nn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ea(t,e,n,r){t.min=Nn(e.min,n.min,r),t.max=Nn(e.max,n.max,r)}function Sa(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ka={duration:.45,ease:[.4,0,.1,1]},Pa=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ta=Pa("applewebkit/")&&!Pa("chrome/")?Math.round:Ae;function Ca(t){t.min=Ta(t.min),t.max=Ta(t.max)}function Ra(t,e,n){return"position"===t||"preserve-aspect"===t&&!Go(Ji(e),Ji(n),.2)}const Aa=la({attachResizeListener:(t,e)=>Le(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oa={current:void 0},Da=la({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Oa.current){const t=new Aa({});t.mount(window),t.setOptions({layoutScroll:!0}),Oa.current=t}return Oa.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),ja={pan:{Feature:class extends Ke{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new No(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ei(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ti(t),onStart:Ti(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&Oe.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=Ue(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 Ke{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new ki(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Da,MeasureLayout:ji}},Fa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Ma=4;function Va(t,e,n=1){cn(n<=Ma,`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 uo(t)?parseFloat(t):t}return Ft(o)?Va(o,e,n+1):o}const La=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Na=t=>La.has(t),Ia=t=>t===Nt||t===Kt,Ba=(t,e)=>parseFloat(t.split(", ")[e]),Ua=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Ba(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Ba(e[1],t):0}},za=new Set(["x","y","z"]),$a=kt.filter((t=>!za.has(t)));const Wa={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:Ua(4,13),y:Ua(5,14)};Wa.translateX=Wa.x,Wa.translateY=Wa.y;const Za=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(Na);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=bo(u);const d=e[o];let p;if(Se(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=bo(u);for(let n=e;n<t&&null!==d[n];n++)p?cn(bo(d[n])===p,"All keyframes must be of the same type"):(p=bo(d[n]),cn(p===c||Ia(c)&&Ia(p),"Keyframes must be of the same dimension as the current value"))}else p=bo(d);if(c!==p)if(Ia(c)&&Ia(p)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===Kt&&(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 $a.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]=Wa[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]=Wa[n](l,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),H&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function Ga(t,e,n,r){return(t=>Object.keys(t).some(Na))(e)?Za(t,e,n,r):{target:e,transitionEnd:r}}const Ha=(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=Va(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!Ft(o))continue;const i=Va(o,r);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return Ga(t,e=o.target,n,r=o.transitionEnd)},Ya={current:null},Ka={current:!1};const qa=new WeakMap,Xa=Object.keys(mt),Qa=Xa.length,Ja=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ts=ut.length;class es{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=()=>Oe.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=ct(e),this.isVariantNode=dt(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]&&Ct(e)&&(e.set(a[t],!1),lo(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,qa.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))),Ka.current||function(){if(Ka.current=!0,H)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ya.current=t.matches;t.addListener(e),e()}else Ya.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ya.current),"production"!==process.env.NODE_ENV&&mo(!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(){qa.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=Pt.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Oe.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?un(!1,t):cn(!1,t)}for(let t=0;t<Qa;t++){const n=Xa[t],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=mt[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&&it(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):oi()}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<Ja.length;e++){const n=Ja[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(Ct(i))t.addValue(o,i),lo(r)&&r.add(o),"development"===process.env.NODE_ENV&&mo("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(Ct(a))t.addValue(o,vo(i,{owner:t})),lo(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,vo(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<ts;t++){const n=ut[t],r=this.props[n];(at(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=vo(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=Ee(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||Ct(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 ho),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class ns extends es{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&&(uo(c)||oo(c))?c=parseFloat(c):(s=c,!xo.find(yo(s))&&sr.test(u)&&(c=ro(a,u))),t.addValue(a,vo(c,{owner:t})),void 0===n[a]&&(n[a]=c),null!==c&&t.setBaseTarget(a,c))}}(this,n,o);const t=Ha(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class rs extends ns{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(Pt.has(e)){const t=no(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 wi(t,e)}build(t,e,n,r){ee(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return xe(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){ye(t,e,n,r)}}class os extends ns{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Pt.has(e)){const t=no(e);return t&&t.default||0}return e=_e.has(e)?e:q(e),t.getAttribute(e)}measureInstanceViewportBox(){return oi()}scrapeMotionValuesFromProps(t,e){return we(t,e)}build(t,e,n,r){he(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){be(t,e,0,r)}mount(t){this.isSVGTag=me(t.tagName),super.mount(t)}}const is=(t,e)=>Et(t)?new os(e,{enableHardwareAcceleration:!1}):new rs(e,{enableHardwareAcceleration:!0}),as={...Vo,...an,...ja,...{layout:{ProjectionNode:Da,MeasureLayout:ji}}},ss=xt(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...Et(t)?Me:Ve,preloadedFeatures:n,useRender:ve(e),createVisualElement:r,Component:t}}(t,e,as,is)));var ls={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},us=function(t){var n=t.condition,r=t.children;return e.createElement(ss.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:ls},r)},cs="form-module_form__FGOhg";T(".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 ds=function(t){var n=t.methods,r=t.children,o=t.onSubmit,i=S(t,["methods","children","onSubmit"]);return e.createElement(x,E({},n),e.createElement("form",E({className:cs,onSubmit:n.handleSubmit((function(t){return o(t)}))},i),r))},ps="numberField-module_container__yjOIU",hs="numberField-module_fake-input__cqOX-",fs="numberField-module_spinbutton-container__HkUKt",ms="numberField-module_spinbutton-container--error__dO4fj",gs="numberField-module_control__yE0Ro";T(".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 vs=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],ys=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=E(E({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(_s,E({},s,{field:E({},n)}))}})},_s=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,u=void 0===l?3:l,c=t.error,d=t.helper,p=t.field,h=p.value,f=p.onChange,m=p.onBlur,g=function(t){h<=i||f(h-t)},v=function(t){h>=s||f(h+t)};return e.createElement(U,{id:"".concat(n,"-label"),label:r,error:null==c?void 0:c.message,helper:null==d?void 0:d.message},e.createElement("div",{className:ps},e.createElement("div",{className:P(fs,c&&ms)},e.createElement("button",{className:gs,type:"button",tabIndex:-1,onClick:function(){return g(1)},"aria-label":"decrease"},"-"),e.createElement(A,{as:"div",className:hs,role:"spinbutton",tabIndex:0,onKeyDown:function(t){vs.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&v(1),"ArrowDown"===t.key&&g(1)}(t),function(t){"PageUp"===t.key&&v(5),"PageDown"===t.key&&g(5)}(t),function(t){"Home"===t.key&&f(i),"End"===t.key&&f(s)}(t))},onBlur:m,"aria-valuenow":h,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==c?void 0:c.message),"aria-errormessage":c?"".concat(n,"-error"):void 0,style:{width:"".concat(u,"ch")}},h),e.createElement("button",{className:gs,type:"button",tabIndex:-1,onClick:function(){return v(1)},"aria-label":"increase"},"+"))))};function bs(){return bs=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},bs.apply(this,arguments)}function xs(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 ws(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function Es(...t){return l(ws(...t),t)}function Ss(t,e=[]){let r=[];const o=()=>{const e=r.map((t=>n(t)));return function(n){const r=(null==n?void 0:n[t])||e;return u((()=>({[`__scope${t}`]:{...n,[t]:r}})),[n,r])}};return o.scopeName=t,[function(e,o){const a=n(o),s=r.length;function l(e){const{scope:n,children:r,...o}=e,i=(null==n?void 0:n[t][s])||a,l=u((()=>o),Object.values(o));return p(i.Provider,{value:l},r)}return r=[...r,o],l.displayName=e+"Provider",[l,function(n,r){const l=(null==r?void 0:r[t][s])||a,u=i(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},ks(o,...e)]}function ks(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const r=n.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return u((()=>({[`__scope${e.scopeName}`]:r})),[r])}};return n.scopeName=e.scopeName,n}const Ps=c(((t,e)=>{const{children:n,...r}=t,o=f.toArray(n),i=o.find(Rs);if(i){const t=i.props.children,n=o.map((e=>e===i?f.count(t)>1?f.only(null):m(t)?t.props.children:null:e));return p(Ts,bs({},r,{ref:e}),m(t)?g(t,void 0,n):null)}return p(Ts,bs({},r,{ref:e}),n)}));Ps.displayName="Slot";const Ts=c(((t,e)=>{const{children:n,...r}=t;return m(n)?g(n,{...As(r,n.props),ref:e?ws(e,n.ref):n.ref}):f.count(n)>1?f.only(null):null}));Ts.displayName="SlotClone";const Cs=({children:t})=>p(d,null,t);function Rs(t){return m(t)&&t.type===Cs}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 Os=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=c(((t,n)=>{const{asChild:r,...i}=t,a=r?Ps:e;return o((()=>{window[Symbol.for("radix-ui")]=!0}),[]),p(a,bs({},i,{ref:n}))}));return n.displayName=`Primitive.${e}`,{...t,[e]:n}}),{});const Ds=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r:()=>{},js=t["useId".toString()]||(()=>{});let Fs=0;function Ms(t){const e=a(t);return o((()=>{e.current=t})),u((()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)}),[])}function Vs({prop:t,defaultProp:e,onChange:n=(()=>{})}){const[r,i]=function({defaultProp:t,onChange:e}){const n=v(t),[r]=n,i=a(r),s=Ms(e);return o((()=>{i.current!==r&&(s(r),i.current=r)}),[r,i,s]),n}({defaultProp:e,onChange:n}),s=void 0!==t,u=s?t:r,c=Ms(n);return[u,l((e=>{if(s){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else i(e)}),[s,t,i,c])]}const Ls=n(void 0);function Ns(t){const e=i(Ls);return t||e||"ltr"}const Is="rovingFocusGroup.onEntryFocus",Bs={bubbles:!1,cancelable:!0},Us="RovingFocusGroup",[zs,$s,Ws]=function(t){const n=t+"CollectionProvider",[r,o]=Ss(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=Es(n,a(s,r).collectionRef);return e.createElement(Ps,{ref:i},o)})),ItemSlot:e.forwardRef(((t,n)=>{const{scope:r,children:o,...i}=t,s=e.useRef(null),c=Es(n,s),d=a(l,r);return e.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),e.createElement(Ps,{[u]:"",ref:c},o)}))},function(n){const r=a(t+"CollectionConsumer",n);return e.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]}(Us),[Zs,Gs]=Ss(Us,[Ws]),[Hs,Ys]=Zs(Us),Ks=c(((t,e)=>p(zs.Provider,{scope:t.__scopeRovingFocusGroup},p(zs.Slot,{scope:t.__scopeRovingFocusGroup},p(qs,bs({},t,{ref:e})))))),qs=c(((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:h,...f}=t,m=a(null),g=Es(e,m),y=Ns(s),[_=null,b]=Vs({prop:u,defaultProp:c,onChange:d}),[x,w]=v(!1),E=Ms(h),S=$s(n),k=a(!1),[P,T]=v(0);return o((()=>{const t=m.current;if(t)return t.addEventListener(Is,E),()=>t.removeEventListener(Is,E)}),[E]),p(Hs,{scope:n,orientation:r,dir:y,loop:i,currentTabStopId:_,onItemFocus:l((t=>b(t)),[b]),onItemShiftTab:l((()=>w(!0)),[]),onFocusableItemAdd:l((()=>T((t=>t+1))),[]),onFocusableItemRemove:l((()=>T((t=>t-1))),[])},p(Os.div,bs({tabIndex:x||0===P?-1:0,"data-orientation":r},f,{ref:g,style:{outline:"none",...t.style},onMouseDown:xs(t.onMouseDown,(()=>{k.current=!0})),onFocus:xs(t.onFocus,(t=>{const e=!k.current;if(t.target===t.currentTarget&&e&&!x){const e=new CustomEvent(Is,Bs);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=S().filter((t=>t.focusable));Js([t.find((t=>t.active)),t.find((t=>t.id===_)),...t].filter(Boolean).map((t=>t.ref.current)))}}k.current=!1})),onBlur:xs(t.onBlur,(()=>w(!1)))})))})),Xs=c(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...l}=e,u=function(e){const[n,r]=t.useState(js());return Ds((()=>{e||r((t=>null!=t?t:String(Fs++)))}),[e]),e||(n?`radix-${n}`:"")}(),c=s||u,d=Ys("RovingFocusGroupItem",r),h=d.currentTabStopId===c,f=$s(r),{onFocusableItemAdd:m,onFocusableItemRemove:g}=d;return o((()=>{if(i)return m(),()=>g()}),[i,m,g]),p(zs.ItemSlot,{scope:r,id:c,focusable:i,active:a},p(Os.span,bs({tabIndex:h?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:xs(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:xs(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:xs(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:Qs[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((()=>Js(o)))}var n,r}))})))})),Qs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Js(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const tl=Ks,el=Xs;const nl=t=>{const{present:e,children:n}=t,r=function(t){const[e,n]=v(),r=a({}),i=a(t),s=a("none"),u=t?"mounted":"unmounted",[c,d]=function(t,e){return y(((t,n)=>{const r=e[t][n];return null!=r?r:t}),t)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return o((()=>{const t=rl(r.current);s.current="mounted"===c?t:"none"}),[c]),Ds((()=>{const e=r.current,n=i.current;if(n!==t){const r=s.current,o=rl(e);if(t)d("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))d("UNMOUNT");else{d(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}}),[t,d]),Ds((()=>{if(e){const t=t=>{const n=rl(r.current).includes(t.animationName);t.target===e&&n&&w((()=>d("ANIMATION_END")))},n=t=>{t.target===e&&(s.current=rl(r.current))};return e.addEventListener("animationstart",n),e.addEventListener("animationcancel",t),e.addEventListener("animationend",t),()=>{e.removeEventListener("animationstart",n),e.removeEventListener("animationcancel",t),e.removeEventListener("animationend",t)}}d("ANIMATION_END")}),[e,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l((t=>{t&&(r.current=getComputedStyle(t)),n(t)}),[])}}(e),i="function"==typeof n?n({present:r.isPresent}):f.only(n),s=Es(r.ref,i.ref);return"function"==typeof n||r.isPresent?g(i,{ref:s}):null};function rl(t){return(null==t?void 0:t.animationName)||"none"}nl.displayName="Presence";const ol="Radio",[il,al]=Ss(ol),[sl,ll]=il(ol),ul=c(((t,e)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:s,value:l="on",onCheck:u,...c}=t,[d,h]=v(null),f=Es(e,(t=>h(t))),m=a(!1),g=!d||Boolean(d.closest("form"));return p(sl,{scope:n,checked:o,disabled:s},p(Os.button,bs({type:"button",role:"radio","aria-checked":o,"data-state":pl(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onClick:xs(t.onClick,(t=>{o||null==u||u(),g&&(m.current=t.isPropagationStopped(),m.current||t.stopPropagation())}))})),g&&p(dl,{control:d,bubbles:!m.current,name:r,value:l,checked:o,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))})),cl=c(((t,e)=>{const{__scopeRadio:n,forceMount:r,...o}=t,i=ll("RadioIndicator",n);return p(nl,{present:r||i.checked},p(Os.span,bs({"data-state":pl(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:e})))})),dl=t=>{const{control:e,checked:n,bubbles:r=!0,...i}=t,s=a(null),l=function(t){const e=a({value:t,previous:t});return u((()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous)),[t])}(n),c=function(t){const[e,n]=v(void 0);return Ds((()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const r=e[0];let o,i;if("borderBoxSize"in r){const t=r.borderBoxSize,e=Array.isArray(t)?t[0]:t;o=e.inlineSize,i=e.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),e}(e);return o((()=>{const t=s.current,e=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(e,"checked").set;if(l!==n&&o){const e=new Event("click",{bubbles:r});o.call(t,n),t.dispatchEvent(e)}}),[l,n,r]),p("input",bs({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function pl(t){return t?"checked":"unchecked"}const hl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fl="RadioGroup",[ml,gl]=Ss(fl,[Gs,al]),vl=Gs(),yl=al(),[_l,bl]=ml(fl),xl=c(((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...h}=t,f=vl(n),m=Ns(u),[g,v]=Vs({prop:i,defaultProp:o,onChange:d});return p(_l,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:v},p(tl,bs({asChild:!0},f,{orientation:l,dir:m,loop:c}),p(Os.div,bs({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},h,{ref:e}))))})),wl=c(((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...i}=t,s=bl("RadioGroupItem",n),l=s.disabled||r,u=vl(n),c=yl(n),d=a(null),h=Es(e,d),f=s.value===i.value,m=a(!1);return o((()=>{const t=t=>{hl.includes(t.key)&&(m.current=!0)},e=()=>m.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),p(el,bs({asChild:!0},u,{focusable:!l,active:f}),p(ul,bs({disabled:l,required:s.required,checked:f},c,i,{name:s.name,ref:h,onCheck:()=>s.onValueChange(i.value),onKeyDown:xs((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:xs(i.onFocus,(()=>{var t;m.current&&(null===(t=d.current)||void 0===t||t.click())}))})))})),El=c(((t,e)=>{const{__scopeRadioGroup:n,...r}=t,o=yl(n);return p(cl,bs({},o,r,{ref:e}))}));var Sl="radioGroup-module_legend__WklzX",kl="radioGroup-module_radio-root__RtJ2M",Pl="radioGroup-module_radio-root--error__9DrYG",Tl="radioGroup-module_radio-root-label--error__KdFST",Cl="radioGroup-module_radio-item__BKOlM",Rl="radioGroup-module_radio-indicator__-hEEu";T('\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(t){var n=t.children,r=t.className,o=t.name,i=t.label,a=S(t,["children","className","name","label"]),s=_(),l=s.control,u=s.formState.errors,c=void 0===u?{}:u,d=c&&c[o];return e.createElement(b,{name:o,control:l,render:function(t){var o=t.field,s=o.onChange,l=S(o,["onChange"]);return e.createElement("fieldset",null,e.createElement(A,{className:Sl,as:"legend",variant:"form-input-normal"},i),e.createElement(xl,E({className:P(r,kl,d&&Pl),onValueChange:s},a,l,{"aria-required":void 0}),n),d&&e.createElement("p",{className:Tl},null==d?void 0:d.message))}})},Item:function(t){var n=t.children,r=t.className,o=S(t,["children","className"]);return e.createElement(wl,E({className:P(r,Cl)},o),e.createElement(A,{variant:"form-input-normal"},n))},Indicator:function(t){var n=t.className,r=S(t,["className"]);return e.createElement(El,E({className:P(n,Rl)},r))}},Ol="range-module_container__SwhGo",Dl="range-module_range-container__iGnY1",jl="range-module_slider__pZtfP",Fl="range-module_notches__Zc4Og",Ml="range-module_notch__qXs7B",Vl="range-module_progress__fElkU",Ll="range-module_value-container__8Zt0r";T(".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 Nl=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=E(E({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(Il,E({},s,{field:E({},n)}))}})},Il=function(t){var n=t.id,r=t.min,o=void 0===r?0:r,i=t.max,a=void 0===i?1e3:i,s=t.step,l=void 0===s?100:s,u=t.name,c=t.label,d=t.helper,p=t.error,h=t.field,f=h.value,m=(f-o)/(a-o)*100,g=function(t,e,n){return(e-t)/n};return e.createElement(U,{id:n,label:c,error:null==p?void 0:p.message,helper:null==d?void 0:d.message},e.createElement("div",{className:Ol},e.createElement("div",{className:Dl},e.createElement("div",{className:Fl},Array.from({length:g(o,a,l)}).map((function(t,n){return e.createElement("div",{key:n,className:Ml,style:{left:"".concat(n/g(o,a,l)*100,"%")}})}))),e.createElement("div",{className:Vl,style:{width:"calc(".concat(m||0,"%)")}}),e.createElement("input",E({id:"".concat(u,"-range"),className:jl,type:"range",min:o,max:a,step:l},h))),e.createElement(A,{className:Ll,variant:"content-title-semi-bold"},"£",f)))},Bl="select-module_container__Lydyj",Ul="select-module_input__Hcrhq",zl="select-module_icon__SCm5W",$l="select-module_input--error__4pQ0M",Wl="select-module_input--disabled__zteOi",Zl="select-module_error-message__89d1g",Gl="select-module_helper-message__VwS-B";T("\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 Hl=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=E(E({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(Yl,E({},s,{field:E({},n)}))}})},Yl=function(t){var n=t.error,r=t.helper,o=t.label,i=t.items,a=t.placeholder,s=t.disabled,l=t.field;return e.createElement("div",{className:Bl},e.createElement("label",{className:"sr-only"},o),e.createElement("svg",{className:zl,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",E({className:P(Ul,(null==n?void 0:n.message)&&$l,s&&Wl)},l),a&&e.createElement("option",{value:"placeholder",disabled:!0},a),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(A,{className:Gl,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&e.createElement(A,{className:Zl,as:"p",variant:"form-helper"},n.message))};function Kl(){var t=v({width:600,height:void 0}),e=t[0],n=t[1];return o((function(){function t(){n({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),e}var ql={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"};T(".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 Xl,Ql=function(t){var n=_(),r=n.control,o=n.formState.errors,i=void 0===o?{}:o,a=t.name,s=E(E({},t),{error:i&&i[a]});return e.createElement(b,{name:a,control:r,render:function(t){var n=t.field;return e.createElement(Jl,E({},s,{field:E({},n)}))}})},Jl=function(t){var n=t.id,r=t.label,o=t.helper,i=t.error,a=t.type,s=t.prefix,l=t.suffix,u=t.disabled,c=t.className,d=t.rightContent,p=t.leftContent,h=t.field,f=h.value,m=h.onBlur,g=S(h,["value","onBlur"]),y=Kl().width,_=v(!1),b=_[0],x=_[1],w=""!==f||b,k=y>768,T=o||i,C={focused:{fontSize:k?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:k?"1.25rem":"1.125rem",top:"50%"}};return e.createElement("div",null,e.createElement("div",{className:P(ql.container,i&&ql["container--error"])},e.createElement(ss.label,{className:ql.label,initial:"notFocused",variants:C,htmlFor:"input-".concat(n),animate:b||""!==f?"focused":"notFocused"},r," ",l&&e.createElement("span",null,l)),e.createElement("input",E({id:"input-".concat(n),className:P(c,ql["input--".concat(c)],ql.input,s&&ql["input--prefix"]),type:a,"aria-describedby":"error-".concat(n),disabled:u,onFocus:function(){return x(!0)},onBlur:function(){m(),x(!1)},value:f},g)),s&&w&&e.createElement("span",{className:ql.prefix},s),e.createElement("div",null,d&&e.createElement("div",{className:ql.rightContent},d),p&&e.createElement("div",{className:ql.leftContent},p))),T&&e.createElement("div",{className:ql.inputDescription},o&&e.createElement("span",{id:"feedback-".concat(n),className:ql.helper},o.message),i&&e.createElement("span",{id:"error-".concat(n),className:ql.error},i.message)))},tu={exports:{}},eu={},nu={exports:{}},ru={};var ou,iu,au,su={exports:{}};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.development.js
|