UNPKG

@paulinasource/face-capture-landmarks-lib

Version:

Biblioteca React para captura facial e detecção de landmarks em tempo real.

1,379 lines 2.55 MB
import { jsx as Y, Fragment as Ef, jsxs as We } from "react/jsx-runtime"; import * as Af from "react"; import Su, { forwardRef as Rf, createElement as zc, createContext as bi, useRef as Zt, useLayoutEffect as XI, useEffect as yr, useId as Df, useContext as Jt, useInsertionEffect as Xx, useMemo as co, useCallback as Yx, Children as YI, isValidElement as ZI, useState as gt, Fragment as Zx, Component as JI } from "react"; function QI(n, e) { for (var t = 0; t < e.length; t++) { const s = e[t]; if (typeof s != "string" && !Array.isArray(s)) { for (const r in s) if (r !== "default" && !(r in n)) { const o = Object.getOwnPropertyDescriptor(s, r); o && Object.defineProperty(n, r, o.get ? o : { enumerable: !0, get: () => s[r] }); } } } return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" })); } /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const e$ = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), t$ = (n) => n.replace( /^([A-Z])|[\s-_]+(\w)/g, (e, t, s) => s ? s.toUpperCase() : t.toLowerCase() ), T1 = (n) => { const e = t$(n); return e.charAt(0).toUpperCase() + e.slice(1); }, Jx = (...n) => n.filter((e, t, s) => !!e && e.trim() !== "" && s.indexOf(e) === t).join(" ").trim(), n$ = (n) => { for (const e in n) if (e.startsWith("aria-") || e === "role" || e === "title") return !0; }; /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var s$ = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }; /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const r$ = Rf( ({ color: n = "currentColor", size: e = 24, strokeWidth: t = 2, absoluteStrokeWidth: s, className: r = "", children: o, iconNode: i, ...a }, l) => zc( "svg", { ref: l, ...s$, width: e, height: e, stroke: n, strokeWidth: s ? Number(t) * 24 / Number(e) : t, className: Jx("lucide", r), ...!o && !n$(a) && { "aria-hidden": "true" }, ...a }, [ ...i.map(([c, u]) => zc(c, u)), ...Array.isArray(o) ? o : [o] ] ) ); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Wt = (n, e) => { const t = Rf( ({ className: s, ...r }, o) => zc(r$, { ref: o, iconNode: e, className: Jx( `lucide-${e$(T1(n))}`, `lucide-${n}`, s ), ...r }) ); return t.displayName = T1(n), t; }; /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const o$ = [ ["path", { d: "M12 5v14", key: "s699le" }], ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }] ], i$ = Wt("arrow-down", o$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const a$ = [ ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }], ["path", { d: "M19 12H5", key: "x3x0zl" }] ], l$ = Wt("arrow-left", a$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const c$ = [ ["path", { d: "M5 12h14", key: "1ays0h" }], ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }] ], Of = Wt("arrow-right", c$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const u$ = [ ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }], ["path", { d: "M12 19V5", key: "x0mq9r" }] ], h$ = Wt("arrow-up", u$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const d$ = [ [ "path", { d: "M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z", key: "1tc9qg" } ], ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }] ], Qx = Wt("camera", d$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const p$ = [ ["path", { d: "M18 6 7 17l-5-5", key: "116fxf" }], ["path", { d: "m22 10-7.5 7.5L13 16", key: "ke71qq" }] ], f$ = Wt("check-check", p$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const m$ = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }], ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }] ], k1 = Wt("circle-alert", m$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const g$ = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }] ], e2 = Wt("circle-check", g$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const y$ = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "m15 9-6 6", key: "1uzhvr" }], ["path", { d: "m9 9 6 6", key: "z0biqf" }] ], t2 = Wt("circle-x", y$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const b$ = [ [ "path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49", key: "ct8e1f" } ], ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }], [ "path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143", key: "13bj9a" } ], ["path", { d: "m2 2 20 20", key: "1ooewy" }] ], x$ = Wt("eye-off", b$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const w$ = [ [ "path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0", key: "1nclc0" } ], ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }] ], v$ = Wt("eye", w$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const S$ = [ ["path", { d: "M15 3h6v6", key: "1q9fwt" }], ["path", { d: "m21 3-7 7", key: "1l2asr" }], ["path", { d: "m3 21 7-7", key: "tjx5ai" }], ["path", { d: "M9 21H3v-6", key: "wtvkvv" }] ], C$ = Wt("maximize-2", S$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const N$ = [ ["path", { d: "m14 10 7-7", key: "oa77jy" }], ["path", { d: "M20 10h-6V4", key: "mjg0md" }], ["path", { d: "m3 21 7-7", key: "tjx5ai" }], ["path", { d: "M4 14h6v6", key: "rmj7iw" }] ], T$ = Wt("minimize-2", N$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const k$ = [ ["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }], ["path", { d: "M3 3v5h5", key: "1xhq8a" }], ["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }], ["path", { d: "M16 16h5v5", key: "ccwih5" }] ], I$ = Wt("refresh-ccw", k$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const $$ = [ [ "path", { d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z", key: "oel41y" } ] ], n2 = Wt("shield", $$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const E$ = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["circle", { cx: "12", cy: "12", r: "6", key: "1vlfrh" }], ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }] ], A$ = Wt("target", E$); /** * @license lucide-react v0.511.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const R$ = [ ["path", { d: "M18 6 6 18", key: "1bl5f8" }], ["path", { d: "m6 6 12 12", key: "d8bk6v" }] ], s2 = Wt("x", R$), Gs = ({ children: n, variant: e = "primary", size: t = "md", className: s = "", fullWidth: r, ...o }) => { const i = "inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none", a = { primary: "bg-indigo-600 text-white hover:bg-indigo-700 active:bg-indigo-800", secondary: "bg-indigo-100 text-indigo-900 hover:bg-indigo-200 active:bg-indigo-300", outline: "border border-gray-300 text-gray-700 hover:bg-gray-50 active:bg-gray-100" }, l = { sm: "text-sm px-3 py-1.5 h-8", md: "text-sm px-4 py-2 h-10", lg: "text-base px-5 py-2.5 h-12" }, c = r ? "w-full" : ""; return /* @__PURE__ */ Y( "button", { className: `${i} ${a[e]} ${l[t]} ${c} ${s}`, ...o, children: n } ); }; function r2(n) { return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n; } function D$(n) { if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n; var e = n.default; if (typeof e == "function") { var t = function s() { return this instanceof s ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments); }; t.prototype = e.prototype; } else t = {}; return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(n).forEach(function(s) { var r = Object.getOwnPropertyDescriptor(n, s); Object.defineProperty(t, s, r.get ? r : { enumerable: !0, get: function() { return n[s]; } }); }), t; } var tc = { exports: {} }, Ht = {}; /** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var I1; function O$() { if (I1) return Ht; I1 = 1; var n = Su; function e(l) { var c = "https://react.dev/errors/" + l; if (1 < arguments.length) { c += "?args[]=" + encodeURIComponent(arguments[1]); for (var u = 2; u < arguments.length; u++) c += "&args[]=" + encodeURIComponent(arguments[u]); } return "Minified React error #" + l + "; visit " + c + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } function t() { } var s = { d: { f: t, r: function() { throw Error(e(522)); }, D: t, C: t, L: t, m: t, X: t, S: t, M: t }, p: 0, findDOMNode: null }, r = Symbol.for("react.portal"); function o(l, c, u) { var h = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; return { $$typeof: r, key: h == null ? null : "" + h, children: l, containerInfo: c, implementation: u }; } var i = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; function a(l, c) { if (l === "font") return ""; if (typeof c == "string") return c === "use-credentials" ? c : ""; } return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, Ht.createPortal = function(l, c) { var u = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!c || c.nodeType !== 1 && c.nodeType !== 9 && c.nodeType !== 11) throw Error(e(299)); return o(l, c, null, u); }, Ht.flushSync = function(l) { var c = i.T, u = s.p; try { if (i.T = null, s.p = 2, l) return l(); } finally { i.T = c, s.p = u, s.d.f(); } }, Ht.preconnect = function(l, c) { typeof l == "string" && (c ? (c = c.crossOrigin, c = typeof c == "string" ? c === "use-credentials" ? c : "" : void 0) : c = null, s.d.C(l, c)); }, Ht.prefetchDNS = function(l) { typeof l == "string" && s.d.D(l); }, Ht.preinit = function(l, c) { if (typeof l == "string" && c && typeof c.as == "string") { var u = c.as, h = a(u, c.crossOrigin), d = typeof c.integrity == "string" ? c.integrity : void 0, p = typeof c.fetchPriority == "string" ? c.fetchPriority : void 0; u === "style" ? s.d.S( l, typeof c.precedence == "string" ? c.precedence : void 0, { crossOrigin: h, integrity: d, fetchPriority: p } ) : u === "script" && s.d.X(l, { crossOrigin: h, integrity: d, fetchPriority: p, nonce: typeof c.nonce == "string" ? c.nonce : void 0 }); } }, Ht.preinitModule = function(l, c) { if (typeof l == "string") if (typeof c == "object" && c !== null) { if (c.as == null || c.as === "script") { var u = a( c.as, c.crossOrigin ); s.d.M(l, { crossOrigin: u, integrity: typeof c.integrity == "string" ? c.integrity : void 0, nonce: typeof c.nonce == "string" ? c.nonce : void 0 }); } } else c == null && s.d.M(l); }, Ht.preload = function(l, c) { if (typeof l == "string" && typeof c == "object" && c !== null && typeof c.as == "string") { var u = c.as, h = a(u, c.crossOrigin); s.d.L(l, u, { crossOrigin: h, integrity: typeof c.integrity == "string" ? c.integrity : void 0, nonce: typeof c.nonce == "string" ? c.nonce : void 0, type: typeof c.type == "string" ? c.type : void 0, fetchPriority: typeof c.fetchPriority == "string" ? c.fetchPriority : void 0, referrerPolicy: typeof c.referrerPolicy == "string" ? c.referrerPolicy : void 0, imageSrcSet: typeof c.imageSrcSet == "string" ? c.imageSrcSet : void 0, imageSizes: typeof c.imageSizes == "string" ? c.imageSizes : void 0, media: typeof c.media == "string" ? c.media : void 0 }); } }, Ht.preloadModule = function(l, c) { if (typeof l == "string") if (c) { var u = a(c.as, c.crossOrigin); s.d.m(l, { as: typeof c.as == "string" && c.as !== "script" ? c.as : void 0, crossOrigin: u, integrity: typeof c.integrity == "string" ? c.integrity : void 0 }); } else s.d.m(l); }, Ht.requestFormReset = function(l) { s.d.r(l); }, Ht.unstable_batchedUpdates = function(l, c) { return l(c); }, Ht.useFormState = function(l, c, u) { return i.H.useFormState(l, c, u); }, Ht.useFormStatus = function() { return i.H.useHostTransitionStatus(); }, Ht.version = "19.1.0", Ht; } var jt = {}; /** * @license React * react-dom.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var $1; function F$() { return $1 || ($1 = 1, process.env.NODE_ENV !== "production" && function() { function n() { } function e(h) { return "" + h; } function t(h, d, p) { var f = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; try { e(f); var m = !1; } catch { m = !0; } return m && (console.error( "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object" ), e(f)), { $$typeof: c, key: f == null ? null : "" + f, children: h, containerInfo: d, implementation: p }; } function s(h, d) { if (h === "font") return ""; if (typeof d == "string") return d === "use-credentials" ? d : ""; } function r(h) { return h === null ? "`null`" : h === void 0 ? "`undefined`" : h === "" ? "an empty string" : 'something with type "' + typeof h + '"'; } function o(h) { return h === null ? "`null`" : h === void 0 ? "`undefined`" : h === "" ? "an empty string" : typeof h == "string" ? JSON.stringify(h) : typeof h == "number" ? "`" + h + "`" : 'something with type "' + typeof h + '"'; } function i() { var h = u.H; return h === null && console.error( `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.` ), h; } typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); var a = Su, l = { d: { f: n, r: function() { throw Error( "Invalid form element. requestFormReset must be passed a form that was rendered by React." ); }, D: n, C: n, L: n, m: n, X: n, S: n, M: n }, p: 0, findDOMNode: null }, c = Symbol.for("react.portal"), u = a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error( "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills" ), jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = l, jt.createPortal = function(h, d) { var p = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; if (!d || d.nodeType !== 1 && d.nodeType !== 9 && d.nodeType !== 11) throw Error("Target container is not a DOM element."); return t(h, d, null, p); }, jt.flushSync = function(h) { var d = u.T, p = l.p; try { if (u.T = null, l.p = 2, h) return h(); } finally { u.T = d, l.p = p, l.d.f() && console.error( "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task." ); } }, jt.preconnect = function(h, d) { typeof h == "string" && h ? d != null && typeof d != "object" ? console.error( "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", o(d) ) : d != null && typeof d.crossOrigin != "string" && console.error( "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", r(d.crossOrigin) ) : console.error( "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", r(h) ), typeof h == "string" && (d ? (d = d.crossOrigin, d = typeof d == "string" ? d === "use-credentials" ? d : "" : void 0) : d = null, l.d.C(h, d)); }, jt.prefetchDNS = function(h) { if (typeof h != "string" || !h) console.error( "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", r(h) ); else if (1 < arguments.length) { var d = arguments[1]; typeof d == "object" && d.hasOwnProperty("crossOrigin") ? console.error( "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", o(d) ) : console.error( "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", o(d) ); } typeof h == "string" && l.d.D(h); }, jt.preinit = function(h, d) { if (typeof h == "string" && h ? d == null || typeof d != "object" ? console.error( "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", o(d) ) : d.as !== "style" && d.as !== "script" && console.error( 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".', o(d.as) ) : console.error( "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", r(h) ), typeof h == "string" && d && typeof d.as == "string") { var p = d.as, f = s(p, d.crossOrigin), m = typeof d.integrity == "string" ? d.integrity : void 0, g = typeof d.fetchPriority == "string" ? d.fetchPriority : void 0; p === "style" ? l.d.S( h, typeof d.precedence == "string" ? d.precedence : void 0, { crossOrigin: f, integrity: m, fetchPriority: g } ) : p === "script" && l.d.X(h, { crossOrigin: f, integrity: m, fetchPriority: g, nonce: typeof d.nonce == "string" ? d.nonce : void 0 }); } }, jt.preinitModule = function(h, d) { var p = ""; if (typeof h == "string" && h || (p += " The `href` argument encountered was " + r(h) + "."), d !== void 0 && typeof d != "object" ? p += " The `options` argument encountered was " + r(d) + "." : d && "as" in d && d.as !== "script" && (p += " The `as` option encountered was " + o(d.as) + "."), p) console.error( "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", p ); else switch (p = d && typeof d.as == "string" ? d.as : "script", p) { case "script": break; default: p = o(p), console.error( 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)', p, h ); } typeof h == "string" && (typeof d == "object" && d !== null ? (d.as == null || d.as === "script") && (p = s( d.as, d.crossOrigin ), l.d.M(h, { crossOrigin: p, integrity: typeof d.integrity == "string" ? d.integrity : void 0, nonce: typeof d.nonce == "string" ? d.nonce : void 0 })) : d == null && l.d.M(h)); }, jt.preload = function(h, d) { var p = ""; if (typeof h == "string" && h || (p += " The `href` argument encountered was " + r(h) + "."), d == null || typeof d != "object" ? p += " The `options` argument encountered was " + r(d) + "." : typeof d.as == "string" && d.as || (p += " The `as` option encountered was " + r(d.as) + "."), p && console.error( 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s', p ), typeof h == "string" && typeof d == "object" && d !== null && typeof d.as == "string") { p = d.as; var f = s( p, d.crossOrigin ); l.d.L(h, p, { crossOrigin: f, integrity: typeof d.integrity == "string" ? d.integrity : void 0, nonce: typeof d.nonce == "string" ? d.nonce : void 0, type: typeof d.type == "string" ? d.type : void 0, fetchPriority: typeof d.fetchPriority == "string" ? d.fetchPriority : void 0, referrerPolicy: typeof d.referrerPolicy == "string" ? d.referrerPolicy : void 0, imageSrcSet: typeof d.imageSrcSet == "string" ? d.imageSrcSet : void 0, imageSizes: typeof d.imageSizes == "string" ? d.imageSizes : void 0, media: typeof d.media == "string" ? d.media : void 0 }); } }, jt.preloadModule = function(h, d) { var p = ""; typeof h == "string" && h || (p += " The `href` argument encountered was " + r(h) + "."), d !== void 0 && typeof d != "object" ? p += " The `options` argument encountered was " + r(d) + "." : d && "as" in d && typeof d.as != "string" && (p += " The `as` option encountered was " + r(d.as) + "."), p && console.error( 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s', p ), typeof h == "string" && (d ? (p = s( d.as, d.crossOrigin ), l.d.m(h, { as: typeof d.as == "string" && d.as !== "script" ? d.as : void 0, crossOrigin: p, integrity: typeof d.integrity == "string" ? d.integrity : void 0 })) : l.d.m(h)); }, jt.requestFormReset = function(h) { l.d.r(h); }, jt.unstable_batchedUpdates = function(h, d) { return h(d); }, jt.useFormState = function(h, d, p) { return i().useFormState(h, d, p); }, jt.useFormStatus = function() { return i().useHostTransitionStatus(); }, jt.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); }()), jt; } var E1; function _$() { if (E1) return tc.exports; E1 = 1; function n() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) { if (process.env.NODE_ENV !== "production") throw new Error("^_^"); try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n); } catch (e) { console.error(e); } } } return process.env.NODE_ENV === "production" ? (n(), tc.exports = O$()) : tc.exports = F$(), tc.exports; } var o2 = _$(); const Ff = bi({}); function _f(n) { const e = Zt(null); return e.current === null && (e.current = n()), e.current; } const Pf = typeof window < "u", i2 = Pf ? XI : yr, Cu = /* @__PURE__ */ bi(null); function Lf(n, e) { n.indexOf(e) === -1 && n.push(e); } function Mf(n, e) { const t = n.indexOf(e); t > -1 && n.splice(t, 1); } const Hs = (n, e, t) => t > e ? e : t < n ? n : t; let xi = () => { }, js = () => { }; process.env.NODE_ENV !== "production" && (xi = (n, e) => { !n && typeof console < "u" && console.warn(e); }, js = (n, e) => { if (!n) throw new Error(e); }); const qs = {}, a2 = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n); function l2(n) { return typeof n == "object" && n !== null; } const c2 = (n) => /^0[^.\s]+$/u.test(n); // @__NO_SIDE_EFFECTS__ function Vf(n) { let e; return () => (e === void 0 && (e = n()), e); } const Gn = /* @__NO_SIDE_EFFECTS__ */ (n) => n, P$ = (n, e) => (t) => e(n(t)), $a = (...n) => n.reduce(P$), oa = /* @__NO_SIDE_EFFECTS__ */ (n, e, t) => { const s = e - n; return s === 0 ? 1 : (t - n) / s; }; class Bf { constructor() { this.subscriptions = []; } add(e) { return Lf(this.subscriptions, e), () => Mf(this.subscriptions, e); } notify(e, t, s) { const r = this.subscriptions.length; if (r) if (r === 1) this.subscriptions[0](e, t, s); else for (let o = 0; o < r; o++) { const i = this.subscriptions[o]; i && i(e, t, s); } } getSize() { return this.subscriptions.length; } clear() { this.subscriptions.length = 0; } } const os = /* @__NO_SIDE_EFFECTS__ */ (n) => n * 1e3, vs = /* @__NO_SIDE_EFFECTS__ */ (n) => n / 1e3; function u2(n, e) { return e ? n * (1e3 / e) : 0; } const A1 = /* @__PURE__ */ new Set(); function zf(n, e, t) { n || A1.has(e) || (console.warn(e), A1.add(e)); } const h2 = (n, e, t) => (((1 - 3 * t + 3 * e) * n + (3 * t - 6 * e)) * n + 3 * e) * n, L$ = 1e-7, M$ = 12; function V$(n, e, t, s, r) { let o, i, a = 0; do i = e + (t - e) / 2, o = h2(i, s, r) - n, o > 0 ? t = i : e = i; while (Math.abs(o) > L$ && ++a < M$); return i; } function Ea(n, e, t, s) { if (n === e && t === s) return Gn; const r = (o) => V$(o, 0, 1, n, t); return (o) => o === 0 || o === 1 ? o : h2(r(o), e, s); } const d2 = (n) => (e) => e <= 0.5 ? n(2 * e) / 2 : (2 - n(2 * (1 - e))) / 2, p2 = (n) => (e) => 1 - n(1 - e), f2 = /* @__PURE__ */ Ea(0.33, 1.53, 0.69, 0.99), Wf = /* @__PURE__ */ p2(f2), m2 = /* @__PURE__ */ d2(Wf), g2 = (n) => (n *= 2) < 1 ? 0.5 * Wf(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1))), Uf = (n) => 1 - Math.sin(Math.acos(n)), y2 = p2(Uf), b2 = d2(Uf), B$ = /* @__PURE__ */ Ea(0.42, 0, 1, 1), z$ = /* @__PURE__ */ Ea(0, 0, 0.58, 1), x2 = /* @__PURE__ */ Ea(0.42, 0, 0.58, 1), W$ = (n) => Array.isArray(n) && typeof n[0] != "number", w2 = (n) => Array.isArray(n) && typeof n[0] == "number", R1 = { linear: Gn, easeIn: B$, easeInOut: x2, easeOut: z$, circIn: Uf, circInOut: b2, circOut: y2, backIn: Wf, backInOut: m2, backOut: f2, anticipate: g2 }, U$ = (n) => typeof n == "string", D1 = (n) => { if (w2(n)) { js(n.length === 4, "Cubic bezier arrays must contain four numerical values."); const [e, t, s, r] = n; return Ea(e, t, s, r); } else if (U$(n)) return js(R1[n] !== void 0, `Invalid easing type '${n}'`), R1[n]; return n; }, nc = [ "setup", // Compute "read", // Read "resolveKeyframes", // Write/Read/Write/Read "preUpdate", // Compute "update", // Compute "preRender", // Compute "render", // Write "postRender" // Compute ], O1 = { value: null }; function G$(n, e) { let t = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), r = !1, o = !1; const i = /* @__PURE__ */ new WeakSet(); let a = { delta: 0, timestamp: 0, isProcessing: !1 }, l = 0; function c(h) { i.has(h) && (u.schedule(h), n()), l++, h(a); } const u = { /** * Schedule a process to run on the next frame. */ schedule: (h, d = !1, p = !1) => { const m = p && r ? t : s; return d && i.add(h), m.has(h) || m.add(h), h; }, /** * Cancel the provided callback from running on the next frame. */ cancel: (h) => { s.delete(h), i.delete(h); }, /** * Execute all schedule callbacks. */ process: (h) => { if (a = h, r) { o = !0; return; } r = !0, [t, s] = [s, t], t.forEach(c), e && O1.value && O1.value.frameloop[e].push(l), l = 0, t.clear(), r = !1, o && (o = !1, u.process(h)); } }; return u; } const H$ = 40; function v2(n, e) { let t = !1, s = !0; const r = { delta: 0, timestamp: 0, isProcessing: !1 }, o = () => t = !0, i = nc.reduce((w, x) => (w[x] = G$(o, e ? x : void 0), w), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: d, render: p, postRender: f } = i, m = () => { const w = qs.useManualTiming ? r.timestamp : performance.now(); t = !1, qs.useManualTiming || (r.delta = s ? 1e3 / 60 : Math.max(Math.min(w - r.timestamp, H$), 1)), r.timestamp = w, r.isProcessing = !0, a.process(r), l.process(r), c.process(r), u.process(r), h.process(r), d.process(r), p.process(r), f.process(r), r.isProcessing = !1, t && e && (s = !1, n(m)); }, g = () => { t = !0, s = !0, r.isProcessing || n(m); }; return { schedule: nc.reduce((w, x) => { const S = i[x]; return w[x] = (C, T = !1, k = !1) => (t || g(), S.schedule(C, T, k)), w; }, {}), cancel: (w) => { for (let x = 0; x < nc.length; x++) i[nc[x]].cancel(w); }, state: r, steps: i }; } const { schedule: at, cancel: br, state: Vt, steps: Nd } = /* @__PURE__ */ v2(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Gn, !0); let Cc; function j$() { Cc = void 0; } const gn = { now: () => (Cc === void 0 && gn.set(Vt.isProcessing || qs.useManualTiming ? Vt.timestamp : performance.now()), Cc), set: (n) => { Cc = n, queueMicrotask(j$); } }, S2 = (n) => (e) => typeof e == "string" && e.startsWith(n), Gf = /* @__PURE__ */ S2("--"), q$ = /* @__PURE__ */ S2("var(--"), Hf = (n) => q$(n) ? K$.test(n.split("/*")[0].trim()) : !1, K$ = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, wi = { test: (n) => typeof n == "number", parse: parseFloat, transform: (n) => n }, ia = { ...wi, transform: (n) => Hs(0, 1, n) }, sc = { ...wi, default: 1 }, ea = (n) => Math.round(n * 1e5) / 1e5, jf = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu; function X$(n) { return n == null; } const Y$ = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, qf = (n, e) => (t) => !!(typeof t == "string" && Y$.test(t) && t.startsWith(n) || e && !X$(t) && Object.prototype.hasOwnProperty.call(t, e)), C2 = (n, e, t) => (s) => { if (typeof s != "string") return s; const [r, o, i, a] = s.match(jf); return { [n]: parseFloat(r), [e]: parseFloat(o), [t]: parseFloat(i), alpha: a !== void 0 ? parseFloat(a) : 1 }; }, Z$ = (n) => Hs(0, 255, n), Td = { ...wi, transform: (n) => Math.round(Z$(n)) }, to = { test: /* @__PURE__ */ qf("rgb", "red"), parse: /* @__PURE__ */ C2("red", "green", "blue"), transform: ({ red: n, green: e, blue: t, alpha: s = 1 }) => "rgba(" + Td.transform(n) + ", " + Td.transform(e) + ", " + Td.transform(t) + ", " + ea(ia.transform(s)) + ")" }; function J$(n) { let e = "", t = "", s = "", r = ""; return n.length > 5 ? (e = n.substring(1, 3), t = n.substring(3, 5), s = n.substring(5, 7), r = n.substring(7, 9)) : (e = n.substring(1, 2), t = n.substring(2, 3), s = n.substring(3, 4), r = n.substring(4, 5), e += e, t += t, s += s, r += r), { red: parseInt(e, 16), green: parseInt(t, 16), blue: parseInt(s, 16), alpha: r ? parseInt(r, 16) / 255 : 1 }; } const cp = { test: /* @__PURE__ */ qf("#"), parse: J$, transform: to.transform }, Aa = /* @__NO_SIDE_EFFECTS__ */ (n) => ({ test: (e) => typeof e == "string" && e.endsWith(n) && e.split(" ").length === 1, parse: parseFloat, transform: (e) => `${e}${n}` }), lr = /* @__PURE__ */ Aa("deg"), Ss = /* @__PURE__ */ Aa("%"), we = /* @__PURE__ */ Aa("px"), Q$ = /* @__PURE__ */ Aa("vh"), e3 = /* @__PURE__ */ Aa("vw"), F1 = { ...Ss, parse: (n) => Ss.parse(n) / 100, transform: (n) => Ss.transform(n * 100) }, Go = { test: /* @__PURE__ */ qf("hsl", "hue"), parse: /* @__PURE__ */ C2("hue", "saturation", "lightness"), transform: ({ hue: n, saturation: e, lightness: t, alpha: s = 1 }) => "hsla(" + Math.round(n) + ", " + Ss.transform(ea(e)) + ", " + Ss.transform(ea(t)) + ", " + ea(ia.transform(s)) + ")" }, qt = { test: (n) => to.test(n) || cp.test(n) || Go.test(n), parse: (n) => to.test(n) ? to.parse(n) : Go.test(n) ? Go.parse(n) : cp.parse(n), transform: (n) => typeof n == "string" ? n : n.hasOwnProperty("red") ? to.transform(n) : Go.transform(n) }, t3 = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu; function n3(n) { var e, t; return isNaN(n) && typeof n == "string" && (((e = n.match(jf)) == null ? void 0 : e.length) || 0) + (((t = n.match(t3)) == null ? void 0 : t.length) || 0) > 0; } const N2 = "number", T2 = "color", s3 = "var", r3 = "var(", _1 = "${}", o3 = /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 aa(n) { const e = n.toString(), t = [], s = { color: [], number: [], var: [] }, r = []; let o = 0; const a = e.replace(o3, (l) => (qt.test(l) ? (s.color.push(o), r.push(T2), t.push(qt.parse(l))) : l.startsWith(r3) ? (s.var.push(o), r.push(s3), t.push(l)) : (s.number.push(o), r.push(N2), t.push(parseFloat(l))), ++o, _1)).split(_1); return { values: t, split: a, indexes: s, types: r }; } function k2(n) { return aa(n).values; } function I2(n) { const { split: e, types: t } = aa(n), s = e.length; return (r) => { let o = ""; for (let i = 0; i < s; i++) if (o += e[i], r[i] !== void 0) { const a = t[i]; a === N2 ? o += ea(r[i]) : a === T2 ? o += qt.transform(r[i]) : o += r[i]; } return o; }; } const i3 = (n) => typeof n == "number" ? 0 : n; function a3(n) { const e = k2(n); return I2(n)(e.map(i3)); } const xr = { test: n3, parse: k2, createTransformer: I2, getAnimatableNone: a3 }; function kd(n, e, t) { return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * (2 / 3 - t) * 6 : n; } function l3({ hue: n, saturation: e, lightness: t, alpha: s }) { n /= 360, e /= 100, t /= 100; let r = 0, o = 0, i = 0; if (!e) r = o = i = t; else { const a = t < 0.5 ? t * (1 + e) : t + e - t * e, l = 2 * t - a; r = kd(l, a, n + 1 / 3), o = kd(l, a, n), i = kd(l, a, n - 1 / 3); } return { red: Math.round(r * 255), green: Math.round(o * 255), blue: Math.round(i * 255), alpha: s }; } function Wc(n, e) { return (t) => t > 0 ? e : n; } const rt = (n, e, t) => n + (e - n) * t, Id = (n, e, t) => { const s = n * n, r = t * (e * e - s) + s; return r < 0 ? 0 : Math.sqrt(r); }, c3 = [cp, to, Go], u3 = (n) => c3.find((e) => e.test(n)); function P1(n) { const e = u3(n); if (xi(!!e, `'${n}' is not an animatable color. Use the equivalent color code instead.`), !e) return !1; let t = e.parse(n); return e === Go && (t = l3(t)), t; } const L1 = (n, e) => { const t = P1(n), s = P1(e); if (!t || !s) return Wc(n, e); const r = { ...t }; return (o) => (r.red = Id(t.red, s.red, o), r.green = Id(t.green, s.green, o), r.blue = Id(t.blue, s.blue, o), r.alpha = rt(t.alpha, s.alpha, o), to.transform(r)); }, up = /* @__PURE__ */ new Set(["none", "hidden"]); function h3(n, e) { return up.has(n) ? (t) => t <= 0 ? n : e : (t) => t >= 1 ? e : n; } function d3(n, e) { return (t) => rt(n, e, t); } function Kf(n) { return typeof n == "number" ? d3 : typeof n == "string" ? Hf(n) ? Wc : qt.test(n) ? L1 : m3 : Array.isArray(n) ? $2 : typeof n == "object" ? qt.test(n) ? L1 : p3 : Wc; } function $2(n, e) { const t = [...n], s = t.length, r = n.map((o, i) => Kf(o)(o, e[i])); return (o) => { for (let i = 0; i < s; i++) t[i] = r[i](o); return t; }; } function p3(n, e) { const t = { ...n, ...e }, s = {}; for (const r in t) n[r] !== void 0 && e[r] !== void 0 && (s[r] = Kf(n[r])(n[r], e[r])); return (r) => { for (const o in s) t[o] = s[o](r); return t; }; } function f3(n, e) { const t = [], s = { color: 0, var: 0, number: 0 }; for (let r = 0; r < e.values.length; r++) { const o = e.types[r], i = n.indexes[o][s[o]], a = n.values[i] ?? 0; t[r] = a, s[o]++; } return t; } const m3 = (n, e) => { const t = xr.createTransformer(e), s = aa(n), r = aa(e); return s.indexes.var.length === r.indexes.var.length && s.indexes.color.length === r.indexes.color.length && s.indexes.number.length >= r.indexes.number.length ? up.has(n) && !r.values.length || up.has(e) && !s.values.length ? h3(n, e) : $a($2(f3(s, r), r.values), t) : (xi(!0, `Complex values '${n}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Wc(n, e)); }; function E2(n, e, t) { return typeof n == "number" && typeof e == "number" && typeof t == "number" ? rt(n, e, t) : Kf(n)(n, e); } const g3 = (n) => { const e = ({ timestamp: t }) => n(t); return { start: (t = !0) => at.update(e, t), stop: () => br(e), /** * If we're processing this frame we can use the * framelocked timestamp to keep things in sync. */ now: () => Vt.isProcessing ? Vt.timestamp : gn.now() }; }, A2 = (n, e, t = 10) => { let s = ""; const r = Math.max(Math.round(e / t), 2); for (let o = 0; o < r; o++) s += n(o / (r - 1)) + ", "; return `linear(${s.substring(0, s.length - 2)})`; }, Uc = 2e4; function Xf(n) { let e = 0; const t = 50; let s = n.next(e); for (; !s.done && e < Uc; ) e += t, s = n.next(e); return e >= Uc ? 1 / 0 : e; } function y3(n, e = 100, t) { const s = t({ ...n, keyframes: [0, e] }), r = Math.min(Xf(s), Uc); return { type: "keyframes", ease: (o) => s.next(r * o).value / e, duration: /* @__PURE__ */ vs(r) }; } const b3 = 5; function R2(n, e, t) { const s = Math.max(e - b3, 0); return u2(t - n(s), e - s); } const st = { // Default spring physics stiffness: 100, damping: 10, mass: 1, velocity: 0, // Default duration/bounce-based options duration: 800, // in ms bounce: 0.3, visualDuration: 0.3, // in seconds // Rest thresholds restSpeed: { granular: 0.01, default: 2 }, restDelta: { granular: 5e-3, default: 0.5 }, // Limits minDuration: 0.01, // in seconds maxDuration: 10, // in seconds minDamping: 0.05, maxDamping: 1 }, $d = 1e-3; function x3({ duration: n = st.duration, bounce: e = st.bounce, velocity: t = st.velocity, mass: s = st.mass }) { let r, o; xi(n <= /* @__PURE__ */ os(st.maxDuration), "Spring duration must be 10 seconds or less"); let i = 1 - e; i = Hs(st.minDamping, st.maxDamping, i), n = Hs(st.minDuration, st.maxDuration, /* @__PURE__ */ vs(n)), i < 1 ? (r = (c) => { const u = c * i, h = u * n, d = u - t, p = hp(c, i), f = Math.exp(-h); return $d - d / p * f; }, o = (c) => { const h = c * i * n, d = h * t + t, p = Math.pow(i, 2) * Math.pow(c, 2) * n, f = Math.exp(-h), m = hp(Math.pow(c, 2), i); return (-r(c) + $d > 0 ? -1 : 1) * ((d - p) * f) / m; }) : (r = (c) => { const u = Math.exp(-c * n), h = (c - t) * n + 1; return -$d + u * h; }, o = (c) => { const u = Math.exp(-c * n), h = (t - c) * (n * n); return u * h; }); const a = 5 / n, l = v3(r, o, a); if (n = /* @__PURE__ */ os(n), isNaN(l)) return { stiffness: st.stiffness, damping: st.damping, duration: n }; { const c = Math.pow(l, 2) * s; return { stiffness: c, damping: i * 2 * Math.sqrt(s * c), duration: n }; } } const w3 = 12; function v3(n, e, t) { let s = t; for (let r = 1; r < w3; r++) s = s - n(s) / e(s); return s; } function hp(n, e) { return n * Math.sqrt(1 - e * e); } const S3 = ["duration", "bounce"], C3 = ["stiffness", "damping", "mass"]; function M1(n, e) { return e.some((t) => n[t] !== void 0); } function N3(n) { let e = { velocity: st.velocity, stiffness: st.stiffness, damping: st.damping, mass: st.mass, isResolvedFromDuration: !1, ...n }; if (!M1(n, C3) && M1(n, S3)) if (n.visualDuration) { const t = n.visualDuration, s = 2 * Math.PI / (t * 1.2), r = s * s, o = 2 * Hs(0.05, 1, 1 - (n.bounce || 0)) * Math.sqrt(r); e = { ...e, mass: st.mass, stiffness: r, damping: o }; } else { const t = x3(n); e = { ...e, ...t, mass: st.mass }, e.isResolvedFromDuration = !0; } return e; } function Gc(n = st.visualDuration, e = st.bounce) { const t = typeof n != "object" ? { visualDuration: n, keyframes: [0, 1], bounce: e } : n; let { restSpeed: s, restDelta: r } = t; const o = t.keyframes[0], i = t.keyframes[t.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: h, velocity: d, isResolvedFromDuration: p } = N3({ ...t, velocity: -/* @__PURE__ */ vs(t.velocity || 0) }), f = d || 0, m = c / (2 * Math.sqrt(l * u)), g = i - o, y = /* @__PURE__ */ vs(Math.sqrt(l / u)), b = Math.abs(g) < 5; s || (s = b ? st.restSpeed.granular : st.restSpeed.default), r || (r = b ? st.restDelta.granular : st.restDelta.default); let w; if (m < 1) { const S = hp(y, m); w = (C) => { const T = Math.exp(-m * y * C); return i - T * ((f + m * y * g) / S * Math.sin(S * C) + g * Math.cos(S * C)); }; } else if (m === 1) w = (S) => i - Math.exp(-y * S) * (g + (f + y * g) * S); else { const S = y * Math.sqrt(m * m - 1); w = (C) => { const T = Math.exp(-m * y * C), k = Math.min(S * C, 300); return i - T * ((f + m * y * g) * Math.sinh(k) + S * g * Math.cosh(k)) / S; }; } const x = { calculatedDuration: p && h || null, next: (S) => { const C = w(S); if (p) a.done = S >= h; else { let T = S === 0 ? f : 0; m < 1 && (T = S === 0 ? /* @__PURE__ */ os(f) : R2(w, S, C)); const k = Math.abs(T) <= s, $ = Math.abs(i - C) <= r; a.done = k && $; } return a.value = a.done ? i : C, a; }, toString: () => { const S = Math.min(Xf(x), Uc), C = A2((T) => x.next(S * T).value, S, 30); return S + "ms " + C; }, toTransition: () => { } }; return x; } Gc.applyToOptions = (n) => { const e = y3(n, 100, Gc); return n.ease = e.ease, n.duration = /* @__PURE__ */ os(e.duration), n.type = "keyframes", n; }; function dp({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: s = 325, bounceDamping: r = 10, bounceStiffness: o = 500, modifyTarget: i, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) { const h = n[0], d = { done: !1, value: h }, p = (k) => a !== void 0 && k < a || l !== void 0 && k > l, f = (k) => a === void 0 ? l : l === void 0 || Math.abs(a - k) < Math.abs(l - k) ? a : l; let m = t * e; const g = h + m, y = i === void 0 ? g : i(g); y !== g && (m = y - h); const b = (k) => -m * Math.exp(-k / s), w = (k) => y + b(k), x = (k) => { const $ = b(k), E = w(k); d.done = Math.abs($) <= c, d.value = d.done ? y : E; }; let S, C; const T = (k) => { p(d.value) && (S = k, C = Gc({ keyframes: [d.value, f(d.value)], velocity: R2(w, k, d.value), // TODO: This should be passing * 1000 damping: r, stiffness: o, restDelta: c, restSpeed: u })); }; return T(0), { calculatedDuration: null, next: (k) => { let $ = !1; return !C && S === void 0 && ($ = !0, x(k), T(k)), S !== void 0 && k >= S ? C.next(k - S) : (!$ && x(k), d); } }; } function T3(n, e, t) { const s = [], r = t || qs.mix || E2, o = n.length - 1; for (let i = 0; i < o; i++) { let a = r(n[i], n[i + 1]); if (e) { const l = Array.isArray(e) ? e[i] || Gn : e; a = $a(l, a); } s.push(a); } return s; } function k3(n, e, { clamp: t = !0, ease: s, mixer: r } = {}) { const o = n.length; if (js(o === e.length, "Both input and output ranges must be the same length"), o === 1) return () => e[0]; if (o === 2 && e[0] === e[1]) return () => e[1]; const i = n[0] === n[1]; n[0] > n[o - 1] && (n = [...n].reverse(), e = [...e].reverse()); const a = T3(e, s, r), l = a.length, c = (u)