@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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var t=require("react"),e=require("react-hook-form"),n=require("react-dom");function r(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var o=r(t),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=s(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function l(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=s(t))&&(r&&(r+=" "),r+=e);return r}function u(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;var c={button:"button-module_button__dZH55",action:"button-module_action__RTWZU",focus:"button-module_focus__RNsoR",primary:"button-module_primary__CZzyo",hover:"button-module_hover__Zz9hl",active:"button-module_active__rYKZm",secondary:"button-module_secondary__tM5K3",tertiary:"button-module_tertiary__0bKi6",ghost:"button-module_ghost__xQWCE",danger:"button-module_danger__pxWDX",standard:"button-module_standard__GaQlx","only-icon":"button-module_only-icon__8lEn4"};u(".button-module_button__dZH55 {\n all: unset;\n display: flex;\n padding: var(--product-spacing-3) var(--product-spacing-7);\n border-radius: var(--product-radius-full);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_button__dZH55 > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_action__RTWZU {\n all: unset;\n display: flex;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-2_5) var(--product-spacing-6);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_action__RTWZU > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_button__dZH55:focus, .button-module_button__dZH55.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n.button-module_action__RTWZU:focus, .button-module_action__RTWZU.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n/* ! Button */\n\n/* Primary */\n\n.button-module_primary__CZzyo {\n color: var(--product-greyscale-0);\n background: var(--product-love-pink-100)\n}\n\n.button-module_primary__CZzyo:hover, .button-module_primary__CZzyo.button-module_hover__Zz9hl {\n background: var(--product-love-pink-80)\n}\n\n.button-module_primary__CZzyo:active, .button-module_primary__CZzyo.button-module_active__rYKZm {\n background: var(--product-love-pink-120)\n}\n\n/* Secondary */\n\n.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-0);\n background: var(--product-greyscale-100);\n}\n\n.button-module_secondary__tM5K3:hover, .button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_secondary__tM5K3:active, .button-module_secondary__tM5K3.button-module_active__rYKZm {\n background: var(--product-greyscale-60);\n}\n\n/* Tertiary */\n\n.button-module_tertiary__0bKi6 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_tertiary__0bKi6:hover, .button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-light-blue-20);\n}\n\n.button-module_tertiary__0bKi6:active, .button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-light-blue-40);\n}\n\n/* Ghost */\n\n.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_ghost__xQWCE:hover, .button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_ghost__xQWCE:active, .button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n/* Danger */\n\n.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var( --product-error);\n}\n\n.button-module_danger__pxWDX:hover, .button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_danger__pxWDX:active, .button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n/*! Action Button */\n\n/* Standard */\n\n.button-module_action__RTWZU.button-module_standard__GaQlx {\n color: var(--product-greyscale-0);\n background: var(--product-light-blue-100);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:hover, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_hover__Zz9hl {\n background: var(--product-light-blue-80);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:active, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_active__rYKZm {\n background: var(--product-light-blue-120);\n}\n\n/* Secondary */\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-00);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:hover, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:active, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_active__rYKZm {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n/* Tertiary */\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6 {\n background: var(--product-greyscale-100);\n color: var(--product-greyscale-0)\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:hover, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:active, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-greyscale-100);\n}\n\n/* Ghost */\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:hover, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:active, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:focus, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_focus__RNsoR {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n/* Danger */\n\n.button-module_action__RTWZU.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var(--product-error);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:hover, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:active, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n\n\n\n.button-module_button__dZH55:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled:hover, .button-module_action__RTWZU:disabled.button-module_hover__Zz9hl {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n border: none;\n}\n\n.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-3);\n border-radius: var(--product-radius-full);\n}\n\n.button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-2_5);\n border-radius: var(--product-radius-2);\n}\n\n\n\n @media (min-width: 768px) {\n .button-module_button__dZH55 {\n padding: var(--product-spacing-4) var(--product-spacing-7);\n }\n\n .button-module_action__RTWZU {\n border-radius: var(--product-radius-5);\n }\n\n .button-module_only-icon__8lEn4 {\n padding: 16px;\n }\n\n .button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: 10px;\n }\n}\n\n\n");var d={"form-label":"typography-module_form-label__7pjg0","form-helper":"typography-module_form-helper__iE-K1","form-button":"typography-module_form-button__oWjm-","form-input-normal":"typography-module_form-input-normal__t1XCT","form-input-semi-bold":"typography-module_form-input-semi-bold__HLeM-","content-regular-light":"typography-module_content-regular-light__qEDRp","content-regular":"typography-module_content-regular__I4VOF","content-regular-semi-bold":"typography-module_content-regular-semi-bold__COKU6","content-large-light":"typography-module_content-large-light__bc5mT","content-large":"typography-module_content-large__UcRKy","content-large-semi-bold":"typography-module_content-large-semi-bold__rW0r8","content-title-light":"typography-module_content-title-light__32AIU","content-title":"typography-module_content-title__adS2q","content-title-semi-bold":"typography-module_content-title-semi-bold__B-QDN"};u(".typography-module_form-label__7pjg0{\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-desktop-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n letter-spacing: var(--product-font-form-helper-letter-spacing);\n line-height: var(--product-font-form-helper-line-height);\n}\n\n.typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n letter-spacing: var(--product-font-form-input-button-letter-spacing);\n line-height: var(--product-font-form-input-button-line-height);\n font-weight: var(--product-font-weight-medium);\n}\n\n.typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n}\n\n.typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n letter-spacing: var(--product-font-content-regular-light-letter-spacing);\n line-height: var(--product-font-content-regular-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n letter-spacing: var(--product-font-content-regular-normal-letter-spacing);\n line-height: var(--product-font-content-regular-normal-line-height);\n}\n\n.typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-regular-semi-bold-letter-spacing);\n line-height: var(--product-font-content-regular-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n @media (min-width: 768px) {\n .typography-module_form-label__7pjg0{\n font-size: var(--product-font-form-label-desktop-size);\n }\n\n .typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n }\n\n .typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n }\n\n .typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n }\n\n .typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n }\n\n .typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n }\n\n .typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n\n .typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var p=function(e){var n=e.as,r=e.variant,o=void 0===r?"content-regular":r,s=e.children,u=e.className,c=a(e,["as","variant","children","className"]),p=n||"p";return t.createElement(p,i({className:l(d[o],u)},c),s)};var f="columns-module_container__ycx3n";u(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var h="datepicker-module_container__H0Ck-",m="datepicker-module_input__tm5uo",g="datepicker-module_input--error__D6wsy";u(".datepicker-module_container__H0Ck- {\n display: flex;\n flex-direction: column;\n}\n\n.datepicker-module_input__tm5uo {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.datepicker-module_input--error__D6wsy {\n border: 2px solid var(--product-error);\n}\n\n\n\n.datepicker-module_error__vTdEl {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__wCkZn {\n margin-bottom: var(--product-spacing-3);\n}\n\n @media (min-width: 768px) {\n .datepicker-module_input__tm5uo {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var v="formField-module_container__kHrDY",y="formField-module_label__n-BxC",_="formField-module_helper__tDddc",b="formField-module_error__lDnrF";u(".formField-module_container__kHrDY {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__n-BxC {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__tDddc {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__lDnrF {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n @media (min-width: 768px) {\n .formField-module_helper__tDddc, .formField-module_error__lDnrF {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n\n}\n");var x=function(e){var n=e.id,r=e.error,o=e.helper,i=e.label,a=e.children;return t.createElement("div",{className:v},t.createElement(p,{as:"label",variant:"form-input-normal",className:y,htmlFor:n},i),a,o&&t.createElement(p,{variant:"form-helper",className:_},o),r&&t.createElement(p,{variant:"form-helper",className:b},r))},w=function(e){var n=e.field,r=e.error,o=e.helper,s=a(e,["field","error","helper"]);return t.createElement(x,{id:s.id,label:s.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},t.createElement("div",{className:h},t.createElement("input",i({className:l(m,r&&g),type:"date",id:s.id},n))))};const E=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),S=t.createContext({}),k=t.createContext(null),C="undefined"!=typeof document,P=C?t.useLayoutEffect:t.useEffect,T=t.createContext({strict:!1}),R=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),A="data-"+R("framerAppearId"),O=!1,D=!1;class F{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const j=["prepare","read","update","preRender","render","postRender"];function M(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=j.reduce(((t,e)=>(t[e]=function(t){let e=new F,n=new F,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:l=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];a.has(r)&&(s.schedule(r),t()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),t)),{}),a=t=>{i[t].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,j.forEach(a),o.isProcessing=!1,n&&e&&(r=!1,t(s))};return{schedule:j.reduce(((e,a)=>{const l=i[a];return e[a]=(e,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||t(s)),l.schedule(e,i,a)),e}),{}),cancel:t=>j.forEach((e=>i[e].cancel(t))),state:o,steps:i}}const{schedule:V,cancel:L}=M(queueMicrotask,!1);function N(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function I(t){return"string"==typeof t||Array.isArray(t)}function B(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const z=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],U=["initial",...z];function $(t){return B(t.animate)||U.some((e=>I(t[e])))}function W(t){return Boolean($(t)||t.variants)}function Z(e){const{initial:n,animate:r}=function(t,e){if($(t)){const{initial:e,animate:n}=t;return{initial:!1===e||I(e)?e:void 0,animate:I(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(S));return t.useMemo((()=>({initial:n,animate:r})),[G(n),G(r)])}function G(t){return Array.isArray(t)?t.join(" "):t}const H={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Y={};for(const t in H)Y[t]={isEnabled:e=>H[t].some((t=>!!e[t]))};const q=t.createContext({}),K=t.createContext({}),X=Symbol.for("motionComponentSymbol");function Q({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:a}){e&&function(t){for(const e in t)Y[e]={...Y[e],...t[e]}}(e);const s=t.forwardRef((function(s,l){let u;const c={...t.useContext(E),...s,layoutId:J(s)},{isStatic:d}=c,p=Z(s),f=i(s,d);if(!d&&C){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(S),a=t.useContext(T),s=t.useContext(k),l=t.useContext(E).reducedMotion,u=t.useRef();o=o||a.renderer,!u.current&&o&&(u.current=o(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;t.useInsertionEffect((()=>{c&&c.update(r,s)}));const d=t.useRef(Boolean(r[A]&&!window.HandoffComplete));return P((()=>{c&&(V.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),t.useEffect((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(a,f,c,n);const r=t.useContext(K),o=t.useContext(T).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,o,e,r))}return o.createElement(S.Provider,{value:p},u&&p.visualElement?o.createElement(u,{visualElement:p.visualElement,...c}):null,r(a,s,function(e,n,r){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):N(r)&&(r.current=t))}),[n])}(f,p.visualElement,l),f,d,p.visualElement))}));return s[X]=a,s}function J({layoutId:e}){const n=t.useContext(q).id;return n&&void 0!==e?n+"-"+e:e}function tt(t){function e(e,n={}){return Q(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const et=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nt(t){return"string"==typeof t&&!t.includes("-")&&!!(et.indexOf(t)>-1||/[A-Z]/.test(t))}const rt={};const ot=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(ot);function at(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!rt[t]||"opacity"===t)}const st=t=>Boolean(t&&t.getVelocity),lt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ut=ot.length;const ct=t=>e=>"string"==typeof e&&e.startsWith(t),dt=ct("--"),pt=ct("var(--"),ft=t=>!!pt(t)&&ht.test(t.split("/*")[0].trim()),ht=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,mt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,gt=(t,e,n)=>n>e?e:n<t?t:n,vt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},yt={...vt,transform:t=>gt(0,1,t)},_t={...vt,default:1},bt=t=>Math.round(1e5*t)/1e5,xt=/(-)?([\d]*\.?[\d])+/g,wt=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Et=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function St(t){return"string"==typeof t}const kt=t=>({test:e=>St(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Ct=kt("deg"),Pt=kt("%"),Tt=kt("px"),Rt=kt("vh"),At=kt("vw"),Ot={...Pt,parse:t=>Pt.parse(t)/100,transform:t=>Pt.transform(100*t)},Dt={...vt,transform:Math.round},Ft={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,size:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,rotate:Ct,rotateX:Ct,rotateY:Ct,rotateZ:Ct,scale:_t,scaleX:_t,scaleY:_t,scaleZ:_t,skew:Ct,skewX:Ct,skewY:Ct,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:yt,originX:Ot,originY:Ot,originZ:Tt,zIndex:Dt,fillOpacity:yt,strokeOpacity:yt,numOctaves:Dt};function jt(t,e,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(dt(t)){i[t]=n;continue}const r=Ft[t],d=mt(n,r);if(it.has(t)){if(l=!0,a[t]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,s[t]=d):o[t]=d}if(e.transform||(l||r?o.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let e=0;e<ut;e++){const n=ot[e];void 0!==t[n]&&(i+=`${lt[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}(t.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;o.transformOrigin=`${t} ${e} ${n}`}}const Mt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vt(t,e,n){for(const r in e)st(e[r])||at(r,n)||(t[r]=e[r])}function Lt(e,n,r){const o={};return Vt(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo((()=>{const t=Mt();return jt(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),o}function Nt(t,e,n){const r={},o=Lt(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const It=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||It.has(t)}let zt=t=>!Bt(t);try{(Ut=require("@emotion/is-prop-valid").default)&&(zt=t=>t.startsWith("on")?!Bt(t):Ut(t))}catch(t){}var Ut;function $t(t,e,n){return"string"==typeof t?t:Tt.transform(e+n*t)}const Wt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zt={offset:"strokeDashoffset",array:"strokeDasharray"};function Gt(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(jt(t,u,c,p),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:m}=t;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(t,e,n){return`${$t(e,t.x,t.width)} ${$t(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?Wt:Zt;t[i.offset]=Tt.transform(-r);const a=Tt.transform(e),s=Tt.transform(n);t[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const Ht=()=>({...Mt(),attrs:{}}),Yt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function qt(e,n,r,o){const i=t.useMemo((()=>{const t=Ht();return Gt(t,n,{enableHardwareAcceleration:!1},Yt(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Vt(t,e.style,e),i.style={...t,...i.style}}return i}function Kt(e=!1){return(n,r,o,{latestValues:i},a)=>{const s=(nt(n)?qt:Nt)(r,i,a,n),l=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(zt(o)||!0===n&&Bt(o)||!e&&!Bt(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),u=n!==t.Fragment?{...l,...s,ref:o}:{},{children:c}=r,d=t.useMemo((()=>st(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}function Xt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const Qt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jt(t,e,n,r){Xt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(Qt.has(n)?n:R(n),e.attrs[n])}function te(t,e){const{style:n}=t,r={};for(const o in n)(st(n[o])||e.style&&st(e.style[o])||at(o,t))&&(r[o]=n[o]);return r}function ee(t,e){const n=te(t,e);for(const r in t)if(st(t[r])||st(e[r])){n[-1!==ot.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function ne(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const re=t=>Array.isArray(t),oe=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),ie=t=>re(t)?t[t.length-1]||0:t;function ae(t){const e=st(t)?t.get():t;return oe(e)?e.toValue():e}const se=e=>(n,r)=>{const o=t.useContext(S),i=t.useContext(k),a=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:le(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(e,n,o,i);return r?a():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(a)};function le(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=ae(i[t]);let{initial:a,animate:s}=t;const l=$(t),u=W(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===s&&(s=e.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!B(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=ne(t,e);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const t in a){let e=a[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const ue=t=>t,{schedule:ce,cancel:de,state:pe,steps:fe}=M("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ue,!0),he={useVisualState:se({scrapeMotionValuesFromProps:ee,createRenderState:Ht,onMount:(t,e,{renderState:n,latestValues:r})=>{ce.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),ce.render((()=>{Gt(n,r,{enableHardwareAcceleration:!1},Yt(e.tagName),t.transformTemplate),Jt(e,n)}))}})},me={useVisualState:se({scrapeMotionValuesFromProps:te,createRenderState:Mt})};function ge(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const ve=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ye(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const _e=t=>e=>ve(e)&&t(e,ye(e));function be(t,e,n,r){return ge(t,e,_e(n),r)}const xe=(t,e)=>n=>e(t(n)),we=(...t)=>t.reduce(xe);function Ee(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Se=Ee("dragHorizontal"),ke=Ee("dragVertical");function Ce(t){let e=!1;if("y"===t)e=ke();else if("x"===t)e=Se();else{const t=Se(),n=ke();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Pe(){const t=Ce(!0);return!t||(t(),!1)}class Te{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Re(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return be(t.current,n,((n,o)=>{if("touch"===n.pointerType||Pe())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&ce.update((()=>i[r](n,o)))}),{passive:!t.getProps()[r]})}const Ae=(t,e)=>!!e&&(t===e||Ae(t,e.parentElement));function Oe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ye(n))}const De=new WeakMap,Fe=new WeakMap,je=t=>{const e=De.get(t.target);e&&e(t)},Me=t=>{t.forEach(je)};function Ve(t,e,n){const r=function({root:t,...e}){const n=t||document;Fe.has(n)||Fe.set(n,{});const r=Fe.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(Me,{root:t,...e})),r[o]}(e);return De.set(t,n),r.observe(t),()=>{De.delete(t),r.unobserve(t)}}const Le={some:0,all:1};const Ne={inView:{Feature:class extends Te{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Le[r]};return Ve(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Te{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=be(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();ce.update((()=>{o||Ae(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=be(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=we(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=ge(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=ge(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Oe("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&ce.update((()=>n(t,e)))}))})),Oe("down",((t,e)=>{this.startPress(t,e)}))})),e=ge(this.node.current,"blur",(()=>{this.isPressing&&Oe("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=we(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ce.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pe()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ce.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=be(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=ge(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=we(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Te{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=we(ge(this.node.current,"focus",(()=>this.onFocus())),ge(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Te{mount(){this.unmount=we(Re(this.node,!0),Re(this.node,!1))}unmount(){}}}};function Ie(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Be(t,e,n){const r=t.getProps();return ne(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}let ze=ue,Ue=ue;"production"!==process.env.NODE_ENV&&(ze=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},Ue=(t,e)=>{if(!t)throw new Error(e)});const $e=t=>1e3*t,We=t=>t/1e3,Ze=!1,Ge=t=>Array.isArray(t)&&"number"==typeof t[0];function He(t){return Boolean(!t||"string"==typeof t&&qe[t]||Ge(t)||Array.isArray(t)&&t.every(He))}const Ye=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ye([0,.65,.55,1]),circOut:Ye([.55,0,1,.45]),backIn:Ye([.31,.01,.66,-.59]),backOut:Ye([.33,1.53,.69,.99])};function Ke(t){if(t)return Ge(t)?Ye(t):Array.isArray(t)?t.map(Ke):qe[t]}const Xe=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Qe=1e-7,Je=12;function tn(t,e,n,r){if(t===e&&n===r)return ue;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=Xe(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>Qe&&++s<Je);return a}(e,0,1,t,n);return t=>0===t||1===t?t:Xe(o(t),e,r)}const en=tn(.42,0,1,1),nn=tn(0,0,.58,1),rn=tn(.42,0,.58,1),on=t=>Array.isArray(t)&&"number"!=typeof t[0],an=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,sn=t=>e=>1-t(1-e),ln=t=>1-Math.sin(Math.acos(t)),un=sn(ln),cn=an(ln),dn=tn(.33,1.53,.69,.99),pn=sn(dn),fn=an(pn),hn={linear:ue,easeIn:en,easeInOut:rn,easeOut:nn,circIn:ln,circInOut:cn,circOut:un,backIn:pn,backInOut:fn,backOut:dn,anticipate:t=>(t*=2)<1?.5*pn(t):.5*(2-Math.pow(2,-10*(t-1)))},mn=t=>{if(Array.isArray(t)){Ue(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return tn(e,n,r,o)}return"string"==typeof t?(Ue(void 0!==hn[t],`Invalid easing type '${t}'`),hn[t]):t},gn=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},vn=(t,e,n)=>t+(e-t)*n;function yn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const _n=(t,e)=>n=>Boolean(St(n)&&Et.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),bn=(t,e,n)=>r=>{if(!St(r))return r;const[o,i,a,s]=r.match(xt);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},xn={...vt,transform:t=>Math.round((t=>gt(0,255,t))(t))},wn={test:_n("rgb","red"),parse:bn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+xn.transform(t)+", "+xn.transform(e)+", "+xn.transform(n)+", "+bt(yt.transform(r))+")"};const En={test:_n("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:wn.transform},Sn={test:_n("hsl","hue"),parse:bn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Pt.transform(bt(e))+", "+Pt.transform(bt(n))+", "+bt(yt.transform(r))+")"},kn=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Cn=[En,wn,Sn];function Pn(t){const e=(n=t,Cn.find((t=>t.test(n))));var n;Ue(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===Sn&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=yn(s,r,t+1/3),i=yn(s,r,t),a=yn(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Tn=(t,e)=>{const n=Pn(t),r=Pn(e),o={...n};return t=>(o.red=kn(n.red,r.red,t),o.green=kn(n.green,r.green,t),o.blue=kn(n.blue,r.blue,t),o.alpha=vn(n.alpha,r.alpha,t),wn.transform(o))},Rn={test:t=>wn.test(t)||En.test(t)||Sn.test(t),parse:t=>wn.test(t)?wn.parse(t):Sn.test(t)?Sn.parse(t):En.parse(t),transform:t=>St(t)?t:t.hasOwnProperty("red")?wn.transform(t):Sn.transform(t)};const An="number",On="color",Dn="var",Fn="var(",jn="${}",Mn=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function Vn(t){const e=t.toString(),n=e.match(Mn)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];Rn.test(e)?(o.color.push(t),i.push(On),r.push(Rn.parse(e))):e.startsWith(Fn)?(o.var.push(t),i.push(Dn),r.push(e)):(o.number.push(t),i.push(An),r.push(parseFloat(e)))}return{values:r,split:e.replace(Mn,jn).split(jn),indexes:o,types:i}}function Ln(t){return Vn(t).values}function Nn(t){const{split:e,types:n}=Vn(t),r=e.length;return t=>{let o="";for(let i=0;i<r;i++)if(o+=e[i],void 0!==t[i]){const e=n[i];o+=e===An?bt(t[i]):e===On?Rn.transform(t[i]):t[i]}return o}}const In=t=>"number"==typeof t?0:t;const Bn={test:function(t){var e,n;return isNaN(t)&&St(t)&&((null===(e=t.match(xt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(wt))||void 0===n?void 0:n.length)||0)>0},parse:Ln,createTransformer:Nn,getAnimatableNone:function(t){const e=Ln(t);return Nn(t)(e.map(In))}};function zn(t,e){return n=>n>0?e:t}function Un(t,e){return n=>vn(t,e,n)}function $n(t){return"number"==typeof t?Un:"string"==typeof t?ft(t)?zn:Rn.test(t)?Tn:Gn:Array.isArray(t)?Wn:"object"==typeof t?Rn.test(t)?Tn:Zn:zn}function Wn(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>$n(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}}function Zn(t,e){const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=$n(t[o])(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const Gn=(t,e)=>{const n=Bn.createTransformer(e),r=Vn(t),o=Vn(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?we(Wn(function(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],s=t.indexes[a][o[a]],l=null!==(n=t.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(ze(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),zn(t,e))};function Hn(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return vn(t,e,n);return $n(t)(t,e)}function Yn(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(Ue(i===e.length,"Both input and output ranges must be the same length"),1===i)return()=>e[0];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const r=[],o=n||Hn,i=t.length-1;for(let n=0;n<i;n++){let i=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||ue:e;i=we(t,i)}r.push(i)}return r}(e,r,o),s=a.length,l=e=>{let n=0;if(s>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=gn(t[n],t[n+1],e);return a[n](r)};return n?e=>l(gt(t[0],t[i-1],e)):l}function qn(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=gn(0,e,r);t.push(vn(n,1,o))}}(e,t.length-1),e}function Kn({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=on(r)?r.map(mn):mn(r),i={done:!1,value:e[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:qn(e),t),s=Yn(a,e,{ease:Array.isArray(o)?o:(l=e,u=o,l.map((()=>u||rn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=s(e),i.done=e>=t,i)}}function Xn(t,e){return e?t*(1e3/e):0}const Qn=5;function Jn(t,e,n){const r=Math.max(e-Qn,0);return Xn(n-t(r),e-r)}const tr=.001,er=.01,nr=10,rr=.05,or=1;function ir({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;ze(t<=$e(nr),"Spring duration must be 10 seconds or less");let a=1-e;a=gt(rr,or,a),t=gt(er,nr,We(t)),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=sr(e,a),l=Math.exp(-o);return tr-i/s*l},i=e=>{const r=e*a*t,i=r*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=sr(Math.pow(e,2),a);return(-o(e)+tr>0?-1:1)*((i-s)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-tr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<ar;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t=$e(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(s,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}const ar=12;function sr(t,e){return t*Math.sqrt(1-e*e)}const lr=["duration","bounce"],ur=["stiffness","damping","mass"];function cr(t,e){return e.some((e=>void 0!==t[e]))}function dr({keyframes:t,restDelta:e,restSpeed:n,...r}){const o=t[0],i=t[t.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!cr(t,ur)&&cr(t,lr)){const n=ir(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-We(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(s*u)),m=i-o,g=We(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),h<1){const t=sr(g,h);y=e=>{const n=Math.exp(-h*g*e);return i-n*((f+h*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===h)y=t=>i-Math.exp(-g*t)*(m+(f+g*m)*t);else{const t=g*Math.sqrt(h*h-1);y=e=>{const n=Math.exp(-h*g*e),r=Math.min(t*e,300);return i-n*((f+h*g*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{const r=y(t);if(p)a.done=t>=c;else{let o=f;0!==t&&(o=h<1?Jn(y,t,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=e;a.done=s&&l}return a.value=a.done?i:r,a}}}function pr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],p={done:!1,value:d},f=t=>void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l;let h=n*e;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=t=>-h*Math.exp(-t/r),y=t=>g+v(t),_=t=>{const e=v(t),n=y(t);p.done=Math.abs(e)<=u,p.value=p.done?g:n};let b,x;const w=t=>{var e;(e=p.value,void 0!==s&&e<s||void 0!==l&&e>l)&&(b=t,x=dr({keyframes:[p.value,f(p.value)],velocity:Jn(y,t,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,_(t),w(t)),void 0!==b&&t>b?x.next(t-b):(!e&&_(t),p)}}}let fr;function hr(){fr=void 0}const mr={now:()=>(void 0===fr&&mr.set(pe.isProcessing||D?pe.timestamp:performance.now()),fr),set:t=>{fr=t,queueMicrotask(hr)}},gr=t=>{const e=({timestamp:e})=>t(e);return{start:()=>ce.update(e,!0),stop:()=>de(e),now:()=>pe.isProcessing?pe.timestamp:mr.now()}},vr=2e4;function yr(t){let e=0;let n=t.next(e);for(;!n.done&&e<vr;)e+=50,n=t.next(e);return e>=vr?1/0:e}const _r={decay:pr,inertia:pr,tween:Kn,keyframes:Kn,spring:dr},br=t=>t/100;function xr({autoplay:t=!0,delay:e=0,driver:n=gr,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let f,h,m=1,g=!1;const v=()=>{h=new Promise((t=>{f=t}))};let y;v();const _=_r[o]||Kn;let b;_!==Kn&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&Ue(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=we(br,Hn(r[0],r[1])),r=[0,100]);const x=_({...p,keyframes:r});let w;"mirror"===s&&(w=_({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let E="idle",S=null,k=null,C=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=yr(x));const{calculatedDuration:P}=x;let T=1/0,R=1/0;null!==P&&(T=P+a,R=T*(i+1)-a);let A=0;const O=t=>{if(null===k)return;m>0&&(k=Math.min(k,t)),m<0&&(k=Math.min(t-R/m,k)),A=null!==S?S:Math.round(t-k)*m;const n=A-e*(m>=0?1:-1),o=m>=0?n<0:n>R;A=Math.max(n,0),"finished"===E&&null===S&&(A=R);let l=A,u=x;if(i){const t=Math.min(A,R)/T;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,i+1);Boolean(e%2)&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(u=w)),l=gt(0,1,n)*T}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===P||(p=m>=0?A>=R:A<=0);const f=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),f&&j(),c},D=()=>{y&&y.stop(),y=void 0},F=()=>{E="idle",D(),f(),v(),k=C=null},j=()=>{E="finished",c&&c(),D(),f()},M=()=>{if(g)return;y||(y=n(O));const t=y.now();l&&l(),null!==S?k=t-S:k&&"finished"!==E||(k=t),"finished"===E&&v(),C=k,S=null,E="running",y.start()};t&&M();const V={then:(t,e)=>h.then(t,e),get time(){return We(A)},set time(t){t=$e(t),A=t,null===S&&y&&0!==m?k=y.now()-t/m:S=t},get duration(){const t=null===x.calculatedDuration?yr(x):x.calculatedDuration;return We(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,V.time=We(A))},get state(){return E},play:M,pause:()=>{E="paused",S=A},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),F())},cancel:()=>{null!==C&&O(C),F()},complete:()=>{E="finished"},sample:t=>(k=0,O(t))};return V}const wr=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Er=new Set(["opacity","clipPath","filter","transform"]);function Sr(t,e,{onUpdate:n,onComplete:r,...o}){if(!(wr()&&Er.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1,l=!1;const u=()=>{a=new Promise((t=>{i=t}))};u();let{keyframes:c,duration:d=300,ease:p,times:f}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!He(e.ease))(e,o)){const t=xr({...o,repeat:0,delay:0});let e={done:!1,value:c[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;f=void 0,c=n,d=r-10,p="linear"}const h=function(t,e,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ke(s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,c,{...o,duration:d,ease:p,times:f}),m=()=>{l=!1,h.cancel()},g=()=>{l=!0,ce.update(m),i(),u()};h.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(c,o)),r&&r(),g())};return{then:(t,e)=>a.then(t,e),attachTimeline:t=>(h.timeline=t,h.onfinish=null,ue),get time(){return We(h.currentTime||0)},set time(t){h.currentTime=$e(t)},get speed(){return h.playbackRate},set speed(t){h.playbackRate=t},get duration(){return We(d)},play:()=>{s||(h.play(),de(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:e}=h;if(e){const n=xr({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||h.finish()},cancel:g}}const kr={type:"spring",stiffness:500,damping:25,restSpeed:10},Cr={type:"keyframes",duration:.8},Pr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tr=(t,{keyframes:e})=>e.length>2?Cr:it.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:kr:Pr,Rr=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Bn.test(e)&&"0"!==e||e.startsWith("url("))),Ar=new Set(["brightness","contrast","saturate","opacity"]);function Or(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(xt)||[];if(!r)return t;const o=n.replace(r,"");let i=Ar.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const Dr=/([a-z-]*)\(.*?\)/g,Fr={...Bn,getAnimatableNone:t=>{const e=t.match(Dr);return e?e.map(Or).join(" "):t}},jr={...Ft,color:Rn,backgroundColor:Rn,outlineColor:Rn,fill:Rn,stroke:Rn,borderColor:Rn,borderTopColor:Rn,borderRightColor:Rn,borderBottomColor:Rn,borderLeftColor:Rn,filter:Fr,WebkitFilter:Fr},Mr=t=>jr[t];function Vr(t,e){let n=Mr(t);return n!==Fr&&(n=Bn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Lr=t=>/^0[^.\s]+$/.test(t);function Nr(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||Lr(t):void 0}function Ir(t,e){return t[e]||t.default||t}const Br=(t,e,n,r={})=>o=>{const i=Ir(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=$e(a);const l=function(t,e,n,r){const o=Rr(e,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:t.get();let s;const l=[];for(let t=0;t<i.length;t++)null===i[t]&&(i[t]=0===t?a:i[t-1]),Nr(i[t])&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(s=i[t]);if(o&&l.length&&s)for(let t=0;t<l.length;t++)i[l[t]]=Vr(e,s);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=Rr(t,u),p=Rr(t,c);ze(d===p,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(f={...f,...Tr(t,f)}),f.duration&&(f.duration=$e(f.duration)),f.repeatDelay&&(f.repeatDelay=$e(f.repeatDelay)),!d||!p||Ze||!1===i.type||O)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const o=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ue,pause:ue,stop:ue,then:t=>(t(),Promise.resolve()),cancel:ue,complete:ue});return e?xr({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}(f);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Sr(e,t,f);if(n)return n}return xr(f)};function zr(t){return Boolean(st(t)&&t.add)}const Ur=t=>/^\-?\d*\.?\d+$/.test(t);function $r(t,e){-1===t.indexOf(e)&&t.push(e)}function Wr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Zr{constructor(){this.subscriptions=[]}add(t){return $r(this.subscriptions,t),()=>Wr(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gr=new Set;function Hr(t,e,n){t||Gr.has(e)||(console.warn(e),n&&console.warn(n),Gr.add(e))}class Yr{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=mr.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=mr.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&Hr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Zr);const n=this.events[t].add(e);return"change"===t?()=>{n(),ce.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=mr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Xn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(t,e){return new Yr(t,e)}const Kr=t=>e=>e.test(t),Xr=[vt,Tt,Pt,Ct,At,Rt,{test:t=>"auto"===t,parse:t=>t}],Qr=t=>Xr.find(Kr(t)),Jr=[...Xr,Rn,Bn];function to(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qr(n))}function eo(t,e){if(!e)return;return(e[t]||e.default||e).from}function no({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function ro(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}function oo(t,e,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...s}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(i=r);const u=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const e in s){const r=t.getValue(e),o=s[e];if(!r||void 0===o||c&&no(c,e))continue;const a={delay:n,elapsed:0,...Ir(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[A];if(n){const t=window.HandoffAppearAnimations(n,e,r,ce);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let d=!a.isHandoff&&!ro(r,o);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(Br(e,r,o,t.shouldReduceMotion&&it.has(e)?{type:!1}:a));const p=r.animation;zr(l)&&(l.add(e),p.then((()=>l.remove(e)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(t,e){const n=Be(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)to(t,e,ie(i[e]))}(t,a)})),u}function io(t,e,n={}){const r=Be(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(oo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,o=1,i){const a=[],s=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(ao).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(io(t,e,{...i,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[t,e]="beforeChildren"===s?[i,a]:[a,i];return t().then((()=>e()))}return Promise.all([i(),a(n.delay)])}function ao(t,e){return t.sortNodePosition(e)}const so=[...z].reverse(),lo=z.length;function uo(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>io(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=io(t,e,n);else{const o="function"==typeof e?Be(t,e,n.custom):e;r=Promise.all(oo(t,o,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function co(t){let e=uo(t);const n={animate:fo(!0),whileInView:fo(),whileHover:fo(),whileTap:fo(),whileDrag:fo(),whileFocus:fo(),exit:fo()};let r=!0;const o=(e,n)=>{const r=Be(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function i(i,a){const s=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},p=1/0;for(let e=0;e<lo;e++){const f=so[e],h=n[f],m=void 0!==s[f]?s[f]:l[f],g=I(m),v=f===a?h.isActive:null;!1===v&&(p=e);let y=m===l[f]&&m!==s[f]&&g;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===v||!m&&!h.prevProp||B(m)||"boolean"==typeof m)continue;let _=po(h.prevProp,m)||f===a&&h.isActive&&!y&&g||e>p&&g,b=!1;const x=Array.isArray(m)?m:[m];let w=x.reduce(o,{});!1===v&&(w={});const{prevResolvedValues:E={}}=h,S={...E,...w},k=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),h.needsAnimating[t]=!0};for(const t in S){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let r=!1;r=re(e)&&re(n)?!Ie(e,n):e!==n,r?void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):h.protectedKeys[t]=!0}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:f,...i}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),u.push({animation:e})}let f=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:i,setActive:function(e,r,o){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=i(o,e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function po(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Ie(e,t)}function fo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ho=0;const mo={animation:{Feature:class extends Te{constructor(t){super(t),t.animationState||(t.animationState=co(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),B(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Te{constructor(){super(...arguments),this.id=ho++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},go=(t,e)=>Math.abs(t-e);class vo{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=bo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=go(t.x,e.x),r=go(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=pe;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=yo(e,this.transformPagePoint),ce.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=bo("pointercancel"===t.type?this.lastMoveEventInfo:yo(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!ve(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=yo(ye(t),this.transformPagePoint),{point:a}=i,{timestamp:s}=pe;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=e;l&&l(t,bo(i,this.history)),this.removeListeners=we(be(this.contextWindow,"pointermove",this.handlePointerMove),be(this.contextWindow,"pointerup",this.handlePointerUp),be(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),de(this.updatePoint)}}function yo(t,e){return e?{point:e(t.point)}:t}function _o(t,e){return{x:t.x-e.x,y:t.y-e.y}}function bo({point:t},e){return{point:t,delta:_o(t,wo(e)),offset:_o(t,xo(e)),velocity:Eo(e,.1)}}function xo(t){return t[0]}function wo(t){return t[t.length-1]}function Eo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=wo(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>$e(e)));)n--;if(!r)return{x:0,y:0};const i=We(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function So(t){return t.max-t.min}function ko(t,e=0,n=.01){return Math.abs(t-e)<=n}function Co(t,e,n,r=.5){t.origin=r,t.originPoint=vn(e.min,e.max,t.origin),t.scale=So(n)/So(e),(ko(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=vn(n.min,n.max,t.origin)-t.originPoint,(ko(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Po(t,e,n,r){Co(t.x,e.x,n.x,r?r.originX:void 0),Co(t.y,e.y,n.y,r?r.originY:void 0)}function To(t,e,n){t.min=n.min+e.min,t.max=t.min+So(e)}function Ro(t,e,n){t.min=e.min-n.min,t.max=t.min+So(e)}function Ao(t,e,n){Ro(t.x,e.x,n.x),Ro(t.y,e.y,n.y)}function Oo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Do(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const Fo=.35;function jo(t,e,n){return{min:Mo(t,e),max:Mo(t,n)}}function Mo(t,e){return"number"==typeof t?t:t[e]||0}const Vo=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Lo=()=>({x:{min:0,max:0},y:{min:0,max:0}});function No(t){return[t("x"),t("y")]}function Io({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Bo(t){return void 0===t||1===t}function zo({scale:t,scaleX:e,scaleY:n}){return!Bo(t)||!Bo(e)||!Bo(n)}function Uo(t){return zo(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function $o(t){return Wo(t.x)||Wo(t.y)}function Wo(t){return t&&"0%"!==t}function Zo(t,e,n){return n+e*(t-n)}function Go(t,e,n,r,o){return void 0!==o&&(t=Zo(t,o,r)),Zo(t,n,r)+e}function Ho(t,e=0,n=1,r,o){t.min=Go(t.min,e,n,r,o),t.max=Go(t.max,e,n,r,o)}function Yo(t,{x:e,y:n}){Ho(t.x,e.translate,e.scale,e.originPoint),Ho(t.y,n.translate,n.scale,n.originPoint)}function qo(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Ko(t,e){t.min=t.min+e,t.max=t.max+e}function Xo(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=vn(t.min,t.max,i);Ho(t,e[n],e[r],a,e.scale)}const Qo=["x","scaleX","originX"],Jo=["y","scaleY","originY"];function ti(t,e){Xo(t.x,e,Qo),Xo(t.y,e,Jo)}function ei(t,e){return Io(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const ni=({current:t})=>t?t.ownerDocument.defaultView:null,ri=new WeakMap;class oi{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lo(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new vo(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ye(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ce(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),No((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Pt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=So(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&ce.update((()=>o(t,e)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>No((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:ni(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ce.update((()=>o(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!ii(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?vn(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?vn(n,t,r.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;e&&N(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:Oo(t.x,n,o),y:Oo(t.y,e,r)}}(r.layoutBox,e),this.elastic=function(t=Fo){return!1===t?t=0:!0===t&&(t=Fo),{x:jo(t,"left","right"),y:jo(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&No((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!N(t))return!1;const n=t.current;Ue(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=ei(t,n),{scroll:o}=e;return o&&(Ko(r.x,o.offset.x),Ko(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Do(t.x,e.x),y:Do(t.y,e.y)}}(r.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=Io(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=No((a=>{if(!ii(a,e,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?t[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Br(t,n,0,e))}stopAnimation(){No((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){No((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){No((e=>{const{drag:n}=this.getProps();if(!ii(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-vn(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!N(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};No((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=So(t),o=So(e);return o>r?n=gn(e.min,e.max-r,t.min):r>o&&(n=gn(t.min,t.max-o,e.min)),gt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),No((e=>{if(!ii(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(vn(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;ri.set(this.visualElement,this);const t=be(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();N(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const o=ge(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(No((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Fo,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function ii(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const ai=t=>(e,n)=>{t&&ce.update((()=>t(e,n)))};const si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function li(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ui={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Tt.test(t))return t;t=parseFloat(t)}return`${li(t,e.target.x)}% ${li(t,e.target.y)}%`}},ci={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=Bn.parse(t);if(o.length>5)return r;const i=Bn.createTransformer(t),a="number"!=typeof o[0]?1:0,s=n.x.scale*e.x,l=n.y.scale*e.y;o[0+a]/=s,o[1+a]/=l;const u=vn(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class di extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=fi,Object.assign(rt,i),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),si.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||ce.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),V.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function pi(e){const[n,r]=function(){const e=t.useContext(k);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect((()=>o(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(q);return t.createElement(di,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(K),isPresent:n,safeToRemove:r})}const fi={borderRadius:{...ui,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ui,borderTopRightRadius:ui,borderBottomLeftRadius:ui,borderBottomRightRadius:ui,boxShadow:ci},hi=["TopLeft","TopRight","BottomLeft","BottomRight"],mi=hi.length,gi=t=>"string"==typeof t?parseFloat(t):t,vi=t=>"number"==typeof t||Tt.test(t);function yi(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const _i=xi(0,.5,un),bi=xi(.5,.95,ue);function xi(t,e,n){return r=>r<t?0:r>e?1:n(gn(t,e,r))}function wi(t,e){t.min=e.min,t.max=e.max}function Ei(t,e){wi(t.x,e.x),wi(t.y,e.y)}function Si(t,e,n,r,o){return t=Zo(t-=e,1/n,r),void 0!==o&&(t=Zo(t,1/o,r)),t}function ki(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){Pt.test(e)&&(e=parseFloat(e),e=vn(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=vn(i.min,i.max,r);t===i&&(s-=e),t.min=Si(t.min,e,n,s,o),t.max=Si(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const Ci=["x","scaleX","originX"],Pi=["y","scaleY","originY"];function Ti(t,e,n,r){ki(t.x,e,Ci,n?n.x:void 0,r?r.x:void 0),ki(t.y,e,Pi,n?n.y:void 0,r?r.y:void 0)}function Ri(t){return 0===t.translate&&1===t.scale}function Ai(t){return Ri(t.x)&&Ri(t.y)}function Oi(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Di(t){return So(t.x)/So(t.y)}class Fi{constructor(){this.members=[]}add(t){$r(this.members,t),t.scheduleRender()}remove(t){if(Wr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ji(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=t.x.scale*e.x,s=t.y.scale*e.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Mi=(t,e)=>t.depth-e.depth;class Vi{constructor(){this.children=[],this.isDirty=!1}add(t){$r(this.children,t),this.isDirty=!0}remove(t){Wr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Mi),this.isDirty=!1,this.children.forEach(t)}}const Li=["","X","Y","Z"],Ni={visibility:"hidden"};let Ii=0;const Bi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function zi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Ii++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,Bi.totalNodes=Bi.resolvedTargetDeltas=Bi.recalculatedProjection=0,this.nodes.forEach(Wi),this.nodes.forEach(Xi),this.nodes.forEach(Qi),this.nodes.forEach(Zi),t=Bi,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vi)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Zr),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=mr.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(de(r),t(i-e))};return ce.read(r,!0),()=>de(r)}(r,250),si.hasAnimatedSinceResize&&(si.hasAnimatedSinceResize=!1,this.nodes.forEach(Ki))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||oa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Oi(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Ir(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Ki(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,de(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ji),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hi);this.isUpdating||this.nodes.forEach(Yi),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(qi),this.nodes.forEach(Ui),this.nodes.forEach($i),this.clearAllSnapshots();const t=mr.now();pe.delta=gt(0,1e3/60,t-pe.timestamp),pe.timestamp=t,pe.isProcessing=!0,fe.update.process(pe),fe.preRender.process(pe),fe.render.process(pe),pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,V.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Gi),this.sharedNodes.forEach(ta)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ce.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Lo(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!Ai(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||Uo(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),sa((r=n).x),sa(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return Lo();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Ko(e.x,n.offset.x),Ko(e.y,n.offset.y)),e}removeElementScroll(t){const e=Lo();Ei(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Ei(e,t);const{scroll:n}=this.root;n&&(Ko(e.x,-n.offset.x),Ko(e.y,-n.offset.y))}Ko(e.x,o.offset.x),Ko(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=Lo();Ei(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ti(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Uo(r.latestValues)&&ti(n,r.latestValues)}return Uo(this.latestValues)&&ti(n,this.latestValues),n}removeTransform(t){const e=Lo();Ei(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!Uo(n.latestValues))continue;zo(n.latestValues)&&n.updateSnapshot();const r=Lo();Ei(r,n.measurePageBox()),Ti(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Uo(this.latestValues)&&Ti(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==pe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=pe.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lo(),this.relativeTargetOrigin=Lo(),Ao(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Lo(),this.targetWithTransforms=Lo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,To(a.x,s.x,l.x),To(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ei(this.target,this.layout.layoutBox),Yo(this.target,this.targetDelta)):Ei(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lo(),this.relativeTargetOrigin=Lo(),Ao(this.relativeTargetOrigin,this.target,t.target),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Bi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!zo(this.parent.latestValues)&&!$o(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===pe.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Ei(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,r=!1){const o=n.length;if(!o)return;let i,a;e.x=e.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ti(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,Yo(t,a)),r&&Uo(i.latestValues)&&ti(t,i.latestValues))}e.x=qo(e.x),e.y=qo(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=Lo());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Vo(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Vo(),this.projectionDeltaWithTransform=Vo());const u=this.projectionTransform;Po(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ji(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Bi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Vo();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=Lo(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(ra));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,p,f,h,m,g;ea(i.x,t.x,n),ea(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,h=this.relativeTargetOrigin,m=a,g=n,na(f.x,h.x,m.x,g),na(f.y,h.y,m.y,g),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d=Lo()),Ei(d,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=vn(0,void 0!==n.opacity?n.opacity:1,_i(r)),t.opacityExit=vn(void 0!==e.opacity?e.opacity:1,0,bi(r))):i&&(t.opacity=vn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<mi;o++){const i=`border${hi[o]}Radius`;let a=yi(e,i),s=yi(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||vi(a)===vi(s)?(t[i]=Math.max(vn(gi(a),gi(s),r),0),(Pt.test(s)||Pt.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=vn(e.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(de(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ce.update((()=>{si.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=st(t)?t:qr(t);return r.start(Br("",r,e,n)),r.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&la(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Lo();const e=So(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=So(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Ei(e,n),ti(e,o),Po(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Fi);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let e=0;e<Li.length;e++){const o="rotate"+Li[e];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ni;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ae(null==t?void 0:t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ae(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Uo(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ji(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in rt){if(void 0===a[t])continue;const{correct:e,applyTo:n}=rt[t],o="none"===r.transform?a[t]:e(a[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=o}else r[t]=o}return this.options.layoutId&&(r.pointerEvents=i===this?ae(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Hi),this.root.sharedNodes.clear()}}}function Ui(t){t.updateLayout()}function $i(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?No((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=So(r);r.min=e[t].min,r.max=r.min+o})):la(o,n.layoutBox,e)&&No((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=So(e[r]);o.max=o.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)}));const a=Vo();Po(a,e,n.layoutBox);const s=Vo();i?Po(s,t.applyTransform(r,!0),n.measuredBox):Po(s,e,n.layoutBox);const l=!Ai(a);let u=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=Lo();Ao(a,n.layoutBox,o.layoutBox);const s=Lo();Ao(s,e,i.layoutBox),Oi(a,s)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Wi(t){Bi.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Zi(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gi(t){t.clearSnapshot()}function Hi(t){t.clearMeasurements()}function Yi(t){t.isLayoutDirty=!1}function qi(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ki(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Xi(t){t.resolveTargetDelta()}function Qi(t){t.calcProjection()}function Ji(t){t.resetRotation()}function ta(t){t.removeLeadSnapshot()}function ea(t,e,n){t.translate=vn(e.translate,0,n),t.scale=vn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function na(t,e,n,r){t.min=vn(e.min,n.min,r),t.max=vn(e.max,n.max,r)}function ra(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const oa={duration:.45,ease:[.4,0,.1,1]},ia=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),aa=ia("applewebkit/")&&!ia("chrome/")?Math.round:ue;function sa(t){t.min=aa(t.min),t.max=aa(t.max)}function la(t,e,n){return"position"===t||"preserve-aspect"===t&&!ko(Di(e),Di(n),.2)}const ua=zi({attachResizeListener:(t,e)=>ge(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ca={current:void 0},da=zi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ca.current){const t=new ua({});t.mount(window),t.setOptions({layoutScroll:!0}),ca.current=t}return ca.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),pa={pan:{Feature:class extends Te{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new vo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ni(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ai(t),onStart:ai(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&ce.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=be(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Te{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new oi(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:da,MeasureLayout:pi}},fa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const ha=4;function ma(t,e,n=1){Ue(n<=ha,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=fa.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const t=i.trim();return Ur(t)?parseFloat(t):t}return ft(o)?ma(o,e,n+1):o}const ga=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),va=t=>ga.has(t),ya=t=>t===vt||t===Tt,_a=(t,e)=>parseFloat(t.split(", ")[e]),ba=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return _a(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?_a(e[1],t):0}},xa=new Set(["x","y","z"]),wa=ot.filter((t=>!xa.has(t)));const Ea={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ba(4,13),y:ba(5,14)};Ea.translateX=Ea.x,Ea.translateY=Ea.y;const Sa=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(va);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],c=Qr(u);const d=e[o];let p;if(re(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=Qr(u);for(let n=e;n<t&&null!==d[n];n++)p?Ue(Qr(d[n])===p,"All keyframes must be of the same type"):(p=Qr(d[n]),Ue(p===c||ya(c)&&ya(p),"Keyframes must be of the same dimension as the current value"))}else p=Qr(d);if(c!==p)if(ya(c)&&ya(p)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===Tt&&(e[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):e[o]=c.transform(d):(a||(i=function(t){const e=[];return wa.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{s[t]=Ea[t](r,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(s[n]),t[n]=Ea[n](l,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),C&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function ka(t,e,n,r){return(t=>Object.keys(t).some(va))(e)?Sa(t,e,n,r):{target:e,transitionEnd:r}}const Ca=(t,e,n,r)=>{const o=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!ft(e))return;const n=ma(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!ft(o))continue;const i=ma(o,r);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return ka(t,e=o.target,n,r=o.transitionEnd)},Pa={current:null},Ta={current:!1};const Ra=new WeakMap,Aa=Object.keys(Y),Oa=Aa.length,Da=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Fa=U.length;class ja{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ce.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=$(e),this.isVariantNode=W(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==a[t]&&st(e)&&(e.set(a[t],!1),zr(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,Ra.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Ta.current||function(){if(Ta.current=!0,C)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Pa.current=t.matches;t.addListener(e),e()}else Pa.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Pa.current),"production"!==process.env.NODE_ENV&&Hr(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ra.delete(this.current),this.projection&&this.projection.unmount(),de(this.notifyUpdate),de(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=it.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&ce.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,o){let i,a;if("production"!==process.env.NODE_ENV&&r&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ze(!1,t):Ue(!1,t)}for(let t=0;t<Oa;t++){const n=Aa[t],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Y[n];s&&(i=s),r(e)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&N(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lo()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Da.length;e++){const n=Da[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],a=n[o];if(st(i))t.addValue(o,i),zr(r)&&r.add(o),"development"===process.env.NODE_ENV&&Hr("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(st(a))t.addValue(o,qr(i,{owner:t})),zr(r)&&r.remove(o);else if(a!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,qr(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Fa;t++){const n=U[t],r=this.props[n];(I(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=qr(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=ne(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||st(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Zr),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Ma extends ja{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},r){const o=function(t,e,n){const r={};for(const o in t){const t=eo(o,e);if(void 0!==t)r[o]=t;else{const t=n.getValue(o);t&&(r[o]=t.get())}}return r}(n,t||{},this);if(r){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),a=i.length;var s;if(a)for(let l=0;l<a;l++){const a=i[l],u=e[a];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:t.readValue(a))&&void 0!==o?o:e[a]),null!=c&&("string"==typeof c&&(Ur(c)||Lr(c))?c=parseFloat(c):(s=c,!Jr.find(Kr(s))&&Bn.test(u)&&(c=Vr(a,u))),t.addValue(a,qr(c,{owner:t})),void 0===n[a]&&(n[a]=c),null!==c&&t.setBaseTarget(a,c))}}(this,n,o);const t=Ca(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Va extends Ma{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(it.has(e)){const t=Mr(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(dt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ei(t,e)}build(t,e,n,r){jt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return te(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;st(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){Xt(t,e,n,r)}}class La extends Ma{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(it.has(e)){const t=Mr(e);return t&&t.default||0}return e=Qt.has(e)?e:R(e),t.getAttribute(e)}measureInstanceViewportBox(){return Lo()}scrapeMotionValuesFromProps(t,e){return ee(t,e)}build(t,e,n,r){Gt(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){Jt(t,e,0,r)}mount(t){this.isSVGTag=Yt(t.tagName),super.mount(t)}}const Na=(t,e)=>nt(t)?new La(e,{enableHardwareAcceleration:!1}):new Va(e,{enableHardwareAcceleration:!0}),Ia={...mo,...Ne,...pa,...{layout:{ProjectionNode:da,MeasureLayout:pi}}},Ba=tt(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...nt(t)?he:me,preloadedFeatures:n,useRender:Kt(e),createVisualElement:r,Component:t}}(t,e,Ia,Na)));var za={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},Ua="form-module_form__FGOhg";u(".form-module_form__FGOhg {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \n}\n\n.form-module_form__FGOhg > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__FGOhg > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__FGOhg > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n\n .form-module_form__FGOhg {\n padding: 0;\n }\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var $a="numberField-module_container__yjOIU",Wa="numberField-module_fake-input__cqOX-",Za="numberField-module_spinbutton-container__HkUKt",Ga="numberField-module_spinbutton-container--error__dO4fj",Ha="numberField-module_control__yE0Ro";u(".numberField-module_container__yjOIU {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__cqOX- {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__HkUKt {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__dO4fj {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__e79fV {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__UtA4B {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__DriKa {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__yE0Ro {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 44px;\n height: 44px;\n border: 2px solid black;\n}\n\n");var Ya=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],qa=function(e){var n=e.name,r=e.label,o=e.min,i=void 0===o?0:o,a=e.max,s=void 0===a?100:a,u=e.width,c=void 0===u?3:u,d=e.error,f=e.helper,h=e.field,m=h.value,g=h.onChange,v=h.onBlur,y=function(t){m<=i||g(m-t)},_=function(t){m>=s||g(m+t)};return t.createElement(x,{id:"".concat(n,"-label"),label:r,error:null==d?void 0:d.message,helper:null==f?void 0:f.message},t.createElement("div",{className:$a},t.createElement("div",{className:l(Za,d&&Ga)},t.createElement("button",{className:Ha,type:"button",tabIndex:-1,onClick:function(){return y(1)},"aria-label":"decrease"},"-"),t.createElement(p,{as:"div",className:Wa,role:"spinbutton",tabIndex:0,onKeyDown:function(t){Ya.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&_(1),"ArrowDown"===t.key&&y(1)}(t),function(t){"PageUp"===t.key&&_(5),"PageDown"===t.key&&y(5)}(t),function(t){"Home"===t.key&&g(i),"End"===t.key&&g(s)}(t))},onBlur:v,"aria-valuenow":m,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==d?void 0:d.message),"aria-errormessage":d?"".concat(n,"-error"):void 0,style:{width:"".concat(c,"ch")}},m),t.createElement("button",{className:Ha,type:"button",tabIndex:-1,onClick:function(){return _(1)},"aria-label":"increase"},"+"))))};function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ka.apply(this,arguments)}function Xa(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}function Qa(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function Ja(...e){return t.useCallback(Qa(...e),e)}function ts(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[e][a])||i,u=t.useMemo((()=>s),Object.values(s));return t.createElement(l.Provider,{value:u},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][a])||i,u=t.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},es(o,...n)]}function es(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const ns=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(is);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(rs,Ka({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(rs,Ka({},o,{ref:n}),r)}));ns.displayName="Slot";const rs=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...as(o,r.props),ref:n?Qa(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));rs.displayName="SlotClone";const os=({children:e})=>t.createElement(t.Fragment,null,e);function is(e){return t.isValidElement(e)&&e.type===os}function as(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...t)=>{i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}const ss=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?ns:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,Ka({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});const ls=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},us=o["useId".toString()]||(()=>{});let cs=0;function ds(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...t)=>{var e;return null===(e=n.current)||void 0===e?void 0:e.call(n,...t)}),[])}function ps({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=ds(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,s=a?e:o,l=ds(r);return[s,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}const fs=t.createContext(void 0);function hs(e){const n=t.useContext(fs);return e||n||"ltr"}const ms="rovingFocusGroup.onEntryFocus",gs={bubbles:!1,cancelable:!0},vs="RovingFocusGroup",[ys,_s,bs]=function(e){const n=e+"CollectionProvider",[r,o]=ts(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=Ja(n,a(s,r).collectionRef);return t.createElement(ns,{ref:i},o)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,s=t.useRef(null),c=Ja(n,s),d=a(l,r);return t.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),t.createElement(ns,{[u]:"",ref:c},o)}))},function(n){const r=a(e+"CollectionConsumer",n);return t.useCallback((()=>{const t=r.collectionRef.current;if(!t)return[];const e=Array.from(t.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort(((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(vs),[xs,ws]=ts(vs,[bs]),[Es,Ss]=xs(vs),ks=t.forwardRef(((e,n)=>t.createElement(ys.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(ys.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(Cs,Ka({},e,{ref:n})))))),Cs=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,p=t.useRef(null),f=Ja(n,p),h=hs(a),[m=null,g]=ps({prop:s,defaultProp:l,onChange:u}),[v,y]=t.useState(!1),_=ds(c),b=_s(r),x=t.useRef(!1),[w,E]=t.useState(0);return t.useEffect((()=>{const t=p.current;if(t)return t.addEventListener(ms,_),()=>t.removeEventListener(ms,_)}),[_]),t.createElement(Es,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:m,onItemFocus:t.useCallback((t=>g(t)),[g]),onItemShiftTab:t.useCallback((()=>y(!0)),[]),onFocusableItemAdd:t.useCallback((()=>E((t=>t+1))),[]),onFocusableItemRemove:t.useCallback((()=>E((t=>t-1))),[])},t.createElement(ss.div,Ka({tabIndex:v||0===w?-1:0,"data-orientation":o},d,{ref:f,style:{outline:"none",...e.style},onMouseDown:Xa(e.onMouseDown,(()=>{x.current=!0})),onFocus:Xa(e.onFocus,(t=>{const e=!x.current;if(t.target===t.currentTarget&&e&&!v){const e=new CustomEvent(ms,gs);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=b().filter((t=>t.focusable));Rs([t.find((t=>t.active)),t.find((t=>t.id===m)),...t].filter(Boolean).map((t=>t.ref.current)))}}x.current=!1})),onBlur:Xa(e.onBlur,(()=>y(!1)))})))})),Ps=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...l}=e,u=function(t){const[e,n]=o.useState(us());return ls((()=>{t||n((t=>null!=t?t:String(cs++)))}),[t]),t||(e?`radix-${e}`:"")}(),c=s||u,d=Ss("RovingFocusGroupItem",r),p=d.currentTabStopId===c,f=_s(r),{onFocusableItemAdd:h,onFocusableItemRemove:m}=d;return t.useEffect((()=>{if(i)return h(),()=>m()}),[i,h,m]),t.createElement(ys.ItemSlot,{scope:r,id:c,focusable:i,active:a},t.createElement(ss.span,Ka({tabIndex:p?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:Xa(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:Xa(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Xa(e.onKeyDown,(t=>{if("Tab"===t.key&&t.shiftKey)return void d.onItemShiftTab();if(t.target!==t.currentTarget)return;const e=function(t,e,n){const r=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ts[r]}(t,d.orientation,d.dir);if(void 0!==e){t.preventDefault();let o=f().filter((t=>t.focusable)).map((t=>t.ref.current));if("last"===e)o.reverse();else if("prev"===e||"next"===e){"prev"===e&&o.reverse();const i=o.indexOf(t.currentTarget);o=d.loop?(r=i+1,(n=o).map(((t,e)=>n[(r+e)%n.length]))):o.slice(i+1)}setTimeout((()=>Rs(o)))}var n,r}))})))})),Ts={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rs(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const As=ks,Os=Ps;const Ds=e=>{const{present:r,children:o}=e,i=function(e){const[r,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),s=t.useRef("none"),l=e?"mounted":"unmounted",[u,c]=function(e,n){return t.useReducer(((t,e)=>{const r=n[t][e];return null!=r?r:t}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const t=Fs(i.current);s.current="mounted"===u?t:"none"}),[u]),ls((()=>{const t=i.current,n=a.current;if(n!==e){const r=s.current,o=Fs(t);if(e)c("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),ls((()=>{if(r){const t=t=>{const e=Fs(i.current).includes(t.animationName);t.target===r&&e&&n.flushSync((()=>c("ANIMATION_END")))},e=t=>{t.target===r&&(s.current=Fs(i.current))};return r.addEventListener("animationstart",e),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{r.removeEventListener("animationstart",e),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback((t=>{t&&(i.current=getComputedStyle(t)),o(t)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),s=Ja(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:s}):null};function Fs(t){return(null==t?void 0:t.animationName)||"none"}Ds.displayName="Presence";const js="Radio",[Ms,Vs]=ts(js),[Ls,Ns]=Ms(js),Is=t.forwardRef(((e,n)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,p]=t.useState(null),f=Ja(n,(t=>p(t))),h=t.useRef(!1),m=!d||Boolean(d.closest("form"));return t.createElement(Ls,{scope:r,checked:i,disabled:s},t.createElement(ss.button,Ka({type:"button",role:"radio","aria-checked":i,"data-state":Us(i),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onClick:Xa(e.onClick,(t=>{i||null==u||u(),m&&(h.current=t.isPropagationStopped(),h.current||t.stopPropagation())}))})),m&&t.createElement(zs,{control:d,bubbles:!h.current,name:o,value:l,checked:i,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),Bs=t.forwardRef(((e,n)=>{const{__scopeRadio:r,forceMount:o,...i}=e,a=Ns("RadioIndicator",r);return t.createElement(Ds,{present:o||a.checked},t.createElement(ss.span,Ka({"data-state":Us(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:n})))})),zs=e=>{const{control:n,checked:r,bubbles:o=!0,...i}=e,a=t.useRef(null),s=function(e){const n=t.useRef({value:e,previous:e});return t.useMemo((()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous)),[e])}(r),l=function(e){const[n,r]=t.useState(void 0);return ls((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const t=n.borderBoxSize,e=Array.isArray(t)?t[0]:t;o=e.inlineSize,i=e.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}(n);return t.useEffect((()=>{const t=a.current,e=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(e,"checked").set;if(s!==r&&n){const e=new Event("click",{bubbles:o});n.call(t,r),t.dispatchEvent(e)}}),[s,r,o]),t.createElement("input",Ka({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Us(t){return t?"checked":"unchecked"}const $s=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ws="RadioGroup",[Zs,Gs]=ts(Ws,[ws,Vs]),Hs=ws(),Ys=Vs(),[qs,Ks]=Zs(Ws),Xs=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:i,value:a,required:s=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:p,...f}=e,h=Hs(r),m=hs(c),[g,v]=ps({prop:a,defaultProp:i,onChange:p});return t.createElement(qs,{scope:r,name:o,required:s,disabled:l,value:g,onValueChange:v},t.createElement(As,Ka({asChild:!0},h,{orientation:u,dir:m,loop:d}),t.createElement(ss.div,Ka({role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":l?"":void 0,dir:m},f,{ref:n}))))})),Qs=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,disabled:o,...i}=e,a=Ks("RadioGroupItem",r),s=a.disabled||o,l=Hs(r),u=Ys(r),c=t.useRef(null),d=Ja(n,c),p=a.value===i.value,f=t.useRef(!1);return t.useEffect((()=>{const t=t=>{$s.includes(t.key)&&(f.current=!0)},e=()=>f.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),t.createElement(Os,Ka({asChild:!0},l,{focusable:!s,active:p}),t.createElement(Is,Ka({disabled:s,required:a.required,checked:p},u,i,{name:a.name,ref:d,onCheck:()=>a.onValueChange(i.value),onKeyDown:Xa((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:Xa(i.onFocus,(()=>{var t;f.current&&(null===(t=c.current)||void 0===t||t.click())}))})))})),Js=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,...o}=e,i=Ys(r);return t.createElement(Bs,Ka({},i,o,{ref:n}))}));var tl="radioGroup-module_legend__WklzX",el="radioGroup-module_radio-root__RtJ2M",nl="radioGroup-module_radio-root--error__9DrYG",rl="radioGroup-module_radio-root-label--error__KdFST",ol="radioGroup-module_radio-item__BKOlM",il="radioGroup-module_radio-indicator__-hEEu";u('\n\n.radioGroup-module_legend__WklzX {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__RtJ2M {\n display: flex;\n gap: var(--product-spacing-2);\n}\n\n.radioGroup-module_radio-root--horizontal__S9DcQ {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__dBLhN {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__9DrYG {\n border: var( --product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__KdFST {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__BKOlM {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n\n\n\n/* ! The Circle */\n.radioGroup-module_radio-item__BKOlM::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4));\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__-hEEu::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__BKOlM:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__BKOlM:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__BKOlM {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-2);\n }\n\n\n .radioGroup-module_radio-item__BKOlM::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__-hEEu::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n');var al={Root:function(n){var r=n.children,o=n.className,s=n.name,u=n.label,c=a(n,["children","className","name","label"]),d=e.useFormContext(),f=d.control,h=d.formState.errors,m=h&&h[s];return t.createElement(e.Controller,{name:s,control:f,render:function(e){var n=e.field,s=n.onChange,d=a(n,["onChange"]);return t.createElement("fieldset",null,t.createElement(p,{className:tl,as:"legend",variant:"form-input-normal"},u),t.createElement(Xs,i({className:l(o,el,m&&nl),onValueChange:s},c,d,{"aria-required":void 0}),r),m&&t.createElement("p",{className:rl},null==m?void 0:m.message))}})},Item:function(e){var n=e.children,r=e.className,o=a(e,["children","className"]);return t.createElement(Qs,i({className:l(r,ol)},o),t.createElement(p,{variant:"form-input-normal"},n))},Indicator:function(e){var n=e.className,r=a(e,["className"]);return t.createElement(Js,i({className:l(n,il)},r))}},sl="range-module_container__SwhGo",ll="range-module_range-container__iGnY1",ul="range-module_slider__pZtfP",cl="range-module_notches__Zc4Og",dl="range-module_notch__qXs7B",pl="range-module_progress__fElkU",fl="range-module_value-container__8Zt0r";u(".range-module_container__SwhGo {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var( --product-radius-2);\n}\n\n.range-module_container__SwhGo > div {\n width: 70%;\n}\n\n.range-module_container__SwhGo > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__iGnY1 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__pZtfP {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n accent-color: var(--product-light-blue-80);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__pZtfP::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n\n\n.range-module_slider__pZtfP::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__Zc4Og {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__fElkU {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__8Zt0r {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n");var hl=function(e){var n=e.id,r=e.min,o=void 0===r?0:r,a=e.max,s=void 0===a?1e3:a,l=e.step,u=void 0===l?100:l,c=e.name,d=e.label,f=e.helper,h=e.error,m=e.field,g=m.value,v=(g-o)/(s-o)*100,y=function(t,e,n){return(e-t)/n};return t.createElement(x,{id:n,label:d,error:null==h?void 0:h.message,helper:null==f?void 0:f.message},t.createElement("div",{className:sl},t.createElement("div",{className:ll},t.createElement("div",{className:cl},Array.from({length:y(o,s,u)}).map((function(e,n){return t.createElement("div",{key:n,className:dl,style:{left:"".concat(n/y(o,s,u)*100,"%")}})}))),t.createElement("div",{className:pl,style:{width:"calc(".concat(v||0,"%)")}}),t.createElement("input",i({id:"".concat(c,"-range"),className:ul,type:"range",min:o,max:s,step:u},m))),t.createElement(p,{className:fl,variant:"content-title-semi-bold"},"£",g)))},ml="select-module_container__Lydyj",gl="select-module_input__Hcrhq",vl="select-module_icon__SCm5W",yl="select-module_input--error__4pQ0M",_l="select-module_input--disabled__zteOi",bl="select-module_error-message__89d1g",xl="select-module_helper-message__VwS-B";u("\n\n.select-module_container__Lydyj {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__Hcrhq {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding: var(--product-spacing-6);\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__Hcrhq:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__SCm5W {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__Hcrhq:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__Hcrhq:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__4pQ0M {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__zteOi {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_error-message__89d1g {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__VwS-B {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .select-module_input__Hcrhq {\n padding: var(--product-spacing-6);\n }\n}\n");var wl=function(e){var n=e.error,r=e.helper,o=e.label,a=e.items,s=e.placeholder,u=e.disabled,c=e.field;return t.createElement("div",{className:ml},t.createElement("label",{className:"sr-only"},o),t.createElement("svg",{className:vl,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),t.createElement("select",i({className:l(gl,(null==n?void 0:n.message)&&yl,u&&_l)},c),s&&t.createElement("option",{value:"placeholder",disabled:!0},s),a&&a.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.title)}))),(null==r?void 0:r.message)&&t.createElement(p,{className:xl,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&t.createElement(p,{className:bl,as:"p",variant:"form-helper"},n.message))};function El(){var e=t.useState({width:600,height:void 0}),n=e[0],r=e[1];return t.useEffect((function(){function t(){r({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),n}var Sl={container:"textField-module_container__dwME5",label:"textField-module_label__Pb0Yj",input:"textField-module_input__R8QTX","input--prefix":"textField-module_input--prefix__Fhag6",prefix:"textField-module_prefix__qF3td",inputDescription:"textField-module_inputDescription__nc-XC","container--error":"textField-module_container--error__CJ8JR",error:"textField-module_error__OWiII",helper:"textField-module_helper__arACk",rightContent:"textField-module_rightContent__6xW-l",leftContent:"textField-module_leftContent__XrivE","input--focus":"textField-module_input--focus__ngCQF","input--hover":"textField-module_input--hover__wo5JR"};u(".textField-module_container__dwME5 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__Pb0Yj {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n}\n\n.textField-module_input__R8QTX {\n all: unset;\n background: var(--product-greyscale-0);\n border: var(--product-border-width-1) solid transparent;\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n padding-left: 2rem;\n}\n\n.textField-module_prefix__qF3td {\n position: absolute;\n left: var(--product-spacing-5);\n top: 63%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__nc-XC {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-bottom: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__CJ8JR > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__CJ8JR > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__OWiII {\n color: var(--product-error);\n}\n\n.textField-module_helper__arACk {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__6xW-l {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__XrivE {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n\n.textField-module_input__R8QTX:focus {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input__R8QTX:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__wo5JR {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__R8QTX:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__R8QTX:disabled:hover {\n outline: none;\n}\n\n\n\n @media (min-width: 768px) {\n .textField-module_input__R8QTX {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n font-size: 1.25rem;\n }\n\n .textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__qF3td {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 53%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");var kl,Cl=function(e){var n=e.id,r=e.label,o=e.helper,s=e.error,u=e.type,c=e.prefix,d=e.suffix,p=e.disabled,f=e.className,h=e.rightContent,m=e.leftContent,g=e.field,v=g.value,y=g.onBlur,_=a(g,["value","onBlur"]),b=El().width,x=t.useState(!1),w=x[0],E=x[1],S=""!==v||w,k=b>768,C=o||s,P={focused:{fontSize:k?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:k?"1.25rem":"1.125rem",top:"50%"}};return t.createElement("div",null,t.createElement("div",{className:l(Sl.container,s&&Sl["container--error"])},t.createElement(Ba.label,{className:Sl.label,initial:"notFocused",variants:P,htmlFor:"input-".concat(n),animate:w||""!==v?"focused":"notFocused"},r," ",d&&t.createElement("span",null,d)),t.createElement("input",i({id:"input-".concat(n),className:l(f,Sl["input--".concat(f)],Sl.input,c&&Sl["input--prefix"]),type:u,"aria-describedby":"error-".concat(n),disabled:p,onFocus:function(){return E(!0)},onBlur:function(){y(),E(!1)},value:v},_)),c&&S&&t.createElement("span",{className:Sl.prefix},c),t.createElement("div",null,h&&t.createElement("div",{className:Sl.rightContent},h),m&&t.createElement("div",{className:Sl.leftContent},m))),C&&t.createElement("div",{className:Sl.inputDescription},o&&t.createElement("span",{id:"feedback-".concat(n),className:Sl.helper},o.message),s&&t.createElement("span",{id:"error-".concat(n),className:Sl.error},s.message)))},Pl={exports:{}},Tl={},Rl={exports:{}},Al={};var Ol,Dl,Fl,jl={exports:{}};
1
+ "use strict";var t=require("react"),e=require("react-hook-form"),n=require("react-dom");function r(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var o=r(t),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=s(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function l(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=s(t))&&(r&&(r+=" "),r+=e);return r}function u(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;var c={button:"button-module_button__dZH55",action:"button-module_action__RTWZU",focus:"button-module_focus__RNsoR",primary:"button-module_primary__CZzyo",hover:"button-module_hover__Zz9hl",active:"button-module_active__rYKZm",secondary:"button-module_secondary__tM5K3",tertiary:"button-module_tertiary__0bKi6",ghost:"button-module_ghost__xQWCE",danger:"button-module_danger__pxWDX",standard:"button-module_standard__GaQlx","only-icon":"button-module_only-icon__8lEn4"};u(".button-module_button__dZH55 {\n all: unset;\n display: flex;\n padding: var(--product-spacing-3) var(--product-spacing-7);\n border-radius: var(--product-radius-full);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_button__dZH55 > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_action__RTWZU {\n all: unset;\n display: flex;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-2_5) var(--product-spacing-6);\n width: -moz-fit-content;\n width: fit-content;\n cursor: pointer;\n}\n\n.button-module_action__RTWZU > * {\n display: flex;\n align-items: center;\n gap: var(--product-spacing-1);\n}\n\n.button-module_button__dZH55:focus, .button-module_button__dZH55.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n.button-module_action__RTWZU:focus, .button-module_action__RTWZU.button-module_focus__RNsoR {\n outline: var(--product-border-width-1) solid var(--product-focus);\n}\n\n/* ! Button */\n\n/* Primary */\n\n.button-module_primary__CZzyo {\n color: var(--product-greyscale-0);\n background: var(--product-love-pink-100)\n}\n\n.button-module_primary__CZzyo:hover, .button-module_primary__CZzyo.button-module_hover__Zz9hl {\n background: var(--product-love-pink-80)\n}\n\n.button-module_primary__CZzyo:active, .button-module_primary__CZzyo.button-module_active__rYKZm {\n background: var(--product-love-pink-120)\n}\n\n/* Secondary */\n\n.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-0);\n background: var(--product-greyscale-100);\n}\n\n.button-module_secondary__tM5K3:hover, .button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_secondary__tM5K3:active, .button-module_secondary__tM5K3.button-module_active__rYKZm {\n background: var(--product-greyscale-60);\n}\n\n/* Tertiary */\n\n.button-module_tertiary__0bKi6 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_tertiary__0bKi6:hover, .button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-light-blue-20);\n}\n\n.button-module_tertiary__0bKi6:active, .button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-light-blue-40);\n}\n\n/* Ghost */\n\n.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_ghost__xQWCE:hover, .button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_ghost__xQWCE:active, .button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n/* Danger */\n\n.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var( --product-error);\n}\n\n.button-module_danger__pxWDX:hover, .button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_danger__pxWDX:active, .button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n/*! Action Button */\n\n/* Standard */\n\n.button-module_action__RTWZU.button-module_standard__GaQlx {\n color: var(--product-greyscale-0);\n background: var(--product-light-blue-100);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:hover, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_hover__Zz9hl {\n background: var(--product-light-blue-80);\n}\n\n.button-module_action__RTWZU.button-module_standard__GaQlx:active, .button-module_action__RTWZU.button-module_standard__GaQlx.button-module_active__rYKZm {\n background: var(--product-light-blue-120);\n}\n\n/* Secondary */\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3 {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-00);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:hover, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_hover__Zz9hl {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.button-module_action__RTWZU.button-module_secondary__tM5K3:active, .button-module_action__RTWZU.button-module_secondary__tM5K3.button-module_active__rYKZm {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n/* Tertiary */\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6 {\n background: var(--product-greyscale-100);\n color: var(--product-greyscale-0)\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:hover, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_hover__Zz9hl {\n background: var(--product-greyscale-80);\n}\n\n.button-module_action__RTWZU.button-module_tertiary__0bKi6:active, .button-module_action__RTWZU.button-module_tertiary__0bKi6.button-module_active__rYKZm {\n background: var(--product-greyscale-100);\n}\n\n/* Ghost */\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE {\n color: #004B87;\n background: var(--product-greyscale-0);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:hover, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_hover__Zz9hl {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:active, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_active__rYKZm {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-40);\n}\n\n.button-module_action__RTWZU.button-module_ghost__xQWCE:focus, .button-module_action__RTWZU.button-module_ghost__xQWCE.button-module_focus__RNsoR {\n color: var(--product-greyscale-100);\n background: var(--product-greyscale-20);\n}\n\n/* Danger */\n\n.button-module_action__RTWZU.button-module_danger__pxWDX {\n color: var(--product-greyscale-0);\n background: var(--product-error);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:hover, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_hover__Zz9hl {\n background: var(--product-danger-80);\n}\n\n.button-module_action__RTWZU.button-module_danger__pxWDX:active, .button-module_action__RTWZU.button-module_danger__pxWDX.button-module_active__rYKZm {\n background: var(--product-danger-120);\n}\n\n\n\n\n.button-module_button__dZH55:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n}\n\n.button-module_action__RTWZU:disabled:hover, .button-module_action__RTWZU:disabled.button-module_hover__Zz9hl {\n background: var(--product-disabled);\n color: var(--product-disabled-text);\n cursor: not-allowed;\n border: none;\n}\n\n.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-3);\n border-radius: var(--product-radius-full);\n}\n\n.button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: var(--product-spacing-2_5);\n border-radius: var(--product-radius-2);\n}\n\n\n\n @media (min-width: 768px) {\n .button-module_button__dZH55 {\n padding: var(--product-spacing-4) var(--product-spacing-7);\n }\n\n .button-module_action__RTWZU {\n border-radius: var(--product-radius-5);\n }\n\n .button-module_only-icon__8lEn4 {\n padding: 16px;\n }\n\n .button-module_action__RTWZU.button-module_only-icon__8lEn4 {\n padding: 10px;\n }\n}\n\n\n");var d={"form-label":"typography-module_form-label__7pjg0","form-helper":"typography-module_form-helper__iE-K1","form-button":"typography-module_form-button__oWjm-","form-input-normal":"typography-module_form-input-normal__t1XCT","form-input-semi-bold":"typography-module_form-input-semi-bold__HLeM-","content-regular-light":"typography-module_content-regular-light__qEDRp","content-regular":"typography-module_content-regular__I4VOF","content-regular-semi-bold":"typography-module_content-regular-semi-bold__COKU6","content-large-light":"typography-module_content-large-light__bc5mT","content-large":"typography-module_content-large__UcRKy","content-large-semi-bold":"typography-module_content-large-semi-bold__rW0r8","content-title-light":"typography-module_content-title-light__32AIU","content-title":"typography-module_content-title__adS2q","content-title-semi-bold":"typography-module_content-title-semi-bold__B-QDN"};u(".typography-module_form-label__7pjg0{\n font-weight: var(--product-font-weight-semi-bold);\n font-size: var(--product-font-form-label-desktop-size);\n letter-spacing: var(--product-font-form-label-letter-spacing);\n line-height: var(--product-font-form-label-line-height);\n}\n\n.typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n letter-spacing: var(--product-font-form-helper-letter-spacing);\n line-height: var(--product-font-form-helper-line-height);\n}\n\n.typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n letter-spacing: var(--product-font-form-input-button-letter-spacing);\n line-height: var(--product-font-form-input-button-line-height);\n font-weight: var(--product-font-weight-medium);\n}\n\n.typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n}\n\n.typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n letter-spacing: var(--product-font-content-regular-light-letter-spacing);\n line-height: var(--product-font-content-regular-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n letter-spacing: var(--product-font-content-regular-normal-letter-spacing);\n line-height: var(--product-font-content-regular-normal-line-height);\n}\n\n.typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-regular-semi-bold-letter-spacing);\n line-height: var(--product-font-content-regular-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n.typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n letter-spacing: var(--product-font-content-large-light-letter-spacing);\n line-height: var(--product-font-content-large-light-line-height);\n font-weight: var(--product-font-weight-light);\n}\n\n.typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n letter-spacing: var(--product-font-content-large-normal-letter-spacing);\n line-height: var(--product-font-content-large-normal-line-height);\n}\n\n.typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n}\n\n @media (min-width: 768px) {\n .typography-module_form-label__7pjg0{\n font-size: var(--product-font-form-label-desktop-size);\n }\n\n .typography-module_form-helper__iE-K1{\n font-size: var(--product-font-form-helper-desktop-size);\n }\n\n .typography-module_form-button__oWjm-{\n font-size: var(--product-font-form-input-button-desktop-size);\n }\n\n .typography-module_form-input-normal__t1XCT{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_form-input-semi-bold__HLeM-{\n font-size: var(--product-font-form-input-desktop-size);\n }\n\n .typography-module_content-regular-light__qEDRp{\n font-size: var(--product-font-content-regular-light-desktop-size);\n }\n\n .typography-module_content-regular__I4VOF{\n font-size: var(--product-font-content-regular-normal-desktop-size);\n }\n\n .typography-module_content-regular-semi-bold__COKU6{\n font-size: var(--product-font-content-regular-semi-bold-desktop-size);\n }\n\n .typography-module_content-large-light__bc5mT{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-large__UcRKy{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-large-semi-bold__rW0r8{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n\n .typography-module_content-title-light__32AIU{\n font-size: var(--product-font-content-large-light-desktop-size);\n }\n\n .typography-module_content-title__adS2q{\n font-size: var(--product-font-content-large-normal-desktop-size);\n }\n\n .typography-module_content-title-semi-bold__B-QDN{\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var p=function(e){var n=e.as,r=e.variant,o=void 0===r?"content-regular":r,s=e.children,u=e.className,c=a(e,["as","variant","children","className"]),p=n||"p";return t.createElement(p,i({className:l(d[o],u)},c),s)};var f="columns-module_container__ycx3n";u(".columns-module_container__ycx3n {\n display: grid;\n gap: 1rem;\n}\n");var h="datepicker-module_container__H0Ck-",m="datepicker-module_input__tm5uo",g="datepicker-module_input--error__D6wsy";u(".datepicker-module_container__H0Ck- {\n display: flex;\n flex-direction: column;\n}\n\n.datepicker-module_input__tm5uo {\n all: unset;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.datepicker-module_input--error__D6wsy {\n border: 2px solid var(--product-error);\n}\n\n\n\n.datepicker-module_error__vTdEl {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__wCkZn {\n margin-bottom: var(--product-spacing-3);\n}\n\n @media (min-width: 768px) {\n .datepicker-module_input__tm5uo {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var v="formField-module_container__kHrDY",y="formField-module_label__n-BxC",_="formField-module_helper__tDddc",b="formField-module_error__lDnrF";u(".formField-module_container__kHrDY {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__n-BxC {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__tDddc {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__lDnrF {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n @media (min-width: 768px) {\n .formField-module_helper__tDddc, .formField-module_error__lDnrF {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n\n}\n");var x=function(e){var n=e.id,r=e.error,o=e.helper,i=e.label,a=e.children;return t.createElement("div",{className:v},t.createElement(p,{as:"label",variant:"form-input-normal",className:y,htmlFor:n},i),a,o&&t.createElement(p,{variant:"form-helper",className:_},o),r&&t.createElement(p,{variant:"form-helper",className:b},r))},w=function(e){var n=e.field,r=e.error,o=e.helper,s=a(e,["field","error","helper"]);return t.createElement(x,{id:s.id,label:s.label,error:null==r?void 0:r.message,helper:null==o?void 0:o.message},t.createElement("div",{className:h},t.createElement("input",i({className:l(m,r&&g),type:"date",id:s.id},n))))};const E=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),S=t.createContext({}),k=t.createContext(null),C="undefined"!=typeof document,P=C?t.useLayoutEffect:t.useEffect,T=t.createContext({strict:!1}),R=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),A="data-"+R("framerAppearId"),O=!1,D=!1;class F{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const j=["prepare","read","update","preRender","render","postRender"];function M(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=j.reduce(((t,e)=>(t[e]=function(t){let e=new F,n=new F,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:l=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];a.has(r)&&(s.schedule(r),t()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>n=!0)),t)),{}),a=t=>{i[t].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,j.forEach(a),o.isProcessing=!1,n&&e&&(r=!1,t(s))};return{schedule:j.reduce(((e,a)=>{const l=i[a];return e[a]=(e,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||t(s)),l.schedule(e,i,a)),e}),{}),cancel:t=>j.forEach((e=>i[e].cancel(t))),state:o,steps:i}}const{schedule:V,cancel:L}=M(queueMicrotask,!1);function N(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function I(t){return"string"==typeof t||Array.isArray(t)}function B(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const z=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],U=["initial",...z];function $(t){return B(t.animate)||U.some((e=>I(t[e])))}function W(t){return Boolean($(t)||t.variants)}function Z(e){const{initial:n,animate:r}=function(t,e){if($(t)){const{initial:e,animate:n}=t;return{initial:!1===e||I(e)?e:void 0,animate:I(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(S));return t.useMemo((()=>({initial:n,animate:r})),[G(n),G(r)])}function G(t){return Array.isArray(t)?t.join(" "):t}const H={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Y={};for(const t in H)Y[t]={isEnabled:e=>H[t].some((t=>!!e[t]))};const q=t.createContext({}),K=t.createContext({}),X=Symbol.for("motionComponentSymbol");function Q({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:a}){e&&function(t){for(const e in t)Y[e]={...Y[e],...t[e]}}(e);const s=t.forwardRef((function(s,l){let u;const c={...t.useContext(E),...s,layoutId:J(s)},{isStatic:d}=c,p=Z(s),f=i(s,d);if(!d&&C){p.visualElement=function(e,n,r,o){const{visualElement:i}=t.useContext(S),a=t.useContext(T),s=t.useContext(k),l=t.useContext(E).reducedMotion,u=t.useRef();o=o||a.renderer,!u.current&&o&&(u.current=o(e,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;t.useInsertionEffect((()=>{c&&c.update(r,s)}));const d=t.useRef(Boolean(r[A]&&!window.HandoffComplete));return P((()=>{c&&(V.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())})),t.useEffect((()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))})),c}(a,f,c,n);const r=t.useContext(K),o=t.useContext(T).strict;p.visualElement&&(u=p.visualElement.loadFeatures(c,o,e,r))}return o.createElement(S.Provider,{value:p},u&&p.visualElement?o.createElement(u,{visualElement:p.visualElement,...c}):null,r(a,s,function(e,n,r){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):N(r)&&(r.current=t))}),[n])}(f,p.visualElement,l),f,d,p.visualElement))}));return s[X]=a,s}function J({layoutId:e}){const n=t.useContext(q).id;return n&&void 0!==e?n+"-"+e:e}function tt(t){function e(e,n={}){return Q(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const et=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nt(t){return"string"==typeof t&&!t.includes("-")&&!!(et.indexOf(t)>-1||/[A-Z]/.test(t))}const rt={};const ot=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(ot);function at(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!rt[t]||"opacity"===t)}const st=t=>Boolean(t&&t.getVelocity),lt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ut=ot.length;const ct=t=>e=>"string"==typeof e&&e.startsWith(t),dt=ct("--"),pt=ct("var(--"),ft=t=>!!pt(t)&&ht.test(t.split("/*")[0].trim()),ht=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,mt=(t,e)=>e&&"number"==typeof t?e.transform(t):t,gt=(t,e,n)=>n>e?e:n<t?t:n,vt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},yt={...vt,transform:t=>gt(0,1,t)},_t={...vt,default:1},bt=t=>Math.round(1e5*t)/1e5,xt=/(-)?([\d]*\.?[\d])+/g,wt=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Et=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function St(t){return"string"==typeof t}const kt=t=>({test:e=>St(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Ct=kt("deg"),Pt=kt("%"),Tt=kt("px"),Rt=kt("vh"),At=kt("vw"),Ot={...Pt,parse:t=>Pt.parse(t)/100,transform:t=>Pt.transform(100*t)},Dt={...vt,transform:Math.round},Ft={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,size:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,rotate:Ct,rotateX:Ct,rotateY:Ct,rotateZ:Ct,scale:_t,scaleX:_t,scaleY:_t,scaleZ:_t,skew:Ct,skewX:Ct,skewY:Ct,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:yt,originX:Ot,originY:Ot,originZ:Tt,zIndex:Dt,fillOpacity:yt,strokeOpacity:yt,numOctaves:Dt};function jt(t,e,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=t;let l=!1,u=!1,c=!0;for(const t in e){const n=e[t];if(dt(t)){i[t]=n;continue}const r=Ft[t],d=mt(n,r);if(it.has(t)){if(l=!0,a[t]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,s[t]=d):o[t]=d}if(e.transform||(l||r?o.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,o){let i="";for(let e=0;e<ut;e++){const n=ot[e];void 0!==t[n]&&(i+=`${lt[n]||n}(${t[n]}) `)}return e&&!t.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(t,r?"":i):n&&r&&(i="none"),i}(t.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=s;o.transformOrigin=`${t} ${e} ${n}`}}const Mt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vt(t,e,n){for(const r in e)st(e[r])||at(r,n)||(t[r]=e[r])}function Lt(e,n,r){const o={};return Vt(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return t.useMemo((()=>{const t=Mt();return jt(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),o}function Nt(t,e,n){const r={},o=Lt(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const It=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bt(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||It.has(t)}let zt=t=>!Bt(t);try{(Ut=require("@emotion/is-prop-valid").default)&&(zt=t=>t.startsWith("on")?!Bt(t):Ut(t))}catch(t){}var Ut;function $t(t,e,n){return"string"==typeof t?t:Tt.transform(e+n*t)}const Wt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zt={offset:"strokeDashoffset",array:"strokeDasharray"};function Gt(t,{attrX:e,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,p){if(jt(t,u,c,p),d)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:f,style:h,dimensions:m}=t;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(t,e,n){return`${$t(e,t.x,t.width)} ${$t(n,t.y,t.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const i=o?Wt:Zt;t[i.offset]=Tt.transform(-r);const a=Tt.transform(e),s=Tt.transform(n);t[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const Ht=()=>({...Mt(),attrs:{}}),Yt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function qt(e,n,r,o){const i=t.useMemo((()=>{const t=Ht();return Gt(t,n,{enableHardwareAcceleration:!1},Yt(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Vt(t,e.style,e),i.style={...t,...i.style}}return i}function Kt(e=!1){return(n,r,o,{latestValues:i},a)=>{const s=(nt(n)?qt:Nt)(r,i,a,n),l=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(zt(o)||!0===n&&Bt(o)||!e&&!Bt(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),u=n!==t.Fragment?{...l,...s,ref:o}:{},{children:c}=r,d=t.useMemo((()=>st(c)?c.get():c),[c]);return t.createElement(n,{...u,children:d})}}function Xt(t,{style:e,vars:n},r,o){Object.assign(t.style,e,o&&o.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const Qt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jt(t,e,n,r){Xt(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(Qt.has(n)?n:R(n),e.attrs[n])}function te(t,e){const{style:n}=t,r={};for(const o in n)(st(n[o])||e.style&&st(e.style[o])||at(o,t))&&(r[o]=n[o]);return r}function ee(t,e){const n=te(t,e);for(const r in t)if(st(t[r])||st(e[r])){n[-1!==ot.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function ne(t,e,n,r={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,o)),e}const re=t=>Array.isArray(t),oe=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),ie=t=>re(t)?t[t.length-1]||0:t;function ae(t){const e=st(t)?t.get():t;return oe(e)?e.toValue():e}const se=e=>(n,r)=>{const o=t.useContext(S),i=t.useContext(k),a=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,i){const a={latestValues:le(r,o,i,t),renderState:e()};return n&&(a.mount=t=>n(r,t,a)),a}(e,n,o,i);return r?a():function(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}(a)};function le(t,e,n,r){const o={},i=r(t,{});for(const t in i)o[t]=ae(i[t]);let{initial:a,animate:s}=t;const l=$(t),u=W(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===s&&(s=e.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!B(d)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=ne(t,e);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const t in a){let e=a[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const ue=t=>t,{schedule:ce,cancel:de,state:pe,steps:fe}=M("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ue,!0),he={useVisualState:se({scrapeMotionValuesFromProps:ee,createRenderState:Ht,onMount:(t,e,{renderState:n,latestValues:r})=>{ce.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),ce.render((()=>{Gt(n,r,{enableHardwareAcceleration:!1},Yt(e.tagName),t.transformTemplate),Jt(e,n)}))}})},me={useVisualState:se({scrapeMotionValuesFromProps:te,createRenderState:Mt})};function ge(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const ve=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ye(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const _e=t=>e=>ve(e)&&t(e,ye(e));function be(t,e,n,r){return ge(t,e,_e(n),r)}const xe=(t,e)=>n=>e(t(n)),we=(...t)=>t.reduce(xe);function Ee(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const Se=Ee("dragHorizontal"),ke=Ee("dragVertical");function Ce(t){let e=!1;if("y"===t)e=ke();else if("x"===t)e=Se();else{const t=Se(),n=ke();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Pe(){const t=Ce(!0);return!t||(t(),!1)}class Te{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Re(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return be(t.current,n,((n,o)=>{if("touch"===n.pointerType||Pe())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[r]&&ce.update((()=>i[r](n,o)))}),{passive:!t.getProps()[r]})}const Ae=(t,e)=>!!e&&(t===e||Ae(t,e.parentElement));function Oe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ye(n))}const De=new WeakMap,Fe=new WeakMap,je=t=>{const e=De.get(t.target);e&&e(t)},Me=t=>{t.forEach(je)};function Ve(t,e,n){const r=function({root:t,...e}){const n=t||document;Fe.has(n)||Fe.set(n,{});const r=Fe.get(n),o=JSON.stringify(e);return r[o]||(r[o]=new IntersectionObserver(Me,{root:t,...e})),r[o]}(e);return De.set(t,n),r.observe(t),()=>{De.delete(t),r.unobserve(t)}}const Le={some:0,all:1};const Ne={inView:{Feature:class extends Te{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Le[r]};return Ve(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Te{constructor(){super(...arguments),this.removeStartListeners=ue,this.removeEndListeners=ue,this.removeAccessibleListeners=ue,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=be(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();ce.update((()=>{o||Ae(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=be(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=we(r,o),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=ge(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=ge(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Oe("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&ce.update((()=>n(t,e)))}))})),Oe("down",((t,e)=>{this.startPress(t,e)}))})),e=ge(this.node.current,"blur",(()=>{this.isPressing&&Oe("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=we(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ce.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pe()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ce.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=be(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=ge(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=we(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Te{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=we(ge(this.node.current,"focus",(()=>this.onFocus())),ge(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Te{mount(){this.unmount=we(Re(this.node,!0),Re(this.node,!1))}unmount(){}}}};function Ie(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Be(t,e,n){const r=t.getProps();return ne(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}let ze=ue,Ue=ue;"production"!==process.env.NODE_ENV&&(ze=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},Ue=(t,e)=>{if(!t)throw new Error(e)});const $e=t=>1e3*t,We=t=>t/1e3,Ze=!1,Ge=t=>Array.isArray(t)&&"number"==typeof t[0];function He(t){return Boolean(!t||"string"==typeof t&&qe[t]||Ge(t)||Array.isArray(t)&&t.every(He))}const Ye=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,qe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ye([0,.65,.55,1]),circOut:Ye([.55,0,1,.45]),backIn:Ye([.31,.01,.66,-.59]),backOut:Ye([.33,1.53,.69,.99])};function Ke(t){if(t)return Ge(t)?Ye(t):Array.isArray(t)?t.map(Ke):qe[t]}const Xe=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Qe=1e-7,Je=12;function tn(t,e,n,r){if(t===e&&n===r)return ue;const o=e=>function(t,e,n,r,o){let i,a,s=0;do{a=e+(n-e)/2,i=Xe(a,r,o)-t,i>0?n=a:e=a}while(Math.abs(i)>Qe&&++s<Je);return a}(e,0,1,t,n);return t=>0===t||1===t?t:Xe(o(t),e,r)}const en=tn(.42,0,1,1),nn=tn(0,0,.58,1),rn=tn(.42,0,.58,1),on=t=>Array.isArray(t)&&"number"!=typeof t[0],an=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,sn=t=>e=>1-t(1-e),ln=t=>1-Math.sin(Math.acos(t)),un=sn(ln),cn=an(ln),dn=tn(.33,1.53,.69,.99),pn=sn(dn),fn=an(pn),hn={linear:ue,easeIn:en,easeInOut:rn,easeOut:nn,circIn:ln,circInOut:cn,circOut:un,backIn:pn,backInOut:fn,backOut:dn,anticipate:t=>(t*=2)<1?.5*pn(t):.5*(2-Math.pow(2,-10*(t-1)))},mn=t=>{if(Array.isArray(t)){Ue(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return tn(e,n,r,o)}return"string"==typeof t?(Ue(void 0!==hn[t],`Invalid easing type '${t}'`),hn[t]):t},gn=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},vn=(t,e,n)=>t+(e-t)*n;function yn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const _n=(t,e)=>n=>Boolean(St(n)&&Et.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),bn=(t,e,n)=>r=>{if(!St(r))return r;const[o,i,a,s]=r.match(xt);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},xn={...vt,transform:t=>Math.round((t=>gt(0,255,t))(t))},wn={test:_n("rgb","red"),parse:bn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+xn.transform(t)+", "+xn.transform(e)+", "+xn.transform(n)+", "+bt(yt.transform(r))+")"};const En={test:_n("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:wn.transform},Sn={test:_n("hsl","hue"),parse:bn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Pt.transform(bt(e))+", "+Pt.transform(bt(n))+", "+bt(yt.transform(r))+")"},kn=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},Cn=[En,wn,Sn];function Pn(t){const e=(n=t,Cn.find((t=>t.test(n))));var n;Ue(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===Sn&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=yn(s,r,t+1/3),i=yn(s,r,t),a=yn(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Tn=(t,e)=>{const n=Pn(t),r=Pn(e),o={...n};return t=>(o.red=kn(n.red,r.red,t),o.green=kn(n.green,r.green,t),o.blue=kn(n.blue,r.blue,t),o.alpha=vn(n.alpha,r.alpha,t),wn.transform(o))},Rn={test:t=>wn.test(t)||En.test(t)||Sn.test(t),parse:t=>wn.test(t)?wn.parse(t):Sn.test(t)?Sn.parse(t):En.parse(t),transform:t=>St(t)?t:t.hasOwnProperty("red")?wn.transform(t):Sn.transform(t)};const An="number",On="color",Dn="var",Fn="var(",jn="${}",Mn=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function Vn(t){const e=t.toString(),n=e.match(Mn)||[],r=[],o={color:[],number:[],var:[]},i=[];for(let t=0;t<n.length;t++){const e=n[t];Rn.test(e)?(o.color.push(t),i.push(On),r.push(Rn.parse(e))):e.startsWith(Fn)?(o.var.push(t),i.push(Dn),r.push(e)):(o.number.push(t),i.push(An),r.push(parseFloat(e)))}return{values:r,split:e.replace(Mn,jn).split(jn),indexes:o,types:i}}function Ln(t){return Vn(t).values}function Nn(t){const{split:e,types:n}=Vn(t),r=e.length;return t=>{let o="";for(let i=0;i<r;i++)if(o+=e[i],void 0!==t[i]){const e=n[i];o+=e===An?bt(t[i]):e===On?Rn.transform(t[i]):t[i]}return o}}const In=t=>"number"==typeof t?0:t;const Bn={test:function(t){var e,n;return isNaN(t)&&St(t)&&((null===(e=t.match(xt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(wt))||void 0===n?void 0:n.length)||0)>0},parse:Ln,createTransformer:Nn,getAnimatableNone:function(t){const e=Ln(t);return Nn(t)(e.map(In))}};function zn(t,e){return n=>n>0?e:t}function Un(t,e){return n=>vn(t,e,n)}function $n(t){return"number"==typeof t?Un:"string"==typeof t?ft(t)?zn:Rn.test(t)?Tn:Gn:Array.isArray(t)?Wn:"object"==typeof t?Rn.test(t)?Tn:Zn:zn}function Wn(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>$n(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=o[e](t);return n}}function Zn(t,e){const n={...t,...e},r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=$n(t[o])(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const Gn=(t,e)=>{const n=Bn.createTransformer(e),r=Vn(t),o=Vn(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?we(Wn(function(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const a=e.types[i],s=t.indexes[a][o[a]],l=null!==(n=t.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(ze(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),zn(t,e))};function Hn(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return vn(t,e,n);return $n(t)(t,e)}function Yn(t,e,{clamp:n=!0,ease:r,mixer:o}={}){const i=t.length;if(Ue(i===e.length,"Both input and output ranges must be the same length"),1===i)return()=>e[0];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const r=[],o=n||Hn,i=t.length-1;for(let n=0;n<i;n++){let i=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||ue:e;i=we(t,i)}r.push(i)}return r}(e,r,o),s=a.length,l=e=>{let n=0;if(s>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=gn(t[n],t[n+1],e);return a[n](r)};return n?e=>l(gt(t[0],t[i-1],e)):l}function qn(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=gn(0,e,r);t.push(vn(n,1,o))}}(e,t.length-1),e}function Kn({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const o=on(r)?r.map(mn):mn(r),i={done:!1,value:e[0]},a=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:qn(e),t),s=Yn(a,e,{ease:Array.isArray(o)?o:(l=e,u=o,l.map((()=>u||rn)).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(i.value=s(e),i.done=e>=t,i)}}function Xn(t,e){return e?t*(1e3/e):0}const Qn=5;function Jn(t,e,n){const r=Math.max(e-Qn,0);return Xn(n-t(r),e-r)}const tr=.001,er=.01,nr=10,rr=.05,or=1;function ir({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let o,i;ze(t<=$e(nr),"Spring duration must be 10 seconds or less");let a=1-e;a=gt(rr,or,a),t=gt(er,nr,We(t)),a<1?(o=e=>{const r=e*a,o=r*t,i=r-n,s=sr(e,a),l=Math.exp(-o);return tr-i/s*l},i=e=>{const r=e*a*t,i=r*n+n,s=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=sr(Math.pow(e,2),a);return(-o(e)+tr>0?-1:1)*((i-s)*l)/u}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-tr,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const s=function(t,e,n){let r=n;for(let n=1;n<ar;n++)r-=t(r)/e(r);return r}(o,i,5/t);if(t=$e(t),isNaN(s))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(s,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}const ar=12;function sr(t,e){return t*Math.sqrt(1-e*e)}const lr=["duration","bounce"],ur=["stiffness","damping","mass"];function cr(t,e){return e.some((e=>void 0!==t[e]))}function dr({keyframes:t,restDelta:e,restSpeed:n,...r}){const o=t[0],i=t[t.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!cr(t,ur)&&cr(t,lr)){const n=ir(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-We(r.velocity||0)}),f=d||0,h=l/(2*Math.sqrt(s*u)),m=i-o,g=We(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),e||(e=v?.005:.5),h<1){const t=sr(g,h);y=e=>{const n=Math.exp(-h*g*e);return i-n*((f+h*g*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===h)y=t=>i-Math.exp(-g*t)*(m+(f+g*m)*t);else{const t=g*Math.sqrt(h*h-1);y=e=>{const n=Math.exp(-h*g*e),r=Math.min(t*e,300);return i-n*((f+h*g*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:p&&c||null,next:t=>{const r=y(t);if(p)a.done=t>=c;else{let o=f;0!==t&&(o=h<1?Jn(y,t,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=e;a.done=s&&l}return a.value=a.done?i:r,a}}}function pr({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],p={done:!1,value:d},f=t=>void 0===s?l:void 0===l||Math.abs(s-t)<Math.abs(l-t)?s:l;let h=n*e;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=t=>-h*Math.exp(-t/r),y=t=>g+v(t),_=t=>{const e=v(t),n=y(t);p.done=Math.abs(e)<=u,p.value=p.done?g:n};let b,x;const w=t=>{var e;(e=p.value,void 0!==s&&e<s||void 0!==l&&e>l)&&(b=t,x=dr({keyframes:[p.value,f(p.value)],velocity:Jn(y,t,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==b||(e=!0,_(t),w(t)),void 0!==b&&t>b?x.next(t-b):(!e&&_(t),p)}}}let fr;function hr(){fr=void 0}const mr={now:()=>(void 0===fr&&mr.set(pe.isProcessing||D?pe.timestamp:performance.now()),fr),set:t=>{fr=t,queueMicrotask(hr)}},gr=t=>{const e=({timestamp:e})=>t(e);return{start:()=>ce.update(e,!0),stop:()=>de(e),now:()=>pe.isProcessing?pe.timestamp:mr.now()}},vr=2e4;function yr(t){let e=0;let n=t.next(e);for(;!n.done&&e<vr;)e+=50,n=t.next(e);return e>=vr?1/0:e}const _r={decay:pr,inertia:pr,tween:Kn,keyframes:Kn,spring:dr},br=t=>t/100;function xr({autoplay:t=!0,delay:e=0,driver:n=gr,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...p}){let f,h,m=1,g=!1;const v=()=>{h=new Promise((t=>{f=t}))};let y;v();const _=_r[o]||Kn;let b;_!==Kn&&"number"!=typeof r[0]&&("production"!==process.env.NODE_ENV&&Ue(2===r.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),b=we(br,Hn(r[0],r[1])),r=[0,100]);const x=_({...p,keyframes:r});let w;"mirror"===s&&(w=_({...p,keyframes:[...r].reverse(),velocity:-(p.velocity||0)}));let E="idle",S=null,k=null,C=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=yr(x));const{calculatedDuration:P}=x;let T=1/0,R=1/0;null!==P&&(T=P+a,R=T*(i+1)-a);let A=0;const O=t=>{if(null===k)return;m>0&&(k=Math.min(k,t)),m<0&&(k=Math.min(t-R/m,k)),A=null!==S?S:Math.round(t-k)*m;const n=A-e*(m>=0?1:-1),o=m>=0?n<0:n>R;A=Math.max(n,0),"finished"===E&&null===S&&(A=R);let l=A,u=x;if(i){const t=Math.min(A,R)/T;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,i+1);Boolean(e%2)&&("reverse"===s?(n=1-n,a&&(n-=a/T)):"mirror"===s&&(u=w)),l=gt(0,1,n)*T}const c=o?{done:!1,value:r[0]}:u.next(l);b&&(c.value=b(c.value));let{done:p}=c;o||null===P||(p=m>=0?A>=R:A<=0);const f=null===S&&("finished"===E||"running"===E&&p);return d&&d(c.value),f&&j(),c},D=()=>{y&&y.stop(),y=void 0},F=()=>{E="idle",D(),f(),v(),k=C=null},j=()=>{E="finished",c&&c(),D(),f()},M=()=>{if(g)return;y||(y=n(O));const t=y.now();l&&l(),null!==S?k=t-S:k&&"finished"!==E||(k=t),"finished"===E&&v(),C=k,S=null,E="running",y.start()};t&&M();const V={then:(t,e)=>h.then(t,e),get time(){return We(A)},set time(t){t=$e(t),A=t,null===S&&y&&0!==m?k=y.now()-t/m:S=t},get duration(){const t=null===x.calculatedDuration?yr(x):x.calculatedDuration;return We(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,V.time=We(A))},get state(){return E},play:M,pause:()=>{E="paused",S=A},stop:()=>{g=!0,"idle"!==E&&(E="idle",u&&u(),F())},cancel:()=>{null!==C&&O(C),F()},complete:()=>{E="finished"},sample:t=>(k=0,O(t))};return V}const wr=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Er=new Set(["opacity","clipPath","filter","transform"]);function Sr(t,e,{onUpdate:n,onComplete:r,...o}){if(!(wr()&&Er.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1,l=!1;const u=()=>{a=new Promise((t=>{i=t}))};u();let{keyframes:c,duration:d=300,ease:p,times:f}=o;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!He(e.ease))(e,o)){const t=xr({...o,repeat:0,delay:0});let e={done:!1,value:c[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;f=void 0,c=n,d=r-10,p="linear"}const h=function(t,e,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ke(s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(t.owner.current,e,c,{...o,duration:d,ease:p,times:f}),m=()=>{l=!1,h.cancel()},g=()=>{l=!0,ce.update(m),i(),u()};h.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(c,o)),r&&r(),g())};return{then:(t,e)=>a.then(t,e),attachTimeline:t=>(h.timeline=t,h.onfinish=null,ue),get time(){return We(h.currentTime||0)},set time(t){h.currentTime=$e(t)},get speed(){return h.playbackRate},set speed(t){h.playbackRate=t},get duration(){return We(d)},play:()=>{s||(h.play(),de(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:e}=h;if(e){const n=xr({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}g()},complete:()=>{l||h.finish()},cancel:g}}const kr={type:"spring",stiffness:500,damping:25,restSpeed:10},Cr={type:"keyframes",duration:.8},Pr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tr=(t,{keyframes:e})=>e.length>2?Cr:it.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:kr:Pr,Rr=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Bn.test(e)&&"0"!==e||e.startsWith("url("))),Ar=new Set(["brightness","contrast","saturate","opacity"]);function Or(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(xt)||[];if(!r)return t;const o=n.replace(r,"");let i=Ar.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const Dr=/([a-z-]*)\(.*?\)/g,Fr={...Bn,getAnimatableNone:t=>{const e=t.match(Dr);return e?e.map(Or).join(" "):t}},jr={...Ft,color:Rn,backgroundColor:Rn,outlineColor:Rn,fill:Rn,stroke:Rn,borderColor:Rn,borderTopColor:Rn,borderRightColor:Rn,borderBottomColor:Rn,borderLeftColor:Rn,filter:Fr,WebkitFilter:Fr},Mr=t=>jr[t];function Vr(t,e){let n=Mr(t);return n!==Fr&&(n=Bn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Lr=t=>/^0[^.\s]+$/.test(t);function Nr(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||Lr(t):void 0}function Ir(t,e){return t[e]||t.default||t}const Br=(t,e,n,r={})=>o=>{const i=Ir(r,t)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=$e(a);const l=function(t,e,n,r){const o=Rr(e,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:t.get();let s;const l=[];for(let t=0;t<i.length;t++)null===i[t]&&(i[t]=0===t?a:i[t-1]),Nr(i[t])&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(s=i[t]);if(o&&l.length&&s)for(let t=0;t<l.length;t++)i[l[t]]=Vr(e,s);return i}(e,t,n,i),u=l[0],c=l[l.length-1],d=Rr(t,u),p=Rr(t,c);ze(d===p,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(i)||(f={...f,...Tr(t,f)}),f.duration&&(f.duration=$e(f.duration)),f.repeatDelay&&(f.repeatDelay=$e(f.repeatDelay)),!d||!p||Ze||!1===i.type||O)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const o=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ue,pause:ue,stop:ue,then:t=>(t(),Promise.resolve()),cancel:ue,complete:ue});return e?xr({keyframes:[0,1],duration:0,delay:e,onComplete:o}):o()}(f);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Sr(e,t,f);if(n)return n}return xr(f)};function zr(t){return Boolean(st(t)&&t.add)}const Ur=t=>/^\-?\d*\.?\d+$/.test(t);function $r(t,e){-1===t.indexOf(e)&&t.push(e)}function Wr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Zr{constructor(){this.subscriptions=[]}add(t){return $r(this.subscriptions,t),()=>Wr(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gr=new Set;function Hr(t,e,n){t||Gr.has(e)||(console.warn(e),n&&console.warn(n),Gr.add(e))}class Yr{constructor(t,e={}){var n;this.version="11.0.8",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=mr.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=mr.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&Hr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Zr);const n=this.events[t].add(e);return"change"===t?()=>{n(),ce.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=mr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Xn(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qr(t,e){return new Yr(t,e)}const Kr=t=>e=>e.test(t),Xr=[vt,Tt,Pt,Ct,At,Rt,{test:t=>"auto"===t,parse:t=>t}],Qr=t=>Xr.find(Kr(t)),Jr=[...Xr,Rn,Bn];function to(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,qr(n))}function eo(t,e){if(!e)return;return(e[t]||e.default||e).from}function no({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function ro(t,e){const n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}function oo(t,e,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:a,...s}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(i=r);const u=[],c=o&&t.animationState&&t.animationState.getState()[o];for(const e in s){const r=t.getValue(e),o=s[e];if(!r||void 0===o||c&&no(c,e))continue;const a={delay:n,elapsed:0,...Ir(i||{},e)};if(window.HandoffAppearAnimations){const n=t.getProps()[A];if(n){const t=window.HandoffAppearAnimations(n,e,r,ce);null!==t&&(a.elapsed=t,a.isHandoff=!0)}}let d=!a.isHandoff&&!ro(r,o);if("spring"===a.type&&(r.getVelocity()||a.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(Br(e,r,o,t.shouldReduceMotion&&it.has(e)?{type:!1}:a));const p=r.animation;zr(l)&&(l.add(e),p.then((()=>l.remove(e)))),u.push(p)}return a&&Promise.all(u).then((()=>{a&&function(t,e){const n=Be(t,e);let{transitionEnd:r={},transition:o={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const e in i)to(t,e,ie(i[e]))}(t,a)})),u}function io(t,e,n={}){const r=Be(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(oo(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(t,e,n=0,r=0,o=1,i){const a=[],s=(t.variantChildren.size-1)*r,l=1===o?(t=0)=>t*r:(t=0)=>s-t*r;return Array.from(t.variantChildren).sort(ao).forEach(((t,r)=>{t.notify("AnimationStart",e),a.push(io(t,e,{...i,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(a)}(t,e,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[t,e]="beforeChildren"===s?[i,a]:[a,i];return t().then((()=>e()))}return Promise.all([i(),a(n.delay)])}function ao(t,e){return t.sortNodePosition(e)}const so=[...z].reverse(),lo=z.length;function uo(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>io(t,e,n)));r=Promise.all(o)}else if("string"==typeof e)r=io(t,e,n);else{const o="function"==typeof e?Be(t,e,n.custom):e;r=Promise.all(oo(t,o,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function co(t){let e=uo(t);const n={animate:fo(!0),whileInView:fo(),whileHover:fo(),whileTap:fo(),whileDrag:fo(),whileFocus:fo(),exit:fo()};let r=!0;const o=(e,n)=>{const r=Be(t,n);if(r){const{transition:t,transitionEnd:n,...o}=r;e={...e,...o,...n}}return e};function i(i,a){const s=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let d={},p=1/0;for(let e=0;e<lo;e++){const f=so[e],h=n[f],m=void 0!==s[f]?s[f]:l[f],g=I(m),v=f===a?h.isActive:null;!1===v&&(p=e);let y=m===l[f]&&m!==s[f]&&g;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===v||!m&&!h.prevProp||B(m)||"boolean"==typeof m)continue;let _=po(h.prevProp,m)||f===a&&h.isActive&&!y&&g||e>p&&g,b=!1;const x=Array.isArray(m)?m:[m];let w=x.reduce(o,{});!1===v&&(w={});const{prevResolvedValues:E={}}=h,S={...E,...w},k=t=>{_=!0,c.has(t)&&(b=!0,c.delete(t)),h.needsAnimating[t]=!0};for(const t in S){const e=w[t],n=E[t];if(d.hasOwnProperty(t))continue;let r=!1;r=re(e)&&re(n)?!Ie(e,n):e!==n,r?void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):h.protectedKeys[t]=!0}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),r&&t.blockInitialAnimation&&(_=!1),!_||y&&!b||u.push(...x.map((t=>({animation:t,options:{type:f,...i}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),u.push({animation:e})}let f=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:i,setActive:function(e,r,o){var a;if(n[e].isActive===r)return Promise.resolve();null===(a=t.variantChildren)||void 0===a||a.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=i(o,e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function po(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!Ie(e,t)}function fo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let ho=0;const mo={animation:{Feature:class extends Te{constructor(t){super(t),t.animationState||(t.animationState=co(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),B(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Te{constructor(){super(...arguments),this.id=ho++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},go=(t,e)=>Math.abs(t-e);class vo{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=bo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=go(t.x,e.x),r=go(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=pe;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=yo(e,this.transformPagePoint),ce.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=bo("pointercancel"===t.type?this.lastMoveEventInfo:yo(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!ve(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=yo(ye(t),this.transformPagePoint),{point:a}=i,{timestamp:s}=pe;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=e;l&&l(t,bo(i,this.history)),this.removeListeners=we(be(this.contextWindow,"pointermove",this.handlePointerMove),be(this.contextWindow,"pointerup",this.handlePointerUp),be(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),de(this.updatePoint)}}function yo(t,e){return e?{point:e(t.point)}:t}function _o(t,e){return{x:t.x-e.x,y:t.y-e.y}}function bo({point:t},e){return{point:t,delta:_o(t,wo(e)),offset:_o(t,xo(e)),velocity:Eo(e,.1)}}function xo(t){return t[0]}function wo(t){return t[t.length-1]}function Eo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=wo(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>$e(e)));)n--;if(!r)return{x:0,y:0};const i=We(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function So(t){return t.max-t.min}function ko(t,e=0,n=.01){return Math.abs(t-e)<=n}function Co(t,e,n,r=.5){t.origin=r,t.originPoint=vn(e.min,e.max,t.origin),t.scale=So(n)/So(e),(ko(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=vn(n.min,n.max,t.origin)-t.originPoint,(ko(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Po(t,e,n,r){Co(t.x,e.x,n.x,r?r.originX:void 0),Co(t.y,e.y,n.y,r?r.originY:void 0)}function To(t,e,n){t.min=n.min+e.min,t.max=t.min+So(e)}function Ro(t,e,n){t.min=e.min-n.min,t.max=t.min+So(e)}function Ao(t,e,n){Ro(t.x,e.x,n.x),Ro(t.y,e.y,n.y)}function Oo(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Do(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const Fo=.35;function jo(t,e,n){return{min:Mo(t,e),max:Mo(t,n)}}function Mo(t,e){return"number"==typeof t?t:t[e]||0}const Vo=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Lo=()=>({x:{min:0,max:0},y:{min:0,max:0}});function No(t){return[t("x"),t("y")]}function Io({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Bo(t){return void 0===t||1===t}function zo({scale:t,scaleX:e,scaleY:n}){return!Bo(t)||!Bo(e)||!Bo(n)}function Uo(t){return zo(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function $o(t){return Wo(t.x)||Wo(t.y)}function Wo(t){return t&&"0%"!==t}function Zo(t,e,n){return n+e*(t-n)}function Go(t,e,n,r,o){return void 0!==o&&(t=Zo(t,o,r)),Zo(t,n,r)+e}function Ho(t,e=0,n=1,r,o){t.min=Go(t.min,e,n,r,o),t.max=Go(t.max,e,n,r,o)}function Yo(t,{x:e,y:n}){Ho(t.x,e.translate,e.scale,e.originPoint),Ho(t.y,n.translate,n.scale,n.originPoint)}function qo(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Ko(t,e){t.min=t.min+e,t.max=t.max+e}function Xo(t,e,[n,r,o]){const i=void 0!==e[o]?e[o]:.5,a=vn(t.min,t.max,i);Ho(t,e[n],e[r],a,e.scale)}const Qo=["x","scaleX","originX"],Jo=["y","scaleY","originY"];function ti(t,e){Xo(t.x,e,Qo),Xo(t.y,e,Jo)}function ei(t,e){return Io(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const ni=({current:t})=>t?t.ownerDocument.defaultView:null,ri=new WeakMap;class oi{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lo(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new vo(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ye(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ce(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),No((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Pt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=So(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&ce.update((()=>o(t,e)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>No((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:ni(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ce.update((()=>o(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!ii(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?vn(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?vn(n,t,r.max):Math.min(t,n)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;e&&N(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,{top:e,left:n,bottom:r,right:o}){return{x:Oo(t.x,n,o),y:Oo(t.y,e,r)}}(r.layoutBox,e),this.elastic=function(t=Fo){return!1===t?t=0:!0===t&&(t=Fo),{x:jo(t,"left","right"),y:jo(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&No((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!N(t))return!1;const n=t.current;Ue(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=ei(t,n),{scroll:o}=e;return o&&(Ko(r.x,o.offset.x),Ko(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:Do(t.x,e.x),y:Do(t.y,e.y)}}(r.layout.layoutBox,o);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=Io(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=No((a=>{if(!ii(a,e,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?t[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(Br(t,n,0,e))}stopAnimation(){No((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){No((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){No((e=>{const{drag:n}=this.getProps();if(!ii(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-vn(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!N(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};No((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=So(t),o=So(e);return o>r?n=gn(e.min,e.max-r,t.min):r>o&&(n=gn(t.min,t.max-o,e.min)),gt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),No((e=>{if(!ii(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(vn(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;ri.set(this.visualElement,this);const t=be(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();N(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const o=ge(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(No((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Fo,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function ii(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const ai=t=>(e,n)=>{t&&ce.update((()=>t(e,n)))};const si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function li(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ui={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Tt.test(t))return t;t=parseFloat(t)}return`${li(t,e.target.x)}% ${li(t,e.target.y)}%`}},ci={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,o=Bn.parse(t);if(o.length>5)return r;const i=Bn.createTransformer(t),a="number"!=typeof o[0]?1:0,s=n.x.scale*e.x,l=n.y.scale*e.y;o[0+a]/=s,o[1+a]/=l;const u=vn(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class di extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;var i;i=fi,Object.assign(rt,i),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),si.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||ce.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),V.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function pi(e){const[n,r]=function(){const e=t.useContext(k);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=e,i=t.useId();return t.useEffect((()=>o(i)),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}(),o=t.useContext(q);return t.createElement(di,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(K),isPresent:n,safeToRemove:r})}const fi={borderRadius:{...ui,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ui,borderTopRightRadius:ui,borderBottomLeftRadius:ui,borderBottomRightRadius:ui,boxShadow:ci},hi=["TopLeft","TopRight","BottomLeft","BottomRight"],mi=hi.length,gi=t=>"string"==typeof t?parseFloat(t):t,vi=t=>"number"==typeof t||Tt.test(t);function yi(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const _i=xi(0,.5,un),bi=xi(.5,.95,ue);function xi(t,e,n){return r=>r<t?0:r>e?1:n(gn(t,e,r))}function wi(t,e){t.min=e.min,t.max=e.max}function Ei(t,e){wi(t.x,e.x),wi(t.y,e.y)}function Si(t,e,n,r,o){return t=Zo(t-=e,1/n,r),void 0!==o&&(t=Zo(t,1/o,r)),t}function ki(t,e,[n,r,o],i,a){!function(t,e=0,n=1,r=.5,o,i=t,a=t){Pt.test(e)&&(e=parseFloat(e),e=vn(a.min,a.max,e/100)-a.min);if("number"!=typeof e)return;let s=vn(i.min,i.max,r);t===i&&(s-=e),t.min=Si(t.min,e,n,s,o),t.max=Si(t.max,e,n,s,o)}(t,e[n],e[r],e[o],e.scale,i,a)}const Ci=["x","scaleX","originX"],Pi=["y","scaleY","originY"];function Ti(t,e,n,r){ki(t.x,e,Ci,n?n.x:void 0,r?r.x:void 0),ki(t.y,e,Pi,n?n.y:void 0,r?r.y:void 0)}function Ri(t){return 0===t.translate&&1===t.scale}function Ai(t){return Ri(t.x)&&Ri(t.y)}function Oi(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Di(t){return So(t.x)/So(t.y)}class Fi{constructor(){this.members=[]}add(t){$r(this.members,t),t.scheduleRender()}remove(t){if(Wr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ji(t,e,n){let r="";const o=t.x.translate/e.x,i=t.y.translate/e.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=t.x.scale*e.x,s=t.y.scale*e.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Mi=(t,e)=>t.depth-e.depth;class Vi{constructor(){this.children=[],this.isDirty=!1}add(t){$r(this.children,t),this.isDirty=!0}remove(t){Wr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Mi),this.isDirty=!1,this.children.forEach(t)}}const Li=["","X","Y","Z"],Ni={visibility:"hidden"};let Ii=0;const Bi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function zi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Ii++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;this.projectionUpdateScheduled=!1,Bi.totalNodes=Bi.resolvedTargetDeltas=Bi.recalculatedProjection=0,this.nodes.forEach(Wi),this.nodes.forEach(Xi),this.nodes.forEach(Qi),this.nodes.forEach(Zi),t=Bi,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vi)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Zr),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=mr.now(),r=({timestamp:o})=>{const i=o-n;i>=e&&(de(r),t(i-e))};return ce.read(r,!0),()=>de(r)}(r,250),si.hasAnimatedSinceResize&&(si.hasAnimatedSinceResize=!1,this.nodes.forEach(Ki))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||oa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Oi(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Ir(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||Ki(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,de(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ji),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Hi);this.isUpdating||this.nodes.forEach(Yi),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(qi),this.nodes.forEach(Ui),this.nodes.forEach($i),this.clearAllSnapshots();const t=mr.now();pe.delta=gt(0,1e3/60,t-pe.timestamp),pe.timestamp=t,pe.isProcessing=!0,fe.update.process(pe),fe.preRender.process(pe),fe.render.process(pe),pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,V.read((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(Gi),this.sharedNodes.forEach(ta)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ce.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Lo(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!Ai(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;t&&(e||Uo(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),sa((r=n).x),sa(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return Lo();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(Ko(e.x,n.offset.x),Ko(e.y,n.offset.y)),e}removeElementScroll(t){const e=Lo();Ei(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Ei(e,t);const{scroll:n}=this.root;n&&(Ko(e.x,-n.offset.x),Ko(e.y,-n.offset.y))}Ko(e.x,o.offset.x),Ko(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=Lo();Ei(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ti(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Uo(r.latestValues)&&ti(n,r.latestValues)}return Uo(this.latestValues)&&ti(n,this.latestValues),n}removeTransform(t){const e=Lo();Ei(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!Uo(n.latestValues))continue;zo(n.latestValues)&&n.updateSnapshot();const r=Lo();Ei(r,n.measurePageBox()),Ti(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Uo(this.latestValues)&&Ti(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==pe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=pe.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lo(),this.relativeTargetOrigin=Lo(),Ao(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Lo(),this.targetWithTransforms=Lo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,To(a.x,s.x,l.x),To(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ei(this.target,this.layout.layoutBox),Yo(this.target,this.targetDelta)):Ei(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lo(),this.relativeTargetOrigin=Lo(),Ao(this.relativeTargetOrigin,this.target,t.target),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Bi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!zo(this.parent.latestValues)&&!$o(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===pe.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Ei(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,r=!1){const o=n.length;if(!o)return;let i,a;e.x=e.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ti(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,Yo(t,a)),r&&Uo(i.latestValues)&&ti(t,i.latestValues))}e.x=qo(e.x),e.y=qo(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=Lo());const{target:l}=e;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Vo(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Vo(),this.projectionDeltaWithTransform=Vo());const u=this.projectionTransform;Po(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ji(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Bi.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Vo();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const a=Lo(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(ra));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,p,f,h,m,g;ea(i.x,t.x,n),ea(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,h=this.relativeTargetOrigin,m=a,g=n,na(f.x,h.x,m.x,g),na(f.y,h.y,m.y,g),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d=Lo()),Ei(d,this.relativeTarget)),s&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=vn(0,void 0!==n.opacity?n.opacity:1,_i(r)),t.opacityExit=vn(void 0!==e.opacity?e.opacity:1,0,bi(r))):i&&(t.opacity=vn(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<mi;o++){const i=`border${hi[o]}Radius`;let a=yi(e,i),s=yi(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||vi(a)===vi(s)?(t[i]=Math.max(vn(gi(a),gi(s),r),0),(Pt.test(s)||Pt.test(a))&&(t[i]+="%")):t[i]=s)}(e.rotate||n.rotate)&&(t.rotate=vn(e.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(de(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ce.update((()=>{si.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=st(t)?t:qr(t);return r.start(Br("",r,e,n)),r.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&la(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Lo();const e=So(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=So(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Ei(e,n),ti(e,o),Po(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Fi);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let e=0;e<Li.length;e++){const o="rotate"+Li[e];n[o]&&(r[o]=n[o],t.setStaticValue(o,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ni;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ae(null==t?void 0:t.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ae(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Uo(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=ji(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(e=a.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in rt){if(void 0===a[t])continue;const{correct:e,applyTo:n}=rt[t],o="none"===r.transform?a[t]:e(a[t],i);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=o}else r[t]=o}return this.options.layoutId&&(r.pointerEvents=i===this?ae(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Hi),this.root.sharedNodes.clear()}}}function Ui(t){t.updateLayout()}function $i(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?No((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=So(r);r.min=e[t].min,r.max=r.min+o})):la(o,n.layoutBox,e)&&No((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=So(e[r]);o.max=o.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)}));const a=Vo();Po(a,e,n.layoutBox);const s=Vo();i?Po(s,t.applyTransform(r,!0),n.measuredBox):Po(s,e,n.layoutBox);const l=!Ai(a);let u=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=Lo();Ao(a,n.layoutBox,o.layoutBox);const s=Lo();Ao(s,e,i.layoutBox),Oi(a,s)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=s,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Wi(t){Bi.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Zi(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Gi(t){t.clearSnapshot()}function Hi(t){t.clearMeasurements()}function Yi(t){t.isLayoutDirty=!1}function qi(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ki(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Xi(t){t.resolveTargetDelta()}function Qi(t){t.calcProjection()}function Ji(t){t.resetRotation()}function ta(t){t.removeLeadSnapshot()}function ea(t,e,n){t.translate=vn(e.translate,0,n),t.scale=vn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function na(t,e,n,r){t.min=vn(e.min,n.min,r),t.max=vn(e.max,n.max,r)}function ra(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const oa={duration:.45,ease:[.4,0,.1,1]},ia=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),aa=ia("applewebkit/")&&!ia("chrome/")?Math.round:ue;function sa(t){t.min=aa(t.min),t.max=aa(t.max)}function la(t,e,n){return"position"===t||"preserve-aspect"===t&&!ko(Di(e),Di(n),.2)}const ua=zi({attachResizeListener:(t,e)=>ge(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ca={current:void 0},da=zi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ca.current){const t=new ua({});t.mount(window),t.setOptions({layoutScroll:!0}),ca.current=t}return ca.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),pa={pan:{Feature:class extends Te{constructor(){super(...arguments),this.removePointerDownListener=ue}onPointerDown(t){this.session=new vo(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ni(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ai(t),onStart:ai(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&ce.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=be(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Te{constructor(t){super(t),this.removeGroupControls=ue,this.removeListeners=ue,this.controls=new oi(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ue}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:da,MeasureLayout:pi}},fa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const ha=4;function ma(t,e,n=1){Ue(n<=ha,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=fa.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const t=i.trim();return Ur(t)?parseFloat(t):t}return ft(o)?ma(o,e,n+1):o}const ga=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),va=t=>ga.has(t),ya=t=>t===vt||t===Tt,_a=(t,e)=>parseFloat(t.split(", ")[e]),ba=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return _a(o[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?_a(e[1],t):0}},xa=new Set(["x","y","z"]),wa=ot.filter((t=>!xa.has(t)));const Ea={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ba(4,13),y:ba(5,14)};Ea.translateX=Ea.x,Ea.translateY=Ea.y;const Sa=(t,e,n={},r={})=>{e={...e},r={...r};const o=Object.keys(e).filter(va);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],c=Qr(u);const d=e[o];let p;if(re(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],c=Qr(u);for(let n=e;n<t&&null!==d[n];n++)p?Ue(Qr(d[n])===p,"All keyframes must be of the same type"):(p=Qr(d[n]),Ue(p===c||ya(c)&&ya(p),"Keyframes must be of the same dimension as the current value"))}else p=Qr(d);if(c!==p)if(ya(c)&&ya(p)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===Tt&&(e[o]=d.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==p?void 0:p.transform)&&(0===u||0===d)?0===u?l.set(p.transform(u)):e[o]=c.transform(d):(a||(i=function(t){const e=[];return wa.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:e[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const r=e.measureViewportBox(),o=e.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{s[t]=Ea[t](r,i)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(s[n]),t[n]=Ea[n](l,i)})),t})(e,t,s);return i.length&&i.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),C&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:e,transitionEnd:r}};function ka(t,e,n,r){return(t=>Object.keys(t).some(va))(e)?Sa(t,e,n,r):{target:e,transitionEnd:r}}const Ca=(t,e,n,r)=>{const o=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!ft(e))return;const n=ma(e,r);n&&t.set(n)}));for(const t in e){const o=e[t];if(!ft(o))continue;const i=ma(o,r);i&&(e[t]=i,n||(n={}),void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}(t,e,r);return ka(t,e=o.target,n,r=o.transitionEnd)},Pa={current:null},Ta={current:!1};const Ra=new WeakMap,Aa=Object.keys(Y),Oa=Aa.length,Da=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Fa=U.length;class ja{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ce.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=$(e),this.isVariantNode=W(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==a[t]&&st(e)&&(e.set(a[t],!1),zr(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,Ra.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Ta.current||function(){if(Ta.current=!0,C)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Pa.current=t.matches;t.addListener(e),e()}else Pa.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Pa.current),"production"!==process.env.NODE_ENV&&Hr(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ra.delete(this.current),this.projection&&this.projection.unmount(),de(this.notifyUpdate),de(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=it.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&ce.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,o){let i,a;if("production"!==process.env.NODE_ENV&&r&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ze(!1,t):Ue(!1,t)}for(let t=0;t<Oa;t++){const n=Aa[t],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=Y[n];s&&(i=s),r(e)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||a&&N(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lo()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Da.length;e++){const n=Da[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const o in e){const i=e[o],a=n[o];if(st(i))t.addValue(o,i),zr(r)&&r.add(o),"development"===process.env.NODE_ENV&&Hr("11.0.8"===i.version,`Attempting to mix Framer Motion versions ${i.version} with 11.0.8 may not work as expected.`);else if(st(a))t.addValue(o,qr(i,{owner:t})),zr(r)&&r.remove(o);else if(a!==i)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,qr(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<Fa;t++){const n=U[t],r=this.props[n];(I(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=qr(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=ne(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||st(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Zr),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Ma extends ja{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},r){const o=function(t,e,n){const r={};for(const o in t){const t=eo(o,e);if(void 0!==t)r[o]=t;else{const t=n.getValue(o);t&&(r[o]=t.get())}}return r}(n,t||{},this);if(r){!function(t,e,n){var r,o;const i=Object.keys(e).filter((e=>!t.hasValue(e))),a=i.length;var s;if(a)for(let l=0;l<a;l++){const a=i[l],u=e[a];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:t.readValue(a))&&void 0!==o?o:e[a]),null!=c&&("string"==typeof c&&(Ur(c)||Lr(c))?c=parseFloat(c):(s=c,!Jr.find(Kr(s))&&Bn.test(u)&&(c=Vr(a,u))),t.addValue(a,qr(c,{owner:t})),void 0===n[a]&&(n[a]=c),null!==c&&t.setBaseTarget(a,c))}}(this,n,o);const t=Ca(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Va extends Ma{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(it.has(e)){const t=Mr(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(dt(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return ei(t,e)}build(t,e,n,r){jt(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return te(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;st(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){Xt(t,e,n,r)}}class La extends Ma{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(it.has(e)){const t=Mr(e);return t&&t.default||0}return e=Qt.has(e)?e:R(e),t.getAttribute(e)}measureInstanceViewportBox(){return Lo()}scrapeMotionValuesFromProps(t,e){return ee(t,e)}build(t,e,n,r){Gt(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){Jt(t,e,0,r)}mount(t){this.isSVGTag=Yt(t.tagName),super.mount(t)}}const Na=(t,e)=>nt(t)?new La(e,{enableHardwareAcceleration:!1}):new Va(e,{enableHardwareAcceleration:!0}),Ia={...mo,...Ne,...pa,...{layout:{ProjectionNode:da,MeasureLayout:pi}}},Ba=tt(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...nt(t)?he:me,preloadedFeatures:n,useRender:Kt(e),createVisualElement:r,Component:t}}(t,e,Ia,Na)));var za={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},Ua="form-module_form__FGOhg";u(".form-module_form__FGOhg {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__FGOhg fieldset {\n all: unset;\n display: flex;\n flex-direction: column; \n}\n\n.form-module_form__FGOhg > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__FGOhg > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__FGOhg > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n\n .form-module_form__FGOhg {\n padding: 0;\n }\n .form-module_content-title-semi-bold__rYlQh {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var $a="numberField-module_container__yjOIU",Wa="numberField-module_fake-input__cqOX-",Za="numberField-module_spinbutton-container__HkUKt",Ga="numberField-module_spinbutton-container--error__dO4fj",Ha="numberField-module_control__yE0Ro";u(".numberField-module_container__yjOIU {\n display: flex;\n flex-direction: column;\n}\n\n.numberField-module_fake-input__cqOX- {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.numberField-module_spinbutton-container__HkUKt {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-4) var(--product-spacing-5);\n border-radius: var(--product-radius-3);\n background: var(--product-greyscale-0);\n}\n\n.numberField-module_spinbutton-container--error__dO4fj {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.numberField-module_label__e79fV {\n margin-bottom: var(--product-spacing-3);\n}\n\n.numberField-module_error__UtA4B {\n color: var(--product-error);\n}\n\n.numberField-module_spinbutton-container--disabled__DriKa {\n background: var(--product-greyscale-20);\n}\n\n.numberField-module_control__yE0Ro {\n all: unset;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: 44px;\n height: 44px;\n border: 2px solid black;\n}\n\n");var Ya=["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"],qa=function(e){var n=e.name,r=e.label,o=e.min,i=void 0===o?0:o,a=e.max,s=void 0===a?100:a,u=e.width,c=void 0===u?3:u,d=e.error,f=e.helper,h=e.field,m=h.value,g=h.onChange,v=h.onBlur,y=function(t){m<=i||g(m-t)},_=function(t){m>=s||g(m+t)};return t.createElement(x,{id:"".concat(n,"-label"),label:r,error:null==d?void 0:d.message,helper:null==f?void 0:f.message},t.createElement("div",{className:$a},t.createElement("div",{className:l(Za,d&&Ga)},t.createElement("button",{className:Ha,type:"button",tabIndex:-1,onClick:function(){return y(1)},"aria-label":"decrease"},"-"),t.createElement(p,{as:"div",className:Wa,role:"spinbutton",tabIndex:0,onKeyDown:function(t){Ya.includes(t.key)&&(t.preventDefault(),function(t){"ArrowUp"===t.key&&_(1),"ArrowDown"===t.key&&y(1)}(t),function(t){"PageUp"===t.key&&_(5),"PageDown"===t.key&&y(5)}(t),function(t){"Home"===t.key&&g(i),"End"===t.key&&g(s)}(t))},onBlur:v,"aria-valuenow":m,"aria-valuemin":i,"aria-valuemax":s,"aria-labelledby":"".concat(n,"-label"),"aria-invalid":!!(null==d?void 0:d.message),"aria-errormessage":d?"".concat(n,"-error"):void 0,style:{width:"".concat(c,"ch")}},m),t.createElement("button",{className:Ha,type:"button",tabIndex:-1,onClick:function(){return _(1)},"aria-label":"increase"},"+"))))};function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ka.apply(this,arguments)}function Xa(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}function Qa(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function Ja(...e){return t.useCallback(Qa(...e),e)}function ts(e,n=[]){let r=[];const o=()=>{const n=r.map((e=>t.createContext(e)));return function(r){const o=(null==r?void 0:r[e])||n;return t.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(n,o){const i=t.createContext(o),a=r.length;function s(n){const{scope:r,children:o,...s}=n,l=(null==r?void 0:r[e][a])||i,u=t.useMemo((()=>s),Object.values(s));return t.createElement(l.Provider,{value:u},o)}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][a])||i,u=t.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},es(o,...n)]}function es(...e){const n=e[0];if(1===e.length)return n;const r=()=>{const r=e.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(e){const o=r.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return t.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}const ns=t.forwardRef(((e,n)=>{const{children:r,...o}=e,i=t.Children.toArray(r),a=i.find(is);if(a){const e=a.props.children,r=i.map((n=>n===a?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n));return t.createElement(rs,Ka({},o,{ref:n}),t.isValidElement(e)?t.cloneElement(e,void 0,r):null)}return t.createElement(rs,Ka({},o,{ref:n}),r)}));ns.displayName="Slot";const rs=t.forwardRef(((e,n)=>{const{children:r,...o}=e;return t.isValidElement(r)?t.cloneElement(r,{...as(o,r.props),ref:n?Qa(n,r.ref):r.ref}):t.Children.count(r)>1?t.Children.only(null):null}));rs.displayName="SlotClone";const os=({children:e})=>t.createElement(t.Fragment,null,e);function is(e){return t.isValidElement(e)&&e.type===os}function as(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...t)=>{i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}const ss=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const r=t.forwardRef(((e,r)=>{const{asChild:o,...i}=e,a=o?ns:n;return t.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),t.createElement(a,Ka({},i,{ref:r}))}));return r.displayName=`Primitive.${n}`,{...e,[n]:r}}),{});const ls=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?t.useLayoutEffect:()=>{},us=o["useId".toString()]||(()=>{});let cs=0;function ds(e){const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),t.useMemo((()=>(...t)=>{var e;return null===(e=n.current)||void 0===e?void 0:e.call(n,...t)}),[])}function ps({prop:e,defaultProp:n,onChange:r=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:n}){const r=t.useState(e),[o]=r,i=t.useRef(o),a=ds(n);return t.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:n,onChange:r}),a=void 0!==e,s=a?e:o,l=ds(r);return[s,t.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else i(t)}),[a,e,i,l])]}const fs=t.createContext(void 0);function hs(e){const n=t.useContext(fs);return e||n||"ltr"}const ms="rovingFocusGroup.onEntryFocus",gs={bubbles:!1,cancelable:!0},vs="RovingFocusGroup",[ys,_s,bs]=function(e){const n=e+"CollectionProvider",[r,o]=ts(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",u="data-radix-collection-item";return[{Provider:e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return t.createElement(i,{scope:n,itemMap:a,collectionRef:o},r)},Slot:t.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=Ja(n,a(s,r).collectionRef);return t.createElement(ns,{ref:i},o)})),ItemSlot:t.forwardRef(((e,n)=>{const{scope:r,children:o,...i}=e,s=t.useRef(null),c=Ja(n,s),d=a(l,r);return t.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),t.createElement(ns,{[u]:"",ref:c},o)}))},function(n){const r=a(e+"CollectionConsumer",n);return t.useCallback((()=>{const t=r.collectionRef.current;if(!t)return[];const e=Array.from(t.querySelectorAll(`[${u}]`));return Array.from(r.itemMap.values()).sort(((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(vs),[xs,ws]=ts(vs,[bs]),[Es,Ss]=xs(vs),ks=t.forwardRef(((e,n)=>t.createElement(ys.Provider,{scope:e.__scopeRovingFocusGroup},t.createElement(ys.Slot,{scope:e.__scopeRovingFocusGroup},t.createElement(Cs,Ka({},e,{ref:n})))))),Cs=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,p=t.useRef(null),f=Ja(n,p),h=hs(a),[m=null,g]=ps({prop:s,defaultProp:l,onChange:u}),[v,y]=t.useState(!1),_=ds(c),b=_s(r),x=t.useRef(!1),[w,E]=t.useState(0);return t.useEffect((()=>{const t=p.current;if(t)return t.addEventListener(ms,_),()=>t.removeEventListener(ms,_)}),[_]),t.createElement(Es,{scope:r,orientation:o,dir:h,loop:i,currentTabStopId:m,onItemFocus:t.useCallback((t=>g(t)),[g]),onItemShiftTab:t.useCallback((()=>y(!0)),[]),onFocusableItemAdd:t.useCallback((()=>E((t=>t+1))),[]),onFocusableItemRemove:t.useCallback((()=>E((t=>t-1))),[])},t.createElement(ss.div,Ka({tabIndex:v||0===w?-1:0,"data-orientation":o},d,{ref:f,style:{outline:"none",...e.style},onMouseDown:Xa(e.onMouseDown,(()=>{x.current=!0})),onFocus:Xa(e.onFocus,(t=>{const e=!x.current;if(t.target===t.currentTarget&&e&&!v){const e=new CustomEvent(ms,gs);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){const t=b().filter((t=>t.focusable));Rs([t.find((t=>t.active)),t.find((t=>t.id===m)),...t].filter(Boolean).map((t=>t.ref.current)))}}x.current=!1})),onBlur:Xa(e.onBlur,(()=>y(!1)))})))})),Ps=t.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:s,...l}=e,u=function(t){const[e,n]=o.useState(us());return ls((()=>{t||n((t=>null!=t?t:String(cs++)))}),[t]),t||(e?`radix-${e}`:"")}(),c=s||u,d=Ss("RovingFocusGroupItem",r),p=d.currentTabStopId===c,f=_s(r),{onFocusableItemAdd:h,onFocusableItemRemove:m}=d;return t.useEffect((()=>{if(i)return h(),()=>m()}),[i,h,m]),t.createElement(ys.ItemSlot,{scope:r,id:c,focusable:i,active:a},t.createElement(ss.span,Ka({tabIndex:p?0:-1,"data-orientation":d.orientation},l,{ref:n,onMouseDown:Xa(e.onMouseDown,(t=>{i?d.onItemFocus(c):t.preventDefault()})),onFocus:Xa(e.onFocus,(()=>d.onItemFocus(c))),onKeyDown:Xa(e.onKeyDown,(t=>{if("Tab"===t.key&&t.shiftKey)return void d.onItemShiftTab();if(t.target!==t.currentTarget)return;const e=function(t,e,n){const r=function(t,e){return"rtl"!==e?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t}(t.key,n);return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ts[r]}(t,d.orientation,d.dir);if(void 0!==e){t.preventDefault();let o=f().filter((t=>t.focusable)).map((t=>t.ref.current));if("last"===e)o.reverse();else if("prev"===e||"next"===e){"prev"===e&&o.reverse();const i=o.indexOf(t.currentTarget);o=d.loop?(r=i+1,(n=o).map(((t,e)=>n[(r+e)%n.length]))):o.slice(i+1)}setTimeout((()=>Rs(o)))}var n,r}))})))})),Ts={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rs(t){const e=document.activeElement;for(const n of t){if(n===e)return;if(n.focus(),document.activeElement!==e)return}}const As=ks,Os=Ps;const Ds=e=>{const{present:r,children:o}=e,i=function(e){const[r,o]=t.useState(),i=t.useRef({}),a=t.useRef(e),s=t.useRef("none"),l=e?"mounted":"unmounted",[u,c]=function(e,n){return t.useReducer(((t,e)=>{const r=n[t][e];return null!=r?r:t}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect((()=>{const t=Fs(i.current);s.current="mounted"===u?t:"none"}),[u]),ls((()=>{const t=i.current,n=a.current;if(n!==e){const r=s.current,o=Fs(t);if(e)c("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,c]),ls((()=>{if(r){const t=t=>{const e=Fs(i.current).includes(t.animationName);t.target===r&&e&&n.flushSync((()=>c("ANIMATION_END")))},e=t=>{t.target===r&&(s.current=Fs(i.current))};return r.addEventListener("animationstart",e),r.addEventListener("animationcancel",t),r.addEventListener("animationend",t),()=>{r.removeEventListener("animationstart",e),r.removeEventListener("animationcancel",t),r.removeEventListener("animationend",t)}}c("ANIMATION_END")}),[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback((t=>{t&&(i.current=getComputedStyle(t)),o(t)}),[])}}(r),a="function"==typeof o?o({present:i.isPresent}):t.Children.only(o),s=Ja(i.ref,a.ref);return"function"==typeof o||i.isPresent?t.cloneElement(a,{ref:s}):null};function Fs(t){return(null==t?void 0:t.animationName)||"none"}Ds.displayName="Presence";const js="Radio",[Ms,Vs]=ts(js),[Ls,Ns]=Ms(js),Is=t.forwardRef(((e,n)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,p]=t.useState(null),f=Ja(n,(t=>p(t))),h=t.useRef(!1),m=!d||Boolean(d.closest("form"));return t.createElement(Ls,{scope:r,checked:i,disabled:s},t.createElement(ss.button,Ka({type:"button",role:"radio","aria-checked":i,"data-state":Us(i),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:f,onClick:Xa(e.onClick,(t=>{i||null==u||u(),m&&(h.current=t.isPropagationStopped(),h.current||t.stopPropagation())}))})),m&&t.createElement(zs,{control:d,bubbles:!h.current,name:o,value:l,checked:i,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),Bs=t.forwardRef(((e,n)=>{const{__scopeRadio:r,forceMount:o,...i}=e,a=Ns("RadioIndicator",r);return t.createElement(Ds,{present:o||a.checked},t.createElement(ss.span,Ka({"data-state":Us(a.checked),"data-disabled":a.disabled?"":void 0},i,{ref:n})))})),zs=e=>{const{control:n,checked:r,bubbles:o=!0,...i}=e,a=t.useRef(null),s=function(e){const n=t.useRef({value:e,previous:e});return t.useMemo((()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous)),[e])}(r),l=function(e){const[n,r]=t.useState(void 0);return ls((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const t=n.borderBoxSize,e=Array.isArray(t)?t[0]:t;o=e.inlineSize,i=e.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}(n);return t.useEffect((()=>{const t=a.current,e=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(e,"checked").set;if(s!==r&&n){const e=new Event("click",{bubbles:o});n.call(t,r),t.dispatchEvent(e)}}),[s,r,o]),t.createElement("input",Ka({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Us(t){return t?"checked":"unchecked"}const $s=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ws="RadioGroup",[Zs,Gs]=ts(Ws,[ws,Vs]),Hs=ws(),Ys=Vs(),[qs,Ks]=Zs(Ws),Xs=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,name:o,defaultValue:i,value:a,required:s=!1,disabled:l=!1,orientation:u,dir:c,loop:d=!0,onValueChange:p,...f}=e,h=Hs(r),m=hs(c),[g,v]=ps({prop:a,defaultProp:i,onChange:p});return t.createElement(qs,{scope:r,name:o,required:s,disabled:l,value:g,onValueChange:v},t.createElement(As,Ka({asChild:!0},h,{orientation:u,dir:m,loop:d}),t.createElement(ss.div,Ka({role:"radiogroup","aria-required":s,"aria-orientation":u,"data-disabled":l?"":void 0,dir:m},f,{ref:n}))))})),Qs=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,disabled:o,...i}=e,a=Ks("RadioGroupItem",r),s=a.disabled||o,l=Hs(r),u=Ys(r),c=t.useRef(null),d=Ja(n,c),p=a.value===i.value,f=t.useRef(!1);return t.useEffect((()=>{const t=t=>{$s.includes(t.key)&&(f.current=!0)},e=()=>f.current=!1;return document.addEventListener("keydown",t),document.addEventListener("keyup",e),()=>{document.removeEventListener("keydown",t),document.removeEventListener("keyup",e)}}),[]),t.createElement(Os,Ka({asChild:!0},l,{focusable:!s,active:p}),t.createElement(Is,Ka({disabled:s,required:a.required,checked:p},u,i,{name:a.name,ref:d,onCheck:()=>a.onValueChange(i.value),onKeyDown:Xa((t=>{"Enter"===t.key&&t.preventDefault()})),onFocus:Xa(i.onFocus,(()=>{var t;f.current&&(null===(t=c.current)||void 0===t||t.click())}))})))})),Js=t.forwardRef(((e,n)=>{const{__scopeRadioGroup:r,...o}=e,i=Ys(r);return t.createElement(Bs,Ka({},i,o,{ref:n}))}));var tl="radioGroup-module_legend__WklzX",el="radioGroup-module_radio-root__RtJ2M",nl="radioGroup-module_radio-root--error__9DrYG",rl="radioGroup-module_radio-root-label--error__KdFST",ol="radioGroup-module_radio-item__BKOlM",il="radioGroup-module_radio-indicator__-hEEu";u('\n\n.radioGroup-module_legend__WklzX {\n margin-bottom: var(--product-spacing-3);\n}\n\n.radioGroup-module_radio-root__RtJ2M {\n display: flex;\n gap: var(--product-spacing-2);\n}\n\n.radioGroup-module_radio-root--horizontal__S9DcQ {\n flex-direction: row;\n}\n\n.radioGroup-module_radio-root--vertical__dBLhN {\n flex-direction: column;\n}\n\n.radioGroup-module_radio-root--error__9DrYG {\n border: var( --product-border-width-1) solid var(--product-error);\n border-radius: var(--product-radius-2);\n}\n\n.radioGroup-module_radio-root-label--error__KdFST {\n color: var(--product-error);\n padding-top: 0.5rem;\n padding-left: 1.5rem;\n margin-bottom: 1rem;\n}\n\n.radioGroup-module_radio-item__BKOlM {\n all: unset;\n position: relative;\n background-color: white;\n border-radius: var(--product-radius-2);\n padding: var(--product-spacing-5) var(--product-spacing-4);\n width: 25%;\n cursor: pointer;\n}\n\n\n\n\n/* ! The Circle */\n.radioGroup-module_radio-item__BKOlM::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n display: block;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n border: 2px solid black;\n right: calc(var(--product-spacing-4));\n}\n\n/* ! The dot inside the circle */\n.radioGroup-module_radio-indicator__-hEEu::after {\n position: absolute;\n top: 50%;\n right: 0;\n transform: translateY(-50%);\n content: "";\n width: 0.75rem;\n height: 0.75rem;\n border-radius: 50%;\n right: calc(var(--product-spacing-4) + 0.5rem);\n background-color: var(--product-greyscale-100);\n}\n\n/* Make the first and last radio have rounded corners pointing to each other */\n\n.radioGroup-module_radio-item__BKOlM:first-child {\n border-top-right-radius: var(--product-radius-half);\n border-bottom-right-radius: var(--product-radius-half);\n}\n\n.radioGroup-module_radio-item__BKOlM:not(:first-child) {\n border-top-left-radius: var(--product-radius-half);\n border-bottom-left-radius: var(--product-radius-half);\n}\n\n@media (min-width: 768px) {\n .radioGroup-module_radio-item__BKOlM {\n padding: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-root__RtJ2M {\n gap: var(--product-spacing-2);\n }\n\n\n .radioGroup-module_radio-item__BKOlM::after {\n right: var(--product-spacing-6);\n }\n\n .radioGroup-module_radio-indicator__-hEEu::after {\n right: calc(var(--product-spacing-6) + 0.5rem);\n }\n}\n');var al={Root:function(n){var r=n.children,o=n.className,s=n.name,u=n.label,c=a(n,["children","className","name","label"]),d=e.useFormContext(),f=d.control,h=d.formState.errors,m=void 0===h?{}:h,g=m&&m[s];return t.createElement(e.Controller,{name:s,control:f,render:function(e){var n=e.field,s=n.onChange,d=a(n,["onChange"]);return t.createElement("fieldset",null,t.createElement(p,{className:tl,as:"legend",variant:"form-input-normal"},u),t.createElement(Xs,i({className:l(o,el,g&&nl),onValueChange:s},c,d,{"aria-required":void 0}),r),g&&t.createElement("p",{className:rl},null==g?void 0:g.message))}})},Item:function(e){var n=e.children,r=e.className,o=a(e,["children","className"]);return t.createElement(Qs,i({className:l(r,ol)},o),t.createElement(p,{variant:"form-input-normal"},n))},Indicator:function(e){var n=e.className,r=a(e,["className"]);return t.createElement(Js,i({className:l(n,il)},r))}},sl="range-module_container__SwhGo",ll="range-module_range-container__iGnY1",ul="range-module_slider__pZtfP",cl="range-module_notches__Zc4Og",dl="range-module_notch__qXs7B",pl="range-module_progress__fElkU",fl="range-module_value-container__8Zt0r";u(".range-module_container__SwhGo {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-6);\n border-radius: var( --product-radius-2);\n}\n\n.range-module_container__SwhGo > div {\n width: 70%;\n}\n\n.range-module_container__SwhGo > p {\n width: 30%;\n text-align: center;\n}\n\n.range-module_range-container__iGnY1 {\n position: relative;\n width: 100%;\n height: 24px;\n background: var(--product-greyscale-0);\n}\n\n/* The slider itself */\n.range-module_slider__pZtfP {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%; /* Full-width */\n height: 24px; /* Specified height */\n background: var(--product-greyscale-10); /* Grey background */\n outline: none; /* Remove outline */\n border-radius: var(--product-radius-2);\n accent-color: var(--product-light-blue-80);\n}\n\n/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */\n.range-module_slider__pZtfP::-webkit-slider-thumb {\n -webkit-appearance: none; /* Override default look */\n appearance: none;\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n\n\n.range-module_slider__pZtfP::-moz-range-thumb {\n position: relative;\n width: 16px; /* Set a specific slider handle width */\n height: 16px; /* Slider handle height */\n background: black; /* Green background */\n cursor: pointer; /* Cursor on hover */\n border-radius: 9999px;\n outline: 1px solid black;\n border: 3px solid white;\n}\n\n.range-module_notches__Zc4Og {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.range-module_notch__qXs7B {\n position: absolute;\n width: 5px;\n height: 5px;\n border-radius: 9999px;\n background-color: var(--product-greyscale-60);\n opacity: 0.1;\n}\n\n.range-module_progress__fElkU {\n position: absolute;\n height: 100%;\n background: var(--product-light-blue-80);\n pointer-events: none;\n border-radius: var(--product-radius-2);\n}\n\n.range-module_value-container__8Zt0r {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n}\n");var hl=function(e){var n=e.id,r=e.min,o=void 0===r?0:r,a=e.max,s=void 0===a?1e3:a,l=e.step,u=void 0===l?100:l,c=e.name,d=e.label,f=e.helper,h=e.error,m=e.field,g=m.value,v=(g-o)/(s-o)*100,y=function(t,e,n){return(e-t)/n};return t.createElement(x,{id:n,label:d,error:null==h?void 0:h.message,helper:null==f?void 0:f.message},t.createElement("div",{className:sl},t.createElement("div",{className:ll},t.createElement("div",{className:cl},Array.from({length:y(o,s,u)}).map((function(e,n){return t.createElement("div",{key:n,className:dl,style:{left:"".concat(n/y(o,s,u)*100,"%")}})}))),t.createElement("div",{className:pl,style:{width:"calc(".concat(v||0,"%)")}}),t.createElement("input",i({id:"".concat(c,"-range"),className:ul,type:"range",min:o,max:s,step:u},m))),t.createElement(p,{className:fl,variant:"content-title-semi-bold"},"£",g)))},ml="select-module_container__Lydyj",gl="select-module_input__Hcrhq",vl="select-module_icon__SCm5W",yl="select-module_input--error__4pQ0M",_l="select-module_input--disabled__zteOi",bl="select-module_error-message__89d1g",xl="select-module_helper-message__VwS-B";u("\n\n.select-module_container__Lydyj {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.select-module_input__Hcrhq {\n all: unset;\n cursor: pointer;\n font-size: var(--product-font-form-input-desktop-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n padding: var(--product-spacing-6);\n background: var(--product-greyscale-0);\n border-radius: var(--product-radius-2);\n border: none;\n}\n\n.select-module_input__Hcrhq:hover {\n border: 1px solid var(--product-greyscale-20);\n}\n\n.select-module_icon__SCm5W {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n}\n\n.select-module_input__Hcrhq:active {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.select-module_input__Hcrhq:focus {\n border: var(--product-border-width-1) solid rgba(var(--primary-dark-rgb));\n}\n\n.select-module_input--error__4pQ0M {\n border: var(--product-border-width-1) solid var(--product-error);\n color: var(--product-error);\n}\n\n.select-module_input--disabled__zteOi {\n color: var(--product-greyscale-60);\n background: var(--product-greyscale-40);\n cursor: not-allowed;\n border: none;\n}\n\n.select-module_error-message__89d1g {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n color: var(--product-error);\n}\n\n.select-module_helper-message__VwS-B {\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n @media (min-width: 768px) {\n .select-module_input__Hcrhq {\n padding: var(--product-spacing-6);\n }\n}\n");var wl=function(e){var n=e.error,r=e.helper,o=e.label,a=e.items,s=e.placeholder,u=e.disabled,c=e.field;return t.createElement("div",{className:ml},t.createElement("label",{className:"sr-only"},o),t.createElement("svg",{className:vl,width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M5.9998 6.9499C5.86647 6.9499 5.74147 6.92907 5.6248 6.8874C5.50814 6.84574 5.3998 6.7749 5.2998 6.6749L0.699805 2.0749C0.516471 1.89157 0.424805 1.65824 0.424805 1.3749C0.424805 1.09157 0.516471 0.858236 0.699805 0.674902C0.883138 0.491569 1.11647 0.399902 1.3998 0.399902C1.68314 0.399902 1.91647 0.491569 2.0998 0.674902L5.9998 4.5749L9.89981 0.674902C10.0831 0.491569 10.3165 0.399902 10.5998 0.399902C10.8831 0.399902 11.1165 0.491569 11.2998 0.674902C11.4831 0.858236 11.5748 1.09157 11.5748 1.3749C11.5748 1.65824 11.4831 1.89157 11.2998 2.0749L6.6998 6.6749C6.5998 6.7749 6.49147 6.84574 6.3748 6.8874C6.25814 6.92907 6.13314 6.9499 5.9998 6.9499Z",fill:"black"})),t.createElement("select",i({className:l(gl,(null==n?void 0:n.message)&&yl,u&&_l)},c),s&&t.createElement("option",{value:"placeholder",disabled:!0},s),a&&a.map((function(e){return t.createElement("option",{key:e.id,value:e.id},e.title)}))),(null==r?void 0:r.message)&&t.createElement(p,{className:xl,as:"span",variant:"form-helper"},r.message),(null==n?void 0:n.message)&&t.createElement(p,{className:bl,as:"p",variant:"form-helper"},n.message))};function El(){var e=t.useState({width:600,height:void 0}),n=e[0],r=e[1];return t.useEffect((function(){function t(){r({width:window.innerWidth||600,height:window.innerHeight})}return window.addEventListener("resize",t,{passive:!0}),t(),function(){return window.removeEventListener("resize",t)}}),[]),n}var Sl={container:"textField-module_container__dwME5",label:"textField-module_label__Pb0Yj",input:"textField-module_input__R8QTX","input--prefix":"textField-module_input--prefix__Fhag6",prefix:"textField-module_prefix__qF3td",inputDescription:"textField-module_inputDescription__nc-XC","container--error":"textField-module_container--error__CJ8JR",error:"textField-module_error__OWiII",helper:"textField-module_helper__arACk",rightContent:"textField-module_rightContent__6xW-l",leftContent:"textField-module_leftContent__XrivE","input--focus":"textField-module_input--focus__ngCQF","input--hover":"textField-module_input--hover__wo5JR"};u(".textField-module_container__dwME5 {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\n.textField-module_label__Pb0Yj {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n}\n\n.textField-module_input__R8QTX {\n all: unset;\n background: var(--product-greyscale-0);\n border: var(--product-border-width-1) solid transparent;\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n}\n\n.textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n padding-top: 1.70rem;\n padding-left: 2rem;\n}\n\n.textField-module_prefix__qF3td {\n position: absolute;\n left: var(--product-spacing-5);\n top: 63%;\n transform: translateY(-50%);\n z-index: 2;\n font-size: 1.125rem;\n}\n\n.textField-module_inputDescription__nc-XC {\n display: flex;\n flex-direction: column;\n gap: var(--product-spacing-2);\n padding-top: var(--product-spacing-2);\n padding-bottom: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.textField-module_container--error__CJ8JR > label {\n color: var(--product-error);\n}\n\n.textField-module_container--error__CJ8JR > input {\n border: var(--product-border-width-1) solid var(--product-error);\n}\n\n.textField-module_error__OWiII {\n color: var(--product-error);\n}\n\n.textField-module_helper__arACk {\n color: rgba(var(--grey-60-rgb));\n}\n\n.textField-module_rightContent__6xW-l {\n position: absolute;\n right: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n.textField-module_leftContent__XrivE {\n position: absolute;\n left: var(--product-spacing-6);\n top: 50%;\n transform: translateY(-50%);\n z-index: 2;\n}\n\n\n.textField-module_input__R8QTX:focus {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input--focus__ngCQF {\n border: var(--product-border-width-1) solid var(--product-greyscale-100);\n}\n\n.textField-module_input__R8QTX:hover {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input--hover__wo5JR {\n outline: var(--product-border-width-1) solid var(--product-greyscale-20);\n}\n\n.textField-module_input__R8QTX:disabled {\n background: var(--product-greyscale-20);\n cursor: not-allowed;\n}\n\n.textField-module_input__R8QTX:disabled:hover {\n outline: none;\n}\n\n\n\n @media (min-width: 768px) {\n .textField-module_input__R8QTX {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n font-size: 1.25rem;\n }\n\n .textField-module_input--prefix__Fhag6 {\n padding: var(--product-spacing-6);\n padding-top: 1.8rem;\n padding-left: 2.5rem;\n }\n\n .textField-module_prefix__qF3td {\n left: var(--product-spacing-6);\n font-size: 1.25rem;\n top: 53%;\n }\n\n .textField-module_label__Pb0Yj {\n left: var(--product-spacing-6);\n }\n}\n\n\n\n\n\n\n\n");var kl,Cl=function(e){var n=e.id,r=e.label,o=e.helper,s=e.error,u=e.type,c=e.prefix,d=e.suffix,p=e.disabled,f=e.className,h=e.rightContent,m=e.leftContent,g=e.field,v=g.value,y=g.onBlur,_=a(g,["value","onBlur"]),b=El().width,x=t.useState(!1),w=x[0],E=x[1],S=""!==v||w,k=b>768,C=o||s,P={focused:{fontSize:k?"1rem":"0.875rem",top:"1rem"},notFocused:{transform:"translateY(-50%)",fontSize:k?"1.25rem":"1.125rem",top:"50%"}};return t.createElement("div",null,t.createElement("div",{className:l(Sl.container,s&&Sl["container--error"])},t.createElement(Ba.label,{className:Sl.label,initial:"notFocused",variants:P,htmlFor:"input-".concat(n),animate:w||""!==v?"focused":"notFocused"},r," ",d&&t.createElement("span",null,d)),t.createElement("input",i({id:"input-".concat(n),className:l(f,Sl["input--".concat(f)],Sl.input,c&&Sl["input--prefix"]),type:u,"aria-describedby":"error-".concat(n),disabled:p,onFocus:function(){return E(!0)},onBlur:function(){y(),E(!1)},value:v},_)),c&&S&&t.createElement("span",{className:Sl.prefix},c),t.createElement("div",null,h&&t.createElement("div",{className:Sl.rightContent},h),m&&t.createElement("div",{className:Sl.leftContent},m))),C&&t.createElement("div",{className:Sl.inputDescription},o&&t.createElement("span",{id:"feedback-".concat(n),className:Sl.helper},o.message),s&&t.createElement("span",{id:"error-".concat(n),className:Sl.error},s.message)))},Pl={exports:{}},Tl={},Rl={exports:{}},Al={};var Ol,Dl,Fl,jl={exports:{}};
2
2
  /**
3
3
  * @license React
4
4
  * react.development.js
@@ -25,5 +25,5 @@
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */"production"===process.env.NODE_ENV?Pl.exports=function(){if(Ml)return Tl;Ml=1;var t=Vl,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:e,type:t,key:u,ref:c,props:l,_owner:o.current}}return Tl.Fragment=n,Tl.jsx=a,Tl.jsxs=a,Tl}():Pl.exports=(Ll||(Ll=1,"production"!==process.env.NODE_ENV&&function(){var t=Vl,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator",g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(e+="%s",n=n.concat([o]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var y,_=!1,b=!1,x=!1,w=!1,E=!1;function S(t){return t.displayName||"Context"}function k(t){if(null==t)return null;if("number"==typeof t.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case s:return S(t)+".Consumer";case a:return S(t._context)+".Provider";case l:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:k(t.type)||"Memo";case p:var f=t,h=f._payload,m=f._init;try{return k(m(h))}catch{return null}}return null}y=Symbol.for("react.module.reference");var C,P,T,R,A,O,D,F=Object.assign,j=0;function M(){}M.__reactDisabledLog=!0;var V,L=g.ReactCurrentDispatcher;function N(t,e,n){if(void 0===V)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||""}return"\n"+V+t}var I,B=!1,z="function"==typeof WeakMap?WeakMap:Map;function U(t,e){if(!t||B)return"";var n,r=I.get(t);if(void 0!==r)return r;B=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===j){C=console.log,P=console.info,T=console.warn,R=console.error,A=console.group,O=console.groupCollapsed,D=console.groupEnd;var t={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}j++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{B=!1,L.current=o,function(){if(0==--j){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},t,{value:C}),info:F({},t,{value:P}),warn:F({},t,{value:T}),error:F({},t,{value:R}),group:F({},t,{value:A}),groupCollapsed:F({},t,{value:O}),groupEnd:F({},t,{value:D})})}j<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",f=p?N(p):"";return"function"==typeof t&&I.set(t,f),f}function $(t,e,n){if(null==t)return"";if("function"==typeof t)return U(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return N(t);switch(t){case u:return N("Suspense");case c:return N("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case l:return function(t,e,n){return U(t,!1)}(t.render);case d:return $(t.type,e,n);case p:var r=t,o=r._payload,i=r._init;try{return $(i(o),e,n)}catch{}}return""}I=new z;var W=Object.prototype.hasOwnProperty,Z={},G=g.ReactDebugCurrentFrame;function H(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function q(t){return Y(t)}function K(t){return""+t}function X(t){if(function(t){try{return K(t),!1}catch{return!0}}(t))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),K(t)}var Q,J,tt,et=g.ReactCurrentOwner,nt={key:!0,ref:!0,__self:!0,__source:!0};tt={};var rt=function(t,n,r,o,i,a,s){var l={$$typeof:e,type:t,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ot(t,e,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(X(n),s=""+n),function(t){if(W.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(X(e.key),s=""+e.key),function(t){if(W.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&et.current&&e&&et.current.stateNode!==e){var n=k(et.current.type);tt[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(et.current.type),t.ref),tt[n]=!0)}}(e,o)),e)W.call(e,i)&&!nt.hasOwnProperty(i)&&(a[i]=e[i]);if(t&&t.defaultProps){var u=t.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(s||l){var c="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&function(t,e){var n=function(){Q||(Q=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(a,c),l&&function(t,e){var n=function(){J||(J=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(a,c)}return rt(t,s,l,o,r,et.current,a)}var it,at=g.ReactCurrentOwner,st=g.ReactDebugCurrentFrame;function lt(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);st.setExtraStackFrame(n)}else st.setExtraStackFrame(null)}function ut(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function ct(){if(at.current){var t=k(at.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}it=!1;var dt={};function pt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=ct();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!dt[n]){dt[n]=!0;var r="";t&&t._owner&&t._owner!==at.current&&(r=" It was passed a child from "+k(t._owner.type)+"."),lt(t),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),lt(null)}}}function ft(t,e){if("object"==typeof t)if(q(t))for(var n=0;n<t.length;n++){var r=t[n];ut(r)&&pt(r,e)}else if(ut(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=h&&t[h]||t[m];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)ut(i.value)&&pt(i.value,e)}}function ht(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=k(n);!function(t,e,n,r,o){var i=Function.call.bind(W);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&(H(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),H(null)),s instanceof Error&&!(s.message in Z)&&(Z[s.message]=!0,H(o),v("Failed %s type: %s",n,s.message),H(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||it||(it=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mt(t,n,h,m,g,S){var C=function(t){return!!("string"==typeof t||"function"==typeof t||t===r||t===i||E||t===o||t===u||t===c||w||t===f||_||b||x||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===y||void 0!==t.getModuleId))}(t);if(!C){var P="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(P+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T,R=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(g);P+=R||ct(),null===t?T="null":q(t)?T="array":void 0!==t&&t.$$typeof===e?(T="<"+(k(t.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):T=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,P)}var A=ot(t,n,h,g,S);if(null==A)return A;if(C){var O=n.children;if(void 0!==O)if(m)if(q(O)){for(var D=0;D<O.length;D++)ft(O[D],t);Object.freeze&&Object.freeze(O)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ft(O,t)}return t===r?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){lt(t),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),lt(null);break}}null!==t.ref&&(lt(t),v("Invalid attribute `ref` supplied to `React.Fragment`."),lt(null))}(A):ht(A),A}var gt=function(t,e,n){return mt(t,e,n,!1)},vt=function(t,e,n){return mt(t,e,n,!0)};Nl.Fragment=r,Nl.jsx=gt,Nl.jsxs=vt}()),Nl);const Il=Pl.exports.jsx;function Bl(...t){return t.filter(Boolean).map((t=>t.trim())).join(" ")}const zl=Vl.forwardRef((({icon:t,onClick:e,as:n,weight:r,fill:o=!1,grade:i,size:a,style:s,color:l,className:u,...c},d)=>{const p=void 0!==e?"button":n??"span",f={color:l,...s};return o&&(f.fontVariationSettings=[f.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),r&&(f.fontVariationSettings=[f.fontVariationSettings,`"wght" ${r}`].filter(Boolean).join(", ")),i&&(f.fontVariationSettings=[f.fontVariationSettings,`"GRAD" ${i}`].filter(Boolean).join(", ")),a&&(f.fontVariationSettings=[f.fontVariationSettings,`"opsz" ${a}`].filter(Boolean).join(", "),f.fontSize=a),Il(p,{...c,ref:d,style:f,onClick:e,className:Bl("material-symbols",u),children:t})}));var Ul={regularMobile:20,regular:24,large:40,xlarge:48},$l={mobileRegularNormal:400,mobileRegularMedium:500,light:200,normal:300,medium:400},Wl=function(e){var n,r=e.size,o=void 0===r?"regular":r,s=e.weight,l=void 0===s?"normal":s,u=a(e,["size","weight"]),c=El().width<768,d=c&&"regular"===o?Ul.regularMobile:Ul[o],p="regular"===o&&c?$l["mobileRegular".concat((n=l,n.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))))]:$l[l];return t.createElement(zl,i({size:d,weight:p},u))},Zl={container:"callout-module_container__fvs15","container--info":"callout-module_container--info__DzX28","container--warning":"callout-module_container--warning__pqM-v","container--error":"callout-module_container--error__TVH7B"};u(".callout-module_container__fvs15 {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-2);\n padding-right: var(--product-spacing-4);\n gap: var(--product-spacing-2);\n border-radius: var(--product-radius-2);\n}\n\n.callout-module_container--info__DzX28 {\n background-color: var(--product-light-blue-20);\n color: var(--product-light-blue-100);\n}\n\n.callout-module_container--warning__pqM-v {\n\n}\n\n.callout-module_container--error__TVH7B {\n \n}\n");var Gl={Root:function(e){var n=e.type,r=void 0===n?"info":n,o=e.children;return t.createElement("div",{className:l(Zl.container,Zl["container--".concat(r)])},o)},Icon:function(e){return t.createElement(Wl,i({},e))},Text:function(e){var n=e.children,r=a(e,["children"]);return t.createElement(p,i({},r),n)}};exports.Button=function(e){var n=e.as,r=e.children,o=e.variant,s=void 0===o?"primary":o,u=e.className,d=void 0===u?"":u,f=e.visualType,h=void 0===f?"button":f,m=e.onlyIcon,g=a(e,["as","children","variant","className","visualType","onlyIcon"]),v=n||"button";return t.createElement(v,i({className:l(c[d],c[s],c[h],m&&c["only-icon"])},g),m&&r,!m&&t.createElement(p,{variant:"form-button"},r))},exports.Callout=Gl,exports.Columns=function(e){var n=e.cols,r=e.children;return t.createElement("div",{className:f,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},exports.DatePicker=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(w,i({},l,{field:i({},n)}))}})},exports.Disclosure=function(e){var n=e.condition,r=e.children;return t.createElement(Ba.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:za},r)},exports.Form=function(n){var r=n.methods,o=n.children,s=n.onSubmit,l=a(n,["methods","children","onSubmit"]);return t.createElement(e.FormProvider,i({},r),t.createElement("form",i({className:Ua,onSubmit:r.handleSubmit((function(t){return s(t)}))},l),o))},exports.Icon=Wl,exports.NumberField=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(qa,i({},l,{field:i({},n)}))}})},exports.RadioGroup=al,exports.Range=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(hl,i({},l,{field:i({},n)}))}})},exports.Select=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(wl,i({},l,{field:i({},n)}))}})},exports.TextField=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=n.name,l=i(i({},n),{error:a&&a[s]});return t.createElement(e.Controller,{name:s,control:o,render:function(e){var n=e.field;return t.createElement(Cl,i({},l,{field:i({},n)}))}})},exports.Typography=p;
28
+ */"production"===process.env.NODE_ENV?Pl.exports=function(){if(Ml)return Tl;Ml=1;var t=Vl,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(t,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(t&&t.defaultProps)for(s in n=t.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:e,type:t,key:u,ref:c,props:l,_owner:o.current}}return Tl.Fragment=n,Tl.jsx=a,Tl.jsxs=a,Tl}():Pl.exports=(Ll||(Ll=1,"production"!==process.env.NODE_ENV&&function(){var t=Vl,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator",g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=g.ReactDebugCurrentFrame,o=r.getStackAddendum();""!==o&&(e+="%s",n=n.concat([o]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i)}("error",t,n)}var y,_=!1,b=!1,x=!1,w=!1,E=!1;function S(t){return t.displayName||"Context"}function k(t){if(null==t)return null;if("number"==typeof t.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case s:return S(t)+".Consumer";case a:return S(t._context)+".Provider";case l:return function(t,e,n){var r=t.displayName;if(r)return r;var o=e.displayName||e.name||"";return""!==o?n+"("+o+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:k(t.type)||"Memo";case p:var f=t,h=f._payload,m=f._init;try{return k(m(h))}catch{return null}}return null}y=Symbol.for("react.module.reference");var C,P,T,R,A,O,D,F=Object.assign,j=0;function M(){}M.__reactDisabledLog=!0;var V,L=g.ReactCurrentDispatcher;function N(t,e,n){if(void 0===V)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);V=r&&r[1]||""}return"\n"+V+t}var I,B=!1,z="function"==typeof WeakMap?WeakMap:Map;function U(t,e){if(!t||B)return"";var n,r=I.get(t);if(void 0!==r)return r;B=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=L.current,L.current=null,function(){if(0===j){C=console.log,P=console.info,T=console.warn,R=console.error,A=console.group,O=console.groupCollapsed,D=console.groupEnd;var t={configurable:!0,enumerable:!0,value:M,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}j++}();try{if(e){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(t){n=t}Reflect.construct(t,[],a)}else{try{a.call()}catch(t){n=t}t.call(a.prototype)}}else{try{throw Error()}catch(t){n=t}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),l=n.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,d),d}}while(u>=1&&c>=0);break}}}finally{B=!1,L.current=o,function(){if(0==--j){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},t,{value:C}),info:F({},t,{value:P}),warn:F({},t,{value:T}),error:F({},t,{value:R}),group:F({},t,{value:A}),groupCollapsed:F({},t,{value:O}),groupEnd:F({},t,{value:D})})}j<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=t?t.displayName||t.name:"",f=p?N(p):"";return"function"==typeof t&&I.set(t,f),f}function $(t,e,n){if(null==t)return"";if("function"==typeof t)return U(t,function(t){var e=t.prototype;return!(!e||!e.isReactComponent)}(t));if("string"==typeof t)return N(t);switch(t){case u:return N("Suspense");case c:return N("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case l:return function(t,e,n){return U(t,!1)}(t.render);case d:return $(t.type,e,n);case p:var r=t,o=r._payload,i=r._init;try{return $(i(o),e,n)}catch{}}return""}I=new z;var W=Object.prototype.hasOwnProperty,Z={},G=g.ReactDebugCurrentFrame;function H(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);G.setExtraStackFrame(n)}else G.setExtraStackFrame(null)}var Y=Array.isArray;function q(t){return Y(t)}function K(t){return""+t}function X(t){if(function(t){try{return K(t),!1}catch{return!0}}(t))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(t){return"function"==typeof Symbol&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}(t)),K(t)}var Q,J,tt,et=g.ReactCurrentOwner,nt={key:!0,ref:!0,__self:!0,__source:!0};tt={};var rt=function(t,n,r,o,i,a,s){var l={$$typeof:e,type:t,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ot(t,e,n,r,o){var i,a={},s=null,l=null;for(i in void 0!==n&&(X(n),s=""+n),function(t){if(W.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(X(e.key),s=""+e.key),function(t){if(W.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(l=e.ref,function(t,e){if("string"==typeof t.ref&&et.current&&e&&et.current.stateNode!==e){var n=k(et.current.type);tt[n]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(et.current.type),t.ref),tt[n]=!0)}}(e,o)),e)W.call(e,i)&&!nt.hasOwnProperty(i)&&(a[i]=e[i]);if(t&&t.defaultProps){var u=t.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(s||l){var c="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&function(t,e){var n=function(){Q||(Q=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"key",{get:n,configurable:!0})}(a,c),l&&function(t,e){var n=function(){J||(J=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(a,c)}return rt(t,s,l,o,r,et.current,a)}var it,at=g.ReactCurrentOwner,st=g.ReactDebugCurrentFrame;function lt(t){if(t){var e=t._owner,n=$(t.type,t._source,e?e.type:null);st.setExtraStackFrame(n)}else st.setExtraStackFrame(null)}function ut(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}function ct(){if(at.current){var t=k(at.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}it=!1;var dt={};function pt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=ct();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!dt[n]){dt[n]=!0;var r="";t&&t._owner&&t._owner!==at.current&&(r=" It was passed a child from "+k(t._owner.type)+"."),lt(t),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),lt(null)}}}function ft(t,e){if("object"==typeof t)if(q(t))for(var n=0;n<t.length;n++){var r=t[n];ut(r)&&pt(r,e)}else if(ut(t))t._store&&(t._store.validated=!0);else if(t){var o=function(t){if(null===t||"object"!=typeof t)return null;var e=h&&t[h]||t[m];return"function"==typeof e?e:null}(t);if("function"==typeof o&&o!==t.entries)for(var i,a=o.call(t);!(i=a.next()).done;)ut(i.value)&&pt(i.value,e)}}function ht(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=k(n);!function(t,e,n,r,o){var i=Function.call.bind(W);for(var a in t)if(i(t,a)){var s=void 0;try{if("function"!=typeof t[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=t[a](e,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(t){s=t}s&&!(s instanceof Error)&&(H(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof s),H(null)),s instanceof Error&&!(s.message in Z)&&(Z[s.message]=!0,H(o),v("Failed %s type: %s",n,s.message),H(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||it||(it=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k(n)||"Unknown"));"function"==typeof n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function mt(t,n,h,m,g,S){var C=function(t){return!!("string"==typeof t||"function"==typeof t||t===r||t===i||E||t===o||t===u||t===c||w||t===f||_||b||x||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===y||void 0!==t.getModuleId))}(t);if(!C){var P="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(P+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T,R=function(t){return void 0!==t?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":""}(g);P+=R||ct(),null===t?T="null":q(t)?T="array":void 0!==t&&t.$$typeof===e?(T="<"+(k(t.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):T=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,P)}var A=ot(t,n,h,g,S);if(null==A)return A;if(C){var O=n.children;if(void 0!==O)if(m)if(q(O)){for(var D=0;D<O.length;D++)ft(O[D],t);Object.freeze&&Object.freeze(O)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ft(O,t)}return t===r?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){lt(t),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),lt(null);break}}null!==t.ref&&(lt(t),v("Invalid attribute `ref` supplied to `React.Fragment`."),lt(null))}(A):ht(A),A}var gt=function(t,e,n){return mt(t,e,n,!1)},vt=function(t,e,n){return mt(t,e,n,!0)};Nl.Fragment=r,Nl.jsx=gt,Nl.jsxs=vt}()),Nl);const Il=Pl.exports.jsx;function Bl(...t){return t.filter(Boolean).map((t=>t.trim())).join(" ")}const zl=Vl.forwardRef((({icon:t,onClick:e,as:n,weight:r,fill:o=!1,grade:i,size:a,style:s,color:l,className:u,...c},d)=>{const p=void 0!==e?"button":n??"span",f={color:l,...s};return o&&(f.fontVariationSettings=[f.fontVariationSettings,'"FILL" 1'].filter(Boolean).join(", ")),r&&(f.fontVariationSettings=[f.fontVariationSettings,`"wght" ${r}`].filter(Boolean).join(", ")),i&&(f.fontVariationSettings=[f.fontVariationSettings,`"GRAD" ${i}`].filter(Boolean).join(", ")),a&&(f.fontVariationSettings=[f.fontVariationSettings,`"opsz" ${a}`].filter(Boolean).join(", "),f.fontSize=a),Il(p,{...c,ref:d,style:f,onClick:e,className:Bl("material-symbols",u),children:t})}));var Ul={regularMobile:20,regular:24,large:40,xlarge:48},$l={mobileRegularNormal:400,mobileRegularMedium:500,light:200,normal:300,medium:400},Wl=function(e){var n,r=e.size,o=void 0===r?"regular":r,s=e.weight,l=void 0===s?"normal":s,u=a(e,["size","weight"]),c=El().width<768,d=c&&"regular"===o?Ul.regularMobile:Ul[o],p="regular"===o&&c?$l["mobileRegular".concat((n=l,n.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))))]:$l[l];return t.createElement(zl,i({size:d,weight:p},u))},Zl={container:"callout-module_container__fvs15","container--info":"callout-module_container--info__DzX28","container--warning":"callout-module_container--warning__pqM-v","container--error":"callout-module_container--error__TVH7B"};u(".callout-module_container__fvs15 {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: -moz-fit-content;\n width: fit-content;\n padding: var(--product-spacing-2);\n padding-right: var(--product-spacing-4);\n gap: var(--product-spacing-2);\n border-radius: var(--product-radius-2);\n}\n\n.callout-module_container--info__DzX28 {\n background-color: var(--product-light-blue-20);\n color: var(--product-light-blue-100);\n}\n\n.callout-module_container--warning__pqM-v {\n\n}\n\n.callout-module_container--error__TVH7B {\n \n}\n");var Gl={Root:function(e){var n=e.type,r=void 0===n?"info":n,o=e.children;return t.createElement("div",{className:l(Zl.container,Zl["container--".concat(r)])},o)},Icon:function(e){return t.createElement(Wl,i({},e))},Text:function(e){var n=e.children,r=a(e,["children"]);return t.createElement(p,i({},r),n)}};exports.Button=function(e){var n=e.as,r=e.children,o=e.variant,s=void 0===o?"primary":o,u=e.className,d=void 0===u?"":u,f=e.visualType,h=void 0===f?"button":f,m=e.onlyIcon,g=a(e,["as","children","variant","className","visualType","onlyIcon"]),v=n||"button";return t.createElement(v,i({className:l(c[d],c[s],c[h],m&&c["only-icon"])},g),m&&r,!m&&t.createElement(p,{variant:"form-button"},r))},exports.Callout=Gl,exports.Columns=function(e){var n=e.cols,r=e.children;return t.createElement("div",{className:f,style:{gridTemplateColumns:"repeat(".concat(n,", 1fr)")}},r)},exports.DatePicker=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=void 0===a?{}:a,l=n.name,u=i(i({},n),{error:s&&s[l]});return t.createElement(e.Controller,{name:l,control:o,render:function(e){var n=e.field;return t.createElement(w,i({},u,{field:i({},n)}))}})},exports.Disclosure=function(e){var n=e.condition,r=e.children;return t.createElement(Ba.div,{initial:"collapsed",animate:n?"open":"collapsed",variants:za},r)},exports.Form=function(n){var r=n.methods,o=n.children,s=n.onSubmit,l=a(n,["methods","children","onSubmit"]);return t.createElement(e.FormProvider,i({},r),t.createElement("form",i({className:Ua,onSubmit:r.handleSubmit((function(t){return s(t)}))},l),o))},exports.Icon=Wl,exports.NumberField=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=void 0===a?{}:a,l=n.name,u=i(i({},n),{error:s&&s[l]});return t.createElement(e.Controller,{name:l,control:o,render:function(e){var n=e.field;return t.createElement(qa,i({},u,{field:i({},n)}))}})},exports.RadioGroup=al,exports.Range=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=void 0===a?{}:a,l=n.name,u=i(i({},n),{error:s&&s[l]});return t.createElement(e.Controller,{name:l,control:o,render:function(e){var n=e.field;return t.createElement(hl,i({},u,{field:i({},n)}))}})},exports.Select=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=void 0===a?{}:a,l=n.name,u=i(i({},n),{error:s&&s[l]});return t.createElement(e.Controller,{name:l,control:o,render:function(e){var n=e.field;return t.createElement(wl,i({},u,{field:i({},n)}))}})},exports.TextField=function(n){var r=e.useFormContext(),o=r.control,a=r.formState.errors,s=void 0===a?{}:a,l=n.name,u=i(i({},n),{error:s&&s[l]});return t.createElement(e.Controller,{name:l,control:o,render:function(e){var n=e.field;return t.createElement(Cl,i({},u,{field:i({},n)}))}})},exports.Typography=p;
29
29
  //# sourceMappingURL=index.js.map