@local-logic/design-system 0.7.27 → 0.7.28
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/components/Form/Root/Checkbox/styles.d.ts +3 -3
- package/dist/components/Form/Root/Checkbox/styles.d.ts.map +1 -1
- package/dist/components/Form/Root/Input/index.d.ts.map +1 -1
- package/dist/components/Form/Root/styles.d.ts +1 -1
- package/dist/index.es.js +5 -4
- package/dist/index.umd.js +5 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const container = "\n group/checkbox\n data-[is-disabled=true]:pointer-events-none\n data-[is-disabled=true]:cursor-default\n";
|
|
2
|
-
export declare const checkbox = "\n w-5 h-5 rounded-md bg-white\n peer relative shrink-0\n appearance-none transition-colors\n border border-neutral-400\n
|
|
3
|
-
export declare const label = "\n text-sm text-neutral-400 font-normal\n\n group-hover/checkbox:text-base-black\n\n peer-checked:hover:text-base-black\n group-data-[is-disabled=true]/checkbox:text-neutral-300\n\n flex gap-2 cursor-pointer\n";
|
|
1
|
+
export declare const container = "\n group/checkbox\n \n data-[is-disabled=true]:pointer-events-none\n data-[is-disabled=true]:cursor-default\n";
|
|
2
|
+
export declare const checkbox = "\n w-5 h-5 rounded-md bg-white\n peer relative shrink-0\n appearance-none transition-colors\n border border-neutral-400\n\n group-hover/checkbox:border-base-black\n \n checked:bg-primary-100\n checked:border-0\n checked:hover:bg-primary-200\n\n disabled:border-neutral-300\n disabled:checked:bg-neutral-300\n data-[has-error=true]:border-feedback-danger-200\n";
|
|
3
|
+
export declare const label = "\n text-sm text-neutral-400 font-normal\n transition-colors\n group-hover/checkbox:text-base-black\n\n peer-checked:hover:text-base-black\n group-data-[is-disabled=true]/checkbox:text-neutral-300\n\n flex gap-2 cursor-pointer\n";
|
|
4
4
|
export declare const icon = "absolute w-4 h-4 ml-0.5 mt-0.5 hidden peer-checked:block fill-white";
|
|
5
5
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Root/Checkbox/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Root/Checkbox/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,sHAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,yXAepB,CAAC;AAEF,eAAO,MAAM,KAAK,8OASjB,CAAC;AAEF,eAAO,MAAM,IAAI,wEAAwE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Root/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQ9D,wBAAgB,KAAK,CAAC,EACpB,IAAI,EACJ,KAAK,EACL,IAAa,EACb,UAAU,EACV,SAAe,EACf,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,OAAO,EACP,MAAM,GACP,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Form/Root/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQ9D,wBAAgB,KAAK,CAAC,EACpB,IAAI,EACJ,KAAK,EACL,IAAa,EACb,UAAU,EACV,SAAe,EACf,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,SAAS,EACT,cAAc,EACd,QAAQ,EACR,OAAO,EACP,MAAM,GACP,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,qBA8DA"}
|
package/dist/index.es.js
CHANGED
|
@@ -6342,7 +6342,7 @@ var Pb = /* @__PURE__ */ function(e) {
|
|
|
6342
6342
|
return d && f ? a ? me(a) ? a(f) : null : c ? me(c) ? c(f) : null : o ? Ne(o, u, f) : f : null;
|
|
6343
6343
|
}, t;
|
|
6344
6344
|
}(so), Co = /* @__PURE__ */ Tb(Pb);
|
|
6345
|
-
const su = $e.createContext({}), Ir = () => ge(su), Cb = "w-full", Mo = "flex
|
|
6345
|
+
const su = $e.createContext({}), Ir = () => ge(su), Cb = "w-full", Mo = "flex ml-5 mt-2 text-xs text-feedback-danger-200";
|
|
6346
6346
|
function Mb({
|
|
6347
6347
|
disableOnSubmit: e,
|
|
6348
6348
|
disableOnNotDirty: t,
|
|
@@ -11244,7 +11244,7 @@ function $d({
|
|
|
11244
11244
|
}, v = (w) => {
|
|
11245
11245
|
typeof u < "u" && u(w);
|
|
11246
11246
|
}, T = (w) => {
|
|
11247
|
-
typeof d < "u" && d(w);
|
|
11247
|
+
typeof d < "u" && d(w), y.onBlur(w);
|
|
11248
11248
|
};
|
|
11249
11249
|
return /* @__PURE__ */ oe("div", { className: Dt(cE, a || ""), children: [
|
|
11250
11250
|
/* @__PURE__ */ C(
|
|
@@ -11435,6 +11435,7 @@ function jd({
|
|
|
11435
11435
|
}
|
|
11436
11436
|
const SE = `
|
|
11437
11437
|
group/checkbox
|
|
11438
|
+
|
|
11438
11439
|
data-[is-disabled=true]:pointer-events-none
|
|
11439
11440
|
data-[is-disabled=true]:cursor-default
|
|
11440
11441
|
`, AE = `
|
|
@@ -11442,7 +11443,7 @@ const SE = `
|
|
|
11442
11443
|
peer relative shrink-0
|
|
11443
11444
|
appearance-none transition-colors
|
|
11444
11445
|
border border-neutral-400
|
|
11445
|
-
|
|
11446
|
+
|
|
11446
11447
|
group-hover/checkbox:border-base-black
|
|
11447
11448
|
|
|
11448
11449
|
checked:bg-primary-100
|
|
@@ -11454,7 +11455,7 @@ const SE = `
|
|
|
11454
11455
|
data-[has-error=true]:border-feedback-danger-200
|
|
11455
11456
|
`, PE = `
|
|
11456
11457
|
text-sm text-neutral-400 font-normal
|
|
11457
|
-
|
|
11458
|
+
transition-colors
|
|
11458
11459
|
group-hover/checkbox:text-base-black
|
|
11459
11460
|
|
|
11460
11461
|
peer-checked:hover:text-base-black
|
package/dist/index.umd.js
CHANGED
|
@@ -115,7 +115,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
115
115
|
* LICENSE file in the root directory of this source tree.
|
|
116
116
|
*/var yc;function kv(){if(yc)return K;yc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var P=b.$$typeof;switch(P){case t:switch(b=b.type,b){case c:case l:case r:case i:case o:case d:return b;default:switch(b=b&&b.$$typeof,b){case a:case u:case y:case p:case s:return b;default:return P}}case n:return P}}}function C(b){return w(b)===l}return K.AsyncMode=c,K.ConcurrentMode=l,K.ContextConsumer=a,K.ContextProvider=s,K.Element=t,K.ForwardRef=u,K.Fragment=r,K.Lazy=y,K.Memo=p,K.Portal=n,K.Profiler=i,K.StrictMode=o,K.Suspense=d,K.isAsyncMode=function(b){return C(b)||w(b)===c},K.isConcurrentMode=C,K.isContextConsumer=function(b){return w(b)===a},K.isContextProvider=function(b){return w(b)===s},K.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},K.isForwardRef=function(b){return w(b)===u},K.isFragment=function(b){return w(b)===r},K.isLazy=function(b){return w(b)===y},K.isMemo=function(b){return w(b)===p},K.isPortal=function(b){return w(b)===n},K.isProfiler=function(b){return w(b)===i},K.isStrictMode=function(b){return w(b)===o},K.isSuspense=function(b){return w(b)===d},K.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===l||b===i||b===o||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===y||b.$$typeof===p||b.$$typeof===s||b.$$typeof===a||b.$$typeof===u||b.$$typeof===g||b.$$typeof===v||b.$$typeof===x||b.$$typeof===m)},K.typeOf=w,K}var H={},vc;function Fv(){return vc||(vc=1,z.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(I){return typeof I=="string"||typeof I=="function"||I===r||I===l||I===i||I===o||I===d||I===f||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===p||I.$$typeof===s||I.$$typeof===a||I.$$typeof===u||I.$$typeof===g||I.$$typeof===v||I.$$typeof===x||I.$$typeof===m)}function C(I){if(typeof I=="object"&&I!==null){var on=I.$$typeof;switch(on){case t:var sn=I.type;switch(sn){case c:case l:case r:case i:case o:case d:return sn;default:var Mr=sn&&sn.$$typeof;switch(Mr){case a:case u:case y:case p:case s:return Mr;default:return on}}case n:return on}}}var b=c,P=l,A=a,M=s,R=t,U=u,oe=r,me=y,ie=p,L=n,Z=i,se=o,$=d,D=!1;function fe(I){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),we(I)||C(I)===c}function we(I){return C(I)===l}function Pe(I){return C(I)===a}function Ee(I){return C(I)===s}function Q(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function ce(I){return C(I)===u}function Me(I){return C(I)===r}function Ft(I){return C(I)===y}function te(I){return C(I)===p}function Rt(I){return C(I)===n}function Qe(I){return C(I)===i}function Je(I){return C(I)===o}function et(I){return C(I)===d}H.AsyncMode=b,H.ConcurrentMode=P,H.ContextConsumer=A,H.ContextProvider=M,H.Element=R,H.ForwardRef=U,H.Fragment=oe,H.Lazy=me,H.Memo=ie,H.Portal=L,H.Profiler=Z,H.StrictMode=se,H.Suspense=$,H.isAsyncMode=fe,H.isConcurrentMode=we,H.isContextConsumer=Pe,H.isContextProvider=Ee,H.isElement=Q,H.isForwardRef=ce,H.isFragment=Me,H.isLazy=Ft,H.isMemo=te,H.isPortal=Rt,H.isProfiler=Qe,H.isStrictMode=Je,H.isSuspense=et,H.isValidElementType=w,H.typeOf=C}()),H}var bc;function Rv(){return bc||(bc=1,z.env.NODE_ENV==="production"?or.exports=kv():or.exports=Fv()),or.exports}var vo,wc;function Iv(){if(wc)return vo;wc=1;var e=Rv(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(f){var v=d(m);v&&v!==f&&p(y,v,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var w=s(y),C=s(m),b=0;b<x.length;++b){var P=x[b];if(!n[P]&&!(g&&g[P])&&!(C&&C[P])&&!(w&&w[P])){var A=u(m,P);try{a(y,P,A)}catch{}}}}return y}return vo=p,vo}var Nv=Iv();const Vv=lc(Nv);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function Tc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function lt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ec(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ir=E.createContext(void 0);ir.displayName="FormikContext";var Lv=ir.Provider,_v=ir.Consumer;function xt(){var e=E.useContext(ir);return e||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ae()),e}var xc=function(t){return Array.isArray(t)&&t.length===0},pe=function(t){return typeof t=="function"},zt=function(t){return t!==null&&typeof t=="object"},jv=function(t){return String(Math.floor(Number(t)))===t},bo=function(t){return Object.prototype.toString.call(t)==="[object String]"},wo=function(t){return E.Children.count(t)===0},To=function(t){return zt(t)&&pe(t.then)};function Bv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function J(e,t,n,r){r===void 0&&(r=0);for(var o=gc(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function Be(e,t,n){for(var r=dc(e),o=r,i=0,s=gc(t);i<s.length-1;i++){var a=s[i],c=J(e,s.slice(0,i+1));if(c&&(zt(c)||Array.isArray(c)))o=o[a]=dc(c);else{var l=s[i+1];o=o[a]=jv(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function Sc(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];zt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Sc(a,t,n,r[s])):r[s]=t}return r}function Uv(e,t){switch(t.type){case"SET_VALUES":return G({},e,{values:t.payload});case"SET_TOUCHED":return G({},e,{touched:t.payload});case"SET_ERRORS":return ct(e.errors,t.payload)?e:G({},e,{errors:t.payload});case"SET_STATUS":return G({},e,{status:t.payload});case"SET_ISSUBMITTING":return G({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return G({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return G({},e,{values:Be(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return G({},e,{touched:Be(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return G({},e,{errors:Be(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return G({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return G({},e,{touched:Sc(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return G({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return G({},e,{isSubmitting:!1});default:return e}}var St={},sr={};function $v(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,d=lt(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=G({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},d),p=E.useRef(f.initialValues),y=E.useRef(f.initialErrors||St),m=E.useRef(f.initialTouched||sr),g=E.useRef(f.initialStatus),v=E.useRef(!1),x=E.useRef({});z.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(z.env.NODE_ENV!=="production"?ae(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ae())},[]),E.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var w=E.useState(0),C=w[1],b=E.useRef({values:gn(f.initialValues),errors:gn(f.initialErrors)||St,touched:gn(f.initialTouched)||sr,status:gn(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),P=b.current,A=E.useCallback(function(S){var O=b.current;b.current=Uv(O,S),O!==b.current&&C(function(N){return N+1})},[]),M=E.useCallback(function(S,O){return new Promise(function(N,V){var B=f.validate(S,O);B==null?N(St):To(B)?B.then(function(W){N(W||St)},function(W){z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),V(W)}):N(B)})},[f.validate]),R=E.useCallback(function(S,O){var N=f.validationSchema,V=pe(N)?N(O):N,B=O&&V.validateAt?V.validateAt(O,S):Kv(S,V);return new Promise(function(W,ye){B.then(function(){W(St)},function(We){We.name==="ValidationError"?W(zv(We)):(z.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",We),ye(We))})})},[f.validationSchema]),U=E.useCallback(function(S,O){return new Promise(function(N){return N(x.current[S].validate(O))})},[]),oe=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(V){return pe(x.current[V].validate)}),N=O.length>0?O.map(function(V){return U(V,J(S,V))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(N).then(function(V){return V.reduce(function(B,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&(B=Be(B,O[ye],W)),B},{})})},[U]),me=E.useCallback(function(S){return Promise.all([oe(S),f.validationSchema?R(S):{},f.validate?M(S):{}]).then(function(O){var N=O[0],V=O[1],B=O[2],W=eo.all([N,V,B],{arrayMerge:Hv});return W})},[f.validate,f.validationSchema,oe,M,R]),ie=De(function(S){return S===void 0&&(S=P.values),A({type:"SET_ISVALIDATING",payload:!0}),me(S).then(function(O){return v.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&v.current===!0&&ct(p.current,f.initialValues)&&ie(p.current)},[s,ie]);var L=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,N=S&&S.errors?S.errors:y.current?y.current:f.initialErrors||{},V=S&&S.touched?S.touched:m.current?m.current:f.initialTouched||{},B=S&&S.status?S.status:g.current?g.current:f.initialStatus;p.current=O,y.current=N,m.current=V,g.current=B;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:N,touched:V,status:B,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(f.onReset){var ye=f.onReset(P.values,on);To(ye)?ye.then(W):W()}else W()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);E.useEffect(function(){v.current===!0&&!ct(p.current,f.initialValues)&&l&&(p.current=f.initialValues,L(),s&&ie(p.current))},[l,f.initialValues,L,s,ie]),E.useEffect(function(){l&&v.current===!0&&!ct(y.current,f.initialErrors)&&(y.current=f.initialErrors||St,A({type:"SET_ERRORS",payload:f.initialErrors||St}))},[l,f.initialErrors]),E.useEffect(function(){l&&v.current===!0&&!ct(m.current,f.initialTouched)&&(m.current=f.initialTouched||sr,A({type:"SET_TOUCHED",payload:f.initialTouched||sr}))},[l,f.initialTouched]),E.useEffect(function(){l&&v.current===!0&&!ct(g.current,f.initialStatus)&&(g.current=f.initialStatus,A({type:"SET_STATUS",payload:f.initialStatus}))},[l,f.initialStatus,f.initialTouched]);var Z=De(function(S){if(x.current[S]&&pe(x.current[S].validate)){var O=J(P.values,S),N=x.current[S].validate(O);return To(N)?(A({type:"SET_ISVALIDATING",payload:!0}),N.then(function(V){return V}).then(function(V){A({type:"SET_FIELD_ERROR",payload:{field:S,value:V}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:N}}),Promise.resolve(N))}else if(f.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),R(P.values,S).then(function(V){return V}).then(function(V){A({type:"SET_FIELD_ERROR",payload:{field:S,value:J(V,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),se=E.useCallback(function(S,O){var N=O.validate;x.current[S]={validate:N}},[]),$=E.useCallback(function(S){delete x.current[S]},[]),D=De(function(S,O){A({type:"SET_TOUCHED",payload:S});var N=O===void 0?o:O;return N?ie(P.values):Promise.resolve()}),fe=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=De(function(S,O){var N=pe(S)?S(P.values):S;A({type:"SET_VALUES",payload:N});var V=O===void 0?n:O;return V?ie(N):Promise.resolve()}),Pe=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),Ee=De(function(S,O,N){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var V=N===void 0?n:N;return V?ie(Be(P.values,S,O)):Promise.resolve()}),Q=E.useCallback(function(S,O){var N=O,V=S,B;if(!bo(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,We=W.name,es=W.id,ts=W.value,px=W.checked,mx=W.outerHTML,Yd=W.options,gx=W.multiple;N=O||We||es,!N&&z.env.NODE_ENV!=="production"&&Ac({htmlContent:mx,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),V=/number|range/.test(ye)?(B=parseFloat(ts),isNaN(B)?"":B):/checkbox/.test(ye)?Yv(J(P.values,N),px,ts):Yd&&gx?Gv(Yd):ts}N&&Ee(N,V)},[Ee,P.values]),ce=De(function(S){if(bo(S))return function(O){return Q(O,S)};Q(S)}),Me=De(function(S,O,N){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var V=N===void 0?o:N;return V?ie(P.values):Promise.resolve()}),Ft=E.useCallback(function(S,O){S.persist&&S.persist();var N=S.target,V=N.name,B=N.id,W=N.outerHTML,ye=O||V||B;!ye&&z.env.NODE_ENV!=="production"&&Ac({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Me(ye,!0)},[Me]),te=De(function(S){if(bo(S))return function(O){return Ft(O,S)};Ft(S)}),Rt=E.useCallback(function(S){pe(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),Qe=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),Je=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),et=De(function(){return A({type:"SUBMIT_ATTEMPT"}),ie().then(function(S){var O=S instanceof Error,N=!O&&Object.keys(S).length===0;if(N){var V;try{if(V=sn(),V===void 0)return}catch(B){throw B}return Promise.resolve(V).then(function(B){return v.current&&A({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(v.current)throw A({type:"SUBMIT_FAILURE"}),B})}else if(v.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),I=De(function(S){if(S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),z.env.NODE_ENV!=="production"&&typeof document<"u"){var O=Bv();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(z.env.NODE_ENV!=="production"?ae(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):ae()))}et().catch(function(N){console.warn("Warning: An unhandled error was caught from submitForm()",N)})}),on={resetForm:L,validateForm:ie,validateField:Z,setErrors:fe,setFieldError:Pe,setFieldTouched:Me,setFieldValue:Ee,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,setFormikState:Rt,submitForm:et},sn=De(function(){return u(P.values,on)}),Mr=De(function(S){S&&S.preventDefault&&pe(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&pe(S.stopPropagation)&&S.stopPropagation(),L()}),lx=E.useCallback(function(S){return{value:J(P.values,S),error:J(P.errors,S),touched:!!J(P.touched,S),initialValue:J(p.current,S),initialTouched:!!J(m.current,S),initialError:J(y.current,S)}},[P.errors,P.touched,P.values]),ux=E.useCallback(function(S){return{setValue:function(N,V){return Ee(S,N,V)},setTouched:function(N,V){return Me(S,N,V)},setError:function(N){return Pe(S,N)}}},[Ee,Me,Pe]),dx=E.useCallback(function(S){var O=zt(S),N=O?S.name:S,V=J(P.values,N),B={name:N,value:V,onChange:ce,onBlur:te};if(O){var W=S.type,ye=S.value,We=S.as,es=S.multiple;W==="checkbox"?ye===void 0?B.checked=!!V:(B.checked=!!(Array.isArray(V)&&~V.indexOf(ye)),B.value=ye):W==="radio"?(B.checked=V===ye,B.value=ye):We==="select"&&es&&(B.value=B.value||[],B.multiple=!0)}return B},[te,ce,P.values]),Ji=E.useMemo(function(){return!ct(p.current,P.values)},[p.current,P.values]),fx=E.useMemo(function(){return typeof a<"u"?Ji?P.errors&&Object.keys(P.errors).length===0:a!==!1&&pe(a)?a(f):a:P.errors&&Object.keys(P.errors).length===0},[a,Ji,P.errors,f]),hx=G({},P,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ce,handleReset:Mr,handleSubmit:I,resetForm:L,setErrors:fe,setFormikState:Rt,setFieldTouched:Me,setFieldValue:Ee,setFieldError:Pe,setStatus:Qe,setSubmitting:Je,setTouched:D,setValues:we,submitForm:et,validateForm:ie,validateField:Z,isValid:fx,dirty:Ji,unregisterField:$,registerField:se,getFieldProps:dx,getFieldMeta:lx,getFieldHelpers:ux,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return hx}function Wv(e){var t=$v(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),z.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(z.env.NODE_ENV!=="production"?ae(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):ae())},[]),E.createElement(Lv,{value:t},n?E.createElement(n,t):o?o(t):r?pe(r)?r(t):wo(r)?null:E.Children.only(r):null)}function Ac(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
|
|
117
117
|
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
|
|
118
|
-
`)}function zv(e){var t={};if(e.inner){if(e.inner.length===0)return Be(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;J(t,s.path)||(t=Be(t,s.path,s.message))}}return t}function Kv(e,t,n,r){n===void 0&&(n=!1);var o=Eo(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function Eo(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||Ta(o)?Eo(o):o!==""?o:void 0}):Ta(e[r])?t[r]=Eo(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Hv(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?eo(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=eo(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function Gv(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Yv(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var Zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function De(e){var t=E.useRef(e);return Zv(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function yn(e){var t=xt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=zt(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),z.env.NODE_ENV!=="production"&&(t||(z.env.NODE_ENV!=="production"?ae(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):ae())),l||(z.env.NODE_ENV!=="production"?ae(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):ae());var d=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),d]}function xo(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=lt(e,["validate","name","render","children","as","component","className"]),l=xt(),u=lt(l,["validate","validationSchema"]);z.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(z.env.NODE_ENV!=="production"?ae(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):ae()),i&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ae()),s&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ae()),r&&o&&!wo(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ae())},[]);var d=u.registerField,f=u.unregisterField;E.useEffect(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var p=u.getFieldProps(G({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(G({},m,{meta:y}));if(pe(o))return o(G({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,v=lt(c,["innerRef"]);return E.createElement(s,G({ref:g},p,v,{className:a}),o)}return E.createElement(s,G({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var w=c.innerRef,C=lt(c,["innerRef"]);return E.createElement(x,G({ref:w},p,C,{className:a}),o)}return E.createElement(x,G({},p,c,{className:a}),o)}var Xv=E.forwardRef(function(e,t){var n=e.action,r=lt(e,["action"]),o=n??"#",i=xt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",G({onSubmit:a,ref:t,onReset:s,action:o},r))});Xv.displayName="Form";function qv(e){var t=function(o){return E.createElement(_v,null,function(i){return i||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):ae()),E.createElement(e,G({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Vv(t,e)}var Qv=function(t,n,r){var o=At(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},Jv=function(t,n,r){var o=At(t),i=o[n];return o[n]=o[r],o[r]=i,o},So=function(t,n,r){var o=At(t);return o.splice(n,0,r),o},eb=function(t,n,r){var o=At(t);return o[n]=r,o},At=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(G({},t,{length:n+1}))}else return[]},Cc=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||zt(o)){var i=At(o);return r(i)}return o}},tb=function(e){Tc(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(d){var f=Cc(a,i),p=Cc(s,i),y=Be(d.values,l,i(J(d.values,l))),m=a?f(J(d.errors,l)):void 0,g=s?p(J(d.touched,l)):void 0;return xc(m)&&(m=void 0),xc(g)&&(g=void 0),G({},d,{values:y,errors:a?Be(d.errors,l,m):d.errors,touched:s?Be(d.touched,l,g):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(At(s),[gn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return Jv(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return Qv(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return So(a,i,s)},function(a){return So(a,i,null)},function(a){return So(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return eb(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Ec(o)),o.pop=o.pop.bind(Ec(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ct(J(o.formik.values,o.name),J(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?At(s):[];return i||(i=a[o]),pe(a.splice)&&a.splice(o,1),pe(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,d=lt(u,["validate","validationSchema"]),f=G({},o,{form:d,name:l});return s?E.createElement(s,f):a?a(f):c?typeof c=="function"?c(f):wo(c)?null:E.Children.only(c):null},t}(E.Component);tb.defaultProps={validateOnChange:!0};var nb=function(e){Tc(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return J(this.props.formik.errors,this.props.name)!==J(o.formik.errors,this.props.name)||J(this.props.formik.touched,this.props.name)!==J(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=lt(o,["component","formik","render","children","name"]),d=J(s.touched,l),f=J(s.errors,l);return d&&f?a?pe(a)?a(f):null:c?pe(c)?c(f):null:i?E.createElement(i,u,f):f:null},t}(E.Component),Ao=qv(nb);const Pc=E.createContext({}),ar=()=>E.useContext(Pc),rb="w-full",Co="flex mx-4 mt-2 text-xs text-feedback-danger-200";function ob({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=xt(),{isForcedDirty:c,onNavigationEvent:l}=ar(),u=f=>{l(()=>o.onClick)},d=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return T.jsx(Nr,{...o,isDisabled:d,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}const Po=E.createContext({});function Mo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Do=typeof window<"u",Mc=Do?E.useLayoutEffect:E.useEffect,cr=E.createContext(null);function Oo(e,t){e.indexOf(t)===-1&&e.push(t)}function ko(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ze=(e,t,n)=>n>t?t:n<e?e:n;function Fo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Kt=()=>{},Xe=()=>{};z.env.NODE_ENV!=="production"&&(Kt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Fo(t,n))},Xe=(e,t,n)=>{if(!e)throw new Error(Fo(t,n))});const qe={},Dc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Oc(e){return typeof e=="object"&&e!==null}const kc=e=>/^0[^.\s]+$/u.test(e);function Ro(e){let t;return()=>(t===void 0&&(t=e()),t)}const Oe=e=>e,ib=(e,t)=>n=>t(e(n)),vn=(...e)=>e.reduce(ib),bn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Io{constructor(){this.subscriptions=[]}add(t){return Oo(this.subscriptions,t),()=>ko(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ne=e=>e*1e3,Ue=e=>e/1e3;function Fc(e,t){return t?e*(1e3/t):0}const Rc=new Set;function No(e,t,n){e||Rc.has(t)||(console.warn(Fo(t,n)),Rc.add(t))}const Ic=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sb=1e-7,ab=12;function cb(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ic(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>sb&&++a<ab);return s}function wn(e,t,n,r){if(e===t&&n===r)return Oe;const o=i=>cb(i,0,1,e,n);return i=>i===0||i===1?i:Ic(o(i),t,r)}const Nc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vc=e=>t=>1-e(1-t),Lc=wn(.33,1.53,.69,.99),Vo=Vc(Lc),_c=Nc(Vo),jc=e=>(e*=2)<1?.5*Vo(e):.5*(2-Math.pow(2,-10*(e-1))),Lo=e=>1-Math.sin(Math.acos(e)),Bc=Vc(Lo),Uc=Nc(Lo),lb=wn(.42,0,1,1),ub=wn(0,0,.58,1),$c=wn(.42,0,.58,1),db=e=>Array.isArray(e)&&typeof e[0]!="number",Wc=e=>Array.isArray(e)&&typeof e[0]=="number",zc={linear:Oe,easeIn:lb,easeInOut:$c,easeOut:ub,circIn:Lo,circInOut:Uc,circOut:Bc,backIn:Vo,backInOut:_c,backOut:Lc,anticipate:jc},fb=e=>typeof e=="string",Kc=e=>{if(Wc(e)){Xe(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return wn(t,n,r,o)}else if(fb(e))return Xe(zc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),zc[e];return e},lr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hb(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const y=f&&o?n:r;return d&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const pb=40;function Hc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=lr.reduce((w,C)=>(w[C]=hb(i),w),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:y}=s,m=()=>{const w=qe.useManualTiming?o.timestamp:performance.now();n=!1,qe.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,pb),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.process(o),f.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:lr.reduce((w,C)=>{const b=s[C];return w[C]=(P,A=!1,M=!1)=>(n||g(),b.schedule(P,A,M)),w},{}),cancel:w=>{for(let C=0;C<lr.length;C++)s[lr[C]].cancel(w)},state:o,steps:s}}const{schedule:ee,cancel:ut,state:ve,steps:_o}=Hc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let ur;function mb(){ur=void 0}const Ae={now:()=>(ur===void 0&&Ae.set(ve.isProcessing||qe.useManualTiming?ve.timestamp:performance.now()),ur),set:e=>{ur=e,queueMicrotask(mb)}},Gc=e=>t=>typeof t=="string"&&t.startsWith(e),jo=Gc("--"),gb=Gc("var(--"),Bo=e=>gb(e)?yb.test(e.split("/*")[0].trim()):!1,yb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ht={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tn={...Ht,transform:e=>Ze(0,1,e)},dr={...Ht,default:1},En=e=>Math.round(e*1e5)/1e5,Uo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vb(e){return e==null}const bb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$o=(e,t)=>n=>!!(typeof n=="string"&&bb.test(n)&&n.startsWith(e)||t&&!vb(n)&&Object.prototype.hasOwnProperty.call(n,t)),Yc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Uo);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},wb=e=>Ze(0,255,e),Wo={...Ht,transform:e=>Math.round(wb(e))},Ct={test:$o("rgb","red"),parse:Yc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wo.transform(e)+", "+Wo.transform(t)+", "+Wo.transform(n)+", "+En(Tn.transform(r))+")"};function Tb(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const zo={test:$o("#"),parse:Tb,transform:Ct.transform},xn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dt=xn("deg"),$e=xn("%"),_=xn("px"),Eb=xn("vh"),xb=xn("vw"),Zc={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},Gt={test:$o("hsl","hue"),parse:Yc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$e.transform(En(t))+", "+$e.transform(En(n))+", "+En(Tn.transform(r))+")"},de={test:e=>Ct.test(e)||zo.test(e)||Gt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):Gt.test(e)?Gt.parse(e):zo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ct.transform(e):Gt.transform(e),getAnimatableNone:e=>{const t=de.parse(e);return t.alpha=0,de.transform(t)}},Sb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ab(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uo))==null?void 0:t.length)||0)+(((n=e.match(Sb))==null?void 0:n.length)||0)>0}const Xc="number",qc="color",Cb="var",Pb="var(",Qc="${}",Mb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Sn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Mb,c=>(de.test(c)?(r.color.push(i),o.push(qc),n.push(de.parse(c))):c.startsWith(Pb)?(r.var.push(i),o.push(Cb),n.push(c)):(r.number.push(i),o.push(Xc),n.push(parseFloat(c))),++i,Qc)).split(Qc);return{values:n,split:a,indexes:r,types:o}}function Jc(e){return Sn(e).values}function el(e){const{split:t,types:n}=Sn(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===Xc?i+=En(o[s]):a===qc?i+=de.transform(o[s]):i+=o[s]}return i}}const Db=e=>typeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e;function Ob(e){const t=Jc(e);return el(e)(t.map(Db))}const ft={test:Ab,parse:Jc,createTransformer:el,getAnimatableNone:Ob};function Ko(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kb({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Ko(c,a,e+1/3),i=Ko(c,a,e),s=Ko(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function fr(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,Ho=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Fb=[zo,Ct,Gt],Rb=e=>Fb.find(t=>t.test(e));function tl(e){const t=Rb(e);if(Kt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Gt&&(n=kb(n)),n}const nl=(e,t)=>{const n=tl(e),r=tl(t);if(!n||!r)return fr(e,t);const o={...n};return i=>(o.red=Ho(n.red,r.red,i),o.green=Ho(n.green,r.green,i),o.blue=Ho(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),Ct.transform(o))},Go=new Set(["none","hidden"]);function Ib(e,t){return Go.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nb(e,t){return n=>ne(e,t,n)}function Yo(e){return typeof e=="number"?Nb:typeof e=="string"?Bo(e)?fr:de.test(e)?nl:_b:Array.isArray(e)?rl:typeof e=="object"?de.test(e)?nl:Vb:fr}function rl(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Yo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Vb(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Yo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Lb(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const _b=(e,t)=>{const n=ft.createTransformer(t),r=Sn(e),o=Sn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Go.has(e)&&!o.values.length||Go.has(t)&&!r.values.length?Ib(e,t):vn(rl(Lb(r,o),o.values),n):(Kt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),fr(e,t))};function ol(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Yo(e)(e,t)}const jb=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>ut(t),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},il=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},hr=2e4;function Zo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hr;)t+=n,r=e.next(t);return t>=hr?1/0:t}function Bb(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Zo(r),hr);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const Ub=5;function sl(e,t,n){const r=Math.max(t-Ub,0);return Fc(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},al=.001;function $b({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Kt(e<=Ne(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ze(re.minDamping,re.maxDamping,s),e=Ze(re.minDuration,re.maxDuration,Ue(e)),s<1?(o=l=>{const u=l*s,d=u*e,f=u-n,p=Xo(l,s),y=Math.exp(-d);return al-f/p*y},i=l=>{const d=l*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-d),m=Xo(Math.pow(l,2),s);return(-o(l)+al>0?-1:1)*((f-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=zb(o,i,a);if(e=Ne(e),isNaN(c))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Wb=12;function zb(e,t,n){let r=n;for(let o=1;o<Wb;o++)r=r-e(r)/t(r);return r}function Xo(e,t){return e*Math.sqrt(1-t*t)}const Kb=["duration","bounce"],Hb=["stiffness","damping","mass"];function cl(e,t){return t.some(n=>e[n]!==void 0)}function Gb(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!cl(e,Hb)&&cl(e,Kb))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ze(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=$b(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function pr(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Gb({...n,velocity:-Ue(n.velocity||0)}),y=f||0,m=l/(2*Math.sqrt(c*u)),g=s-i,v=Ue(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?re.restSpeed.granular:re.restSpeed.default),o||(o=x?re.restDelta.granular:re.restDelta.default);let w;if(m<1){const b=Xo(v,m);w=P=>{const A=Math.exp(-m*v*P);return s-A*((y+m*v*g)/b*Math.sin(b*P)+g*Math.cos(b*P))}}else if(m===1)w=b=>s-Math.exp(-v*b)*(g+(y+v*g)*b);else{const b=v*Math.sqrt(m*m-1);w=P=>{const A=Math.exp(-m*v*P),M=Math.min(b*P,300);return s-A*((y+m*v*g)*Math.sinh(M)+b*g*Math.cosh(M))/b}}const C={calculatedDuration:p&&d||null,next:b=>{const P=w(b);if(p)a.done=b>=d;else{let A=b===0?y:0;m<1&&(A=b===0?Ne(y):sl(w,b,P));const M=Math.abs(A)<=r,R=Math.abs(s-P)<=o;a.done=M&&R}return a.value=a.done?s:P,a},toString:()=>{const b=Math.min(Zo(C),hr),P=il(A=>C.next(b*A).value,b,30);return b+"ms "+P},toTransition:()=>{}};return C}pr.applyToOptions=e=>{const t=Bb(e,100,pr);return e.ease=t.ease,e.duration=Ne(t.duration),e.type="keyframes",e};function qo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=M=>a!==void 0&&M<a||c!==void 0&&M>c,y=M=>a===void 0?c:c===void 0||Math.abs(a-M)<Math.abs(c-M)?a:c;let m=n*t;const g=d+m,v=s===void 0?g:s(g);v!==g&&(m=v-d);const x=M=>-m*Math.exp(-M/r),w=M=>v+x(M),C=M=>{const R=x(M),U=w(M);f.done=Math.abs(R)<=l,f.value=f.done?v:U};let b,P;const A=M=>{p(f.value)&&(b=M,P=pr({keyframes:[f.value,y(f.value)],velocity:sl(w,M,f.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let R=!1;return!P&&b===void 0&&(R=!0,C(M),A(M)),b!==void 0&&M>=b?P.next(M-b):(!R&&C(M),f)}}}function Yb(e,t,n){const r=[],o=n||qe.mix||ol,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Oe:t;a=vn(c,a)}r.push(a)}return r}function Zb(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xe(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Yb(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=bn(e[d],e[d+1],u);return a[d](f)};return n?u=>l(Ze(e[0],e[i-1],u)):l}function Xb(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=bn(0,t,r);e.push(ne(n,1,o))}}function qb(e){const t=[0];return Xb(t,e.length-1),t}function Qb(e,t){return e.map(n=>n*t)}function Jb(e,t){return e.map(()=>t||$c).splice(0,e.length-1)}function Yt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=db(r)?r.map(Kc):Kc(r),i={done:!1,value:t[0]},s=Qb(n&&n.length===t.length?n:qb(t),e),a=Zb(s,t,{ease:Array.isArray(o)?o:Jb(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const e0=e=>e!==null;function Qo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(e0),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const t0={decay:qo,inertia:qo,tween:Yt,keyframes:Yt,spring:pr};function ll(e){typeof e.type=="string"&&(e.type=t0[e.type])}class Jo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const n0=e=>e/100;class ei extends Jo{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ll(t);const{type:n=Yt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Yt;z.env.NODE_ENV!=="production"&&c!==Yt&&Xe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Yt&&typeof a[0]!="number"&&(this.mixKeyframes=vn(n0,ol(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Zo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=r;if(d){const M=Math.min(this.currentTime,o)/a;let R=Math.floor(M),U=M%1;!U&&M>=1&&(U=1),U===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(f==="reverse"?(U=1-U,p&&(U-=p/a)):f==="mirror"&&(C=s)),w=Ze(0,1,U)*a}const b=x?{done:!1,value:u[0]}:C.next(w);i&&(b.value=i(b.value));let{done:P}=b;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&y!==qo&&(b.value=Qo(u,this.options,g,this.speed)),m&&m(b.value),A&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get time(){return Ue(this.currentTime)}set time(t){var n;t=Ne(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ae.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=jb,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(o=this.options).onPlay)==null||i.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function r0(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pt=e=>e*180/Math.PI,ti=e=>{const t=Pt(Math.atan2(e[1],e[0]));return ni(t)},o0={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ti,rotateZ:ti,skewX:e=>Pt(Math.atan(e[1])),skewY:e=>Pt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ni=e=>(e=e%360,e<0&&(e+=360),e),ul=ti,dl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),i0={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dl,scaleY:fl,scale:e=>(dl(e)+fl(e))/2,rotateX:e=>ni(Pt(Math.atan2(e[6],e[5]))),rotateY:e=>ni(Pt(Math.atan2(-e[2],e[0]))),rotateZ:ul,rotate:ul,skewX:e=>Pt(Math.atan(e[4])),skewY:e=>Pt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ri(e){return e.includes("scale")?1:0}function oi(e,t){if(!e||e==="none")return ri(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=i0,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=o0,o=a}if(!o)return ri(t);const i=r[t],s=o[1].split(",").map(a0);return typeof i=="function"?i(s):s[i]}const s0=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return oi(n,t)};function a0(e){return parseFloat(e.trim())}const Zt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xt=new Set(Zt),hl=e=>e===Ht||e===_,c0=new Set(["x","y","z"]),l0=Zt.filter(e=>!c0.has(e));function u0(e){const t=[];return l0.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>oi(t,"x"),y:(e,{transform:t})=>oi(t,"y")};Mt.translateX=Mt.x,Mt.translateY=Mt.y;const Dt=new Set;let ii=!1,si=!1,ai=!1;function pl(){if(si){const e=Array.from(Dt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=u0(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}si=!1,ii=!1,Dt.forEach(e=>e.complete(ai)),Dt.clear()}function ml(){Dt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(si=!0)})}function d0(){ai=!0,ml(),pl(),ai=!1}class ci{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dt.add(this),ii||(ii=!0,ee.read(ml),ee.resolveKeyframes(pl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}r0(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dt.delete(this)}cancel(){this.state==="scheduled"&&(Dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const f0=e=>e.startsWith("--");function h0(e,t,n){f0(t)?e.style.setProperty(t,n):e.style[t]=n}const p0=Ro(()=>window.ScrollTimeline!==void 0),m0={};function g0(e,t){const n=Ro(e);return()=>m0[t]??n()}const gl=g0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),An=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:An([0,.65,.55,1]),circOut:An([.55,0,1,.45]),backIn:An([.31,.01,.66,-.59]),backOut:An([.33,1.53,.69,.99])};function vl(e,t){if(e)return typeof e=="function"?gl()?il(e,t):"ease-out":Wc(e)?An(e):Array.isArray(e)?e.map(n=>vl(n,t)||yl.easeOut):yl[e]}function y0(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const d=vl(a,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(u,f)}function bl(e){return typeof e=="function"&&"applyToOptions"in e}function v0({type:e,...t}){return bl(e)&&gl()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class b0 extends Jo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Xe(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=v0(t);this.animation=y0(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Qo(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):h0(n,r,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ue(Number(t))}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ne(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&p0()?(this.animation.timeline=t,Oe):n(this)}}const wl={anticipate:jc,backInOut:_c,circInOut:Uc};function w0(e){return e in wl}function T0(e){typeof e.ease=="string"&&w0(e.ease)&&(e.ease=wl[e.ease])}const Tl=10;class E0 extends b0{constructor(t){T0(t),ll(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ei({...s,autoplay:!1}),c=Ne(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Tl).value,a.sample(c).value,Tl),a.stop()}}const El=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ft.test(e)||e==="0")&&!e.startsWith("url("));function x0(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function S0(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=El(o,t),a=El(i,t);return Kt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:x0(e)||(n==="spring"||bl(n))&&r}function li(e){e.duration=0,e.type}const A0=new Set(["opacity","clipPath","filter","transform"]),C0=Ro(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function P0(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return C0()&&n&&A0.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const M0=40;class D0 extends Jo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){var y;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Ae.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||ci;this.keyframeResolver=new p(a,(m,g,v)=>this.onKeyframesResolved(m,g,f,!v),c,l,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Ae.now(),S0(t,i,s,a)||((qe.instantAnimations||!c)&&(u==null||u(Qo(t,r,n))),t[0]=t[t.length-1],li(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>M0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&P0(f)?new E0({...f,element:f.motionValue.owner.current}):new ei(f);p.finished.then(()=>this.notifyFinished()).catch(Oe),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),d0()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const O0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function k0(e){const t=O0.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const F0=4;function xl(e,t,n=1){Xe(n<=F0,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=k0(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Dc(s)?parseFloat(s):s}return Bo(o)?xl(o,t,n+1):o}function ui(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Sl=new Set(["width","height","top","left","right","bottom",...Zt]),R0={test:e=>e==="auto",parse:e=>e},Al=e=>t=>t.test(e),Cl=[Ht,_,$e,dt,xb,Eb,R0],Pl=e=>Cl.find(Al(e));function I0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kc(e):!0}const N0=new Set(["brightness","contrast","saturate","opacity"]);function V0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Uo)||[];if(!r)return e;const o=n.replace(r,"");let i=N0.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const L0=/\b([a-z-]*)\(.*?\)/gu,di={...ft,getAnimatableNone:e=>{const t=e.match(L0);return t?t.map(V0).join(" "):e}},Ml={...Ht,transform:Math.round},fi={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_,...{rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:dr,scaleX:dr,scaleY:dr,scaleZ:dr,skew:dt,skewX:dt,skewY:dt,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:Tn,originX:Zc,originY:Zc,originZ:_},zIndex:Ml,fillOpacity:Tn,strokeOpacity:Tn,numOctaves:Ml},_0={...fi,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:di,WebkitFilter:di},Dl=e=>_0[e];function Ol(e,t){let n=Dl(e);return n!==di&&(n=ft),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j0=new Set(["auto","none","0"]);function B0(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!j0.has(i)&&Sn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ol(n,o)}class U0 extends ci{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Bo(l))){const u=xl(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Sl.has(r)||t.length!==2)return;const[o,i]=t,s=Pl(o),a=Pl(i);if(s!==a)if(hl(s)&&hl(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Mt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||I0(t[o]))&&r.push(o);r.length&&B0(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Mt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function $0(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(n==null?void 0:n[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const kl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Fl(e){return Oc(e)&&"offsetHeight"in e}const Rl=30,W0=e=>!isNaN(parseFloat(e));class z0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Ae.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=W0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return z.env.NODE_ENV!=="production"&&No(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Io);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rl)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rl);return Fc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qt(e,t){return new z0(e,t)}const{schedule:hi}=Hc(queueMicrotask,!1),Ve={x:!1,y:!1};function Il(){return Ve.x||Ve.y}function K0(e){return e==="x"||e==="y"?Ve[e]?null:(Ve[e]=!0,()=>{Ve[e]=!1}):Ve.x||Ve.y?null:(Ve.x=Ve.y=!0,()=>{Ve.x=Ve.y=!1})}function Nl(e,t){const n=$0(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Vl(e){return!(e.pointerType==="touch"||Il())}function H0(e,t,n={}){const[r,o,i]=Nl(e,n),s=a=>{if(!Vl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Vl(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Ll=(e,t)=>t?e===t?!0:Ll(e,t.parentElement):!1,pi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,G0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Y0(e){return G0.has(e.tagName)||e.tabIndex!==-1}const mr=new WeakSet;function _l(e){return t=>{t.key==="Enter"&&e(t)}}function mi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Z0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_l(()=>{if(mr.has(n))return;mi(n,"down");const o=_l(()=>{mi(n,"up")}),i=()=>mi(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function jl(e){return pi(e)&&!Il()}function X0(e,t,n={}){const[r,o,i]=Nl(e,n),s=a=>{const c=a.currentTarget;if(!jl(a))return;mr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),mr.has(c)&&mr.delete(c),jl(p)&&typeof l=="function"&&l(p,{success:y})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||Ll(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Fl(a)&&(a.addEventListener("focus",l=>Z0(l,o)),!Y0(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Bl(e){return Oc(e)&&"ownerSVGElement"in e}function q0(e){return Bl(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),Q0=[...Cl,de,ft],J0=e=>Q0.find(Al(e)),gi=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class e1 extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Fl(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function t1({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(gi);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:d,right:f}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${d}`:`right: ${f}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
118
|
+
`)}function zv(e){var t={};if(e.inner){if(e.inner.length===0)return Be(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;J(t,s.path)||(t=Be(t,s.path,s.message))}}return t}function Kv(e,t,n,r){n===void 0&&(n=!1);var o=Eo(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function Eo(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||Ta(o)?Eo(o):o!==""?o:void 0}):Ta(e[r])?t[r]=Eo(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Hv(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?eo(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=eo(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function Gv(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Yv(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var Zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function De(e){var t=E.useRef(e);return Zv(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function yn(e){var t=xt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=zt(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),z.env.NODE_ENV!=="production"&&(t||(z.env.NODE_ENV!=="production"?ae(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):ae())),l||(z.env.NODE_ENV!=="production"?ae(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):ae());var d=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),d]}function xo(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=lt(e,["validate","name","render","children","as","component","className"]),l=xt(),u=lt(l,["validate","validationSchema"]);z.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(z.env.NODE_ENV!=="production"?ae(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):ae()),i&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ae()),s&&o&&pe(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ae()),r&&o&&!wo(o)&&(z.env.NODE_ENV!=="production"?ae(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ae())},[]);var d=u.registerField,f=u.unregisterField;E.useEffect(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var p=u.getFieldProps(G({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(G({},m,{meta:y}));if(pe(o))return o(G({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,v=lt(c,["innerRef"]);return E.createElement(s,G({ref:g},p,v,{className:a}),o)}return E.createElement(s,G({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var w=c.innerRef,C=lt(c,["innerRef"]);return E.createElement(x,G({ref:w},p,C,{className:a}),o)}return E.createElement(x,G({},p,c,{className:a}),o)}var Xv=E.forwardRef(function(e,t){var n=e.action,r=lt(e,["action"]),o=n??"#",i=xt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",G({onSubmit:a,ref:t,onReset:s,action:o},r))});Xv.displayName="Form";function qv(e){var t=function(o){return E.createElement(_v,null,function(i){return i||(z.env.NODE_ENV!=="production"?ae(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):ae()),E.createElement(e,G({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",Vv(t,e)}var Qv=function(t,n,r){var o=At(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},Jv=function(t,n,r){var o=At(t),i=o[n];return o[n]=o[r],o[r]=i,o},So=function(t,n,r){var o=At(t);return o.splice(n,0,r),o},eb=function(t,n,r){var o=At(t);return o[n]=r,o},At=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(G({},t,{length:n+1}))}else return[]},Cc=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||zt(o)){var i=At(o);return r(i)}return o}},tb=function(e){Tc(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(d){var f=Cc(a,i),p=Cc(s,i),y=Be(d.values,l,i(J(d.values,l))),m=a?f(J(d.errors,l)):void 0,g=s?p(J(d.touched,l)):void 0;return xc(m)&&(m=void 0),xc(g)&&(g=void 0),G({},d,{values:y,errors:a?Be(d.errors,l,m):d.errors,touched:s?Be(d.touched,l,g):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(At(s),[gn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return Jv(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return Qv(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return So(a,i,s)},function(a){return So(a,i,null)},function(a){return So(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return eb(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Ec(o)),o.pop=o.pop.bind(Ec(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ct(J(o.formik.values,o.name),J(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?At(s):[];return i||(i=a[o]),pe(a.splice)&&a.splice(o,1),pe(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,d=lt(u,["validate","validationSchema"]),f=G({},o,{form:d,name:l});return s?E.createElement(s,f):a?a(f):c?typeof c=="function"?c(f):wo(c)?null:E.Children.only(c):null},t}(E.Component);tb.defaultProps={validateOnChange:!0};var nb=function(e){Tc(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return J(this.props.formik.errors,this.props.name)!==J(o.formik.errors,this.props.name)||J(this.props.formik.touched,this.props.name)!==J(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=lt(o,["component","formik","render","children","name"]),d=J(s.touched,l),f=J(s.errors,l);return d&&f?a?pe(a)?a(f):null:c?pe(c)?c(f):null:i?E.createElement(i,u,f):f:null},t}(E.Component),Ao=qv(nb);const Pc=E.createContext({}),ar=()=>E.useContext(Pc),rb="w-full",Co="flex ml-5 mt-2 text-xs text-feedback-danger-200";function ob({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=xt(),{isForcedDirty:c,onNavigationEvent:l}=ar(),u=f=>{l(()=>o.onClick)},d=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return T.jsx(Nr,{...o,isDisabled:d,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}const Po=E.createContext({});function Mo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Do=typeof window<"u",Mc=Do?E.useLayoutEffect:E.useEffect,cr=E.createContext(null);function Oo(e,t){e.indexOf(t)===-1&&e.push(t)}function ko(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ze=(e,t,n)=>n>t?t:n<e?e:n;function Fo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Kt=()=>{},Xe=()=>{};z.env.NODE_ENV!=="production"&&(Kt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Fo(t,n))},Xe=(e,t,n)=>{if(!e)throw new Error(Fo(t,n))});const qe={},Dc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Oc(e){return typeof e=="object"&&e!==null}const kc=e=>/^0[^.\s]+$/u.test(e);function Ro(e){let t;return()=>(t===void 0&&(t=e()),t)}const Oe=e=>e,ib=(e,t)=>n=>t(e(n)),vn=(...e)=>e.reduce(ib),bn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Io{constructor(){this.subscriptions=[]}add(t){return Oo(this.subscriptions,t),()=>ko(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ne=e=>e*1e3,Ue=e=>e/1e3;function Fc(e,t){return t?e*(1e3/t):0}const Rc=new Set;function No(e,t,n){e||Rc.has(t)||(console.warn(Fo(t,n)),Rc.add(t))}const Ic=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sb=1e-7,ab=12;function cb(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Ic(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>sb&&++a<ab);return s}function wn(e,t,n,r){if(e===t&&n===r)return Oe;const o=i=>cb(i,0,1,e,n);return i=>i===0||i===1?i:Ic(o(i),t,r)}const Nc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vc=e=>t=>1-e(1-t),Lc=wn(.33,1.53,.69,.99),Vo=Vc(Lc),_c=Nc(Vo),jc=e=>(e*=2)<1?.5*Vo(e):.5*(2-Math.pow(2,-10*(e-1))),Lo=e=>1-Math.sin(Math.acos(e)),Bc=Vc(Lo),Uc=Nc(Lo),lb=wn(.42,0,1,1),ub=wn(0,0,.58,1),$c=wn(.42,0,.58,1),db=e=>Array.isArray(e)&&typeof e[0]!="number",Wc=e=>Array.isArray(e)&&typeof e[0]=="number",zc={linear:Oe,easeIn:lb,easeInOut:$c,easeOut:ub,circIn:Lo,circInOut:Uc,circOut:Bc,backIn:Vo,backInOut:_c,backOut:Lc,anticipate:jc},fb=e=>typeof e=="string",Kc=e=>{if(Wc(e)){Xe(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return wn(t,n,r,o)}else if(fb(e))return Xe(zc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),zc[e];return e},lr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hb(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const y=f&&o?n:r;return d&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const pb=40;function Hc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=lr.reduce((w,C)=>(w[C]=hb(i),w),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:y}=s,m=()=>{const w=qe.useManualTiming?o.timestamp:performance.now();n=!1,qe.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,pb),1)),o.timestamp=w,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),d.process(o),f.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:lr.reduce((w,C)=>{const b=s[C];return w[C]=(P,A=!1,M=!1)=>(n||g(),b.schedule(P,A,M)),w},{}),cancel:w=>{for(let C=0;C<lr.length;C++)s[lr[C]].cancel(w)},state:o,steps:s}}const{schedule:ee,cancel:ut,state:ve,steps:_o}=Hc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Oe,!0);let ur;function mb(){ur=void 0}const Ae={now:()=>(ur===void 0&&Ae.set(ve.isProcessing||qe.useManualTiming?ve.timestamp:performance.now()),ur),set:e=>{ur=e,queueMicrotask(mb)}},Gc=e=>t=>typeof t=="string"&&t.startsWith(e),jo=Gc("--"),gb=Gc("var(--"),Bo=e=>gb(e)?yb.test(e.split("/*")[0].trim()):!1,yb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ht={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tn={...Ht,transform:e=>Ze(0,1,e)},dr={...Ht,default:1},En=e=>Math.round(e*1e5)/1e5,Uo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vb(e){return e==null}const bb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$o=(e,t)=>n=>!!(typeof n=="string"&&bb.test(n)&&n.startsWith(e)||t&&!vb(n)&&Object.prototype.hasOwnProperty.call(n,t)),Yc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Uo);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},wb=e=>Ze(0,255,e),Wo={...Ht,transform:e=>Math.round(wb(e))},Ct={test:$o("rgb","red"),parse:Yc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wo.transform(e)+", "+Wo.transform(t)+", "+Wo.transform(n)+", "+En(Tn.transform(r))+")"};function Tb(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const zo={test:$o("#"),parse:Tb,transform:Ct.transform},xn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dt=xn("deg"),$e=xn("%"),_=xn("px"),Eb=xn("vh"),xb=xn("vw"),Zc={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},Gt={test:$o("hsl","hue"),parse:Yc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+$e.transform(En(t))+", "+$e.transform(En(n))+", "+En(Tn.transform(r))+")"},de={test:e=>Ct.test(e)||zo.test(e)||Gt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):Gt.test(e)?Gt.parse(e):zo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ct.transform(e):Gt.transform(e),getAnimatableNone:e=>{const t=de.parse(e);return t.alpha=0,de.transform(t)}},Sb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ab(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uo))==null?void 0:t.length)||0)+(((n=e.match(Sb))==null?void 0:n.length)||0)>0}const Xc="number",qc="color",Cb="var",Pb="var(",Qc="${}",Mb=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Sn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Mb,c=>(de.test(c)?(r.color.push(i),o.push(qc),n.push(de.parse(c))):c.startsWith(Pb)?(r.var.push(i),o.push(Cb),n.push(c)):(r.number.push(i),o.push(Xc),n.push(parseFloat(c))),++i,Qc)).split(Qc);return{values:n,split:a,indexes:r,types:o}}function Jc(e){return Sn(e).values}function el(e){const{split:t,types:n}=Sn(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===Xc?i+=En(o[s]):a===qc?i+=de.transform(o[s]):i+=o[s]}return i}}const Db=e=>typeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e;function Ob(e){const t=Jc(e);return el(e)(t.map(Db))}const ft={test:Ab,parse:Jc,createTransformer:el,getAnimatableNone:Ob};function Ko(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kb({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=Ko(c,a,e+1/3),i=Ko(c,a,e),s=Ko(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function fr(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,Ho=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Fb=[zo,Ct,Gt],Rb=e=>Fb.find(t=>t.test(e));function tl(e){const t=Rb(e);if(Kt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Gt&&(n=kb(n)),n}const nl=(e,t)=>{const n=tl(e),r=tl(t);if(!n||!r)return fr(e,t);const o={...n};return i=>(o.red=Ho(n.red,r.red,i),o.green=Ho(n.green,r.green,i),o.blue=Ho(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),Ct.transform(o))},Go=new Set(["none","hidden"]);function Ib(e,t){return Go.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nb(e,t){return n=>ne(e,t,n)}function Yo(e){return typeof e=="number"?Nb:typeof e=="string"?Bo(e)?fr:de.test(e)?nl:_b:Array.isArray(e)?rl:typeof e=="object"?de.test(e)?nl:Vb:fr}function rl(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Yo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Vb(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Yo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function Lb(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const _b=(e,t)=>{const n=ft.createTransformer(t),r=Sn(e),o=Sn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Go.has(e)&&!o.values.length||Go.has(t)&&!r.values.length?Ib(e,t):vn(rl(Lb(r,o),o.values),n):(Kt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),fr(e,t))};function ol(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Yo(e)(e,t)}const jb=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ee.update(t,n),stop:()=>ut(t),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},il=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},hr=2e4;function Zo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hr;)t+=n,r=e.next(t);return t>=hr?1/0:t}function Bb(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Zo(r),hr);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const Ub=5;function sl(e,t,n){const r=Math.max(t-Ub,0);return Fc(n-e(r),t-r)}const re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},al=.001;function $b({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Kt(e<=Ne(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ze(re.minDamping,re.maxDamping,s),e=Ze(re.minDuration,re.maxDuration,Ue(e)),s<1?(o=l=>{const u=l*s,d=u*e,f=u-n,p=Xo(l,s),y=Math.exp(-d);return al-f/p*y},i=l=>{const d=l*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-d),m=Xo(Math.pow(l,2),s);return(-o(l)+al>0?-1:1)*((f-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=zb(o,i,a);if(e=Ne(e),isNaN(c))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Wb=12;function zb(e,t,n){let r=n;for(let o=1;o<Wb;o++)r=r-e(r)/t(r);return r}function Xo(e,t){return e*Math.sqrt(1-t*t)}const Kb=["duration","bounce"],Hb=["stiffness","damping","mass"];function cl(e,t){return t.some(n=>e[n]!==void 0)}function Gb(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!cl(e,Hb)&&cl(e,Kb))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ze(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=$b(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function pr(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Gb({...n,velocity:-Ue(n.velocity||0)}),y=f||0,m=l/(2*Math.sqrt(c*u)),g=s-i,v=Ue(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?re.restSpeed.granular:re.restSpeed.default),o||(o=x?re.restDelta.granular:re.restDelta.default);let w;if(m<1){const b=Xo(v,m);w=P=>{const A=Math.exp(-m*v*P);return s-A*((y+m*v*g)/b*Math.sin(b*P)+g*Math.cos(b*P))}}else if(m===1)w=b=>s-Math.exp(-v*b)*(g+(y+v*g)*b);else{const b=v*Math.sqrt(m*m-1);w=P=>{const A=Math.exp(-m*v*P),M=Math.min(b*P,300);return s-A*((y+m*v*g)*Math.sinh(M)+b*g*Math.cosh(M))/b}}const C={calculatedDuration:p&&d||null,next:b=>{const P=w(b);if(p)a.done=b>=d;else{let A=b===0?y:0;m<1&&(A=b===0?Ne(y):sl(w,b,P));const M=Math.abs(A)<=r,R=Math.abs(s-P)<=o;a.done=M&&R}return a.value=a.done?s:P,a},toString:()=>{const b=Math.min(Zo(C),hr),P=il(A=>C.next(b*A).value,b,30);return b+"ms "+P},toTransition:()=>{}};return C}pr.applyToOptions=e=>{const t=Bb(e,100,pr);return e.ease=t.ease,e.duration=Ne(t.duration),e.type="keyframes",e};function qo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=M=>a!==void 0&&M<a||c!==void 0&&M>c,y=M=>a===void 0?c:c===void 0||Math.abs(a-M)<Math.abs(c-M)?a:c;let m=n*t;const g=d+m,v=s===void 0?g:s(g);v!==g&&(m=v-d);const x=M=>-m*Math.exp(-M/r),w=M=>v+x(M),C=M=>{const R=x(M),U=w(M);f.done=Math.abs(R)<=l,f.value=f.done?v:U};let b,P;const A=M=>{p(f.value)&&(b=M,P=pr({keyframes:[f.value,y(f.value)],velocity:sl(w,M,f.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let R=!1;return!P&&b===void 0&&(R=!0,C(M),A(M)),b!==void 0&&M>=b?P.next(M-b):(!R&&C(M),f)}}}function Yb(e,t,n){const r=[],o=n||qe.mix||ol,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Oe:t;a=vn(c,a)}r.push(a)}return r}function Zb(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Xe(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Yb(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=bn(e[d],e[d+1],u);return a[d](f)};return n?u=>l(Ze(e[0],e[i-1],u)):l}function Xb(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=bn(0,t,r);e.push(ne(n,1,o))}}function qb(e){const t=[0];return Xb(t,e.length-1),t}function Qb(e,t){return e.map(n=>n*t)}function Jb(e,t){return e.map(()=>t||$c).splice(0,e.length-1)}function Yt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=db(r)?r.map(Kc):Kc(r),i={done:!1,value:t[0]},s=Qb(n&&n.length===t.length?n:qb(t),e),a=Zb(s,t,{ease:Array.isArray(o)?o:Jb(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const e0=e=>e!==null;function Qo(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(e0),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const t0={decay:qo,inertia:qo,tween:Yt,keyframes:Yt,spring:pr};function ll(e){typeof e.type=="string"&&(e.type=t0[e.type])}class Jo{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const n0=e=>e/100;class ei extends Jo{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ll(t);const{type:n=Yt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Yt;z.env.NODE_ENV!=="production"&&c!==Yt&&Xe(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Yt&&typeof a[0]!="number"&&(this.mixKeyframes=vn(n0,ol(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Zo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=r;if(d){const M=Math.min(this.currentTime,o)/a;let R=Math.floor(M),U=M%1;!U&&M>=1&&(U=1),U===1&&R--,R=Math.min(R,d+1),!!(R%2)&&(f==="reverse"?(U=1-U,p&&(U-=p/a)):f==="mirror"&&(C=s)),w=Ze(0,1,U)*a}const b=x?{done:!1,value:u[0]}:C.next(w);i&&(b.value=i(b.value));let{done:P}=b;!x&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&y!==qo&&(b.value=Qo(u,this.options,g,this.speed)),m&&m(b.value),A&&this.finish(),b}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get time(){return Ue(this.currentTime)}set time(t){var n;t=Ne(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ae.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=jb,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(i=(o=this.options).onPlay)==null||i.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function r0(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Pt=e=>e*180/Math.PI,ti=e=>{const t=Pt(Math.atan2(e[1],e[0]));return ni(t)},o0={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ti,rotateZ:ti,skewX:e=>Pt(Math.atan(e[1])),skewY:e=>Pt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ni=e=>(e=e%360,e<0&&(e+=360),e),ul=ti,dl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),i0={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dl,scaleY:fl,scale:e=>(dl(e)+fl(e))/2,rotateX:e=>ni(Pt(Math.atan2(e[6],e[5]))),rotateY:e=>ni(Pt(Math.atan2(-e[2],e[0]))),rotateZ:ul,rotate:ul,skewX:e=>Pt(Math.atan(e[4])),skewY:e=>Pt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ri(e){return e.includes("scale")?1:0}function oi(e,t){if(!e||e==="none")return ri(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=i0,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=o0,o=a}if(!o)return ri(t);const i=r[t],s=o[1].split(",").map(a0);return typeof i=="function"?i(s):s[i]}const s0=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return oi(n,t)};function a0(e){return parseFloat(e.trim())}const Zt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xt=new Set(Zt),hl=e=>e===Ht||e===_,c0=new Set(["x","y","z"]),l0=Zt.filter(e=>!c0.has(e));function u0(e){const t=[];return l0.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>oi(t,"x"),y:(e,{transform:t})=>oi(t,"y")};Mt.translateX=Mt.x,Mt.translateY=Mt.y;const Dt=new Set;let ii=!1,si=!1,ai=!1;function pl(){if(si){const e=Array.from(Dt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=u0(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))==null||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}si=!1,ii=!1,Dt.forEach(e=>e.complete(ai)),Dt.clear()}function ml(){Dt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(si=!0)})}function d0(){ai=!0,ml(),pl(),ai=!1}class ci{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Dt.add(this),ii||(ii=!0,ee.read(ml),ee.resolveKeyframes(pl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}r0(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Dt.delete(this)}cancel(){this.state==="scheduled"&&(Dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const f0=e=>e.startsWith("--");function h0(e,t,n){f0(t)?e.style.setProperty(t,n):e.style[t]=n}const p0=Ro(()=>window.ScrollTimeline!==void 0),m0={};function g0(e,t){const n=Ro(e);return()=>m0[t]??n()}const gl=g0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),An=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:An([0,.65,.55,1]),circOut:An([.55,0,1,.45]),backIn:An([.31,.01,.66,-.59]),backOut:An([.33,1.53,.69,.99])};function vl(e,t){if(e)return typeof e=="function"?gl()?il(e,t):"ease-out":Wc(e)?An(e):Array.isArray(e)?e.map(n=>vl(n,t)||yl.easeOut):yl[e]}function y0(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const d=vl(a,o);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(u,f)}function bl(e){return typeof e=="function"&&"applyToOptions"in e}function v0({type:e,...t}){return bl(e)&&gl()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class b0 extends Jo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Xe(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=v0(t);this.animation=y0(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Qo(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):h0(n,r,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ue(Number(t))}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ne(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&p0()?(this.animation.timeline=t,Oe):n(this)}}const wl={anticipate:jc,backInOut:_c,circInOut:Uc};function w0(e){return e in wl}function T0(e){typeof e.ease=="string"&&w0(e.ease)&&(e.ease=wl[e.ease])}const Tl=10;class E0 extends b0{constructor(t){T0(t),ll(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new ei({...s,autoplay:!1}),c=Ne(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Tl).value,a.sample(c).value,Tl),a.stop()}}const El=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ft.test(e)||e==="0")&&!e.startsWith("url("));function x0(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function S0(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=El(o,t),a=El(i,t);return Kt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:x0(e)||(n==="spring"||bl(n))&&r}function li(e){e.duration=0,e.type}const A0=new Set(["opacity","clipPath","filter","transform"]),C0=Ro(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function P0(e){var u;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return C0()&&n&&A0.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const M0=40;class D0 extends Jo{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){var y;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Ae.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||ci;this.keyframeResolver=new p(a,(m,g,v)=>this.onKeyframesResolved(m,g,f,!v),c,l,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Ae.now(),S0(t,i,s,a)||((qe.instantAnimations||!c)&&(u==null||u(Qo(t,r,n))),t[0]=t[t.length-1],li(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>M0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&P0(f)?new E0({...f,element:f.motionValue.owner.current}):new ei(f);p.finished.then(()=>this.notifyFinished()).catch(Oe),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),d0()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const O0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function k0(e){const t=O0.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const F0=4;function xl(e,t,n=1){Xe(n<=F0,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=k0(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Dc(s)?parseFloat(s):s}return Bo(o)?xl(o,t,n+1):o}function ui(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Sl=new Set(["width","height","top","left","right","bottom",...Zt]),R0={test:e=>e==="auto",parse:e=>e},Al=e=>t=>t.test(e),Cl=[Ht,_,$e,dt,xb,Eb,R0],Pl=e=>Cl.find(Al(e));function I0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kc(e):!0}const N0=new Set(["brightness","contrast","saturate","opacity"]);function V0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Uo)||[];if(!r)return e;const o=n.replace(r,"");let i=N0.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const L0=/\b([a-z-]*)\(.*?\)/gu,di={...ft,getAnimatableNone:e=>{const t=e.match(L0);return t?t.map(V0).join(" "):e}},Ml={...Ht,transform:Math.round},fi={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,backgroundPositionX:_,backgroundPositionY:_,...{rotate:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:dr,scaleX:dr,scaleY:dr,scaleZ:dr,skew:dt,skewX:dt,skewY:dt,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:Tn,originX:Zc,originY:Zc,originZ:_},zIndex:Ml,fillOpacity:Tn,strokeOpacity:Tn,numOctaves:Ml},_0={...fi,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:di,WebkitFilter:di},Dl=e=>_0[e];function Ol(e,t){let n=Dl(e);return n!==di&&(n=ft),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j0=new Set(["auto","none","0"]);function B0(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!j0.has(i)&&Sn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ol(n,o)}class U0 extends ci{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Bo(l))){const u=xl(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Sl.has(r)||t.length!==2)return;const[o,i]=t,s=Pl(o),a=Pl(i);if(s!==a)if(hl(s)&&hl(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Mt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||I0(t[o]))&&r.push(o);r.length&&B0(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Mt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function $0(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(n==null?void 0:n[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const kl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Fl(e){return Oc(e)&&"offsetHeight"in e}const Rl=30,W0=e=>!isNaN(parseFloat(e));class z0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Ae.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=W0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return z.env.NODE_ENV!=="production"&&No(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Io);const r=this.events[t].add(n);return t==="change"?()=>{r(),ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rl)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rl);return Fc(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qt(e,t){return new z0(e,t)}const{schedule:hi}=Hc(queueMicrotask,!1),Ve={x:!1,y:!1};function Il(){return Ve.x||Ve.y}function K0(e){return e==="x"||e==="y"?Ve[e]?null:(Ve[e]=!0,()=>{Ve[e]=!1}):Ve.x||Ve.y?null:(Ve.x=Ve.y=!0,()=>{Ve.x=Ve.y=!1})}function Nl(e,t){const n=$0(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Vl(e){return!(e.pointerType==="touch"||Il())}function H0(e,t,n={}){const[r,o,i]=Nl(e,n),s=a=>{if(!Vl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Vl(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Ll=(e,t)=>t?e===t?!0:Ll(e,t.parentElement):!1,pi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,G0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Y0(e){return G0.has(e.tagName)||e.tabIndex!==-1}const mr=new WeakSet;function _l(e){return t=>{t.key==="Enter"&&e(t)}}function mi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Z0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_l(()=>{if(mr.has(n))return;mi(n,"down");const o=_l(()=>{mi(n,"up")}),i=()=>mi(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function jl(e){return pi(e)&&!Il()}function X0(e,t,n={}){const[r,o,i]=Nl(e,n),s=a=>{const c=a.currentTarget;if(!jl(a))return;mr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),mr.has(c)&&mr.delete(c),jl(p)&&typeof l=="function"&&l(p,{success:y})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||Ll(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Fl(a)&&(a.addEventListener("focus",l=>Z0(l,o)),!Y0(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Bl(e){return Oc(e)&&"ownerSVGElement"in e}function q0(e){return Bl(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),Q0=[...Cl,de,ft],J0=e=>Q0.find(Al(e)),gi=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class e1 extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Fl(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function t1({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(gi);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:d,right:f}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${d}`:`right: ${f}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
119
119
|
[data-motion-pop-id="${o}"] {
|
|
120
120
|
position: absolute !important;
|
|
121
121
|
width: ${c}px !important;
|
|
@@ -161,7 +161,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
161
161
|
|
|
162
162
|
peer-focus:peer-data-[has-prefix-icon=true]:ml-7
|
|
163
163
|
peer-focus:peer-data-[has-prefix-icon=true]:w-[calc(125%-24px)]
|
|
164
|
-
`,LT="h-4 w-4 absolute left-4 top-1/2 -translate-y-1/2",_T="h-4 w-4 absolute right-4 top-1/2 -translate-y-1/2";function Td({name:e,label:t,type:n="text",isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:c,onChange:l,onFocus:u,onBlur:d}){const{isLoading:f}=ar(),{isSubmitting:p}=xt(),[y,m]=yn(e),g=w=>{typeof l<"u"&&l(w),y.onChange(w)},v=w=>{typeof u<"u"&&u(w)},x=w=>{typeof d<"u"&&d(w)};return T.jsxs("div",{className:mt(IT,a||""),children:[T.jsx(xo,{className:mt(NT,c||""),type:n,id:e,name:e,placeholder:t,...n==="text"?{maxLength:o}:{max:o},disabled:f||r||p,"data-is-loading":f,"data-has-error":!!m.error&&m.touched,"data-has-prefix-icon":!!i,"data-1p-ignore":!0,onChange:g,onFocus:v,onBlur:x}),T.jsx(Wi.label,{htmlFor:e,className:VT,children:t}),typeof i<"u"&&T.jsx(i,{className:LT}),typeof s<"u"&&T.jsx(s,{className:_T}),T.jsx(Ao,{name:e,component:"span",className:Co},`error-${e}`)]})}const jT="flex flex-col relative w-full cursor-text",BT=`
|
|
164
|
+
`,LT="h-4 w-4 absolute left-4 top-1/2 -translate-y-1/2",_T="h-4 w-4 absolute right-4 top-1/2 -translate-y-1/2";function Td({name:e,label:t,type:n="text",isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:c,onChange:l,onFocus:u,onBlur:d}){const{isLoading:f}=ar(),{isSubmitting:p}=xt(),[y,m]=yn(e),g=w=>{typeof l<"u"&&l(w),y.onChange(w)},v=w=>{typeof u<"u"&&u(w)},x=w=>{typeof d<"u"&&d(w),y.onBlur(w)};return T.jsxs("div",{className:mt(IT,a||""),children:[T.jsx(xo,{className:mt(NT,c||""),type:n,id:e,name:e,placeholder:t,...n==="text"?{maxLength:o}:{max:o},disabled:f||r||p,"data-is-loading":f,"data-has-error":!!m.error&&m.touched,"data-has-prefix-icon":!!i,"data-1p-ignore":!0,onChange:g,onFocus:v,onBlur:x}),T.jsx(Wi.label,{htmlFor:e,className:VT,children:t}),typeof i<"u"&&T.jsx(i,{className:LT}),typeof s<"u"&&T.jsx(s,{className:_T}),T.jsx(Ao,{name:e,component:"span",className:Co},`error-${e}`)]})}const jT="flex flex-col relative w-full cursor-text",BT=`
|
|
165
165
|
flex transition-all grow resize-none
|
|
166
166
|
px-4 pt-6 pb-1.5 border border-solid rounded outline-none
|
|
167
167
|
border-gray-200 bg-white text-black
|
|
@@ -210,6 +210,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
210
210
|
absolute top-4 right-9
|
|
211
211
|
`;function Ed({name:e,label:t,isLoading:n,isDisabled:r,maxLength:o=255,prefixIcon:i,suffixIcon:s,className:a,onChange:c,onClear:l,onFocus:u,onBlur:d}){const[,f,p]=yn(e),y=g=>{typeof c<"u"&&c(g)},m=()=>{p.setValue(""),typeof c<"u"&&c({target:{value:""}}),typeof l<"u"&&l()};return T.jsxs(T.Fragment,{children:[T.jsx(Td,{name:e,label:t,isDisabled:r,maxLength:o,prefixIcon:i,suffixIcon:s,className:a,fieldClassName:HT,onChange:y,onFocus:u,onBlur:d}),n&&T.jsx(da,{className:ZT}),!!f.value&&T.jsx("button",{type:"button",className:GT,onClick:m,children:T.jsx(qn,{className:YT})})]})}const XT=`
|
|
212
212
|
group/checkbox
|
|
213
|
+
|
|
213
214
|
data-[is-disabled=true]:pointer-events-none
|
|
214
215
|
data-[is-disabled=true]:cursor-default
|
|
215
216
|
`,qT=`
|
|
@@ -217,7 +218,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
217
218
|
peer relative shrink-0
|
|
218
219
|
appearance-none transition-colors
|
|
219
220
|
border border-neutral-400
|
|
220
|
-
|
|
221
|
+
|
|
221
222
|
group-hover/checkbox:border-base-black
|
|
222
223
|
|
|
223
224
|
checked:bg-primary-100
|
|
@@ -229,7 +230,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
229
230
|
data-[has-error=true]:border-feedback-danger-200
|
|
230
231
|
`,QT=`
|
|
231
232
|
text-sm text-neutral-400 font-normal
|
|
232
|
-
|
|
233
|
+
transition-colors
|
|
233
234
|
group-hover/checkbox:text-base-black
|
|
234
235
|
|
|
235
236
|
peer-checked:hover:text-base-black
|