{"version":3,"file":"motion.-O2jGh0v.mjs","names":["React.useCallback","useId","useRef","useContext","jsx","React2.cloneElement","useRef2","useContext2","useId3","useCallback2","isValidElement","useRef5","useState2","useCallback3","useContext5","useMemo4","jsx6","useContext7","useMemo5","useMemo6","useMemo7","Fragment2","useMemo8","createElement","useRef8","useCallback4","useContext8","useRef9","useContext9","jsxs","jsx7","forwardRef","useContext10","jsx8","useEffect6","useRef10","useCallback5","useContext11","useState4","outputRange","useContext12","useRef11","useContext13","useState5","useContext14","useContext15","useMemo9","useCallback6","useState7","useRef13","useState8","useRef14","useState10","jsx10","useContext18","jsx11","createContext","useLayoutEffect","useEffect","createContext3","React2.Component","useId2","useRef3","useMemo","jsx2","useMemo2","useRef4","useState","useContext3","jsx3","Fragment","createContext4","useContext4","useRef6","useMemo3","jsx4","createContext5","useContext6","createContext7","Fragment3","Component2","createContext8"],"sources":["https:/app.framerstatic.com/chunk-JD57JJMT.mjs","https:/app.framerstatic.com/framer-motion.ZJUPCPDG.mjs"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for(\"Symbol.\" + name);\nvar __typeError = (msg) => {\n  throw TypeError(msg);\n};\nvar __commonJS = (cb, mod) => function __require() {\n  try {\n    return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n  } catch (e) {\n    throw mod = 0, e;\n  }\n};\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __using = (stack, value, async) => {\n  if (value != null) {\n    if (typeof value !== \"object\" && typeof value !== \"function\") __typeError(\"Object expected\");\n    var dispose, inner;\n    if (async) dispose = value[__knownSymbol(\"asyncDispose\")];\n    if (dispose === void 0) {\n      dispose = value[__knownSymbol(\"dispose\")];\n      if (async) inner = dispose;\n    }\n    if (typeof dispose !== \"function\") __typeError(\"Object not disposable\");\n    if (inner) dispose = function() {\n      try {\n        inner.call(this);\n      } catch (e) {\n        return Promise.reject(e);\n      }\n    };\n    stack.push([async, dispose, value]);\n  } else if (async) {\n    stack.push([async]);\n  }\n  return value;\n};\nvar __callDispose = (stack, error, hasError) => {\n  var E = typeof SuppressedError === \"function\" ? SuppressedError : function(e, s, m2, _) {\n    return _ = Error(m2), _.name = \"SuppressedError\", _.error = e, _.suppressed = s, _;\n  };\n  var fail = (e) => error = hasError ? new E(e, error, \"An error was suppressed during disposal\") : (hasError = true, e);\n  var next2 = (it) => {\n    while (it = stack.pop()) {\n      try {\n        var result = it[1] && it[1].call(it[2]);\n        if (it[0]) return Promise.resolve(result).then(next2, (e) => (fail(e), next2()));\n      } catch (e) {\n        fail(e);\n      }\n    }\n    if (hasError) throw error;\n  };\n  return next2();\n};\n\n// ../../../node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs\nimport { createContext } from \"react\";\nvar LayoutGroupContext = createContext({});\n\n// ../../../node_modules/framer-motion/dist/es/utils/is-browser.mjs\nvar isBrowser = typeof window !== \"undefined\";\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs\nimport { useLayoutEffect, useEffect } from \"react\";\nvar useIsomorphicLayoutEffect = isBrowser ? useLayoutEffect : useEffect;\n\n// ../../../node_modules/framer-motion/dist/es/context/PresenceContext.mjs\nimport { createContext as createContext2 } from \"react\";\nvar PresenceContext = /* @__PURE__ */ createContext2(null);\n\n// ../../../node_modules/motion-utils/dist/es/array.mjs\nfunction addUniqueItem(arr, item) {\n  if (arr.indexOf(item) === -1)\n    arr.push(item);\n}\nfunction removeItem(arr, item) {\n  const index = arr.indexOf(item);\n  if (index > -1)\n    arr.splice(index, 1);\n}\nfunction moveItem([...arr], fromIndex, toIndex) {\n  const startIndex = fromIndex < 0 ? arr.length + fromIndex : fromIndex;\n  if (startIndex >= 0 && startIndex < arr.length) {\n    const endIndex = toIndex < 0 ? arr.length + toIndex : toIndex;\n    const [item] = arr.splice(fromIndex, 1);\n    arr.splice(endIndex, 0, item);\n  }\n  return arr;\n}\n\n// ../../../node_modules/motion-utils/dist/es/clamp.mjs\nvar clamp = (min, max, v) => {\n  if (v > max)\n    return max;\n  if (v < min)\n    return min;\n  return v;\n};\n\n// ../../../node_modules/motion-utils/dist/es/format-error-message.mjs\nfunction formatErrorMessage(message, errorCode) {\n  return errorCode ? `${message}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${errorCode}` : message;\n}\n\n// ../../../node_modules/motion-utils/dist/es/errors.mjs\nvar warning = () => {\n};\nvar invariant = () => {\n};\nif (typeof process !== \"undefined\" && false) {\n  warning = (check, message, errorCode) => {\n    if (!check && typeof console !== \"undefined\") {\n      console.warn(formatErrorMessage(message, errorCode));\n    }\n  };\n  invariant = (check, message, errorCode) => {\n    if (!check) {\n      throw new Error(formatErrorMessage(message, errorCode));\n    }\n  };\n}\n\n// ../../../node_modules/motion-utils/dist/es/global-config.mjs\nvar MotionGlobalConfig = {};\n\n// ../../../node_modules/motion-utils/dist/es/is-numerical-string.mjs\nvar isNumericalString = (v) => /^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)$/u.test(v);\n\n// ../../../node_modules/motion-utils/dist/es/is-object.mjs\nvar isObject = (value) => typeof value === \"object\" && value !== null;\n\n// ../../../node_modules/motion-utils/dist/es/is-zero-value-string.mjs\nvar isZeroValueString = (v) => /^0[^.\\s]+$/u.test(v);\n\n// ../../../node_modules/motion-utils/dist/es/memo.mjs\n// @__NO_SIDE_EFFECTS__\nfunction memo(callback) {\n  let result;\n  return () => {\n    if (result === void 0)\n      result = callback();\n    return result;\n  };\n}\n\n// ../../../node_modules/motion-utils/dist/es/noop.mjs\nvar noop = /* @__NO_SIDE_EFFECTS__ */ (any) => any;\n\n// ../../../node_modules/motion-utils/dist/es/pipe.mjs\nvar pipe = (...transformers) => transformers.reduce((a, b) => (v) => b(a(v)));\n\n// ../../../node_modules/motion-utils/dist/es/progress.mjs\nvar progress = /* @__NO_SIDE_EFFECTS__ */ (from, to, value) => {\n  const range = to - from;\n  return range ? (value - from) / range : 1;\n};\n\n// ../../../node_modules/motion-utils/dist/es/subscription-manager.mjs\nvar SubscriptionManager = class {\n  constructor() {\n    this.subscriptions = [];\n  }\n  add(handler) {\n    addUniqueItem(this.subscriptions, handler);\n    return () => this.remove(handler);\n  }\n  remove(handler) {\n    removeItem(this.subscriptions, handler);\n  }\n  notify(a, b, c) {\n    const numSubscriptions = this.subscriptions.length;\n    if (!numSubscriptions)\n      return;\n    if (numSubscriptions === 1) {\n      this.subscriptions[0](a, b, c);\n    } else {\n      for (let i = 0; i < numSubscriptions; i++) {\n        const handler = this.subscriptions[i];\n        handler && handler(a, b, c);\n      }\n    }\n  }\n  getSize() {\n    return this.subscriptions.length;\n  }\n  clear() {\n    this.subscriptions.length = 0;\n  }\n};\n\n// ../../../node_modules/motion-utils/dist/es/time-conversion.mjs\nvar secondsToMilliseconds = /* @__NO_SIDE_EFFECTS__ */ (seconds) => seconds * 1e3;\nvar millisecondsToSeconds = /* @__NO_SIDE_EFFECTS__ */ (milliseconds) => milliseconds / 1e3;\n\n// ../../../node_modules/motion-utils/dist/es/velocity-per-second.mjs\nvar velocityPerSecond = /* @__NO_SIDE_EFFECTS__ */ (velocity, frameDuration) => frameDuration ? velocity * (1e3 / frameDuration) : 0;\n\n// ../../../node_modules/motion-utils/dist/es/warn-once.mjs\nvar warned = /* @__PURE__ */ new Set();\nfunction hasWarned(message) {\n  return warned.has(message);\n}\nfunction warnOnce(condition, message, errorCode) {\n  if (condition || warned.has(message))\n    return;\n  console.warn(formatErrorMessage(message, errorCode));\n  warned.add(message);\n}\n\n// ../../../node_modules/motion-utils/dist/es/wrap.mjs\nvar wrap = (min, max, v) => {\n  const rangeSize = max - min;\n  return ((v - min) % rangeSize + rangeSize) % rangeSize + min;\n};\n\n// ../../../node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs\nvar calcBezier = (t, a1, a2) => t * (3 * (1 - t) * ((1 - t) * a1 + t * a2) + t * t);\n// @__NO_SIDE_EFFECTS__\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n  if (mX1 === mY1 && mX2 === mY2)\n    return noop;\n  return (x) => {\n    let lowerBound = 0;\n    let upperBound = 1;\n    let t = x;\n    for (let i = 0; ; i++) {\n      if (!(t >= lowerBound && t <= upperBound)) {\n        t = (lowerBound + upperBound) / 2;\n      }\n      const currentX = calcBezier(t, mX1, mX2) - x;\n      if (currentX * currentX < 1e-28 || i === 40)\n        break;\n      currentX > 0 ? upperBound = t : lowerBound = t;\n      t -= currentX * 1e-7 / (calcBezier(t + 1e-7, mX1, mX2) - x - currentX);\n    }\n    return calcBezier(t, mY1, mY2);\n  };\n}\n\n// ../../../node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs\nvar mirrorEasing = /* @__NO_SIDE_EFFECTS__ */ (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;\n\n// ../../../node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs\nvar reverseEasing = /* @__NO_SIDE_EFFECTS__ */ (easing) => (p) => 1 - easing(1 - p);\n\n// ../../../node_modules/motion-utils/dist/es/easing/back.mjs\nvar backOut = /* @__PURE__ */ cubicBezier(0.33, 1.53, 0.69, 0.99);\nvar backIn = /* @__PURE__ */ reverseEasing(backOut);\nvar backInOut = /* @__PURE__ */ mirrorEasing(backIn);\n\n// ../../../node_modules/motion-utils/dist/es/easing/anticipate.mjs\nvar anticipate = (p) => p >= 1 ? 1 : (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));\n\n// ../../../node_modules/motion-utils/dist/es/easing/circ.mjs\nvar circIn = (p) => 1 - Math.sin(Math.acos(p));\nvar circOut = reverseEasing(circIn);\nvar circInOut = mirrorEasing(circIn);\n\n// ../../../node_modules/motion-utils/dist/es/easing/ease.mjs\nvar easeIn = /* @__PURE__ */ cubicBezier(0.42, 0, 1, 1);\nvar easeOut = /* @__PURE__ */ cubicBezier(0, 0, 0.58, 1);\nvar easeInOut = /* @__PURE__ */ cubicBezier(0.42, 0, 0.58, 1);\n\n// ../../../node_modules/motion-utils/dist/es/easing/steps.mjs\n// @__NO_SIDE_EFFECTS__\nfunction steps(numSteps, direction = \"end\") {\n  return (progress2) => {\n    progress2 = direction === \"end\" ? Math.min(progress2, 0.999) : Math.max(progress2, 1e-3);\n    const expanded = progress2 * numSteps;\n    const rounded = direction === \"end\" ? Math.floor(expanded) : Math.ceil(expanded);\n    return clamp(0, 1, rounded / numSteps);\n  };\n}\n\n// ../../../node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs\nvar isEasingArray = /* @__NO_SIDE_EFFECTS__ */ (ease2) => {\n  return Array.isArray(ease2) && typeof ease2[0] !== \"number\";\n};\n\n// ../../../node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs\n// @__NO_SIDE_EFFECTS__\nfunction getEasingForSegment(easing, i) {\n  return isEasingArray(easing) ? easing[wrap(0, easing.length, i)] : easing;\n}\n\n// ../../../node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs\nvar isBezierDefinition = /* @__NO_SIDE_EFFECTS__ */ (easing) => Array.isArray(easing) && typeof easing[0] === \"number\";\n\n// ../../../node_modules/motion-utils/dist/es/easing/utils/map.mjs\nvar easingLookup = {\n  linear: noop,\n  easeIn,\n  easeInOut,\n  easeOut,\n  circIn,\n  circInOut,\n  circOut,\n  backIn,\n  backInOut,\n  backOut,\n  anticipate\n};\nvar isValidEasing = (easing) => {\n  return typeof easing === \"string\";\n};\nvar easingDefinitionToFunction = (definition) => {\n  if (isBezierDefinition(definition)) {\n    invariant(definition.length === 4, `Cubic bezier arrays must contain four numerical values.`, \"cubic-bezier-length\");\n    const [x1, y1, x2, y2] = definition;\n    return cubicBezier(x1, y1, x2, y2);\n  } else if (isValidEasing(definition)) {\n    invariant(easingLookup[definition] !== void 0, `Invalid easing type '${definition}'`, \"invalid-easing-type\");\n    return easingLookup[definition];\n  }\n  return definition;\n};\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/frame-data.mjs\nvar frameData = {\n  delta: 0,\n  timestamp: 0,\n  isProcessing: false\n};\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/sync-time.mjs\nvar now;\nfunction clearTime() {\n  now = void 0;\n}\nvar time = {\n  now: () => {\n    if (now === void 0) {\n      time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming ? frameData.timestamp : performance.now());\n    }\n    return now;\n  },\n  set: (newTime) => {\n    now = newTime;\n    queueMicrotask(clearTime);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs\nvar checkStringStartsWith = (token) => (key) => typeof key === \"string\" && key.startsWith(token);\nvar isCSSVariableName = /* @__PURE__ */ checkStringStartsWith(\"--\");\nvar startsAsVariableToken = /* @__PURE__ */ checkStringStartsWith(\"var(--\");\nvar isCSSVariableToken = (value) => {\n  const startsWithToken = startsAsVariableToken(value);\n  if (!startsWithToken)\n    return false;\n  return singleCssVariableRegex.test(value.split(\"/*\")[0].trim());\n};\nvar singleCssVariableRegex = /var\\(--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)$/iu;\nfunction containsCSSVariable(value) {\n  if (typeof value !== \"string\")\n    return false;\n  return value.split(\"/*\")[0].includes(\"var(--\");\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/types/numbers/index.mjs\nvar number = {\n  test: (v) => typeof v === \"number\",\n  parse: parseFloat,\n  transform: (v) => v\n};\nvar alpha = {\n  ...number,\n  transform: (v) => clamp(0, 1, v)\n};\nvar scale = {\n  ...number,\n  default: 1\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs\nvar sanitize = (v) => Math.round(v * 1e5) / 1e5;\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs\nvar floatRegex = /-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/gu;\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs\nfunction isNullish(v) {\n  return v == null;\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs\nvar singleColorRegex = /^(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))$/iu;\n\n// ../../../node_modules/motion-dom/dist/es/value/types/color/utils.mjs\nvar isColorString = (type, testProp) => (v) => {\n  return Boolean(typeof v === \"string\" && singleColorRegex.test(v) && v.startsWith(type) || testProp && !isNullish(v) && Object.prototype.hasOwnProperty.call(v, testProp));\n};\nvar splitColor = (aName, bName, cName) => (v) => {\n  if (typeof v !== \"string\")\n    return v;\n  const [a, b, c, alpha2] = v.match(floatRegex);\n  return {\n    [aName]: parseFloat(a),\n    [bName]: parseFloat(b),\n    [cName]: parseFloat(c),\n    alpha: alpha2 !== void 0 ? parseFloat(alpha2) : 1\n  };\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/color/rgba.mjs\nvar clampRgbUnit = (v) => clamp(0, 255, v);\nvar rgbUnit = {\n  ...number,\n  transform: (v) => Math.round(clampRgbUnit(v))\n};\nvar rgba = {\n  test: /* @__PURE__ */ isColorString(\"rgb\", \"red\"),\n  parse: /* @__PURE__ */ splitColor(\"red\", \"green\", \"blue\"),\n  transform: ({ red, green, blue, alpha: alpha$1 = 1 }) => \"rgba(\" + rgbUnit.transform(red) + \", \" + rgbUnit.transform(green) + \", \" + rgbUnit.transform(blue) + \", \" + sanitize(alpha.transform(alpha$1)) + \")\"\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/color/hex.mjs\nfunction parseHex(v) {\n  let r = \"\";\n  let g = \"\";\n  let b = \"\";\n  let a = \"\";\n  if (v.length > 5) {\n    r = v.substring(1, 3);\n    g = v.substring(3, 5);\n    b = v.substring(5, 7);\n    a = v.substring(7, 9);\n  } else {\n    r = v.substring(1, 2);\n    g = v.substring(2, 3);\n    b = v.substring(3, 4);\n    a = v.substring(4, 5);\n    r += r;\n    g += g;\n    b += b;\n    a += a;\n  }\n  return {\n    red: parseInt(r, 16),\n    green: parseInt(g, 16),\n    blue: parseInt(b, 16),\n    alpha: a ? parseInt(a, 16) / 255 : 1\n  };\n}\nvar hex = {\n  test: /* @__PURE__ */ isColorString(\"#\"),\n  parse: parseHex,\n  transform: rgba.transform\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/numbers/units.mjs\nvar createUnitType = /* @__NO_SIDE_EFFECTS__ */ (unit) => ({\n  test: (v) => typeof v === \"string\" && v.endsWith(unit) && v.split(\" \").length === 1,\n  parse: parseFloat,\n  transform: (v) => `${v}${unit}`\n});\nvar degrees = /* @__PURE__ */ createUnitType(\"deg\");\nvar percent = /* @__PURE__ */ createUnitType(\"%\");\nvar px = /* @__PURE__ */ createUnitType(\"px\");\nvar vh = /* @__PURE__ */ createUnitType(\"vh\");\nvar vw = /* @__PURE__ */ createUnitType(\"vw\");\nvar progressPercentage = /* @__PURE__ */ (() => ({\n  ...percent,\n  parse: (v) => percent.parse(v) / 100,\n  transform: (v) => percent.transform(v * 100)\n}))();\n\n// ../../../node_modules/motion-dom/dist/es/value/types/color/hsla.mjs\nvar hsla = {\n  test: /* @__PURE__ */ isColorString(\"hsl\", \"hue\"),\n  parse: /* @__PURE__ */ splitColor(\"hue\", \"saturation\", \"lightness\"),\n  transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {\n    return \"hsla(\" + Math.round(hue) + \", \" + percent.transform(sanitize(saturation)) + \", \" + percent.transform(sanitize(lightness)) + \", \" + sanitize(alpha.transform(alpha$1)) + \")\";\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/color/index.mjs\nvar color = {\n  test: (v) => rgba.test(v) || hex.test(v) || hsla.test(v),\n  parse: (v) => {\n    if (rgba.test(v)) {\n      return rgba.parse(v);\n    } else if (hsla.test(v)) {\n      return hsla.parse(v);\n    } else {\n      return hex.parse(v);\n    }\n  },\n  transform: (v) => {\n    return typeof v === \"string\" ? v : v.hasOwnProperty(\"red\") ? rgba.transform(v) : hsla.transform(v);\n  },\n  getAnimatableNone: (v) => {\n    const parsed = color.parse(v);\n    parsed.alpha = 0;\n    return color.transform(parsed);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs\nvar colorRegex = /(?:#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\))/giu;\n\n// ../../../node_modules/motion-dom/dist/es/value/types/complex/index.mjs\nvar hasFloat = /* @__PURE__ */ new RegExp(floatRegex.source);\nvar hasColor = /* @__PURE__ */ new RegExp(colorRegex.source, \"i\");\nfunction test(v) {\n  return isNaN(v) && typeof v === \"string\" && (hasFloat.test(v) || hasColor.test(v));\n}\nvar NUMBER_TOKEN = \"number\";\nvar COLOR_TOKEN = \"color\";\nvar VAR_TOKEN = \"var\";\nvar VAR_FUNCTION_TOKEN = \"var(\";\nvar SPLIT_TOKEN = \"${}\";\nvar complexRegex = /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+)(?![a-z]*\\()/giu;\nfunction hasComplexValues(value) {\n  const asString = value.toString();\n  return hasFloat.test(asString) || hasColor.test(asString);\n}\nfunction analyseComplexValue(value) {\n  const originalValue = value.toString();\n  const values = [];\n  const indexes = {\n    color: [],\n    number: [],\n    var: []\n  };\n  const types = [];\n  let i = 0;\n  const tokenised = originalValue.replace(complexRegex, (parsedValue) => {\n    if (color.test(parsedValue)) {\n      indexes.color.push(i);\n      types.push(COLOR_TOKEN);\n      values.push(color.parse(parsedValue));\n    } else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {\n      indexes.var.push(i);\n      types.push(VAR_TOKEN);\n      values.push(parsedValue);\n    } else {\n      indexes.number.push(i);\n      types.push(NUMBER_TOKEN);\n      values.push(parseFloat(parsedValue));\n    }\n    ++i;\n    return SPLIT_TOKEN;\n  });\n  const split = tokenised.split(SPLIT_TOKEN);\n  return { values, split, indexes, types };\n}\nfunction parseComplexValue(v) {\n  return analyseComplexValue(v).values;\n}\nfunction buildTransformer({ split, types }) {\n  const numSections = split.length;\n  return (v) => {\n    let output = \"\";\n    for (let i = 0; i < numSections; i++) {\n      output += split[i];\n      if (v[i] !== void 0) {\n        const type = types[i];\n        if (type === NUMBER_TOKEN) {\n          output += sanitize(v[i]);\n        } else if (type === COLOR_TOKEN) {\n          output += color.transform(v[i]);\n        } else {\n          output += v[i];\n        }\n      }\n    }\n    return output;\n  };\n}\nfunction createTransformer(source) {\n  return buildTransformer(analyseComplexValue(source));\n}\nvar convertNumbersToZero = (v) => typeof v === \"number\" ? 0 : color.test(v) ? color.getAnimatableNone(v) : v;\nvar convertToZero = (value, splitBefore) => {\n  if (typeof value === \"number\") {\n    return splitBefore?.trim().endsWith(\"/\") ? value : 0;\n  }\n  return convertNumbersToZero(value);\n};\nfunction getAnimatableNone(v) {\n  const info = analyseComplexValue(v);\n  const transformer = buildTransformer(info);\n  return transformer(info.values.map((value, i) => convertToZero(value, info.split[i])));\n}\nvar complex = {\n  test,\n  parse: parseComplexValue,\n  createTransformer,\n  getAnimatableNone\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs\nfunction hueToRgb(p, q, t) {\n  if (t < 0)\n    t += 1;\n  if (t > 1)\n    t -= 1;\n  if (t < 1 / 6)\n    return p + (q - p) * 6 * t;\n  if (t < 1 / 2)\n    return q;\n  if (t < 2 / 3)\n    return p + (q - p) * (2 / 3 - t) * 6;\n  return p;\n}\nfunction hslaToRgba({ hue, saturation, lightness, alpha: alpha2 }) {\n  hue /= 360;\n  saturation /= 100;\n  lightness /= 100;\n  let red = 0;\n  let green = 0;\n  let blue = 0;\n  if (!saturation) {\n    red = green = blue = lightness;\n  } else {\n    const q = lightness < 0.5 ? lightness * (1 + saturation) : lightness + saturation - lightness * saturation;\n    const p = 2 * lightness - q;\n    red = hueToRgb(p, q, hue + 1 / 3);\n    green = hueToRgb(p, q, hue);\n    blue = hueToRgb(p, q, hue - 1 / 3);\n  }\n  return {\n    red: Math.round(red * 255),\n    green: Math.round(green * 255),\n    blue: Math.round(blue * 255),\n    alpha: alpha2\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/mix/immediate.mjs\nfunction mixImmediate(a, b) {\n  return (p) => p > 0 ? b : a;\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/mix/number.mjs\nvar mixNumber = (from, to, progress2) => {\n  return from + (to - from) * progress2;\n};\n\n// ../../../node_modules/motion-dom/dist/es/utils/mix/color.mjs\nvar mixLinearColor = (from, to, v) => {\n  const fromExpo = from * from;\n  const expo = v * (to * to - fromExpo) + fromExpo;\n  return expo < 0 ? 0 : Math.sqrt(expo);\n};\nvar colorTypes = [hex, rgba, hsla];\nvar getColorType = (v) => colorTypes.find((type) => type.test(v));\nfunction asRGBA(color2) {\n  const type = getColorType(color2);\n  if (!type) {\n    warning(false, `'${color2}' is not an animatable color. Use the equivalent color code instead.`, \"color-not-animatable\");\n    return false;\n  }\n  let model = type.parse(color2);\n  if (type === hsla) {\n    model = hslaToRgba(model);\n  }\n  return model;\n}\nvar mixColor = (from, to) => {\n  const fromRGBA = asRGBA(from);\n  const toRGBA = asRGBA(to);\n  if (!fromRGBA || !toRGBA) {\n    return mixImmediate(from, to);\n  }\n  const blended = { ...fromRGBA };\n  return (v) => {\n    blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);\n    blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);\n    blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);\n    blended.alpha = mixNumber(fromRGBA.alpha, toRGBA.alpha, v);\n    return rgba.transform(blended);\n  };\n};\n\n// ../../../node_modules/motion-dom/dist/es/utils/mix/visibility.mjs\nvar invisibleValues = /* @__PURE__ */ new Set([\"none\", \"hidden\"]);\nfunction mixVisibility(origin, target) {\n  if (invisibleValues.has(origin)) {\n    return (p) => p <= 0 ? origin : target;\n  } else {\n    return (p) => p >= 1 ? target : origin;\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/mix/complex.mjs\nfunction mixNumber2(a, b) {\n  return (p) => mixNumber(a, b, p);\n}\nfunction getMixer(a) {\n  if (typeof a === \"number\") {\n    return mixNumber2;\n  } else if (typeof a === \"string\") {\n    return isCSSVariableToken(a) ? mixImmediate : color.test(a) ? mixColor : mixComplex;\n  } else if (Array.isArray(a)) {\n    return mixArray;\n  } else if (typeof a === \"object\") {\n    return color.test(a) ? mixColor : mixObject;\n  }\n  return mixImmediate;\n}\nfunction mixArray(a, b) {\n  const output = [...a];\n  const numValues = output.length;\n  const blendValue = a.map((v, i) => getMixer(v)(v, b[i]));\n  return (p) => {\n    for (let i = 0; i < numValues; i++) {\n      output[i] = blendValue[i](p);\n    }\n    return output;\n  };\n}\nfunction mixObject(a, b) {\n  const output = { ...a, ...b };\n  const blendValue = {};\n  for (const key in output) {\n    if (a[key] !== void 0 && b[key] !== void 0) {\n      blendValue[key] = getMixer(a[key])(a[key], b[key]);\n    }\n  }\n  return (v) => {\n    for (const key in blendValue) {\n      output[key] = blendValue[key](v);\n    }\n    return output;\n  };\n}\nfunction matchOrder(origin, target) {\n  const orderedOrigin = [];\n  const pointers = { color: 0, var: 0, number: 0 };\n  for (let i = 0; i < target.values.length; i++) {\n    const type = target.types[i];\n    const originIndex = origin.indexes[type][pointers[type]];\n    const originValue = origin.values[originIndex] ?? 0;\n    orderedOrigin[i] = originValue;\n    pointers[type]++;\n  }\n  return orderedOrigin;\n}\nvar mixComplex = (origin, target) => {\n  const template = complex.createTransformer(target);\n  const originStats = analyseComplexValue(origin);\n  const targetStats = analyseComplexValue(target);\n  const canInterpolate = originStats.indexes.var.length === targetStats.indexes.var.length && originStats.indexes.color.length === targetStats.indexes.color.length && originStats.indexes.number.length >= targetStats.indexes.number.length;\n  if (canInterpolate) {\n    if (invisibleValues.has(origin) && !targetStats.values.length || invisibleValues.has(target) && !originStats.values.length) {\n      return mixVisibility(origin, target);\n    }\n    return pipe(mixArray(matchOrder(originStats, targetStats), targetStats.values), template);\n  } else {\n    warning(true, `Complex values '${origin}' and '${target}' 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\");\n    return mixImmediate(origin, target);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/utils/mix/index.mjs\nvar unitValue = /^(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+))([a-z%]*)$/iu;\nfunction mixUnit(from, to) {\n  const a = unitValue.exec(from);\n  if (!a)\n    return;\n  const b = unitValue.exec(to);\n  if (!b || a[2] !== b[2])\n    return;\n  const unit = a[2];\n  const origin = parseFloat(a[1]);\n  const target = parseFloat(b[1]);\n  return (p) => sanitize(mixNumber(origin, target, p)) + unit;\n}\nfunction mix(from, to, p) {\n  if (typeof from === \"number\" && typeof to === \"number\" && typeof p === \"number\") {\n    return mixNumber(from, to, p);\n  }\n  if (typeof from === \"string\" && typeof to === \"string\") {\n    const mixer2 = mixUnit(from, to);\n    if (mixer2)\n      return mixer2;\n  }\n  const mixer = getMixer(from);\n  return mixer(from, to);\n}\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/order.mjs\nvar stepsOrder = [\n  \"setup\",\n  // Compute\n  \"read\",\n  // Read\n  \"resolveKeyframes\",\n  // Write/Read/Write/Read\n  \"preUpdate\",\n  // Compute\n  \"update\",\n  // Compute\n  \"preRender\",\n  // Compute\n  \"render\",\n  // Write\n  \"postRender\"\n  // Compute\n];\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/render-step.mjs\nfunction createRenderStep(runNextFrame) {\n  let thisFrame = /* @__PURE__ */ new Set();\n  let nextFrame = /* @__PURE__ */ new Set();\n  let isProcessing = false;\n  let flushNextFrame = false;\n  const toKeepAlive = /* @__PURE__ */ new Set();\n  let latestFrameData = {\n    delta: 0,\n    timestamp: 0,\n    isProcessing: false\n  };\n  function triggerCallback(callback) {\n    if (toKeepAlive.has(callback)) {\n      nextFrame.add(callback);\n      runNextFrame();\n    }\n    callback(latestFrameData);\n  }\n  const step = {\n    /**\n     * Schedule a process to run on the next frame.\n     */\n    schedule: (callback, keepAlive = false, immediate = false) => {\n      const addToCurrentFrame = immediate && isProcessing;\n      const queue = addToCurrentFrame ? thisFrame : nextFrame;\n      if (keepAlive)\n        toKeepAlive.add(callback);\n      queue.add(callback);\n      return callback;\n    },\n    /**\n     * Cancel the provided callback from running on the next frame.\n     */\n    cancel: (callback) => {\n      nextFrame.delete(callback);\n      toKeepAlive.delete(callback);\n    },\n    /**\n     * Execute all schedule callbacks.\n     */\n    process: (frameData2) => {\n      latestFrameData = frameData2;\n      if (isProcessing) {\n        flushNextFrame = true;\n        return;\n      }\n      isProcessing = true;\n      const prevFrame = thisFrame;\n      thisFrame = nextFrame;\n      nextFrame = prevFrame;\n      thisFrame.forEach(triggerCallback);\n      thisFrame.clear();\n      isProcessing = false;\n      if (flushNextFrame) {\n        flushNextFrame = false;\n        step.process(frameData2);\n      }\n    }\n  };\n  return step;\n}\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/batcher.mjs\nvar maxElapsed = 40;\nfunction createRenderBatcher(scheduleNextBatch, allowKeepAlive, state = {\n  delta: 0,\n  timestamp: 0,\n  isProcessing: false\n}) {\n  let runNextFrame = false;\n  let useDefaultElapsed = true;\n  const flagRunNextFrame = () => runNextFrame = true;\n  const steps2 = stepsOrder.reduce((acc, key) => {\n    acc[key] = createRenderStep(flagRunNextFrame);\n    return acc;\n  }, {});\n  const { setup, read: read2, resolveKeyframes, preUpdate, update, preRender, render, postRender } = steps2;\n  const processBatch = () => {\n    const useManualTiming = MotionGlobalConfig.useManualTiming;\n    const timestamp = useManualTiming ? state.timestamp : performance.now();\n    runNextFrame = false;\n    if (!useManualTiming) {\n      state.delta = useDefaultElapsed ? 1e3 / 60 : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);\n    }\n    state.timestamp = timestamp;\n    state.isProcessing = true;\n    setup.process(state);\n    read2.process(state);\n    resolveKeyframes.process(state);\n    preUpdate.process(state);\n    update.process(state);\n    preRender.process(state);\n    render.process(state);\n    postRender.process(state);\n    state.isProcessing = false;\n    if (runNextFrame && allowKeepAlive) {\n      useDefaultElapsed = false;\n      scheduleNextBatch(processBatch);\n    }\n  };\n  const wake = () => {\n    runNextFrame = true;\n    useDefaultElapsed = true;\n    if (!state.isProcessing) {\n      scheduleNextBatch(processBatch);\n    }\n  };\n  const schedule = stepsOrder.reduce((acc, key) => {\n    const step = steps2[key];\n    acc[key] = (process2, keepAlive = false, immediate = false) => {\n      if (!runNextFrame)\n        wake();\n      return step.schedule(process2, keepAlive, immediate);\n    };\n    return acc;\n  }, {});\n  const cancel = (process2) => {\n    for (let i = 0; i < stepsOrder.length; i++) {\n      steps2[stepsOrder[i]].cancel(process2);\n    }\n  };\n  return { schedule, cancel, state, steps: steps2 };\n}\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/frame.mjs\nvar { schedule: frame, cancel: cancelFrame, steps: frameSteps } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== \"undefined\" ? requestAnimationFrame : noop, true, frameData);\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs\nvar generateLinearEasing = (easing, duration, resolution = 10) => {\n  let points = \"\";\n  const numPoints = Math.max(Math.round(duration / resolution), 2);\n  for (let i = 0; i < numPoints; i++) {\n    points += Math.round(easing(i / (numPoints - 1)) * 1e4) / 1e4 + \", \";\n  }\n  return `linear(${points.substring(0, points.length - 2)})`;\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs\nvar maxGeneratorDuration = 2e4;\nfunction calcGeneratorDuration(generator, timeStep = 50, maxDuration = maxGeneratorDuration, keyframes2) {\n  let duration = 0;\n  let state = generator.next(duration);\n  keyframes2?.push(state.value);\n  while (!state.done && duration < maxDuration) {\n    duration += timeStep;\n    state = generator.next(duration);\n    keyframes2?.push(state.value);\n  }\n  return duration >= maxDuration ? Infinity : duration;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs\nfunction createGeneratorEasing(options, scale2 = 100, createGenerator) {\n  const { keyframes: k, velocity: v } = options;\n  const delta = k && k[k.length - 1] - k[0];\n  const generator = createGenerator({\n    ...options,\n    velocity: v && delta ? v * scale2 / delta : v,\n    keyframes: [0, scale2]\n  });\n  const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n  return {\n    type: \"keyframes\",\n    ease: (progress2) => {\n      return generator.next(duration * progress2).value / scale2;\n    },\n    duration: millisecondsToSeconds(duration)\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/generators/spring.mjs\nvar springDefaults = {\n  // Default spring physics\n  stiffness: 100,\n  damping: 10,\n  mass: 1,\n  // Default duration/bounce-based options\n  duration: 800,\n  // in ms\n  bounce: 0.3,\n  visualDuration: 0.3,\n  // in seconds\n  // Rest thresholds\n  restSpeed: {\n    granular: 0.01,\n    default: 2\n  },\n  restDelta: {\n    granular: 5e-3,\n    default: 0.5\n  },\n  // Limits\n  minDuration: 0.01,\n  // in seconds\n  maxDuration: 10,\n  // in seconds\n  minDamping: 0.05\n};\nvar bounceToDampingRatio = (bounce) => bounce < 0 ? 1 / Math.max(1 + bounce, springDefaults.minDamping) : Math.max(1 - bounce, springDefaults.minDamping);\nfunction overdampedFreqScale(dampingRatio, criticalFreqTime) {\n  if (!(dampingRatio > 1))\n    return 1;\n  const root = Math.sqrt(dampingRatio * dampingRatio - 1);\n  const slow = dampingRatio - root;\n  const fast = dampingRatio + root;\n  const target = 2 * root * Math.exp(-criticalFreqTime) * (1 + criticalFreqTime);\n  return approximateRoot((freqTime) => fast * Math.exp(-slow * freqTime) - slow * Math.exp(-fast * freqTime) - target, (freqTime) => Math.exp(-fast * freqTime) - Math.exp(-slow * freqTime), criticalFreqTime) / criticalFreqTime;\n}\nfunction calcAngularFreq(undampedFreq, dampingRatio) {\n  return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);\n}\nvar rootIterations = 12;\nfunction approximateRoot(envelope, derivative, initialGuess) {\n  let result = initialGuess;\n  for (let i = 1; i < rootIterations; i++) {\n    result = result - envelope(result) / derivative(result);\n  }\n  return result;\n}\nvar safeMin = 1e-3;\nfunction findSpring({ duration = springDefaults.duration, bounce = springDefaults.bounce }) {\n  let envelope;\n  let derivative;\n  warning(duration <= secondsToMilliseconds(springDefaults.maxDuration), \"Spring duration must be 10 seconds or less\", \"spring-duration-limit\");\n  const dampingRatio = bounceToDampingRatio(bounce);\n  duration = clamp(springDefaults.minDuration, springDefaults.maxDuration, millisecondsToSeconds(duration));\n  if (dampingRatio < 1) {\n    envelope = (undampedFreq2) => {\n      const exponentialDecay = undampedFreq2 * dampingRatio;\n      const delta = exponentialDecay * duration;\n      const b = calcAngularFreq(undampedFreq2, dampingRatio);\n      const c = Math.exp(-delta);\n      return safeMin - exponentialDecay / b * c;\n    };\n    derivative = (undampedFreq2) => {\n      const exponentialDecay = undampedFreq2 * dampingRatio;\n      const delta = exponentialDecay * duration;\n      const e = dampingRatio * dampingRatio * undampedFreq2 * undampedFreq2 * duration;\n      const f = Math.exp(-delta);\n      const g = calcAngularFreq(undampedFreq2 * undampedFreq2, dampingRatio);\n      const factor = -envelope(undampedFreq2) + safeMin > 0 ? -1 : 1;\n      return factor * -e * f / g;\n    };\n  } else {\n    envelope = (undampedFreq2) => {\n      const a = Math.exp(-undampedFreq2 * duration);\n      const b = undampedFreq2 * duration + 1;\n      return -safeMin + a * b;\n    };\n    derivative = (undampedFreq2) => {\n      const a = Math.exp(-undampedFreq2 * duration);\n      const b = -undampedFreq2 * (duration * duration);\n      return a * b;\n    };\n  }\n  const initialGuess = 5 / duration;\n  const criticalFreq = approximateRoot(envelope, derivative, initialGuess);\n  const undampedFreq = criticalFreq * overdampedFreqScale(dampingRatio, criticalFreq * duration);\n  const stiffness = undampedFreq * undampedFreq;\n  return {\n    stiffness,\n    damping: dampingRatio * 2 * Math.sqrt(stiffness),\n    duration: secondsToMilliseconds(duration)\n  };\n}\nvar isValidPhysics = (value, canBeZero) => (canBeZero ? value >= 0 : value > 0) && value < Infinity;\nfunction resolvePhysics(value, canBeZero) {\n  if (isValidPhysics(value, canBeZero))\n    return value;\n  if (false) {\n    warning(value === void 0, \"Spring stiffness and mass must be positive, damping 0 or greater\", \"spring-invalid-physics\");\n  }\n  return void 0;\n}\nfunction getSpringOptions(options) {\n  const validStiffness = resolvePhysics(options.stiffness);\n  const validDamping = resolvePhysics(options.damping, true);\n  const validMass = resolvePhysics(options.mass);\n  const springOptions = {\n    ...options,\n    stiffness: validStiffness ?? springDefaults.stiffness,\n    damping: validDamping ?? springDefaults.damping,\n    mass: validMass ?? springDefaults.mass,\n    isResolvedFromDuration: false,\n    // stiffness/damping/mass overrides duration/bounce\n    isTimeDefined: (validStiffness ?? validDamping ?? validMass) === void 0 && (options.duration !== void 0 || options.bounce !== void 0)\n  };\n  if (springOptions.isTimeDefined) {\n    if (options.visualDuration) {\n      const dampingRatio = bounceToDampingRatio(options.bounce || 0);\n      const root = 2 * Math.PI / (options.visualDuration * 1.2) * overdampedFreqScale(dampingRatio, 2 * Math.PI / 1.2);\n      springOptions.stiffness = root * root;\n      springOptions.damping = 2 * dampingRatio * Math.sqrt(springOptions.stiffness);\n    } else {\n      Object.assign(springOptions, findSpring(springOptions));\n      springOptions.isResolvedFromDuration = true;\n    }\n    if (!isValidPhysics(springOptions.stiffness) || !isValidPhysics(springOptions.damping, true)) {\n      springOptions.stiffness = springDefaults.stiffness;\n      springOptions.damping = springDefaults.damping;\n    }\n  }\n  return springOptions;\n}\nfunction spring(optionsOrVisualDuration = springDefaults.visualDuration, bounce = springDefaults.bounce) {\n  const options = typeof optionsOrVisualDuration !== \"object\" ? {\n    visualDuration: optionsOrVisualDuration,\n    keyframes: [0, 1],\n    bounce\n  } : optionsOrVisualDuration;\n  const origin = options.keyframes[0];\n  const target = options.keyframes[options.keyframes.length - 1];\n  const state = { done: false, value: origin };\n  const { stiffness, damping, mass, duration, isResolvedFromDuration, isTimeDefined } = getSpringOptions({ ...options });\n  const inheritVelocity = (velocity) => isTimeDefined ? 0 : -millisecondsToSeconds(velocity);\n  const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));\n  const undampedAngularFreq = millisecondsToSeconds(Math.sqrt(stiffness / mass));\n  const decay = dampingRatio * undampedAngularFreq;\n  const s = {\n    target,\n    delta: target - origin,\n    velocity: inheritVelocity(options.velocity || 0) || 0,\n    restSpeed: 0,\n    restDelta: 0\n  };\n  const setRestThresholds = () => {\n    const isGranularScale = Math.abs(s.delta) < 5;\n    s.restSpeed = options.restSpeed || (isGranularScale ? springDefaults.restSpeed.granular : springDefaults.restSpeed.default);\n    s.restDelta = options.restDelta || (isGranularScale ? springDefaults.restDelta.granular : springDefaults.restDelta.default);\n  };\n  setRestThresholds();\n  let resolveSpring;\n  let resolveVelocity;\n  let update;\n  if (dampingRatio < 1) {\n    const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);\n    const c = { A: 0, sinC: 0, cosC: 0, t: -1, env: 0, sin: 0, cos: 0 };\n    update = () => {\n      c.A = (s.velocity + decay * s.delta) / angularFreq;\n      c.sinC = decay * c.A + s.delta * angularFreq;\n      c.cosC = decay * s.delta - c.A * angularFreq;\n    };\n    const sample = (t) => {\n      if (t !== c.t) {\n        c.t = t;\n        c.env = Math.exp(-decay * t);\n        c.sin = Math.sin(angularFreq * t);\n        c.cos = Math.cos(angularFreq * t);\n      }\n    };\n    resolveSpring = (t) => {\n      sample(t);\n      return s.target - c.env * (c.A * c.sin + s.delta * c.cos);\n    };\n    resolveVelocity = (t) => {\n      sample(t);\n      return c.env * (c.sinC * c.sin + c.cosC * c.cos);\n    };\n  } else if (dampingRatio === 1) {\n    resolveSpring = (t) => s.target - Math.exp(-undampedAngularFreq * t) * (s.delta + (s.velocity + undampedAngularFreq * s.delta) * t);\n    const c = { C: 0 };\n    update = () => {\n      c.C = s.velocity + undampedAngularFreq * s.delta;\n    };\n    resolveVelocity = (t) => Math.exp(-undampedAngularFreq * t) * (undampedAngularFreq * c.C * t - s.velocity);\n  } else {\n    const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);\n    const slow = decay - dampedAngularFreq;\n    const fast = decay + dampedAngularFreq;\n    const limit = isTimeDefined ? Infinity : 300 / dampedAngularFreq;\n    const decayAt = (rate, t) => Math.exp(t > limit ? -rate * limit - decay * (t - limit) : -rate * t);\n    const c = { S: 0, F: 0 };\n    update = () => {\n      const P = (s.velocity + decay * s.delta) / dampedAngularFreq;\n      c.S = (s.delta + P) / 2;\n      c.F = (s.delta - P) / 2;\n    };\n    resolveSpring = (t) => s.target - c.S * decayAt(slow, t) - c.F * decayAt(fast, t);\n    resolveVelocity = (t) => slow * c.S * decayAt(slow, t) + fast * c.F * decayAt(fast, t);\n  }\n  update();\n  const calculatedDuration = isResolvedFromDuration ? duration || null : null;\n  const generator = {\n    calculatedDuration,\n    /**\n     * Aim the spring at a new target from its current position and\n     * velocity, reusing the resolved physics and closures.\n     */\n    retarget: (keyframes2, newVelocity) => {\n      s.target = keyframes2[keyframes2.length - 1];\n      s.delta = s.target - keyframes2[0];\n      s.velocity = inheritVelocity(newVelocity);\n      if (!(options.restSpeed && options.restDelta))\n        setRestThresholds();\n      generator.calculatedDuration = calculatedDuration;\n      state.done = false;\n      update();\n    },\n    velocity: (t) => secondsToMilliseconds(resolveVelocity(t)),\n    next: (t) => {\n      const current2 = resolveSpring(t);\n      if (!isResolvedFromDuration) {\n        const currentVelocity = secondsToMilliseconds(resolveVelocity(t));\n        state.done = Math.abs(currentVelocity) <= s.restSpeed && Math.abs(s.target - current2) <= s.restDelta;\n      } else {\n        state.done = t >= duration;\n      }\n      state.value = state.done ? s.target : current2;\n      return state;\n    },\n    toString: () => {\n      const easingDuration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);\n      const easing = generateLinearEasing((progress2) => generator.next(easingDuration * progress2).value, easingDuration, 30);\n      return easingDuration + \"ms \" + easing;\n    },\n    toTransition: () => {\n    }\n  };\n  return generator;\n}\nspring.applyToOptions = (options) => {\n  const generatorOptions = createGeneratorEasing(options, 100, spring);\n  options.ease = generatorOptions.ease;\n  options.duration = secondsToMilliseconds(generatorOptions.duration);\n  options.type = \"keyframes\";\n  return options;\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/generators/inertia.mjs\nfunction inertia({ keyframes: keyframes2, velocity = 0, power = 0.8, timeConstant = 325, bounceDamping = 10, bounceStiffness = 500, modifyTarget, min, max, restDelta = 0.5, restSpeed }) {\n  const origin = keyframes2[0];\n  const state = {\n    done: false,\n    value: origin\n  };\n  const isOutOfBounds = (v) => v < min || v > max;\n  const nearestBoundary = (v) => {\n    if (min === void 0)\n      return max;\n    if (max === void 0)\n      return min;\n    return Math.abs(min - v) < Math.abs(max - v) ? min : max;\n  };\n  let amplitude = power * velocity;\n  const ideal = origin + amplitude;\n  const target = modifyTarget === void 0 ? ideal : modifyTarget(ideal);\n  if (target !== ideal)\n    amplitude = target - origin;\n  const calcDelta = (t) => -amplitude * Math.exp(-t / timeConstant);\n  const applyFriction = (t) => {\n    const delta = calcDelta(t);\n    state.done = Math.abs(delta) <= restDelta;\n    state.value = state.done ? target : target + delta;\n  };\n  let timeReachedBoundary;\n  let spring$1;\n  const checkCatchBoundary = (t) => {\n    if (!isOutOfBounds(state.value))\n      return;\n    timeReachedBoundary = t;\n    spring$1 = spring({\n      keyframes: [state.value, nearestBoundary(state.value)],\n      /**\n       * The friction curve is target + calcDelta(t), so its exact\n       * derivative is -calcDelta(t) / timeConstant in units/ms,\n       * converted here to the units/second expected by spring.\n       */\n      velocity: -calcDelta(t) / timeConstant * 1e3,\n      damping: bounceDamping,\n      stiffness: bounceStiffness,\n      restDelta,\n      restSpeed\n    });\n  };\n  checkCatchBoundary(0);\n  return {\n    calculatedDuration: null,\n    next: (t) => {\n      let hasUpdatedFrame = false;\n      if (!spring$1 && timeReachedBoundary === void 0) {\n        hasUpdatedFrame = true;\n        applyFriction(t);\n        checkCatchBoundary(t);\n      }\n      if (timeReachedBoundary !== void 0 && t >= timeReachedBoundary) {\n        return spring$1.next(t - timeReachedBoundary);\n      } else {\n        !hasUpdatedFrame && applyFriction(t);\n        return state;\n      }\n    }\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/interpolate.mjs\nfunction createMixers(output, ease2, customMixer) {\n  const mixers = [];\n  const mixerFactory = customMixer || MotionGlobalConfig.mix || mix;\n  const numMixers = output.length - 1;\n  for (let i = 0; i < numMixers; i++) {\n    let mixer = mixerFactory(output[i], output[i + 1]);\n    if (ease2) {\n      const easingFunction = Array.isArray(ease2) ? ease2[i] || noop : ease2;\n      mixer = pipe(easingFunction, mixer);\n    }\n    mixers.push(mixer);\n  }\n  return mixers;\n}\nfunction interpolate(input, output, { clamp: isClamp = true, ease: ease2, mixer } = {}) {\n  const inputLength = input.length;\n  invariant(inputLength === output.length, \"Both input and output ranges must be the same length\", \"range-length\");\n  if (inputLength === 1)\n    return () => output[0];\n  if (inputLength === 2 && output[0] === output[1])\n    return () => output[1];\n  const isZeroDeltaRange = input[0] === input[1];\n  if (input[0] > input[inputLength - 1]) {\n    input = [...input].reverse();\n    output = [...output].reverse();\n  }\n  const mixers = createMixers(output, ease2, mixer);\n  const numMixers = mixers.length;\n  const interpolator = (v) => {\n    if (isZeroDeltaRange && v < input[0])\n      return output[0];\n    let i = 0;\n    if (numMixers > 1) {\n      for (; i < input.length - 2; i++) {\n        if (v < input[i + 1])\n          break;\n      }\n    }\n    const progressInRange = progress(input[i], input[i + 1], v);\n    return mixers[i](progressInRange);\n  };\n  return isClamp ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v)) : interpolator;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs\nfunction fillOffset(offset, remaining) {\n  const min = offset[offset.length - 1];\n  for (let i = 1; i <= remaining; i++) {\n    const offsetProgress = progress(0, remaining, i);\n    offset.push(mixNumber(min, 1, offsetProgress));\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs\nfunction defaultOffset(arr) {\n  const offset = [0];\n  fillOffset(offset, arr.length - 1);\n  return offset;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs\nfunction convertOffsetToTimes(offset, duration) {\n  return offset.map((o) => o * duration);\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs\nfunction defaultEasing(values, easing) {\n  return values.map(() => easing || easeInOut).splice(0, values.length - 1);\n}\nfunction keyframes({ duration = 300, keyframes: keyframeValues, times, ease: ease2 = \"easeInOut\" }) {\n  const easingFunctions = isEasingArray(ease2) ? ease2.map(easingDefinitionToFunction) : easingDefinitionToFunction(ease2) || easeInOut;\n  const state = {\n    done: false,\n    value: keyframeValues[0]\n  };\n  if (keyframeValues.length === 2 && !Array.isArray(easingFunctions) && (!times || times.length !== 2 || times[0] === 0 && times[1] === 1)) {\n    const [origin, target] = keyframeValues;\n    const mixer = origin === target ? void 0 : (MotionGlobalConfig.mix || mix)(origin, target);\n    return {\n      calculatedDuration: duration,\n      next: (t) => {\n        state.value = mixer ? mixer(easingFunctions(duration > 0 ? clamp(0, 1, t / duration) : 1)) : target;\n        state.done = t >= duration;\n        return state;\n      }\n    };\n  }\n  const absoluteTimes = convertOffsetToTimes(\n    // Only use the provided offsets if they're the correct length\n    // TODO Maybe we should warn here if there's a length mismatch\n    times && times.length === keyframeValues.length ? times : defaultOffset(keyframeValues),\n    duration\n  );\n  const mapTimeToKeyframe = interpolate(absoluteTimes, keyframeValues, {\n    ease: Array.isArray(easingFunctions) ? easingFunctions : defaultEasing(keyframeValues, easingFunctions)\n  });\n  return {\n    calculatedDuration: duration,\n    next: (t) => {\n      state.value = mapTimeToKeyframe(t);\n      state.done = t >= duration;\n      return state;\n    }\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs\nvar isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes2, { repeat, repeatType = \"loop\" }, finalKeyframe, speed = 1) {\n  const resolvedKeyframes = keyframes2.filter(isNotNull);\n  const useFirstKeyframe = speed < 0 || repeat && repeatType !== \"loop\" && repeat % 2 === 1;\n  const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;\n  return !index || finalKeyframe === void 0 ? resolvedKeyframes[index] : finalKeyframe;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/drivers/frame.mjs\nvar frameloopDriver = (update) => {\n  const passTimestamp = ({ timestamp }) => update(timestamp);\n  return {\n    start: (keepAlive = true) => frame.update(passTimestamp, keepAlive),\n    stop: () => cancelFrame(passTimestamp),\n    /**\n     * If we're processing this frame we can use the\n     * framelocked timestamp to keep things in sync.\n     */\n    now: () => frameData.isProcessing ? frameData.timestamp : time.now()\n  };\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs\nvar velocitySampleDuration = 5;\nfunction getGeneratorVelocity(resolveValue, t, current2) {\n  const prevT = Math.max(t - velocitySampleDuration, 0);\n  return velocityPerSecond(current2 - resolveValue(prevT), t - prevT);\n}\nfunction calcGeneratorVelocity(generator, t, initialVelocity = 0) {\n  if (t <= 0)\n    return initialVelocity;\n  return generator.velocity ? generator.velocity(t) : getGeneratorVelocity((s) => generator.next(s).value, t, generator.next(t).value);\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs\nvar transitionTypeMap = {\n  decay: inertia,\n  inertia,\n  tween: keyframes,\n  keyframes,\n  spring\n};\nfunction replaceTransitionType(transition) {\n  if (typeof transition.type === \"string\") {\n    transition.type = transitionTypeMap[transition.type];\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs\nvar MAX_START_DELAY = 40;\nvar resolveStartTime = (startTime, now2) => now2 - startTime > MAX_START_DELAY && !MotionGlobalConfig.useManualTiming ? now2 : startTime;\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs\nfunction baseRecord(kind, animation) {\n  return {\n    kind,\n    animation,\n    timestamp: time.now(),\n    frameTimestamp: frameData.timestamp,\n    frameIsProcessing: frameData.isProcessing\n  };\n}\nfunction notifyAnimationStart(animation, options, transition) {\n  const notify2 = globalThis.__MOTION_INSPECT__;\n  if (!notify2)\n    return;\n  try {\n    notify2({\n      ...baseRecord(\"animation-start\", animation),\n      options: transition ? { ...options, ...transition } : options\n    });\n  } catch {\n  }\n}\nfunction notifyLayoutAnimationStart(animation, node) {\n  const notify2 = globalThis.__MOTION_INSPECT__;\n  if (!notify2)\n    return;\n  try {\n    notify2({\n      ...baseRecord(\"layout-animation-start\", animation),\n      node\n    });\n  } catch {\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs\nvar WithPromise = class {\n  constructor() {\n    this.isResolved = false;\n  }\n  get finished() {\n    if (!this._finished) {\n      this._finished = this.isResolved ? Promise.resolve() : new Promise((resolve) => {\n        this._resolve = resolve;\n      });\n    }\n    return this._finished;\n  }\n  updateFinished() {\n    this._finished = this._resolve = void 0;\n    this.isResolved = false;\n  }\n  notifyFinished() {\n    this.isResolved = true;\n    this._resolve?.();\n  }\n  /**\n   * Allows the animation to be awaited.\n   *\n   * @deprecated Use `finished` instead.\n   */\n  then(onResolve, onReject) {\n    return this.finished.then(onResolve, onReject);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/JSAnimation.mjs\nvar percentToProgress = (percent2) => percent2 / 100;\nvar round = (value) => Math.round(value * 1e4) / 1e4;\nvar JSAnimation = class extends WithPromise {\n  constructor(options) {\n    super();\n    this.state = \"idle\";\n    this.startTime = null;\n    this.isStopped = false;\n    this.currentTime = 0;\n    this.holdTime = null;\n    this.playbackSpeed = 1;\n    this.delayState = {\n      done: false,\n      value: void 0\n    };\n    this.stop = () => {\n      const { motionValue: motionValue2 } = this.options;\n      if (motionValue2 && motionValue2.updatedAt !== time.now()) {\n        this.tick(time.now());\n      }\n      this.isStopped = true;\n      if (this.state === \"idle\")\n        return;\n      this.teardown();\n      this.options.onStop?.();\n    };\n    this.options = options;\n    this.initAnimation();\n    this.play();\n    if (options.autoplay === false)\n      this.pause();\n    notifyAnimationStart(this, this.options);\n  }\n  initAnimation() {\n    const { options } = this;\n    replaceTransitionType(options);\n    const { type = keyframes, repeat = 0, repeatDelay = 0, repeatType, velocity = 0 } = options;\n    let { keyframes: keyframes$1 } = options;\n    const generatorFactory = type || keyframes;\n    if (false) {\n      invariant(keyframes$1.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`, \"spring-two-frames\");\n    }\n    if (generatorFactory !== keyframes && typeof keyframes$1[0] !== \"number\") {\n      this.mixKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));\n      keyframes$1 = [0, 100];\n    }\n    const generator = generatorFactory(keyframes$1 === options.keyframes ? options : { ...options, keyframes: keyframes$1 });\n    if (repeatType === \"mirror\") {\n      this.mirroredGenerator = generatorFactory({\n        ...options,\n        keyframes: [...keyframes$1].reverse(),\n        velocity: -velocity\n      });\n    }\n    if (generator.calculatedDuration === null) {\n      generator.calculatedDuration = calcGeneratorDuration(generator);\n    }\n    const { calculatedDuration } = generator;\n    this.calculatedDuration = calculatedDuration;\n    this.resolvedDuration = calculatedDuration + repeatDelay;\n    this.totalDuration = this.resolvedDuration * (repeat + 1) - repeatDelay;\n    this.generator = generator;\n  }\n  updateTime(timestamp) {\n    const animationTime = Math.round(timestamp - this.startTime) * this.playbackSpeed;\n    if (this.holdTime !== null) {\n      this.currentTime = this.holdTime;\n    } else {\n      this.currentTime = animationTime;\n    }\n  }\n  tick(timestamp, sample = false) {\n    const { generator, totalDuration, calculatedDuration } = this;\n    if (this.startTime === null)\n      return generator.next(0);\n    const { delay: delay2 = 0, keyframes: keyframes2, type, onUpdate, finalKeyframe } = this.options;\n    if (this.startTime === this.pendingStartTime) {\n      this.startTime = resolveStartTime(this.startTime, timestamp);\n    }\n    this.pendingStartTime = void 0;\n    if (this.speed > 0) {\n      this.startTime = Math.min(this.startTime, timestamp);\n    } else if (this.speed < 0) {\n      this.startTime = Math.min(timestamp - totalDuration / this.speed, this.startTime);\n    }\n    if (sample) {\n      this.currentTime = timestamp;\n    } else {\n      this.updateTime(timestamp);\n    }\n    const timeWithoutDelay = this.currentTime - delay2 * (this.playbackSpeed >= 0 ? 1 : -1);\n    const isInDelayPhase = this.playbackSpeed >= 0 ? timeWithoutDelay < 0 : timeWithoutDelay > totalDuration;\n    this.currentTime = Math.max(timeWithoutDelay, 0);\n    if (this.state === \"finished\" && this.holdTime === null) {\n      this.currentTime = totalDuration;\n    }\n    const state = this.generate(this.currentTime, isInDelayPhase);\n    let { done } = state;\n    if (!isInDelayPhase && calculatedDuration !== null) {\n      done = this.playbackSpeed >= 0 ? this.currentTime >= totalDuration : this.currentTime <= 0;\n    }\n    const isAnimationFinished = this.holdTime === null && (this.state === \"finished\" || this.state === \"running\" && done);\n    if (isAnimationFinished && type !== inertia) {\n      state.value = getFinalKeyframe(keyframes2, this.options, finalKeyframe, this.speed);\n    }\n    if (onUpdate) {\n      onUpdate(state.value);\n    }\n    if (isAnimationFinished) {\n      this.finish();\n    }\n    return state;\n  }\n  /**\n   * This animation's time, including delay, at a timestamp.\n   */\n  at(timestamp) {\n    return this.holdTime ?? round((timestamp - this.startTime) * this.playbackSpeed);\n  }\n  /**\n   * The value at a timestamp, without changing this animation's state.\n   * If resolved, it ends at the last resolved keyframe, which is in the\n   * same unit as the others, rather than at finalKeyframe.\n   */\n  sampleAt(timestamp, resolved) {\n    const { options, totalDuration } = this;\n    const t = this.at(timestamp) - (options.delay || 0);\n    return t >= totalDuration && options.type !== inertia ? getFinalKeyframe(options.keyframes, options, resolved ? void 0 : options.finalKeyframe) : this.generate(Math.max(t, 0), t < 0).value;\n  }\n  /**\n   * The generator's state `currentTime` ms after the delay, without\n   * changing the animation's own state.\n   */\n  generate(currentTime, isInDelayPhase) {\n    const { generator, totalDuration, mixKeyframes, mirroredGenerator, resolvedDuration } = this;\n    const { keyframes: keyframes2, repeat, repeatType, repeatDelay } = this.options;\n    let elapsed = currentTime;\n    let frameGenerator = generator;\n    if (repeat) {\n      const progress2 = Math.min(currentTime, totalDuration) / resolvedDuration;\n      let currentIteration = Math.floor(progress2);\n      let iterationProgress = progress2 % 1;\n      if (!iterationProgress && progress2 >= 1) {\n        iterationProgress = 1;\n      }\n      iterationProgress === 1 && currentIteration--;\n      currentIteration = Math.min(currentIteration, repeat + 1);\n      const isOddIteration = Boolean(currentIteration % 2);\n      if (isOddIteration) {\n        if (repeatType === \"reverse\") {\n          iterationProgress = 1 - iterationProgress;\n          if (repeatDelay) {\n            iterationProgress -= repeatDelay / resolvedDuration;\n          }\n        } else if (repeatType === \"mirror\") {\n          frameGenerator = mirroredGenerator;\n        }\n      }\n      elapsed = clamp(0, 1, iterationProgress) * resolvedDuration;\n    }\n    let state;\n    if (isInDelayPhase) {\n      this.delayState.value = keyframes2[0];\n      state = this.delayState;\n    } else {\n      state = frameGenerator.next(elapsed);\n    }\n    if (mixKeyframes && !isInDelayPhase) {\n      state.value = mixKeyframes(state.value);\n    }\n    return state;\n  }\n  /**\n   * Allows the returned animation to be awaited or promise-chained. Currently\n   * resolves when the animation finishes at all but in a future update could/should\n   * reject if its cancels.\n   */\n  then(resolve, reject) {\n    return this.finished.then(resolve, reject);\n  }\n  get duration() {\n    return millisecondsToSeconds(this.calculatedDuration);\n  }\n  get iterationDuration() {\n    const { delay: delay2 = 0 } = this.options || {};\n    return this.duration + millisecondsToSeconds(delay2);\n  }\n  get time() {\n    return millisecondsToSeconds(this.currentTime);\n  }\n  set time(newTime) {\n    newTime = secondsToMilliseconds(newTime);\n    this.currentTime = newTime;\n    if (this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0) {\n      this.holdTime = newTime;\n    } else if (this.driver) {\n      this.startTime = this.driver.now() - newTime / this.playbackSpeed;\n    }\n    if (this.driver) {\n      this.driver.start(false);\n    } else {\n      this.startTime = 0;\n      this.state = \"paused\";\n      this.holdTime = newTime;\n      this.tick(newTime);\n    }\n  }\n  /**\n   * Returns the generator's velocity at the current time in units/second.\n   * Uses the analytical derivative when available (springs), avoiding\n   * the MotionValue's frame-dependent velocity estimation.\n   */\n  getGeneratorVelocity() {\n    return calcGeneratorVelocity(this.generator, this.currentTime, this.options.velocity);\n  }\n  get speed() {\n    return this.playbackSpeed;\n  }\n  set speed(newSpeed) {\n    const hasChanged = this.playbackSpeed !== newSpeed;\n    if (hasChanged && this.driver) {\n      this.updateTime(time.now());\n    }\n    this.playbackSpeed = newSpeed;\n    if (hasChanged && this.driver) {\n      this.time = millisecondsToSeconds(this.currentTime);\n    }\n  }\n  play() {\n    if (this.isStopped)\n      return;\n    const { driver = frameloopDriver, startTime } = this.options;\n    if (!this.driver) {\n      this.driver = driver((timestamp) => this.tick(timestamp));\n    }\n    this.options.onPlay?.();\n    const now2 = this.driver.now();\n    if (this.state === \"finished\") {\n      this.updateFinished();\n      this.startTime = now2;\n    } else if (this.holdTime !== null) {\n      this.startTime = now2 - this.holdTime / (this.playbackSpeed || 1);\n    } else if (!this.startTime) {\n      this.startTime = startTime ?? (this.pendingStartTime = now2);\n    }\n    if (this.state === \"finished\" && this.speed < 0) {\n      this.startTime += this.calculatedDuration;\n    }\n    this.holdTime = null;\n    this.state = \"running\";\n    this.driver.start();\n  }\n  pause() {\n    this.state = \"paused\";\n    this.updateTime(time.now());\n    this.holdTime = this.currentTime;\n  }\n  complete() {\n    if (this.state !== \"running\") {\n      this.play();\n    }\n    this.state = \"finished\";\n    this.holdTime = null;\n  }\n  finish() {\n    this.notifyFinished();\n    this.teardown();\n    this.state = \"finished\";\n    this.options.onComplete?.();\n  }\n  cancel() {\n    this.holdTime = null;\n    this.startTime = 0;\n    this.tick(0);\n    this.teardown();\n    this.options.onCancel?.();\n  }\n  teardown() {\n    this.state = \"idle\";\n    this.stopDriver();\n    this.startTime = this.holdTime = null;\n  }\n  stopDriver() {\n    if (!this.driver)\n      return;\n    this.driver.stop();\n    this.driver = void 0;\n  }\n  sample(sampleTime) {\n    this.startTime = 0;\n    return this.tick(sampleTime, true);\n  }\n  attachTimeline(timeline) {\n    if (this.options.allowFlatten) {\n      this.options.type = \"keyframes\";\n      this.options.ease = \"linear\";\n      this.initAnimation();\n    }\n    this.driver?.stop();\n    return timeline.observe(this);\n  }\n};\nfunction animateValue(options) {\n  return new JSAnimation(options);\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/types/maps/transform.mjs\nvar transformValueTypes = {\n  rotate: degrees,\n  /**\n   * Internal channel for `transition.path` orientToPath. Composed onto\n   * `rotate` at the transform-build sites so the user's `rotate` is\n   * never read or overwritten. Not part of `transformPropOrder`.\n   */\n  pathRotation: degrees,\n  rotateX: degrees,\n  rotateY: degrees,\n  rotateZ: degrees,\n  scale,\n  scaleX: scale,\n  scaleY: scale,\n  scaleZ: scale,\n  skew: degrees,\n  skewX: degrees,\n  skewY: degrees,\n  distance: px,\n  translateX: px,\n  translateY: px,\n  translateZ: px,\n  x: px,\n  y: px,\n  z: px,\n  perspective: px,\n  transformPerspective: px,\n  opacity: alpha,\n  originX: progressPercentage,\n  originY: progressPercentage,\n  originZ: px\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/int.mjs\nvar int = {\n  ...number,\n  transform: Math.round\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/maps/number.mjs\nvar numberValueTypes = {\n  // Border props\n  borderWidth: px,\n  borderTopWidth: px,\n  borderRightWidth: px,\n  borderBottomWidth: px,\n  borderLeftWidth: px,\n  borderRadius: px,\n  borderTopLeftRadius: px,\n  borderTopRightRadius: px,\n  borderBottomRightRadius: px,\n  borderBottomLeftRadius: px,\n  // Positioning props\n  width: px,\n  maxWidth: px,\n  height: px,\n  maxHeight: px,\n  top: px,\n  right: px,\n  bottom: px,\n  left: px,\n  inset: px,\n  insetBlock: px,\n  insetBlockStart: px,\n  insetBlockEnd: px,\n  insetInline: px,\n  insetInlineStart: px,\n  insetInlineEnd: px,\n  // Spacing props\n  padding: px,\n  paddingTop: px,\n  paddingRight: px,\n  paddingBottom: px,\n  paddingLeft: px,\n  paddingBlock: px,\n  paddingBlockStart: px,\n  paddingBlockEnd: px,\n  paddingInline: px,\n  paddingInlineStart: px,\n  paddingInlineEnd: px,\n  margin: px,\n  marginTop: px,\n  marginRight: px,\n  marginBottom: px,\n  marginLeft: px,\n  marginBlock: px,\n  marginBlockStart: px,\n  marginBlockEnd: px,\n  marginInline: px,\n  marginInlineStart: px,\n  marginInlineEnd: px,\n  // Typography\n  fontSize: px,\n  // Misc\n  backgroundPositionX: px,\n  backgroundPositionY: px,\n  ...transformValueTypes,\n  zIndex: int,\n  // SVG\n  fillOpacity: alpha,\n  strokeOpacity: alpha,\n  numOctaves: int\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/complex/filter.mjs\nvar maxDefaults = /* @__PURE__ */ new Set([\"brightness\", \"contrast\", \"saturate\", \"opacity\"]);\nfunction applyDefaultFilter(v) {\n  const [name, value] = v.slice(0, -1).split(\"(\");\n  if (name === \"drop-shadow\")\n    return v;\n  const [number2] = value.match(floatRegex) || [];\n  if (!number2)\n    return v;\n  const unit = value.replace(number2, \"\");\n  let defaultValue = maxDefaults.has(name) ? 1 : 0;\n  if (number2 !== value)\n    defaultValue *= 100;\n  return name + \"(\" + defaultValue + unit + \")\";\n}\nvar functionRegex = /\\b([a-z-]*)\\(.*?\\)/gu;\nvar filter = {\n  ...complex,\n  getAnimatableNone: (v) => {\n    const functions = v.match(functionRegex);\n    return functions ? functions.map(applyDefaultFilter).join(\" \") : v;\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/complex/mask.mjs\nvar mask = {\n  ...complex,\n  getAnimatableNone: (v) => {\n    const parsed = complex.parse(v);\n    const transformer = complex.createTransformer(v);\n    return transformer(parsed.map((v2) => typeof v2 === \"number\" ? 0 : typeof v2 === \"object\" ? { ...v2, alpha: 1 } : v2));\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs\nvar defaultValueTypes = {\n  ...numberValueTypes,\n  // Color props\n  color,\n  backgroundColor: color,\n  outlineColor: color,\n  fill: color,\n  stroke: color,\n  // Border props\n  borderColor: color,\n  borderTopColor: color,\n  borderRightColor: color,\n  borderBottomColor: color,\n  borderLeftColor: color,\n  filter,\n  WebkitFilter: filter,\n  mask,\n  WebkitMask: mask\n};\nvar getDefaultValueType = (key) => defaultValueTypes[key];\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs\nvar customTypes = /* @__PURE__ */ new Set([filter, mask]);\nfunction getAnimatableNone2(key, value) {\n  let defaultValueType = getDefaultValueType(key);\n  if (!customTypes.has(defaultValueType))\n    defaultValueType = complex;\n  return defaultValueType.getAnimatableNone ? defaultValueType.getAnimatableNone(value) : void 0;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs\nfunction fillWildcards(keyframes2) {\n  for (let i = 1; i < keyframes2.length; i++) {\n    keyframes2[i] ?? (keyframes2[i] = keyframes2[i - 1]);\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs\nvar radToDeg = (rad) => rad * 180 / Math.PI;\nvar rotate = (v) => {\n  const angle = radToDeg(Math.atan2(v[1], v[0]));\n  return rebaseAngle(angle);\n};\nvar matrix2dParsers = {\n  x: 4,\n  y: 5,\n  translateX: 4,\n  translateY: 5,\n  scaleX: 0,\n  scaleY: 3,\n  scaleZ: () => 1,\n  scale: (v) => (Math.abs(v[0]) + Math.abs(v[3])) / 2,\n  rotate,\n  rotateZ: rotate,\n  skewX: (v) => radToDeg(Math.atan(v[1])),\n  skewY: (v) => radToDeg(Math.atan(v[2])),\n  skew: (v) => (Math.abs(v[1]) + Math.abs(v[2])) / 2\n};\nvar rebaseAngle = (angle) => {\n  angle = angle % 360;\n  if (angle < 0)\n    angle += 360;\n  return angle;\n};\nvar rotateZ = rotate;\nvar scaleX = (v) => Math.hypot(v[0], v[1]);\nvar scaleY = (v) => Math.hypot(v[4], v[5]);\nvar matrix3dParsers = {\n  x: 12,\n  y: 13,\n  z: 14,\n  translateX: 12,\n  translateY: 13,\n  translateZ: 14,\n  scaleX,\n  scaleY,\n  scaleZ: (v) => Math.hypot(v[8], v[9], v[10]),\n  scale: (v) => (scaleX(v) + scaleY(v)) / 2,\n  rotateX: (v) => rebaseAngle(radToDeg(Math.atan2(v[6], v[5]))),\n  rotateY: (v) => rebaseAngle(radToDeg(Math.atan2(-v[2], v[0]))),\n  rotateZ,\n  rotate: rotateZ,\n  skewX: (v) => radToDeg(Math.atan(v[4])),\n  skewY: (v) => radToDeg(Math.atan(v[1])),\n  skew: (v) => (Math.abs(v[1]) + Math.abs(v[4])) / 2\n};\nfunction defaultTransformValue(name) {\n  return name.includes(\"scale\") ? 1 : 0;\n}\nfunction parseValueFromTransform(transform2, name) {\n  if (!transform2 || transform2 === \"none\") {\n    return defaultTransformValue(name);\n  }\n  const matrix3dMatch = transform2.match(/^matrix3d\\(([-\\d.e\\s,]+)\\)$/u);\n  let parsers;\n  let match;\n  if (matrix3dMatch) {\n    parsers = matrix3dParsers;\n    match = matrix3dMatch;\n  } else {\n    const matrix2dMatch = transform2.match(/^matrix\\(([-\\d.e\\s,]+)\\)$/u);\n    parsers = matrix2dParsers;\n    match = matrix2dMatch;\n  }\n  if (!match) {\n    return defaultTransformValue(name);\n  }\n  const valueParser = parsers[name];\n  const values = match[1].split(\",\").map(convertTransformToNumber);\n  return typeof valueParser === \"function\" ? valueParser(values) : values[valueParser];\n}\nvar readTransformValue = (instance, name) => {\n  const { transform: transform2 = \"none\" } = getComputedStyle(instance);\n  return parseValueFromTransform(transform2, name);\n};\nfunction convertTransformToNumber(value) {\n  return parseFloat(value.trim());\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs\nvar transformPropOrder = [\n  \"transformPerspective\",\n  \"x\",\n  \"y\",\n  \"z\",\n  \"translateX\",\n  \"translateY\",\n  \"translateZ\",\n  \"scale\",\n  \"scaleX\",\n  \"scaleY\",\n  \"scaleZ\",\n  \"rotate\",\n  \"rotateX\",\n  \"rotateY\",\n  \"rotateZ\",\n  \"skew\",\n  \"skewX\",\n  \"skewY\"\n];\nvar transformProps = /* @__PURE__ */ (() => /* @__PURE__ */ new Set([...transformPropOrder, \"pathRotation\"]))();\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs\nvar isNumOrPxType = (v) => v === number || v === px;\nvar transformKeys = /* @__PURE__ */ new Set([\"x\", \"y\", \"z\"]);\nvar nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n  const removedTransforms = [];\n  nonTranslationalTransformKeys.forEach((key) => {\n    const value = visualElement.getValue(key);\n    if (value !== void 0) {\n      const current2 = value.get();\n      const reset = key.startsWith(\"scale\") ? 1 : 0;\n      if (current2 === reset)\n        return;\n      removedTransforms.push([key, current2]);\n      value.set(reset);\n    }\n  });\n  return removedTransforms;\n}\nvar boxDependentValues = /* @__PURE__ */ new Set([\"bottom\", \"right\"]);\nfunction measureDimension(computed, measureBox, axis, paddingStart, paddingEnd, boxSizing) {\n  const px2 = parseFloat(computed);\n  if (!isNaN(px2))\n    return px2;\n  const { min, max } = measureBox()[axis];\n  const size = max - min;\n  return boxSizing === \"border-box\" ? size : size - parseFloat(paddingStart) - parseFloat(paddingEnd);\n}\nvar positionalValues = {\n  // Dimensions\n  width: ({ width, paddingLeft = \"0\", paddingRight = \"0\", boxSizing }, measureBox) => measureDimension(width, measureBox, \"x\", paddingLeft, paddingRight, boxSizing),\n  height: ({ height, paddingTop = \"0\", paddingBottom = \"0\", boxSizing }, measureBox) => measureDimension(height, measureBox, \"y\", paddingTop, paddingBottom, boxSizing),\n  top: ({ top }) => parseFloat(top),\n  left: ({ left }) => parseFloat(left),\n  bottom: ({ top }, measureBox) => {\n    const { y } = measureBox();\n    return parseFloat(top) + (y.max - y.min);\n  },\n  right: ({ left }, measureBox) => {\n    const { x } = measureBox();\n    return parseFloat(left) + (x.max - x.min);\n  },\n  // Transform\n  x: ({ transform: transform2 }) => parseValueFromTransform(transform2, \"x\"),\n  y: ({ transform: transform2 }) => parseValueFromTransform(transform2, \"y\")\n};\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs\nvar toResolve = /* @__PURE__ */ new Set();\nvar isScheduled = false;\nvar anyNeedsMeasurement = false;\nvar isForced = false;\nfunction measureAllKeyframes() {\n  if (anyNeedsMeasurement) {\n    const resolversToMeasure = [];\n    const elementsToMeasure = /* @__PURE__ */ new Set();\n    const elementsToUntransform = /* @__PURE__ */ new Set();\n    toResolve.forEach((resolver) => {\n      if (!resolver.needsMeasurement)\n        return;\n      resolversToMeasure.push(resolver);\n      elementsToMeasure.add(resolver.element);\n      if (boxDependentValues.has(resolver.name)) {\n        elementsToUntransform.add(resolver.element);\n      }\n    });\n    const transformsToRestore = /* @__PURE__ */ new Map();\n    elementsToUntransform.forEach((element) => {\n      const removedTransforms = removeNonTranslationalTransform(element);\n      if (!removedTransforms.length)\n        return;\n      transformsToRestore.set(element, removedTransforms);\n      element.render();\n    });\n    resolversToMeasure.forEach((resolver) => resolver.measureInitialState());\n    elementsToMeasure.forEach((element) => {\n      element.render();\n      const restore = transformsToRestore.get(element);\n      if (restore) {\n        restore.forEach(([key, value]) => {\n          element.getValue(key)?.set(value);\n        });\n      }\n    });\n    resolversToMeasure.forEach((resolver) => resolver.measureEndState());\n    resolversToMeasure.forEach((resolver) => {\n      if (resolver.suspendedScrollY !== void 0) {\n        window.scrollTo(0, resolver.suspendedScrollY);\n      }\n    });\n  }\n  anyNeedsMeasurement = false;\n  isScheduled = false;\n  toResolve.forEach((resolver) => resolver.complete(isForced));\n  toResolve.clear();\n}\nfunction readAllKeyframes() {\n  toResolve.forEach((resolver) => {\n    resolver.readKeyframes();\n    if (resolver.needsMeasurement) {\n      anyNeedsMeasurement = true;\n    }\n  });\n}\nfunction flushKeyframeResolvers() {\n  isForced = true;\n  readAllKeyframes();\n  measureAllKeyframes();\n  isForced = false;\n}\nfunction readOrigin(value, name, target) {\n  if (typeof value === \"string\") {\n    if (isNumericalString(value) || isZeroValueString(value)) {\n      return parseFloat(value);\n    } else if (!complex.test(value) && complex.test(target)) {\n      return getAnimatableNone2(name, target);\n    }\n  }\n  return value ?? void 0;\n}\nvar KeyframeResolver = class {\n  constructor(unresolvedKeyframes, onComplete, name, motionValue2, element, isAsync = false) {\n    this.state = \"pending\";\n    this.isAsync = false;\n    this.needsMeasurement = false;\n    this.unresolvedKeyframes = [...unresolvedKeyframes];\n    this.onComplete = onComplete;\n    this.name = name;\n    this.motionValue = motionValue2;\n    this.element = element;\n    this.isAsync = isAsync;\n  }\n  scheduleResolve() {\n    this.state = \"scheduled\";\n    if (this.isAsync) {\n      toResolve.add(this);\n      if (!isScheduled) {\n        isScheduled = true;\n        frame.read(readAllKeyframes);\n        frame.resolveKeyframes(measureAllKeyframes);\n      }\n    } else {\n      this.readKeyframes();\n      this.complete();\n    }\n  }\n  readKeyframes() {\n    const { unresolvedKeyframes, name, element, motionValue: motionValue2 } = this;\n    if (unresolvedKeyframes[0] === null) {\n      const currentValue = motionValue2?.get();\n      const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n      if (currentValue !== void 0) {\n        unresolvedKeyframes[0] = currentValue;\n      } else if (element && name) {\n        const valueAsRead = readOrigin(element.readValue(name, finalKeyframe), name, finalKeyframe);\n        if (valueAsRead !== void 0) {\n          unresolvedKeyframes[0] = valueAsRead;\n        }\n      }\n      if (unresolvedKeyframes[0] === void 0) {\n        unresolvedKeyframes[0] = finalKeyframe;\n      }\n      if (motionValue2 && currentValue === void 0) {\n        motionValue2.set(unresolvedKeyframes[0]);\n      }\n    }\n    fillWildcards(unresolvedKeyframes);\n  }\n  setFinalKeyframe() {\n  }\n  measureInitialState() {\n  }\n  renderEndStyles() {\n  }\n  measureEndState() {\n  }\n  complete(isForcedComplete = false) {\n    this.state = \"complete\";\n    this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);\n    toResolve.delete(this);\n  }\n  cancel() {\n    if (this.state === \"scheduled\") {\n      toResolve.delete(this);\n      this.state = \"pending\";\n    }\n  }\n  resume() {\n    if (this.state === \"pending\")\n      this.scheduleResolve();\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs\nvar isCSSVar = (name) => name.startsWith(\"--\");\n\n// ../../../node_modules/motion-dom/dist/es/render/dom/style-set.mjs\nfunction setStyle(element, name, value) {\n  isCSSVar(name) ? element.style.setProperty(name, value) : element.style[name] = value;\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/supports/flags.mjs\nvar supportsFlags = {};\n\n// ../../../node_modules/motion-dom/dist/es/utils/supports/memo.mjs\nfunction memoSupports(callback, supportsFlag) {\n  const memoized = memo(callback);\n  return () => supportsFlags[supportsFlag] ?? memoized();\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs\nvar supportsScrollTimeline = /* @__PURE__ */ memoSupports(() => window.ScrollTimeline !== void 0, \"scrollTimeline\");\nvar supportsViewTimeline = /* @__PURE__ */ memoSupports(() => window.ViewTimeline !== void 0, \"viewTimeline\");\n\n// ../../../node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs\nvar supportsLinearEasing = /* @__PURE__ */ memoSupports(() => {\n  try {\n    document.createElement(\"div\").animate({ opacity: 0 }, { easing: \"linear(0, 1)\" });\n  } catch (e) {\n    return false;\n  }\n  return true;\n}, \"linearEasing\");\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs\nvar cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs\nvar supportedWaapiEasing = {\n  linear: \"linear\",\n  ease: \"ease\",\n  easeIn: \"ease-in\",\n  easeOut: \"ease-out\",\n  easeInOut: \"ease-in-out\",\n  circIn: /* @__PURE__ */ cubicBezierAsString([0, 0.65, 0.55, 1]),\n  circOut: /* @__PURE__ */ cubicBezierAsString([0.55, 0, 1, 0.45]),\n  backIn: /* @__PURE__ */ cubicBezierAsString([0.31, 0.01, 0.66, -0.59]),\n  backOut: /* @__PURE__ */ cubicBezierAsString([0.33, 1.53, 0.69, 0.99])\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs\nfunction mapEasingToNativeEasing(easing, duration) {\n  if (!easing) {\n    return void 0;\n  } else if (typeof easing === \"function\") {\n    return supportsLinearEasing() ? generateLinearEasing(easing, duration) : \"ease-out\";\n  } else if (isBezierDefinition(easing)) {\n    return cubicBezierAsString(easing);\n  } else if (Array.isArray(easing)) {\n    return easing.map((segmentEasing) => mapEasingToNativeEasing(segmentEasing, duration) || supportedWaapiEasing.easeOut);\n  } else {\n    return supportedWaapiEasing[easing];\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs\nfunction startWaapiAnimation(element, valueName, keyframes2, { delay: delay2 = 0, duration = 300, repeat = 0, repeatType = \"loop\", ease: ease2 = \"easeOut\", times } = {}, pseudoElement = void 0) {\n  const keyframeOptions = {\n    [valueName]: keyframes2\n  };\n  if (times)\n    keyframeOptions.offset = times;\n  const easing = mapEasingToNativeEasing(ease2, duration);\n  if (Array.isArray(easing))\n    keyframeOptions.easing = easing;\n  const options = {\n    delay: delay2,\n    duration,\n    easing: !Array.isArray(easing) ? easing : \"linear\",\n    fill: \"both\",\n    iterations: repeat + 1,\n    direction: repeatType === \"reverse\" ? \"alternate\" : \"normal\"\n  };\n  if (pseudoElement)\n    options.pseudoElement = pseudoElement;\n  return element.animate(keyframeOptions, options);\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs\nfunction isGenerator(type) {\n  return typeof type === \"function\" && \"applyToOptions\" in type;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs\nfunction applyGeneratorOptions({ type, ...options }) {\n  if (isGenerator(type) && supportsLinearEasing()) {\n    return type.applyToOptions(options);\n  } else {\n    options.duration ?? (options.duration = 300);\n    options.ease ?? (options.ease = \"easeOut\");\n  }\n  return options;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs\nvar NativeAnimation = class extends WithPromise {\n  constructor(options) {\n    super();\n    this.finishedTime = null;\n    this.isStopped = false;\n    this.manualStartTime = null;\n    if (!options)\n      return;\n    const { element, name, keyframes: keyframes2, pseudoElement, allowFlatten = false, finalKeyframe, onComplete } = options;\n    this.isPseudoElement = Boolean(pseudoElement);\n    this.allowFlatten = allowFlatten;\n    this.options = options;\n    invariant(typeof options.type !== \"string\", `Mini animate() doesn't support \"type\" as a string.`, \"mini-spring\");\n    const transition = applyGeneratorOptions(options);\n    this.animation = startWaapiAnimation(element, name, keyframes2, transition, pseudoElement);\n    if (transition.autoplay === false) {\n      this.animation.pause();\n    }\n    this.animation.onfinish = () => {\n      this.finishedTime = this.time;\n      if (!pseudoElement) {\n        const keyframe = getFinalKeyframe(keyframes2, this.options, finalKeyframe, this.speed);\n        if (this.updateMotionValue) {\n          this.updateMotionValue(keyframe);\n        }\n        setStyle(element, name, keyframe);\n        this.animation.cancel();\n      }\n      onComplete?.();\n      this.notifyFinished();\n    };\n    notifyAnimationStart(this, options, transition);\n  }\n  play() {\n    if (this.isStopped)\n      return;\n    this.manualStartTime = null;\n    this.animation.play();\n    if (this.state === \"finished\") {\n      this.updateFinished();\n    }\n  }\n  pause() {\n    this.animation.pause();\n  }\n  complete() {\n    this.animation.finish?.();\n  }\n  cancel() {\n    try {\n      this.animation.cancel();\n    } catch (e) {\n    }\n  }\n  stop() {\n    if (this.isStopped)\n      return;\n    this.isStopped = true;\n    const { state } = this;\n    if (state === \"idle\" || state === \"finished\") {\n      return;\n    }\n    if (this.updateMotionValue) {\n      this.updateMotionValue();\n    } else {\n      this.commitStyles();\n    }\n    if (!this.isPseudoElement)\n      this.cancel();\n  }\n  /**\n   * WAAPI doesn't natively have any interruption capabilities.\n   *\n   * In this method, we commit styles back to the DOM before cancelling\n   * the animation.\n   *\n   * This is designed to be overridden by NativeAnimationExtended, which\n   * will create a renderless JS animation and sample it twice to calculate\n   * its current value, \"previous\" value, and therefore allow\n   * Motion to also correctly calculate velocity for any subsequent animation\n   * while deferring the commit until the next animation frame.\n   */\n  commitStyles() {\n    const element = this.options?.element;\n    if (!this.isPseudoElement && element?.isConnected) {\n      this.animation.commitStyles?.();\n    }\n  }\n  get duration() {\n    const duration = this.animation.effect?.getComputedTiming?.().duration || 0;\n    return millisecondsToSeconds(Number(duration));\n  }\n  get iterationDuration() {\n    const { delay: delay2 = 0 } = this.options || {};\n    return this.duration + millisecondsToSeconds(delay2);\n  }\n  get time() {\n    return millisecondsToSeconds(Number(this.animation.currentTime) || 0);\n  }\n  set time(newTime) {\n    const wasFinished = this.finishedTime !== null;\n    this.manualStartTime = null;\n    this.finishedTime = null;\n    this.animation.currentTime = secondsToMilliseconds(newTime);\n    if (wasFinished) {\n      this.animation.pause();\n    }\n  }\n  /**\n   * The playback speed of the animation.\n   * 1 = normal speed, 2 = double speed, 0.5 = half speed.\n   */\n  get speed() {\n    return this.animation.playbackRate;\n  }\n  set speed(newSpeed) {\n    if (newSpeed < 0)\n      this.finishedTime = null;\n    this.animation.playbackRate = newSpeed;\n  }\n  get state() {\n    return this.finishedTime !== null ? \"finished\" : this.animation.playState;\n  }\n  get startTime() {\n    return this.manualStartTime ?? Number(this.animation.startTime);\n  }\n  set startTime(newStartTime) {\n    this.manualStartTime = this.animation.startTime = newStartTime;\n  }\n  /**\n   * Attaches a timeline to the animation, for instance the `ScrollTimeline`.\n   */\n  attachTimeline({ timeline, onAttach, observe }) {\n    if (this.allowFlatten) {\n      this.animation.effect?.updateTiming({ easing: \"linear\" });\n    }\n    this.animation.onfinish = null;\n    if (timeline && supportsScrollTimeline()) {\n      this.animation.timeline = timeline;\n      onAttach?.(this.animation);\n      return noop;\n    } else {\n      return observe(this);\n    }\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs\nvar unsupportedEasingFunctions = {\n  anticipate,\n  backInOut,\n  circInOut\n};\nfunction isUnsupportedEase(key) {\n  return key in unsupportedEasingFunctions;\n}\nfunction replaceStringEasing(transition) {\n  if (typeof transition.ease === \"string\" && isUnsupportedEase(transition.ease)) {\n    transition.ease = unsupportedEasingFunctions[transition.ease];\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs\nvar sampleDelta = 10;\nvar NativeAnimationExtended = class extends NativeAnimation {\n  constructor(options) {\n    replaceStringEasing(options);\n    replaceTransitionType(options);\n    super(options);\n    if (options.startTime !== void 0 && options.autoplay !== false) {\n      this.startTime = options.startTime;\n    }\n    this.options = options;\n  }\n  /**\n   * The animation's time now, in ms. Wall-clock rather than WAAPI's\n   * currentTime while running, as under CPU load currentTime may not\n   * reflect the actual elapsed time, causing incorrect sampling and\n   * visual jumps.\n   */\n  elapsed() {\n    return this.state === \"running\" ? (time.now() - this.startTime) * this.speed : this.time * 1e3;\n  }\n  /**\n   * The value at a time, from a renderless JS animation.\n   */\n  sample(sampleTime) {\n    if (!this.sampler) {\n      const { motionValue: motionValue2, onUpdate, onComplete, onPlay, onStop, element, ...options } = this.options;\n      this.sampler = new JSAnimation({ ...options, autoplay: false });\n      this.sampler.stop();\n    }\n    return this.sampler.sample(Math.max(0, sampleTime)).value;\n  }\n  /**\n   * The value now, as WAAPI doesn't set the motion value while it runs.\n   */\n  liveValue() {\n    const { state } = this;\n    if (state === \"running\" || state === \"paused\") {\n      return this.sample(this.elapsed());\n    }\n  }\n  /**\n   * WAAPI doesn't natively have any interruption capabilities.\n   *\n   * Rather than read committed styles back out of the DOM, we can\n   * sample a renderless JS animation twice to calculate its current\n   * value, \"previous\" value, and therefore allow Motion to calculate\n   * velocity for any subsequent animation.\n   */\n  updateMotionValue(value) {\n    const { motionValue: motionValue2, element, name } = this.options;\n    if (!motionValue2)\n      return;\n    if (value !== void 0) {\n      motionValue2.set(value);\n      return;\n    }\n    const { speed } = this;\n    const sampleTime = this.elapsed();\n    const delta = this.state === \"running\" && speed ? clamp(0, sampleDelta, sampleTime) : 0;\n    const current2 = this.sample(sampleTime);\n    if (element && name)\n      setStyle(element, name, current2);\n    motionValue2.setWithVelocity(this.sample(sampleTime - delta * Math.sign(speed)), current2, delta / Math.abs(speed || 1));\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs\nfunction makeAnimationInstant(options) {\n  options.duration = 0;\n  options.type = \"keyframes\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs\nvar acceleratedValues = /* @__PURE__ */ new Set([\n  \"opacity\",\n  \"clipPath\",\n  \"filter\",\n  \"transform\",\n  \"backgroundColor\"\n]);\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs\nvar browserColorFunctions = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\\(/;\nfunction hasBrowserOnlyColors(keyframes2) {\n  for (let i = 0; i < keyframes2.length; i++) {\n    if (typeof keyframes2[i] === \"string\" && browserColorFunctions.test(keyframes2[i])) {\n      return true;\n    }\n  }\n  return false;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs\nvar colorProperties = /* @__PURE__ */ new Set([\n  \"color\",\n  \"backgroundColor\",\n  \"outlineColor\",\n  \"fill\",\n  \"stroke\",\n  \"borderColor\",\n  \"borderTopColor\",\n  \"borderRightColor\",\n  \"borderBottomColor\",\n  \"borderLeftColor\"\n]);\nvar supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Element.prototype, \"animate\"));\nfunction supportsBrowserAnimation(options) {\n  const { motionValue: motionValue2, name, repeatDelay, repeatType, damping, type, keyframes: keyframes2 } = options;\n  if (!name || !(acceleratedValues.has(name) || colorProperties.has(name))) {\n    return false;\n  }\n  const subject = motionValue2?.owner?.current;\n  if (!(subject instanceof HTMLElement) && !(subject instanceof SVGElement)) {\n    return false;\n  }\n  const { onUpdate, transformTemplate } = motionValue2.owner.getProps();\n  return supportsWaapi() && /**\n   * Force WAAPI for color properties with browser-only color formats\n   * (oklch, oklab, lab, lch, etc.) that the JS animation path can't parse.\n   */\n  (acceleratedValues.has(name) || colorProperties.has(name) && hasBrowserOnlyColors(keyframes2)) && (name !== \"transform\" || !transformTemplate) && /**\n   * If we're outputting values to onUpdate then we can't use WAAPI as there's\n   * no way to read the value from WAAPI every frame.\n   */\n  !onUpdate && !repeatDelay && repeatType !== \"mirror\" && damping !== 0 && type !== \"inertia\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs\nvar getValueAsType = (value, type) => {\n  return type && typeof value === \"number\" ? type.transform(value) : value;\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs\nvar translateAlias = {\n  x: \"translateX\",\n  y: \"translateY\",\n  z: \"translateZ\",\n  transformPerspective: \"perspective\"\n};\nvar numTransforms = transformPropOrder.length;\nfunction buildTransform(latestValues, transform2, transformTemplate) {\n  let transformString = \"\";\n  let transformIsDefault = true;\n  for (let i = 0; i < numTransforms; i++) {\n    const key = transformPropOrder[i];\n    const value = latestValues[key];\n    if (value === void 0)\n      continue;\n    let valueIsDefault = true;\n    if (typeof value === \"number\") {\n      valueIsDefault = value === (key.startsWith(\"scale\") ? 1 : 0);\n    } else {\n      const parsed = parseFloat(value);\n      valueIsDefault = key.startsWith(\"scale\") ? parsed === 1 : parsed === 0;\n    }\n    if (!valueIsDefault || transformTemplate) {\n      const valueAsType = getValueAsType(value, numberValueTypes[key]);\n      if (!valueIsDefault) {\n        transformIsDefault = false;\n        const transformName = translateAlias[key] || key;\n        transformString += `${transformName}(${valueAsType}) `;\n      }\n      if (transformTemplate) {\n        transform2[key] = valueAsType;\n      }\n    }\n  }\n  const pathRotation = latestValues.pathRotation;\n  if (pathRotation) {\n    transformIsDefault = false;\n    transformString += `rotate(${getValueAsType(pathRotation, numberValueTypes.pathRotation)}) `;\n  }\n  transformString = transformString.trim();\n  if (transformTemplate) {\n    transformString = transformTemplate(transform2, transformIsDefault ? \"\" : transformString);\n  } else if (transformIsDefault) {\n    transformString = \"none\";\n  }\n  return transformString;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs\nvar isAnimatable = (value, name) => {\n  if (name === \"zIndex\")\n    return false;\n  if (typeof value === \"number\" || Array.isArray(value))\n    return true;\n  if (typeof value === \"string\" && // It's animatable if we have a string\n  (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n  !value.startsWith(\"url(\")) {\n    return true;\n  }\n  return false;\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs\nfunction hasKeyframesChanged(keyframes2) {\n  const current2 = keyframes2[0];\n  if (keyframes2.length === 1)\n    return true;\n  for (let i = 0; i < keyframes2.length; i++) {\n    if (keyframes2[i] !== current2)\n      return true;\n  }\n}\nfunction canAnimate(keyframes2, name, type, velocity) {\n  const originKeyframe = keyframes2[0];\n  if (originKeyframe === null) {\n    return false;\n  }\n  if (name === \"display\" || name === \"visibility\")\n    return true;\n  const targetKeyframe = keyframes2[keyframes2.length - 1];\n  const isOriginAnimatable = isAnimatable(originKeyframe, name);\n  const isTargetAnimatable = isAnimatable(targetKeyframe, name);\n  if (!isOriginAnimatable || !isTargetAnimatable) {\n    isOriginAnimatable !== isTargetAnimatable && warning(false, `You are trying to animate ${name} from \"${originKeyframe}\" to \"${targetKeyframe}\". \"${isOriginAnimatable ? targetKeyframe : originKeyframe}\" is not an animatable value.`, \"value-not-animatable\");\n    return false;\n  }\n  return hasKeyframesChanged(keyframes2) || (type === \"spring\" || isGenerator(type)) && velocity;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs\nvar transformGroups = /* @__PURE__ */ new WeakMap();\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/transforms/TransformAnimation.mjs\nvar maxSamples = 200;\nvar easingTolerance = 1e-3;\nvar sampleTolerance = 0.1;\nvar scaleTolerance = 1e-3;\nvar churnWindow = 100;\nvar isNativeEasing = (ease2) => /^(linear|ease(In|Out|InOut))$/.test(ease2);\nvar byTime = (a, b) => a - b;\nvar spread = (from, to, n) => {\n  const result = [];\n  for (let i = 0; i <= n; i++)\n    result.push(mixNumber(from, to, i / n));\n  return result;\n};\nvar getOwner = (options) => options.motionValue.owner;\nvar getGroup = (element) => transformGroups.get(element);\nvar read = (owner, key) => owner.latestValues ? owner.latestValues[key] : owner.getValue(key)?.get();\nvar canGroupTransform = ({ name, motionValue: motionValue2 }) => name && transformPropOrder.includes(name) && motionValue2?.owner?.current instanceof HTMLElement && supportsWaapi() && supportsLinearEasing();\nfunction canAccelerateTransform(options) {\n  const owner = getOwner(options);\n  const { onUpdate, transformTemplate } = owner.getProps();\n  return (\n    /**\n     * A handoff from an optimised appear animation is already running\n     * on its own WAAPI animation. onUpdate needs every value, every\n     * frame.\n     */\n    !options.isHandoff && !onUpdate && !options.hasOnUpdate && /**\n     * transformTemplate could output anything.\n     */\n    !transformTemplate && options.type !== \"inertia\" && /**\n     * A literal transform, or pathRotation, replaces or adds to the\n     * transform we'd build. styleEffect builds its own as \"none\".\n     */\n    (read(owner, \"transform\") || \"none\") === \"none\" && !read(owner, \"pathRotation\") && /**\n     * Layout animations write transform every frame.\n     */\n    !owner.projection?.isProjecting()\n  );\n}\nvar TransformAnimation = class extends JSAnimation {\n  constructor(options) {\n    const element = getOwner(options).current;\n    const { driver = frameloopDriver } = options;\n    const canAccelerate = canAccelerateTransform(options);\n    options.driver = (update) => {\n      const js = driver(update);\n      return {\n        js,\n        now: js.now,\n        start: (keepAlive = true) => {\n          const group = getGroup(element);\n          const isJS = !group || group.isJS;\n          isJS ? js.start(keepAlive) : group.schedule(false, !keepAlive);\n        },\n        stop: () => {\n          js.stop();\n          const group = getGroup(element);\n          group?.schedule(!group.isFinishing);\n        }\n      };\n    };\n    super(options);\n    this.canAccelerate = canAccelerate;\n    const { stop } = this;\n    this.stop = () => {\n      this.isAccelerated() && this.sync();\n      stop();\n    };\n  }\n  get group() {\n    return getGroup(getOwner(this.options).current);\n  }\n  get js() {\n    return this.driver?.js;\n  }\n  get name() {\n    return this.options.name;\n  }\n  /**\n   * When this stops moving, or, if it repeats forever, when it starts\n   * repeating, and how long each repeat takes. Held (paused, or at\n   * speed 0) animations never stop moving.\n   */\n  timing() {\n    const { startTime, speed, totalDuration } = this;\n    const { delay: delay2 = 0, repeatType } = this.options;\n    return this.holdTime !== null ? [Infinity, 0] : totalDuration === Infinity ? [\n      startTime + delay2 / speed,\n      this.resolvedDuration * (repeatType === \"loop\" ? 1 : 2) / speed || 1\n    ] : [startTime + (delay2 + totalDuration) / speed, 0];\n  }\n  /**\n   * Whether this is running, or paused, on the compositor.\n   */\n  isAccelerated() {\n    const { group, state } = this;\n    return group?.tracks.has(this) && !group.isJS && this.canAccelerate && (state === \"running\" || state === \"paused\");\n  }\n  /**\n   * The value now, while this runs on the compositor and so doesn't\n   * set its motion value every frame.\n   */\n  liveValue() {\n    return this.isAccelerated() ? this.sampleAt(time.now()) : void 0;\n  }\n  /**\n   * If this is a two-keyframe tween whose easing WAAPI runs exactly,\n   * when it starts and stops moving, and that easing.\n   */\n  tween() {\n    const { keyframes: keyframes$1, type, ease: ease2, times, repeat, delay: delay2 = 0 } = this.options;\n    const easing = isBezierDefinition(ease2) ? cubicBezierAsString(ease2) : isNativeEasing(ease2) && supportedWaapiEasing[ease2];\n    if (easing && !repeat && !times && keyframes$1.length === 2 && type === keyframes && this.holdTime === null) {\n      const start2 = this.startTime + delay2 / this.speed;\n      return [start2, start2 + this.resolvedDuration / this.speed, easing];\n    }\n  }\n  /**\n   * The timestamps between two timestamps where this reaches a\n   * keyframe or starts a repeat, where it can turn or jump.\n   */\n  boundaries(from, to) {\n    const { startTime, speed, resolvedDuration, options } = this;\n    const { delay: delay2 = 0, repeat = 0, repeatDelay = 0, repeatType, times, keyframes: keyframes$1, type } = options;\n    const offsets = (type || keyframes) === keyframes ? times || defaultOffset(keyframes$1) : [0, 1];\n    const start2 = startTime + delay2 / speed;\n    const result = [];\n    if (this.holdTime !== null || !(resolvedDuration > 0))\n      return result;\n    for (let i = Math.max(0, Math.floor((from - start2) * speed / resolvedDuration)); i <= repeat; i++) {\n      const iterationStart = start2 + i * resolvedDuration / speed;\n      if (iterationStart > to)\n        break;\n      for (const offset of offsets) {\n        const t = iterationStart + (i % 2 && repeatType && repeatType !== \"loop\" ? 1 - offset : offset) * (resolvedDuration - repeatDelay) / speed;\n        t > from && t < to && result.push(t);\n      }\n    }\n    return result;\n  }\n  /**\n   * The value at a timestamp, as a number.\n   */\n  numberAt(timestamp) {\n    return parseFloat(this.sampleAt(timestamp, true));\n  }\n  /**\n   * Write the current value, and velocity, to the motion value.\n   */\n  sync() {\n    const now2 = time.now();\n    this.options.motionValue.setWithVelocity(this.sampleAt(now2 - sampleDelta, true), this.sampleAt(now2, true), sampleDelta);\n  }\n  play() {\n    if (this.isStopped)\n      return;\n    (this.group || createGroup(getOwner(this.options))).tracks.add(this);\n    super.play();\n  }\n  pause() {\n    super.pause();\n    if (this.isAccelerated()) {\n      this.sync();\n      this.group.schedule(false);\n    }\n  }\n  /**\n   * JSAnimation finishes on its next tick, which only happens on the\n   * main thread, so finish now.\n   */\n  complete() {\n    super.complete();\n    const { group } = this;\n    group && !group.isJS && this.canAccelerate && this.tick(time.now());\n  }\n  /**\n   * Without a tick to rebase it, a held time still includes the delay,\n   * so take it off here, as a JS animation does on its next tick.\n   */\n  get time() {\n    if (this.isAccelerated()) {\n      return millisecondsToSeconds(clamp(0, this.totalDuration, this.at(time.now()) - (this.options.delay || 0)));\n    }\n    return super.time;\n  }\n  set time(newTime) {\n    super.time = newTime;\n  }\n  /**\n   * Scroll timelines set time every frame, so run these on the main\n   * thread.\n   */\n  attachTimeline(timeline) {\n    this.canAccelerate = false;\n    this.group?.demote(true);\n    return super.attachTimeline(timeline);\n  }\n};\nfunction createGroup(owner) {\n  const element = owner.current;\n  const tracks = /* @__PURE__ */ new Set();\n  const byKey = /* @__PURE__ */ new Map();\n  let statics = {};\n  let keys = [];\n  let built = /* @__PURE__ */ new Map();\n  let segments = [];\n  let needsBuild = false;\n  let isScheduled2 = false;\n  let hasChurned = false;\n  let lastChurn = -Infinity;\n  const has = (key) => {\n    for (const track of tracks)\n      if (track.name === key)\n        return true;\n  };\n  const valuesAt = (timestamp, settled) => {\n    const values = {};\n    for (const key of timestamp === void 0 ? transformPropOrder : keys) {\n      const track = byKey.get(key);\n      const value = timestamp === void 0 ? read(owner, key) : track ? track.sampleAt(settled > timestamp && !track.timing()[1] ? settled : timestamp) : statics[key];\n      if (value !== void 0)\n        values[key] = value;\n    }\n    return values;\n  };\n  const compose = (timestamp, settled) => {\n    let transform2 = \"\";\n    const values = valuesAt(timestamp, settled);\n    for (const key in values) {\n      transform2 += (translateAlias[key] || key) + \"(\" + getValueAsType(values[key], numberValueTypes[key]) + \") \";\n    }\n    return transform2 || \"none\";\n  };\n  const commit = (values = valuesAt()) => {\n    element.style.transform = buildTransform(values, {});\n  };\n  const stop = (shouldCommit = true) => {\n    shouldCommit && commit();\n    segments.forEach(({ animation }) => animation.cancel());\n    segments = [];\n  };\n  const add = (animation, offset, end = Infinity) => {\n    const segment = { animation, offset, end };\n    animation.startTime = time.now() + offset;\n    if (end < Infinity) {\n      animation.onfinish = () => {\n        segment.isDone = true;\n        if (segments.some((s) => s.end === Infinity)) {\n          animation.cancel();\n          segments = segments.filter((s) => s !== segment);\n        }\n        group.schedule(false);\n      };\n    }\n    animation.oncancel = () => segments.includes(segment) && group.demote();\n    segments.push(segment);\n  };\n  const jumpAt = (value, a, b) => {\n    const change = (x, y) => Math.abs(value(y) - value(x));\n    const size = change(a, b);\n    while (b - a > 0.01) {\n      const mid = (a + b) / 2;\n      change(a, mid) > change(mid, b) ? b = mid : a = mid;\n    }\n    return change(a, b) > size / 2 ? [a, b] : [];\n  };\n  const getEasing = (moving, from, to, bounds) => {\n    const samples = Math.min(maxSamples, Math.max(2, Math.ceil((to - from) / sampleDelta)));\n    if (bounds.length * 4 > samples)\n      return;\n    const at = spread(from, to, samples).concat(bounds).sort(byTime);\n    const position = (t) => progress(from, to, t);\n    let shared;\n    let progressAt;\n    for (const track of moving) {\n      const values = at.map((t) => track.numberAt(t));\n      const [first] = values;\n      const range = values[values.length - 1] - first;\n      const progress2 = values.map((value) => range ? (value - first) / range : value - first);\n      if (!range) {\n        if (progress2.some((p) => !(Math.abs(p) <= easingTolerance))) {\n          return;\n        }\n      } else if (!shared) {\n        shared = progress2;\n        progressAt = (t) => (track.numberAt(t) - first) / range;\n      } else if (progress2.some((p, i) => !(Math.abs(p - shared[i]) <= easingTolerance))) {\n        return;\n      }\n    }\n    if (!shared || shared.every((p, i) => Math.abs(p - position(at[i])) <= easingTolerance)) {\n      return \"linear\";\n    }\n    const points = [];\n    const point = (t, p = progressAt(t)) => points.push(round(p) + \" \" + round(position(t) * 100) + \"%\");\n    shared.forEach((p, i) => {\n      i && Math.abs(p - shared[i - 1]) > 0.2 && jumpAt(progressAt, at[i - 1], at[i]).forEach((t) => point(t));\n      point(at[i], p);\n    });\n    return \"linear(\" + points + \")\";\n  };\n  const sample = (moving, from, to, bounds) => {\n    const times = [from];\n    const isStraight = (a, b) => moving.every((track) => !(Math.abs(track.numberAt((a + b) / 2) - (track.numberAt(a) + track.numberAt(b)) / 2) > (track.name.startsWith(\"scale\") ? scaleTolerance : sampleTolerance)));\n    const split = (a, b, depth) => {\n      if (b - a < 1 || isStraight(a, b)) {\n        times.push(b);\n      } else if (depth < 4) {\n        split(a, (a + b) / 2, depth + 1);\n        split((a + b) / 2, b, depth + 1);\n      } else {\n        for (const track of moving) {\n          times.push(...jumpAt((t) => track.numberAt(t), a, b));\n        }\n        times.push(b);\n      }\n    };\n    const ends = spread(from, to, Math.ceil((to - from) / 100));\n    for (const t of bounds)\n      ends.push(t, Math.min(t + 0.01, to));\n    let start2 = from;\n    for (const end of ends.sort(byTime)) {\n      end > start2 && split(start2, end, 0);\n      start2 = end;\n    }\n    return times.sort(byTime);\n  };\n  const getTween = (moving) => {\n    let shared;\n    for (const track of moving) {\n      const tween = track.tween();\n      if (!tween || shared?.some((v, i) => i < 2 ? Math.abs(tween[i] - v) > 1 : tween[i] !== v)) {\n        return;\n      }\n      shared = tween;\n    }\n    return shared;\n  };\n  const run = (moving, from, to, options = { fill: \"both\" }, settled, nativeEasing) => {\n    const bounds = moving.flatMap((track) => track.boundaries(from, to));\n    const easing = nativeEasing || getEasing(moving, from, to, bounds);\n    const times = easing ? [from, to] : sample(moving, from, to, bounds);\n    const transform2 = times.map((t) => compose(t, settled));\n    let keyframes2 = { transform: transform2 };\n    if (!easing) {\n      keyframes2.offset = times.map((t) => progress(from, to, t));\n    }\n    if (transform2.every((t) => t === transform2[0])) {\n      commit(valuesAt(from, settled));\n      keyframes2 = null;\n    }\n    return element.animate(keyframes2, {\n      ...options,\n      duration: to - from,\n      easing: easing || \"linear\"\n    });\n  };\n  const animate2 = (now2) => {\n    let end = now2;\n    let cycle = 0;\n    let cycleStart = 0;\n    const moving = [];\n    const looping = [];\n    const ends = /* @__PURE__ */ new Set();\n    byKey.clear();\n    built = /* @__PURE__ */ new Map();\n    for (const track of tracks) {\n      byKey.set(track.name, track);\n      const [trackEnd, trackCycle] = track.timing();\n      const isHeld = trackEnd === Infinity;\n      built.set(track, [track.at(now2), track.speed, isHeld]);\n      if (isHeld) {\n        track.sync();\n        continue;\n      }\n      if (track.speed < 0)\n        return;\n      if (trackCycle) {\n        if (cycle) {\n          const phase = (trackEnd - cycleStart) / trackCycle;\n          if (Math.abs(trackCycle - cycle) > 1 || Math.abs(phase - Math.round(phase)) * cycle > 1) {\n            return;\n          }\n        } else {\n          cycle = trackCycle;\n          cycleStart = trackEnd;\n        }\n        looping.push(track);\n      } else {\n        ends.add(trackEnd);\n      }\n      moving.push(track);\n      end = Math.max(end, trackEnd);\n    }\n    statics = {};\n    keys = transformPropOrder.filter((key) => {\n      if (byKey.has(key))\n        return true;\n      const value = statics[key] = read(owner, key);\n      return value !== void 0 && parseFloat(value) !== (key.startsWith(\"scale\") ? 1 : 0);\n    });\n    stop(false);\n    const tween = !cycle && getTween(moving);\n    try {\n      if (tween && tween[1] > now2) {\n        const [from, to, easing] = tween;\n        add(run(moving, from, to, void 0, void 0, easing), from - now2, to - from);\n      } else if (end > now2) {\n        add(run(moving, now2, end), 0, end - now2);\n        ends.forEach((trackEnd) => trackEnd < end - 1 && add(element.animate(null, {\n          duration: trackEnd - now2\n        }), 0, trackEnd - now2));\n      }\n      if (cycle) {\n        const from = cycleStart + Math.floor((end - cycleStart) / cycle) * cycle;\n        add(run(looping, from, from + cycle, {\n          iterations: Infinity,\n          iterationStart: (end - from) / cycle,\n          /**\n           * It must not fill backwards over the finite part\n           * that runs before it.\n           */\n          fill: \"forwards\"\n        }, end), end - now2);\n      }\n    } catch {\n      return;\n    }\n    segments.length || stop();\n    return true;\n  };\n  const retime = (now2) => {\n    let elapsed;\n    let rate = 0;\n    for (const track of tracks) {\n      const state = built.get(track);\n      if (!state)\n        return false;\n      const [builtTime, builtSpeed, wasHeld] = state;\n      const trackTime = track.at(now2);\n      const isHeld = track.timing()[0] === Infinity;\n      if (wasHeld) {\n        if (isHeld && trackTime === builtTime)\n          continue;\n        return false;\n      }\n      const trackElapsed = (trackTime - builtTime) / builtSpeed;\n      const trackRate = isHeld ? 0 : track.speed / builtSpeed;\n      if (elapsed === void 0) {\n        elapsed = trackElapsed;\n        rate = trackRate;\n      } else if (Math.abs(trackElapsed - elapsed) > 1 || trackRate !== rate) {\n        return false;\n      }\n    }\n    if (elapsed === void 0)\n      return true;\n    if (!segments.length)\n      return false;\n    for (const { offset, end, isDone } of segments) {\n      const local = elapsed - offset;\n      if (end < Infinity && (isDone ? local < end - 1 : local < 0 || local >= end)) {\n        return false;\n      }\n    }\n    for (const { animation, offset, isDone } of segments) {\n      if (isDone)\n        continue;\n      const local = elapsed - offset;\n      if (rate) {\n        animation.playbackRate = rate;\n        animation.startTime = now2 - local / rate;\n      } else {\n        animation.pause();\n        animation.currentTime = local;\n      }\n    }\n    return true;\n  };\n  const build = () => {\n    const now2 = time.now();\n    if (!group.isJS) {\n      group.isFinishing = true;\n      tracks.forEach((track) => {\n        const [trackEnd, trackCycle] = track.timing();\n        if (track.state === \"running\" && track.speed > 0 && !trackCycle && trackEnd <= now2 + 1) {\n          track.complete();\n          statics[track.name] = read(owner, track.name);\n          built.has(track) || (needsBuild = true);\n        }\n      });\n      group.isFinishing = false;\n    }\n    isScheduled2 = false;\n    tracks.forEach(({ state }, track) => {\n      if (state === \"idle\" || state === \"finished\")\n        tracks.delete(track);\n    });\n    if (!tracks.size) {\n      transformGroups.delete(element);\n      group.isJS || stop();\n      return;\n    }\n    for (const track of tracks) {\n      if (!track.canAccelerate)\n        return group.demote(true);\n    }\n    if (group.isJS) {\n      group.isJS = false;\n      needsBuild = true;\n      tracks.forEach((track) => track.js?.stop());\n    }\n    const shouldBuild = needsBuild;\n    const churned = hasChurned;\n    needsBuild = hasChurned = false;\n    if (shouldBuild || !retime(now2)) {\n      if (churned) {\n        if (now2 - lastChurn < churnWindow)\n          return group.demote();\n        lastChurn = now2;\n      }\n      if (!animate2(now2))\n        return group.demote();\n    }\n  };\n  const group = {\n    tracks,\n    isJS: false,\n    isFinishing: false,\n    schedule(build_, isChurn) {\n      needsBuild || (needsBuild = build_);\n      hasChurned || (hasChurned = !!isChurn);\n      if (!isScheduled2) {\n        isScheduled2 = true;\n        frameData.isProcessing ? frame.render(build, false, true) : queueMicrotask(build);\n      }\n    },\n    /**\n     * An outside write. Rebuild once, but if it keeps happening, move\n     * to the main thread.\n     */\n    check() {\n      if (group.isJS)\n        return;\n      for (const key in statics) {\n        if (read(owner, key) !== statics[key] && !has(key)) {\n          return group.schedule(true, true);\n        }\n      }\n    },\n    demote(canReturn) {\n      if (group.isJS)\n        return;\n      tracks.forEach((track) => {\n        track.isAccelerated() && track.sync();\n        canReturn || (track.canAccelerate = false);\n      });\n      group.isJS = true;\n      built = /* @__PURE__ */ new Map();\n      stop();\n      tracks.forEach((track) => track.state === \"running\" && track.js?.start());\n    }\n  };\n  transformGroups.set(element, group);\n  return group;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs\nvar AsyncMotionValueAnimation = class extends WithPromise {\n  constructor(options) {\n    super();\n    this.stop = () => {\n      if (this._animation) {\n        this._animation.stop();\n        this.stopTimeline?.();\n      }\n      this.keyframeResolver?.cancel();\n    };\n    this.createdAt = time.now();\n    const { keyframes: keyframes2, name, motionValue: motionValue2, element } = options;\n    const optionsWithDefaults = options;\n    optionsWithDefaults.autoplay ?? (optionsWithDefaults.autoplay = true);\n    optionsWithDefaults.delay ?? (optionsWithDefaults.delay = 0);\n    optionsWithDefaults.type ?? (optionsWithDefaults.type = \"keyframes\");\n    optionsWithDefaults.repeat ?? (optionsWithDefaults.repeat = 0);\n    optionsWithDefaults.repeatDelay ?? (optionsWithDefaults.repeatDelay = 0);\n    optionsWithDefaults.repeatType ?? (optionsWithDefaults.repeatType = \"loop\");\n    const KeyframeResolver$1 = element?.KeyframeResolver || KeyframeResolver;\n    this.keyframeResolver = new KeyframeResolver$1(keyframes2, (resolvedKeyframes, finalKeyframe, forced) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe, optionsWithDefaults, !forced), name, motionValue2, element);\n    this.keyframeResolver?.scheduleResolve();\n  }\n  onKeyframesResolved(keyframes2, finalKeyframe, options, sync2) {\n    this.keyframeResolver = void 0;\n    const { name, type, velocity, delay: delay2, isHandoff, onUpdate } = options;\n    this.resolvedAt = time.now();\n    let canAnimateValue = true;\n    if (!canAnimate(keyframes2, name, type, velocity)) {\n      canAnimateValue = false;\n      if (MotionGlobalConfig.instantAnimations || !delay2) {\n        onUpdate?.(getFinalKeyframe(keyframes2, options, finalKeyframe));\n      }\n      keyframes2[0] = keyframes2[keyframes2.length - 1];\n      makeAnimationInstant(options);\n      options.repeat = 0;\n    }\n    const { onComplete } = options;\n    options.finalKeyframe = finalKeyframe;\n    options.keyframes = keyframes2;\n    options.onComplete = () => {\n      onComplete?.();\n      this.notifyFinished();\n    };\n    const useWaapi = canAnimateValue && !isHandoff && supportsBrowserAnimation(options);\n    const isGroupedTransform = !useWaapi && canGroupTransform(options);\n    if (sync2 && (useWaapi || isGroupedTransform || this.resolvedAt !== this.createdAt)) {\n      options.startTime ?? (options.startTime = resolveStartTime(this.createdAt, this.resolvedAt));\n    }\n    let animation;\n    if (useWaapi) {\n      options.element = options.motionValue?.owner?.current;\n      try {\n        animation = new NativeAnimationExtended(options);\n      } catch {\n        animation = new JSAnimation(options);\n      }\n    } else if (isGroupedTransform) {\n      animation = new TransformAnimation(options);\n    } else {\n      animation = new JSAnimation(options);\n    }\n    if (this.pendingTimeline) {\n      this.stopTimeline = animation.attachTimeline(this.pendingTimeline);\n      this.pendingTimeline = void 0;\n    }\n    this._animation = animation;\n  }\n  get finished() {\n    return this._animation ? this._animation.finished : super.finished;\n  }\n  then(onResolve, _onReject) {\n    return this.finished.finally(onResolve).then(() => {\n    });\n  }\n  /**\n   * The value now, if the animation runs on the compositor.\n   */\n  liveValue() {\n    return this._animation?.liveValue?.();\n  }\n  get animation() {\n    if (!this._animation) {\n      this.keyframeResolver?.resume();\n      flushKeyframeResolvers();\n    }\n    return this._animation;\n  }\n  get duration() {\n    return this.animation.duration;\n  }\n  get iterationDuration() {\n    return this.animation.iterationDuration;\n  }\n  get time() {\n    return this.animation.time;\n  }\n  set time(newTime) {\n    this.animation.time = newTime;\n  }\n  get speed() {\n    return this.animation.speed;\n  }\n  get state() {\n    return this.animation.state;\n  }\n  set speed(newSpeed) {\n    this.animation.speed = newSpeed;\n  }\n  get startTime() {\n    return this.animation.startTime;\n  }\n  attachTimeline(timeline) {\n    if (this._animation) {\n      this.stopTimeline = this.animation.attachTimeline(timeline);\n    } else {\n      this.pendingTimeline = timeline;\n    }\n    return () => this.stop();\n  }\n  play() {\n    this.animation.play();\n  }\n  pause() {\n    this.animation.pause();\n  }\n  complete() {\n    this.animation.complete();\n  }\n  cancel() {\n    if (this._animation) {\n      this.animation.cancel();\n    }\n    this.keyframeResolver?.cancel();\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/GroupAnimation.mjs\nvar GroupAnimation = class {\n  constructor(animations2) {\n    this.stop = () => this.runAll(\"stop\");\n    this.animations = animations2.filter(Boolean);\n  }\n  get finished() {\n    return Promise.all(this.animations.map((animation) => animation.finished));\n  }\n  /**\n   * TODO: Filter out cancelled or stopped animations before returning\n   */\n  getAll(propName) {\n    return this.animations[0][propName];\n  }\n  setAll(propName, newValue) {\n    for (let i = 0; i < this.animations.length; i++) {\n      this.animations[i][propName] = newValue;\n    }\n  }\n  attachTimeline(timeline) {\n    const subscriptions = this.animations.map((animation) => animation.attachTimeline(timeline));\n    return () => {\n      subscriptions.forEach((cancel, i) => {\n        cancel && cancel();\n        this.animations[i].stop();\n      });\n    };\n  }\n  get time() {\n    return this.getAll(\"time\");\n  }\n  set time(time2) {\n    this.setAll(\"time\", time2);\n  }\n  get speed() {\n    return this.getAll(\"speed\");\n  }\n  set speed(speed) {\n    this.setAll(\"speed\", speed);\n  }\n  get state() {\n    return this.getAll(\"state\");\n  }\n  get startTime() {\n    return this.getAll(\"startTime\");\n  }\n  get duration() {\n    return getMax(this.animations, \"duration\");\n  }\n  get iterationDuration() {\n    return getMax(this.animations, \"iterationDuration\");\n  }\n  runAll(methodName) {\n    this.animations.forEach((controls) => controls[methodName]());\n  }\n  play() {\n    this.runAll(\"play\");\n  }\n  pause() {\n    this.runAll(\"pause\");\n  }\n  cancel() {\n    this.runAll(\"cancel\");\n  }\n  complete() {\n    this.runAll(\"complete\");\n  }\n};\nfunction getMax(animations2, propName) {\n  let max = 0;\n  for (let i = 0; i < animations2.length; i++) {\n    const value = animations2[i][propName];\n    if (value !== null && value > max) {\n      max = value;\n    }\n  }\n  return max;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs\nvar GroupAnimationWithThen = class extends GroupAnimation {\n  then(onResolve, _onReject) {\n    return this.finished.finally(onResolve).then(() => {\n    });\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/NativeAnimationWrapper.mjs\nvar NativeAnimationWrapper = class extends NativeAnimation {\n  constructor(animation) {\n    super();\n    this.animation = animation;\n    animation.onfinish = () => {\n      this.finishedTime = this.time;\n      this.notifyFinished();\n    };\n    notifyAnimationStart(this, {});\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/active-animations.mjs\nvar animationMaps = /* @__PURE__ */ new WeakMap();\nvar animationMapKey = (name, pseudoElement = \"\") => `${name}:${pseudoElement}`;\nfunction getAnimationMap(element) {\n  let map = animationMaps.get(element);\n  if (!map) {\n    map = /* @__PURE__ */ new Map();\n    animationMaps.set(element, map);\n  }\n  return map;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs\nfunction calcChildStagger(children, child, delayChildren, staggerChildren = 0, staggerDirection = 1) {\n  const index = Array.from(children).sort((a, b) => a.sortNodePosition(b)).indexOf(child);\n  const numChildren = children.size;\n  const maxStaggerDuration = (numChildren - 1) * staggerChildren;\n  const delayIsFunction = typeof delayChildren === \"function\";\n  return delayIsFunction ? delayChildren(index, numChildren) : staggerDirection === 1 ? index * staggerChildren : maxStaggerDuration - index * staggerChildren;\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/index.mjs\nvar MAX_VELOCITY_DELTA = 30;\nvar isFloat = (value) => {\n  return !isNaN(parseFloat(value));\n};\nvar collectMotionValues = {\n  current: void 0\n};\nvar MotionValue = class {\n  /**\n   * @param init - The initiating value\n   * @param config - Optional configuration options\n   *\n   * -  `transformer`: A function to transform incoming values with.\n   */\n  constructor(init, options = {}) {\n    this.canTrackVelocity = null;\n    this.events = {};\n    this.updateAndNotify = (v) => {\n      const currentTime = time.now();\n      if (this.updatedAt !== currentTime) {\n        this.setPrevFrameValue();\n      }\n      this.prev = this.current;\n      this.setCurrent(v);\n      if (this.current !== this.prev) {\n        this.notifyChange();\n        if (this.dependents) {\n          for (const dependent of this.dependents) {\n            dependent.dirty();\n          }\n        }\n      }\n    };\n    this.hasAnimated = false;\n    this.setCurrent(init);\n    this.owner = options.owner;\n  }\n  setCurrent(current2) {\n    this.current = current2;\n    this.updatedAt = time.now();\n    if (this.canTrackVelocity === null && current2 !== void 0) {\n      this.canTrackVelocity = isFloat(this.current);\n    }\n  }\n  setPrevFrameValue(prevFrameValue = this.current) {\n    this.prevFrameValue = prevFrameValue;\n    this.prevUpdatedAt = this.updatedAt;\n  }\n  /**\n   * Adds a function that will be notified when the `MotionValue` is updated.\n   *\n   * It returns a function that, when called, will cancel the subscription.\n   *\n   * When calling `onChange` inside a React component, it should be wrapped with the\n   * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n   * from the `useEffect` function to ensure you don't add duplicate subscribers..\n   *\n   * ```jsx\n   * export const MyComponent = () => {\n   *   const x = useMotionValue(0)\n   *   const y = useMotionValue(0)\n   *   const opacity = useMotionValue(1)\n   *\n   *   useEffect(() => {\n   *     function updateOpacity() {\n   *       const maxXY = Math.max(x.get(), y.get())\n   *       const newOpacity = transform(maxXY, [0, 100], [1, 0])\n   *       opacity.set(newOpacity)\n   *     }\n   *\n   *     const unsubscribeX = x.on(\"change\", updateOpacity)\n   *     const unsubscribeY = y.on(\"change\", updateOpacity)\n   *\n   *     return () => {\n   *       unsubscribeX()\n   *       unsubscribeY()\n   *     }\n   *   }, [])\n   *\n   *   return <motion.div style={{ x }} />\n   * }\n   * ```\n   *\n   * @param subscriber - A function that receives the latest value.\n   * @returns A function that, when called, will cancel this subscription.\n   *\n   * @deprecated\n   */\n  onChange(subscription) {\n    if (false) {\n      warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n    }\n    return this.on(\"change\", subscription);\n  }\n  on(eventName, callback) {\n    var _a;\n    if (eventName === \"change\")\n      return this.onChangeSubscribe(callback);\n    return ((_a = this.events)[eventName] || (_a[eventName] = new SubscriptionManager())).add(callback);\n  }\n  onChangeSubscribe(callback) {\n    const { events } = this;\n    if (!events.change && !this.changeSubscriber) {\n      this.changeSubscriber = callback;\n    } else {\n      if (!events.change) {\n        events.change = new SubscriptionManager();\n        events.change.add(this.changeSubscriber);\n        this.changeSubscriber = void 0;\n      }\n      events.change.add(callback);\n    }\n    return () => {\n      if (this.changeSubscriber === callback) {\n        this.changeSubscriber = void 0;\n      } else {\n        events.change?.remove(callback);\n      }\n      this.stopIfUnobserved();\n    };\n  }\n  /**\n   * If we have no more change listeners by the start\n   * of the next frame, stop active animations.\n   */\n  stopIfUnobserved() {\n    frame.read(() => {\n      if (!this.changeSubscriber && !this.events.change?.getSize()) {\n        this.stop();\n      }\n    });\n  }\n  clearListeners() {\n    this.changeSubscriber = void 0;\n    for (const eventManagers in this.events) {\n      this.events[eventManagers].clear();\n    }\n  }\n  /**\n   * Attaches a passive effect to the `MotionValue`.\n   */\n  attach(passiveEffect, stopPassiveEffect) {\n    this.passiveEffect = passiveEffect;\n    this.stopPassiveEffect = stopPassiveEffect;\n  }\n  /**\n   * Sets the state of the `MotionValue`.\n   *\n   * @remarks\n   *\n   * ```jsx\n   * const x = useMotionValue(0)\n   * x.set(10)\n   * ```\n   *\n   * @param latest - Latest value to set.\n   * @param render - Whether to notify render subscribers. Defaults to `true`\n   *\n   * @public\n   */\n  set(v) {\n    if (!this.passiveEffect) {\n      this.updateAndNotify(v);\n    } else {\n      this.passiveEffect(v, this.updateAndNotify);\n    }\n  }\n  setWithVelocity(prev, current2, delta) {\n    this.set(current2);\n    this.prev = void 0;\n    this.prevFrameValue = prev;\n    this.prevUpdatedAt = this.updatedAt - delta;\n  }\n  /**\n   * Set the state of the `MotionValue`, stopping any active animations,\n   * effects, and resets velocity to `0`.\n   */\n  jump(v, endAnimation = true) {\n    this.updateAndNotify(v);\n    this.prev = v;\n    this.prevUpdatedAt = this.prevFrameValue = void 0;\n    endAnimation && this.stop();\n    if (this.stopPassiveEffect)\n      this.stopPassiveEffect();\n  }\n  dirty() {\n    this.notifyChange();\n  }\n  notifyChange() {\n    const { current: current2, changeSubscriber } = this;\n    if (changeSubscriber) {\n      changeSubscriber(current2);\n    } else {\n      this.events.change?.notify(current2);\n    }\n  }\n  addDependent(dependent) {\n    if (!this.dependents) {\n      this.dependents = /* @__PURE__ */ new Set();\n    }\n    this.dependents.add(dependent);\n  }\n  removeDependent(dependent) {\n    if (this.dependents) {\n      this.dependents.delete(dependent);\n    }\n  }\n  /**\n   * Returns the latest state of `MotionValue`\n   *\n   * @returns - The latest state of `MotionValue`\n   *\n   * @public\n   */\n  get() {\n    if (collectMotionValues.current) {\n      collectMotionValues.current.push(this);\n    }\n    const sampled = this.animation?.liveValue?.();\n    return sampled === void 0 ? this.current : sampled;\n  }\n  /**\n   * The value as last set. Unlike get(), this doesn't read an animation\n   * running on the compositor, which renders the value itself.\n   */\n  getCurrent() {\n    return this.current;\n  }\n  /**\n   * @public\n   */\n  getPrevious() {\n    return this.prev;\n  }\n  /**\n   * Returns the latest velocity of `MotionValue`\n   *\n   * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n   *\n   * @public\n   */\n  getVelocity() {\n    const currentTime = time.now();\n    if (!this.canTrackVelocity || this.prevFrameValue === void 0 || currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n      return 0;\n    }\n    const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n    return velocityPerSecond(parseFloat(this.current) - parseFloat(this.prevFrameValue), delta);\n  }\n  /**\n   * Registers a new animation to control this `MotionValue`. Only one\n   * animation can drive a `MotionValue` at one time.\n   *\n   * ```jsx\n   * value.start()\n   * ```\n   *\n   * @param animation - A function that starts the provided animation\n   */\n  start(startAnimation) {\n    this.stop();\n    return new Promise((resolve) => {\n      this.hasAnimated = true;\n      let isComplete = false;\n      let animation;\n      animation = startAnimation(() => {\n        isComplete = true;\n        this.events.animationComplete?.notify();\n        if (this.animation === animation)\n          this.clearAnimation();\n        resolve();\n      });\n      if (!isComplete)\n        this.animation = animation;\n      this.events.animationStart?.notify();\n    });\n  }\n  /**\n   * Stop the currently active animation.\n   *\n   * @public\n   */\n  stop() {\n    if (this.animation) {\n      this.animation.stop();\n      if (this.events.animationCancel) {\n        this.events.animationCancel.notify();\n      }\n    }\n    this.clearAnimation();\n  }\n  /**\n   * Returns `true` if this value is currently animating.\n   *\n   * @public\n   */\n  isAnimating() {\n    return !!this.animation;\n  }\n  clearAnimation() {\n    this.animation = void 0;\n  }\n  /**\n   * Destroy and clean up subscribers to this `MotionValue`.\n   *\n   * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n   * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n   * created a `MotionValue` via the `motionValue` function.\n   *\n   * @public\n   */\n  destroy() {\n    this.dependents?.clear();\n    this.events.destroy?.notify();\n    this.clearListeners();\n    this.stop();\n    if (this.stopPassiveEffect) {\n      this.stopPassiveEffect();\n    }\n  }\n};\nfunction motionValue(init, options) {\n  return new MotionValue(init, options);\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs\nfunction resolveTransition(transition, parentTransition) {\n  if (transition?.inherit && parentTransition) {\n    const { inherit: _, ...rest } = transition;\n    return { ...parentTransition, ...rest };\n  }\n  return transition;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs\nfunction getValueTransition(transition, key) {\n  const valueTransition = transition?.[key] ?? transition?.[\"default\"] ?? transition;\n  if (valueTransition !== transition) {\n    return resolveTransition(valueTransition, transition);\n  }\n  return valueTransition;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs\nvar underDampedSpring = {\n  type: \"spring\",\n  stiffness: 500,\n  damping: 25,\n  restSpeed: 10\n};\nvar criticallyDampedSpring = (target) => ({\n  type: \"spring\",\n  stiffness: 550,\n  damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n  restSpeed: 10\n});\nvar keyframesTransition = {\n  type: \"keyframes\",\n  duration: 0.8\n};\nvar ease = {\n  type: \"keyframes\",\n  ease: [0.25, 0.1, 0.35, 1],\n  duration: 0.3\n};\nvar getDefaultTransition = (valueKey, { keyframes: keyframes2 }) => {\n  if (keyframes2.length > 2) {\n    return keyframesTransition;\n  } else if (transformProps.has(valueKey)) {\n    return valueKey.startsWith(\"scale\") ? criticallyDampedSpring(keyframes2[1]) : underDampedSpring;\n  }\n  return ease;\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs\nvar orchestrationKeys = /* @__PURE__ */ new Set([\n  \"when\",\n  \"delay\",\n  \"delayChildren\",\n  \"staggerChildren\",\n  \"staggerDirection\",\n  \"repeat\",\n  \"repeatType\",\n  \"repeatDelay\",\n  \"from\",\n  \"elapsed\"\n]);\nfunction isTransitionDefined(transition) {\n  for (const key in transition) {\n    if (!orchestrationKeys.has(key))\n      return true;\n  }\n  return false;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs\nvar animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {\n  const valueTransition = getValueTransition(transition, name) || {};\n  const delay2 = valueTransition.delay || transition.delay || 0;\n  let { elapsed = 0 } = transition;\n  elapsed = elapsed - secondsToMilliseconds(delay2);\n  const options = {\n    keyframes: Array.isArray(target) ? target : [null, target],\n    ease: \"easeOut\",\n    velocity: value.getVelocity(),\n    ...valueTransition,\n    delay: -elapsed,\n    onUpdate: (v) => {\n      value.set(v);\n      valueTransition.onUpdate && valueTransition.onUpdate(v);\n    },\n    onComplete: () => {\n      onComplete();\n      valueTransition.onComplete && valueTransition.onComplete();\n    },\n    name,\n    motionValue: value,\n    element: isHandoff ? void 0 : element,\n    hasOnUpdate: !!valueTransition.onUpdate\n  };\n  if (!isTransitionDefined(valueTransition)) {\n    Object.assign(options, getDefaultTransition(name, options));\n  }\n  options.duration && (options.duration = secondsToMilliseconds(options.duration));\n  options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));\n  if (options.from !== void 0) {\n    options.keyframes[0] = options.from;\n  }\n  let shouldSkip = false;\n  if (options.type === false || options.duration === 0 && !options.repeatDelay) {\n    makeAnimationInstant(options);\n    if (options.delay === 0) {\n      shouldSkip = true;\n    }\n  }\n  if (MotionGlobalConfig.instantAnimations || MotionGlobalConfig.skipAnimations || element?.shouldSkipAnimations || valueTransition.skipAnimations) {\n    shouldSkip = true;\n    makeAnimationInstant(options);\n    options.delay = 0;\n  }\n  options.allowFlatten = !valueTransition.type && !valueTransition.ease;\n  if (shouldSkip && !isHandoff && value.get() !== void 0) {\n    const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n    if (finalKeyframe !== void 0) {\n      frame.update(() => {\n        options.onUpdate(finalKeyframe);\n        options.onComplete();\n      });\n      return;\n    }\n  }\n  return valueTransition.isSync ? new JSAnimation(options) : new AsyncMotionValueAnimation(options);\n};\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/arc.mjs\nvar MIN_LAYOUT_DISTANCE = 20;\nfunction bezierPoint(t, origin, control, target) {\n  const inv = 1 - t;\n  return inv * inv * origin + 2 * inv * t * control + t * t * target;\n}\nfunction bezierTangentAngle(t, originX, controlX, targetX, originY, controlY, targetY) {\n  const dx = 2 * (1 - t) * (controlX - originX) + 2 * t * (targetX - controlX);\n  const dy = 2 * (1 - t) * (controlY - originY) + 2 * t * (targetY - controlY);\n  return Math.atan2(dy, dx) * (180 / Math.PI);\n}\nfunction computeArcControlPoint(fromX, fromY, toX, toY, strength, peak) {\n  const deltaX = toX - fromX;\n  const deltaY = toY - fromY;\n  const distance2 = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n  if (distance2 > 0) {\n    const normalPerpX = -deltaY / distance2;\n    const normalPerpY = deltaX / distance2;\n    const desiredHeight = strength * distance2;\n    return {\n      x: fromX + deltaX * peak + normalPerpX * desiredHeight,\n      y: fromY + deltaY * peak + normalPerpY * desiredHeight\n    };\n  }\n  return { x: fromX, y: fromY };\n}\nfunction createArcPath({ strength = 0.5, peak = 0.5, direction, rotate: rotate2 = false } = {}) {\n  const rotationScale = rotate2 === true ? 1 : typeof rotate2 === \"number\" ? rotate2 : 0;\n  let prevBulgeSign;\n  const createInterpolator = (from, to) => {\n    const dx = to.x - from.x;\n    const dy = to.y - from.y;\n    let signed;\n    if (direction === \"cw\") {\n      signed = -strength;\n    } else if (direction === \"ccw\") {\n      signed = strength;\n    } else {\n      const dom = Math.abs(dx) >= Math.abs(dy) ? dx : dy;\n      signed = dom < 0 ? -strength : strength;\n    }\n    let control = computeArcControlPoint(from.x, from.y, to.x, to.y, signed, peak);\n    if (direction === void 0) {\n      const isVertical = Math.abs(dx) < Math.abs(dy);\n      const midX = from.x + dx * peak;\n      const midY = from.y + dy * peak;\n      const bulgeSign = isVertical ? Math.sign(control.x - midX) : Math.sign(control.y - midY);\n      if (prevBulgeSign !== void 0 && bulgeSign !== 0 && bulgeSign !== prevBulgeSign) {\n        signed = -signed;\n        control = computeArcControlPoint(from.x, from.y, to.x, to.y, signed, peak);\n      } else if (bulgeSign !== 0) {\n        prevBulgeSign = bulgeSign;\n      }\n    }\n    const tangent0 = rotationScale ? bezierTangentAngle(0, from.x, control.x, to.x, from.y, control.y, to.y) : 0;\n    const tangent1 = rotationScale ? bezierTangentAngle(1, from.x, control.x, to.x, from.y, control.y, to.y) : 0;\n    const tangentDelta = rotationScale ? wrap(-180, 180, tangent1 - tangent0) : 0;\n    return (t) => {\n      const out = {\n        x: bezierPoint(t, from.x, control.x, to.x),\n        y: bezierPoint(t, from.y, control.y, to.y)\n      };\n      if (rotationScale) {\n        const raw = bezierTangentAngle(t, from.x, control.x, to.x, from.y, control.y, to.y);\n        const baseline = tangent0 + tangentDelta * t;\n        out.rotate = wrap(-180, 180, raw - baseline) * rotationScale;\n      }\n      return out;\n    };\n  };\n  return createInterpolator;\n}\nfunction arc(options = {}) {\n  const sample = createArcPath(options);\n  const path = {\n    interpolateProjection(delta) {\n      const tx = delta.x.translate;\n      const ty = delta.y.translate;\n      if (Math.sqrt(tx * tx + ty * ty) < MIN_LAYOUT_DISTANCE) {\n        return void 0;\n      }\n      return sample({ x: tx, y: ty }, { x: 0, y: 0 });\n    },\n    animateVisualElement(visualElement, target, transition, delay2, animations2) {\n      if (!(\"x\" in target || \"y\" in target))\n        return;\n      const xValue = visualElement.getValue(\"x\", visualElement.latestValues[\"x\"] ?? 0);\n      const yValue = visualElement.getValue(\"y\", visualElement.latestValues[\"y\"] ?? 0);\n      const xRaw = target.x;\n      const yRaw = target.y;\n      const xFrom = (Array.isArray(xRaw) && xRaw[0] != null ? xRaw[0] : xValue?.get()) ?? 0;\n      const yFrom = (Array.isArray(yRaw) && yRaw[0] != null ? yRaw[0] : yValue?.get()) ?? 0;\n      const xTo = Array.isArray(xRaw) ? xRaw[xRaw.length - 1] : xRaw ?? xFrom;\n      const yTo = Array.isArray(yRaw) ? yRaw[yRaw.length - 1] : yRaw ?? yFrom;\n      const interpolate2 = sample({ x: xFrom, y: yFrom }, { x: xTo, y: yTo });\n      const pathRotationValue = interpolate2(0).rotate !== void 0 ? visualElement.getValue(\"pathRotation\", 0) : void 0;\n      const pathTransition = {\n        delay: delay2,\n        ...getValueTransition(transition || {}, \"x\")\n      };\n      delete pathTransition.path;\n      const progress2 = motionValue(0);\n      progress2.start(animateMotionValue(\"\", progress2, [0, 1e3], {\n        ...pathTransition,\n        isSync: true,\n        velocity: 0,\n        onUpdate: (latest) => {\n          const point = interpolate2(latest / 1e3);\n          xValue?.set(point.x);\n          yValue?.set(point.y);\n          if (pathRotationValue && point.rotate !== void 0) {\n            pathRotationValue.set(point.rotate);\n          }\n        },\n        onComplete: () => {\n          xValue?.set(xTo);\n          yValue?.set(yTo);\n          pathRotationValue?.set(0);\n        },\n        // Interrupt/cancel must clear our additive contribution\n        // so it can't linger on top of the user's `rotate`.\n        onStop: () => pathRotationValue?.set(0),\n        onCancel: () => pathRotationValue?.set(0)\n      }));\n      if (progress2.animation) {\n        animations2.push(progress2.animation);\n      }\n      delete target.x;\n      delete target.y;\n    }\n  };\n  return path;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs\nvar splitCSSVariableRegex = (\n  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words\n  /^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u\n);\nfunction parseCSSVariable(current2) {\n  const match = splitCSSVariableRegex.exec(current2);\n  if (!match)\n    return [,];\n  const [, token1, token2, fallback] = match;\n  return [`--${token1 ?? token2}`, fallback];\n}\nvar maxDepth = 4;\nfunction getVariableValue(current2, element, depth = 1) {\n  invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property \"${current2}\". This may indicate a circular fallback dependency.`, \"max-css-var-depth\");\n  const [token, fallback] = parseCSSVariable(current2);\n  if (!token)\n    return;\n  const resolved = window.getComputedStyle(element).getPropertyValue(token);\n  if (resolved) {\n    const trimmed = resolved.trim();\n    return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;\n  }\n  return isCSSVariableToken(fallback) ? getVariableValue(fallback, element, depth + 1) : fallback;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs\nfunction getValueState(visualElement) {\n  const state = [{}, {}];\n  visualElement?.values.forEach((value, key) => {\n    state[0][key] = value.get();\n    state[1][key] = value.getVelocity();\n  });\n  return state;\n}\nfunction resolveVariantFromProps(props, definition, custom, visualElement) {\n  const resolveFunction = (def) => typeof def === \"function\" ? def(custom !== void 0 ? custom : props.custom, ...getValueState(visualElement)) : def;\n  definition = resolveFunction(definition);\n  if (typeof definition === \"string\") {\n    definition = props.variants && props.variants[definition];\n  }\n  return resolveFunction(definition);\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs\nfunction resolveVariant(visualElement, definition, custom) {\n  return resolveVariantFromProps(visualElement.getProps(), definition, custom, visualElement);\n}\nvar getTypeCustom = (visualElement, type) => type === \"exit\" ? visualElement.presenceContext?.custom : void 0;\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/keys-position.mjs\nvar positionalKeys = /* @__PURE__ */ new Set([\n  \"width\",\n  \"height\",\n  \"top\",\n  \"left\",\n  \"right\",\n  \"bottom\",\n  ...transformPropOrder\n]);\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs\nvar isKeyframesTarget = (v) => {\n  return Array.isArray(v);\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/setters.mjs\nfunction setMotionValue(visualElement, key, value) {\n  if (visualElement.hasValue(key)) {\n    visualElement.getValue(key).set(value);\n  } else {\n    visualElement.addValue(key, motionValue(value));\n  }\n}\nfunction resolveFinalValueInKeyframes(v) {\n  return isKeyframesTarget(v) ? v[v.length - 1] || 0 : v;\n}\nfunction setTarget(visualElement, definition) {\n  const resolved = resolveVariant(visualElement, definition);\n  let { transitionEnd = {}, transition = {}, ...target } = resolved || {};\n  target = { ...target, ...transitionEnd };\n  for (const key in target) {\n    const value = resolveFinalValueInKeyframes(target[key]);\n    setMotionValue(visualElement, key, value);\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs\nvar isMotionValue = (value) => Boolean(value && value.getVelocity);\n\n// ../../../node_modules/motion-dom/dist/es/value/will-change/is.mjs\nfunction isWillChangeMotionValue(value) {\n  return Boolean(isMotionValue(value) && value.add);\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs\nfunction addValueToWillChange(visualElement, key) {\n  const willChange = visualElement.getValue(\"willChange\");\n  if (isWillChangeMotionValue(willChange)) {\n    return willChange.add(key);\n  } else if (!willChange && MotionGlobalConfig.WillChange) {\n    const newWillChange = new MotionGlobalConfig.WillChange(\"auto\");\n    visualElement.addValue(\"willChange\", newWillChange);\n    newWillChange.add(key);\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs\nfunction camelToDash(str) {\n  return str.replace(/([A-Z])/g, (match) => `-${match.toLowerCase()}`);\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs\nvar optimizedAppearDataId = \"framerAppearId\";\nvar optimizedAppearDataAttribute = \"data-\" + camelToDash(optimizedAppearDataId);\n\n// ../../../node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs\nfunction getOptimisedAppearId(visualElement) {\n  return visualElement.props[optimizedAppearDataAttribute];\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs\nvar isBrowser2 = typeof window !== \"undefined\";\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n  const shouldBlock = key in protectedKeys && !needsAnimating[key];\n  needsAnimating[key] = false;\n  return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay: delay2 = 0, transitionOverride, type } = {}) {\n  let { transition, transitionEnd, ...target } = targetAndTransition;\n  const defaultTransition = visualElement.getDefaultTransition();\n  transition = transition ? resolveTransition(transition, defaultTransition) : defaultTransition;\n  const reduceMotion = transition?.reduceMotion;\n  const skipAnimations = transition?.skipAnimations;\n  if (transitionOverride)\n    transition = transitionOverride;\n  const animations2 = [];\n  const animationTypeState = type && visualElement.animationState?.getState()[type];\n  const path = transition?.path;\n  if (path) {\n    path.animateVisualElement(visualElement, target, transition, delay2, animations2);\n  }\n  for (const key in target) {\n    const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);\n    const valueTarget = target[key];\n    if (valueTarget === void 0 || animationTypeState && shouldBlockAnimation(animationTypeState, key)) {\n      continue;\n    }\n    const valueTransition = {\n      delay: delay2,\n      ...getValueTransition(transition || {}, key)\n    };\n    if (skipAnimations)\n      valueTransition.skipAnimations = true;\n    const currentValue = value.get();\n    if (currentValue !== void 0 && !value.isAnimating() && !Array.isArray(valueTarget) && valueTarget === currentValue && !valueTransition.velocity) {\n      frame.update(() => value.set(valueTarget));\n      continue;\n    }\n    let isHandoff = false;\n    if (isBrowser2 && window.MotionHandoffAnimation) {\n      const appearId = getOptimisedAppearId(visualElement);\n      if (appearId) {\n        const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n        if (startTime !== null) {\n          valueTransition.startTime = startTime;\n          isHandoff = true;\n        }\n      }\n    }\n    addValueToWillChange(visualElement, key);\n    const shouldReduceMotion = reduceMotion ?? visualElement.shouldReduceMotion;\n    value.start(animateMotionValue(key, value, valueTarget, shouldReduceMotion && positionalKeys.has(key) ? { type: false } : valueTransition, visualElement, isHandoff));\n    const animation = value.animation;\n    if (animation) {\n      animations2.push(animation);\n    }\n  }\n  if (transitionEnd) {\n    const applyTransitionEnd = () => frame.update(() => {\n      transitionEnd && setTarget(visualElement, transitionEnd);\n    });\n    if (animations2.length) {\n      Promise.all(animations2).then(applyTransitionEnd);\n    } else {\n      applyTransitionEnd();\n    }\n  }\n  return animations2;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs\nfunction animateVariant(visualElement, variant, options = {}) {\n  const resolved = resolveVariant(visualElement, variant, getTypeCustom(visualElement, options.type));\n  const transition = options.transitionOverride || (resolved?.transition ?? (visualElement.getDefaultTransition() || {}));\n  const getAnimation = () => Promise.all(resolved ? animateTarget(visualElement, resolved, options) : []);\n  const getChildAnimations = (delay2 = 0) => {\n    const { variantChildren } = visualElement;\n    const { delayChildren = 0, staggerChildren, staggerDirection } = transition;\n    const animations2 = [];\n    variantChildren?.forEach((child) => {\n      child.notify(\"AnimationStart\", variant);\n      animations2.push(animateVariant(child, variant, {\n        ...options,\n        delay: delay2 + (typeof delayChildren === \"function\" ? 0 : delayChildren) + calcChildStagger(variantChildren, child, delayChildren, staggerChildren, staggerDirection)\n      }).then(() => child.notify(\"AnimationComplete\", variant)));\n    });\n    return Promise.all(animations2);\n  };\n  const { when } = transition;\n  return when ? when === \"beforeChildren\" ? getAnimation().then(() => getChildAnimations()) : getChildAnimations().then(getAnimation) : Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs\nfunction animateVisualElement(visualElement, definition, options = {}) {\n  visualElement.notify(\"AnimationStart\", definition);\n  const animation = Array.isArray(definition) ? Promise.all(definition.map((variant) => animateVariant(visualElement, variant, options))) : typeof definition === \"string\" ? animateVariant(visualElement, definition, options) : Promise.all(animateTarget(visualElement, resolveVariant(visualElement, definition, options.custom), options));\n  return animation.then(() => {\n    visualElement.notify(\"AnimationComplete\", definition);\n  });\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/types/test.mjs\nvar testValueType = (v) => (type) => type.test(v);\n\n// ../../../node_modules/motion-dom/dist/es/value/types/auto.mjs\nvar auto = {\n  test: (v) => v === \"auto\",\n  parse: (v) => v\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/types/dimensions.mjs\nvar dimensionValueTypes = [number, px, percent, degrees, vw, vh, auto];\nvar findDimensionValueType = (v) => dimensionValueTypes.find(testValueType(v));\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs\nfunction isNone(value) {\n  if (typeof value === \"number\") {\n    return value === 0;\n  } else if (value !== null) {\n    return value === \"none\" || value === \"0\" || isZeroValueString(value);\n  } else {\n    return true;\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs\nvar invalidTemplates = /* @__PURE__ */ new Set([\"auto\", \"none\", \"0\"]);\nfunction makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {\n  let i = 0;\n  let animatableTemplate = void 0;\n  while (i < unresolvedKeyframes.length && !animatableTemplate) {\n    const keyframe = unresolvedKeyframes[i];\n    if (typeof keyframe === \"string\" && !invalidTemplates.has(keyframe) && hasComplexValues(keyframe)) {\n      animatableTemplate = unresolvedKeyframes[i];\n    }\n    i++;\n  }\n  if (animatableTemplate && name) {\n    for (const noneIndex of noneKeyframeIndexes) {\n      if (unresolvedKeyframes[noneIndex] === animatableTemplate)\n        continue;\n      unresolvedKeyframes[noneIndex] = getAnimatableNone2(name, animatableTemplate);\n    }\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs\nvar DOMKeyframesResolver = class extends KeyframeResolver {\n  constructor(unresolvedKeyframes, onComplete, name, motionValue2, element) {\n    super(unresolvedKeyframes, onComplete, name, motionValue2, element, true);\n  }\n  /**\n   * Keyframes that don't need reading from the DOM, or measuring,\n   * resolve straight away rather than in the frame loop's batched read.\n   */\n  scheduleResolve() {\n    if (this.canReadNow()) {\n      this.readKeyframes();\n      if (!this.needsMeasurement)\n        return this.complete();\n    }\n    super.scheduleResolve();\n  }\n  canReadNow() {\n    const { unresolvedKeyframes, element, motionValue: motionValue2 } = this;\n    const origin = unresolvedKeyframes[0] ?? motionValue2?.get();\n    if (!element?.current || origin === void 0)\n      return false;\n    for (let i = 0; i < unresolvedKeyframes.length; i++) {\n      if (containsCSSVariable(i ? unresolvedKeyframes[i] : origin)) {\n        return false;\n      }\n    }\n    return true;\n  }\n  readKeyframes() {\n    const { unresolvedKeyframes, element, name } = this;\n    if (!element || !element.current)\n      return;\n    super.readKeyframes();\n    for (let i = 0; i < unresolvedKeyframes.length; i++) {\n      let keyframe = unresolvedKeyframes[i];\n      if (typeof keyframe === \"string\") {\n        keyframe = keyframe.trim();\n        if (isCSSVariableToken(keyframe)) {\n          const resolved = getVariableValue(keyframe, element.current);\n          if (resolved !== void 0) {\n            unresolvedKeyframes[i] = resolved;\n          }\n          if (i === unresolvedKeyframes.length - 1) {\n            this.finalKeyframe = keyframe;\n          }\n        }\n      }\n    }\n    this.resolveNoneKeyframes();\n    if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n      return;\n    }\n    const [origin, target] = unresolvedKeyframes;\n    if (typeof origin === \"number\" && typeof target === \"number\")\n      return;\n    const originType = findDimensionValueType(origin);\n    const targetType = findDimensionValueType(target);\n    const originHasVar = containsCSSVariable(origin);\n    const targetHasVar = containsCSSVariable(target);\n    if (originHasVar !== targetHasVar && positionalValues[name]) {\n      this.needsMeasurement = true;\n      return;\n    }\n    if (originType === targetType)\n      return;\n    if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n      for (let i = 0; i < unresolvedKeyframes.length; i++) {\n        const value = unresolvedKeyframes[i];\n        if (typeof value === \"string\") {\n          unresolvedKeyframes[i] = parseFloat(value);\n        }\n      }\n    } else if (positionalValues[name]) {\n      this.needsMeasurement = true;\n    }\n  }\n  resolveNoneKeyframes() {\n    const { unresolvedKeyframes, name } = this;\n    const noneKeyframeIndexes = [];\n    for (let i = 0; i < unresolvedKeyframes.length; i++) {\n      if (unresolvedKeyframes[i] === null || isNone(unresolvedKeyframes[i])) {\n        noneKeyframeIndexes.push(i);\n      }\n    }\n    if (noneKeyframeIndexes.length) {\n      makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n    }\n  }\n  measure() {\n    const { element, name } = this;\n    return positionalValues[name](window.getComputedStyle(element.current), () => element.measureViewportBox());\n  }\n  measureInitialState() {\n    const { element, unresolvedKeyframes, name } = this;\n    if (!element || !element.current)\n      return;\n    if (name === \"height\") {\n      this.suspendedScrollY = window.pageYOffset;\n    }\n    this.measuredOrigin = this.measure();\n    unresolvedKeyframes[0] = this.measuredOrigin;\n    const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n    if (measureKeyframe !== void 0) {\n      this.motionValue?.jump(measureKeyframe, false);\n    }\n  }\n  measureEndState() {\n    const { element, unresolvedKeyframes } = this;\n    if (!element || !element.current)\n      return;\n    this.motionValue?.jump(this.measuredOrigin, false);\n    const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n    const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n    unresolvedKeyframes[finalKeyframeIndex] = this.measure();\n    if (finalKeyframe !== null && this.finalKeyframe === void 0) {\n      this.finalKeyframe = finalKeyframe;\n    }\n    if (this.removedTransforms?.length) {\n      this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n        element.getValue(unsetTransformName).set(unsetTransformValue);\n      });\n    }\n    this.resolveNoneKeyframes();\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/utils/border-radius.mjs\nvar cornerRadiusProps = [\n  \"borderTopLeftRadius\",\n  \"borderTopRightRadius\",\n  \"borderBottomRightRadius\",\n  \"borderBottomLeftRadius\"\n];\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/utils/px-values.mjs\nvar pxValues = /* @__PURE__ */ new Set([\n  // Border props\n  \"borderWidth\",\n  \"borderTopWidth\",\n  \"borderRightWidth\",\n  \"borderBottomWidth\",\n  \"borderLeftWidth\",\n  \"borderRadius\",\n  ...cornerRadiusProps,\n  // Positioning props\n  \"width\",\n  \"maxWidth\",\n  \"height\",\n  \"maxHeight\",\n  \"top\",\n  \"right\",\n  \"bottom\",\n  \"left\",\n  \"inset\",\n  \"insetBlock\",\n  \"insetBlockStart\",\n  \"insetBlockEnd\",\n  \"insetInline\",\n  \"insetInlineStart\",\n  \"insetInlineEnd\",\n  // Spacing props\n  \"padding\",\n  \"paddingTop\",\n  \"paddingRight\",\n  \"paddingBottom\",\n  \"paddingLeft\",\n  \"paddingBlock\",\n  \"paddingBlockStart\",\n  \"paddingBlockEnd\",\n  \"paddingInline\",\n  \"paddingInlineStart\",\n  \"paddingInlineEnd\",\n  \"margin\",\n  \"marginTop\",\n  \"marginRight\",\n  \"marginBottom\",\n  \"marginLeft\",\n  \"marginBlock\",\n  \"marginBlockStart\",\n  \"marginBlockEnd\",\n  \"marginInline\",\n  \"marginInlineStart\",\n  \"marginInlineEnd\",\n  // Typography\n  \"fontSize\",\n  // Misc\n  \"backgroundPositionX\",\n  \"backgroundPositionY\"\n]);\n\n// ../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs\nfunction applyPxDefaults(keyframes2, name) {\n  for (let i = 0; i < keyframes2.length; i++) {\n    if (typeof keyframes2[i] === \"number\" && pxValues.has(name)) {\n      keyframes2[i] = keyframes2[i] + \"px\";\n    }\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/easing/is-supported.mjs\nfunction isWaapiSupportedEasing(easing) {\n  return Boolean(typeof easing === \"function\" && supportsLinearEasing() || !easing || typeof easing === \"string\" && (easing in supportedWaapiEasing || supportsLinearEasing()) || isBezierDefinition(easing) || Array.isArray(easing) && easing.every(isWaapiSupportedEasing));\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/waapi/supports/partial-keyframes.mjs\nvar supportsPartialKeyframes = /* @__PURE__ */ memo(() => {\n  try {\n    document.createElement(\"div\").animate({ opacity: [1] });\n  } catch (e) {\n    return false;\n  }\n  return true;\n});\n\n// ../../../node_modules/motion-dom/dist/es/animation/animate/effects.mjs\nvar effects = [];\nfunction addEffect(effect) {\n  invariant(typeof effect.test === \"function\" && typeof effect.read === \"function\", \"Effects passed to animate.addEffect() need test() and read().\", \"effect-missing-test\");\n  removeEffect(effect);\n  effects.unshift(effect);\n}\nfunction removeEffect(effect) {\n  removeItem(effects, effect);\n}\nfunction findEffect(subject) {\n  return effects.find((effect) => effect.test(subject));\n}\nfunction animateValues(getValue, keyframes2, transition = {}, element) {\n  const animations2 = [];\n  const { velocity } = transition;\n  const reduceMotion = transition.reduceMotion ?? element?.shouldReduceMotion;\n  for (const key in keyframes2) {\n    if (key === \"transition\" || key === \"transitionEnd\")\n      continue;\n    const target = keyframes2[key];\n    if (target === void 0)\n      continue;\n    const value = getValue(key);\n    const current2 = value.get();\n    if (current2 !== void 0 && !value.isAnimating() && !Array.isArray(target) && target === current2 && !velocity) {\n      frame.update(() => value.set(target));\n      continue;\n    }\n    value.start(animateMotionValue(key, value, target, reduceMotion && positionalKeys.has(key) ? { type: false } : transition, element));\n    value.animation && animations2.push(value.animation);\n  }\n  const { transitionEnd } = keyframes2;\n  if (transitionEnd) {\n    const applyTransitionEnd = () => frame.update(() => {\n      for (const key in transitionEnd) {\n        getValue(key).set(transitionEnd[key]);\n      }\n    });\n    animations2.length ? Promise.all(animations2).then(applyTransitionEnd) : applyTransitionEnd();\n  }\n  return animations2;\n}\nfunction animateEffectSubject(effect, subject, keyframes2, transition, element) {\n  return animateValues((key) => {\n    let value = effect.get(subject, key);\n    if (!value) {\n      let initial;\n      if (!element) {\n        const target = keyframes2[key];\n        initial = firstKeyframe(target) ?? effect.read(subject, key, target);\n        invariant(initial !== void 0, `\"${key}\" can't be read from the animated subject. Provide [from, to] keyframes.`, \"effect-unreadable-value\");\n      }\n      value = motionValue(initial, { owner: element });\n      effect(subject, { [key]: value });\n    }\n    return value;\n  }, keyframes2, transition, element);\n}\nfunction firstKeyframe(target) {\n  const first = Array.isArray(target) ? target[0] : void 0;\n  return first === null ? void 0 : first;\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/is-html-element.mjs\nfunction isHTMLElement(element) {\n  return isObject(element) && \"offsetHeight\" in element && !(\"ownerSVGElement\" in element);\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/is-svg-element.mjs\nfunction isSVGElement(element) {\n  return isObject(element) && \"ownerSVGElement\" in element;\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/resolve-elements.mjs\nfunction resolveElements(elementOrSelector, scope, selectorCache) {\n  if (elementOrSelector == null) {\n    return [];\n  }\n  if (elementOrSelector instanceof EventTarget) {\n    return [elementOrSelector];\n  } else if (typeof elementOrSelector === \"string\") {\n    let root = document;\n    if (scope) {\n      root = scope.current;\n    }\n    const elements = selectorCache?.[elementOrSelector] ?? root.querySelectorAll(elementOrSelector);\n    return elements ? Array.from(elements) : [];\n  }\n  return Array.from(elementOrSelector).filter((element) => element != null);\n}\n\n// ../../../node_modules/motion-dom/dist/es/effects/MotionValueState.mjs\nvar MotionValueState = class {\n  /**\n   * @param step - The frameloop step renders are scheduled in. Defaults\n   * to `frame.render`. Effects that feed a render loop running in\n   * `frame.render` (GPU scenes) should write in `frame.preRender`.\n   */\n  constructor(step = frame.render) {\n    this.step = step;\n    this.values = /* @__PURE__ */ new Map();\n    this.pending = [];\n    this.numPending = 0;\n    this.flush = () => {\n      const { pending, numPending } = this;\n      this.numPending = 0;\n      for (let i = 0; i < numPending; i++)\n        pending[i]();\n    };\n  }\n  /**\n   * @param render - Writes the value to the subject. Renders read the\n   * motion value directly rather than a cached copy, so there is one\n   * place a value lives.\n   * @param computed - A value already in this state (e.g. `transform`)\n   * whose render should run whenever `value` changes.\n   */\n  set(name, value, render, computed) {\n    this.values.get(name)?.onRemove();\n    if (computed) {\n      for (const entry of this.values.values()) {\n        if (entry.value === computed)\n          render = entry.render;\n      }\n    }\n    const onChange = () => render && this.schedule(render);\n    value.get() !== void 0 && onChange();\n    const cancelOnChange = value.on(\"change\", onChange);\n    const onRemove = () => {\n      cancelOnChange();\n      render && !computed && this.cancel(render);\n      this.values.get(name)?.onRemove === onRemove && this.values.delete(name);\n    };\n    this.values.set(name, {\n      value,\n      render: computed ? void 0 : render,\n      onRemove\n    });\n    return onRemove;\n  }\n  get(name) {\n    return this.values.get(name)?.value;\n  }\n  /**\n   * Detach every value from this state and return them, so another\n   * renderer can take them over. The state stays cached by its effect,\n   * so the bound transforms are reset too rather than leaking into\n   * values bound later.\n   */\n  release() {\n    const values = /* @__PURE__ */ new Map();\n    this.values.forEach((entry, name) => {\n      values.set(name, entry.value);\n      entry.onRemove();\n    });\n    this.transformKeys = this.transformValues = void 0;\n    return values;\n  }\n  schedule(render) {\n    const { pending, numPending } = this;\n    for (let i = 0; i < numPending; i++) {\n      if (pending[i] === render)\n        return;\n    }\n    numPending || this.step(this.flush);\n    pending[this.numPending++] = render;\n  }\n  cancel(render) {\n    const { pending } = this;\n    for (let i = 0; i < this.numPending; i++) {\n      if (pending[i] === render) {\n        pending[i] = pending[--this.numPending];\n        return;\n      }\n    }\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs\nfunction createEffect(addValue, { step, ...options } = {}) {\n  const stateCache = /* @__PURE__ */ new WeakMap();\n  const effect = (subject, values) => {\n    const state = stateCache.get(subject) ?? new MotionValueState(step);\n    stateCache.set(subject, state);\n    const subscriptions = [];\n    for (const key in values) {\n      const value = values[key];\n      const remove = addValue(subject, state, key, value);\n      subscriptions.push(remove);\n    }\n    return () => {\n      for (const cancel of subscriptions)\n        cancel();\n    };\n  };\n  return Object.assign(effect, options, {\n    get: (subject, key) => stateCache.get(subject)?.get(key),\n    flush: (subject) => stateCache.get(subject)?.flush(),\n    state: (subject) => stateCache.get(subject)\n  });\n}\n\n// ../../../node_modules/motion-dom/dist/es/effects/utils/create-dom-effect.mjs\nfunction createSelectorEffect(subjectEffect) {\n  const effect = (subject, values) => {\n    const elements = resolveElements(subject);\n    const subscriptions = [];\n    for (const element of elements) {\n      const remove = subjectEffect(element, values);\n      subscriptions.push(remove);\n    }\n    return () => {\n      for (const remove of subscriptions)\n        remove();\n    };\n  };\n  const { test: test2, read: read2, get, flush, state } = subjectEffect;\n  return Object.assign(effect, {\n    test: test2,\n    read: read2,\n    get,\n    flush,\n    state\n  });\n}\n\n// ../../../node_modules/motion-dom/dist/es/effects/style/transform.mjs\nvar openers = {};\nfunction buildTransform2(state) {\n  let transform2 = \"\";\n  const { transformKeys: keys = [], transformValues: values = {} } = state;\n  for (let i = 0; i < keys.length; i++) {\n    const key = keys[i];\n    const value = values[key].getCurrent();\n    if (value === void 0)\n      continue;\n    const parsed = typeof value === \"number\" ? value : parseFloat(value);\n    if (parsed !== (key.startsWith(\"scale\") ? 1 : 0)) {\n      transform2 += (transform2 && \" \") + (openers[key] || (openers[key] = (translateAlias[key] || key) + \"(\")) + getValueAsType(value, transformValueTypes[key]) + \")\";\n    }\n  }\n  const pathRotation = state.get(\"pathRotation\")?.get();\n  if (pathRotation) {\n    transform2 += (transform2 && \" \") + \"rotate(\" + getValueAsType(pathRotation, transformValueTypes.pathRotation) + \")\";\n  }\n  return transform2 || \"none\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/effects/style/index.mjs\nvar originProps = /* @__PURE__ */ new Set([\"originX\", \"originY\", \"originZ\"]);\nvar styleValue = (state, key) => getValueAsType(state.get(key)?.get(), numberValueTypes[key]);\nvar addStyleValue = (element, state, key, value) => {\n  let render = void 0;\n  let computed = void 0;\n  if (transformProps.has(key)) {\n    if (key !== \"pathRotation\") {\n      const keys = state.transformKeys ?? (state.transformKeys = []);\n      (state.transformValues ?? (state.transformValues = {}))[key] = value;\n      if (!keys.includes(key)) {\n        keys.push(key);\n        keys.sort((a, b) => transformPropOrder.indexOf(a) - transformPropOrder.indexOf(b));\n      }\n    }\n    if (!state.get(\"transform\")) {\n      if (!isHTMLElement(element) && !state.get(\"transformBox\")) {\n        addStyleValue(element, state, \"transformBox\", new MotionValue(\"fill-box\"));\n      }\n      state.set(\"transform\", new MotionValue(\"none\"), () => {\n        transformGroups.get(element)?.check();\n        element.style.transform = buildTransform2(state);\n      });\n    }\n    computed = state.get(\"transform\");\n  } else if (originProps.has(key)) {\n    if (!state.get(\"transformOrigin\")) {\n      state.set(\"transformOrigin\", new MotionValue(\"\"), () => {\n        const originX = styleValue(state, \"originX\") ?? \"50%\";\n        const originY = styleValue(state, \"originY\") ?? \"50%\";\n        const originZ = styleValue(state, \"originZ\") ?? 0;\n        element.style.transformOrigin = `${originX} ${originY} ${originZ}`;\n      });\n    }\n    computed = state.get(\"transformOrigin\");\n  } else if (isCSSVar(key)) {\n    render = () => {\n      element.style.setProperty(key, value.getCurrent());\n    };\n  } else {\n    render = () => {\n      element.style[key] = getValueAsType(value.getCurrent(), numberValueTypes[key]);\n    };\n  }\n  return state.set(key, value, render, computed);\n};\nvar isStyleSubject = (subject) => isHTMLElement(subject) || isSVGElement(subject);\nvar readStyleValue = (element, key) => {\n  if (transformProps.has(key)) {\n    return readTransformValue(element, key);\n  }\n  const computedStyle = getComputedStyle(element);\n  const value = isCSSVar(key) ? computedStyle.getPropertyValue(key) : computedStyle[key];\n  return typeof value === \"string\" && value.trim() || 0;\n};\nvar styleSubjectEffect = /* @__PURE__ */ createEffect(addStyleValue, {\n  test: isStyleSubject,\n  read: readStyleValue\n});\nvar styleEffect = /* @__PURE__ */ createSelectorEffect(styleSubjectEffect);\n\n// ../../../node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs\nfunction buildHTMLStyles(state, latestValues, transformTemplate) {\n  const { style: style2, vars, transformOrigin } = state;\n  let hasTransform2 = false;\n  let hasTransformOrigin = false;\n  for (const key in latestValues) {\n    const value = latestValues[key];\n    if (transformProps.has(key)) {\n      hasTransform2 = true;\n      continue;\n    } else if (isCSSVariableName(key)) {\n      vars[key] = value;\n      continue;\n    } else {\n      const valueAsType = getValueAsType(value, numberValueTypes[key]);\n      if (key.startsWith(\"origin\")) {\n        hasTransformOrigin = true;\n        transformOrigin[key] = valueAsType;\n      } else {\n        style2[key] = valueAsType;\n      }\n    }\n  }\n  if (!latestValues.transform) {\n    if (hasTransform2 || transformTemplate) {\n      style2.transform = buildTransform(latestValues, state.transform, transformTemplate);\n    } else if (style2.transform) {\n      style2.transform = \"none\";\n    }\n  }\n  if (hasTransformOrigin) {\n    const { originX = \"50%\", originY = \"50%\", originZ = 0 } = transformOrigin;\n    style2.transformOrigin = `${originX} ${originY} ${originZ}`;\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/svg/utils/path.mjs\nvar dashKeys = {\n  offset: \"stroke-dashoffset\",\n  array: \"stroke-dasharray\"\n};\nvar camelKeys = {\n  offset: \"strokeDashoffset\",\n  array: \"strokeDasharray\"\n};\nfunction buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {\n  attrs.pathLength = 1;\n  const keys = useDashCase ? dashKeys : camelKeys;\n  attrs[keys.offset] = `${-offset}`;\n  attrs[keys.array] = `${length} ${spacing}`;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs\nvar cssStyleProperties = [\n  \"transform\",\n  \"opacity\",\n  \"clipPath\",\n  \"filter\",\n  \"offsetDistance\",\n  \"offsetPath\",\n  \"offsetRotate\",\n  \"offsetAnchor\"\n];\nfunction buildSVGAttrs(state, {\n  attrX,\n  attrY,\n  attrScale,\n  pathLength,\n  pathSpacing = 1,\n  pathOffset = 0,\n  // This is object creation, which we try to avoid per-frame.\n  ...latest\n}, isSVGTag2, transformTemplate, styleProp) {\n  buildHTMLStyles(state, latest, transformTemplate);\n  if (isSVGTag2) {\n    if (state.style.viewBox) {\n      state.attrs.viewBox = state.style.viewBox;\n    }\n    return;\n  }\n  state.attrs = state.style;\n  state.style = {};\n  const { attrs, style: style2 } = state;\n  for (const key of cssStyleProperties) {\n    if (attrs[key] !== void 0) {\n      style2[key] = attrs[key];\n      delete attrs[key];\n    }\n  }\n  if (style2.transform || attrs.transformOrigin) {\n    style2.transformOrigin = attrs.transformOrigin ?? \"50% 50%\";\n    delete attrs.transformOrigin;\n  }\n  if (style2.transform) {\n    style2.transformBox = styleProp?.transformBox ?? \"fill-box\";\n    delete attrs.transformBox;\n  }\n  if (attrX !== void 0)\n    attrs.x = attrX;\n  if (attrY !== void 0)\n    attrs.y = attrY;\n  if (attrScale !== void 0)\n    attrs.scale = attrScale;\n  if (pathLength !== void 0) {\n    buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/effects/attr/index.mjs\nfunction canSetAsProperty(element, name) {\n  if (!(name in element))\n    return false;\n  const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(element), name) || Object.getOwnPropertyDescriptor(element, name);\n  return descriptor && typeof descriptor.set === \"function\";\n}\nvar addAttrValue = (element, state, key, value, name = key) => {\n  const isProp = canSetAsProperty(element, name);\n  if (!isProp && (name.startsWith(\"data\") || name.startsWith(\"aria\"))) {\n    name = camelToDash(name);\n  }\n  const type = numberValueTypes[key] || numberValueTypes[name];\n  const render = isProp ? () => {\n    element[name] = getValueAsType(value.get(), numberValueTypes[key]);\n  } : () => {\n    const v = getValueAsType(value.get(), type);\n    if (v === null || v === void 0) {\n      element.removeAttribute(name);\n    } else {\n      element.setAttribute(name, String(v));\n    }\n  };\n  return state.set(key, value, render);\n};\nvar attrEffect = /* @__PURE__ */ createSelectorEffect(\n  /* @__PURE__ */ createEffect(addAttrValue)\n);\n\n// ../../../node_modules/motion-dom/dist/es/effects/svg/index.mjs\nfunction addSVGPathValue(element, state, key, value) {\n  frame.render(() => element.setAttribute(\"pathLength\", \"1\"));\n  if (key === \"pathOffset\") {\n    return state.set(key, value, () => {\n      const offset = value.get();\n      element.setAttribute(\"stroke-dashoffset\", `${-offset}`);\n    });\n  } else {\n    if (!state.get(\"stroke-dasharray\")) {\n      state.set(\"stroke-dasharray\", new MotionValue(\"1 1\"), () => {\n        const pathLength = state.get(\"pathLength\")?.get() ?? 1;\n        const pathSpacing = state.get(\"pathSpacing\")?.get();\n        element.setAttribute(\"stroke-dasharray\", `${pathLength} ${pathSpacing ?? 1 - Number(pathLength)}`);\n      });\n    }\n    return state.set(key, value, void 0, state.get(\"stroke-dasharray\"));\n  }\n}\nvar addSVGValue = (element, state, key, value) => {\n  if (key.startsWith(\"path\")) {\n    return addSVGPathValue(element, state, key, value);\n  } else if (key.startsWith(\"attr\")) {\n    return addAttrValue(element, state, key, value, convertAttrKey(key));\n  }\n  const handler = transformProps.has(key) || originProps.has(key) || isCSSVar(key) || key in element.style ? addStyleValue : addAttrValue;\n  return handler(element, state, key, value);\n};\nvar readSVGValue = (element, key) => {\n  if (transformProps.has(key)) {\n    return numberValueTypes[key]?.default || 0;\n  }\n  if (isCSSVar(key) || cssStyleProperties.includes(key)) {\n    return readStyleValue(element, key) || element.getAttribute(camelToDash(key)) || 0;\n  }\n  key = convertAttrKey(key);\n  return element.getAttribute(camelToDash(key)) ?? element.getAttribute(key) ?? void 0;\n};\nvar svgSubjectEffect = /* @__PURE__ */ createEffect(addSVGValue, {\n  test: isSVGElement,\n  read: readSVGValue\n});\nvar svgEffect = /* @__PURE__ */ createSelectorEffect(svgSubjectEffect);\nfunction convertAttrKey(key) {\n  return key.replace(/^attr([A-Z])/, (_, firstChar) => firstChar.toLowerCase());\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs\nfunction convertBoundingBoxToBox({ top, left, right, bottom }) {\n  return {\n    x: { min: left, max: right },\n    y: { min: top, max: bottom }\n  };\n}\nfunction convertBoxToBoundingBox({ x, y }) {\n  return { top: y.min, right: x.max, bottom: y.max, left: x.min };\n}\nfunction transformBoxPoints(point, transformPoint2) {\n  if (!transformPoint2)\n    return point;\n  const topLeft = transformPoint2({ x: point.left, y: point.top });\n  const bottomRight = transformPoint2({ x: point.right, y: point.bottom });\n  return {\n    top: topLeft.y,\n    left: topLeft.x,\n    bottom: bottomRight.y,\n    right: bottomRight.x\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs\nfunction isIdentityScale(scale2) {\n  return scale2 === void 0 || scale2 === 1;\n}\nfunction hasScale({ scale: scale2, scaleX: scaleX2, scaleY: scaleY2 }) {\n  return !isIdentityScale(scale2) || !isIdentityScale(scaleX2) || !isIdentityScale(scaleY2);\n}\nfunction hasTransform(values) {\n  return hasScale(values) || has2DTranslate(values) || values.z || values.rotate || values.rotateX || values.rotateY || values.skewX || values.skewY;\n}\nfunction has2DTranslate(values) {\n  return is2DTranslate(values.x) || is2DTranslate(values.y);\n}\nfunction is2DTranslate(value) {\n  return value && value !== \"0%\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs\nfunction scalePoint(point, scale2, originPoint) {\n  const distanceFromOrigin = point - originPoint;\n  const scaled = scale2 * distanceFromOrigin;\n  return originPoint + scaled;\n}\nfunction applyPointDelta(point, translate, scale2, originPoint, boxScale) {\n  if (boxScale !== void 0) {\n    point = scalePoint(point, boxScale, originPoint);\n  }\n  return scalePoint(point, scale2, originPoint) + translate;\n}\nfunction applyAxisDelta(axis, translate = 0, scale2 = 1, originPoint, boxScale) {\n  axis.min = applyPointDelta(axis.min, translate, scale2, originPoint, boxScale);\n  axis.max = applyPointDelta(axis.max, translate, scale2, originPoint, boxScale);\n}\nfunction applyBoxDelta(box, { x, y }) {\n  applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n  applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\nvar TREE_SCALE_SNAP_MIN = 0.999999999999;\nvar TREE_SCALE_SNAP_MAX = 1.0000000000001;\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n  const treeLength = treePath.length;\n  if (!treeLength)\n    return;\n  treeScale.x = treeScale.y = 1;\n  let node;\n  let delta;\n  for (let i = 0; i < treeLength; i++) {\n    node = treePath[i];\n    delta = node.projectionDelta;\n    const { visualElement } = node.options;\n    if (visualElement && visualElement.props.style && visualElement.props.style.display === \"contents\") {\n      continue;\n    }\n    if (isSharedTransition && node.options.layoutScroll && node.scroll && node !== node.root) {\n      translateAxis(box.x, -node.scroll.offset.x);\n      translateAxis(box.y, -node.scroll.offset.y);\n    }\n    if (delta) {\n      treeScale.x *= delta.x.scale;\n      treeScale.y *= delta.y.scale;\n      applyBoxDelta(box, delta);\n    }\n    if (isSharedTransition && hasTransform(node.latestValues)) {\n      transformBox(box, node.latestValues, node.layout?.layoutBox);\n    }\n  }\n  if (treeScale.x < TREE_SCALE_SNAP_MAX && treeScale.x > TREE_SCALE_SNAP_MIN) {\n    treeScale.x = 1;\n  }\n  if (treeScale.y < TREE_SCALE_SNAP_MAX && treeScale.y > TREE_SCALE_SNAP_MIN) {\n    treeScale.y = 1;\n  }\n}\nfunction translateAxis(axis, distance2) {\n  axis.min += distance2;\n  axis.max += distance2;\n}\nfunction transformAxis(axis, axisTranslate, axisScale, boxScale, axisOrigin = 0.5) {\n  const originPoint = mixNumber(axis.min, axis.max, axisOrigin);\n  applyAxisDelta(axis, axisTranslate, axisScale, originPoint, boxScale);\n}\nfunction resolveAxisTranslate(value, axis) {\n  if (typeof value === \"string\") {\n    return parseFloat(value) / 100 * (axis.max - axis.min);\n  }\n  return value;\n}\nfunction transformBox(box, transform2, sourceBox) {\n  const resolveBox = sourceBox ?? box;\n  transformAxis(box.x, resolveAxisTranslate(transform2.x, resolveBox.x), transform2.scaleX, transform2.scale, transform2.originX);\n  transformAxis(box.y, resolveAxisTranslate(transform2.y, resolveBox.y), transform2.scaleY, transform2.scale, transform2.originY);\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/utils/measure.mjs\nfunction measureViewportBox(instance, transformPoint2) {\n  return convertBoundingBoxToBox(transformBoxPoints(instance.getBoundingClientRect(), transformPoint2));\n}\nfunction measurePageBox(element, rootProjectionNode2, transformPagePoint) {\n  const viewportBox = measureViewportBox(element, transformPagePoint);\n  const { scroll: scroll2 } = rootProjectionNode2;\n  if (scroll2) {\n    translateAxis(viewportBox.x, scroll2.offset.x);\n    translateAxis(viewportBox.y, scroll2.offset.y);\n  }\n  return viewportBox;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/animate/element.mjs\nvar noProps = {};\nvar getElementEffect = (element) => isSVGElement(element) ? svgSubjectEffect : styleSubjectEffect;\nvar EffectSubject = class {\n  constructor(effect, current2) {\n    this.effect = effect;\n    this.current = current2;\n    this.KeyframeResolver = DOMKeyframesResolver;\n  }\n  getValue(key) {\n    return this.effect.get(this.current, key);\n  }\n  readValue(key, target) {\n    return this.effect.read(this.current, key, target);\n  }\n  render() {\n    this.effect.flush(this.current);\n  }\n  measureViewportBox() {\n    return measureViewportBox(this.current);\n  }\n  getProps() {\n    return noProps;\n  }\n};\nfunction animateElement(element, keyframes2, transition, visualElement) {\n  if (visualElement) {\n    return animateValues((key) => visualElement.getValue(key, null), keyframes2, transition, visualElement);\n  }\n  const effect = getElementEffect(element);\n  return animateEffectSubject(effect, element, keyframes2, transition, new EffectSubject(effect, element));\n}\nfunction handOffElementState(element, visualElement) {\n  const state = getElementEffect(element).state(element);\n  if (!state)\n    return;\n  const { transformKeys: transformKeys2 } = state;\n  state.release().forEach((value, key) => {\n    const derived = key === \"transformBox\" || key === \"transform\" && transformKeys2?.length;\n    derived || visualElement.addValue(key, value);\n  });\n}\n\n// ../../../node_modules/motion-dom/dist/es/effects/prop/index.mjs\nvar propEffect = /* @__PURE__ */ createEffect((subject, state, key, value) => {\n  return state.set(key, value, () => {\n    subject[key] = value.get();\n  });\n}, {\n  test: (subject) => isObject(subject),\n  read: (subject, key) => {\n    const value = subject[key];\n    return typeof value === \"string\" || typeof value === \"number\" ? value : void 0;\n  }\n});\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/microtask.mjs\nvar { schedule: microtask, cancel: cancelMicrotask } = /* @__PURE__ */ createRenderBatcher(queueMicrotask, false);\n\n// ../../../node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs\nvar isDragging = {\n  x: false,\n  y: false\n};\nfunction isDragActive() {\n  return isDragging.x || isDragging.y;\n}\n\n// ../../../node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs\nfunction setDragLock(axis) {\n  if (axis === \"x\" || axis === \"y\") {\n    if (isDragging[axis]) {\n      return null;\n    } else {\n      isDragging[axis] = true;\n      return () => {\n        isDragging[axis] = false;\n      };\n    }\n  } else {\n    if (isDragging.x || isDragging.y) {\n      return null;\n    } else {\n      isDragging.x = isDragging.y = true;\n      return () => {\n        isDragging.x = isDragging.y = false;\n      };\n    }\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/gestures/utils/setup.mjs\nfunction setupGesture(elementOrSelector, options) {\n  const elements = resolveElements(elementOrSelector);\n  const gestureAbortController = new AbortController();\n  const eventOptions = {\n    passive: true,\n    ...options,\n    signal: gestureAbortController.signal\n  };\n  const cancel = () => gestureAbortController.abort();\n  return [elements, eventOptions, cancel];\n}\n\n// ../../../node_modules/motion-dom/dist/es/gestures/hover.mjs\nfunction isValidHover(event) {\n  return !(event.pointerType === \"touch\" || isDragActive());\n}\nfunction hover(elementOrSelector, onHoverStart, options = {}) {\n  const [elements, eventOptions, cancel] = setupGesture(elementOrSelector, options);\n  elements.forEach((element) => {\n    let isPressed = false;\n    let deferredHoverEnd = false;\n    let hoverEndCallback;\n    const removePointerLeave = () => {\n      element.removeEventListener(\"pointerleave\", onPointerLeave);\n    };\n    const endHover = (event) => {\n      if (hoverEndCallback) {\n        hoverEndCallback(event);\n        hoverEndCallback = void 0;\n      }\n      removePointerLeave();\n    };\n    const onPointerUp = (event) => {\n      isPressed = false;\n      window.removeEventListener(\"pointerup\", onPointerUp);\n      window.removeEventListener(\"pointercancel\", onPointerUp);\n      if (deferredHoverEnd) {\n        deferredHoverEnd = false;\n        endHover(event);\n      }\n    };\n    const onPointerDown = () => {\n      isPressed = true;\n      window.addEventListener(\"pointerup\", onPointerUp, eventOptions);\n      window.addEventListener(\"pointercancel\", onPointerUp, eventOptions);\n    };\n    const onPointerLeave = (leaveEvent) => {\n      if (leaveEvent.pointerType === \"touch\")\n        return;\n      if (isPressed) {\n        deferredHoverEnd = true;\n        return;\n      }\n      endHover(leaveEvent);\n    };\n    const onPointerEnter = (enterEvent) => {\n      if (!isValidHover(enterEvent))\n        return;\n      deferredHoverEnd = false;\n      const onHoverEnd = onHoverStart(element, enterEvent);\n      if (typeof onHoverEnd !== \"function\")\n        return;\n      hoverEndCallback = onHoverEnd;\n      element.addEventListener(\"pointerleave\", onPointerLeave, eventOptions);\n    };\n    element.addEventListener(\"pointerenter\", onPointerEnter, eventOptions);\n    element.addEventListener(\"pointerdown\", onPointerDown, eventOptions);\n  });\n  return cancel;\n}\n\n// ../../../node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs\nvar isNodeOrChild = (parent, child) => {\n  if (!child) {\n    return false;\n  } else if (parent === child) {\n    return true;\n  } else {\n    return isNodeOrChild(parent, child.parentElement);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs\nvar isPrimaryPointer = (event) => {\n  if (event.pointerType === \"mouse\") {\n    return typeof event.button !== \"number\" || event.button <= 0;\n  } else {\n    return event.isPrimary !== false;\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs\nvar keyboardAccessibleElements = /* @__PURE__ */ new Set([\n  \"BUTTON\",\n  \"INPUT\",\n  \"SELECT\",\n  \"TEXTAREA\",\n  \"A\"\n]);\nfunction isElementKeyboardAccessible(element) {\n  return keyboardAccessibleElements.has(element.tagName) || element.isContentEditable === true;\n}\nvar textInputElements = /* @__PURE__ */ new Set([\"INPUT\", \"SELECT\", \"TEXTAREA\"]);\nfunction isElementTextInput(element) {\n  return textInputElements.has(element.tagName) || element.isContentEditable === true;\n}\n\n// ../../../node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs\nvar isPressing = /* @__PURE__ */ new WeakSet();\n\n// ../../../node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs\nfunction filterEvents(callback) {\n  return (event) => {\n    if (event.key !== \"Enter\")\n      return;\n    callback(event);\n  };\n}\nfunction firePointerEvent(target, type) {\n  target.dispatchEvent(new PointerEvent(\"pointer\" + type, { isPrimary: true, bubbles: true }));\n}\nvar enableKeyboardPress = (focusEvent, eventOptions) => {\n  const element = focusEvent.currentTarget;\n  if (!element)\n    return;\n  const handleKeydown = filterEvents(() => {\n    if (isPressing.has(element))\n      return;\n    firePointerEvent(element, \"down\");\n    const handleKeyup = filterEvents(() => {\n      firePointerEvent(element, \"up\");\n    });\n    const handleBlur = () => firePointerEvent(element, \"cancel\");\n    element.addEventListener(\"keyup\", handleKeyup, eventOptions);\n    element.addEventListener(\"blur\", handleBlur, eventOptions);\n  });\n  element.addEventListener(\"keydown\", handleKeydown, eventOptions);\n  element.addEventListener(\"blur\", () => element.removeEventListener(\"keydown\", handleKeydown), eventOptions);\n};\n\n// ../../../node_modules/motion-dom/dist/es/gestures/press/index.mjs\nfunction isValidPressEvent(event) {\n  return isPrimaryPointer(event) && !isDragActive();\n}\nvar claimedPointerDownEvents = /* @__PURE__ */ new WeakSet();\nfunction press(targetOrSelector, onPressStart, options = {}) {\n  const [targets, eventOptions, cancelEvents] = setupGesture(targetOrSelector, options);\n  const startPress = (startEvent) => {\n    const target = startEvent.currentTarget;\n    if (!isValidPressEvent(startEvent))\n      return;\n    if (claimedPointerDownEvents.has(startEvent))\n      return;\n    isPressing.add(target);\n    if (options.stopPropagation) {\n      claimedPointerDownEvents.add(startEvent);\n    }\n    const onPressEnd = onPressStart(target, startEvent);\n    const endEventOptions = { ...eventOptions, capture: true };\n    const onPointerEnd = (endEvent, success) => {\n      window.removeEventListener(\"pointerup\", onPointerUp, endEventOptions);\n      window.removeEventListener(\"pointercancel\", onPointerCancel, endEventOptions);\n      if (isPressing.has(target)) {\n        isPressing.delete(target);\n      }\n      if (!isValidPressEvent(endEvent)) {\n        return;\n      }\n      if (typeof onPressEnd === \"function\") {\n        onPressEnd(endEvent, { success });\n      }\n    };\n    const onPointerUp = (upEvent) => {\n      onPointerEnd(upEvent, target === window || target === document || options.useGlobalTarget || isNodeOrChild(target, upEvent.target));\n    };\n    const onPointerCancel = (cancelEvent) => {\n      onPointerEnd(cancelEvent, false);\n    };\n    window.addEventListener(\"pointerup\", onPointerUp, endEventOptions);\n    window.addEventListener(\"pointercancel\", onPointerCancel, endEventOptions);\n  };\n  targets.forEach((target) => {\n    const pointerDownTarget = options.useGlobalTarget ? window : target;\n    pointerDownTarget.addEventListener(\"pointerdown\", startPress, eventOptions);\n    if (isHTMLElement(target)) {\n      target.addEventListener(\"focus\", (event) => enableKeyboardPress(event, eventOptions));\n      if (!isElementKeyboardAccessible(target) && !target.hasAttribute(\"tabindex\")) {\n        target.tabIndex = 0;\n      }\n    }\n  });\n  return cancelEvents;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/dom/style-computed.mjs\nfunction getComputedStyle2(element, name) {\n  const computedStyle = window.getComputedStyle(element);\n  return isCSSVar(name) ? computedStyle.getPropertyValue(name) : computedStyle[name];\n}\n\n// ../../../node_modules/motion-dom/dist/es/resize/handle-element.mjs\nvar resizeHandlers = /* @__PURE__ */ new WeakMap();\nvar observer;\nvar getSize = (borderBoxAxis, svgAxis, htmlAxis) => (target, borderBoxSize) => {\n  if (borderBoxSize && borderBoxSize[0]) {\n    return borderBoxSize[0][borderBoxAxis + \"Size\"];\n  } else if (isSVGElement(target) && \"getBBox\" in target) {\n    return target.getBBox()[svgAxis];\n  } else {\n    return target[htmlAxis];\n  }\n};\nvar getWidth = /* @__PURE__ */ getSize(\"inline\", \"width\", \"offsetWidth\");\nvar getHeight = /* @__PURE__ */ getSize(\"block\", \"height\", \"offsetHeight\");\nfunction notifyTarget({ target, borderBoxSize }) {\n  resizeHandlers.get(target)?.forEach((handler) => {\n    handler(target, {\n      get width() {\n        return getWidth(target, borderBoxSize);\n      },\n      get height() {\n        return getHeight(target, borderBoxSize);\n      }\n    });\n  });\n}\nfunction notifyAll(entries) {\n  entries.forEach(notifyTarget);\n}\nfunction createResizeObserver() {\n  if (typeof ResizeObserver === \"undefined\")\n    return;\n  observer = new ResizeObserver(notifyAll);\n}\nfunction resizeElement(target, handler) {\n  if (!observer)\n    createResizeObserver();\n  const elements = resolveElements(target);\n  elements.forEach((element) => {\n    let elementHandlers = resizeHandlers.get(element);\n    if (!elementHandlers) {\n      elementHandlers = /* @__PURE__ */ new Set();\n      resizeHandlers.set(element, elementHandlers);\n    }\n    elementHandlers.add(handler);\n    observer?.observe(element);\n  });\n  return () => {\n    elements.forEach((element) => {\n      const elementHandlers = resizeHandlers.get(element);\n      elementHandlers?.delete(handler);\n      if (!elementHandlers?.size) {\n        observer?.unobserve(element);\n      }\n    });\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/resize/handle-window.mjs\nvar windowCallbacks = /* @__PURE__ */ new Set();\nvar windowResizeHandler;\nfunction createWindowResizeHandler() {\n  windowResizeHandler = () => {\n    const info = {\n      get width() {\n        return window.innerWidth;\n      },\n      get height() {\n        return window.innerHeight;\n      }\n    };\n    windowCallbacks.forEach((callback) => callback(info));\n  };\n  window.addEventListener(\"resize\", windowResizeHandler);\n}\nfunction resizeWindow(callback) {\n  windowCallbacks.add(callback);\n  if (!windowResizeHandler)\n    createWindowResizeHandler();\n  return () => {\n    windowCallbacks.delete(callback);\n    if (!windowCallbacks.size && typeof windowResizeHandler === \"function\") {\n      window.removeEventListener(\"resize\", windowResizeHandler);\n      windowResizeHandler = void 0;\n    }\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/resize/index.mjs\nfunction resize(a, b) {\n  return typeof a === \"function\" ? resizeWindow(a) : resizeElement(a, b);\n}\n\n// ../../../node_modules/motion-dom/dist/es/stats/buffer.mjs\nvar statsBuffer = {\n  value: null,\n  addProjectionMetrics: null\n};\n\n// ../../../node_modules/motion-dom/dist/es/stats/index.mjs\nfunction clearStatsBuffer() {\n  statsBuffer.value = null;\n  statsBuffer.addProjectionMetrics = null;\n}\nfunction recordStats() {\n  if (statsBuffer.value) {\n    clearStatsBuffer();\n    throw new Error(\"Stats are already being measured\");\n  }\n  const buffer = statsBuffer;\n  buffer.value = {\n    layoutProjection: {\n      nodes: [],\n      calculatedTargetDeltas: [],\n      calculatedProjections: []\n    }\n  };\n  buffer.addProjectionMetrics = (metrics2) => {\n    const { layoutProjection } = buffer.value;\n    layoutProjection.nodes.push(metrics2.nodes);\n    layoutProjection.calculatedTargetDeltas.push(metrics2.calculatedTargetDeltas);\n    layoutProjection.calculatedProjections.push(metrics2.calculatedProjections);\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs\nfunction isSVGSVGElement(element) {\n  return isSVGElement(element) && element.tagName === \"svg\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/stagger.mjs\nfunction getOriginIndex(from, total) {\n  if (from === \"first\") {\n    return 0;\n  } else {\n    const lastIndex = total - 1;\n    return from === \"last\" ? lastIndex : lastIndex / 2;\n  }\n}\nfunction stagger(duration = 0.1, { startDelay = 0, from = 0, ease: ease2, grid } = {}) {\n  const cache = {};\n  return (i, total) => {\n    let distances = cache[total];\n    if (!distances) {\n      const [columns, rows] = grid || [Infinity, 1];\n      const lastX = Math.min(columns, total) - 1;\n      const lastY = Math.max(rows, Math.ceil(total / columns)) - 1;\n      const isIndex = typeof from === \"number\";\n      const scale2 = from === \"first\" ? 0 : from === \"last\" ? 1 : 0.5;\n      const originX = isIndex ? from % columns : lastX * scale2;\n      const originY = isIndex ? Math.floor(from / columns) : lastY * scale2;\n      distances = cache[total] = [];\n      for (let j = 0; j < total; j++) {\n        const x = j % columns;\n        const y = Math.floor(j / columns);\n        const edgeX = Math.min(x, lastX - x);\n        const edgeY = Math.min(y, lastY - y);\n        if (from === \"random\") {\n          const k = Math.random() * (j + 1) | 0;\n          distances[j] = distances[k];\n          distances[k] = j;\n        } else {\n          distances[j] = from === \"edges\" ? Math.min(lastX ? edgeX : edgeY, lastY ? edgeY : edgeX) : Math.hypot(x - originX, y - originY);\n        }\n      }\n      distances.push(grid ? Math.max(...distances) : total);\n    }\n    let delay2 = duration * distances[i];\n    const maxDelay = duration * distances[total];\n    if (ease2 && maxDelay) {\n      const easingFunction = easingDefinitionToFunction(ease2);\n      delay2 = easingFunction(delay2 / maxDelay) * maxDelay;\n    }\n    return startDelay + delay2;\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/utils/transform.mjs\nfunction transform(...args) {\n  const useImmediate = !Array.isArray(args[0]);\n  const argOffset = useImmediate ? 0 : -1;\n  const inputValue = args[0 + argOffset];\n  const inputRange = args[1 + argOffset];\n  const outputRange = args[2 + argOffset];\n  const options = args[3 + argOffset];\n  const interpolator = interpolate(inputRange, outputRange, options);\n  return useImmediate ? interpolator(inputValue) : interpolator;\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/FollowAnimation.mjs\nvar active = /* @__PURE__ */ new Set();\nvar tickAll = ({ timestamp }) => {\n  active.forEach((animation) => animation.tick(timestamp));\n};\nvar FollowAnimation = class extends WithPromise {\n  constructor(options) {\n    super();\n    this.state = \"idle\";\n    this.startTime = 0;\n    this.currentTime = 0;\n    this.started = false;\n    this.hasNextTarget = false;\n    this.nextTarget = 0;\n    this.stop = () => {\n      if (this.state === \"idle\")\n        return;\n      this.teardown();\n      this.options.onStop?.();\n    };\n    this.options = options;\n    this.factory = options.type;\n    this.generator = this.factory(options);\n    const { driver } = options;\n    if (driver)\n      this.driver = driver((timestamp) => this.tick(timestamp));\n    this.startTime = this.now();\n    this.state = \"running\";\n    if (this.driver) {\n      this.driver.start();\n    } else {\n      active.size || frame.update(tickAll, true);\n      active.add(this);\n    }\n  }\n  /**\n   * Aim at a new target from wherever the animation has reached by the\n   * next tick. `velocity` fixes the velocity to steer with, otherwise\n   * the generator's is used.\n   */\n  setTarget(target, velocity) {\n    this.nextTarget = target;\n    this.nextVelocity = velocity;\n    this.hasNextTarget = true;\n  }\n  /**\n   * Steer towards new keyframes from the current position and velocity.\n   * Springs are updated in place; other generators are recreated.\n   */\n  retarget(keyframes2, velocity) {\n    const { options, generator } = this;\n    options.keyframes = keyframes2;\n    options.velocity = velocity;\n    this.startTime = this.now();\n    this.currentTime = 0;\n    if (generator.retarget) {\n      generator.retarget(keyframes2, velocity);\n    } else {\n      this.generator = this.factory(options);\n    }\n  }\n  tick(timestamp) {\n    const { options, hasNextTarget: retargeted } = this;\n    const { delay: delay2 = 0, onUpdate, onPlay } = options;\n    if (!this.started) {\n      this.startTime = resolveStartTime(this.startTime, timestamp);\n    }\n    const elapsed = Math.round(timestamp - this.startTime) - delay2;\n    const t = this.currentTime = Math.max(0, elapsed);\n    const state = this.generator.next(t);\n    const value = elapsed < 0 ? options.keyframes[0] : state.value;\n    if (retargeted) {\n      this.hasNextTarget = false;\n      const { keyframes: keyframes2 } = options;\n      keyframes2[0] = value;\n      keyframes2[1] = this.nextTarget;\n      this.retarget(keyframes2, this.nextVelocity ?? this.getGeneratorVelocity());\n    }\n    if (retargeted || !this.started) {\n      this.started = true;\n      onPlay?.();\n    }\n    if (this.state !== \"running\")\n      return;\n    onUpdate?.(value);\n    if (state.done && elapsed >= 0 && !retargeted && !this.hasNextTarget && this.state === \"running\") {\n      this.notifyFinished();\n      this.teardown();\n      this.state = \"finished\";\n      options.onComplete?.();\n    }\n  }\n  getGeneratorVelocity() {\n    return calcGeneratorVelocity(this.generator, this.currentTime, this.options.velocity);\n  }\n  now() {\n    return this.driver ? this.driver.now() : time.now();\n  }\n  teardown() {\n    this.state = \"idle\";\n    if (this.driver) {\n      this.driver.stop();\n    } else {\n      active.delete(this);\n      active.size || cancelFrame(tickAll);\n    }\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/value/utils/as-number.mjs\nvar asNumber = (v) => typeof v === \"number\" ? v : parseFloat(v);\n\n// ../../../node_modules/motion-dom/dist/es/value/utils/follow.mjs\nfunction follow(value, source, options) {\n  const initialValue = value.get();\n  let activeAnimation = null;\n  let set;\n  const unit = typeof initialValue === \"string\" ? initialValue.replace(/[\\d.-]/g, \"\") : void 0;\n  const onUpdate = (v) => set(unit ? v + unit : v);\n  const onPlay = () => value[\"events\"].animationStart?.notify();\n  const stopAnimation2 = () => {\n    if (activeAnimation) {\n      activeAnimation.stop();\n      activeAnimation = null;\n    }\n    value.animation = void 0;\n  };\n  value.attach((v, safeSet) => {\n    set = safeSet;\n    const target = asNumber(v);\n    if (activeAnimation?.state === \"running\") {\n      activeAnimation.setTarget(target, options.velocity);\n      return;\n    }\n    const current2 = asNumber(value.get());\n    const velocity = activeAnimation ? activeAnimation.getGeneratorVelocity() : value.getVelocity();\n    stopAnimation2();\n    if (current2 === target)\n      return;\n    const animationOptions = {\n      keyframes: [current2, target],\n      velocity,\n      restDelta: 1e-3,\n      restSpeed: 0.01,\n      ...options,\n      onUpdate\n    };\n    const animation = activeAnimation = new FollowAnimation({\n      ...animationOptions,\n      onPlay\n    });\n    value.animation = animation;\n    animation.then(() => {\n      if (activeAnimation !== animation)\n        return;\n      activeAnimation = null;\n      value.animation = void 0;\n      value[\"events\"].animationComplete?.notify();\n    });\n  }, stopAnimation2);\n  if (isMotionValue(source)) {\n    let skipNextAnimation = options.skipInitialAnimation === true;\n    const onSourceChange = (v) => {\n      if (skipNextAnimation) {\n        skipNextAnimation = false;\n        value.jump(parseValue(v, unit), false);\n      } else {\n        value.set(parseValue(v, unit));\n      }\n    };\n    const removeSourceOnChange = source.on(\"change\", onSourceChange);\n    const latest = source.get();\n    if (asNumber(latest) - asNumber(value.get()))\n      onSourceChange(latest);\n    const removeValueOnDestroy = value.on(\"destroy\", removeSourceOnChange);\n    return () => {\n      removeSourceOnChange();\n      removeValueOnDestroy();\n      stopAnimation2();\n    };\n  }\n  return stopAnimation2;\n}\nfunction parseValue(v, unit) {\n  return unit ? v + unit : v;\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/follow-value.mjs\nfunction followValue(source, options) {\n  const initialValue = isMotionValue(source) ? source.get() : source;\n  const value = motionValue(initialValue);\n  attachFollow(value, source, options);\n  return value;\n}\nfunction attachFollow(value, source, options = {}) {\n  const transition = { type: \"spring\", ...options };\n  replaceTransitionType(transition);\n  transition.type = transition.type || keyframes;\n  return follow(value, source, transition);\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/subscribe-value.mjs\nfunction subscribeValue(inputValues, outputValue, getLatest) {\n  const update = () => outputValue.set(getLatest());\n  const scheduleUpdate = () => frame.preRender(update, false, true);\n  const subscriptions = inputValues.map((v) => v.on(\"change\", scheduleUpdate));\n  outputValue.on(\"destroy\", () => {\n    subscriptions.forEach((unsubscribe) => unsubscribe());\n    cancelFrame(update);\n  });\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/transform-value.mjs\nfunction transformValue(transform2) {\n  const collectedValues = [];\n  collectMotionValues.current = collectedValues;\n  const initialValue = transform2();\n  collectMotionValues.current = void 0;\n  const value = motionValue(initialValue);\n  subscribeValue(collectedValues, value, transform2);\n  return value;\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/map-value.mjs\nfunction mapValue(inputValue, inputRange, outputRange, options) {\n  const map = transform(inputRange, outputRange, options);\n  return transformValue(() => map(inputValue.get()));\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/spring-value.mjs\nfunction springValue(source, options) {\n  const value = motionValue(isMotionValue(source) ? source.get() : source);\n  attachSpring(value, source, options);\n  return value;\n}\nfunction attachSpring(value, source, options) {\n  return follow(value, source, { ...options, type: spring });\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/types/utils/find.mjs\nvar valueTypes = [...dimensionValueTypes, color, complex];\nvar findValueType = (v) => valueTypes.find(testValueType(v));\n\n// ../../../node_modules/motion-dom/dist/es/view/utils/get-layer-info.mjs\nfunction getViewAnimationLayerInfo(pseudoElement) {\n  const match = pseudoElement.match(\n    // `group-children` (nested transitions) before `group` so it wins.\n    /::view-transition-(old|new|group-children|group|image-pair)\\((.*?)\\)/\n  );\n  if (!match)\n    return null;\n  return { layer: match[2], type: match[1] };\n}\n\n// ../../../node_modules/motion-dom/dist/es/view/utils/get-view-animations.mjs\nfunction getViewAnimations() {\n  return document.getAnimations().filter((animation) => {\n    const { effect } = animation;\n    return !!effect && effect.target === document.documentElement && effect.pseudoElement?.startsWith(\"::view-transition\");\n  });\n}\n\n// ../../../node_modules/motion-dom/dist/es/view/utils/assign-names.mjs\nvar nameCount = 0;\nvar generatedName = () => `motion-view-${nameCount++}`;\nvar isGeneratedName = (name) => name.startsWith(\"motion-view-\");\nfunction tagClass(element, className, classed) {\n  if (!className)\n    return;\n  element.style?.setProperty(\"view-transition-class\", className);\n  classed.push(element);\n}\nfunction applyGroup(element, name, group, grouped, clipChildren) {\n  if (!group)\n    return;\n  element.style?.setProperty(\"view-transition-group\", group);\n  grouped.push(element);\n  if (group !== \"none\" && clipChildren) {\n    const style2 = getComputedStyle(element);\n    if (style2.overflowX !== \"visible\" || style2.overflowY !== \"visible\") {\n      clipChildren.add(name);\n    }\n  }\n}\nfunction assignViewTransitionNames(definition, registry, assigned, forcedNames, className, classed = [], group, grouped = [], clipChildren) {\n  const elements = resolveElements(definition);\n  if (forcedNames) {\n    return elements.map((element, i) => {\n      const existing = registry.get(element);\n      if (existing)\n        return existing;\n      const name = forcedNames[i] ?? generatedName();\n      element.style?.setProperty(\"view-transition-name\", name);\n      assigned.push(element);\n      registry.set(element, name);\n      tagClass(element, className, classed);\n      applyGroup(element, name, group, grouped, clipChildren);\n      return name;\n    });\n  }\n  const currentNames = elements.map((element) => registry.has(element) ? void 0 : getComputedStyle(element).getPropertyValue(\"view-transition-name\"));\n  return elements.map((element, i) => {\n    const existing = registry.get(element);\n    if (existing)\n      return existing;\n    const current2 = currentNames[i];\n    let name;\n    if (current2 && current2 !== \"none\" && current2 !== \"auto\" && current2 !== \"match-element\" && !isGeneratedName(current2)) {\n      name = current2;\n    } else {\n      name = generatedName();\n      element.style?.setProperty(\"view-transition-name\", name);\n      assigned.push(element);\n    }\n    registry.set(element, name);\n    tagClass(element, className, classed);\n    applyGroup(element, name, group, grouped, clipChildren);\n    return name;\n  });\n}\nfunction releaseViewTransitionNames(assigned, classed = [], grouped = []) {\n  for (const element of assigned) {\n    element.style?.removeProperty(\"view-transition-name\");\n  }\n  for (const element of classed) {\n    element.style?.removeProperty(\"view-transition-class\");\n  }\n  for (const element of grouped) {\n    element.style?.removeProperty(\"view-transition-group\");\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/view/utils/choose-layer-type.mjs\nfunction chooseLayerType(valueName) {\n  if (valueName === \"layout\")\n    return \"group\";\n  if (valueName === \"enter\" || valueName === \"new\")\n    return \"new\";\n  return \"old\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/view/utils/css.mjs\nvar pendingRules = {};\nvar style = null;\nvar css = {\n  set: (selector, values) => {\n    pendingRules[selector] = values;\n  },\n  commit: () => {\n    if (!style) {\n      style = document.createElement(\"style\");\n      style.id = \"motion-view\";\n    }\n    let cssText = \"\";\n    for (const selector in pendingRules) {\n      const rule = pendingRules[selector];\n      cssText += `${selector} {\n`;\n      for (const [property, value] of Object.entries(rule)) {\n        cssText += `  ${property}: ${value};\n`;\n      }\n      cssText += \"}\\n\";\n    }\n    style.textContent = cssText;\n    document.head.appendChild(style);\n    pendingRules = {};\n  },\n  remove: () => {\n    if (style && style.parentElement) {\n      style.parentElement.removeChild(style);\n    }\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/view/utils/has-target.mjs\nfunction hasTarget(target, targets) {\n  return targets.has(target) && Object.keys(targets.get(target)).length > 0;\n}\n\n// ../../../node_modules/motion-dom/dist/es/view/start.mjs\nvar definitionNames = [\"layout\", \"enter\", \"exit\", \"new\", \"old\"];\nvar isSquareRadius = (radius) => radius.split(\" \").every((value) => parseFloat(value) === 0);\nvar typeBuckets = {\n  group: [\"layout\"],\n  new: [\"new\", \"enter\"],\n  old: [\"old\", \"exit\"]\n};\nvar ORIGIN_DEFAULTS = {\n  new: { opacity: 0, scale: 0.85 },\n  old: { opacity: 1, scale: 1 }\n};\nvar ASPECT_TOLERANCE = 0.2;\nfunction startViewAnimation(builder) {\n  const { update, targets, resolveDefs, cropOverride, pairs, classNames, flatGroups, options: defaultOptions } = builder;\n  if (!document.startViewTransition) {\n    return (async () => {\n      await update();\n      return new GroupAnimation([]);\n    })();\n  }\n  const nameRegistry = /* @__PURE__ */ new Map();\n  const assigned = [];\n  const classed = [];\n  const grouped = [];\n  const clipChildren = /* @__PURE__ */ new Set();\n  const layerTargets = /* @__PURE__ */ new Map();\n  const croppedNames = /* @__PURE__ */ new Set();\n  const cropForName = /* @__PURE__ */ new Map();\n  const layerStagger = /* @__PURE__ */ new Map();\n  const pairNames = /* @__PURE__ */ new Map();\n  const pairFrom = /* @__PURE__ */ new Map();\n  const resolveLayers = (phase) => {\n    targets.forEach((target, definition) => {\n      const className = classNames.get(definition);\n      const group = definition === \"root\" || !resolveDefs.has(definition) ? void 0 : flatGroups.has(definition) ? \"none\" : \"contain\";\n      let names;\n      if (definition === \"root\" || !resolveDefs.has(definition)) {\n        names = [definition];\n      } else if (pairs.has(definition)) {\n        if (phase === \"old\") {\n          pairFrom.set(definition, resolveElements(definition));\n          names = assignViewTransitionNames(definition, nameRegistry, assigned, void 0, className, classed, group, grouped, clipChildren);\n          pairNames.set(definition, names);\n        } else {\n          for (const el of pairFrom.get(definition) ?? []) {\n            el.style?.removeProperty(\"view-transition-name\");\n            nameRegistry.delete(el);\n          }\n          names = assignViewTransitionNames(pairs.get(definition), nameRegistry, assigned, pairNames.get(definition), className, classed, group, grouped, clipChildren);\n        }\n      } else {\n        names = assignViewTransitionNames(definition, nameRegistry, assigned, void 0, className, classed, group, grouped, clipChildren);\n      }\n      const override = cropOverride.get(definition);\n      names.forEach((name, index) => {\n        const existing = layerTargets.get(name);\n        layerTargets.set(name, existing && existing !== target ? { ...existing, ...target } : target);\n        if (override !== void 0)\n          cropForName.set(name, override);\n        const stagger2 = layerStagger.get(name) ?? {};\n        stagger2[phase] = [index, names.length];\n        layerStagger.set(name, stagger2);\n      });\n    });\n  };\n  const staggerPosition = (name, type) => {\n    const stagger2 = layerStagger.get(name);\n    const position = type === \"old\" ? stagger2?.old : type === \"new\" ? stagger2?.new : (\n      // group / group-children / image-pair persist across both.\n      stagger2?.new ?? stagger2?.old\n    );\n    return position ?? [-1, 1];\n  };\n  const resolveLayerTransition = (target, type, transitionName, index, total) => {\n    const transition2 = mergeTransition(getValueTransition(defaultOptions, transitionName), getValueTransition(layerOptions(target, type) ?? {}, transitionName));\n    if (typeof transition2.delay === \"function\") {\n      transition2.delay = transition2.delay(index, total);\n    }\n    return transition2;\n  };\n  const resolveGroupTiming = (name) => {\n    const [index, total] = staggerPosition(name, \"group\");\n    const transition2 = resolveLayerTransition(layerTargets.get(name), \"group\", \"layout\", index === -1 ? 0 : index, total);\n    transition2.duration && (transition2.duration = secondsToMilliseconds(transition2.duration));\n    const { delay: delay2 = 0, duration, ease: ease2 } = applyGeneratorOptions(transition2);\n    return { delay: secondsToMilliseconds(delay2), duration, ease: ease2 };\n  };\n  const cropMeasurements = /* @__PURE__ */ new Map();\n  const measureLayers = (phase) => nameRegistry.forEach((name, element) => {\n    const el = element;\n    const rect = el.getBoundingClientRect?.();\n    if (rect && rect.height) {\n      const style2 = getComputedStyle(el);\n      const radii = {};\n      for (const corner of cornerRadiusProps) {\n        radii[corner] = style2[corner];\n      }\n      const entry = cropMeasurements.get(name) ?? {};\n      entry[phase] = { width: rect.width, height: rect.height, radii };\n      cropMeasurements.set(name, entry);\n    }\n  });\n  const finalizeCrop = () => {\n    croppedNames.clear();\n    for (const name of layerStagger.keys()) {\n      if (name === \"root\")\n        continue;\n      if (cropForName.get(name) ?? aspectChanged(name)) {\n        croppedNames.add(name);\n      }\n    }\n  };\n  const aspectChanged = (name) => {\n    const box = cropMeasurements.get(name);\n    if (!box?.old || !box?.new || !box.old.height || !box.new.height) {\n      return false;\n    }\n    return Math.abs(box.old.width / box.old.height - box.new.width / box.new.height) > ASPECT_TOLERANCE;\n  };\n  const commitViewCSS = () => {\n    if (!hasTarget(\"root\", targets)) {\n      css.set(\":root\", { \"view-transition-name\": \"none\" });\n    }\n    css.set(\"::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)\", { \"animation-timing-function\": \"linear !important\" });\n    croppedNames.forEach((name) => {\n      css.set(`::view-transition-group(${name})`, { overflow: \"clip\" });\n      css.set(`::view-transition-old(${name}), ::view-transition-new(${name})`, { width: \"100%\", height: \"100%\", \"object-fit\": \"cover\" });\n    });\n    clipChildren.forEach((name) => {\n      css.set(`::view-transition-group-children(${name})`, {\n        overflow: \"clip\"\n      });\n    });\n    css.commit();\n  };\n  const cleanup = () => {\n    releaseViewTransitionNames(assigned, classed, grouped);\n    css.remove();\n  };\n  const callback = async () => {\n    await update();\n    resolveLayers(\"new\");\n    measureLayers(\"new\");\n    finalizeCrop();\n    commitViewCSS();\n  };\n  let transition;\n  try {\n    resolveLayers(\"old\");\n    measureLayers(\"old\");\n    commitViewCSS();\n    transition = document.startViewTransition(callback);\n  } catch (error) {\n    cleanup();\n    return Promise.reject(error);\n  }\n  transition.finished.finally(cleanup);\n  return new Promise((resolve, reject) => {\n    transition.ready.then(() => {\n      const generatedViewAnimations = getViewAnimations();\n      const animations2 = [];\n      const explicitlyAnimated = /* @__PURE__ */ new Set();\n      const opacityAnimated = /* @__PURE__ */ new Set();\n      layerTargets.forEach((target, name) => {\n        const stagger2 = layerStagger.get(name);\n        const enterApplies = !!stagger2?.new && !stagger2?.old;\n        const exitApplies = !!stagger2?.old && !stagger2?.new;\n        for (const key of definitionNames) {\n          if (!target[key])\n            continue;\n          if (key === \"enter\" && !enterApplies)\n            continue;\n          if (key === \"exit\" && !exitApplies)\n            continue;\n          const type = chooseLayerType(key);\n          const [index, total] = staggerPosition(name, type);\n          if (index === -1)\n            continue;\n          const { keyframes: keyframes2, options } = target[key];\n          for (let [valueName, valueKeyframes] of Object.entries(keyframes2)) {\n            if (valueKeyframes == null)\n              continue;\n            if (valueName === \"x\" || valueName === \"y\") {\n              warnOnce(false, `animateView() animates view-transition layers with CSS properties; the \"${valueName}\" shorthand has no effect - use transform, e.g. { transform: \"translateX(40px)\" }.`);\n              continue;\n            }\n            if (key === \"new\" && enterApplies && target.enter?.keyframes[valueName] != null) {\n              continue;\n            }\n            if (key === \"old\" && exitApplies && target.exit?.keyframes[valueName] != null) {\n              continue;\n            }\n            const valueOptions = mergeTransition(getValueTransition(defaultOptions, valueName), getValueTransition(options, valueName));\n            if (!Array.isArray(valueKeyframes)) {\n              const exitValue = key === \"enter\" ? target.exit?.keyframes[valueName] : void 0;\n              const allowDefault = valueName === \"opacity\" || (type === \"new\" ? enterApplies : exitApplies);\n              const from = exitValue != null ? Array.isArray(exitValue) ? exitValue[exitValue.length - 1] : exitValue : allowDefault ? ORIGIN_DEFAULTS[type]?.[valueName] : void 0;\n              if (from !== void 0) {\n                valueKeyframes = [from, valueKeyframes];\n              }\n            }\n            if (typeof valueOptions.delay === \"function\") {\n              valueOptions.delay = valueOptions.delay(index, total);\n            }\n            valueOptions.duration && (valueOptions.duration = secondsToMilliseconds(valueOptions.duration));\n            valueOptions.delay && (valueOptions.delay = secondsToMilliseconds(valueOptions.delay));\n            animations2.push(new NativeAnimation({\n              ...valueOptions,\n              element: document.documentElement,\n              name: valueName,\n              pseudoElement: `::view-transition-${type}(${name})`,\n              keyframes: valueKeyframes\n            }));\n            explicitlyAnimated.add(`${name}:${type}`);\n            if (valueName === \"opacity\") {\n              opacityAnimated.add(`${name}:${type}`);\n            }\n          }\n        }\n      });\n      for (const animation of generatedViewAnimations) {\n        if (animation.playState === \"finished\")\n          continue;\n        const { effect } = animation;\n        if (!effect || !(effect instanceof KeyframeEffect))\n          continue;\n        const { pseudoElement } = effect;\n        if (!pseudoElement)\n          continue;\n        const name = getViewAnimationLayerInfo(pseudoElement);\n        if (!name)\n          continue;\n        const targetDefinition = layerTargets.get(name.layer);\n        if (explicitlyAnimated.has(`${name.layer}:${name.type}`)) {\n          const isCrossfade = opacityAnimated.has(`${name.layer}:new`) && opacityAnimated.has(`${name.layer}:old`);\n          if (isCrossfade && effect.getKeyframes().some((keyframe) => keyframe.mixBlendMode)) {\n            animations2.push(new NativeAnimationWrapper(animation));\n          } else {\n            animation.cancel();\n          }\n          continue;\n        }\n        const opposite = name.type === \"old\" ? \"new\" : name.type === \"new\" ? \"old\" : void 0;\n        if (opposite && explicitlyAnimated.has(`${name.layer}:${opposite}`) && !opacityAnimated.has(`${name.layer}:${opposite}`)) {\n          animation.cancel();\n          continue;\n        }\n        const stagger2 = layerStagger.get(name.layer);\n        const isMorphCrossfade = (name.type === \"old\" || name.type === \"new\") && !!stagger2?.old && !!stagger2?.new;\n        let timing;\n        if (name.type.startsWith(\"group\")) {\n          const { delay: delay2, duration, ease: ease2 } = resolveGroupTiming(name.layer);\n          timing = {\n            delay: delay2,\n            duration,\n            easing: mapEasingToNativeEasing(ease2, duration)\n          };\n        } else {\n          const timingType = isMorphCrossfade ? \"group\" : name.type;\n          const [index, total] = staggerPosition(name.layer, timingType);\n          const transitionName = timingType === \"group\" ? \"layout\" : \"\";\n          let animationTransition = resolveLayerTransition(targetDefinition, timingType, transitionName, index === -1 ? 0 : index, total);\n          const visualDuration = animationTransition.visualDuration;\n          animationTransition.duration && (animationTransition.duration = secondsToMilliseconds(animationTransition.duration));\n          animationTransition = applyGeneratorOptions(animationTransition);\n          timing = {\n            delay: secondsToMilliseconds(animationTransition.delay ?? 0),\n            duration: isMorphCrossfade && visualDuration !== void 0 ? secondsToMilliseconds(visualDuration) : animationTransition.duration,\n            easing: isMorphCrossfade ? \"linear\" : mapEasingToNativeEasing(animationTransition.ease, animationTransition.duration)\n          };\n        }\n        effect.updateTiming(timing);\n        animations2.push(new NativeAnimationWrapper(animation));\n      }\n      cropMeasurements.forEach((entry, name) => {\n        if (!croppedNames.has(name))\n          return;\n        const { delay: delay2, duration, ease: ease2 } = resolveGroupTiming(name);\n        for (const corner of cornerRadiusProps) {\n          const from = entry.old?.radii[corner] || entry.new?.radii[corner] || \"0px\";\n          const to = entry.new?.radii[corner] || entry.old?.radii[corner] || \"0px\";\n          if (isSquareRadius(from) && isSquareRadius(to))\n            continue;\n          animations2.push(new NativeAnimation({\n            element: document.documentElement,\n            name: corner,\n            pseudoElement: `::view-transition-group(${name})`,\n            keyframes: [from, to],\n            delay: delay2,\n            duration,\n            ease: ease2\n          }));\n        }\n      });\n      resolve(new GroupAnimation(animations2));\n    }).catch(() => (\n      /**\n       * `ready` rejects when the transition is skipped - no visual\n       * change, or superseded by an interrupting transition. The DOM\n       * update still applied, so settle with no animations rather than\n       * surfacing it as an error to an awaiting caller. A genuine\n       * failure in `update()` rejects `updateCallbackDone` (already\n       * settled by now), so propagate that instead.\n       */\n      transition.updateCallbackDone.then(() => resolve(new GroupAnimation([])), reject)\n    ));\n  });\n}\nfunction layerOptions(target, type) {\n  for (const bucket of typeBuckets[type] ?? []) {\n    const options = target?.[bucket]?.options;\n    if (options)\n      return options;\n  }\n}\nfunction mergeTransition(base, override) {\n  const merged = { ...base, ...override };\n  if (override.duration !== void 0) {\n    if (override.visualDuration === void 0)\n      delete merged.visualDuration;\n    if (override.type === void 0)\n      delete merged.type;\n  }\n  return merged;\n}\n\n// ../../../node_modules/motion-dom/dist/es/view/queue.mjs\nvar builders = [];\nvar current = null;\nfunction next() {\n  current = null;\n  const [nextBuilder] = builders;\n  if (nextBuilder)\n    start(nextBuilder);\n}\nfunction start(builder) {\n  removeItem(builders, builder);\n  current = builder;\n  startViewAnimation(builder).then((animation) => {\n    builder.notifyReady(animation);\n    return animation.finished;\n  }).catch((error) => builder.notifyReject(error)).finally(next);\n}\nfunction processQueue() {\n  for (let i = builders.length - 1; i >= 0; i--) {\n    const builder = builders[i];\n    const { interrupt } = builder.options;\n    if (interrupt === \"immediate\") {\n      const batchedUpdates = builders.slice(0, i + 1).map((b) => b.update);\n      const remaining = builders.slice(i + 1);\n      builder.update = () => {\n        batchedUpdates.forEach((update) => update());\n      };\n      builders = [builder, ...remaining];\n      break;\n    }\n  }\n  if (!current || builders[0]?.options.interrupt === \"immediate\") {\n    next();\n  }\n}\nfunction addToQueue(builder) {\n  builders.push(builder);\n  microtask.render(processQueue);\n}\n\n// ../../../node_modules/motion-dom/dist/es/view/index.mjs\nvar ViewTransitionBuilder = class {\n  constructor(update, options = {}) {\n    this.currentSubject = \"root\";\n    this.targets = /* @__PURE__ */ new Map();\n    this.resolveDefs = /* @__PURE__ */ new Set();\n    this.cropOverride = /* @__PURE__ */ new Map();\n    this.pairs = /* @__PURE__ */ new Map();\n    this.classNames = /* @__PURE__ */ new Map();\n    this.flatGroups = /* @__PURE__ */ new Set();\n    this.notifyReady = noop;\n    this.notifyReject = noop;\n    this.readyPromise = new Promise((resolve, reject) => {\n      this.notifyReady = resolve;\n      this.notifyReject = reject;\n    });\n    this.update = update;\n    this.options = {\n      interrupt: \"wait\",\n      ...options\n    };\n    this.readyPromise.catch(noop);\n    addToQueue(this);\n  }\n  /**\n   * Target elements resolved from a selector or Element, each assigned a\n   * `view-transition-name` automatically.\n   *\n   * Passing a second target pairs them: the first is resolved in the old\n   * snapshot and the second in the new, sharing one name so two *different*\n   * elements morph into each other (e.g. `.add(card, \".modal\")`). Symmetric -\n   * pass them the other way round to morph back.\n   */\n  add(subject, newSubject) {\n    this.currentSubject = subject;\n    this.resolveDefs.add(subject);\n    if (newSubject !== void 0)\n      this.pairs.set(subject, newSubject);\n    if (!this.targets.has(subject))\n      this.targets.set(subject, {});\n    return this;\n  }\n  /**\n   * Control this subject's crop (clip + `object-fit: cover` + animated\n   * corners). By default a subject auto-crops only when it actually morphs -\n   * present in both snapshots (a survivor, or an `.add(a, b)` pair). A\n   * fade-only enter/exit has no second box to crop against, so it's left to\n   * the browser default; in particular the `overflow: clip` a crop adds would\n   * otherwise clip a mis-sized enter/exit layer to nothing.\n   *\n   * `.crop(false)` forces the crop off (e.g. a text morph, where\n   * `object-fit: cover` clips glyphs as the box grows); `.crop(true)` forces\n   * it on for a non-morph the default wouldn't otherwise crop.\n   */\n  crop(enabled = true) {\n    this.cropOverride.set(this.currentSubject, enabled);\n    return this;\n  }\n  /**\n   * By default a subject's layer nests under its nearest DOM-ancestor layer\n   * (`view-transition-group: contain`), so the ancestor's clip/transform/opacity\n   * apply to it through the transition - mirroring how the DOM actually paints,\n   * and letting a wrapper crop its child for the whole morph rather than only\n   * once the live DOM takes back over. (Needs a browser that supports nested\n   * view-transition groups; elsewhere it degrades to the flat default.)\n   *\n   * Call `.group(false)` to opt out: the layer stays flat and top-level, so it\n   * animates independently and escapes an ancestor's clip - e.g. an element\n   * that should lift out of a card and fly across, which nesting would clip.\n   */\n  group(enabled = true) {\n    enabled ? this.flatGroups.delete(this.currentSubject) : this.flatGroups.add(this.currentSubject);\n    return this;\n  }\n  /**\n   * Tag this subject's generated layers with a `view-transition-class`, so\n   * they can be targeted from CSS - `::view-transition-group(.name)`,\n   * `::view-transition-old/new(.name)`, `::view-transition-image-pair(.name)`\n   * - without the opaque generated `view-transition-name`. Because `.add()`\n   * can match many elements, a shared class targets them all at once (and,\n   * for a pair, both ends). The escape hatch for z-index / custom keyframes\n   * on a morph layer.\n   */\n  class(name) {\n    this.classNames.set(this.currentSubject, name);\n    return this;\n  }\n  /**\n   * Set the transition for this subject's morph. The morph is enabled\n   * automatically by `.add()`; this just customises its timing (duration,\n   * easing, a `delay`/`stagger`, …). On the implicit `root` subject it also\n   * opts the page into the transition (the root crossfade).\n   */\n  layout(options = {}) {\n    this.updateTarget(\"layout\", {}, options);\n    return this;\n  }\n  enter(keyframes2, options) {\n    this.updateTarget(\"enter\", keyframes2, options);\n    return this;\n  }\n  exit(keyframes2, options) {\n    this.updateTarget(\"exit\", keyframes2, options);\n    return this;\n  }\n  /**\n   * Animate the new view directly, whether the element is appearing or\n   * persisting (unlike `.enter()`, which only fires for a pure newcomer).\n   * Pair with `.old()` for a crossfade or slide-through.\n   */\n  new(keyframes2, options) {\n    this.updateTarget(\"new\", keyframes2, options);\n    return this;\n  }\n  /**\n   * Animate the old view directly, whether the element is leaving or\n   * persisting (unlike `.exit()`, which only fires for a pure leaver).\n   */\n  old(keyframes2, options) {\n    this.updateTarget(\"old\", keyframes2, options);\n    return this;\n  }\n  updateTarget(target, keyframes2, options = {}) {\n    const { currentSubject, targets } = this;\n    if (!targets.has(currentSubject)) {\n      targets.set(currentSubject, {});\n    }\n    const targetData = targets.get(currentSubject);\n    targetData[target] = { keyframes: keyframes2, options };\n  }\n  then(resolve, reject) {\n    return this.readyPromise.then(resolve, reject);\n  }\n};\nfunction animateView(update, options = {}) {\n  return new ViewTransitionBuilder(update, options);\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/geometry/models.mjs\nvar createAxisDelta = () => ({\n  translate: 0,\n  scale: 1,\n  origin: 0,\n  originPoint: 0\n});\nvar createDelta = () => ({\n  x: createAxisDelta(),\n  y: createAxisDelta()\n});\nvar createAxis = () => ({ min: 0, max: 0 });\nvar createBox = () => ({\n  x: createAxis(),\n  y: createAxis()\n});\n\n// ../../../node_modules/motion-dom/dist/es/render/store.mjs\nvar visualElementStore = /* @__PURE__ */ new WeakMap();\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs\nfunction isAnimationControls(v) {\n  return v !== null && typeof v === \"object\" && typeof v.start === \"function\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs\nfunction isVariantLabel(v) {\n  return typeof v === \"string\" || Array.isArray(v);\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/variant-props.mjs\nvar variantPriorityOrder = [\n  \"animate\",\n  \"whileInView\",\n  \"whileFocus\",\n  \"whileHover\",\n  \"whileTap\",\n  \"whileDrag\",\n  \"exit\"\n];\nvar variantProps = [\"initial\", ...variantPriorityOrder];\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs\nfunction isControllingVariants(props) {\n  if (isAnimationControls(props.animate))\n    return true;\n  for (let i = 0; i < variantProps.length; i++) {\n    if (isVariantLabel(props[variantProps[i]])) {\n      return true;\n    }\n  }\n  return false;\n}\nfunction isVariantNode(props) {\n  return Boolean(isControllingVariants(props) || props.variants);\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/motion-values.mjs\nfunction updateMotionValuesFromProps(element, next2, prev) {\n  for (const key in next2) {\n    const nextValue = next2[key];\n    const prevValue = prev[key];\n    if (isMotionValue(nextValue)) {\n      element.addValue(key, nextValue);\n    } else if (isMotionValue(prevValue)) {\n      element.addValue(key, motionValue(nextValue, { owner: element }));\n    } else if (prevValue !== nextValue) {\n      if (element.hasValue(key)) {\n        const existingValue = element.getValue(key);\n        if (existingValue.liveStyle === true) {\n          existingValue.jump(nextValue);\n        } else if (!existingValue.hasAnimated) {\n          existingValue.set(nextValue);\n        }\n      } else {\n        const latestValue = element.getStaticValue(key);\n        element.addValue(key, motionValue(latestValue !== void 0 ? latestValue : nextValue, { owner: element }));\n      }\n    }\n  }\n  for (const key in prev) {\n    if (next2[key] === void 0)\n      element.removeValue(key);\n  }\n  return next2;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs\nvar prefersReducedMotion = { current: null };\nvar hasReducedMotionListener = { current: false };\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs\nvar isBrowser3 = typeof window !== \"undefined\";\nfunction initPrefersReducedMotion() {\n  hasReducedMotionListener.current = true;\n  if (!isBrowser3)\n    return;\n  if (window.matchMedia) {\n    const motionMediaQuery = window.matchMedia(\"(prefers-reduced-motion)\");\n    const setReducedMotionPreferences = () => prefersReducedMotion.current = motionMediaQuery.matches;\n    motionMediaQuery.addEventListener(\"change\", setReducedMotionPreferences);\n    setReducedMotionPreferences();\n  } else {\n    prefersReducedMotion.current = false;\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/VisualElement.mjs\nvar propEventHandlers = [\n  \"AnimationStart\",\n  \"AnimationComplete\",\n  \"Update\",\n  \"BeforeLayoutMeasure\",\n  \"LayoutMeasure\",\n  \"LayoutAnimationStart\",\n  \"LayoutAnimationComplete\"\n];\nvar featureDefinitions = {};\nfunction setFeatureDefinitions(definitions) {\n  featureDefinitions = definitions;\n}\nfunction getFeatureDefinitions() {\n  return featureDefinitions;\n}\nvar VisualElement = class {\n  /**\n   * This method takes React props and returns found MotionValues. For example, HTML\n   * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n   *\n   * This isn't an abstract method as it needs calling in the constructor, but it is\n   * intended to be one.\n   */\n  scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {\n    return {};\n  }\n  constructor({ parent, props, presenceContext, reducedMotionConfig, skipAnimations, blockInitialAnimation, visualState }, options = {}) {\n    this.current = null;\n    this.children = /* @__PURE__ */ new Set();\n    this.isVariantNode = false;\n    this.isControllingVariants = false;\n    this.shouldReduceMotion = null;\n    this.shouldSkipAnimations = false;\n    this.values = /* @__PURE__ */ new Map();\n    this.KeyframeResolver = KeyframeResolver;\n    this.features = {};\n    this.valueSubscriptions = /* @__PURE__ */ new Map();\n    this.prevMotionValues = {};\n    this.hasBeenMounted = false;\n    this.events = {};\n    this.propEventSubscriptions = {};\n    this.notifyUpdate = () => this.notify(\"Update\", this.latestValues);\n    this.render = () => {\n      if (!this.current)\n        return;\n      this.triggerBuild();\n      this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n    };\n    this.renderScheduledAt = 0;\n    this.scheduleRender = () => {\n      const now2 = time.now();\n      if (this.renderScheduledAt < now2) {\n        this.renderScheduledAt = now2;\n        frame.render(this.render, false, true);\n      }\n    };\n    const { latestValues, renderState } = visualState;\n    this.latestValues = latestValues;\n    this.baseTarget = { ...latestValues };\n    this.initialValues = props.initial ? { ...latestValues } : {};\n    this.renderState = renderState;\n    this.parent = parent;\n    this.props = props;\n    this.presenceContext = presenceContext;\n    this.depth = parent ? parent.depth + 1 : 0;\n    this.reducedMotionConfig = reducedMotionConfig;\n    this.skipAnimationsConfig = skipAnimations;\n    this.options = options;\n    this.blockInitialAnimation = Boolean(blockInitialAnimation);\n    this.isControllingVariants = isControllingVariants(props);\n    this.isVariantNode = isVariantNode(props);\n    if (this.isVariantNode) {\n      this.variantChildren = /* @__PURE__ */ new Set();\n    }\n    this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n    const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);\n    for (const key in initialMotionValues) {\n      const value = initialMotionValues[key];\n      if (latestValues[key] !== void 0 && isMotionValue(value)) {\n        value.set(latestValues[key]);\n      }\n    }\n  }\n  mount(instance) {\n    if (this.hasBeenMounted) {\n      for (const key in this.initialValues) {\n        this.values.get(key)?.jump(this.initialValues[key]);\n        this.latestValues[key] = this.initialValues[key];\n      }\n    }\n    this.current = instance;\n    visualElementStore.set(instance, this);\n    if (this.projection && !this.projection.instance) {\n      this.projection.mount(instance);\n    }\n    if (this.isVariantNode && !this.isControllingVariants) {\n      let node = this;\n      do\n        node = node.props.inherit !== false && node.parent;\n      while (node && !node.isVariantNode);\n      if (node) {\n        const { variantChildren } = node;\n        variantChildren.add(this);\n        this.removeFromVariantTree = () => variantChildren.delete(this);\n      }\n    }\n    this.values.forEach((value, key) => this.bindToMotionValue(key, value));\n    if (this.reducedMotionConfig === \"never\") {\n      this.shouldReduceMotion = false;\n    } else if (this.reducedMotionConfig === \"always\") {\n      this.shouldReduceMotion = true;\n    } else {\n      if (!hasReducedMotionListener.current) {\n        initPrefersReducedMotion();\n      }\n      this.shouldReduceMotion = prefersReducedMotion.current;\n    }\n    if (false) {\n      warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n    }\n    this.shouldSkipAnimations = this.skipAnimationsConfig ?? false;\n    this.parent?.addChild(this);\n    this.update(this.props, this.presenceContext);\n    this.hasBeenMounted = true;\n  }\n  unmount() {\n    this.projection && this.projection.unmount();\n    cancelFrame(this.notifyUpdate);\n    cancelFrame(this.render);\n    this.valueSubscriptions.forEach((remove) => remove());\n    this.valueSubscriptions.clear();\n    this.removeFromVariantTree && this.removeFromVariantTree();\n    this.parent?.removeChild(this);\n    for (const key in this.events) {\n      this.events[key].clear();\n    }\n    for (const key in this.features) {\n      const feature = this.features[key];\n      if (feature) {\n        feature.unmount();\n        feature.isMounted = false;\n      }\n    }\n    this.current = null;\n  }\n  addChild(child) {\n    this.children.add(child);\n    this.enteringChildren ?? (this.enteringChildren = /* @__PURE__ */ new Set());\n    this.enteringChildren.add(child);\n  }\n  removeChild(child) {\n    this.children.delete(child);\n    this.enteringChildren && this.enteringChildren.delete(child);\n  }\n  bindToMotionValue(key, value) {\n    if (this.valueSubscriptions.has(key)) {\n      this.valueSubscriptions.get(key)();\n    }\n    if (value.accelerate && acceleratedValues.has(key) && this.current instanceof HTMLElement) {\n      const { factory, keyframes: keyframes2, times, ease: ease2, duration } = value.accelerate;\n      const animation = new NativeAnimation({\n        element: this.current,\n        name: key,\n        keyframes: keyframes2,\n        times,\n        ease: ease2,\n        duration: secondsToMilliseconds(duration)\n      });\n      const cleanup = factory(animation);\n      this.valueSubscriptions.set(key, () => {\n        cleanup();\n        animation.cancel();\n      });\n      return;\n    }\n    const valueIsTransform = transformProps.has(key);\n    if (valueIsTransform && this.onBindTransform) {\n      this.onBindTransform();\n    }\n    const removeOnChange = value.on(\"change\", (latestValue) => {\n      this.latestValues[key] = latestValue;\n      this.props.onUpdate && frame.preRender(this.notifyUpdate);\n      if (valueIsTransform) {\n        if (this.projection) {\n          this.projection.isTransformDirty = true;\n        }\n        transformGroups.get(this.current)?.check();\n      }\n      this.scheduleRender();\n    });\n    let removeSyncCheck;\n    if (typeof window !== \"undefined\" && window.MotionCheckAppearSync) {\n      removeSyncCheck = window.MotionCheckAppearSync(this, key, value);\n    }\n    this.valueSubscriptions.set(key, () => {\n      removeOnChange();\n      if (removeSyncCheck)\n        removeSyncCheck();\n    });\n  }\n  sortNodePosition(other) {\n    if (!this.current || !other.current || !this.sortInstanceNodePosition || this.type !== other.type) {\n      return 0;\n    }\n    return this.sortInstanceNodePosition(this.current, other.current);\n  }\n  updateFeatures() {\n    let key = \"animation\";\n    for (key in featureDefinitions) {\n      const featureDefinition = featureDefinitions[key];\n      if (!featureDefinition)\n        continue;\n      const { isEnabled, Feature: FeatureConstructor } = featureDefinition;\n      if (!this.features[key] && FeatureConstructor && isEnabled(this.props)) {\n        this.features[key] = new FeatureConstructor(this);\n      }\n      if (this.features[key]) {\n        const feature = this.features[key];\n        if (feature.isMounted) {\n          feature.update();\n        } else {\n          feature.mount();\n          feature.isMounted = true;\n        }\n      }\n    }\n  }\n  triggerBuild() {\n    this.build(this.renderState, this.latestValues, this.props);\n  }\n  /**\n   * Measure the current viewport box with or without transforms.\n   * Only measures axis-aligned boxes, rotate and skew must be manually\n   * removed with a re-render to work.\n   */\n  measureViewportBox() {\n    return this.current ? this.measureInstanceViewportBox(this.current, this.props) : createBox();\n  }\n  getStaticValue(key) {\n    return this.latestValues[key];\n  }\n  setStaticValue(key, value) {\n    this.latestValues[key] = value;\n  }\n  /**\n   * Update the provided props. Ensure any newly-added motion values are\n   * added to our map, old ones removed, and listeners updated.\n   */\n  update(props, presenceContext) {\n    const { transformTemplate, onUpdate } = this.props;\n    if (props.transformTemplate || transformTemplate) {\n      this.scheduleRender();\n    }\n    if (props.transformTemplate && !transformTemplate || props.onUpdate && !onUpdate) {\n      transformGroups.get(this.current)?.demote();\n    }\n    this.prevProps = this.props;\n    this.props = props;\n    this.prevPresenceContext = this.presenceContext;\n    this.presenceContext = presenceContext;\n    for (let i = 0; i < propEventHandlers.length; i++) {\n      const key = propEventHandlers[i];\n      if (this.propEventSubscriptions[key]) {\n        this.propEventSubscriptions[key]();\n        delete this.propEventSubscriptions[key];\n      }\n      const listenerName = \"on\" + key;\n      const listener = props[listenerName];\n      if (listener) {\n        this.propEventSubscriptions[key] = this.on(key, listener);\n      }\n    }\n    this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps || {}, this), this.prevMotionValues);\n    if (this.handleChildMotionValue) {\n      this.handleChildMotionValue();\n    }\n  }\n  getProps() {\n    return this.props;\n  }\n  /**\n   * Returns the variant definition with a given name.\n   */\n  getVariant(name) {\n    return this.props.variants ? this.props.variants[name] : void 0;\n  }\n  /**\n   * Returns the defined default transition on this component.\n   */\n  getDefaultTransition() {\n    return this.props.transition;\n  }\n  getTransformPagePoint() {\n    return this.props.transformPagePoint;\n  }\n  /**\n   * Add a motion value and bind it to this visual element.\n   */\n  addValue(key, value) {\n    const existingValue = this.values.get(key);\n    if (value !== existingValue) {\n      if (existingValue)\n        this.removeValue(key);\n      this.bindToMotionValue(key, value);\n      this.values.set(key, value);\n      const latest = value.get();\n      if (latest !== void 0)\n        this.latestValues[key] = latest;\n    }\n  }\n  /**\n   * Remove a motion value and unbind any active subscriptions.\n   */\n  removeValue(key) {\n    this.values.delete(key);\n    const unsubscribe = this.valueSubscriptions.get(key);\n    if (unsubscribe) {\n      unsubscribe();\n      this.valueSubscriptions.delete(key);\n    }\n    delete this.latestValues[key];\n    this.removeValueFromRenderState(key, this.renderState);\n  }\n  /**\n   * Check whether we have a motion value for this key\n   */\n  hasValue(key) {\n    return this.values.has(key);\n  }\n  getValue(key, defaultValue) {\n    if (this.props.values && this.props.values[key]) {\n      return this.props.values[key];\n    }\n    let value = this.values.get(key);\n    if (value === void 0 && defaultValue !== void 0) {\n      value = motionValue(defaultValue ?? this.getDefaultValue?.(key), {\n        owner: this\n      });\n      this.addValue(key, value);\n    }\n    return value;\n  }\n  /**\n   * If we're trying to animate to a previously unencountered value,\n   * we need to check for it in our state and as a last resort read it\n   * directly from the instance (which might have performance implications).\n   */\n  readValue(key, target) {\n    let value = this.latestValues[key] !== void 0 || !this.current ? this.latestValues[key] : this.getBaseTargetFromProps(this.props, key) ?? this.readValueFromInstance(this.current, key, this.options);\n    if (value !== void 0 && value !== null) {\n      if (typeof value === \"string\" && (isNumericalString(value) || isZeroValueString(value))) {\n        value = parseFloat(value);\n      } else if (\n        /**\n         * If the value as read isn't animatable (e.g. \"none\") but\n         * the target is, derive an animatable none from the target.\n         * A value is animatable if it's a number or contains a\n         * number or color, which is cheaper to check than trying\n         * every value type in turn.\n         */\n        typeof value !== \"number\" && !complex.test(value) && complex.test(target)\n      ) {\n        value = getAnimatableNone2(key, target);\n      }\n      this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);\n    }\n    return isMotionValue(value) ? value.get() : value;\n  }\n  /**\n   * Set the base target to later animate back to. This is currently\n   * only hydrated on creation and when we first read a value.\n   */\n  setBaseTarget(key, value) {\n    this.baseTarget[key] = value;\n  }\n  on(eventName, callback) {\n    if (!this.events[eventName]) {\n      this.events[eventName] = new SubscriptionManager();\n    }\n    return this.events[eventName].add(callback);\n  }\n  notify(eventName, ...args) {\n    if (this.events[eventName]) {\n      this.events[eventName].notify(...args);\n    }\n  }\n  scheduleRenderMicrotask() {\n    microtask.render(this.render);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs\nvar DOMVisualElement = class extends VisualElement {\n  constructor() {\n    super(...arguments);\n    this.KeyframeResolver = DOMKeyframesResolver;\n  }\n  sortInstanceNodePosition(a, b) {\n    return a.compareDocumentPosition(b) & 2 ? 1 : -1;\n  }\n  getBaseTargetFromProps(props, key) {\n    const style2 = props.style;\n    return style2 ? style2[key] : void 0;\n  }\n  removeValueFromRenderState(key, { vars, style: style2 }) {\n    delete vars[key];\n    delete style2[key];\n  }\n  handleChildMotionValue() {\n    if (this.childSubscription) {\n      this.childSubscription();\n      delete this.childSubscription;\n    }\n    const { children } = this.props;\n    if (isMotionValue(children)) {\n      this.childSubscription = children.on(\"change\", (latest) => {\n        if (this.current) {\n          this.current.textContent = `${latest}`;\n        }\n      });\n    }\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/Feature.mjs\nvar Feature = class {\n  constructor(node) {\n    this.isMounted = false;\n    this.node = node;\n  }\n  update() {\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/html/utils/render.mjs\nfunction renderHTML(element, { style: style2, vars }, styleProp, projection) {\n  const elementStyle = element.style;\n  let key;\n  for (key in style2) {\n    elementStyle[key] = style2[key];\n  }\n  projection?.applyProjectionStyles(elementStyle, styleProp);\n  for (key in vars) {\n    elementStyle.setProperty(key, vars[key]);\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs\nvar scaleCorrectors = {};\nfunction addScaleCorrector(correctors) {\n  for (const key in correctors) {\n    scaleCorrectors[key] = correctors[key];\n    if (isCSSVariableName(key)) {\n      scaleCorrectors[key].isCSSVariable = true;\n    }\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs\nfunction isForcedMotionValue(key, { layout: layout2, layoutId }) {\n  return transformProps.has(key) || key.startsWith(\"origin\") || (layout2 || layoutId !== void 0) && (!!scaleCorrectors[key] || key === \"opacity\");\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs\nfunction scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n  const style2 = props.style;\n  const prevStyle = prevProps?.style;\n  const newValues = {};\n  if (!style2)\n    return newValues;\n  for (const key in style2) {\n    if (isMotionValue(style2[key]) || prevStyle && isMotionValue(prevStyle[key]) || isForcedMotionValue(key, props) || visualElement?.getValue(key)?.liveStyle !== void 0) {\n      newValues[key] = style2[key];\n    }\n  }\n  return newValues;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs\nfunction getComputedStyle3(element) {\n  return window.getComputedStyle(element);\n}\nvar HTMLVisualElement = class extends DOMVisualElement {\n  constructor() {\n    super(...arguments);\n    this.type = \"html\";\n    this.renderInstance = renderHTML;\n  }\n  mount(instance) {\n    invariant(Boolean(instance.style), \"motion.create() components must forward their ref to a HTML or SVG element\", \"custom-component-ref\");\n    super.mount(instance);\n  }\n  readValueFromInstance(instance, key) {\n    if (transformProps.has(key)) {\n      return this.projection?.isProjecting ? defaultTransformValue(key) : readTransformValue(instance, key);\n    } else {\n      const computedStyle = getComputedStyle3(instance);\n      const value = (isCSSVariableName(key) ? computedStyle.getPropertyValue(key) : computedStyle[key]) || 0;\n      return typeof value === \"string\" ? value.trim() : value;\n    }\n  }\n  measureInstanceViewportBox(instance, { transformPagePoint }) {\n    return measureViewportBox(instance, transformPagePoint);\n  }\n  build(renderState, latestValues, props) {\n    buildHTMLStyles(renderState, latestValues, props.transformTemplate);\n  }\n  scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n    return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/object/ObjectVisualElement.mjs\nfunction isObjectKey(key, object) {\n  return key in object;\n}\nvar ObjectVisualElement = class extends VisualElement {\n  constructor() {\n    super(...arguments);\n    this.type = \"object\";\n  }\n  readValueFromInstance(instance, key) {\n    if (isObjectKey(key, instance)) {\n      const value = instance[key];\n      if (typeof value === \"string\" || typeof value === \"number\") {\n        return value;\n      }\n    }\n    return void 0;\n  }\n  getBaseTargetFromProps() {\n    return void 0;\n  }\n  removeValueFromRenderState(key, renderState) {\n    delete renderState.output[key];\n  }\n  measureInstanceViewportBox() {\n    return createBox();\n  }\n  build(renderState, latestValues) {\n    Object.assign(renderState.output, latestValues);\n  }\n  renderInstance(instance, { output }) {\n    Object.assign(instance, output);\n  }\n  sortInstanceNodePosition() {\n    return 0;\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs\nvar camelCaseAttributes = /* @__PURE__ */ new Set([\n  \"baseFrequency\",\n  \"diffuseConstant\",\n  \"kernelMatrix\",\n  \"kernelUnitLength\",\n  \"keySplines\",\n  \"keyTimes\",\n  \"limitingConeAngle\",\n  \"markerHeight\",\n  \"markerWidth\",\n  \"numOctaves\",\n  \"targetX\",\n  \"targetY\",\n  \"surfaceScale\",\n  \"specularConstant\",\n  \"specularExponent\",\n  \"stdDeviation\",\n  \"tableValues\",\n  \"viewBox\",\n  \"gradientTransform\",\n  \"pathLength\",\n  \"startOffset\",\n  \"textLength\",\n  \"lengthAdjust\"\n]);\n\n// ../../../node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.mjs\nvar isSVGTag = (tag) => typeof tag === \"string\" && tag.toLowerCase() === \"svg\";\n\n// ../../../node_modules/motion-dom/dist/es/render/svg/utils/render.mjs\nfunction renderSVG(element, renderState, _styleProp, projection) {\n  renderHTML(element, renderState, void 0, projection);\n  for (const key in renderState.attrs) {\n    element.setAttribute(!camelCaseAttributes.has(key) ? camelToDash(key) : key, renderState.attrs[key]);\n  }\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs\nfunction scrapeMotionValuesFromProps2(props, prevProps, visualElement) {\n  const newValues = scrapeMotionValuesFromProps(props, prevProps, visualElement);\n  for (const key in props) {\n    if (key !== \"children\" && (isMotionValue(props[key]) || isMotionValue(prevProps[key]))) {\n      const targetKey = transformPropOrder.indexOf(key) !== -1 ? \"attr\" + key.charAt(0).toUpperCase() + key.substring(1) : key;\n      newValues[targetKey] = props[key];\n    }\n  }\n  return newValues;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs\nvar SVGVisualElement = class extends DOMVisualElement {\n  constructor() {\n    super(...arguments);\n    this.type = \"svg\";\n    this.isSVGTag = false;\n    this.measureInstanceViewportBox = createBox;\n  }\n  getBaseTargetFromProps(props, key) {\n    return transformProps.has(key) ? super.getBaseTargetFromProps(props, key) ?? defaultTransformValue(key) : props[key];\n  }\n  /**\n   * An independent transform's origin is never read from the DOM, so it\n   * starts from its latest or default value and renders on mount.\n   */\n  getDefaultValue(key) {\n    return transformProps.has(key) ? this.latestValues[key] ?? defaultTransformValue(key) : void 0;\n  }\n  readValueFromInstance(instance, key) {\n    if (transformProps.has(key)) {\n      const defaultType = getDefaultValueType(key);\n      return defaultType ? defaultType.default || 0 : 0;\n    }\n    if (cssStyleProperties.includes(key)) {\n      const computedStyle = getComputedStyle(instance);\n      const value = computedStyle[key];\n      if (typeof value === \"string\" && value)\n        return value.trim();\n    }\n    key = !camelCaseAttributes.has(key) ? camelToDash(key) : key;\n    return instance.getAttribute(key);\n  }\n  scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n    return scrapeMotionValuesFromProps2(props, prevProps, visualElement);\n  }\n  build(renderState, latestValues, props) {\n    buildSVGAttrs(renderState, latestValues, this.isSVGTag, props.transformTemplate, props.style);\n  }\n  renderInstance(instance, renderState, styleProp, projection) {\n    renderSVG(instance, renderState, styleProp, projection);\n  }\n  mount(instance) {\n    this.isSVGTag = isSVGTag(instance.tagName);\n    super.mount(instance);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs\nfunction shallowCompare(next2, prev) {\n  if (!Array.isArray(prev))\n    return false;\n  const prevLength = prev.length;\n  if (prevLength !== next2.length)\n    return false;\n  for (let i = 0; i < prevLength; i++) {\n    if (prev[i] !== next2[i])\n      return false;\n  }\n  return true;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/animation-state.mjs\nvar reversePriorityOrder = [...variantPriorityOrder].reverse();\nfunction createAnimationState(visualElement) {\n  let animate2 = (animations2) => Promise.all(animations2.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n  let state = createState();\n  let isInitialRender = true;\n  let wasReset = false;\n  function animateChanges(changedActiveType) {\n    const { props, parent, manuallyAnimateOnMount } = visualElement;\n    const isMounting = isInitialRender || wasReset;\n    const animations2 = [];\n    const removedKeys = /* @__PURE__ */ new Set();\n    let encounteredKeys = {};\n    let removedVariantIndex = Infinity;\n    let source = visualElement;\n    do\n      source = source.props.inherit !== false && source.parent;\n    while (source && !source.isControllingVariants);\n    reversePriorityOrder.forEach((type, i) => {\n      const typeState = state[type];\n      const ownProp = props[type];\n      const inheritedProp = source && source.props[type];\n      const prop = ownProp !== void 0 ? ownProp : isVariantLabel(inheritedProp) || inheritedProp === false ? inheritedProp : void 0;\n      const propIsVariant = isVariantLabel(prop);\n      const activeDelta = type === changedActiveType ? typeState.isActive : null;\n      if (activeDelta === false)\n        removedVariantIndex = i;\n      const isInherited = propIsVariant && ownProp === void 0 && !(isMounting && manuallyAnimateOnMount);\n      typeState.protectedKeys = { ...encounteredKeys };\n      if (!typeState.isActive && activeDelta === null || !prop && !typeState.prevProp || isAnimationControls(prop) || typeof prop === \"boolean\") {\n        return;\n      }\n      if (type === \"exit\" && typeState.isActive && activeDelta !== true) {\n        encounteredKeys = {\n          ...encounteredKeys,\n          ...typeState.prevResolvedValues\n        };\n        return;\n      }\n      const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n      let shouldAnimateType = variantDidChange || propIsVariant && (activeDelta && !isInherited || i > removedVariantIndex);\n      let handledRemovedValues = false;\n      const definitionList = Array.isArray(prop) ? prop : [prop];\n      let resolvedValues = {};\n      if (activeDelta !== false) {\n        for (const definition of definitionList) {\n          const { transition, transitionEnd, ...target } = resolveVariant(visualElement, definition, getTypeCustom(visualElement, type)) || {};\n          resolvedValues = {\n            ...resolvedValues,\n            ...target,\n            ...transitionEnd\n          };\n        }\n      }\n      const { prevResolvedValues } = typeState;\n      for (const key in { ...prevResolvedValues, ...resolvedValues }) {\n        if (key in encounteredKeys)\n          continue;\n        const next2 = resolvedValues[key];\n        const prev = prevResolvedValues[key];\n        const valueHasChanged = Array.isArray(next2) && Array.isArray(prev) ? !shallowCompare(next2, prev) || variantDidChange : next2 !== prev;\n        if (valueHasChanged && (next2 === void 0 || next2 === null)) {\n          removedKeys.add(key);\n        } else if (valueHasChanged || next2 !== void 0 && removedKeys.has(key)) {\n          shouldAnimateType = true;\n          if (removedKeys.delete(key))\n            handledRemovedValues = true;\n          typeState.needsAnimating[key] = true;\n          const motionValue2 = visualElement.getValue(key);\n          if (motionValue2)\n            motionValue2.liveStyle = false;\n        } else {\n          typeState.protectedKeys[key] = true;\n        }\n      }\n      typeState.prevProp = prop;\n      typeState.prevResolvedValues = resolvedValues;\n      if (typeState.isActive) {\n        encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n      }\n      if (shouldAnimateType && (!(isInherited && variantDidChange) || handledRemovedValues)) {\n        for (const animation of definitionList) {\n          const options = { type };\n          if (typeof animation === \"string\" && isMounting && manuallyAnimateOnMount && parent?.enteringChildren) {\n            const delayChildren = resolveVariant(parent, animation)?.transition?.delayChildren;\n            options.delay = calcChildStagger(parent.enteringChildren, visualElement, delayChildren);\n          }\n          animations2.push({ animation, options });\n        }\n      }\n    });\n    if (removedKeys.size) {\n      const { initial } = props;\n      const fallbackAnimation = {};\n      const resolvedInitial = typeof initial !== \"boolean\" && resolveVariant(visualElement, Array.isArray(initial) ? initial[0] : initial, visualElement.presenceContext?.custom);\n      if (resolvedInitial && resolvedInitial.transition) {\n        fallbackAnimation.transition = resolvedInitial.transition;\n      }\n      removedKeys.forEach((key) => {\n        const motionValue2 = visualElement.getValue(key);\n        if (motionValue2)\n          motionValue2.liveStyle = true;\n        const fromInitial = resolvedInitial && !Array.isArray(initial) ? resolvedInitial[key] : void 0;\n        const fromProps = visualElement.getBaseTargetFromProps(props, key);\n        fallbackAnimation[key] = (fromInitial !== void 0 ? fromInitial : fromProps !== void 0 && !isMotionValue(fromProps) ? fromProps : visualElement.initialValues[key] === void 0 ? visualElement.baseTarget[key] : void 0) ?? null;\n        if (false) {\n          delete visualElement.initialValues[key];\n          motionValue2?.stop();\n          visualElement.baseTarget[key] = motionValue2?.get();\n        }\n      });\n      animations2.push({ animation: fallbackAnimation });\n    }\n    const blockAnimation = isMounting && visualElement.blockInitialAnimation || isInitialRender && !manuallyAnimateOnMount && (props.initial === false || props.initial === props.animate);\n    isInitialRender = wasReset = false;\n    return !blockAnimation && animations2.length ? animate2(animations2) : Promise.resolve();\n  }\n  function setActive(type, isActive) {\n    if (state[type].isActive === isActive)\n      return Promise.resolve();\n    visualElement.variantChildren?.forEach((child) => child.animationState?.setActive(type, isActive));\n    state[type].isActive = isActive;\n    const animations2 = animateChanges(type);\n    for (const key in state) {\n      state[key].protectedKeys = {};\n    }\n    return animations2;\n  }\n  return {\n    animateChanges,\n    setActive,\n    /**\n     * Allows tests to inject a mocked animate function.\n     * @internal\n     */\n    setAnimateFunction: (makeAnimator) => {\n      animate2 = makeAnimator(visualElement);\n    },\n    getState: () => state,\n    reset: () => {\n      state = createState();\n      wasReset = true;\n    }\n  };\n}\nfunction checkVariantsDidChange(prev, next2) {\n  if (typeof next2 === \"string\") {\n    return next2 !== prev;\n  } else if (Array.isArray(next2)) {\n    return !shallowCompare(next2, prev);\n  }\n  return false;\n}\nfunction createState() {\n  const state = {};\n  for (const type of variantPriorityOrder) {\n    state[type] = {\n      isActive: type === \"animate\",\n      protectedKeys: {},\n      needsAnimating: {},\n      prevResolvedValues: {}\n    };\n  }\n  return state;\n}\n\n// ../../../node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs\nvar numVariantProps = variantProps.length;\nfunction getVariantContext(visualElement) {\n  if (!visualElement)\n    return void 0;\n  if (!visualElement.isControllingVariants) {\n    const context2 = visualElement.parent ? getVariantContext(visualElement.parent) || {} : {};\n    if (visualElement.props.initial !== void 0) {\n      context2.initial = visualElement.props.initial;\n    }\n    return context2;\n  }\n  const context = {};\n  for (let i = 0; i < numVariantProps; i++) {\n    const name = variantProps[i];\n    const prop = visualElement.props[name];\n    if (isVariantLabel(prop) || prop === false) {\n      context[name] = prop;\n    }\n  }\n  return context;\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/geometry/copy.mjs\nfunction copyAxisInto(axis, originAxis) {\n  axis.min = originAxis.min;\n  axis.max = originAxis.max;\n}\nfunction copyBoxInto(box, originBox) {\n  copyAxisInto(box.x, originBox.x);\n  copyAxisInto(box.y, originBox.y);\n}\nfunction copyAxisDeltaInto(delta, originDelta) {\n  delta.translate = originDelta.translate;\n  delta.scale = originDelta.scale;\n  delta.originPoint = originDelta.originPoint;\n  delta.origin = originDelta.origin;\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs\nvar SCALE_PRECISION = 1e-4;\nvar SCALE_MIN = 1 - SCALE_PRECISION;\nvar SCALE_MAX = 1 + SCALE_PRECISION;\nvar TRANSLATE_PRECISION = 0.01;\nvar TRANSLATE_MIN = 0 - TRANSLATE_PRECISION;\nvar TRANSLATE_MAX = 0 + TRANSLATE_PRECISION;\nfunction calcLength(axis) {\n  return axis.max - axis.min;\n}\nfunction isNear(value, target, maxDistance) {\n  return Math.abs(value - target) <= maxDistance;\n}\nfunction calcAxisDelta(delta, source, target, origin = 0.5) {\n  delta.origin = origin;\n  delta.originPoint = mixNumber(source.min, source.max, delta.origin);\n  delta.scale = calcLength(target) / calcLength(source);\n  delta.translate = mixNumber(target.min, target.max, delta.origin) - delta.originPoint;\n  if (delta.scale >= SCALE_MIN && delta.scale <= SCALE_MAX || isNaN(delta.scale)) {\n    delta.scale = 1;\n  }\n  if (delta.translate >= TRANSLATE_MIN && delta.translate <= TRANSLATE_MAX || isNaN(delta.translate)) {\n    delta.translate = 0;\n  }\n}\nfunction calcBoxDelta(delta, source, target, origin) {\n  calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : void 0);\n  calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : void 0);\n}\nfunction calcRelativeAxis(target, relative, parent, anchor = 0) {\n  const anchorPoint = anchor ? mixNumber(parent.min, parent.max, anchor) : parent.min;\n  target.min = anchorPoint + relative.min;\n  target.max = target.min + calcLength(relative);\n}\nfunction calcRelativeBox(target, relative, parent, anchor) {\n  calcRelativeAxis(target.x, relative.x, parent.x, anchor?.x);\n  calcRelativeAxis(target.y, relative.y, parent.y, anchor?.y);\n}\nfunction calcRelativeAxisPosition(target, layout2, parent, anchor = 0) {\n  const anchorPoint = anchor ? mixNumber(parent.min, parent.max, anchor) : parent.min;\n  target.min = layout2.min - anchorPoint;\n  target.max = target.min + calcLength(layout2);\n}\nfunction calcRelativePosition(target, layout2, parent, anchor) {\n  calcRelativeAxisPosition(target.x, layout2.x, parent.x, anchor?.x);\n  calcRelativeAxisPosition(target.y, layout2.y, parent.y, anchor?.y);\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs\nfunction removePointDelta(point, translate, scale2, originPoint, boxScale) {\n  point -= translate;\n  point = scalePoint(point, 1 / scale2, originPoint);\n  if (boxScale !== void 0) {\n    point = scalePoint(point, 1 / boxScale, originPoint);\n  }\n  return point;\n}\nfunction removeAxisDelta(axis, translate = 0, scale2 = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {\n  if (percent.test(translate)) {\n    translate = parseFloat(translate);\n    const relativeProgress = mixNumber(sourceAxis.min, sourceAxis.max, translate / 100);\n    translate = relativeProgress - sourceAxis.min;\n  }\n  if (typeof translate !== \"number\")\n    return;\n  let originPoint = mixNumber(originAxis.min, originAxis.max, origin);\n  if (axis === originAxis)\n    originPoint -= translate;\n  axis.min = removePointDelta(axis.min, translate, scale2, originPoint, boxScale);\n  axis.max = removePointDelta(axis.max, translate, scale2, originPoint, boxScale);\n}\nfunction removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {\n  removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);\n}\nvar xKeys = [\"x\", \"scaleX\", \"originX\"];\nvar yKeys = [\"y\", \"scaleY\", \"originY\"];\nfunction removeBoxTransforms(box, transforms, originBox, sourceBox) {\n  removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : void 0, sourceBox ? sourceBox.x : void 0);\n  removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : void 0, sourceBox ? sourceBox.y : void 0);\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/geometry/utils.mjs\nfunction isAxisDeltaZero(delta) {\n  return delta.translate === 0 && delta.scale === 1;\n}\nfunction isDeltaZero(delta) {\n  return isAxisDeltaZero(delta.x) && isAxisDeltaZero(delta.y);\n}\nfunction axisEquals(a, b) {\n  return a.min === b.min && a.max === b.max;\n}\nfunction boxEquals(a, b) {\n  return axisEquals(a.x, b.x) && axisEquals(a.y, b.y);\n}\nfunction axisEqualsRounded(a, b) {\n  return Math.round(a.min) === Math.round(b.min) && Math.round(a.max) === Math.round(b.max);\n}\nfunction boxEqualsRounded(a, b) {\n  return axisEqualsRounded(a.x, b.x) && axisEqualsRounded(a.y, b.y);\n}\nfunction aspectRatio(box) {\n  return calcLength(box.x) / calcLength(box.y);\n}\nfunction axisDeltaEquals(a, b) {\n  return a.translate === b.translate && a.scale === b.scale && a.originPoint === b.originPoint;\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs\nfunction eachAxis(callback) {\n  return [callback(\"x\"), callback(\"y\")];\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs\nfunction pixelsToPercent(pixels, axis) {\n  if (axis.max === axis.min)\n    return 0;\n  return pixels / (axis.max - axis.min) * 100;\n}\nvar correctBorderRadius = {\n  correct: (latest, node) => {\n    if (!node.target)\n      return latest;\n    if (typeof latest === \"string\") {\n      if (px.test(latest)) {\n        latest = parseFloat(latest);\n      } else {\n        return latest;\n      }\n    }\n    const x = pixelsToPercent(latest, node.target.x);\n    const y = pixelsToPercent(latest, node.target.y);\n    return `${x}% ${y}%`;\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs\nvar correctBoxShadow = {\n  correct: (latest, { treeScale, projectionDelta }) => {\n    const original = latest;\n    const shadow = complex.parse(latest);\n    if (shadow.length > 5)\n      return original;\n    const template = complex.createTransformer(latest);\n    const offset = typeof shadow[0] !== \"number\" ? 1 : 0;\n    const xScale = projectionDelta.x.scale * treeScale.x;\n    const yScale = projectionDelta.y.scale * treeScale.y;\n    shadow[0 + offset] /= xScale;\n    shadow[1 + offset] /= yScale;\n    const averageScale = mixNumber(xScale, yScale, 0.5);\n    if (typeof shadow[2 + offset] === \"number\")\n      shadow[2 + offset] /= averageScale;\n    if (typeof shadow[3 + offset] === \"number\")\n      shadow[3 + offset] /= averageScale;\n    return template(shadow);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/projection/styles/transform.mjs\nfunction buildProjectionTransform(delta, treeScale, latestTransform) {\n  let transform2 = \"\";\n  const xTranslate = delta.x.translate / treeScale.x;\n  const yTranslate = delta.y.translate / treeScale.y;\n  const zTranslate = latestTransform?.z || 0;\n  if (xTranslate || yTranslate || zTranslate) {\n    transform2 = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;\n  }\n  if (treeScale.x !== 1 || treeScale.y !== 1) {\n    transform2 += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;\n  }\n  if (latestTransform) {\n    const { transformPerspective, rotate: rotate2, pathRotation, rotateX, rotateY, skewX, skewY } = latestTransform;\n    if (transformPerspective)\n      transform2 = `perspective(${transformPerspective}px) ${transform2}`;\n    if (rotate2)\n      transform2 += `rotate(${rotate2}deg) `;\n    if (pathRotation)\n      transform2 += `rotate(${pathRotation}deg) `;\n    if (rotateX)\n      transform2 += `rotateX(${rotateX}deg) `;\n    if (rotateY)\n      transform2 += `rotateY(${rotateY}deg) `;\n    if (skewX)\n      transform2 += `skewX(${skewX}deg) `;\n    if (skewY)\n      transform2 += `skewY(${skewY}deg) `;\n  }\n  const elementScaleX = delta.x.scale * treeScale.x;\n  const elementScaleY = delta.y.scale * treeScale.y;\n  if (elementScaleX !== 1 || elementScaleY !== 1) {\n    transform2 += `scale(${elementScaleX}, ${elementScaleY})`;\n  }\n  return transform2 || \"none\";\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs\nvar numBorders = cornerRadiusProps.length;\nvar isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow2, lead, progress2, shouldCrossfadeOpacity, isOnlyMember) {\n  if (shouldCrossfadeOpacity) {\n    target.opacity = mixNumber(0, lead.opacity ?? 1, easeCrossfadeIn(progress2));\n    target.opacityExit = mixNumber(follow2.opacity ?? 1, 0, easeCrossfadeOut(progress2));\n  } else if (isOnlyMember) {\n    target.opacity = mixNumber(follow2.opacity ?? 1, lead.opacity ?? 1, progress2);\n  }\n  for (let i = 0; i < numBorders; i++) {\n    const borderLabel = cornerRadiusProps[i];\n    let followRadius = getRadius(follow2, borderLabel);\n    let leadRadius = getRadius(lead, borderLabel);\n    if (followRadius === void 0 && leadRadius === void 0)\n      continue;\n    followRadius || (followRadius = 0);\n    leadRadius || (leadRadius = 0);\n    const canMix = followRadius === 0 || leadRadius === 0 || isPx(followRadius) === isPx(leadRadius);\n    if (canMix) {\n      target[borderLabel] = Math.max(mixNumber(asNumber(followRadius), asNumber(leadRadius), progress2), 0);\n      if (percent.test(leadRadius) || percent.test(followRadius)) {\n        target[borderLabel] += \"%\";\n      }\n    } else {\n      target[borderLabel] = leadRadius;\n    }\n  }\n  if (follow2.rotate || lead.rotate) {\n    target.rotate = mixNumber(follow2.rotate || 0, lead.rotate || 0, progress2);\n  }\n}\nfunction getRadius(values, radiusName) {\n  return values[radiusName] !== void 0 ? values[radiusName] : values.borderRadius;\n}\nvar easeCrossfadeIn = /* @__PURE__ */ compress(0, 0.5, circOut);\nvar easeCrossfadeOut = /* @__PURE__ */ compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n  return (p) => {\n    if (p < min)\n      return 0;\n    if (p > max)\n      return 1;\n    return easing(progress(min, max, p));\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/animation/animate/single-value.mjs\nfunction animateSingleValue(value, keyframes2, options) {\n  const motionValue$1 = isMotionValue(value) ? value : motionValue(value);\n  motionValue$1.start(animateMotionValue(\"\", motionValue$1, keyframes2, options));\n  return motionValue$1.animation;\n}\n\n// ../../../node_modules/motion-dom/dist/es/events/add-dom-event.mjs\nfunction addDomEvent(target, eventName, handler, options = { passive: true }) {\n  target.addEventListener(eventName, handler, options);\n  return () => target.removeEventListener(eventName, handler, options);\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs\nvar compareByDepth = (a, b) => a.depth - b.depth;\n\n// ../../../node_modules/motion-dom/dist/es/projection/utils/flat-tree.mjs\nvar FlatTree = class {\n  constructor() {\n    this.children = [];\n    this.isDirty = false;\n  }\n  add(child) {\n    addUniqueItem(this.children, child);\n    this.isDirty = true;\n  }\n  remove(child) {\n    removeItem(this.children, child);\n    this.isDirty = true;\n  }\n  forEach(callback) {\n    this.isDirty && this.children.sort(compareByDepth);\n    this.isDirty = false;\n    this.children.forEach(callback);\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/utils/delay.mjs\nfunction delay(callback, timeout) {\n  const start2 = time.now();\n  const checkElapsed = ({ timestamp }) => {\n    const elapsed = timestamp - start2;\n    if (elapsed >= timeout) {\n      cancelFrame(checkElapsed);\n      callback(elapsed - timeout);\n    }\n  };\n  frame.setup(checkElapsed, true);\n  return () => cancelFrame(checkElapsed);\n}\nfunction delayInSeconds(callback, timeout) {\n  return delay(callback, secondsToMilliseconds(timeout));\n}\n\n// ../../../node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs\nfunction resolveMotionValue(value) {\n  return isMotionValue(value) ? value.get() : value;\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/shared/stack.mjs\nvar NodeStack = class {\n  constructor() {\n    this.members = [];\n  }\n  add(node) {\n    addUniqueItem(this.members, node);\n    for (let i = this.members.length - 1; i >= 0; i--) {\n      const member = this.members[i];\n      if (member === node || member === this.lead || member === this.prevLead)\n        continue;\n      const inst = member.instance;\n      if ((!inst || inst.isConnected === false) && !member.snapshot) {\n        removeItem(this.members, member);\n        member.unmount();\n      }\n    }\n    node.scheduleRender();\n  }\n  remove(node) {\n    removeItem(this.members, node);\n    if (node === this.prevLead)\n      this.prevLead = void 0;\n    if (node === this.lead) {\n      const prevLead = this.members[this.members.length - 1];\n      if (prevLead)\n        this.promote(prevLead);\n    }\n  }\n  relegate(node) {\n    for (let i = this.members.indexOf(node) - 1; i >= 0; i--) {\n      const member = this.members[i];\n      if (member.isPresent !== false && member.instance?.isConnected !== false) {\n        this.promote(member);\n        return true;\n      }\n    }\n    return false;\n  }\n  promote(node, preserveFollowOpacity) {\n    const prevLead = this.lead;\n    if (node === prevLead)\n      return;\n    this.prevLead = prevLead;\n    this.lead = node;\n    node.show();\n    if (prevLead) {\n      prevLead.updateSnapshot();\n      node.scheduleRender();\n      const { layoutDependency: prevDep } = prevLead.options;\n      const { layoutDependency: nextDep } = node.options;\n      if (prevDep === void 0 || prevDep !== nextDep) {\n        node.resumeFrom = prevLead;\n        if (preserveFollowOpacity)\n          prevLead.preserveOpacity = true;\n        if (prevLead.snapshot) {\n          node.snapshot = prevLead.snapshot;\n          node.snapshot.latestValues = prevLead.animationValues || prevLead.latestValues;\n        }\n        if (node.root?.isUpdating)\n          node.isLayoutDirty = true;\n      }\n      if (node.options.crossfade === false)\n        prevLead.hide();\n    }\n  }\n  exitAnimationComplete() {\n    this.members.forEach((member) => {\n      member.options.onExitComplete?.();\n      member.resumingFrom?.options.onExitComplete?.();\n    });\n  }\n  scheduleRender() {\n    this.members.forEach((member) => member.instance && member.scheduleRender(false));\n  }\n  removeLeadSnapshot() {\n    if (this.lead?.snapshot)\n      this.lead.snapshot = void 0;\n  }\n};\n\n// ../../../node_modules/motion-dom/dist/es/projection/node/state.mjs\nvar globalProjectionState = {\n  /**\n   * Global flag as to whether the tree has animated since the last time\n   * we resized the window\n   */\n  hasAnimatedSinceResize: true,\n  /**\n   * We set this to true once, on the first update. Any nodes added to the tree beyond that\n   * update will be given a `data-projection-id` attribute.\n   */\n  hasEverUpdated: false\n};\n\n// ../../../node_modules/motion-dom/dist/es/projection/styles/default-scale-correctors.mjs\nvar defaultScaleCorrectors = {\n  borderRadius: {\n    ...correctBorderRadius,\n    applyTo: [...cornerRadiusProps]\n  },\n  borderTopLeftRadius: correctBorderRadius,\n  borderTopRightRadius: correctBorderRadius,\n  borderBottomLeftRadius: correctBorderRadius,\n  borderBottomRightRadius: correctBorderRadius,\n  boxShadow: correctBoxShadow\n};\n\n// ../../../node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs\nObject.assign(scaleCorrectors, {\n  ...defaultScaleCorrectors,\n  ...scaleCorrectors\n});\nvar metrics = {\n  nodes: 0,\n  calculatedTargetDeltas: 0,\n  calculatedProjections: 0\n};\nvar transformAxes = [\"\", \"X\", \"Y\", \"Z\"];\nvar animationTarget = 1e3;\nvar id = 0;\nfunction resetDistortingTransform(key, visualElement, values, sharedAnimationValues) {\n  const { latestValues } = visualElement;\n  if (latestValues[key]) {\n    values[key] = latestValues[key];\n    visualElement.setStaticValue(key, 0);\n    if (sharedAnimationValues) {\n      sharedAnimationValues[key] = 0;\n    }\n  }\n}\nvar demoteTransforms = ({ instance }) => instance && transformGroups.get(instance)?.demote();\nfunction cancelTreeOptimisedTransformAnimations(projectionNode) {\n  projectionNode.hasCheckedOptimisedAppear = true;\n  if (projectionNode.root === projectionNode)\n    return;\n  const { visualElement } = projectionNode.options;\n  if (!visualElement)\n    return;\n  const appearId = getOptimisedAppearId(visualElement);\n  if (window.MotionHasOptimisedAnimation(appearId, \"transform\")) {\n    const { layout: layout2, layoutId } = projectionNode.options;\n    window.MotionCancelOptimisedAnimation(appearId, \"transform\", frame, !(layout2 || layoutId));\n  }\n  const { parent } = projectionNode;\n  if (parent && !parent.hasCheckedOptimisedAppear) {\n    cancelTreeOptimisedTransformAnimations(parent);\n  }\n}\nfunction createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform }) {\n  return class ProjectionNode {\n    constructor(latestValues = {}, parent = defaultParent?.()) {\n      this.id = id++;\n      this.animationId = 0;\n      this.animationCommitId = 0;\n      this.children = /* @__PURE__ */ new Set();\n      this.options = {};\n      this.isTreeAnimating = false;\n      this.isAnimationBlocked = false;\n      this.isLayoutDirty = false;\n      this.isProjectionDirty = false;\n      this.isSharedProjectionDirty = false;\n      this.isTransformDirty = false;\n      this.updateManuallyBlocked = false;\n      this.updateBlockedByResize = false;\n      this.isUpdating = false;\n      this.isSVG = false;\n      this.needsReset = false;\n      this.shouldResetTransform = false;\n      this.hasCheckedOptimisedAppear = false;\n      this.treeScale = { x: 1, y: 1 };\n      this.eventHandlers = /* @__PURE__ */ new Map();\n      this.hasTreeAnimated = false;\n      this.updateScheduled = false;\n      this.scheduleUpdate = () => this.update();\n      this.projectionUpdateScheduled = false;\n      this.checkUpdateFailed = () => {\n        if (this.isUpdating) {\n          this.isUpdating = false;\n          this.clearAllSnapshots();\n        }\n      };\n      this.updateProjection = () => {\n        this.projectionUpdateScheduled = false;\n        if (statsBuffer.value) {\n          metrics.nodes = metrics.calculatedTargetDeltas = metrics.calculatedProjections = 0;\n        }\n        this.nodes.forEach(propagateDirtyNodes);\n        this.nodes.forEach(resolveTargetDelta);\n        this.nodes.forEach(calcProjection);\n        this.nodes.forEach(cleanDirtyNodes);\n        if (statsBuffer.addProjectionMetrics) {\n          statsBuffer.addProjectionMetrics(metrics);\n        }\n      };\n      this.resolvedRelativeTargetAt = 0;\n      this.hasProjected = false;\n      this.isVisible = true;\n      this.animationProgress = 0;\n      this.sharedNodes = /* @__PURE__ */ new Map();\n      this.latestValues = latestValues;\n      this.root = parent ? parent.root || parent : this;\n      this.path = parent ? [...parent.path, parent] : [];\n      this.parent = parent;\n      this.depth = parent ? parent.depth + 1 : 0;\n      for (let i = 0; i < this.path.length; i++) {\n        this.path[i].shouldResetTransform = true;\n      }\n      if (this.root === this)\n        this.nodes = new FlatTree();\n    }\n    addEventListener(name, handler) {\n      if (!this.eventHandlers.has(name)) {\n        this.eventHandlers.set(name, new SubscriptionManager());\n      }\n      return this.eventHandlers.get(name).add(handler);\n    }\n    notifyListeners(name, ...args) {\n      const subscriptionManager = this.eventHandlers.get(name);\n      subscriptionManager && subscriptionManager.notify(...args);\n    }\n    hasListeners(name) {\n      return this.eventHandlers.has(name);\n    }\n    /**\n     * Lifecycles\n     */\n    mount(instance) {\n      if (this.instance)\n        return;\n      this.isSVG = isSVGElement(instance) && !isSVGSVGElement(instance);\n      this.instance = instance;\n      const { layoutId, layout: layout2, visualElement } = this.options;\n      if (visualElement && !visualElement.current) {\n        visualElement.mount(instance);\n      }\n      this.root.nodes.add(this);\n      this.parent && this.parent.children.add(this);\n      if (this.root.hasTreeAnimated && (layout2 || layoutId)) {\n        this.isLayoutDirty = true;\n      }\n      if (attachResizeListener) {\n        let cancelDelay;\n        let innerWidth = 0;\n        const resizeUnblockUpdate = () => this.root.updateBlockedByResize = false;\n        frame.read(() => {\n          innerWidth = window.innerWidth;\n        });\n        attachResizeListener(instance, () => {\n          const newInnerWidth = window.innerWidth;\n          if (newInnerWidth === innerWidth)\n            return;\n          innerWidth = newInnerWidth;\n          this.root.updateBlockedByResize = true;\n          cancelDelay && cancelDelay();\n          cancelDelay = delay(resizeUnblockUpdate, 250);\n          if (globalProjectionState.hasAnimatedSinceResize) {\n            globalProjectionState.hasAnimatedSinceResize = false;\n            this.nodes.forEach(finishAnimation);\n          }\n        });\n      }\n      if (layoutId) {\n        this.root.registerSharedNode(layoutId, this);\n      }\n      if (this.options.animate !== false && visualElement && (layoutId || layout2)) {\n        this.addEventListener(\"didUpdate\", ({ delta, hasLayoutChanged, hasRelativeLayoutChanged, layout: newLayout }) => {\n          if (this.isAnimationBlocked) {\n            this.target = void 0;\n            this.relativeTarget = void 0;\n            return;\n          }\n          const layoutTransition = this.options.transition || visualElement.getDefaultTransition() || defaultLayoutTransition;\n          const { onLayoutAnimationStart, onLayoutAnimationComplete } = visualElement.getProps();\n          const hasTargetChanged = !this.targetLayout || !boxEqualsRounded(this.targetLayout, newLayout);\n          const hasOnlyRelativeTargetChanged = !hasLayoutChanged && hasRelativeLayoutChanged;\n          if (this.options.layoutRoot || this.resumeFrom || hasOnlyRelativeTargetChanged || hasLayoutChanged && (hasTargetChanged || !this.currentAnimation)) {\n            if (this.resumeFrom) {\n              this.resumingFrom = this.resumeFrom;\n              this.resumingFrom.resumingFrom = void 0;\n            }\n            const animationOptions = {\n              ...getValueTransition(layoutTransition, \"layout\"),\n              onPlay: onLayoutAnimationStart,\n              onComplete: onLayoutAnimationComplete\n            };\n            if (visualElement.shouldReduceMotion || this.options.layoutRoot) {\n              animationOptions.delay = 0;\n              animationOptions.type = false;\n            }\n            this.startAnimation(animationOptions);\n            this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged, animationOptions.path);\n          } else {\n            if (!hasLayoutChanged) {\n              finishAnimation(this);\n            }\n            if (this.isLead() && this.options.onExitComplete) {\n              this.options.onExitComplete();\n            }\n          }\n          this.targetLayout = newLayout;\n        });\n      }\n    }\n    unmount() {\n      this.options.layoutId && this.willUpdate();\n      this.root.nodes.remove(this);\n      const stack = this.getStack();\n      stack && stack.remove(this);\n      this.parent && this.parent.children.delete(this);\n      this.instance = void 0;\n      this.eventHandlers.clear();\n      cancelFrame(this.updateProjection);\n    }\n    // only on the root\n    blockUpdate() {\n      this.updateManuallyBlocked = true;\n    }\n    unblockUpdate() {\n      this.updateManuallyBlocked = false;\n    }\n    isUpdateBlocked() {\n      return this.updateManuallyBlocked || this.updateBlockedByResize;\n    }\n    // Note: currently only running on root node\n    startUpdate() {\n      if (this.isUpdateBlocked())\n        return;\n      this.isUpdating = true;\n      this.nodes && this.nodes.forEach(resetSkewAndRotation);\n      this.animationId++;\n    }\n    getTransformTemplate() {\n      const { visualElement } = this.options;\n      return visualElement && visualElement.getProps().transformTemplate;\n    }\n    willUpdate(shouldNotifyListeners = true) {\n      this.root.hasTreeAnimated = true;\n      if (this.root.isUpdateBlocked()) {\n        this.options.onExitComplete && this.options.onExitComplete();\n        return;\n      }\n      if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear) {\n        cancelTreeOptimisedTransformAnimations(this);\n      }\n      !this.root.isUpdating && this.root.startUpdate();\n      if (this.isLayoutDirty)\n        return;\n      demoteTransforms(this);\n      this.isLayoutDirty = true;\n      for (let i = 0; i < this.path.length; i++) {\n        const node = this.path[i];\n        node.shouldResetTransform = true;\n        demoteTransforms(node);\n        if (typeof node.latestValues.x === \"string\" || typeof node.latestValues.y === \"string\") {\n          node.isLayoutDirty = true;\n        }\n        node.updateScroll(\"snapshot\");\n        if (node.options.layoutRoot) {\n          node.willUpdate(false);\n        }\n        if (node.isAnimationBlocked) {\n          node.dragSnapshot || (node.dragSnapshot = node.measure());\n          this.dragAncestor = node;\n        }\n      }\n      const { layoutId, layout: layout2 } = this.options;\n      if (layoutId === void 0 && !layout2)\n        return;\n      const transformTemplate = this.getTransformTemplate();\n      this.prevTransformTemplateValue = transformTemplate ? transformTemplate(this.latestValues, \"\") : void 0;\n      this.updateSnapshot();\n      shouldNotifyListeners && this.notifyListeners(\"willUpdate\");\n    }\n    update() {\n      this.updateScheduled = false;\n      const updateWasBlocked = this.isUpdateBlocked();\n      if (updateWasBlocked) {\n        const wasBlockedByResize = this.updateBlockedByResize;\n        this.unblockUpdate();\n        this.updateBlockedByResize = false;\n        this.clearAllSnapshots();\n        if (wasBlockedByResize) {\n          this.nodes.forEach(forceLayoutMeasure);\n        }\n        this.nodes.forEach(clearMeasurements);\n        return;\n      }\n      if (this.animationId <= this.animationCommitId) {\n        this.nodes.forEach(clearIsLayoutDirty);\n        return;\n      }\n      this.animationCommitId = this.animationId;\n      if (!this.isUpdating) {\n        this.nodes.forEach(clearIsLayoutDirty);\n      } else {\n        this.isUpdating = false;\n        this.nodes.forEach(ensureDraggedNodesSnapshotted);\n        this.nodes.forEach(syncRelativeLayout);\n        this.nodes.forEach(resetTransformStyle);\n        this.nodes.forEach(updateLayout);\n        this.nodes.forEach(notifyLayoutUpdate);\n      }\n      this.clearAllSnapshots();\n      const now2 = time.now();\n      frameData.delta = clamp(0, 1e3 / 60, now2 - frameData.timestamp);\n      frameData.timestamp = now2;\n      frameData.isProcessing = true;\n      frameSteps.update.process(frameData);\n      frameSteps.preRender.process(frameData);\n      frameSteps.render.process(frameData);\n      frameData.isProcessing = false;\n    }\n    didUpdate() {\n      if (!this.updateScheduled) {\n        this.updateScheduled = true;\n        microtask.read(this.scheduleUpdate);\n      }\n    }\n    clearAllSnapshots() {\n      this.nodes.forEach(clearSnapshot);\n      this.sharedNodes.forEach(removeLeadSnapshots);\n    }\n    scheduleUpdateProjection() {\n      if (!this.projectionUpdateScheduled) {\n        this.projectionUpdateScheduled = true;\n        frame.preRender(this.updateProjection, false, true);\n      }\n    }\n    scheduleCheckAfterUnmount() {\n      frame.postRender(() => {\n        if (this.isLayoutDirty) {\n          this.root.didUpdate();\n        } else {\n          this.root.checkUpdateFailed();\n        }\n      });\n    }\n    /**\n     * Update measurements\n     */\n    updateSnapshot() {\n      if (this.snapshot || !this.instance)\n        return;\n      this.snapshot = this.measure();\n      if (this.snapshot && !calcLength(this.snapshot.measuredBox.x) && !calcLength(this.snapshot.measuredBox.y)) {\n        this.snapshot = void 0;\n      }\n    }\n    updateLayout() {\n      if (!this.instance)\n        return;\n      this.updateScroll();\n      if (!(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty) {\n        return;\n      }\n      if (this.resumeFrom && !this.resumeFrom.instance) {\n        for (let i = 0; i < this.path.length; i++) {\n          const node = this.path[i];\n          node.updateScroll();\n        }\n      }\n      const prevLayout = this.layout;\n      this.layout = this.measure(false);\n      if (!this.layoutCorrected)\n        this.layoutCorrected = createBox();\n      this.isLayoutDirty = false;\n      this.projectionDelta = void 0;\n      this.notifyListeners(\"measure\", this.layout.layoutBox);\n      const { visualElement } = this.options;\n      visualElement && visualElement.notify(\"LayoutMeasure\", this.layout.layoutBox, prevLayout ? prevLayout.layoutBox : void 0);\n    }\n    updateScroll(phase = \"measure\") {\n      let needsMeasurement = Boolean(this.options.layoutScroll && this.instance);\n      if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === phase) {\n        needsMeasurement = false;\n      }\n      if (needsMeasurement && this.instance) {\n        const isRoot = checkIsScrollRoot(this.instance);\n        this.scroll = {\n          animationId: this.root.animationId,\n          phase,\n          isRoot,\n          offset: measureScroll(this.instance),\n          wasRoot: this.scroll ? this.scroll.isRoot : isRoot\n        };\n      }\n    }\n    resetTransform() {\n      if (!resetTransform)\n        return;\n      const isResetRequested = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;\n      isResetRequested && demoteTransforms(this);\n      const hasProjection = this.projectionDelta && !isDeltaZero(this.projectionDelta);\n      const transformTemplate = this.getTransformTemplate();\n      const transformTemplateValue = transformTemplate ? transformTemplate(this.latestValues, \"\") : void 0;\n      const transformTemplateHasChanged = transformTemplateValue !== this.prevTransformTemplateValue;\n      if (isResetRequested && this.instance && (hasProjection || hasTransform(this.latestValues) || transformTemplateHasChanged)) {\n        resetTransform(this.instance, transformTemplateValue);\n        this.shouldResetTransform = false;\n        this.scheduleRender();\n      }\n    }\n    measure(removeTransform = true) {\n      const pageBox = this.measurePageBox();\n      let layoutBox = this.removeElementScroll(pageBox);\n      if (removeTransform) {\n        layoutBox = this.removeTransform(layoutBox);\n      }\n      roundBox(layoutBox);\n      return {\n        animationId: this.root.animationId,\n        measuredBox: pageBox,\n        layoutBox,\n        latestValues: {},\n        source: this.id\n      };\n    }\n    measurePageBox() {\n      const { visualElement } = this.options;\n      if (!visualElement)\n        return createBox();\n      const box = visualElement.measureViewportBox();\n      const wasInScrollRoot = this.scroll?.wasRoot || this.path.some(checkNodeWasScrollRoot);\n      if (!wasInScrollRoot) {\n        const { scroll: scroll2 } = this.root;\n        if (scroll2) {\n          translateAxis(box.x, scroll2.offset.x);\n          translateAxis(box.y, scroll2.offset.y);\n        }\n      }\n      return box;\n    }\n    removeElementScroll(box) {\n      const boxWithoutScroll = createBox();\n      copyBoxInto(boxWithoutScroll, box);\n      if (this.scroll?.wasRoot) {\n        return boxWithoutScroll;\n      }\n      for (let i = 0; i < this.path.length; i++) {\n        const node = this.path[i];\n        const { scroll: scroll2, options } = node;\n        if (node !== this.root && scroll2 && options.layoutScroll) {\n          if (scroll2.wasRoot) {\n            copyBoxInto(boxWithoutScroll, box);\n          }\n          translateAxis(boxWithoutScroll.x, scroll2.offset.x);\n          translateAxis(boxWithoutScroll.y, scroll2.offset.y);\n        }\n      }\n      return boxWithoutScroll;\n    }\n    applyTransform(box, transformOnly = false, output) {\n      const withTransforms = output || createBox();\n      copyBoxInto(withTransforms, box);\n      for (let i = 0; i < this.path.length; i++) {\n        const node = this.path[i];\n        if (!transformOnly && node.options.layoutScroll && node.scroll && node !== node.root) {\n          translateAxis(withTransforms.x, -node.scroll.offset.x);\n          translateAxis(withTransforms.y, -node.scroll.offset.y);\n        }\n        if (!hasTransform(node.latestValues))\n          continue;\n        transformBox(withTransforms, node.latestValues, node.layout?.layoutBox);\n      }\n      if (hasTransform(this.latestValues)) {\n        transformBox(withTransforms, this.latestValues, this.layout?.layoutBox);\n      }\n      return withTransforms;\n    }\n    removeTransform(box) {\n      const boxWithoutTransform = createBox();\n      copyBoxInto(boxWithoutTransform, box);\n      for (let i = 0; i < this.path.length; i++) {\n        const node = this.path[i];\n        if (!hasTransform(node.latestValues))\n          continue;\n        let sourceBox;\n        if (node.instance) {\n          hasScale(node.latestValues) && node.updateSnapshot();\n          sourceBox = createBox();\n          copyBoxInto(sourceBox, node.measurePageBox());\n        }\n        removeBoxTransforms(boxWithoutTransform, node.latestValues, node.snapshot?.layoutBox, sourceBox);\n      }\n      if (hasTransform(this.latestValues)) {\n        removeBoxTransforms(boxWithoutTransform, this.latestValues);\n      }\n      return boxWithoutTransform;\n    }\n    setTargetDelta(delta) {\n      this.targetDelta = delta;\n      this.root.scheduleUpdateProjection();\n      this.isProjectionDirty = true;\n    }\n    setOptions(options) {\n      this.options = {\n        ...this.options,\n        ...options,\n        crossfade: options.crossfade !== void 0 ? options.crossfade : true\n      };\n    }\n    clearMeasurements() {\n      this.scroll = void 0;\n      this.layout = void 0;\n      this.snapshot = void 0;\n      this.prevTransformTemplateValue = void 0;\n      this.targetDelta = void 0;\n      this.target = void 0;\n      this.isLayoutDirty = false;\n    }\n    forceRelativeParentToResolveTarget() {\n      if (!this.relativeParent)\n        return;\n      if (this.relativeParent.resolvedRelativeTargetAt !== frameData.timestamp) {\n        this.relativeParent.resolveTargetDelta(true);\n      }\n    }\n    resolveTargetDelta(forceRecalculation = false) {\n      const lead = this.getLead();\n      this.isProjectionDirty || (this.isProjectionDirty = lead.isProjectionDirty);\n      this.isTransformDirty || (this.isTransformDirty = lead.isTransformDirty);\n      this.isSharedProjectionDirty || (this.isSharedProjectionDirty = lead.isSharedProjectionDirty);\n      const isShared = Boolean(this.resumingFrom) || this !== lead;\n      const canSkip = !(forceRecalculation || isShared && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize);\n      if (canSkip)\n        return;\n      const { layout: layout2, layoutId } = this.options;\n      if (!this.layout || !(layout2 || layoutId))\n        return;\n      this.resolvedRelativeTargetAt = frameData.timestamp;\n      const relativeParent = this.getClosestProjectingParent();\n      if (!this.targetDelta && !this.relativeTarget) {\n        if (this.options.layoutAnchor !== false && relativeParent && relativeParent.layout) {\n          this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);\n        } else {\n          this.removeRelativeTarget();\n        }\n      }\n      if (!this.relativeTarget && !this.targetDelta)\n        return;\n      if (!this.target) {\n        this.target = createBox();\n        this.targetWithTransforms = createBox();\n      }\n      if (this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target) {\n        this.forceRelativeParentToResolveTarget();\n        calcRelativeBox(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0);\n      } else if (this.targetDelta) {\n        if (Boolean(this.resumingFrom)) {\n          this.applyTransform(this.layout.layoutBox, false, this.target);\n        } else {\n          copyBoxInto(this.target, this.layout.layoutBox);\n        }\n        applyBoxDelta(this.target, this.targetDelta);\n      } else {\n        copyBoxInto(this.target, this.layout.layoutBox);\n      }\n      if (this.attemptToResolveRelativeTarget) {\n        this.attemptToResolveRelativeTarget = false;\n        if (this.options.layoutAnchor !== false && relativeParent && Boolean(relativeParent.resumingFrom) === Boolean(this.resumingFrom) && !relativeParent.options.layoutScroll && relativeParent.target && this.animationProgress !== 1) {\n          this.createRelativeTarget(relativeParent, this.target, relativeParent.target);\n        } else {\n          this.relativeParent = this.relativeTarget = void 0;\n        }\n      }\n      if (statsBuffer.value) {\n        metrics.calculatedTargetDeltas++;\n      }\n    }\n    getClosestProjectingParent() {\n      if (!this.parent || hasScale(this.parent.latestValues) || has2DTranslate(this.parent.latestValues)) {\n        return void 0;\n      }\n      if (this.parent.isProjecting()) {\n        return this.parent;\n      } else {\n        return this.parent.getClosestProjectingParent();\n      }\n    }\n    isProjecting() {\n      return Boolean((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);\n    }\n    createRelativeTarget(relativeParent, layout2, parentLayout) {\n      this.relativeParent = relativeParent;\n      this.forceRelativeParentToResolveTarget();\n      this.relativeTarget = createBox();\n      this.relativeTargetOrigin = createBox();\n      calcRelativePosition(this.relativeTargetOrigin, layout2, parentLayout, this.options.layoutAnchor || void 0);\n      copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);\n    }\n    removeRelativeTarget() {\n      this.relativeParent = this.relativeTarget = void 0;\n    }\n    calcProjection() {\n      const lead = this.getLead();\n      const isShared = Boolean(this.resumingFrom) || this !== lead;\n      let canSkip = true;\n      if (this.isProjectionDirty || this.parent?.isProjectionDirty) {\n        canSkip = false;\n      }\n      if (isShared && (this.isSharedProjectionDirty || this.isTransformDirty)) {\n        canSkip = false;\n      }\n      if (this.resolvedRelativeTargetAt === frameData.timestamp) {\n        canSkip = false;\n      }\n      if (canSkip)\n        return;\n      const { layout: layout2, layoutId } = this.options;\n      this.isTreeAnimating = Boolean(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation);\n      if (!this.isTreeAnimating) {\n        this.targetDelta = this.relativeTarget = void 0;\n      }\n      if (!this.layout || !(layout2 || layoutId))\n        return;\n      copyBoxInto(this.layoutCorrected, this.layout.layoutBox);\n      const prevTreeScaleX = this.treeScale.x;\n      const prevTreeScaleY = this.treeScale.y;\n      applyTreeDeltas(this.layoutCorrected, this.treeScale, this.path, isShared);\n      if (lead.layout && !lead.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1)) {\n        lead.target = lead.layout.layoutBox;\n        lead.targetWithTransforms = createBox();\n      }\n      const { target } = lead;\n      if (!target) {\n        if (this.prevProjectionDelta) {\n          this.createProjectionDeltas();\n          this.scheduleRender();\n        }\n        return;\n      }\n      if (!this.projectionDelta || !this.prevProjectionDelta) {\n        this.createProjectionDeltas();\n      } else {\n        copyAxisDeltaInto(this.prevProjectionDelta.x, this.projectionDelta.x);\n        copyAxisDeltaInto(this.prevProjectionDelta.y, this.projectionDelta.y);\n      }\n      calcBoxDelta(this.projectionDelta, this.layoutCorrected, target, this.latestValues);\n      if (this.treeScale.x !== prevTreeScaleX || this.treeScale.y !== prevTreeScaleY || !axisDeltaEquals(this.projectionDelta.x, this.prevProjectionDelta.x) || !axisDeltaEquals(this.projectionDelta.y, this.prevProjectionDelta.y)) {\n        this.hasProjected = true;\n        this.scheduleRender();\n        this.notifyListeners(\"projectionUpdate\", target);\n      }\n      if (statsBuffer.value) {\n        metrics.calculatedProjections++;\n      }\n    }\n    hide() {\n      this.isVisible = false;\n    }\n    show() {\n      this.isVisible = true;\n    }\n    scheduleRender(notifyAll2 = true) {\n      this.options.visualElement?.scheduleRender();\n      if (notifyAll2) {\n        const stack = this.getStack();\n        stack && stack.scheduleRender();\n      }\n      if (this.resumingFrom && !this.resumingFrom.instance) {\n        this.resumingFrom = void 0;\n      }\n    }\n    createProjectionDeltas() {\n      this.prevProjectionDelta = createDelta();\n      this.projectionDelta = createDelta();\n      this.projectionDeltaWithTransform = createDelta();\n    }\n    setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false, pathFn) {\n      const snapshot = this.snapshot;\n      const snapshotLatestValues = snapshot ? snapshot.latestValues : {};\n      const mixedValues = { ...this.latestValues };\n      const targetDelta = createDelta();\n      if (!this.relativeParent || !this.relativeParent.options.layoutRoot) {\n        this.relativeTarget = this.relativeTargetOrigin = void 0;\n      }\n      this.attemptToResolveRelativeTarget = !hasOnlyRelativeTargetChanged;\n      const relativeLayout = createBox();\n      const snapshotSource = snapshot ? snapshot.source : void 0;\n      const layoutSource = this.layout ? this.layout.source : void 0;\n      const isSharedLayoutAnimation = snapshotSource !== layoutSource;\n      const stack = this.getStack();\n      const isOnlyMember = !stack || stack.members.length <= 1;\n      const shouldCrossfadeOpacity = Boolean(isSharedLayoutAnimation && !isOnlyMember && this.options.crossfade === true && !this.path.some(hasOpacityCrossfade));\n      this.animationProgress = 0;\n      let prevRelativeTarget;\n      const interpolate2 = pathFn?.interpolateProjection(delta);\n      this.mixTargetDelta = (latest) => {\n        const progress2 = latest / 1e3;\n        const point = interpolate2?.(progress2);\n        if (point) {\n          targetDelta.x.translate = point.x;\n          targetDelta.x.scale = mixNumber(delta.x.scale, 1, progress2);\n          targetDelta.x.origin = delta.x.origin;\n          targetDelta.x.originPoint = delta.x.originPoint;\n          targetDelta.y.translate = point.y;\n          targetDelta.y.scale = mixNumber(delta.y.scale, 1, progress2);\n          targetDelta.y.origin = delta.y.origin;\n          targetDelta.y.originPoint = delta.y.originPoint;\n        } else {\n          mixAxisDeltaLinear(targetDelta.x, delta.x, progress2);\n          mixAxisDeltaLinear(targetDelta.y, delta.y, progress2);\n        }\n        this.setTargetDelta(targetDelta);\n        if (this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout) {\n          calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0);\n          mixBox(this.relativeTarget, this.relativeTargetOrigin, relativeLayout, progress2);\n          if (prevRelativeTarget && boxEquals(this.relativeTarget, prevRelativeTarget)) {\n            this.isProjectionDirty = false;\n          }\n          if (!prevRelativeTarget)\n            prevRelativeTarget = createBox();\n          copyBoxInto(prevRelativeTarget, this.relativeTarget);\n        }\n        if (isSharedLayoutAnimation) {\n          this.animationValues = mixedValues;\n          mixValues(mixedValues, snapshotLatestValues, this.latestValues, progress2, shouldCrossfadeOpacity, isOnlyMember);\n        }\n        if (point && point.rotate !== void 0) {\n          if (!this.animationValues)\n            this.animationValues = mixedValues;\n          this.animationValues.pathRotation = point.rotate;\n        }\n        this.root.scheduleUpdateProjection();\n        this.scheduleRender();\n        this.animationProgress = progress2;\n      };\n      this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);\n    }\n    startAnimation(options) {\n      this.notifyListeners(\"animationStart\");\n      this.currentAnimation?.stop();\n      this.resumingFrom?.currentAnimation?.stop();\n      if (this.pendingAnimation) {\n        cancelFrame(this.pendingAnimation);\n        this.pendingAnimation = void 0;\n      }\n      this.pendingAnimation = frame.update(() => {\n        globalProjectionState.hasAnimatedSinceResize = true;\n        this.motionValue || (this.motionValue = motionValue(0));\n        this.motionValue.jump(0, false);\n        this.currentAnimation = animateSingleValue(this.motionValue, [0, 1e3], {\n          ...options,\n          velocity: 0,\n          isSync: true,\n          onUpdate: (latest) => {\n            this.mixTargetDelta(latest);\n            options.onUpdate && options.onUpdate(latest);\n          },\n          onComplete: () => {\n            options.onComplete && options.onComplete();\n            this.completeAnimation();\n          }\n        });\n        notifyLayoutAnimationStart(this.currentAnimation, this);\n        if (this.resumingFrom) {\n          this.resumingFrom.currentAnimation = this.currentAnimation;\n        }\n        this.pendingAnimation = void 0;\n      });\n    }\n    completeAnimation() {\n      if (this.resumingFrom) {\n        this.resumingFrom.currentAnimation = void 0;\n        this.resumingFrom.preserveOpacity = void 0;\n      }\n      const stack = this.getStack();\n      stack && stack.exitAnimationComplete();\n      this.resumingFrom = this.currentAnimation = this.animationValues = void 0;\n      this.notifyListeners(\"animationComplete\");\n    }\n    finishAnimation() {\n      if (this.currentAnimation) {\n        this.mixTargetDelta && this.mixTargetDelta(animationTarget);\n        this.currentAnimation.stop();\n      }\n      this.completeAnimation();\n    }\n    applyTransformsToTarget() {\n      const lead = this.getLead();\n      const { targetWithTransforms, layout: layout2, latestValues } = lead;\n      let { target } = lead;\n      if (!targetWithTransforms || !target || !layout2)\n        return;\n      if (this !== lead && this.layout && layout2 && shouldAnimatePositionOnly(this.options.animationType, this.layout.layoutBox, layout2.layoutBox)) {\n        target = this.target || createBox();\n        const xLength = calcLength(this.layout.layoutBox.x);\n        target.x.min = lead.target.x.min;\n        target.x.max = target.x.min + xLength;\n        const yLength = calcLength(this.layout.layoutBox.y);\n        target.y.min = lead.target.y.min;\n        target.y.max = target.y.min + yLength;\n      }\n      copyBoxInto(targetWithTransforms, target);\n      transformBox(targetWithTransforms, latestValues);\n      calcBoxDelta(this.projectionDeltaWithTransform, this.layoutCorrected, targetWithTransforms, latestValues);\n    }\n    registerSharedNode(layoutId, node) {\n      if (!this.sharedNodes.has(layoutId)) {\n        this.sharedNodes.set(layoutId, new NodeStack());\n      }\n      const stack = this.sharedNodes.get(layoutId);\n      stack.add(node);\n      const config = node.options.initialPromotionConfig;\n      node.promote({\n        transition: config ? config.transition : void 0,\n        preserveFollowOpacity: config && config.shouldPreserveFollowOpacity ? config.shouldPreserveFollowOpacity(node) : void 0\n      });\n    }\n    isLead() {\n      const stack = this.getStack();\n      return stack ? stack.lead === this : true;\n    }\n    getLead() {\n      const { layoutId } = this.options;\n      return layoutId ? this.getStack()?.lead || this : this;\n    }\n    getPrevLead() {\n      const { layoutId } = this.options;\n      return layoutId ? this.getStack()?.prevLead : void 0;\n    }\n    getStack() {\n      const { layoutId } = this.options;\n      if (layoutId)\n        return this.root.sharedNodes.get(layoutId);\n    }\n    promote({ needsReset, transition, preserveFollowOpacity } = {}) {\n      const stack = this.getStack();\n      if (stack)\n        stack.promote(this, preserveFollowOpacity);\n      if (needsReset) {\n        this.projectionDelta = void 0;\n        this.needsReset = true;\n      }\n      if (transition)\n        this.setOptions({ transition });\n    }\n    relegate() {\n      const stack = this.getStack();\n      if (stack) {\n        return stack.relegate(this);\n      } else {\n        return false;\n      }\n    }\n    resetSkewAndRotation() {\n      const { visualElement } = this.options;\n      if (!visualElement)\n        return;\n      let hasDistortingTransform = false;\n      const { latestValues } = visualElement;\n      if (latestValues.z || latestValues.rotate || latestValues.rotateX || latestValues.rotateY || latestValues.rotateZ || latestValues.skewX || latestValues.skewY) {\n        hasDistortingTransform = true;\n      }\n      if (!hasDistortingTransform)\n        return;\n      const resetValues = {};\n      if (latestValues.z) {\n        resetDistortingTransform(\"z\", visualElement, resetValues, this.animationValues);\n      }\n      for (let i = 0; i < transformAxes.length; i++) {\n        resetDistortingTransform(`rotate${transformAxes[i]}`, visualElement, resetValues, this.animationValues);\n        resetDistortingTransform(`skew${transformAxes[i]}`, visualElement, resetValues, this.animationValues);\n      }\n      visualElement.render();\n      for (const key in resetValues) {\n        visualElement.setStaticValue(key, resetValues[key]);\n        if (this.animationValues) {\n          this.animationValues[key] = resetValues[key];\n        }\n      }\n      visualElement.scheduleRender();\n    }\n    applyProjectionStyles(targetStyle, styleProp) {\n      if (!this.instance || this.isSVG)\n        return;\n      if (!this.isVisible) {\n        targetStyle.visibility = \"hidden\";\n        return;\n      }\n      const transformTemplate = this.getTransformTemplate();\n      if (this.needsReset) {\n        this.needsReset = false;\n        targetStyle.visibility = \"\";\n        targetStyle.opacity = \"\";\n        targetStyle.pointerEvents = resolveMotionValue(styleProp?.pointerEvents) || \"\";\n        targetStyle.transform = transformTemplate ? transformTemplate(this.latestValues, \"\") : \"none\";\n        return;\n      }\n      const lead = this.getLead();\n      if (!this.projectionDelta || !this.layout || !lead.target) {\n        if (this.options.layoutId) {\n          targetStyle.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1;\n          targetStyle.pointerEvents = resolveMotionValue(styleProp?.pointerEvents) || \"\";\n        }\n        if (this.hasProjected && !hasTransform(this.latestValues)) {\n          targetStyle.transform = transformTemplate ? transformTemplate({}, \"\") : \"none\";\n          this.hasProjected = false;\n        }\n        return;\n      }\n      targetStyle.visibility = \"\";\n      const valuesToRender = lead.animationValues || lead.latestValues;\n      this.applyTransformsToTarget();\n      let transform2 = buildProjectionTransform(this.projectionDeltaWithTransform, this.treeScale, valuesToRender);\n      if (transformTemplate) {\n        transform2 = transformTemplate(valuesToRender, transform2);\n      }\n      targetStyle.transform = transform2;\n      const { x, y } = this.projectionDelta;\n      targetStyle.transformOrigin = `${x.origin * 100}% ${y.origin * 100}% 0`;\n      if (lead.animationValues) {\n        targetStyle.opacity = lead === this ? valuesToRender.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : valuesToRender.opacityExit;\n      } else {\n        targetStyle.opacity = lead === this ? valuesToRender.opacity !== void 0 ? valuesToRender.opacity : \"\" : valuesToRender.opacityExit !== void 0 ? valuesToRender.opacityExit : 0;\n      }\n      for (const key in scaleCorrectors) {\n        if (valuesToRender[key] === void 0)\n          continue;\n        const { correct, applyTo, isCSSVariable } = scaleCorrectors[key];\n        const corrected = transform2 === \"none\" ? valuesToRender[key] : correct(valuesToRender[key], lead);\n        if (applyTo) {\n          const num = applyTo.length;\n          for (let i = 0; i < num; i++) {\n            targetStyle[applyTo[i]] = corrected;\n          }\n        } else {\n          if (isCSSVariable) {\n            this.options.visualElement.renderState.vars[key] = corrected;\n          } else {\n            targetStyle[key] = corrected;\n          }\n        }\n      }\n      if (this.options.layoutId) {\n        targetStyle.pointerEvents = lead === this ? resolveMotionValue(styleProp?.pointerEvents) || \"\" : \"none\";\n      }\n    }\n    clearSnapshot() {\n      this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;\n    }\n    // Only run on root\n    resetTree() {\n      this.root.nodes.forEach((node) => node.currentAnimation?.stop());\n      this.root.nodes.forEach(clearMeasurements);\n      this.root.sharedNodes.clear();\n    }\n  };\n}\nfunction updateLayout(node) {\n  node.updateLayout();\n  followDraggedAncestor(node);\n}\nfunction notifyLayoutUpdate(node) {\n  const snapshot = node.resumeFrom?.snapshot || node.snapshot;\n  if (node.isLead() && node.layout && snapshot && node.hasListeners(\"didUpdate\")) {\n    const { layoutBox: layout2, measuredBox: measuredLayout } = node.layout;\n    const { animationType } = node.options;\n    const isShared = snapshot.source !== node.layout.source;\n    if (animationType === \"size\") {\n      eachAxis((axis) => {\n        const axisSnapshot = isShared ? snapshot.measuredBox[axis] : snapshot.layoutBox[axis];\n        const length = calcLength(axisSnapshot);\n        axisSnapshot.min = layout2[axis].min;\n        axisSnapshot.max = axisSnapshot.min + length;\n      });\n    } else if (animationType === \"x\" || animationType === \"y\") {\n      const snapAxis = animationType === \"x\" ? \"y\" : \"x\";\n      copyAxisInto(isShared ? snapshot.measuredBox[snapAxis] : snapshot.layoutBox[snapAxis], layout2[snapAxis]);\n    } else if (shouldAnimatePositionOnly(animationType, snapshot.layoutBox, layout2)) {\n      eachAxis((axis) => {\n        const axisSnapshot = isShared ? snapshot.measuredBox[axis] : snapshot.layoutBox[axis];\n        const length = calcLength(layout2[axis]);\n        axisSnapshot.max = axisSnapshot.min + length;\n        if (node.relativeTarget && !node.currentAnimation) {\n          node.isProjectionDirty = true;\n          node.relativeTarget[axis].max = node.relativeTarget[axis].min + length;\n        }\n      });\n    }\n    const layoutDelta = createDelta();\n    calcBoxDelta(layoutDelta, layout2, snapshot.layoutBox);\n    const visualDelta = createDelta();\n    if (isShared) {\n      calcBoxDelta(visualDelta, node.applyTransform(measuredLayout, true), snapshot.measuredBox);\n    } else {\n      calcBoxDelta(visualDelta, layout2, snapshot.layoutBox);\n    }\n    const hasLayoutChanged = !isDeltaZero(layoutDelta);\n    let hasRelativeLayoutChanged = false;\n    if (!node.resumeFrom) {\n      const relativeParent = node.getClosestProjectingParent();\n      if (relativeParent && !relativeParent.resumeFrom) {\n        const { snapshot: parentSnapshot, layout: parentLayout } = relativeParent;\n        if (parentSnapshot && parentLayout) {\n          const anchor = node.options.layoutAnchor || void 0;\n          const relativeSnapshot = createBox();\n          calcRelativePosition(relativeSnapshot, snapshot.layoutBox, parentSnapshot.layoutBox, anchor);\n          const relativeLayout = createBox();\n          calcRelativePosition(relativeLayout, layout2, parentLayout.layoutBox, anchor);\n          if (!boxEqualsRounded(relativeSnapshot, relativeLayout)) {\n            hasRelativeLayoutChanged = true;\n          }\n          if (relativeParent.options.layoutRoot) {\n            node.relativeTarget = relativeLayout;\n            node.relativeTargetOrigin = relativeSnapshot;\n            node.relativeParent = relativeParent;\n          }\n        }\n      }\n    }\n    node.notifyListeners(\"didUpdate\", {\n      layout: layout2,\n      snapshot,\n      delta: visualDelta,\n      layoutDelta,\n      hasLayoutChanged,\n      hasRelativeLayoutChanged\n    });\n  } else if (node.isLead()) {\n    const { onExitComplete } = node.options;\n    onExitComplete && onExitComplete();\n  }\n  node.options.transition = void 0;\n}\nfunction propagateDirtyNodes(node) {\n  if (statsBuffer.value) {\n    metrics.nodes++;\n  }\n  if (!node.parent)\n    return;\n  if (!node.isProjecting()) {\n    node.isProjectionDirty = node.parent.isProjectionDirty;\n  }\n  node.isSharedProjectionDirty || (node.isSharedProjectionDirty = Boolean(node.isProjectionDirty || node.parent.isProjectionDirty || node.parent.isSharedProjectionDirty));\n  node.isTransformDirty || (node.isTransformDirty = node.parent.isTransformDirty);\n}\nfunction cleanDirtyNodes(node) {\n  node.isProjectionDirty = node.isSharedProjectionDirty = node.isTransformDirty = false;\n}\nfunction clearSnapshot(node) {\n  node.clearSnapshot();\n}\nfunction clearMeasurements(node) {\n  node.clearMeasurements();\n}\nfunction forceLayoutMeasure(node) {\n  node.isLayoutDirty = true;\n  node.updateLayout();\n}\nfunction clearIsLayoutDirty(node) {\n  node.isLayoutDirty = false;\n}\nfunction followDraggedAncestor(node) {\n  const { snapshot, dragAncestor } = node;\n  const to = dragAncestor?.layout;\n  if (!snapshot || !to || node.resumeFrom || node.isAnimationBlocked)\n    return;\n  const from = dragAncestor.dragSnapshot;\n  eachAxis((axis) => translateAxis(snapshot.layoutBox[axis], to.layoutBox[axis].min - from.layoutBox[axis].min));\n}\nfunction ensureDraggedNodesSnapshotted(node) {\n  if (node.isAnimationBlocked && node.layout && !node.isLayoutDirty) {\n    node.snapshot = node.dragSnapshot || node.layout;\n    node.isLayoutDirty = true;\n  }\n}\nfunction syncRelativeLayout(node) {\n  if (node.relativeTarget && node.relativeParent?.isLayoutDirty) {\n    if (node.currentAnimation) {\n      node.isLayoutDirty = true;\n    } else {\n      node.targetDelta = void 0;\n      node.removeRelativeTarget();\n    }\n  }\n}\nfunction resetTransformStyle(node) {\n  const { visualElement } = node.options;\n  if (visualElement && visualElement.getProps().onBeforeLayoutMeasure) {\n    visualElement.notify(\"BeforeLayoutMeasure\");\n  }\n  node.resetTransform();\n}\nfunction finishAnimation(node) {\n  node.finishAnimation();\n  node.targetDelta = node.relativeTarget = node.target = void 0;\n  node.isProjectionDirty = true;\n}\nfunction resolveTargetDelta(node) {\n  node.resolveTargetDelta();\n}\nfunction calcProjection(node) {\n  node.calcProjection();\n}\nfunction resetSkewAndRotation(node) {\n  node.resetSkewAndRotation();\n}\nfunction removeLeadSnapshots(stack) {\n  stack.removeLeadSnapshot();\n}\nfunction mixAxisDeltaLinear(output, delta, p) {\n  output.translate = mixNumber(delta.translate, 0, p);\n  output.scale = mixNumber(delta.scale, 1, p);\n  output.origin = delta.origin;\n  output.originPoint = delta.originPoint;\n}\nfunction mixAxis(output, from, to, p) {\n  output.min = mixNumber(from.min, to.min, p);\n  output.max = mixNumber(from.max, to.max, p);\n}\nfunction mixBox(output, from, to, p) {\n  mixAxis(output.x, from.x, to.x, p);\n  mixAxis(output.y, from.y, to.y, p);\n}\nfunction hasOpacityCrossfade(node) {\n  return node.animationValues && node.animationValues.opacityExit !== void 0;\n}\nvar defaultLayoutTransition = {\n  duration: 0.45,\n  ease: [0.4, 0, 0.1, 1]\n};\nvar userAgentContains = (string) => typeof navigator !== \"undefined\" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(string);\nvar roundPoint = userAgentContains(\"applewebkit/\") && !userAgentContains(\"chrome/\") ? Math.round : noop;\nfunction roundAxis(axis) {\n  axis.min = roundPoint(axis.min);\n  axis.max = roundPoint(axis.max);\n}\nfunction roundBox(box) {\n  roundAxis(box.x);\n  roundAxis(box.y);\n}\nfunction shouldAnimatePositionOnly(animationType, snapshot, layout2) {\n  return animationType === \"position\" || animationType === \"preserve-aspect\" && !isNear(aspectRatio(snapshot), aspectRatio(layout2), 0.2);\n}\nfunction checkNodeWasScrollRoot(node) {\n  return node !== node.root && node.scroll?.wasRoot;\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs\nvar DocumentProjectionNode = createProjectionNode({\n  attachResizeListener: (ref, notify2) => addDomEvent(ref, \"resize\", notify2),\n  measureScroll: () => ({\n    x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,\n    y: document.documentElement.scrollTop || document.body?.scrollTop || 0\n  }),\n  checkIsScrollRoot: () => true\n});\n\n// ../../../node_modules/motion-dom/dist/es/projection/node/group.mjs\nvar notify = (node) => !node.isLayoutDirty && node.willUpdate(false);\nfunction nodeGroup() {\n  const nodes = /* @__PURE__ */ new Set();\n  const subscriptions = /* @__PURE__ */ new WeakMap();\n  const dirtyAll = () => nodes.forEach(notify);\n  return {\n    add: (node) => {\n      nodes.add(node);\n      subscriptions.set(node, node.addEventListener(\"willUpdate\", dirtyAll));\n    },\n    remove: (node) => {\n      nodes.delete(node);\n      const unsubscribe = subscriptions.get(node);\n      if (unsubscribe) {\n        unsubscribe();\n        subscriptions.delete(node);\n      }\n      dirtyAll();\n    },\n    dirty: dirtyAll\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs\nvar rootProjectionNode = {\n  current: void 0\n};\nvar HTMLProjectionNode = createProjectionNode({\n  measureScroll: (instance) => ({\n    x: instance.scrollLeft,\n    y: instance.scrollTop\n  }),\n  defaultParent: () => {\n    if (!rootProjectionNode.current) {\n      const documentNode = new DocumentProjectionNode({});\n      documentNode.mount(window);\n      documentNode.setOptions({ layoutScroll: true });\n      rootProjectionNode.current = documentNode;\n    }\n    return rootProjectionNode.current;\n  },\n  resetTransform: (instance, value) => {\n    instance.style.transform = value !== void 0 ? value : \"none\";\n  },\n  checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === \"fixed\")\n});\n\n// ../../../node_modules/motion-dom/dist/es/layout/LayoutAnimationBuilder.mjs\nvar layoutSelector = \"[data-layout],[data-layout-id]\";\nvar layoutNodes = /* @__PURE__ */ new WeakMap();\nvar pendingBuilders;\nfunction collectLayoutElements(scope) {\n  const elements = [];\n  if (scope instanceof HTMLElement && scope.matches(layoutSelector)) {\n    elements.push(scope);\n  }\n  scope.querySelectorAll(layoutSelector).forEach((element) => {\n    if (element instanceof HTMLElement)\n      elements.push(element);\n  });\n  return elements;\n}\nfunction flushPendingFrame() {\n  if (frameData.isProcessing)\n    return;\n  const now2 = time.now();\n  frameData.delta = clamp(0, 1e3 / 60, now2 - frameData.timestamp);\n  frameData.timestamp = now2;\n  frameData.isProcessing = true;\n  frameSteps.update.process(frameData);\n  frameSteps.preRender.process(frameData);\n  frameSteps.render.process(frameData);\n  frameData.isProcessing = false;\n}\nfunction getProjectionParent(element) {\n  let ancestor = element.parentElement;\n  while (ancestor) {\n    const node = layoutNodes.get(ancestor);\n    if (node && node.instance)\n      return node;\n    ancestor = ancestor.parentElement;\n  }\n  return void 0;\n}\nfunction createVisualElement() {\n  return new HTMLVisualElement({\n    props: {},\n    presenceContext: null,\n    visualState: {\n      latestValues: {},\n      renderState: {\n        transform: {},\n        transformOrigin: {},\n        style: {},\n        vars: {}\n      }\n    }\n  }, { allowProjection: true });\n}\nfunction readNodeOptions(element, transition) {\n  const layoutAttr = element.getAttribute(\"data-layout\");\n  const layoutId = element.getAttribute(\"data-layout-id\") ?? void 0;\n  return {\n    layoutId,\n    layout: layoutAttr !== null ? true : void 0,\n    animationType: !layoutAttr || layoutAttr === \"true\" ? \"both\" : layoutAttr,\n    transition\n  };\n}\nfunction prepareNode(element, transition) {\n  let node = layoutNodes.get(element);\n  if (!node) {\n    let visualElement = visualElementStore.get(element);\n    if (!visualElement) {\n      visualElement = createVisualElement();\n      handOffElementState(element, visualElement);\n    }\n    if (element.style.transform && !hasTransform(visualElement.latestValues)) {\n      element.style.transform = \"\";\n    }\n    node = new HTMLProjectionNode(visualElement.latestValues, getProjectionParent(element));\n    visualElement.projection = node;\n    node.setOptions({\n      ...readNodeOptions(element, transition),\n      visualElement\n    });\n    node.mount(element);\n    layoutNodes.set(element, node);\n  } else {\n    node.setOptions(readNodeOptions(element, transition));\n  }\n  node.isPresent = true;\n  if (node.options.onExitComplete) {\n    node.setOptions({ onExitComplete: void 0 });\n  }\n  return node;\n}\nfunction sortDocumentOrder(elements) {\n  return [...elements].sort((a, b) => a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);\n}\nfunction dropNode(element, node) {\n  node.setOptions({ onExitComplete: void 0 });\n  const stack = node.getStack();\n  if (!stack || node.isLead())\n    node.currentAnimation?.stop();\n  node.unmount();\n  layoutNodes.delete(element);\n}\nfunction flushPendingBuilders() {\n  const builders2 = pendingBuilders;\n  pendingBuilders = void 0;\n  flushPendingFrame();\n  const targets = /* @__PURE__ */ new Map();\n  for (const builder of builders2) {\n    for (const element of builder.collectTargets()) {\n      const owners = targets.get(element);\n      owners ? owners.push(builder) : targets.set(element, [builder]);\n    }\n  }\n  const union = /* @__PURE__ */ new Map();\n  for (const element of sortDocumentOrder(targets.keys())) {\n    const owners = targets.get(element);\n    const node = prepareNode(element, owners[owners.length - 1].transitionFor(element));\n    for (const owner of owners)\n      owner.adopt(element, node);\n    union.set(element, node);\n  }\n  union.forEach((node) => {\n    node.isLayoutDirty = false;\n    node.willUpdate();\n  });\n  const updatePromises = [];\n  for (const builder of builders2) {\n    const result = builder.runUpdate();\n    if (result)\n      updatePromises.push(result);\n  }\n  const commit = () => {\n    const newMemberIds = /* @__PURE__ */ new Set();\n    for (const builder of builders2) {\n      builder.reconcileAdditions(newMemberIds);\n    }\n    for (const builder of builders2) {\n      builder.reconcileRemovals(newMemberIds);\n    }\n    let root;\n    union.forEach((node) => root || (root = node.root));\n    for (const builder of builders2)\n      root || (root = builder.getRoot());\n    root?.didUpdate();\n    microtask.render(() => {\n      for (const builder of builders2)\n        builder.finalize();\n    });\n  };\n  updatePromises.length ? Promise.all(updatePromises).then(commit) : commit();\n}\nvar LayoutAnimationBuilder = class {\n  constructor(scope, updateDom, defaultOptions) {\n    this.scope = scope;\n    this.updateDom = updateDom;\n    this.defaultOptions = defaultOptions;\n    this.sharedTransitions = /* @__PURE__ */ new Map();\n    this.notifyReady = () => {\n    };\n    this.rejectReady = () => {\n    };\n    this.tracked = /* @__PURE__ */ new Map();\n    this.restorePoints = /* @__PURE__ */ new Map();\n    this.readyPromise = new Promise((resolve, reject) => {\n      this.notifyReady = resolve;\n      this.rejectReady = reject;\n    });\n    if (!pendingBuilders) {\n      pendingBuilders = [];\n      queueMicrotask(flushPendingBuilders);\n    }\n    pendingBuilders.push(this);\n  }\n  shared(id4, transition) {\n    this.sharedTransitions.set(id4, transition);\n    return this;\n  }\n  then(resolve, reject) {\n    return this.readyPromise.then(resolve, reject);\n  }\n  transitionFor(element) {\n    const layoutId = element.getAttribute(\"data-layout-id\");\n    return layoutId && this.sharedTransitions.get(layoutId) || this.defaultOptions;\n  }\n  adopt(element, node) {\n    this.tracked.set(element, node);\n    this.restorePoints.set(element, {\n      parent: element.parentElement,\n      next: element.nextSibling\n    });\n  }\n  collectTargets() {\n    return collectLayoutElements(this.scope);\n  }\n  runUpdate() {\n    try {\n      const result = this.updateDom();\n      if (result && typeof result.then === \"function\") {\n        return result.then(void 0, (error) => {\n          this.updateError = error;\n        });\n      }\n    } catch (error) {\n      this.updateError = error;\n    }\n    return void 0;\n  }\n  reconcileAdditions(newMemberIds) {\n    for (const element of collectLayoutElements(this.scope)) {\n      if (this.tracked.has(element))\n        continue;\n      const node = prepareNode(element, this.transitionFor(element));\n      this.adopt(element, node);\n      node.options.layoutId && newMemberIds.add(node.options.layoutId);\n    }\n  }\n  reconcileRemovals(newMemberIds) {\n    this.tracked.forEach((node, element) => {\n      if (element.isConnected)\n        return;\n      const restore = this.restorePoints.get(element);\n      this.restorePoints.delete(element);\n      const { layoutId } = node.options;\n      const stack = node.getStack();\n      const hasSurvivor = stack && stack.members.some((member) => member !== node && member.instance?.isConnected);\n      if (layoutId && node.isLead() && hasSurvivor && !newMemberIds.has(layoutId)) {\n        if (restore && restore.parent.isConnected) {\n          restore.parent.insertBefore(element, restore.next && restore.next.parentNode === restore.parent ? restore.next : null);\n          node.isPresent = false;\n          node.setOptions({\n            onExitComplete: () => {\n              element.remove();\n              dropNode(element, node);\n            }\n          });\n          if (node.relegate())\n            return;\n          element.remove();\n        }\n      }\n      dropNode(element, node);\n      this.tracked.delete(element);\n    });\n  }\n  getRoot() {\n    let root;\n    this.tracked.forEach((node) => root || (root = node.root));\n    return root;\n  }\n  finalize() {\n    if (this.updateError) {\n      this.rejectReady(this.updateError);\n      return;\n    }\n    const animations2 = /* @__PURE__ */ new Set();\n    this.tracked.forEach((node) => {\n      if (node.instance && node.currentAnimation) {\n        animations2.add(node.currentAnimation);\n      }\n    });\n    this.notifyReady(new GroupAnimation([...animations2]));\n  }\n};\nfunction parseAnimateLayoutArgs(scopeOrUpdateDom, updateDomOrOptions, options) {\n  if (typeof scopeOrUpdateDom === \"function\") {\n    return {\n      scope: document,\n      updateDom: scopeOrUpdateDom,\n      defaultOptions: updateDomOrOptions\n    };\n  }\n  const scope = scopeOrUpdateDom instanceof Document ? scopeOrUpdateDom : resolveElements(scopeOrUpdateDom)[0] ?? document;\n  return {\n    scope,\n    updateDom: updateDomOrOptions,\n    defaultOptions: options\n  };\n}\n\n// ../../../node_modules/motion-dom/dist/es/layout/animate-layout.mjs\nfunction animateLayout(scopeOrUpdateDom, updateDomOrOptions, options) {\n  const { scope, updateDom, defaultOptions } = parseAnimateLayoutArgs(scopeOrUpdateDom, updateDomOrOptions, options);\n  return new LayoutAnimationBuilder(scope, updateDom, defaultOptions);\n}\n\n// ../../../node_modules/motion-dom/dist/es/frameloop/index-legacy.mjs\nvar sync = frame;\nvar cancelSync = stepsOrder.reduce((acc, key) => {\n  acc[key] = (process2) => cancelFrame(process2);\n  return acc;\n}, {});\n\n// ../../../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs\nimport { createContext as createContext3 } from \"react\";\nvar MotionConfigContext = createContext3({\n  transformPagePoint: (p) => p,\n  isStatic: false,\n  reducedMotion: \"never\"\n});\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n  if (typeof ref === \"function\") {\n    return ref(value);\n  } else if (ref !== null && ref !== void 0) {\n    ref.current = value;\n  }\n}\nfunction composeRefs(...refs) {\n  return (node) => {\n    let hasCleanup = false;\n    const cleanups = refs.map((ref) => {\n      const cleanup = setRef(ref, node);\n      if (!hasCleanup && typeof cleanup === \"function\") {\n        hasCleanup = true;\n      }\n      return cleanup;\n    });\n    if (hasCleanup) {\n      return () => {\n        for (let i = 0; i < cleanups.length; i++) {\n          const cleanup = cleanups[i];\n          if (typeof cleanup === \"function\") {\n            cleanup();\n          } else {\n            setRef(refs[i], null);\n          }\n        }\n      };\n    }\n  };\n}\nfunction useComposedRefs(...refs) {\n  return React.useCallback(composeRefs(...refs), refs);\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs\nimport { jsx } from \"react/jsx-runtime\";\nimport * as React2 from \"react\";\nimport { useId, useRef, useContext, useInsertionEffect } from \"react\";\nvar PopChildMeasure = class extends React2.Component {\n  getSnapshotBeforeUpdate(prevProps) {\n    const element = this.props.childRef.current;\n    if (isHTMLElement(element) && prevProps.isPresent && !this.props.isPresent && this.props.pop !== false) {\n      const parent = element.offsetParent;\n      const parentWidth = isHTMLElement(parent) ? parent.offsetWidth || 0 : 0;\n      const parentHeight = isHTMLElement(parent) ? parent.offsetHeight || 0 : 0;\n      const computedStyle = getComputedStyle(element);\n      const size = this.props.sizeRef.current;\n      size.height = parseFloat(computedStyle.height);\n      size.width = parseFloat(computedStyle.width);\n      size.top = element.offsetTop;\n      size.left = element.offsetLeft;\n      size.right = parentWidth - size.width - size.left;\n      size.bottom = parentHeight - size.height - size.top;\n      size.direction = computedStyle.direction;\n    }\n    return null;\n  }\n  /**\n   * Required with getSnapshotBeforeUpdate to stop React complaining.\n   */\n  componentDidUpdate() {\n  }\n  render() {\n    return this.props.children;\n  }\n};\nfunction PopChild({ children, isPresent: isPresent2, anchorX, anchorY, root, pop }) {\n  const id4 = useId();\n  const ref = useRef(null);\n  const size = useRef({\n    width: 0,\n    height: 0,\n    top: 0,\n    left: 0,\n    right: 0,\n    bottom: 0,\n    direction: \"ltr\"\n  });\n  const { nonce } = useContext(MotionConfigContext);\n  const childRef = pop !== false ? children.props?.ref ?? children?.ref : void 0;\n  const composedRef = useComposedRefs(ref, childRef);\n  useInsertionEffect(() => {\n    const { width, height, top, left, right, bottom, direction } = size.current;\n    if (isPresent2 || pop === false || !ref.current || !width || !height)\n      return;\n    const isRTL = direction === \"rtl\";\n    const x = anchorX === \"left\" ? isRTL ? `right: ${right}` : `left: ${left}` : isRTL ? `left: ${left}` : `right: ${right}`;\n    const y = anchorY === \"bottom\" ? `bottom: ${bottom}` : `top: ${top}`;\n    const element = ref.current;\n    element.dataset.motionPopId = id4;\n    const doc = element.ownerDocument;\n    const style2 = doc.createElement(\"style\");\n    if (nonce)\n      style2.nonce = nonce;\n    const parent = root ?? doc.head;\n    parent.appendChild(style2);\n    if (style2.sheet) {\n      style2.sheet.insertRule(`\n          [data-motion-pop-id=\"${id4}\"] {\n            position: absolute !important;\n            width: ${width}px !important;\n            height: ${height}px !important;\n            ${x}px !important;\n            ${y}px !important;\n          }\n        `);\n    }\n    return () => {\n      ref.current?.removeAttribute(\"data-motion-pop-id\");\n      if (parent.contains(style2)) {\n        parent.removeChild(style2);\n      }\n    };\n  }, [isPresent2]);\n  return jsx(PopChildMeasure, { isPresent: isPresent2, childRef: ref, sizeRef: size, pop, children: pop === false ? children : React2.cloneElement(children, { ref: composedRef }) });\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nimport * as React3 from \"react\";\nimport { useId as useId2, useRef as useRef3, useMemo } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-constant.mjs\nimport { useRef as useRef2 } from \"react\";\nfunction useConstant(init) {\n  const ref = useRef2(null);\n  if (ref.current === null) {\n    ref.current = init();\n  }\n  return ref.current;\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs\nvar PresenceChild = ({ children, initial, isPresent: isPresent2, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {\n  const presenceChildren = useConstant(newChildrenMap);\n  const id4 = useId2();\n  const isPresentRef = useRef3(isPresent2);\n  const onExitCompleteRef = useRef3(onExitComplete);\n  useIsomorphicLayoutEffect(() => {\n    isPresentRef.current = isPresent2;\n    onExitCompleteRef.current = onExitComplete;\n  });\n  let isReusedContext = true;\n  let context = useMemo(() => {\n    isReusedContext = false;\n    return {\n      id: id4,\n      initial,\n      isPresent: isPresent2,\n      custom,\n      onExitComplete: (childId) => {\n        presenceChildren.set(childId, true);\n        for (const isComplete of presenceChildren.values()) {\n          if (!isComplete)\n            return;\n        }\n        onExitComplete && onExitComplete();\n      },\n      register: (childId) => {\n        presenceChildren.set(childId, false);\n        return () => {\n          presenceChildren.delete(childId);\n          !isPresentRef.current && !presenceChildren.size && onExitCompleteRef.current?.();\n        };\n      }\n    };\n  }, [isPresent2, presenceChildren, onExitComplete]);\n  if (presenceAffectsLayout && isReusedContext) {\n    context = { ...context };\n  }\n  useMemo(() => {\n    presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n  }, [isPresent2]);\n  React3.useEffect(() => {\n    !isPresent2 && !presenceChildren.size && onExitComplete && onExitComplete();\n  }, [isPresent2]);\n  children = jsx2(PopChild, { pop: mode === \"popLayout\", isPresent: isPresent2, anchorX, anchorY, root, children });\n  return jsx2(PresenceContext.Provider, { value: context, children });\n};\nfunction newChildrenMap() {\n  return /* @__PURE__ */ new Map();\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs\nimport { useContext as useContext2, useId as useId3, useEffect as useEffect3, useCallback as useCallback2 } from \"react\";\nfunction usePresence(subscribe = true) {\n  const context = useContext2(PresenceContext);\n  if (context === null)\n    return [true, null];\n  const { isPresent: isPresent2, onExitComplete, register } = context;\n  const id4 = useId3();\n  useEffect3(() => {\n    if (subscribe) {\n      return register(id4);\n    }\n  }, [subscribe]);\n  const safeToRemove = useCallback2(() => subscribe && onExitComplete && onExitComplete(id4), [id4, onExitComplete, subscribe]);\n  return !isPresent2 && onExitComplete ? [false, safeToRemove] : [true];\n}\nfunction useIsPresent() {\n  return isPresent(useContext2(PresenceContext));\n}\nfunction isPresent(context) {\n  return context === null ? true : context.isPresent;\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs\nimport { jsx as jsx3, Fragment } from \"react/jsx-runtime\";\nimport { useMemo as useMemo2, useRef as useRef4, useState, useContext as useContext3 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs\nimport { Children, isValidElement } from \"react\";\nvar getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n  const filtered = [];\n  Children.forEach(children, (child) => {\n    if (isValidElement(child))\n      filtered.push(child);\n  });\n  return filtered;\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs\nvar AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", anchorY = \"top\", root }) => {\n  const [isParentPresent, safeToRemove] = usePresence(propagate);\n  const presentChildren = useMemo2(() => onlyElements(children), [children]);\n  const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n  const isInitialRender = useRef4(true);\n  const exitComplete = useConstant(() => /* @__PURE__ */ new Map());\n  const exitingComponents = useRef4(/* @__PURE__ */ new Set());\n  const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n  const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n  useIsomorphicLayoutEffect(() => {\n    if (propagate && !isParentPresent && !renderedChildren.length) {\n      safeToRemove?.();\n    }\n  }, [isParentPresent, propagate, renderedChildren.length, safeToRemove]);\n  useIsomorphicLayoutEffect(() => {\n    isInitialRender.current = false;\n    for (let i = 0; i < renderedChildren.length; i++) {\n      const key = getChildKey(renderedChildren[i]);\n      if (!presentKeys.includes(key)) {\n        if (exitComplete.get(key) !== true) {\n          exitComplete.set(key, false);\n        }\n      } else {\n        exitComplete.delete(key);\n        exitingComponents.current.delete(key);\n      }\n    }\n  }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n  const exitingChildren = [];\n  if (presentChildren !== diffedChildren) {\n    let nextChildren = [...presentChildren];\n    let insertionIndex = 0;\n    for (const child of renderedChildren) {\n      const presentIndex = presentKeys.indexOf(getChildKey(child));\n      if (presentIndex === -1) {\n        nextChildren.splice(insertionIndex++, 0, child);\n        exitingChildren.push(child);\n      } else {\n        insertionIndex = presentIndex + exitingChildren.length + 1;\n      }\n    }\n    if (exitingChildren.every((child) => exitComplete.get(getChildKey(child)))) {\n      nextChildren = presentChildren;\n    } else if (mode === \"wait\") {\n      nextChildren = exitingChildren;\n    }\n    setRenderedChildren(onlyElements(nextChildren));\n    setDiffedChildren(presentChildren);\n    return null;\n  }\n  if (false) {\n    console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n  }\n  const { forceRender } = useContext3(LayoutGroupContext);\n  return jsx3(Fragment, { children: renderedChildren.map((child) => {\n    const key = getChildKey(child);\n    const isPresent2 = propagate && !isParentPresent ? false : presentChildren === renderedChildren || presentKeys.includes(key);\n    const onExit = () => {\n      if (exitingComponents.current.has(key)) {\n        return;\n      }\n      if (exitComplete.has(key)) {\n        exitingComponents.current.add(key);\n        exitComplete.set(key, true);\n      } else {\n        return;\n      }\n      let isEveryExitComplete = true;\n      exitComplete.forEach((isExitComplete) => {\n        if (!isExitComplete)\n          isEveryExitComplete = false;\n      });\n      if (isEveryExitComplete) {\n        forceRender?.();\n        setDiffedChildren([]);\n        propagate && safeToRemove?.();\n        onExitComplete && onExitComplete();\n      }\n    };\n    return jsx3(PresenceChild, { isPresent: isPresent2, initial: !isInitialRender.current || initial ? void 0 : false, custom, presenceAffectsLayout, mode, root, onExitComplete: isPresent2 ? void 0 : onExit, anchorX, anchorY, children: child }, key);\n  }) });\n};\n\n// ../../../node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs\nimport { createContext as createContext4 } from \"react\";\nvar DeprecatedLayoutGroupContext = createContext4(null);\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-force-update.mjs\nimport { useState as useState2, useCallback as useCallback3 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs\nimport { useRef as useRef5 } from \"react\";\nfunction useIsMounted() {\n  const isMounted = useRef5(false);\n  useIsomorphicLayoutEffect(() => {\n    isMounted.current = true;\n    return () => {\n      isMounted.current = false;\n    };\n  }, []);\n  return isMounted;\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-force-update.mjs\nfunction useForceUpdate() {\n  const isMounted = useIsMounted();\n  const [forcedRenderCount, setForcedRenderCount] = useState2(0);\n  const forceRender = useCallback3(() => {\n    isMounted.current && setForcedRenderCount(forcedRenderCount + 1);\n  }, [forcedRenderCount]);\n  const deferredForceRender = useCallback3(() => frame.postRender(forceRender), [forceRender]);\n  return [deferredForceRender, forcedRenderCount];\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs\nimport { jsx as jsx4 } from \"react/jsx-runtime\";\nimport { useContext as useContext4, useRef as useRef6, useMemo as useMemo3 } from \"react\";\nvar shouldInheritGroup = (inherit) => inherit === true;\nvar shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === \"id\";\nvar LayoutGroup = ({ children, id: id4, inherit = true }) => {\n  const layoutGroupContext = useContext4(LayoutGroupContext);\n  const deprecatedLayoutGroupContext = useContext4(DeprecatedLayoutGroupContext);\n  const [forceRender, key] = useForceUpdate();\n  const context = useRef6(null);\n  const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;\n  if (context.current === null) {\n    if (shouldInheritId(inherit) && upstreamId) {\n      id4 = id4 ? upstreamId + \"-\" + id4 : upstreamId;\n    }\n    context.current = {\n      id: id4,\n      group: shouldInheritGroup(inherit) ? layoutGroupContext.group || nodeGroup() : nodeGroup()\n    };\n  }\n  const memoizedContext = useMemo3(() => ({ ...context.current, forceRender }), [key]);\n  return jsx4(LayoutGroupContext.Provider, { value: memoizedContext, children });\n};\n\n// ../../../node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs\nimport { jsx as jsx5 } from \"react/jsx-runtime\";\nimport { useState as useState3, useRef as useRef7, useEffect as useEffect4 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/context/LazyContext.mjs\nimport { createContext as createContext5 } from \"react\";\nvar LazyContext = createContext5({ strict: false });\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/definitions.mjs\nvar featureProps = {\n  animation: [\n    \"animate\",\n    \"variants\",\n    \"whileHover\",\n    \"whileTap\",\n    \"exit\",\n    \"whileInView\",\n    \"whileFocus\",\n    \"whileDrag\"\n  ],\n  exit: [\"exit\"],\n  drag: [\"drag\", \"dragControls\"],\n  focus: [\"whileFocus\"],\n  hover: [\"whileHover\", \"onHoverStart\", \"onHoverEnd\"],\n  tap: [\"whileTap\", \"onTap\", \"onTapStart\", \"onTapCancel\"],\n  pan: [\"onPan\", \"onPanStart\", \"onPanSessionStart\", \"onPanEnd\"],\n  inView: [\"whileInView\", \"onViewportEnter\", \"onViewportLeave\"],\n  layout: [\"layout\", \"layoutId\"]\n};\nvar isInitialized = false;\nfunction initFeatureDefinitions() {\n  if (isInitialized)\n    return;\n  const initialFeatureDefinitions = {};\n  for (const key in featureProps) {\n    initialFeatureDefinitions[key] = {\n      isEnabled: (props) => featureProps[key].some((name) => !!props[name])\n    };\n  }\n  setFeatureDefinitions(initialFeatureDefinitions);\n  isInitialized = true;\n}\nfunction getInitializedFeatureDefinitions() {\n  initFeatureDefinitions();\n  return getFeatureDefinitions();\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs\nfunction loadFeatures(features) {\n  const featureDefinitions2 = getInitializedFeatureDefinitions();\n  for (const key in features) {\n    featureDefinitions2[key] = {\n      ...featureDefinitions2[key],\n      ...features[key]\n    };\n  }\n  setFeatureDefinitions(featureDefinitions2);\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs\nfunction LazyMotion({ children, features, strict = false }) {\n  const [, setIsLoaded] = useState3(!isLazyBundle(features));\n  const loadedRenderer = useRef7(void 0);\n  if (!isLazyBundle(features)) {\n    const { renderer, ...loadedFeatures } = features;\n    loadedRenderer.current = renderer;\n    loadFeatures(loadedFeatures);\n  }\n  useEffect4(() => {\n    if (isLazyBundle(features)) {\n      features().then(({ renderer, ...loadedFeatures }) => {\n        loadFeatures(loadedFeatures);\n        loadedRenderer.current = renderer;\n        setIsLoaded(true);\n      });\n    }\n  }, []);\n  return jsx5(LazyContext.Provider, { value: { renderer: loadedRenderer.current, strict }, children });\n}\nfunction isLazyBundle(features) {\n  return typeof features === \"function\";\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs\nimport { jsx as jsx6 } from \"react/jsx-runtime\";\nimport { useContext as useContext5, useMemo as useMemo4 } from \"react\";\nfunction MotionConfig({ children, ...config }) {\n  const parentConfig = useContext5(MotionConfigContext);\n  config = { ...parentConfig, ...config };\n  config.transition = resolveTransition(config.transition, parentConfig.transition);\n  config.isStatic = useConstant(() => config.isStatic);\n  const context = useMemo4(() => config, [\n    JSON.stringify(config.transition),\n    config.transformPagePoint,\n    config.reducedMotion,\n    config.skipAnimations,\n    config.isValidProp\n  ]);\n  return jsx6(MotionConfigContext.Provider, { value: context, children });\n}\n\n// ../../../node_modules/framer-motion/dist/es/context/MotionContext/index.mjs\nimport { createContext as createContext6 } from \"react\";\nvar MotionContext = /* @__PURE__ */ createContext6({});\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs\nvar validMotionProps = /* @__PURE__ */ new Set([\n  \"animate\",\n  \"exit\",\n  \"variants\",\n  \"initial\",\n  \"style\",\n  \"values\",\n  \"transition\",\n  \"transformTemplate\",\n  \"custom\",\n  \"inherit\",\n  \"onBeforeLayoutMeasure\",\n  \"onAnimationStart\",\n  \"onAnimationComplete\",\n  \"onUpdate\",\n  \"onDragStart\",\n  \"onDrag\",\n  \"onDragEnd\",\n  \"onMeasureDragConstraints\",\n  \"onDirectionLock\",\n  \"onDragTransitionEnd\",\n  \"_dragX\",\n  \"_dragY\",\n  \"onHoverStart\",\n  \"onHoverEnd\",\n  \"onViewportEnter\",\n  \"onViewportLeave\",\n  \"globalTapTarget\",\n  \"propagate\",\n  \"ignoreStrict\",\n  \"viewport\"\n]);\nfunction isValidMotionProp(key) {\n  return key.startsWith(\"while\") || key.startsWith(\"drag\") && key !== \"draggable\" || key.startsWith(\"layout\") || key.startsWith(\"onTap\") || key.startsWith(\"onPan\") || key.startsWith(\"onLayout\") || validMotionProps.has(key);\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs\nfunction shouldForward(key, isValidProp) {\n  return key.startsWith(\"on\") ? !isValidMotionProp(key) : isValidProp?.(key) ?? !isValidMotionProp(key);\n}\nfunction filterProps(props, isDom, forwardMotionProps, isValidProp) {\n  const filteredProps = {};\n  for (const key in props) {\n    if (key === \"values\" && typeof props.values === \"object\")\n      continue;\n    if (isMotionValue(props[key]))\n      continue;\n    if (shouldForward(key, isValidProp) || forwardMotionProps === true && isValidMotionProp(key) || !isDom && !isValidMotionProp(key) || // If trying to use native HTML drag events, forward drag listeners\n    props[\"draggable\"] && key.startsWith(\"onDrag\")) {\n      filteredProps[key] = props[key];\n    }\n  }\n  return filteredProps;\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs\nimport { useContext as useContext6 } from \"react\";\nfunction makeState({ scrapeMotionValuesFromProps: scrapeMotionValuesFromProps3, createRenderState }, props, context, presenceContext) {\n  const state = {\n    latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps3),\n    renderState: createRenderState()\n  };\n  return state;\n}\nfunction makeLatestValues(props, context, presenceContext, scrapeMotionValues) {\n  const values = {};\n  const motionValues = scrapeMotionValues(props, {});\n  for (const key in motionValues) {\n    values[key] = resolveMotionValue(motionValues[key]);\n  }\n  let { initial, animate: animate2 } = props;\n  const isControllingVariants$1 = isControllingVariants(props);\n  const isVariantNode$1 = isVariantNode(props);\n  if (context && isVariantNode$1 && !isControllingVariants$1 && props.inherit !== false) {\n    if (initial === void 0)\n      initial = context.initial;\n    if (animate2 === void 0)\n      animate2 = context.animate;\n  }\n  let isInitialAnimationBlocked = presenceContext ? presenceContext.initial === false : false;\n  isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;\n  const variantToSet = isInitialAnimationBlocked ? animate2 : initial;\n  if (variantToSet && typeof variantToSet !== \"boolean\" && !isAnimationControls(variantToSet)) {\n    const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];\n    for (let i = 0; i < list.length; i++) {\n      const resolved = resolveVariantFromProps(props, list[i]);\n      if (resolved) {\n        const { transitionEnd, transition, ...target } = resolved;\n        for (const key in target) {\n          let valueTarget = target[key];\n          if (Array.isArray(valueTarget)) {\n            const index = isInitialAnimationBlocked ? valueTarget.length - 1 : 0;\n            valueTarget = valueTarget[index];\n          }\n          if (valueTarget !== null) {\n            values[key] = valueTarget;\n          }\n        }\n        for (const key in transitionEnd) {\n          values[key] = transitionEnd[key];\n        }\n      }\n    }\n  }\n  return values;\n}\nvar makeUseVisualState = (config) => (props, isStatic) => {\n  const context = useContext6(MotionContext);\n  const presenceContext = useContext6(PresenceContext);\n  const make = () => makeState(config, props, context, presenceContext);\n  return isStatic ? make() : useConstant(make);\n};\n\n// ../../../node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs\nimport { createContext as createContext7 } from \"react\";\nvar SwitchLayoutGroupContext = createContext7({});\n\n// ../../../node_modules/framer-motion/dist/es/motion/index.mjs\nimport { jsxs, jsx as jsx7 } from \"react/jsx-runtime\";\nimport { forwardRef, useContext as useContext9 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs\nimport { useContext as useContext7, useMemo as useMemo5 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs\nfunction getCurrentTreeVariants(props, context) {\n  if (isControllingVariants(props)) {\n    const { initial, animate: animate2 } = props;\n    return {\n      initial: initial === false || isVariantLabel(initial) ? initial : void 0,\n      animate: isVariantLabel(animate2) ? animate2 : void 0\n    };\n  }\n  return props.inherit !== false ? context : {};\n}\n\n// ../../../node_modules/framer-motion/dist/es/context/MotionContext/create.mjs\nfunction useCreateMotionContext(props) {\n  const { initial, animate: animate2 } = getCurrentTreeVariants(props, useContext7(MotionContext));\n  return useMemo5(() => ({ initial, animate: animate2 }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate2)]);\n}\nfunction variantLabelsAsDependency(prop) {\n  return Array.isArray(prop) ? prop.join(\" \") : prop;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs\nimport { Fragment as Fragment2, useMemo as useMemo8, createElement } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/render/html/use-props.mjs\nimport { useMemo as useMemo6 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs\nvar createHtmlRenderState = () => ({\n  style: {},\n  transform: {},\n  transformOrigin: {},\n  vars: {}\n});\n\n// ../../../node_modules/framer-motion/dist/es/render/html/use-props.mjs\nfunction copyRawValuesOnly(target, source, props) {\n  for (const key in source) {\n    if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {\n      target[key] = source[key];\n    }\n  }\n}\nfunction useInitialMotionValues({ transformTemplate }, visualState) {\n  return useMemo6(() => {\n    const state = createHtmlRenderState();\n    buildHTMLStyles(state, visualState, transformTemplate);\n    return Object.assign({}, state.vars, state.style);\n  }, [visualState]);\n}\nfunction useStyle(props, visualState) {\n  const styleProp = props.style || {};\n  const style2 = {};\n  copyRawValuesOnly(style2, styleProp, props);\n  Object.assign(style2, useInitialMotionValues(props, visualState));\n  return style2;\n}\nfunction useHTMLProps(props, visualState) {\n  const htmlProps = {};\n  const style2 = useStyle(props, visualState);\n  if (props.drag && props.dragListener !== false) {\n    htmlProps.draggable = false;\n    style2.userSelect = style2.WebkitUserSelect = style2.WebkitTouchCallout = \"none\";\n    style2.touchAction = props.drag === true ? \"none\" : `pan-${props.drag === \"x\" ? \"y\" : \"x\"}`;\n  }\n  if (props.tabIndex === void 0 && (props.onTap || props.onTapStart || props.whileTap)) {\n    htmlProps.tabIndex = 0;\n  }\n  htmlProps.style = style2;\n  return htmlProps;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/svg/use-props.mjs\nimport { useMemo as useMemo7 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs\nvar createSvgRenderState = () => ({\n  ...createHtmlRenderState(),\n  attrs: {}\n});\n\n// ../../../node_modules/framer-motion/dist/es/render/svg/use-props.mjs\nfunction useSVGProps(props, visualState, _isStatic, Component3) {\n  const visualProps = useMemo7(() => {\n    const state = createSvgRenderState();\n    buildSVGAttrs(state, visualState, isSVGTag(Component3), props.transformTemplate, props.style);\n    return {\n      ...state.attrs,\n      style: { ...state.style }\n    };\n  }, [visualState]);\n  if (props.style) {\n    const rawStyles = {};\n    copyRawValuesOnly(rawStyles, props.style, props);\n    visualProps.style = { ...rawStyles, ...visualProps.style };\n  }\n  return visualProps;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs\nvar lowercaseSVGElements = [\n  \"animate\",\n  \"circle\",\n  \"defs\",\n  \"desc\",\n  \"ellipse\",\n  \"g\",\n  \"image\",\n  \"line\",\n  \"filter\",\n  \"marker\",\n  \"mask\",\n  \"metadata\",\n  \"path\",\n  \"pattern\",\n  \"polygon\",\n  \"polyline\",\n  \"rect\",\n  \"stop\",\n  \"switch\",\n  \"symbol\",\n  \"svg\",\n  \"text\",\n  \"tspan\",\n  \"use\",\n  \"view\"\n];\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs\nfunction isSVGComponent(Component3) {\n  if (\n    /**\n     * If it's not a string, it's a custom React component. Currently we only support\n     * HTML custom React components.\n     */\n    typeof Component3 !== \"string\" || /**\n     * If it contains a dash, the element is a custom HTML webcomponent.\n     */\n    Component3.includes(\"-\")\n  ) {\n    return false;\n  } else if (\n    /**\n     * If it's in our list of lowercase SVG tags, it's an SVG component\n     */\n    lowercaseSVGElements.indexOf(Component3) > -1 || /**\n     * If it contains a capital letter, it's an SVG component\n     */\n    /[A-Z]/u.test(Component3)\n  ) {\n    return true;\n  }\n  return false;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs\nfunction useRender(Component3, props, ref, { latestValues }, isStatic, forwardMotionProps = false, isSVG, isValidProp) {\n  const useVisualProps = isSVG ?? isSVGComponent(Component3) ? useSVGProps : useHTMLProps;\n  const visualProps = useVisualProps(props, latestValues, isStatic, Component3);\n  const filteredProps = filterProps(props, typeof Component3 === \"string\", forwardMotionProps, isValidProp);\n  const elementProps = Component3 !== Fragment2 ? { ...filteredProps, ...visualProps, ref } : {};\n  const { children } = props;\n  const renderedChildren = useMemo8(() => isMotionValue(children) ? children.get() : children, [children]);\n  return createElement(Component3, {\n    ...elementProps,\n    children: renderedChildren\n  });\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs\nvar useHTMLVisualState = /* @__PURE__ */ makeUseVisualState({\n  scrapeMotionValuesFromProps,\n  createRenderState: createHtmlRenderState\n});\n\n// ../../../node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs\nvar useSVGVisualState = /* @__PURE__ */ makeUseVisualState({\n  scrapeMotionValuesFromProps: scrapeMotionValuesFromProps2,\n  createRenderState: createSvgRenderState\n});\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs\nvar motionComponentSymbol = /* @__PURE__ */ Symbol.for(\"motionComponentSymbol\");\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs\nimport { useRef as useRef8, useInsertionEffect as useInsertionEffect2, useCallback as useCallback4 } from \"react\";\nfunction useMotionRef(visualState, visualElement, externalRef) {\n  const externalRefContainer = useRef8(externalRef);\n  useInsertionEffect2(() => {\n    externalRefContainer.current = externalRef;\n  });\n  const refCleanup = useRef8(null);\n  return useCallback4((instance) => {\n    if (instance) {\n      visualState.onMount?.(instance);\n    }\n    if (visualElement) {\n      instance ? visualElement.mount(instance) : visualElement.unmount();\n    }\n    const ref = externalRefContainer.current;\n    if (typeof ref === \"function\") {\n      if (instance) {\n        const cleanup = ref(instance);\n        if (typeof cleanup === \"function\") {\n          refCleanup.current = cleanup;\n        }\n      } else if (refCleanup.current) {\n        refCleanup.current();\n        refCleanup.current = null;\n      } else {\n        ref(instance);\n      }\n    } else if (ref) {\n      ref.current = instance;\n    }\n  }, [visualElement]);\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs\nimport { useContext as useContext8, useRef as useRef9, useInsertionEffect as useInsertionEffect3, useEffect as useEffect5 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/utils/is-ref-object.mjs\nfunction isRefObject(ref) {\n  return ref && typeof ref === \"object\" && Object.prototype.hasOwnProperty.call(ref, \"current\");\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs\nfunction useVisualElement(Component3, visualState, props, createVisualElement2, ProjectionNodeConstructor, isSVG) {\n  const { visualElement: parent } = useContext8(MotionContext);\n  const lazyContext = useContext8(LazyContext);\n  const presenceContext = useContext8(PresenceContext);\n  const motionConfig = useContext8(MotionConfigContext);\n  const reducedMotionConfig = motionConfig.reducedMotion;\n  const skipAnimations = motionConfig.skipAnimations;\n  const visualElementRef = useRef9(null);\n  const hasMountedOnce = useRef9(false);\n  createVisualElement2 = createVisualElement2 || lazyContext.renderer;\n  if (!visualElementRef.current && createVisualElement2) {\n    visualElementRef.current = createVisualElement2(Component3, {\n      visualState,\n      parent,\n      props,\n      presenceContext,\n      blockInitialAnimation: presenceContext ? presenceContext.initial === false : false,\n      reducedMotionConfig,\n      skipAnimations,\n      isSVG\n    });\n    if (hasMountedOnce.current && visualElementRef.current) {\n      visualElementRef.current.manuallyAnimateOnMount = true;\n    }\n  }\n  const visualElement = visualElementRef.current;\n  const initialLayoutGroupConfig = useContext8(SwitchLayoutGroupContext);\n  if (visualElement && !visualElement.projection && ProjectionNodeConstructor && (visualElement.type === \"html\" || visualElement.type === \"svg\")) {\n    createProjectionNode2(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);\n  }\n  const isMounted = useRef9(false);\n  useInsertionEffect3(() => {\n    if (visualElement && isMounted.current) {\n      visualElement.update(props, presenceContext);\n    }\n  });\n  const optimisedAppearId = props[optimizedAppearDataAttribute];\n  const wantsHandoff = useRef9(Boolean(optimisedAppearId) && typeof window !== \"undefined\" && !window.MotionHandoffIsComplete?.(optimisedAppearId) && window.MotionHasOptimisedAnimation?.(optimisedAppearId));\n  useIsomorphicLayoutEffect(() => {\n    if (!hasMountedOnce.current || !visualElement)\n      return;\n    visualElement.animationState?.animateChanges();\n    visualElement.enteringChildren = void 0;\n  }, []);\n  useIsomorphicLayoutEffect(() => {\n    hasMountedOnce.current = true;\n    if (!visualElement)\n      return;\n    isMounted.current = true;\n    window.MotionIsMounted = true;\n    visualElement.updateFeatures();\n    visualElement.scheduleRenderMicrotask();\n    if (wantsHandoff.current && visualElement.animationState) {\n      visualElement.animationState.animateChanges();\n    }\n  });\n  useEffect5(() => {\n    if (!visualElement)\n      return;\n    if (!wantsHandoff.current && visualElement.animationState) {\n      visualElement.animationState.animateChanges();\n    }\n    if (wantsHandoff.current) {\n      queueMicrotask(() => {\n        window.MotionHandoffMarkAsComplete?.(optimisedAppearId);\n      });\n      wantsHandoff.current = false;\n    }\n    visualElement.enteringChildren = void 0;\n  });\n  return visualElement;\n}\nfunction createProjectionNode2(visualElement, props, ProjectionNodeConstructor, initialPromotionConfig) {\n  const { layoutId, layout: layout2, drag: drag2, dragConstraints, layoutScroll, layoutRoot, layoutAnchor, layoutCrossfade } = props;\n  visualElement.projection = new ProjectionNodeConstructor(visualElement.latestValues, props[\"data-framer-portal-id\"] ? void 0 : getClosestProjectingNode(visualElement.parent));\n  visualElement.projection.setOptions({\n    layoutId,\n    layout: layout2,\n    alwaysMeasureLayout: Boolean(drag2) || dragConstraints && isRefObject(dragConstraints),\n    visualElement,\n    /**\n     * TODO: Update options in an effect. This could be tricky as it'll be too late\n     * to update by the time layout animations run.\n     * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n     * ensuring it gets called if there's no potential layout animations.\n     *\n     */\n    animationType: typeof layout2 === \"string\" ? layout2 : \"both\",\n    initialPromotionConfig,\n    crossfade: layoutCrossfade,\n    layoutScroll,\n    layoutRoot,\n    layoutAnchor\n  });\n}\nfunction getClosestProjectingNode(visualElement) {\n  if (!visualElement)\n    return void 0;\n  return visualElement.options.allowProjection !== false ? visualElement.projection : getClosestProjectingNode(visualElement.parent);\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/index.mjs\nfunction createMotionComponent(Component3, { forwardMotionProps = false, type } = {}, preloadedFeatures, createVisualElement2) {\n  preloadedFeatures && loadFeatures(preloadedFeatures);\n  const isSVG = type ? type === \"svg\" : isSVGComponent(Component3);\n  const useVisualState2 = isSVG ? useSVGVisualState : useHTMLVisualState;\n  function MotionDOMComponent(props, externalRef) {\n    let MeasureLayout2;\n    const configAndProps = {\n      ...useContext9(MotionConfigContext),\n      ...props,\n      layoutId: useLayoutId(props)\n    };\n    const { isStatic, isValidProp } = configAndProps;\n    const context = useCreateMotionContext(props);\n    const visualState = useVisualState2(props, isStatic);\n    if (!isStatic && typeof window !== \"undefined\") {\n      useStrictMode(configAndProps, preloadedFeatures);\n      const layoutProjection = getProjectionFunctionality(configAndProps);\n      MeasureLayout2 = layoutProjection.MeasureLayout;\n      context.visualElement = useVisualElement(Component3, visualState, configAndProps, createVisualElement2, layoutProjection.ProjectionNode, isSVG);\n    }\n    return jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout2 && context.visualElement ? jsx7(MeasureLayout2, { visualElement: context.visualElement, ...configAndProps }) : null, useRender(Component3, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps, isSVG, isValidProp)] });\n  }\n  MotionDOMComponent.displayName = `motion.${typeof Component3 === \"string\" ? Component3 : `create(${Component3.displayName ?? Component3.name ?? \"\"})`}`;\n  const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);\n  ForwardRefMotionComponent[motionComponentSymbol] = Component3;\n  return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n  const layoutGroupId = useContext9(LayoutGroupContext).id;\n  return layoutGroupId && layoutId !== void 0 ? layoutGroupId + \"-\" + layoutId : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n  const isStrict = useContext9(LazyContext).strict;\n  if (false) {\n    const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n    configAndProps.ignoreStrict ? warning(false, strictMessage, \"lazy-strict-mode\") : invariant(false, strictMessage, \"lazy-strict-mode\");\n  }\n}\nfunction getProjectionFunctionality(props) {\n  const featureDefinitions2 = getInitializedFeatureDefinitions();\n  const { drag: drag2, layout: layout2 } = featureDefinitions2;\n  if (!drag2 && !layout2)\n    return {};\n  const combined = { ...drag2, ...layout2 };\n  return {\n    MeasureLayout: drag2?.isEnabled(props) || layout2?.isEnabled(props) ? combined.MeasureLayout : void 0,\n    ProjectionNode: combined.ProjectionNode\n  };\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/components/create-proxy.mjs\nfunction createMotionProxy(preloadedFeatures, createVisualElement2) {\n  if (typeof Proxy === \"undefined\") {\n    return createMotionComponent;\n  }\n  const componentCache = /* @__PURE__ */ new Map();\n  const factory = (Component3, options) => {\n    return createMotionComponent(Component3, options, preloadedFeatures, createVisualElement2);\n  };\n  const deprecatedFactoryFunction = (Component3, options) => {\n    if (false) {\n      warnOnce(false, \"motion() is deprecated. Use motion.create() instead.\");\n    }\n    return factory(Component3, options);\n  };\n  return new Proxy(deprecatedFactoryFunction, {\n    /**\n     * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n     * The prop name is passed through as `key` and we can use that to generate a `motion`\n     * DOM component with that name.\n     */\n    get: (_target, key) => {\n      if (key === \"create\")\n        return factory;\n      if (!componentCache.has(key)) {\n        componentCache.set(key, createMotionComponent(key, void 0, preloadedFeatures, createVisualElement2));\n      }\n      return componentCache.get(key);\n    }\n  });\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/components/m/proxy.mjs\nvar m = /* @__PURE__ */ createMotionProxy();\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs\nvar AnimationFeature = class extends Feature {\n  /**\n   * We dynamically generate the AnimationState manager as it contains a reference\n   * to the underlying animation library. We only want to load that if we load this,\n   * so people can optionally code split it out using the `m` component.\n   */\n  constructor(node) {\n    super(node);\n    node.animationState || (node.animationState = createAnimationState(node));\n  }\n  updateAnimationControlsSubscription() {\n    const { animate: animate2 } = this.node.getProps();\n    if (isAnimationControls(animate2)) {\n      this.unmountControls = animate2.subscribe(this.node);\n    }\n  }\n  /**\n   * Subscribe any provided AnimationControls to the component's VisualElement\n   */\n  mount() {\n    this.updateAnimationControlsSubscription();\n  }\n  update() {\n    const { animate: animate2 } = this.node.getProps();\n    const { animate: prevAnimate } = this.node.prevProps || {};\n    if (animate2 !== prevAnimate) {\n      this.updateAnimationControlsSubscription();\n    }\n  }\n  unmount() {\n    this.node.animationState.reset();\n    this.unmountControls?.();\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs\nvar id2 = 0;\nvar ExitAnimationFeature = class extends Feature {\n  constructor() {\n    super(...arguments);\n    this.id = id2++;\n  }\n  update() {\n    const { presenceContext, prevPresenceContext, animationState } = this.node;\n    if (!presenceContext || !animationState)\n      return;\n    const { isPresent: isPresent2, onExitComplete } = presenceContext;\n    const prevIsPresent = prevPresenceContext?.isPresent;\n    if (isPresent2 === prevIsPresent)\n      return;\n    if (isPresent2 && prevIsPresent === false) {\n      if (this.exit === true) {\n        const { initial } = this.node.getProps();\n        if (initial && !Array.isArray(initial)) {\n          const { transition, transitionEnd, ...target } = resolveVariant(this.node, initial) || {};\n          for (const key in target) {\n            this.node.getValue(key)?.jump(target[key]);\n          }\n        }\n        this.node.blockInitialAnimation = false;\n        animationState.reset();\n        animationState.animateChanges();\n      } else {\n        animationState.setActive(\"exit\", false);\n      }\n      this.exit = void 0;\n      return;\n    }\n    const exit = this.exit = animationState.setActive(\"exit\", !isPresent2);\n    if (onExitComplete && !isPresent2) {\n      exit.then(() => {\n        if (this.exit !== exit)\n          return;\n        this.exit = true;\n        onExitComplete(this.id);\n      });\n    }\n  }\n  mount() {\n    const { register, onExitComplete } = this.node.presenceContext || {};\n    if (onExitComplete) {\n      onExitComplete(this.id);\n    }\n    if (register) {\n      this.unmount = register(this.id);\n    }\n  }\n  unmount() {\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/animations.mjs\nvar animations = {\n  animation: {\n    Feature: AnimationFeature\n  },\n  exit: {\n    Feature: ExitAnimationFeature\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/events/event-info.mjs\nfunction extractEventInfo(event) {\n  return {\n    point: {\n      x: event.pageX,\n      y: event.pageY\n    }\n  };\n}\nvar addPointerInfo = (handler) => (event) => isPrimaryPointer(event) && handler(event, extractEventInfo(event));\n\n// ../../../node_modules/framer-motion/dist/es/events/add-pointer-event.mjs\nfunction addPointerEvent(target, eventName, handler, options) {\n  return addDomEvent(target, eventName, addPointerInfo(handler), options);\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/distance.mjs\nvar distance = (a, b) => Math.abs(a - b);\nfunction distance2D(a, b) {\n  const xDelta = distance(a.x, b.x);\n  const yDelta = distance(a.y, b.y);\n  return Math.sqrt(xDelta ** 2 + yDelta ** 2);\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs\nimport { Fragment as Fragment3 } from \"react\";\nvar createDomVisualElement = (Component3, options) => {\n  const isSVG = options.isSVG ?? isSVGComponent(Component3);\n  return isSVG ? new SVGVisualElement(options) : new HTMLVisualElement(options, {\n    allowProjection: Component3 !== Fragment3\n  });\n};\n\n// ../../../node_modules/framer-motion/dist/es/utils/get-context-window.mjs\nvar getContextWindow = ({ current: current2 }) => {\n  return current2 ? current2.ownerDocument.defaultView : null;\n};\n\n// ../../../node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs\nvar overflowStyles = /* @__PURE__ */ new Set([\"auto\", \"scroll\"]);\nvar PanSession = class {\n  constructor(event, handlers, { transformPagePoint, contextWindow = window, dragSnapToOrigin = false, distanceThreshold = 3, element } = {}) {\n    this.startEvent = null;\n    this.lastMoveEvent = null;\n    this.lastMoveEventInfo = null;\n    this.lastRawMoveEventInfo = null;\n    this.handlers = {};\n    this.contextWindow = window;\n    this.scrollPositions = /* @__PURE__ */ new Map();\n    this.removeScrollListeners = null;\n    this.onElementScroll = (event2) => {\n      this.handleScroll(event2.target);\n    };\n    this.onWindowScroll = () => {\n      this.handleScroll(window);\n    };\n    this.updatePoint = () => {\n      if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n        return;\n      this.hasPendingMove = false;\n      if (this.lastRawMoveEventInfo) {\n        this.lastMoveEventInfo = transformPoint(this.lastRawMoveEventInfo, this.transformPagePoint);\n      }\n      const info2 = getPanInfo(this.lastMoveEventInfo, this.history);\n      const isPanStarted = this.startEvent !== null;\n      const isDistancePastThreshold = distance2D(info2.offset, { x: 0, y: 0 }) >= this.distanceThreshold;\n      if (!isPanStarted && !isDistancePastThreshold)\n        return;\n      const { point: point2 } = info2;\n      this.history.push({ ...point2, timestamp: time.now() });\n      const { onStart, onMove } = this.handlers;\n      if (!isPanStarted) {\n        onStart && onStart(this.lastMoveEvent, info2);\n        this.startEvent = this.lastMoveEvent;\n      }\n      onMove && onMove(this.lastMoveEvent, info2);\n    };\n    this.handlePointerMove = (event2, info2) => {\n      this.lastMoveEvent = event2;\n      this.lastRawMoveEventInfo = info2;\n      this.lastMoveEventInfo = transformPoint(info2, this.transformPagePoint);\n      this.hasPendingMove = true;\n      frame.update(this.updatePoint, true);\n    };\n    this.handlePointerUp = (event2, info2) => {\n      this.hasPendingMove && this.updatePoint();\n      this.end();\n      const { onEnd, onSessionEnd, resumeAnimation } = this.handlers;\n      if (this.dragSnapToOrigin || !this.startEvent) {\n        resumeAnimation && resumeAnimation();\n      }\n      if (!(this.lastMoveEvent && this.lastMoveEventInfo))\n        return;\n      const panInfo = getPanInfo(event2.type === \"pointercancel\" ? this.lastMoveEventInfo : transformPoint(info2, this.transformPagePoint), this.history);\n      if (this.startEvent && onEnd) {\n        onEnd(event2, panInfo);\n      }\n      onSessionEnd && onSessionEnd(event2, panInfo);\n    };\n    if (!isPrimaryPointer(event))\n      return;\n    this.dragSnapToOrigin = dragSnapToOrigin;\n    this.handlers = handlers;\n    this.transformPagePoint = transformPagePoint;\n    this.distanceThreshold = distanceThreshold;\n    this.contextWindow = contextWindow || window;\n    const info = extractEventInfo(event);\n    const initialInfo = transformPoint(info, this.transformPagePoint);\n    const { point } = initialInfo;\n    const { timestamp } = frameData;\n    this.history = [{ ...point, timestamp }];\n    const { onSessionStart } = handlers;\n    onSessionStart && onSessionStart(event, getPanInfo(initialInfo, this.history));\n    const eventOptions = { passive: true, capture: true };\n    this.removeListeners = pipe(addPointerEvent(this.contextWindow, \"pointermove\", this.handlePointerMove, eventOptions), addPointerEvent(this.contextWindow, \"pointerup\", this.handlePointerUp, eventOptions), addPointerEvent(this.contextWindow, \"pointercancel\", this.handlePointerUp, eventOptions));\n    if (element) {\n      this.startScrollTracking(element);\n    }\n  }\n  /**\n   * Start tracking scroll on ancestors and window.\n   */\n  startScrollTracking(element) {\n    let current2 = element.parentElement;\n    while (current2) {\n      const style2 = getComputedStyle(current2);\n      if (overflowStyles.has(style2.overflowX) || overflowStyles.has(style2.overflowY)) {\n        this.scrollPositions.set(current2, {\n          x: current2.scrollLeft,\n          y: current2.scrollTop\n        });\n      }\n      current2 = current2.parentElement;\n    }\n    this.scrollPositions.set(window, {\n      x: window.scrollX,\n      y: window.scrollY\n    });\n    window.addEventListener(\"scroll\", this.onElementScroll, {\n      capture: true\n    });\n    window.addEventListener(\"scroll\", this.onWindowScroll);\n    this.removeScrollListeners = () => {\n      window.removeEventListener(\"scroll\", this.onElementScroll, {\n        capture: true\n      });\n      window.removeEventListener(\"scroll\", this.onWindowScroll);\n    };\n  }\n  /**\n   * Handle scroll compensation during drag.\n   *\n   * For element scroll: adjusts history origin since pageX/pageY doesn't change.\n   * For window scroll: adjusts lastMoveEventInfo since pageX/pageY would change.\n   */\n  handleScroll(target) {\n    const initial = this.scrollPositions.get(target);\n    if (!initial)\n      return;\n    const isWindow = target === window;\n    const current2 = isWindow ? { x: window.scrollX, y: window.scrollY } : {\n      x: target.scrollLeft,\n      y: target.scrollTop\n    };\n    const delta = { x: current2.x - initial.x, y: current2.y - initial.y };\n    if (delta.x === 0 && delta.y === 0)\n      return;\n    if (isWindow) {\n      if (this.lastMoveEventInfo) {\n        this.lastMoveEventInfo.point.x += delta.x;\n        this.lastMoveEventInfo.point.y += delta.y;\n      }\n    } else {\n      if (this.history.length > 0) {\n        this.history[0].x -= delta.x;\n        this.history[0].y -= delta.y;\n      }\n    }\n    this.scrollPositions.set(target, current2);\n    frame.update(this.updatePoint, true);\n  }\n  updateHandlers(handlers) {\n    this.handlers = handlers;\n  }\n  end() {\n    this.removeListeners && this.removeListeners();\n    this.removeScrollListeners && this.removeScrollListeners();\n    this.scrollPositions.clear();\n    cancelFrame(this.updatePoint);\n  }\n};\nfunction transformPoint(info, transformPagePoint) {\n  return transformPagePoint ? { point: transformPagePoint(info.point) } : info;\n}\nfunction subtractPoint(a, b) {\n  return { x: a.x - b.x, y: a.y - b.y };\n}\nfunction getPanInfo({ point }, history) {\n  return {\n    point,\n    delta: subtractPoint(point, lastDevicePoint(history)),\n    offset: subtractPoint(point, startDevicePoint(history)),\n    velocity: getVelocity(history, 0.1)\n  };\n}\nfunction startDevicePoint(history) {\n  return history[0];\n}\nfunction lastDevicePoint(history) {\n  return history[history.length - 1];\n}\nfunction getVelocity(history, timeDelta) {\n  if (history.length < 2) {\n    return { x: 0, y: 0 };\n  }\n  let i = history.length - 1;\n  let timestampedPoint = null;\n  const lastPoint = lastDevicePoint(history);\n  while (i >= 0) {\n    timestampedPoint = history[i];\n    if (lastPoint.timestamp - timestampedPoint.timestamp > secondsToMilliseconds(timeDelta)) {\n      break;\n    }\n    i--;\n  }\n  if (!timestampedPoint) {\n    return { x: 0, y: 0 };\n  }\n  if (timestampedPoint === history[0] && history.length > 2 && lastPoint.timestamp - timestampedPoint.timestamp > secondsToMilliseconds(timeDelta) * 2) {\n    timestampedPoint = history[1];\n  }\n  const seconds = millisecondsToSeconds(lastPoint.timestamp - timestampedPoint.timestamp);\n  if (seconds === 0) {\n    return { x: 0, y: 0 };\n  }\n  const currentVelocity = {\n    x: (lastPoint.x - timestampedPoint.x) / seconds,\n    y: (lastPoint.y - timestampedPoint.y) / seconds\n  };\n  if (currentVelocity.x === Infinity) {\n    currentVelocity.x = 0;\n  }\n  if (currentVelocity.y === Infinity) {\n    currentVelocity.y = 0;\n  }\n  return currentVelocity;\n}\n\n// ../../../node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs\nfunction applyConstraints(point, { min, max }, elastic) {\n  if (min !== void 0 && point < min) {\n    point = elastic ? mixNumber(min, point, elastic.min) : Math.max(point, min);\n  } else if (max !== void 0 && point > max) {\n    point = elastic ? mixNumber(max, point, elastic.max) : Math.min(point, max);\n  }\n  return point;\n}\nfunction calcRelativeAxisConstraints(axis, min, max) {\n  return {\n    min: min !== void 0 ? axis.min + min : void 0,\n    max: max !== void 0 ? axis.max + max - (axis.max - axis.min) : void 0\n  };\n}\nfunction calcRelativeConstraints(layoutBox, { top, left, bottom, right }) {\n  return {\n    x: calcRelativeAxisConstraints(layoutBox.x, left, right),\n    y: calcRelativeAxisConstraints(layoutBox.y, top, bottom)\n  };\n}\nfunction calcViewportAxisConstraints(layoutAxis, constraintsAxis) {\n  let min = constraintsAxis.min - layoutAxis.min;\n  let max = constraintsAxis.max - layoutAxis.max;\n  if (constraintsAxis.max - constraintsAxis.min < layoutAxis.max - layoutAxis.min) {\n    [min, max] = [max, min];\n  }\n  return { min, max };\n}\nfunction calcViewportConstraints(layoutBox, constraintsBox) {\n  return {\n    x: calcViewportAxisConstraints(layoutBox.x, constraintsBox.x),\n    y: calcViewportAxisConstraints(layoutBox.y, constraintsBox.y)\n  };\n}\nfunction calcOrigin(source, target) {\n  let origin = 0.5;\n  const sourceLength = calcLength(source);\n  const targetLength = calcLength(target);\n  if (targetLength > sourceLength) {\n    origin = progress(target.min, target.max - sourceLength, source.min);\n  } else if (sourceLength > targetLength) {\n    origin = progress(source.min, source.max - targetLength, target.min);\n  }\n  return clamp(0, 1, origin);\n}\nfunction rebaseAxisConstraints(layout2, constraints) {\n  const relativeConstraints = {};\n  if (constraints.min !== void 0) {\n    relativeConstraints.min = constraints.min - layout2.min;\n  }\n  if (constraints.max !== void 0) {\n    relativeConstraints.max = constraints.max - layout2.min;\n  }\n  return relativeConstraints;\n}\nvar defaultElastic = 0.35;\nfunction resolveDragElastic(dragElastic = defaultElastic) {\n  if (dragElastic === false) {\n    dragElastic = 0;\n  } else if (dragElastic === true) {\n    dragElastic = defaultElastic;\n  }\n  return {\n    x: resolveAxisElastic(dragElastic, \"left\", \"right\"),\n    y: resolveAxisElastic(dragElastic, \"top\", \"bottom\")\n  };\n}\nfunction resolveAxisElastic(dragElastic, minLabel, maxLabel) {\n  return {\n    min: resolvePointElastic(dragElastic, minLabel),\n    max: resolvePointElastic(dragElastic, maxLabel)\n  };\n}\nfunction resolvePointElastic(dragElastic, label) {\n  return typeof dragElastic === \"number\" ? dragElastic : dragElastic[label] || 0;\n}\n\n// ../../../node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs\nvar elementDragControls = /* @__PURE__ */ new WeakMap();\nvar VisualElementDragControls = class {\n  constructor(visualElement) {\n    this.openDragLock = null;\n    this.isDragging = false;\n    this.currentDirection = null;\n    this.originPoint = { x: 0, y: 0 };\n    this.constraints = false;\n    this.hasMutatedConstraints = false;\n    this.elastic = createBox();\n    this.latestPointerEvent = null;\n    this.latestPanInfo = null;\n    this.visualElement = visualElement;\n  }\n  start(originEvent, { snapToCursor = false, distanceThreshold } = {}) {\n    const { presenceContext } = this.visualElement;\n    if (presenceContext && presenceContext.isPresent === false)\n      return;\n    const onSessionStart = (event) => {\n      if (snapToCursor)\n        this.snapToCursor(event);\n      this.stopAnimation();\n    };\n    const onStart = (event, info) => {\n      const { drag: drag2, dragPropagation, onDragStart } = this.getProps();\n      if (drag2 && !dragPropagation) {\n        if (this.openDragLock)\n          this.openDragLock();\n        this.openDragLock = setDragLock(drag2);\n        if (!this.openDragLock)\n          return;\n      }\n      this.latestPointerEvent = event;\n      this.latestPanInfo = info;\n      this.isDragging = true;\n      this.currentDirection = null;\n      this.resolveConstraints();\n      if (this.visualElement.projection) {\n        this.visualElement.projection.isAnimationBlocked = true;\n        this.visualElement.projection.target = void 0;\n      }\n      eachAxis((axis) => {\n        let current2 = this.getAxisMotionValue(axis).get() || 0;\n        if (percent.test(current2)) {\n          const { projection } = this.visualElement;\n          if (projection && projection.layout) {\n            const measuredAxis = projection.layout.layoutBox[axis];\n            if (measuredAxis) {\n              const length = calcLength(measuredAxis);\n              current2 = length * (parseFloat(current2) / 100);\n            }\n          }\n        }\n        this.originPoint[axis] = current2;\n      });\n      if (onDragStart) {\n        frame.update(() => onDragStart(event, info), false, true);\n      }\n      addValueToWillChange(this.visualElement, \"transform\");\n      const { animationState } = this.visualElement;\n      animationState && animationState.setActive(\"whileDrag\", true);\n    };\n    const onMove = (event, info) => {\n      this.latestPointerEvent = event;\n      this.latestPanInfo = info;\n      const { dragPropagation, dragDirectionLock, onDirectionLock, onDrag } = this.getProps();\n      if (!dragPropagation && !this.openDragLock)\n        return;\n      const { offset } = info;\n      if (dragDirectionLock && this.currentDirection === null) {\n        this.currentDirection = getCurrentDirection(offset);\n        if (this.currentDirection !== null) {\n          onDirectionLock && onDirectionLock(this.currentDirection);\n        }\n        return;\n      }\n      this.updateAxis(\"x\", info.point, offset);\n      this.updateAxis(\"y\", info.point, offset);\n      this.visualElement.render();\n      if (onDrag) {\n        frame.update(() => onDrag(event, info), false, true);\n      }\n    };\n    const onSessionEnd = (event, info) => {\n      this.latestPointerEvent = event;\n      this.latestPanInfo = info;\n      this.stop(event, info);\n      this.latestPointerEvent = null;\n      this.latestPanInfo = null;\n    };\n    const resumeAnimation = () => {\n      const { dragSnapToOrigin: snap } = this.getProps();\n      if (snap || this.constraints) {\n        this.startAnimation({ x: 0, y: 0 });\n      }\n    };\n    const { dragSnapToOrigin } = this.getProps();\n    this.panSession = new PanSession(originEvent, {\n      onSessionStart,\n      onStart,\n      onMove,\n      onSessionEnd,\n      resumeAnimation\n    }, {\n      transformPagePoint: this.visualElement.getTransformPagePoint(),\n      dragSnapToOrigin,\n      distanceThreshold,\n      contextWindow: getContextWindow(this.visualElement),\n      element: this.visualElement.current\n    });\n  }\n  /**\n   * @internal\n   */\n  stop(event, panInfo) {\n    const finalEvent = event || this.latestPointerEvent;\n    const finalPanInfo = panInfo || this.latestPanInfo;\n    const isDragging2 = this.isDragging;\n    this.cancel();\n    if (!isDragging2 || !finalPanInfo || !finalEvent)\n      return;\n    const { velocity } = finalPanInfo;\n    this.startAnimation(velocity);\n    const { onDragEnd } = this.getProps();\n    if (onDragEnd) {\n      frame.postRender(() => onDragEnd(finalEvent, finalPanInfo));\n    }\n  }\n  /**\n   * @internal\n   */\n  cancel() {\n    this.isDragging = false;\n    const { projection, animationState } = this.visualElement;\n    if (projection) {\n      projection.isAnimationBlocked = false;\n    }\n    this.endPanSession();\n    const { dragPropagation } = this.getProps();\n    if (!dragPropagation && this.openDragLock) {\n      this.openDragLock();\n      this.openDragLock = null;\n    }\n    animationState && animationState.setActive(\"whileDrag\", false);\n  }\n  /**\n   * Clean up the pan session without modifying other drag state.\n   * This is used during unmount to ensure event listeners are removed\n   * without affecting projection animations or drag locks.\n   * @internal\n   */\n  endPanSession() {\n    this.panSession && this.panSession.end();\n    this.panSession = void 0;\n  }\n  updateAxis(axis, _point, offset) {\n    const { drag: drag2 } = this.getProps();\n    if (!offset || !shouldDrag(axis, drag2, this.currentDirection))\n      return;\n    const axisValue = this.getAxisMotionValue(axis);\n    let next2 = this.originPoint[axis] + offset[axis];\n    if (this.constraints && this.constraints[axis]) {\n      next2 = applyConstraints(next2, this.constraints[axis], this.elastic[axis]);\n    }\n    axisValue.set(next2);\n  }\n  resolveConstraints() {\n    const { dragConstraints, dragElastic } = this.getProps();\n    const layout2 = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(false) : this.visualElement.projection?.layout;\n    const prevConstraints = this.constraints;\n    if (dragConstraints && isRefObject(dragConstraints)) {\n      if (!this.constraints) {\n        this.constraints = this.resolveRefConstraints();\n      }\n    } else {\n      if (dragConstraints && layout2) {\n        this.constraints = calcRelativeConstraints(layout2.layoutBox, dragConstraints);\n      } else {\n        this.constraints = false;\n      }\n    }\n    this.elastic = resolveDragElastic(dragElastic);\n    if (prevConstraints !== this.constraints && !isRefObject(dragConstraints) && layout2 && this.constraints && !this.hasMutatedConstraints) {\n      eachAxis((axis) => {\n        if (this.constraints !== false && this.getAxisMotionValue(axis)) {\n          this.constraints[axis] = rebaseAxisConstraints(layout2.layoutBox[axis], this.constraints[axis]);\n        }\n      });\n    }\n  }\n  resolveRefConstraints() {\n    const { dragConstraints: constraints, onMeasureDragConstraints } = this.getProps();\n    if (!constraints || !isRefObject(constraints))\n      return false;\n    const constraintsElement = constraints.current;\n    invariant(constraintsElement !== null, \"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.\", \"drag-constraints-ref\");\n    const { projection } = this.visualElement;\n    if (!projection || !projection.layout)\n      return false;\n    if (projection.root) {\n      projection.root.scroll = void 0;\n      projection.root.updateScroll();\n    }\n    const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());\n    let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);\n    if (onMeasureDragConstraints) {\n      const userConstraints = onMeasureDragConstraints(convertBoxToBoundingBox(measuredConstraints));\n      this.hasMutatedConstraints = !!userConstraints;\n      if (userConstraints) {\n        measuredConstraints = convertBoundingBoxToBox(userConstraints);\n      }\n    }\n    return measuredConstraints;\n  }\n  startAnimation(velocity) {\n    const { drag: drag2, dragMomentum, dragElastic, dragTransition, dragSnapToOrigin, onDragTransitionEnd } = this.getProps();\n    const constraints = this.constraints || {};\n    const momentumAnimations = eachAxis((axis) => {\n      if (!shouldDrag(axis, drag2, this.currentDirection)) {\n        return;\n      }\n      let transition = constraints && constraints[axis] || {};\n      if (dragSnapToOrigin === true || dragSnapToOrigin === axis)\n        transition = { min: 0, max: 0 };\n      const bounceStiffness = dragElastic ? 200 : 1e6;\n      const bounceDamping = dragElastic ? 40 : 1e7;\n      const inertia2 = {\n        type: \"inertia\",\n        velocity: dragMomentum ? velocity[axis] : 0,\n        bounceStiffness,\n        bounceDamping,\n        timeConstant: 750,\n        restDelta: 1,\n        restSpeed: 10,\n        ...dragTransition,\n        ...transition\n      };\n      return this.startAxisValueAnimation(axis, inertia2);\n    });\n    return Promise.all(momentumAnimations).then(onDragTransitionEnd);\n  }\n  startAxisValueAnimation(axis, transition) {\n    const axisValue = this.getAxisMotionValue(axis);\n    addValueToWillChange(this.visualElement, axis);\n    return axisValue.start(animateMotionValue(axis, axisValue, 0, transition, this.visualElement, false));\n  }\n  stopAnimation() {\n    eachAxis((axis) => this.getAxisMotionValue(axis).stop());\n  }\n  /**\n   * Drag works differently depending on which props are provided.\n   *\n   * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values.\n   * - Otherwise, we apply the delta to the x/y motion values.\n   */\n  getAxisMotionValue(axis) {\n    const dragKey = `_drag${axis.toUpperCase()}`;\n    const props = this.visualElement.getProps();\n    const externalMotionValue = props[dragKey];\n    return externalMotionValue ? externalMotionValue : this.visualElement.getValue(axis, this.visualElement.latestValues[axis] ?? 0);\n  }\n  /**\n   * Measure the live box - projection.layout may or may not include the\n   * drag transform, depending on when it was measured.\n   */\n  snapToCursor({ clientX, clientY }) {\n    const { drag: drag2 } = this.getProps();\n    const point = { x: clientX, y: clientY };\n    const cursor = this.visualElement.getTransformPagePoint()?.(point) || point;\n    const box = this.visualElement.measureViewportBox();\n    eachAxis((axis) => {\n      if (!shouldDrag(axis, drag2, this.currentDirection))\n        return;\n      const axisValue = this.getAxisMotionValue(axis);\n      const { min, max } = box[axis];\n      axisValue.set((axisValue.get() || 0) + cursor[axis] - mixNumber(min, max, 0.5));\n    });\n  }\n  /**\n   * When the viewport resizes we want to check if the measured constraints\n   * have changed and, if so, reposition the element within those new constraints\n   * relative to where it was before the resize.\n   */\n  scalePositionWithinConstraints() {\n    if (!this.visualElement.current)\n      return;\n    const { drag: drag2, dragConstraints } = this.getProps();\n    const { projection } = this.visualElement;\n    if (!isRefObject(dragConstraints) || !projection || !this.constraints)\n      return;\n    this.stopAnimation();\n    const constraints = this.constraints;\n    const boxProgress = { x: 0, y: 0 };\n    eachAxis((axis) => {\n      const latest = this.getAxisMotionValue(axis).get();\n      boxProgress[axis] = calcOrigin({ min: latest, max: latest }, constraints[axis]);\n    });\n    const { transformTemplate } = this.visualElement.getProps();\n    this.visualElement.current.style.transform = transformTemplate ? transformTemplate({}, \"\") : \"none\";\n    projection.root && projection.root.updateScroll();\n    projection.updateLayout();\n    this.constraints = false;\n    this.resolveConstraints();\n    eachAxis((axis) => {\n      const axisValue = this.getAxisMotionValue(axis);\n      if (!shouldDrag(axis, drag2, null) || !axisValue.get())\n        return;\n      const { min, max } = this.constraints[axis];\n      axisValue.set(mixNumber(min, max, boxProgress[axis]));\n    });\n    this.visualElement.render();\n  }\n  addListeners() {\n    if (!this.visualElement.current)\n      return;\n    elementDragControls.set(this.visualElement, this);\n    const element = this.visualElement.current;\n    const stopPointerListener = addPointerEvent(element, \"pointerdown\", (event) => {\n      const { drag: drag2, dragListener = true } = this.getProps();\n      const target = event.target;\n      const isClickingTextInputChild = target !== element && isElementTextInput(target);\n      if (drag2 && dragListener && !isClickingTextInputChild) {\n        this.start(event);\n      }\n    });\n    let stopResizeObservers;\n    const measureDragConstraints = () => {\n      const { dragConstraints } = this.getProps();\n      if (isRefObject(dragConstraints) && dragConstraints.current) {\n        this.constraints = this.resolveRefConstraints();\n        if (!stopResizeObservers) {\n          stopResizeObservers = startResizeObservers(element, dragConstraints.current, () => this.scalePositionWithinConstraints());\n        }\n      }\n    };\n    const { projection } = this.visualElement;\n    const stopMeasureLayoutListener = projection.addEventListener(\"measure\", measureDragConstraints);\n    if (projection && !projection.layout) {\n      projection.root && projection.root.updateScroll();\n      projection.updateLayout();\n    }\n    frame.read(measureDragConstraints);\n    const stopResizeListener = addDomEvent(window, \"resize\", () => this.scalePositionWithinConstraints());\n    const stopLayoutUpdateListener = projection.addEventListener(\"didUpdate\", (({ delta, hasLayoutChanged }) => {\n      if (this.isDragging && hasLayoutChanged) {\n        eachAxis((axis) => {\n          const motionValue2 = this.getAxisMotionValue(axis);\n          if (!motionValue2)\n            return;\n          this.originPoint[axis] += delta[axis].translate;\n          motionValue2.set(motionValue2.get() + delta[axis].translate);\n        });\n        this.visualElement.render();\n      }\n    }));\n    return () => {\n      stopResizeListener();\n      stopPointerListener();\n      stopMeasureLayoutListener();\n      stopLayoutUpdateListener && stopLayoutUpdateListener();\n      stopResizeObservers && stopResizeObservers();\n    };\n  }\n  getProps() {\n    const props = this.visualElement.getProps();\n    const { drag: drag2 = false, dragDirectionLock = false, dragPropagation = false, dragConstraints = false, dragElastic = defaultElastic, dragMomentum = true } = props;\n    return {\n      ...props,\n      drag: drag2,\n      dragDirectionLock,\n      dragPropagation,\n      dragConstraints,\n      dragElastic,\n      dragMomentum\n    };\n  }\n};\nfunction skipFirstCall(callback) {\n  let isFirst = true;\n  return () => {\n    if (isFirst) {\n      isFirst = false;\n      return;\n    }\n    callback();\n  };\n}\nfunction startResizeObservers(element, constraintsElement, onResize) {\n  const stopElement = resize(element, skipFirstCall(onResize));\n  const stopContainer = resize(constraintsElement, skipFirstCall(onResize));\n  return () => {\n    stopElement();\n    stopContainer();\n  };\n}\nfunction shouldDrag(direction, drag2, currentDirection) {\n  return (drag2 === true || drag2 === direction) && (currentDirection === null || currentDirection === direction);\n}\nfunction getCurrentDirection(offset, lockThreshold = 10) {\n  let direction = null;\n  if (Math.abs(offset.y) > lockThreshold) {\n    direction = \"y\";\n  } else if (Math.abs(offset.x) > lockThreshold) {\n    direction = \"x\";\n  }\n  return direction;\n}\n\n// ../../../node_modules/framer-motion/dist/es/gestures/drag/index.mjs\nvar DragGesture = class extends Feature {\n  constructor(node) {\n    super(node);\n    this.removeGroupControls = noop;\n    this.removeListeners = noop;\n    this.controls = new VisualElementDragControls(node);\n  }\n  mount() {\n    const { dragControls } = this.node.getProps();\n    if (dragControls) {\n      this.removeGroupControls = dragControls.subscribe(this.controls);\n    }\n    this.removeListeners = this.controls.addListeners() || noop;\n  }\n  update() {\n    const { dragControls } = this.node.getProps();\n    const { dragControls: prevDragControls } = this.node.prevProps || {};\n    if (dragControls !== prevDragControls) {\n      this.removeGroupControls();\n      if (dragControls) {\n        this.removeGroupControls = dragControls.subscribe(this.controls);\n      }\n    }\n  }\n  unmount() {\n    this.removeGroupControls();\n    this.removeListeners();\n    if (!this.controls.isDragging) {\n      this.controls.endPanSession();\n    }\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/gestures/pan/index.mjs\nvar asyncHandler = (handler) => (event, info) => {\n  if (handler) {\n    frame.update(() => handler(event, info), false, true);\n  }\n};\nvar PanGesture = class extends Feature {\n  constructor() {\n    super(...arguments);\n    this.removePointerDownListener = noop;\n  }\n  onPointerDown(pointerDownEvent) {\n    this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {\n      transformPagePoint: this.node.getTransformPagePoint(),\n      contextWindow: getContextWindow(this.node)\n    });\n  }\n  createPanHandlers() {\n    const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();\n    return {\n      onSessionStart: asyncHandler(onPanSessionStart),\n      onStart: asyncHandler(onPanStart),\n      onMove: asyncHandler(onPan),\n      onEnd: (event, info) => {\n        delete this.session;\n        if (onPanEnd) {\n          frame.postRender(() => onPanEnd(event, info));\n        }\n      }\n    };\n  }\n  mount() {\n    this.removePointerDownListener = addPointerEvent(this.node.current, \"pointerdown\", (event) => this.onPointerDown(event));\n  }\n  update() {\n    this.session && this.session.updateHandlers(this.createPanHandlers());\n  }\n  unmount() {\n    this.removePointerDownListener();\n    this.session && this.session.end();\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs\nimport { jsx as jsx8 } from \"react/jsx-runtime\";\nimport { useContext as useContext10, Component as Component2 } from \"react\";\nvar hasTakenAnySnapshot = false;\nvar MeasureLayoutWithContext = class extends Component2 {\n  /**\n   * This only mounts projection nodes for components that\n   * need measuring, we might want to do it for all components\n   * in order to incorporate transforms\n   */\n  componentDidMount() {\n    const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;\n    const { projection } = visualElement;\n    if (projection) {\n      if (layoutGroup.group)\n        layoutGroup.group.add(projection);\n      if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n        switchLayoutGroup.register(projection);\n      }\n      if (hasTakenAnySnapshot) {\n        projection.root.didUpdate();\n      }\n      projection.addEventListener(\"animationComplete\", () => {\n        this.safeToRemove();\n      });\n      projection.setOptions({\n        ...projection.options,\n        layoutDependency: this.props.layoutDependency,\n        onExitComplete: () => this.safeToRemove()\n      });\n    }\n    globalProjectionState.hasEverUpdated = true;\n  }\n  getSnapshotBeforeUpdate(prevProps) {\n    const { layoutDependency, visualElement, drag: drag2, isPresent: isPresent2 } = this.props;\n    const { projection } = visualElement;\n    if (!projection)\n      return null;\n    projection.isPresent = isPresent2;\n    if (prevProps.layoutDependency !== layoutDependency) {\n      projection.setOptions({\n        ...projection.options,\n        layoutDependency\n      });\n    }\n    hasTakenAnySnapshot = true;\n    if (drag2 || prevProps.layoutDependency !== layoutDependency || layoutDependency === void 0 || prevProps.isPresent !== isPresent2) {\n      projection.willUpdate();\n    } else {\n      this.safeToRemove();\n    }\n    if (prevProps.isPresent !== isPresent2) {\n      if (isPresent2) {\n        projection.promote();\n      } else if (!projection.relegate()) {\n        frame.postRender(() => {\n          const stack = projection.getStack();\n          if (!stack || !stack.members.length) {\n            this.safeToRemove();\n          }\n        });\n      }\n    }\n    return null;\n  }\n  componentDidUpdate() {\n    const { visualElement, layoutAnchor } = this.props;\n    const { projection } = visualElement;\n    if (projection) {\n      projection.options.layoutAnchor = layoutAnchor;\n      projection.root.didUpdate();\n      microtask.postRender(() => {\n        if (!projection.currentAnimation && projection.isLead()) {\n          this.safeToRemove();\n        }\n      });\n    }\n  }\n  componentWillUnmount() {\n    const { visualElement, layoutGroup, switchLayoutGroup: promoteContext } = this.props;\n    const { projection } = visualElement;\n    hasTakenAnySnapshot = true;\n    if (projection) {\n      projection.scheduleCheckAfterUnmount();\n      if (layoutGroup && layoutGroup.group)\n        layoutGroup.group.remove(projection);\n      if (promoteContext && promoteContext.deregister)\n        promoteContext.deregister(projection);\n    }\n  }\n  safeToRemove() {\n    const { safeToRemove } = this.props;\n    safeToRemove && safeToRemove();\n  }\n  render() {\n    return null;\n  }\n};\nfunction MeasureLayout(props) {\n  const [isPresent2, safeToRemove] = usePresence();\n  const layoutGroup = useContext10(LayoutGroupContext);\n  return jsx8(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup: useContext10(SwitchLayoutGroupContext), isPresent: isPresent2, safeToRemove });\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/drag.mjs\nvar drag = {\n  pan: {\n    Feature: PanGesture\n  },\n  drag: {\n    Feature: DragGesture,\n    ProjectionNode: HTMLProjectionNode,\n    MeasureLayout\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/gestures/hover.mjs\nfunction handleHoverEvent(node, event, lifecycle) {\n  const { props } = node;\n  if (node.animationState && props.whileHover) {\n    node.animationState.setActive(\"whileHover\", lifecycle === \"Start\");\n  }\n  const eventName = \"onHover\" + lifecycle;\n  const callback = props[eventName];\n  if (callback) {\n    frame.postRender(() => callback(event, extractEventInfo(event)));\n  }\n}\nvar HoverGesture = class extends Feature {\n  mount() {\n    const { current: current2 } = this.node;\n    if (!current2)\n      return;\n    this.unmount = hover(current2, (_element, startEvent) => {\n      handleHoverEvent(this.node, startEvent, \"Start\");\n      return (endEvent) => handleHoverEvent(this.node, endEvent, \"End\");\n    });\n  }\n  unmount() {\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/gestures/focus.mjs\nvar FocusGesture = class extends Feature {\n  constructor() {\n    super(...arguments);\n    this.isActive = false;\n  }\n  onFocus() {\n    let isFocusVisible = false;\n    try {\n      isFocusVisible = this.node.current.matches(\":focus-visible\");\n    } catch (e) {\n      isFocusVisible = true;\n    }\n    if (!isFocusVisible || !this.node.animationState)\n      return;\n    this.node.animationState.setActive(\"whileFocus\", true);\n    this.isActive = true;\n  }\n  onBlur() {\n    if (!this.isActive || !this.node.animationState)\n      return;\n    this.node.animationState.setActive(\"whileFocus\", false);\n    this.isActive = false;\n  }\n  mount() {\n    this.unmount = pipe(addDomEvent(this.node.current, \"focus\", () => this.onFocus()), addDomEvent(this.node.current, \"blur\", () => this.onBlur()));\n  }\n  unmount() {\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/gestures/press.mjs\nfunction handlePressEvent(node, event, lifecycle) {\n  const { props } = node;\n  if (node.current instanceof HTMLButtonElement && node.current.disabled) {\n    return;\n  }\n  if (node.animationState && props.whileTap) {\n    node.animationState.setActive(\"whileTap\", lifecycle === \"Start\");\n  }\n  const eventName = \"onTap\" + (lifecycle === \"End\" ? \"\" : lifecycle);\n  const callback = props[eventName];\n  if (callback) {\n    frame.postRender(() => callback(event, extractEventInfo(event)));\n  }\n}\nvar PressGesture = class extends Feature {\n  mount() {\n    const { current: current2 } = this.node;\n    if (!current2)\n      return;\n    const { globalTapTarget, propagate } = this.node.props;\n    this.unmount = press(current2, (_element, startEvent) => {\n      handlePressEvent(this.node, startEvent, \"Start\");\n      return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n    }, {\n      useGlobalTarget: globalTapTarget,\n      stopPropagation: propagate?.tap === false\n    });\n  }\n  unmount() {\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs\nvar observerCallbacks = /* @__PURE__ */ new WeakMap();\nvar observers = /* @__PURE__ */ new WeakMap();\nvar fireObserverCallback = (entry) => {\n  const callback = observerCallbacks.get(entry.target);\n  callback && callback(entry);\n};\nvar fireAllObserverCallbacks = (entries) => {\n  entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n  const lookupRoot = root || document;\n  if (!observers.has(lookupRoot)) {\n    observers.set(lookupRoot, {});\n  }\n  const rootObservers = observers.get(lookupRoot);\n  const key = JSON.stringify(options);\n  if (!rootObservers[key]) {\n    rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n  }\n  return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n  const rootInteresectionObserver = initIntersectionObserver(options);\n  observerCallbacks.set(element, callback);\n  rootInteresectionObserver.observe(element);\n  return () => {\n    observerCallbacks.delete(element);\n    rootInteresectionObserver.unobserve(element);\n  };\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs\nvar thresholdNames = {\n  some: 0,\n  all: 1\n};\nvar InViewFeature = class extends Feature {\n  constructor() {\n    super(...arguments);\n    this.hasEnteredView = false;\n    this.isInView = false;\n  }\n  startObserver() {\n    this.stopObserver?.();\n    const { viewport = {} } = this.node.getProps();\n    const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n    const options = {\n      root: root ? root.current : void 0,\n      rootMargin,\n      threshold: typeof amount === \"number\" ? amount : thresholdNames[amount]\n    };\n    const onIntersectionUpdate = (entry) => {\n      const { isIntersecting } = entry;\n      if (this.isInView === isIntersecting)\n        return;\n      this.isInView = isIntersecting;\n      if (once && !isIntersecting && this.hasEnteredView) {\n        return;\n      } else if (isIntersecting) {\n        this.hasEnteredView = true;\n      }\n      if (this.node.animationState) {\n        this.node.animationState.setActive(\"whileInView\", isIntersecting);\n      }\n      const { onViewportEnter, onViewportLeave } = this.node.getProps();\n      const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n      callback && callback(entry);\n    };\n    this.stopObserver = observeIntersection(this.node.current, options, onIntersectionUpdate);\n  }\n  mount() {\n    this.startObserver();\n  }\n  update() {\n    if (typeof IntersectionObserver === \"undefined\")\n      return;\n    const { props, prevProps } = this.node;\n    const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n    if (hasOptionsChanged) {\n      this.startObserver();\n    }\n  }\n  unmount() {\n    this.stopObserver?.();\n    this.hasEnteredView = false;\n    this.isInView = false;\n  }\n};\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n  return (name) => viewport[name] !== prevViewport[name];\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs\nvar gestureAnimations = {\n  inView: {\n    Feature: InViewFeature\n  },\n  tap: {\n    Feature: PressGesture\n  },\n  focus: {\n    Feature: FocusGesture\n  },\n  hover: {\n    Feature: HoverGesture\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/motion/features/layout.mjs\nvar layout = {\n  layout: {\n    ProjectionNode: HTMLProjectionNode,\n    MeasureLayout\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs\nvar featureBundle = {\n  ...animations,\n  ...gestureAnimations,\n  ...drag,\n  ...layout\n};\n\n// ../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs\nvar motion = /* @__PURE__ */ createMotionProxy(featureBundle, createDomVisualElement);\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs\nimport { useEffect as useEffect6 } from \"react\";\nfunction useUnmountEffect(callback) {\n  return useEffect6(() => () => callback(), []);\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/features-animation.mjs\nvar domAnimation = {\n  renderer: createDomVisualElement,\n  ...animations,\n  ...gestureAnimations\n};\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/features-max.mjs\nvar domMax = {\n  ...domAnimation,\n  ...drag,\n  ...layout\n};\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/features-min.mjs\nvar domMin = {\n  renderer: createDomVisualElement,\n  ...animations\n};\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-motion-value-event.mjs\nimport { useInsertionEffect as useInsertionEffect4 } from \"react\";\nfunction useMotionValueEvent(value, event, callback) {\n  useInsertionEffect4(() => value.on(event, callback), [value, event, callback]);\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/info.mjs\nvar maxElapsed2 = 50;\nvar createAxisInfo = () => ({\n  current: 0,\n  offset: [],\n  progress: 0,\n  scrollLength: 0,\n  targetOffset: 0,\n  targetLength: 0,\n  containerLength: 0,\n  velocity: 0\n});\nvar createScrollInfo = () => ({\n  time: 0,\n  x: createAxisInfo(),\n  y: createAxisInfo()\n});\nvar axisKeys = {\n  x: {\n    length: \"Width\",\n    position: \"Left\"\n  },\n  y: {\n    length: \"Height\",\n    position: \"Top\"\n  }\n};\nvar styles = /* @__PURE__ */ new WeakMap();\nfunction isReversed(element, axisName) {\n  const isRoot = element === document.scrollingElement;\n  const source = isRoot && document.body || element;\n  let style2 = styles.get(source);\n  if (!style2)\n    styles.set(source, style2 = getComputedStyle(source));\n  const { writingMode, flexDirection } = style2;\n  const isInline = axisName === \"x\" !== /^[vs]/.test(writingMode);\n  return (isInline ? style2.direction === \"rtl\" !== (writingMode === \"sideways-lr\") : writingMode.endsWith(\"rl\")) !== /**\n   * A reversed flex axis flips this. The main axis is the inline axis\n   * unless flex-direction is a column.\n   */\n  (!isRoot && style2.display.includes(\"flex\") && (isInline !== (flexDirection[0] === \"c\") ? flexDirection : style2.flexWrap).endsWith(\"reverse\"));\n}\nfunction updateAxisInfo(element, axisName, info, time2) {\n  const axis = info[axisName];\n  const { length, position } = axisKeys[axisName];\n  const prev = axis.current;\n  const prevTime = info.time;\n  const scrollPosition = element[`scroll${position}`];\n  axis.current = isReversed(element, axisName) ? -scrollPosition || 0 : scrollPosition;\n  axis.containerLength = element[`client${length}`];\n  axis.targetLength = element[`scroll${length}`];\n  axis.scrollLength = axis.targetLength - axis.containerLength;\n  axis.offset.length = 0;\n  axis.offset[0] = 0;\n  axis.offset[1] = axis.scrollLength;\n  axis.progress = clamp(0, 1, progress(0, axis.scrollLength, axis.current));\n  const elapsed = time2 - prevTime;\n  axis.velocity = elapsed > maxElapsed2 ? 0 : velocityPerSecond(axis.current - prev, elapsed);\n}\nfunction updateScrollInfo(element, info, time2) {\n  for (const axis in axisKeys) {\n    updateAxisInfo(element, axis, info, time2);\n  }\n  info.time = time2;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs\nvar namedEdges = {\n  start: 0,\n  center: 0.5,\n  end: 1\n};\nfunction resolveEdge(edge, length, inset = 0) {\n  let delta = 0;\n  if (edge in namedEdges) {\n    edge = namedEdges[edge];\n  }\n  if (typeof edge === \"string\") {\n    const asNumber2 = parseFloat(edge);\n    if (edge.endsWith(\"px\")) {\n      delta = asNumber2;\n    } else if (edge.endsWith(\"%\")) {\n      edge = asNumber2 / 100;\n    } else if (edge.endsWith(\"vw\")) {\n      delta = asNumber2 / 100 * document.documentElement.clientWidth;\n    } else if (edge.endsWith(\"vh\")) {\n      delta = asNumber2 / 100 * document.documentElement.clientHeight;\n    } else {\n      edge = asNumber2;\n    }\n  }\n  if (typeof edge === \"number\") {\n    delta = length * edge;\n  }\n  return inset + delta;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs\nvar defaultOffset2 = [0, 0];\nfunction resolveOffset(offset, containerLength, targetLength, targetInset) {\n  let offsetDefinition = Array.isArray(offset) ? offset : defaultOffset2;\n  let targetPoint = 0;\n  let containerPoint = 0;\n  if (typeof offset === \"number\") {\n    offsetDefinition = [offset, offset];\n  } else if (typeof offset === \"string\") {\n    offset = offset.trim();\n    if (offset.includes(\" \")) {\n      offsetDefinition = offset.split(\" \");\n    } else {\n      offsetDefinition = [offset, namedEdges[offset] ? offset : `0`];\n    }\n  }\n  targetPoint = resolveEdge(offsetDefinition[0], targetLength, targetInset);\n  containerPoint = resolveEdge(offsetDefinition[1], containerLength);\n  return targetPoint - containerPoint;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs\nvar ScrollOffset = {\n  All: [\n    [0, 0],\n    [1, 1]\n  ]\n};\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs\nfunction offsetsToProgress(offsets, v) {\n  const n = offsets.length - 1;\n  if (n < 1)\n    return 0;\n  const reverse = offsets[0] > offsets[n];\n  const at = (i2) => offsets[reverse ? n - i2 : i2];\n  if (offsets[0] === offsets[1] && v < at(0))\n    return reverse ? 1 : 0;\n  let i = 0;\n  while (i < n - 1 && v >= at(i + 1))\n    i++;\n  const p = (i + progress(at(i), at(i + 1), v)) / n;\n  return reverse ? 1 - p : p;\n}\nfunction resolveOffsets(info, options) {\n  const { offset: offsetDefinition = ScrollOffset.All, axis = \"y\" } = options;\n  const axisInfo = info[axis];\n  axisInfo.offset.length = 0;\n  const numOffsets = offsetDefinition.length;\n  for (let i = 0; i < numOffsets; i++) {\n    axisInfo.offset[i] = resolveOffset(offsetDefinition[i], axisInfo.containerLength, axisInfo.targetLength, axisInfo.targetOffset);\n  }\n  axisInfo.progress = clamp(0, 1, offsetsToProgress(axisInfo.offset, axisInfo.current));\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs\nfunction calcInset(element, container) {\n  const inset = { x: 0, y: 0 };\n  let current2 = element;\n  while (current2 && current2 !== container) {\n    if (isHTMLElement(current2)) {\n      inset.x += current2.offsetLeft;\n      inset.y += current2.offsetTop;\n      current2 = current2.offsetParent;\n    } else if (current2.tagName === \"svg\") {\n      const svgBoundingBox = current2.getBoundingClientRect();\n      current2 = current2.parentElement;\n      const parentBoundingBox = current2.getBoundingClientRect();\n      inset.x += svgBoundingBox.left - parentBoundingBox.left;\n      inset.y += svgBoundingBox.top - parentBoundingBox.top;\n    } else if (current2 instanceof SVGGraphicsElement) {\n      const { x, y } = current2.getBBox();\n      inset.x += x;\n      inset.y += y;\n      let svg = null;\n      let parent = current2.parentNode;\n      while (!svg) {\n        if (parent.tagName === \"svg\") {\n          svg = parent;\n        }\n        parent = current2.parentNode;\n      }\n      current2 = svg;\n    } else {\n      break;\n    }\n  }\n  return inset;\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs\nfunction getTargetSize(target) {\n  return \"getBBox\" in target && target.tagName !== \"svg\" ? target.getBBox() : { width: target.clientWidth, height: target.clientHeight };\n}\nfunction createOnScrollHandler(container, onScroll, info, options = {}) {\n  const { target } = options;\n  if (false) {\n    if (target && target !== container && container !== document.documentElement && container !== document.scrollingElement && container !== document.body) {\n      warnOnce(getComputedStyle(container).position !== \"static\", \"Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.\");\n    }\n  }\n  const needsOwnInfo = target || options.offset;\n  return {\n    measure: (containerInfo) => {\n      if (!needsOwnInfo)\n        return;\n      info.time = containerInfo.time;\n      for (const key in axisKeys) {\n        const axis = key;\n        const { offset } = info[axis];\n        Object.assign(info[axis], containerInfo[axis]);\n        info[axis].offset = offset;\n      }\n      if (target && target !== container) {\n        const inset = calcInset(target, container);\n        const size = getTargetSize(target);\n        info.x.targetOffset = inset.x;\n        info.y.targetOffset = inset.y;\n        info.x.targetLength = size.width;\n        info.y.targetLength = size.height;\n      }\n      resolveOffsets(info, options);\n    },\n    notify: (containerInfo) => onScroll(needsOwnInfo ? info : containerInfo)\n  };\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/track.mjs\nvar scrollListeners = /* @__PURE__ */ new WeakMap();\nvar resizeListeners = /* @__PURE__ */ new WeakMap();\nvar onScrollHandlers = /* @__PURE__ */ new WeakMap();\nvar dimensionCheckProcesses = /* @__PURE__ */ new WeakMap();\nvar getEventTarget = (element) => element === document.scrollingElement ? window : element;\nfunction scrollInfo(onScroll, { container = document.scrollingElement, trackContentSize = false, ...options } = {}) {\n  if (!container)\n    return noop;\n  let containerHandlers = onScrollHandlers.get(container);\n  if (!containerHandlers) {\n    containerHandlers = /* @__PURE__ */ new Set();\n    onScrollHandlers.set(container, containerHandlers);\n  }\n  const info = createScrollInfo();\n  const containerHandler = createOnScrollHandler(container, onScroll, info, options);\n  containerHandlers.add(containerHandler);\n  if (!scrollListeners.has(container)) {\n    const containerInfo = createScrollInfo();\n    const measureAll = () => {\n      updateScrollInfo(container, containerInfo, frameData.timestamp);\n      for (const handler of containerHandlers) {\n        handler.measure(containerInfo);\n      }\n      frame.preUpdate(notifyAll2);\n    };\n    const notifyAll2 = () => {\n      for (const handler of containerHandlers) {\n        handler.notify(containerInfo);\n      }\n    };\n    const listener2 = () => frame.read(measureAll);\n    scrollListeners.set(container, listener2);\n    const target = getEventTarget(container);\n    window.addEventListener(\"resize\", listener2);\n    if (container !== document.documentElement) {\n      resizeListeners.set(container, resize(container, listener2));\n    }\n    target.addEventListener(\"scroll\", listener2);\n    listener2();\n  }\n  if (trackContentSize && !dimensionCheckProcesses.has(container)) {\n    const listener2 = scrollListeners.get(container);\n    const size = {\n      width: container.scrollWidth,\n      height: container.scrollHeight\n    };\n    const checkScrollDimensions = () => {\n      const newWidth = container.scrollWidth;\n      const newHeight = container.scrollHeight;\n      if (size.width !== newWidth || size.height !== newHeight) {\n        listener2();\n        size.width = newWidth;\n        size.height = newHeight;\n      }\n    };\n    const dimensionCheckProcess = frame.read(checkScrollDimensions, true);\n    dimensionCheckProcesses.set(container, dimensionCheckProcess);\n  }\n  const listener = scrollListeners.get(container);\n  frame.read(listener, false, true);\n  return () => {\n    cancelFrame(listener);\n    const currentHandlers = onScrollHandlers.get(container);\n    if (!currentHandlers)\n      return;\n    currentHandlers.delete(containerHandler);\n    if (currentHandlers.size)\n      return;\n    onScrollHandlers.delete(container);\n    const scrollListener = scrollListeners.get(container);\n    scrollListeners.delete(container);\n    if (scrollListener) {\n      getEventTarget(container).removeEventListener(\"scroll\", scrollListener);\n      resizeListeners.get(container)?.();\n      window.removeEventListener(\"resize\", scrollListener);\n    }\n    const dimensionCheckProcess = dimensionCheckProcesses.get(container);\n    if (dimensionCheckProcess) {\n      cancelFrame(dimensionCheckProcess);\n      dimensionCheckProcesses.delete(container);\n    }\n  };\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/utils/can-use-native-timeline.mjs\nfunction canUseNativeTimeline(target) {\n  if (typeof window === \"undefined\")\n    return false;\n  return target ? supportsViewTimeline() : supportsScrollTimeline();\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/utils/get-timeline.mjs\nvar timelineCache = /* @__PURE__ */ new Map();\nfunction getTimeline({ container, target, axis }) {\n  let containerCache = timelineCache.get(container);\n  if (!containerCache) {\n    containerCache = /* @__PURE__ */ new Map();\n    timelineCache.set(container, containerCache);\n  }\n  const targetKey = target ?? \"self\";\n  let targetCache = containerCache.get(targetKey);\n  if (!targetCache) {\n    targetCache = {};\n    containerCache.set(targetKey, targetCache);\n  }\n  return targetCache[axis] || (targetCache[axis] = target ? new ViewTimeline({ subject: target, axis }) : new ScrollTimeline({ source: container, axis }));\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/utils/offset-to-range.mjs\nvar toIntersection = (o) => {\n  if (/v/u.test(o))\n    return [];\n  const px2 = resolveOffset(o, 0, 0, 0);\n  return [resolveOffset(o, 0, 1, 0) - px2, px2 - resolveOffset(o, 1, 0, 0), px2];\n};\nvar toRange = ([t, c, px2]) => !px2 && (c === 0 || c === 1) && `${c ? \"entry\" : \"exit\"}-crossing ${t * 100}%`;\nfunction offsetToViewTimelineRange(offset = ScrollOffset.All) {\n  if (offset.length !== 2)\n    return;\n  const [start2, end] = offset.map(toIntersection);\n  const points = [toRange(start2), toRange(end)];\n  const a = end[0] - start2[0];\n  const b = start2[1] - end[1];\n  if (points[0] && points[1] && (a || b)) {\n    return {\n      points,\n      a,\n      b,\n      cover: !start2[0] && a === 1 && b === 1\n    };\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/attach-animation.mjs\nfunction attachToAnimation(animation, options) {\n  const { target, container, axis } = options;\n  const range = target && offsetToViewTimelineRange(options.offset);\n  const native = canUseNativeTimeline(target) && (target ? !!range : !options.offset);\n  const animations2 = /* @__PURE__ */ new Map();\n  const observed = /* @__PURE__ */ new Set();\n  let stopObserving;\n  let reverse = false;\n  const apply = (direction, waapi) => {\n    const [start2, end] = range.points;\n    waapi.effect.updateTiming({\n      direction: reverse ? direction === \"normal\" ? \"reverse\" : \"alternate-reverse\" : direction\n    });\n    Object.assign(waapi, {\n      rangeStart: reverse ? end : start2,\n      rangeEnd: reverse ? start2 : end\n    });\n    waapi.play();\n  };\n  const stops = [\n    animation.attachTimeline({\n      /**\n       * Read only by WAAPI animations, so values driven from JS don't\n       * create a native timeline they won't use.\n       */\n      get timeline() {\n        return native ? getTimeline(options) : void 0;\n      },\n      onAttach: range && ((waapi) => {\n        const direction = waapi.effect.getTiming().direction;\n        animations2.set(waapi, direction);\n        apply(direction, waapi);\n      }),\n      /**\n       * Values driven from JS all track the offset with scrollInfo,\n       * which measures once per frame for all of them.\n       */\n      observe: (valueAnimation) => {\n        valueAnimation.pause();\n        observed.add(valueAnimation);\n        stopObserving || (stopObserving = scrollInfo((info) => {\n          observed.forEach((observedAnimation) => {\n            observedAnimation.time = observedAnimation.iterationDuration * info[axis].progress;\n          });\n        }, options));\n        return () => observed.delete(valueAnimation);\n      }\n    })\n  ];\n  if (native && range) {\n    const { a, b } = range;\n    const length = axis === \"y\" ? \"clientHeight\" : \"clientWidth\";\n    const update = () => {\n      if (reverse !== (reverse = a * target[length] + b * container[length] < 0)) {\n        animations2.forEach(apply);\n      }\n    };\n    update();\n    if (a * b < 0) {\n      stops.push(resize(update), resize([target, container], update));\n    }\n  }\n  return () => {\n    stops.forEach((stop) => stop());\n    stopObserving?.();\n  };\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/scroll/index.mjs\nfunction scroll(onScroll, { axis = \"y\", source, container = document.scrollingElement, ...options } = {}) {\n  if (!container)\n    return noop;\n  const optionsWithDefaults = {\n    axis,\n    container: source || container,\n    ...options\n  };\n  return typeof onScroll === \"function\" ? scrollInfo((info) => onScroll(info[axis].progress, info), optionsWithDefaults) : attachToAnimation(onScroll, optionsWithDefaults);\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-scroll.mjs\nimport { useRef as useRef10, useCallback as useCallback5, useEffect as useEffect7 } from \"react\";\nvar createScrollMotionValues = () => ({\n  scrollX: motionValue(0),\n  scrollY: motionValue(0),\n  scrollXProgress: motionValue(0),\n  scrollYProgress: motionValue(0)\n});\nvar isRefPending = (ref) => {\n  if (!ref)\n    return false;\n  return !ref.current;\n};\nfunction makeAccelerateConfig(axis, options, container, target) {\n  return {\n    // Refs attach child-first; defer so target.current is populated\n    // before scroll() reads it.\n    factory: (animation) => {\n      let cleanup;\n      const start2 = () => {\n        if (isRefPending(container) || isRefPending(target)) {\n          microtask.read(start2);\n          return;\n        }\n        cleanup = scroll(animation, {\n          ...options,\n          axis,\n          container: container?.current || void 0,\n          target: target?.current || void 0\n        });\n      };\n      microtask.read(start2);\n      return () => {\n        cancelMicrotask(start2);\n        cleanup?.();\n      };\n    },\n    times: [0, 1],\n    keyframes: [0, 1],\n    ease: (v) => v,\n    duration: 1\n  };\n}\nfunction canAccelerateScroll(target, offset) {\n  if (typeof window === \"undefined\")\n    return false;\n  return target ? supportsViewTimeline() && !!offsetToViewTimelineRange(offset) : supportsScrollTimeline() && !offset;\n}\nfunction useScroll({ container, target, ...options } = {}) {\n  const values = useConstant(createScrollMotionValues);\n  if (canAccelerateScroll(target, options.offset)) {\n    values.scrollXProgress.accelerate = makeAccelerateConfig(\"x\", options, container, target);\n    values.scrollYProgress.accelerate = makeAccelerateConfig(\"y\", options, container, target);\n  }\n  const scrollAnimation = useRef10(null);\n  const needsStart = useRef10(false);\n  const start2 = useCallback5(() => {\n    scrollAnimation.current = scroll((_progress, { x, y }) => {\n      values.scrollX.set(x.current);\n      values.scrollXProgress.set(x.progress);\n      values.scrollY.set(y.current);\n      values.scrollYProgress.set(y.progress);\n    }, {\n      ...options,\n      container: container?.current || void 0,\n      target: target?.current || void 0\n    });\n    return () => {\n      scrollAnimation.current?.();\n    };\n  }, [container, target, JSON.stringify(options.offset)]);\n  useIsomorphicLayoutEffect(() => {\n    needsStart.current = false;\n    if (isRefPending(container) || isRefPending(target)) {\n      needsStart.current = true;\n      return;\n    } else {\n      return start2();\n    }\n  }, [start2]);\n  useEffect7(() => {\n    if (!needsStart.current)\n      return;\n    let cleanup;\n    const tryStart = () => {\n      const containerPending = isRefPending(container);\n      const targetPending = isRefPending(target);\n      invariant(!containerPending, \"Container ref is defined but not hydrated\", \"use-scroll-ref\");\n      invariant(!targetPending, \"Target ref is defined but not hydrated\", \"use-scroll-ref\");\n      if (!containerPending && !targetPending)\n        cleanup = start2();\n    };\n    microtask.read(tryStart);\n    return () => {\n      cancelMicrotask(tryStart);\n      cleanup?.();\n    };\n  }, [start2]);\n  return values;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/scroll/use-element-scroll.mjs\nfunction useElementScroll(ref) {\n  if (false) {\n    warnOnce(false, \"useElementScroll is deprecated. Convert to useScroll({ container: ref }).\");\n  }\n  return useScroll({ container: ref });\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/scroll/use-viewport-scroll.mjs\nfunction useViewportScroll() {\n  if (false) {\n    warnOnce(false, \"useViewportScroll is deprecated. Convert to useScroll().\");\n  }\n  return useScroll();\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-motion-value.mjs\nimport { useContext as useContext11, useState as useState4, useEffect as useEffect8 } from \"react\";\nfunction useMotionValue(initial) {\n  const value = useConstant(() => motionValue(initial));\n  const { isStatic } = useContext11(MotionConfigContext);\n  if (isStatic) {\n    const [, setLatest] = useState4(initial);\n    useEffect8(() => value.on(\"change\", setLatest), []);\n  }\n  return value;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-combine-values.mjs\nfunction useCombineMotionValues(values, combineValues) {\n  const value = useMotionValue(combineValues());\n  const updateValue = () => value.set(combineValues());\n  updateValue();\n  useIsomorphicLayoutEffect(() => {\n    const scheduleUpdate = () => frame.preRender(updateValue, false, true);\n    const subscriptions = values.map((v) => v.on(\"change\", scheduleUpdate));\n    updateValue();\n    return () => {\n      subscriptions.forEach((unsubscribe) => unsubscribe());\n      cancelFrame(updateValue);\n    };\n  });\n  return value;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-motion-template.mjs\nfunction useMotionTemplate(fragments, ...values) {\n  const numFragments = fragments.length;\n  function buildValue() {\n    let output = ``;\n    for (let i = 0; i < numFragments; i++) {\n      output += fragments[i];\n      const value = values[i];\n      if (value) {\n        output += isMotionValue(value) ? value.get() : value;\n      }\n    }\n    return output;\n  }\n  return useCombineMotionValues(values.filter(isMotionValue), buildValue);\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-computed.mjs\nfunction useComputed(compute) {\n  collectMotionValues.current = [];\n  compute();\n  const value = useCombineMotionValues(collectMotionValues.current, compute);\n  collectMotionValues.current = void 0;\n  return value;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-transform.mjs\nfunction useTransform(input, inputRangeOrTransformer, outputRangeOrMap, options) {\n  if (typeof input === \"function\") {\n    return useComputed(input);\n  }\n  const isOutputMap = outputRangeOrMap !== void 0 && !Array.isArray(outputRangeOrMap) && typeof inputRangeOrTransformer !== \"function\";\n  if (isOutputMap) {\n    return useMapTransform(input, inputRangeOrTransformer, outputRangeOrMap, options);\n  }\n  const outputRange = outputRangeOrMap;\n  const transformer = typeof inputRangeOrTransformer === \"function\" ? inputRangeOrTransformer : transform(inputRangeOrTransformer, outputRange, options);\n  const result = Array.isArray(input) ? useListTransform(input, transformer) : useListTransform([input], ([latest]) => transformer(latest));\n  const inputAccelerate = !Array.isArray(input) ? input.accelerate : void 0;\n  if (inputAccelerate && !inputAccelerate.isTransformed && typeof inputRangeOrTransformer !== \"function\" && Array.isArray(outputRangeOrMap) && options?.clamp !== false) {\n    const ease2 = options?.ease;\n    result.accelerate = {\n      ...inputAccelerate,\n      times: [0, ...inputRangeOrTransformer, 1],\n      keyframes: [\n        outputRangeOrMap[0],\n        ...outputRangeOrMap,\n        outputRangeOrMap[outputRangeOrMap.length - 1]\n      ],\n      isTransformed: true,\n      ...ease2 ? { ease: Array.isArray(ease2) ? [ease2[0], ...ease2] : ease2 } : {}\n    };\n  }\n  return result;\n}\nfunction useListTransform(values, transformer) {\n  const latest = useConstant(() => []);\n  return useCombineMotionValues(values, () => {\n    latest.length = 0;\n    const numValues = values.length;\n    for (let i = 0; i < numValues; i++) {\n      latest[i] = values[i].get();\n    }\n    return transformer(latest);\n  });\n}\nfunction useMapTransform(inputValue, inputRange, outputMap, options) {\n  const keys = useConstant(() => Object.keys(outputMap));\n  const output = useConstant(() => ({}));\n  for (const key of keys) {\n    output[key] = useTransform(inputValue, inputRange, outputMap[key], options);\n  }\n  return output;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-follow-value.mjs\nimport { useContext as useContext12, useInsertionEffect as useInsertionEffect5 } from \"react\";\nfunction useFollowValue(source, options = {}) {\n  return useFollow(source, options, attachFollow);\n}\nfunction useFollow(source, options, attach) {\n  const { isStatic } = useContext12(MotionConfigContext);\n  const getFromSource = () => isMotionValue(source) ? source.get() : source;\n  if (isStatic) {\n    return useTransform(getFromSource);\n  }\n  const value = useMotionValue(getFromSource());\n  useInsertionEffect5(() => {\n    return attach(value, source, options);\n  }, [value, JSON.stringify(options)]);\n  return value;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-spring.mjs\nfunction useSpring(source, options = {}) {\n  return useFollow(source, options, attachSpring);\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-animation-frame.mjs\nimport { useRef as useRef11, useContext as useContext13, useEffect as useEffect9 } from \"react\";\nfunction useAnimationFrame(callback) {\n  const initialTimestamp = useRef11(0);\n  const { isStatic } = useContext13(MotionConfigContext);\n  useEffect9(() => {\n    if (isStatic)\n      return;\n    const provideTimeSinceStart = ({ timestamp, delta }) => {\n      if (!initialTimestamp.current)\n        initialTimestamp.current = timestamp;\n      callback(timestamp - initialTimestamp.current, delta);\n    };\n    frame.update(provideTimeSinceStart, true);\n    return () => cancelFrame(provideTimeSinceStart);\n  }, [callback]);\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-time.mjs\nfunction useTime() {\n  const time2 = useMotionValue(0);\n  useAnimationFrame((t) => time2.set(t));\n  return time2;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-velocity.mjs\nfunction useVelocity(value) {\n  const velocity = useMotionValue(value.getVelocity());\n  const updateVelocity = () => {\n    const latest = value.getVelocity();\n    velocity.set(latest);\n    if (latest)\n      frame.update(updateVelocity);\n  };\n  useMotionValueEvent(value, \"change\", () => {\n    frame.update(updateVelocity, false, true);\n  });\n  return velocity;\n}\n\n// ../../../node_modules/framer-motion/dist/es/value/use-will-change/WillChangeMotionValue.mjs\nvar WillChangeMotionValue = class extends MotionValue {\n  constructor() {\n    super(...arguments);\n    this.isEnabled = false;\n  }\n  add(name) {\n    if (transformProps.has(name) || acceleratedValues.has(name)) {\n      this.isEnabled = true;\n      this.update();\n    }\n  }\n  update() {\n    this.set(this.isEnabled ? \"transform\" : \"auto\");\n  }\n};\n\n// ../../../node_modules/framer-motion/dist/es/value/use-will-change/index.mjs\nfunction useWillChange() {\n  return useConstant(() => new WillChangeMotionValue(\"auto\"));\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs\nimport { useState as useState5 } from \"react\";\nfunction useReducedMotion() {\n  !hasReducedMotionListener.current && initPrefersReducedMotion();\n  const [shouldReduceMotion] = useState5(prefersReducedMotion.current);\n  if (false) {\n    warnOnce(shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\", \"reduced-motion-disabled\");\n  }\n  return shouldReduceMotion;\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs\nimport { useContext as useContext14 } from \"react\";\nfunction useReducedMotionConfig() {\n  const reducedMotionPreference = useReducedMotion();\n  const { reducedMotion } = useContext14(MotionConfigContext);\n  if (reducedMotion === \"never\") {\n    return false;\n  } else if (reducedMotion === \"always\") {\n    return true;\n  } else {\n    return reducedMotionPreference;\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs\nfunction stopAnimation(visualElement) {\n  visualElement.values.forEach((value) => value.stop());\n}\nfunction setVariants(visualElement, variantLabels) {\n  const reversedLabels = [...variantLabels].reverse();\n  reversedLabels.forEach((key) => {\n    const variant = visualElement.getVariant(key);\n    variant && setTarget(visualElement, variant);\n    if (visualElement.variantChildren) {\n      visualElement.variantChildren.forEach((child) => {\n        setVariants(child, variantLabels);\n      });\n    }\n  });\n}\nfunction setValues(visualElement, definition) {\n  if (Array.isArray(definition)) {\n    return setVariants(visualElement, definition);\n  } else if (typeof definition === \"string\") {\n    return setVariants(visualElement, [definition]);\n  } else {\n    setTarget(visualElement, definition);\n  }\n}\nfunction animationControls() {\n  let hasMounted = false;\n  const subscribers = /* @__PURE__ */ new Set();\n  const controls = {\n    subscribe(visualElement) {\n      subscribers.add(visualElement);\n      return () => void subscribers.delete(visualElement);\n    },\n    start(definition, transitionOverride) {\n      invariant(hasMounted, \"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.\");\n      const animations2 = [];\n      subscribers.forEach((visualElement) => {\n        animations2.push(animateVisualElement(visualElement, definition, {\n          transitionOverride\n        }));\n      });\n      return Promise.all(animations2);\n    },\n    set(definition) {\n      invariant(hasMounted, \"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.\");\n      return subscribers.forEach((visualElement) => {\n        setValues(visualElement, definition);\n      });\n    },\n    stop() {\n      subscribers.forEach((visualElement) => {\n        stopAnimation(visualElement);\n      });\n    },\n    mount() {\n      hasMounted = true;\n      return () => {\n        hasMounted = false;\n        controls.stop();\n      };\n    }\n  };\n  return controls;\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs\nfunction isDOMKeyframes(keyframes2) {\n  return typeof keyframes2 === \"object\" && !Array.isArray(keyframes2);\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs\nfunction resolveSubjects(subject, keyframes2, scope, selectorCache) {\n  if (subject == null) {\n    return [];\n  }\n  if (typeof subject === \"string\" && isDOMKeyframes(keyframes2)) {\n    return resolveElements(subject, scope, selectorCache);\n  } else if (subject instanceof NodeList) {\n    return Array.from(subject);\n  } else if (Array.isArray(subject)) {\n    return subject.filter((s) => s != null);\n  } else {\n    return [subject];\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs\nfunction calculateRepeatDuration(duration, repeat, repeatDelay) {\n  return duration * (repeat + 1) + repeatDelay * repeat;\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs\nfunction calcNextTime(current2, next2, prev, labels) {\n  if (typeof next2 === \"number\") {\n    return next2;\n  } else if (next2.startsWith(\"-\") || next2.startsWith(\"+\")) {\n    return Math.max(0, current2 + parseFloat(next2));\n  } else if (next2 === \"<\") {\n    return prev;\n  } else if (next2.startsWith(\"<\")) {\n    return Math.max(0, prev + parseFloat(next2.slice(1)));\n  } else {\n    return labels.get(next2) ?? current2;\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs\nfunction eraseKeyframes(sequence, startTime, endTime) {\n  for (let i = 0; i < sequence.length; i++) {\n    const keyframe = sequence[i];\n    if (keyframe.at > startTime && keyframe.at < endTime) {\n      removeItem(sequence, keyframe);\n      i--;\n    }\n  }\n}\nfunction addKeyframes(sequence, keyframes2, easing, offset, startTime, endTime) {\n  eraseKeyframes(sequence, startTime, endTime);\n  for (let i = 0; i < keyframes2.length; i++) {\n    sequence.push({\n      value: keyframes2[i],\n      at: mixNumber(startTime, endTime, offset[i]),\n      easing: getEasingForSegment(easing, i)\n    });\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs\nfunction normalizeTimes(times, repeat, repeatDelayUnits = 0) {\n  const totalUnits = repeat + 1 + repeat * repeatDelayUnits;\n  for (let i = 0; i < times.length; i++) {\n    times[i] = times[i] / totalUnits;\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs\nfunction compareByTime(a, b) {\n  if (a.at === b.at) {\n    if (a.value === null)\n      return 1;\n    if (b.value === null)\n      return -1;\n    return 0;\n  } else {\n    return a.at - b.at;\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/sequence/create.mjs\nvar defaultSegmentEasing = \"easeInOut\";\nvar MAX_REPEAT = 20;\nfunction createAnimationsFromSequence(sequence, { defaultTransition = {}, ...sequenceTransition } = {}, scope, generators) {\n  const defaultDuration = defaultTransition.duration || 0.3;\n  const animationDefinitions = /* @__PURE__ */ new Map();\n  const sequences = /* @__PURE__ */ new Map();\n  const elementCache = {};\n  const timeLabels = /* @__PURE__ */ new Map();\n  let prevTime = 0;\n  let currentTime = 0;\n  let totalDuration = 0;\n  for (let i = 0; i < sequence.length; i++) {\n    const segment = sequence[i];\n    if (typeof segment === \"string\") {\n      timeLabels.set(segment, currentTime);\n      continue;\n    } else if (!Array.isArray(segment)) {\n      timeLabels.set(segment.name, calcNextTime(currentTime, segment.at, prevTime, timeLabels));\n      continue;\n    }\n    let [subject, keyframes2, transition = {}] = segment;\n    if (transition.at !== void 0) {\n      currentTime = calcNextTime(currentTime, transition.at, prevTime, timeLabels);\n    }\n    let maxDuration = 0;\n    const resolveValueSequence = (valueKeyframes, valueTransition, valueSequence, elementIndex = 0, numSubjects = 0) => {\n      const valueKeyframesAsList = keyframesAsList(valueKeyframes);\n      const { delay: delay2 = 0, times = defaultOffset(valueKeyframesAsList), type = defaultTransition.type || \"keyframes\", repeat, repeatType, repeatDelay = 0, ...remainingTransition } = valueTransition;\n      let { ease: ease2 = defaultTransition.ease || \"easeOut\", duration } = valueTransition;\n      const calculatedDelay = typeof delay2 === \"function\" ? delay2(elementIndex, numSubjects) : delay2;\n      const numKeyframes = valueKeyframesAsList.length;\n      const createGenerator = isGenerator(type) ? type : generators?.[type || \"keyframes\"];\n      if (numKeyframes <= 2 && createGenerator) {\n        let absoluteDelta = 100;\n        if (numKeyframes === 2 && isNumberKeyframesArray(valueKeyframesAsList)) {\n          const delta = valueKeyframesAsList[1] - valueKeyframesAsList[0];\n          absoluteDelta = Math.abs(delta);\n        }\n        const springTransition = {\n          ...defaultTransition,\n          ...remainingTransition\n        };\n        if (duration !== void 0) {\n          springTransition.duration = secondsToMilliseconds(duration);\n        }\n        const springEasing = createGeneratorEasing(springTransition, absoluteDelta, createGenerator);\n        ease2 = springEasing.ease;\n        duration = springEasing.duration;\n      }\n      duration ?? (duration = defaultDuration);\n      const startTime = currentTime + calculatedDelay;\n      if (times.length === 1 && times[0] === 0) {\n        times[1] = 1;\n      }\n      const remainder = times.length - valueKeyframesAsList.length;\n      remainder > 0 && fillOffset(times, remainder);\n      valueKeyframesAsList.length === 1 && valueKeyframesAsList.unshift(null);\n      if (repeat) {\n        warning(repeat < MAX_REPEAT, `Sequence segments can't repeat ${repeat} times \\u2014 ignoring repeat option. Use a value below ${MAX_REPEAT} or apply repeat at the sequence level instead.`);\n      }\n      if (repeat && repeat < MAX_REPEAT) {\n        const repeatDelayUnits = duration > 0 ? repeatDelay / duration : 0;\n        duration = calculateRepeatDuration(duration, repeat, repeatDelay);\n        const originalKeyframes = [...valueKeyframesAsList];\n        const originalTimes = [...times];\n        ease2 = Array.isArray(ease2) ? [...ease2] : [ease2];\n        const originalEase = [...ease2];\n        const isFlipping = repeatType === \"reverse\" || repeatType === \"mirror\";\n        let flippedKeyframes = originalKeyframes;\n        let flippedEases = originalEase;\n        if (isFlipping) {\n          flippedKeyframes = [...originalKeyframes].reverse();\n          if (repeatType === \"reverse\") {\n            flippedEases = [...originalEase].reverse().map((e) => typeof e === \"function\" ? reverseEasing(e) : e);\n          }\n        }\n        for (let repeatIndex = 0; repeatIndex < repeat; repeatIndex++) {\n          const isFlipped = isFlipping && repeatIndex % 2 === 0;\n          const iterKeyframes = isFlipped ? flippedKeyframes : originalKeyframes;\n          const iterEase = isFlipped ? flippedEases : originalEase;\n          const iterStartOffset = (repeatIndex + 1) * (1 + repeatDelayUnits);\n          if (repeatDelayUnits > 0) {\n            valueKeyframesAsList.push(valueKeyframesAsList[valueKeyframesAsList.length - 1]);\n            times.push(iterStartOffset);\n            ease2.push(\"linear\");\n          }\n          valueKeyframesAsList.push(...iterKeyframes);\n          for (let keyframeIndex = 0; keyframeIndex < iterKeyframes.length; keyframeIndex++) {\n            times.push(originalTimes[keyframeIndex] + iterStartOffset);\n            ease2.push(keyframeIndex === 0 ? \"linear\" : getEasingForSegment(iterEase, keyframeIndex - 1));\n          }\n        }\n        normalizeTimes(times, repeat, repeatDelayUnits);\n      }\n      const targetTime = startTime + duration;\n      addKeyframes(valueSequence, valueKeyframesAsList, ease2, times, startTime, targetTime);\n      maxDuration = Math.max(calculatedDelay + duration, maxDuration);\n      totalDuration = Math.max(targetTime, totalDuration);\n    };\n    if (isMotionValue(subject)) {\n      const subjectSequence = getSubjectSequence(subject, sequences);\n      resolveValueSequence(keyframes2, transition, getValueSequence(\"default\", subjectSequence));\n    } else {\n      const subjects = resolveSubjects(subject, keyframes2, scope, elementCache);\n      const numSubjects = subjects.length;\n      for (let subjectIndex = 0; subjectIndex < numSubjects; subjectIndex++) {\n        keyframes2 = keyframes2;\n        transition = transition;\n        const thisSubject = subjects[subjectIndex];\n        const subjectSequence = getSubjectSequence(thisSubject, sequences);\n        for (const key in keyframes2) {\n          resolveValueSequence(keyframes2[key], getValueTransition2(transition, key), getValueSequence(key, subjectSequence), subjectIndex, numSubjects);\n        }\n      }\n    }\n    prevTime = currentTime;\n    currentTime += maxDuration;\n  }\n  sequences.forEach((valueSequences, element) => {\n    for (const key in valueSequences) {\n      const valueSequence = valueSequences[key];\n      valueSequence.sort(compareByTime);\n      const keyframes2 = [];\n      const valueOffset = [];\n      const valueEasing = [];\n      for (let i = 0; i < valueSequence.length; i++) {\n        const { at, value, easing } = valueSequence[i];\n        keyframes2.push(value);\n        valueOffset.push(progress(0, totalDuration, at));\n        valueEasing.push(easing || \"easeOut\");\n      }\n      if (valueOffset[0] !== 0) {\n        valueOffset.unshift(0);\n        keyframes2.unshift(keyframes2[0]);\n        valueEasing.unshift(defaultSegmentEasing);\n      }\n      if (valueOffset[valueOffset.length - 1] !== 1) {\n        valueOffset.push(1);\n        keyframes2.push(null);\n      }\n      if (!animationDefinitions.has(element)) {\n        animationDefinitions.set(element, {\n          keyframes: {},\n          transition: {}\n        });\n      }\n      const definition = animationDefinitions.get(element);\n      definition.keyframes[key] = keyframes2;\n      const { type: _type, ...remainingDefaultTransition } = defaultTransition;\n      definition.transition[key] = {\n        ...remainingDefaultTransition,\n        duration: totalDuration,\n        ease: valueEasing,\n        times: valueOffset,\n        ...sequenceTransition\n      };\n    }\n  });\n  return animationDefinitions;\n}\nfunction getSubjectSequence(subject, sequences) {\n  !sequences.has(subject) && sequences.set(subject, {});\n  return sequences.get(subject);\n}\nfunction getValueSequence(name, sequences) {\n  if (!sequences[name])\n    sequences[name] = [];\n  return sequences[name];\n}\nfunction keyframesAsList(keyframes2) {\n  return Array.isArray(keyframes2) ? keyframes2 : [keyframes2];\n}\nfunction getValueTransition2(transition, key) {\n  return transition && transition[key] ? {\n    ...transition,\n    ...transition[key]\n  } : { ...transition };\n}\nvar isNumber = (keyframe) => typeof keyframe === \"number\";\nvar isNumberKeyframesArray = (keyframes2) => keyframes2.every(isNumber);\n\n// ../../../node_modules/framer-motion/dist/es/animation/animate/subject.mjs\nfunction isSingleValue(subject, keyframes2) {\n  return isMotionValue(subject) || typeof subject === \"number\" || typeof subject === \"string\" && !isDOMKeyframes(keyframes2);\n}\nfunction animateSubject(subject, keyframes2, options, scope) {\n  const animations2 = [];\n  if (isSingleValue(subject, keyframes2)) {\n    animations2.push(animateSingleValue(subject, isDOMKeyframes(keyframes2) ? keyframes2.default || keyframes2 : keyframes2, options ? options.default || options : options));\n  } else {\n    if (subject == null) {\n      return animations2;\n    }\n    const subjects = resolveSubjects(subject, keyframes2, scope);\n    const numSubjects = subjects.length;\n    invariant(Boolean(numSubjects), \"No valid elements provided.\", \"no-valid-elements\");\n    for (let i = 0; i < numSubjects; i++) {\n      const thisSubject = subjects[i];\n      const transition = { ...options };\n      if (\"delay\" in transition && typeof transition.delay === \"function\") {\n        transition.delay = transition.delay(i, numSubjects);\n      }\n      if (thisSubject instanceof Element) {\n        animations2.push(...animateElement(thisSubject, keyframes2, transition, visualElementStore.get(thisSubject)));\n      } else {\n        animations2.push(...animateEffectSubject(findEffect(thisSubject) ?? propEffect, thisSubject, keyframes2, transition));\n      }\n    }\n  }\n  return animations2;\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/animate/sequence.mjs\nfunction animateSequence(sequence, options, scope) {\n  const animations2 = [];\n  const processedSequence = sequence.map((segment) => {\n    if (Array.isArray(segment) && typeof segment[0] === \"function\") {\n      const callback = segment[0];\n      const mv = motionValue(0);\n      mv.on(\"change\", callback);\n      if (segment.length === 1) {\n        return [mv, [0, 1]];\n      } else if (segment.length === 2) {\n        return [mv, [0, 1], segment[1]];\n      } else {\n        return [mv, segment[1], segment[2]];\n      }\n    }\n    return segment;\n  });\n  const animationDefinitions = createAnimationsFromSequence(processedSequence, options, scope, { spring });\n  animationDefinitions.forEach(({ keyframes: keyframes2, transition }, subject) => {\n    animations2.push(...animateSubject(subject, keyframes2, transition));\n  });\n  return animations2;\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/animate/index.mjs\nfunction isSequence(value) {\n  return Array.isArray(value) && value.some(Array.isArray);\n}\nfunction createScopedAnimate(options = {}) {\n  const { scope, reduceMotion, skipAnimations } = options;\n  function scopedAnimate(subjectOrSequence, optionsOrKeyframes, options2) {\n    let animations2 = [];\n    let animationOnComplete;\n    const inherited = {};\n    if (reduceMotion !== void 0)\n      inherited.reduceMotion = reduceMotion;\n    if (skipAnimations !== void 0)\n      inherited.skipAnimations = skipAnimations;\n    if (isSequence(subjectOrSequence)) {\n      const { onComplete, ...sequenceOptions } = optionsOrKeyframes || {};\n      if (typeof onComplete === \"function\") {\n        animationOnComplete = onComplete;\n      }\n      animations2 = animateSequence(subjectOrSequence, { ...inherited, ...sequenceOptions }, scope);\n    } else {\n      const { onComplete, ...rest } = options2 || {};\n      if (typeof onComplete === \"function\") {\n        animationOnComplete = onComplete;\n      }\n      animations2 = animateSubject(subjectOrSequence, optionsOrKeyframes, { ...inherited, ...rest }, scope);\n    }\n    const animation = new GroupAnimationWithThen(animations2);\n    if (animationOnComplete) {\n      animation.finished.then(animationOnComplete);\n    }\n    if (scope) {\n      scope.animations.push(animation);\n      animation.finished.then(() => {\n        removeItem(scope.animations, animation);\n      });\n    }\n    return animation;\n  }\n  return scopedAnimate;\n}\nvar animate = Object.assign(createScopedAnimate(), {\n  /**\n   * Register an effect so `animate()` can animate the subjects it\n   * claims, for instance `animate.addEffect(threeEffect)`. The most\n   * recently added effect is tested first. DOM elements are always\n   * animated directly.\n   */\n  addEffect,\n  removeEffect\n});\n\n// ../../../node_modules/framer-motion/dist/es/animation/hooks/use-animate.mjs\nimport { useContext as useContext15, useMemo as useMemo9 } from \"react\";\nfunction useAnimate() {\n  const scope = useConstant(() => ({\n    current: null,\n    // Will be hydrated by React\n    animations: []\n  }));\n  const reduceMotion = useReducedMotionConfig() ?? void 0;\n  const { skipAnimations } = useContext15(MotionConfigContext);\n  const animate2 = useMemo9(() => createScopedAnimate({ scope, reduceMotion, skipAnimations }), [scope, reduceMotion, skipAnimations]);\n  useUnmountEffect(() => {\n    scope.animations.forEach((animation) => animation.stop());\n    scope.animations.length = 0;\n  });\n  return [scope, animate2];\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs\nfunction animateElements(elementOrSelector, keyframes2, options, scope) {\n  if (elementOrSelector == null) {\n    return [];\n  }\n  const elements = resolveElements(elementOrSelector, scope);\n  const numElements = elements.length;\n  invariant(Boolean(numElements), \"No valid elements provided.\", \"no-valid-elements\");\n  const animationDefinitions = [];\n  for (let i = 0; i < numElements; i++) {\n    const element = elements[i];\n    const elementTransition = { ...options };\n    if (typeof elementTransition.delay === \"function\") {\n      elementTransition.delay = elementTransition.delay(i, numElements);\n    }\n    for (const valueName in keyframes2) {\n      let valueKeyframes = keyframes2[valueName];\n      if (!Array.isArray(valueKeyframes)) {\n        valueKeyframes = [valueKeyframes];\n      }\n      const valueOptions = {\n        ...getValueTransition(elementTransition, valueName)\n      };\n      valueOptions.duration && (valueOptions.duration = secondsToMilliseconds(valueOptions.duration));\n      valueOptions.delay && (valueOptions.delay = secondsToMilliseconds(valueOptions.delay));\n      const map = getAnimationMap(element);\n      const key = animationMapKey(valueName, valueOptions.pseudoElement || \"\");\n      const currentAnimation = map.get(key);\n      currentAnimation && currentAnimation.stop();\n      animationDefinitions.push({\n        map,\n        key,\n        unresolvedKeyframes: valueKeyframes,\n        options: {\n          ...valueOptions,\n          element,\n          name: valueName,\n          allowFlatten: !elementTransition.type && !elementTransition.ease\n        }\n      });\n    }\n  }\n  for (let i = 0; i < animationDefinitions.length; i++) {\n    const { unresolvedKeyframes, options: animationOptions } = animationDefinitions[i];\n    const { element, name, pseudoElement } = animationOptions;\n    if (!pseudoElement && unresolvedKeyframes[0] === null) {\n      unresolvedKeyframes[0] = getComputedStyle2(element, name);\n    }\n    fillWildcards(unresolvedKeyframes);\n    applyPxDefaults(unresolvedKeyframes, name);\n    if (!pseudoElement && unresolvedKeyframes.length < 2) {\n      unresolvedKeyframes.unshift(getComputedStyle2(element, name));\n    }\n    animationOptions.keyframes = unresolvedKeyframes;\n  }\n  const animations2 = [];\n  for (let i = 0; i < animationDefinitions.length; i++) {\n    const { map, key, options: animationOptions } = animationDefinitions[i];\n    const animation = new NativeAnimation(animationOptions);\n    map.set(key, animation);\n    animation.finished.finally(() => map.delete(key));\n    animations2.push(animation);\n  }\n  return animations2;\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs\nvar createScopedWaapiAnimate = (scope) => {\n  function scopedAnimate(elementOrSelector, keyframes2, options) {\n    return new GroupAnimationWithThen(animateElements(elementOrSelector, keyframes2, options, scope));\n  }\n  return scopedAnimate;\n};\nvar animateMini = /* @__PURE__ */ createScopedWaapiAnimate();\n\n// ../../../node_modules/framer-motion/dist/es/animation/hooks/use-animate-style.mjs\nfunction useAnimateMini() {\n  const scope = useConstant(() => ({\n    current: null,\n    // Will be hydrated by React\n    animations: []\n  }));\n  const animate2 = useConstant(() => createScopedWaapiAnimate(scope));\n  useUnmountEffect(() => {\n    scope.animations.forEach((animation) => animation.stop());\n  });\n  return [scope, animate2];\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs\nfunction useAnimationControls() {\n  const controls = useConstant(animationControls);\n  useIsomorphicLayoutEffect(controls.mount, []);\n  return controls;\n}\nvar useAnimation = useAnimationControls;\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence-data.mjs\nimport { useContext as useContext16 } from \"react\";\nfunction usePresenceData() {\n  const context = useContext16(PresenceContext);\n  return context ? context.custom : void 0;\n}\n\n// ../../../node_modules/framer-motion/dist/es/events/use-dom-event.mjs\nimport { useEffect as useEffect10 } from \"react\";\nfunction useDomEvent(ref, eventName, handler, options) {\n  useEffect10(() => {\n    const element = ref.current;\n    if (handler && element) {\n      return addDomEvent(element, eventName, handler, options);\n    }\n  }, [ref, eventName, handler, options]);\n}\n\n// ../../../node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs\nvar DragControls = class {\n  constructor() {\n    this.componentControls = /* @__PURE__ */ new Set();\n  }\n  /**\n   * Subscribe a component's internal `VisualElementDragControls` to the user-facing API.\n   *\n   * @internal\n   */\n  subscribe(controls) {\n    this.componentControls.add(controls);\n    return () => this.componentControls.delete(controls);\n  }\n  /**\n   * Start a drag gesture on every `motion` component that has this set of drag controls\n   * passed into it via the `dragControls` prop.\n   *\n   * ```jsx\n   * dragControls.start(e, {\n   *   snapToCursor: true\n   * })\n   * ```\n   *\n   * @param event - PointerEvent\n   * @param options - Options\n   *\n   * @public\n   */\n  start(event, options) {\n    this.componentControls.forEach((controls) => {\n      controls.start(event.nativeEvent || event, options);\n    });\n  }\n  /**\n   * Cancels a drag gesture.\n   *\n   * ```jsx\n   * dragControls.cancel()\n   * ```\n   *\n   * @public\n   */\n  cancel() {\n    this.componentControls.forEach((controls) => {\n      controls.cancel();\n    });\n  }\n  /**\n   * Stops a drag gesture.\n   *\n   * ```jsx\n   * dragControls.stop()\n   * ```\n   *\n   * @public\n   */\n  stop() {\n    this.componentControls.forEach((controls) => {\n      controls.stop();\n    });\n  }\n};\nvar createDragControls = () => new DragControls();\nfunction useDragControls() {\n  return useConstant(createDragControls);\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/is-motion-component.mjs\nfunction isMotionComponent(component) {\n  return component !== null && typeof component === \"object\" && motionComponentSymbol in component;\n}\n\n// ../../../node_modules/framer-motion/dist/es/motion/utils/unwrap-motion-component.mjs\nfunction unwrapMotionComponent(component) {\n  if (isMotionComponent(component)) {\n    return component[motionComponentSymbol];\n  }\n  return void 0;\n}\n\n// ../../../node_modules/framer-motion/dist/es/projection/use-instant-layout-transition.mjs\nfunction useInstantLayoutTransition() {\n  return startTransition;\n}\nfunction startTransition(callback) {\n  if (!rootProjectionNode.current)\n    return;\n  rootProjectionNode.current.isUpdating = false;\n  rootProjectionNode.current.blockUpdate();\n  callback && callback();\n}\n\n// ../../../node_modules/framer-motion/dist/es/projection/use-reset-projection.mjs\nimport { useCallback as useCallback6 } from \"react\";\nfunction useResetProjection() {\n  const reset = useCallback6(() => {\n    const root = rootProjectionNode.current;\n    if (!root)\n      return;\n    root.resetTree();\n  }, []);\n  return reset;\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-cycle.mjs\nimport { useRef as useRef12, useState as useState6, useCallback as useCallback7 } from \"react\";\nfunction useCycle(...items) {\n  const index = useRef12(0);\n  const [item, setItem] = useState6(items[index.current]);\n  const runCycle = useCallback7(\n    (next2) => {\n      index.current = typeof next2 !== \"number\" ? wrap(0, items.length, index.current + 1) : next2;\n      setItem(items[index.current]);\n    },\n    // The array will change on each call, but by putting items.length at\n    // the front of this array, we guarantee the dependency comparison will match up\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n    [items.length, ...items]\n  );\n  return [item, runCycle];\n}\n\n// ../../../node_modules/framer-motion/dist/es/render/dom/viewport/index.mjs\nvar thresholds = {\n  some: 0,\n  all: 1\n};\nfunction inView(elementOrSelector, onStart, { root, margin: rootMargin, amount = \"some\" } = {}) {\n  const elements = resolveElements(elementOrSelector);\n  const activeIntersections = /* @__PURE__ */ new WeakMap();\n  const onIntersectionChange = (entries) => {\n    entries.forEach((entry) => {\n      const onEnd = activeIntersections.get(entry.target);\n      if (entry.isIntersecting === Boolean(onEnd))\n        return;\n      if (entry.isIntersecting) {\n        const newOnEnd = onStart(entry.target, entry);\n        if (typeof newOnEnd === \"function\") {\n          activeIntersections.set(entry.target, newOnEnd);\n        } else {\n          observer2.unobserve(entry.target);\n        }\n      } else if (typeof onEnd === \"function\") {\n        onEnd(entry);\n        activeIntersections.delete(entry.target);\n      }\n    });\n  };\n  const observer2 = new IntersectionObserver(onIntersectionChange, {\n    root,\n    rootMargin,\n    threshold: typeof amount === \"number\" ? amount : thresholds[amount]\n  });\n  elements.forEach((element) => observer2.observe(element));\n  return () => observer2.disconnect();\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-in-view.mjs\nimport { useState as useState7, useEffect as useEffect11 } from \"react\";\nfunction useInView(ref, { root, margin, amount, once = false, initial = false } = {}) {\n  const [isInView, setInView] = useState7(initial);\n  useEffect11(() => {\n    if (!ref.current || once && isInView)\n      return;\n    const onEnter = () => {\n      setInView(true);\n      return once ? void 0 : () => setInView(false);\n    };\n    const options = {\n      root: root && root.current || void 0,\n      margin,\n      amount\n    };\n    return inView(ref.current, onEnter, options);\n  }, [root, ref, margin, once, amount]);\n  return isInView;\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-instant-transition.mjs\nimport { useRef as useRef13, useEffect as useEffect12 } from \"react\";\nfunction useInstantTransition() {\n  const [forceUpdate, forcedRenderCount] = useForceUpdate();\n  const startInstantLayoutTransition = useInstantLayoutTransition();\n  const unlockOnFrameRef = useRef13(-1);\n  useEffect12(() => {\n    frame.postRender(() => frame.postRender(() => {\n      if (forcedRenderCount !== unlockOnFrameRef.current)\n        return;\n      MotionGlobalConfig.instantAnimations = false;\n    }));\n  }, [forcedRenderCount]);\n  return (callback) => {\n    startInstantLayoutTransition(() => {\n      MotionGlobalConfig.instantAnimations = true;\n      forceUpdate();\n      callback();\n      unlockOnFrameRef.current = forcedRenderCount + 1;\n    });\n  };\n}\nfunction disableInstantTransitions() {\n  MotionGlobalConfig.instantAnimations = false;\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/use-page-in-view.mjs\nimport { useState as useState8, useEffect as useEffect13 } from \"react\";\nfunction usePageInView() {\n  const [isInView, setIsInView] = useState8(true);\n  useEffect13(() => {\n    const handleVisibilityChange = () => setIsInView(!document.hidden);\n    if (document.hidden) {\n      handleVisibilityChange();\n    }\n    document.addEventListener(\"visibilitychange\", handleVisibilityChange);\n    return () => {\n      document.removeEventListener(\"visibilitychange\", handleVisibilityChange);\n    };\n  }, []);\n  return isInView;\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/transform-viewbox-point.mjs\nfunction transformViewBoxPoint(svgRef) {\n  return (point) => {\n    const svg = svgRef.current;\n    if (!svg) {\n      return point;\n    }\n    const viewBox = svg.viewBox?.baseVal;\n    if (!viewBox || viewBox.width === 0 && viewBox.height === 0) {\n      return point;\n    }\n    const bbox = svg.getBoundingClientRect();\n    if (bbox.width === 0 || bbox.height === 0) {\n      return point;\n    }\n    const scaleX2 = viewBox.width / bbox.width;\n    const scaleY2 = viewBox.height / bbox.height;\n    const svgX = bbox.left + window.scrollX;\n    const svgY = bbox.top + window.scrollY;\n    return {\n      x: (point.x - svgX) * scaleX2 + svgX,\n      y: (point.y - svgY) * scaleY2 + svgY\n    };\n  };\n}\n\n// ../../../node_modules/framer-motion/dist/es/utils/transform-rotated-parent.mjs\nfunction correctParentTransform(parentRef) {\n  return (point) => {\n    const parent = parentRef.current;\n    if (!parent)\n      return point;\n    const inv = getInverseMatrix(parent);\n    if (!inv)\n      return point;\n    const rect = parent.getBoundingClientRect();\n    const cx = rect.left + window.scrollX + rect.width / 2;\n    const cy = rect.top + window.scrollY + rect.height / 2;\n    const dx = point.x - cx;\n    const dy = point.y - cy;\n    return {\n      x: cx + inv.a * dx + inv.c * dy,\n      y: cy + inv.b * dx + inv.d * dy\n    };\n  };\n}\nfunction getInverseMatrix(element) {\n  const { transform: transform2 } = getComputedStyle(element);\n  if (!transform2 || transform2 === \"none\")\n    return null;\n  const match = transform2.match(/^matrix3d\\((.*)\\)$/u) || transform2.match(/^matrix\\((.*)\\)$/u);\n  if (!match)\n    return null;\n  const v = match[1].split(\",\").map(Number);\n  const is3d = transform2.startsWith(\"matrix3d\");\n  const a = v[0], b = v[1];\n  const c = is3d ? v[4] : v[2];\n  const d = is3d ? v[5] : v[3];\n  const det = a * d - b * c;\n  if (Math.abs(det) < 1e-10)\n    return null;\n  return { a: d / det, b: -b / det, c: -c / det, d: a / det };\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/optimized-appear/store.mjs\nvar appearAnimationStore = /* @__PURE__ */ new Map();\nvar appearComplete = /* @__PURE__ */ new Map();\n\n// ../../../node_modules/framer-motion/dist/es/animation/optimized-appear/store-id.mjs\nvar appearStoreId = (elementId, valueName) => {\n  const key = transformProps.has(valueName) ? \"transform\" : valueName;\n  return `${elementId}: ${key}`;\n};\n\n// ../../../node_modules/framer-motion/dist/es/animation/optimized-appear/handoff.mjs\nfunction handoffOptimizedAppearAnimation(elementId, valueName, frame2) {\n  const storeId = appearStoreId(elementId, valueName);\n  const optimisedAnimation = appearAnimationStore.get(storeId);\n  if (!optimisedAnimation) {\n    return null;\n  }\n  const { animation, startTime } = optimisedAnimation;\n  function cancelAnimation() {\n    window.MotionCancelOptimisedAnimation?.(elementId, valueName, frame2);\n  }\n  animation.onfinish = cancelAnimation;\n  if (startTime === null || window.MotionHandoffIsComplete?.(elementId)) {\n    cancelAnimation();\n    return null;\n  } else {\n    return startTime;\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/optimized-appear/start.mjs\nvar startFrameTime;\nvar readyAnimation;\nvar suspendedAnimations = /* @__PURE__ */ new Set();\nfunction resumeSuspendedAnimations() {\n  suspendedAnimations.forEach((data) => {\n    data.animation.play();\n    data.animation.startTime = data.startTime;\n  });\n  suspendedAnimations.clear();\n}\nfunction startOptimizedAppearAnimation(element, name, keyframes2, options, onReady) {\n  if (window.MotionIsMounted) {\n    return;\n  }\n  const id4 = element.dataset[optimizedAppearDataId];\n  if (!id4)\n    return;\n  window.MotionHandoffAnimation = handoffOptimizedAppearAnimation;\n  const storeId = appearStoreId(id4, name);\n  if (!readyAnimation) {\n    readyAnimation = startWaapiAnimation(\n      element,\n      name,\n      [keyframes2[0], keyframes2[0]],\n      /**\n       * 10 secs is basically just a super-safe duration to give Chrome\n       * long enough to get the animation ready.\n       */\n      { duration: 1e4, ease: \"linear\" }\n    );\n    appearAnimationStore.set(storeId, {\n      animation: readyAnimation,\n      startTime: null\n    });\n    window.MotionHandoffAnimation = handoffOptimizedAppearAnimation;\n    window.MotionHasOptimisedAnimation = (elementId, valueName) => {\n      if (!elementId)\n        return false;\n      if (!valueName) {\n        return appearComplete.has(elementId);\n      }\n      const animationId = appearStoreId(elementId, valueName);\n      return Boolean(appearAnimationStore.get(animationId));\n    };\n    window.MotionHandoffMarkAsComplete = (elementId) => {\n      if (appearComplete.has(elementId)) {\n        appearComplete.set(elementId, true);\n      }\n    };\n    window.MotionHandoffIsComplete = (elementId) => {\n      return appearComplete.get(elementId) === true;\n    };\n    window.MotionCancelOptimisedAnimation = (elementId, valueName, frame2, canResume) => {\n      const animationId = appearStoreId(elementId, valueName);\n      const data = appearAnimationStore.get(animationId);\n      if (!data)\n        return;\n      if (frame2 && canResume === void 0) {\n        frame2.postRender(() => {\n          frame2.postRender(() => {\n            data.animation.cancel();\n          });\n        });\n      } else {\n        data.animation.cancel();\n      }\n      if (frame2 && canResume) {\n        suspendedAnimations.add(data);\n        frame2.render(resumeSuspendedAnimations);\n      } else {\n        appearAnimationStore.delete(animationId);\n        if (!appearAnimationStore.size) {\n          window.MotionCancelOptimisedAnimation = void 0;\n        }\n      }\n    };\n    window.MotionCheckAppearSync = (visualElement, valueName, value) => {\n      const appearId = getOptimisedAppearId(visualElement);\n      if (!appearId)\n        return;\n      const valueIsOptimised = window.MotionHasOptimisedAnimation?.(appearId, valueName);\n      const externalAnimationValue = visualElement.props.values?.[valueName];\n      if (!valueIsOptimised || !externalAnimationValue)\n        return;\n      const removeSyncCheck = value.on(\"change\", (latestValue) => {\n        if (externalAnimationValue.get() !== latestValue) {\n          window.MotionCancelOptimisedAnimation?.(appearId, valueName);\n          removeSyncCheck();\n        }\n      });\n      return removeSyncCheck;\n    };\n  }\n  const startAnimation = () => {\n    readyAnimation.cancel();\n    const appearAnimation = startWaapiAnimation(element, name, keyframes2, options);\n    if (startFrameTime === void 0) {\n      startFrameTime = performance.now();\n    }\n    appearAnimation.startTime = startFrameTime;\n    appearAnimationStore.set(storeId, {\n      animation: appearAnimation,\n      startTime: startFrameTime\n    });\n    if (onReady)\n      onReady(appearAnimation);\n  };\n  appearComplete.set(id4, false);\n  if (readyAnimation.ready) {\n    readyAnimation.ready.then(startAnimation).catch(noop);\n  } else {\n    startAnimation();\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/animation/hooks/use-animated-state.mjs\nimport { useState as useState9, useLayoutEffect as useLayoutEffect2 } from \"react\";\nvar createObject = () => ({});\nvar StateVisualElement = class extends VisualElement {\n  constructor() {\n    super(...arguments);\n    this.measureInstanceViewportBox = createBox;\n  }\n  build() {\n  }\n  resetTransform() {\n  }\n  restoreTransform() {\n  }\n  removeValueFromRenderState() {\n  }\n  renderInstance() {\n  }\n  scrapeMotionValuesFromProps() {\n    return createObject();\n  }\n  getBaseTargetFromProps() {\n    return void 0;\n  }\n  readValueFromInstance(_state, key, options) {\n    return options.initialState[key] || 0;\n  }\n  sortInstanceNodePosition() {\n    return 0;\n  }\n};\nvar useVisualState = makeUseVisualState({\n  scrapeMotionValuesFromProps: createObject,\n  createRenderState: createObject\n});\nfunction useAnimatedState(initialState) {\n  const [animationState, setAnimationState] = useState9(initialState);\n  const visualState = useVisualState({}, false);\n  const element = useConstant(() => {\n    return new StateVisualElement({\n      props: {\n        onUpdate: (v) => {\n          setAnimationState({ ...v });\n        }\n      },\n      visualState,\n      presenceContext: null\n    }, { initialState });\n  });\n  useLayoutEffect2(() => {\n    element.mount({});\n    return () => element.unmount();\n  }, [element]);\n  const startAnimation = useConstant(() => (animationDefinition) => {\n    return animateVisualElement(element, animationDefinition);\n  });\n  return [animationState, startAnimation];\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs\nimport { jsx as jsx9 } from \"react/jsx-runtime\";\nimport * as React4 from \"react\";\nvar id3 = 0;\nvar AnimateSharedLayout = ({ children }) => {\n  React4.useEffect(() => {\n    invariant(false, \"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations\");\n  }, []);\n  return jsx9(LayoutGroup, { id: useConstant(() => `asl-${id3++}`), children });\n};\n\n// ../../../node_modules/framer-motion/dist/es/value/use-inverted-scale.mjs\nimport { useContext as useContext17 } from \"react\";\nvar maxScale = 1e5;\nvar invertScale = (scale2) => scale2 > 1e-3 ? 1 / scale2 : maxScale;\nvar hasWarned2 = false;\nfunction useInvertedScale(scale2) {\n  let parentScaleX = useMotionValue(1);\n  let parentScaleY = useMotionValue(1);\n  const { visualElement } = useContext17(MotionContext);\n  invariant(!!(scale2 || visualElement), \"If no scale values are provided, useInvertedScale must be used within a child of another motion component.\");\n  warning(hasWarned2, \"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead.\");\n  hasWarned2 = true;\n  if (scale2) {\n    parentScaleX = scale2.scaleX || parentScaleX;\n    parentScaleY = scale2.scaleY || parentScaleY;\n  } else if (visualElement) {\n    parentScaleX = visualElement.getValue(\"scaleX\", 1);\n    parentScaleY = visualElement.getValue(\"scaleY\", 1);\n  }\n  const scaleX2 = useTransform(parentScaleX, invertScale);\n  const scaleY2 = useTransform(parentScaleY, invertScale);\n  return { scaleX: scaleX2, scaleY: scaleY2 };\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/namespace.mjs\nvar namespace_exports = {};\n__export(namespace_exports, {\n  Group: () => ReorderGroup,\n  Item: () => ReorderItem\n});\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/Group.mjs\nimport { jsx as jsx10 } from \"react/jsx-runtime\";\nimport { forwardRef as forwardRef2, useRef as useRef14, useState as useState10, useEffect as useEffect15 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/context/ReorderContext.mjs\nimport { createContext as createContext8 } from \"react\";\nvar ReorderContext = createContext8(null);\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.mjs\nfunction checkReorder(order, value, offset, velocity, axis, direction = \"ltr\") {\n  const index = order.findIndex((item2) => item2.value === value);\n  if (index === -1)\n    return order;\n  if (axis === \"xy\") {\n    const { layout: layout2 } = order[index];\n    const center = {\n      x: mixNumber(layout2.x.min, layout2.x.max, 0.5) + offset.x,\n      y: mixNumber(layout2.y.min, layout2.y.max, 0.5) + offset.y\n    };\n    const lines = getLines(order);\n    const sourceLine = lines.find((line) => line.items.includes(order[index]));\n    const targetLine = lines.reduce((closest, line) => distanceToLine(center.y, line) < distanceToLine(center.y, closest) ? line : closest);\n    if (targetLine !== sourceLine) {\n      return moveToLine(order, index, center.x, targetLine, direction);\n    }\n    const currentDistance = distanceToBox(center, layout2);\n    let target = -1;\n    let targetDistance = currentDistance;\n    order.forEach((item2, targetIndex) => {\n      if (targetIndex === index)\n        return;\n      const distance2 = distanceToBox(center, item2.layout);\n      if (distance2 < targetDistance) {\n        target = targetIndex;\n        targetDistance = distance2;\n      }\n    });\n    return target === -1 ? order : moveItem(order, index, index + Math.sign(target - index));\n  }\n  if (!velocity[axis])\n    return order;\n  const nextOffset = velocity[axis] > 0 ? 1 : -1;\n  const nextItem = order[index + nextOffset];\n  if (!nextItem)\n    return order;\n  const item = order[index];\n  const itemLayout = item.layout[axis];\n  const nextLayout = nextItem.layout[axis];\n  const nextItemCenter = mixNumber(nextLayout.min, nextLayout.max, 0.5);\n  if (nextOffset === 1 && itemLayout.max + offset[axis] > nextItemCenter || nextOffset === -1 && itemLayout.min + offset[axis] < nextItemCenter) {\n    return moveItem(order, index, index + nextOffset);\n  }\n  return order;\n}\nfunction getLines(order) {\n  const lines = [];\n  order.forEach((item) => {\n    const { min, max } = item.layout.y;\n    const line = lines[lines.length - 1];\n    if (!line || min >= line.max || max <= line.min) {\n      lines.push({ items: [item], min, max });\n    } else {\n      line.items.push(item);\n      line.min = Math.min(line.min, min);\n      line.max = Math.max(line.max, max);\n    }\n  });\n  return lines;\n}\nfunction distanceToLine(y, line) {\n  return y < line.min ? line.min - y : y > line.max ? y - line.max : 0;\n}\nfunction moveToLine(order, index, x, line, direction) {\n  const remaining = order.filter((_, itemIndex) => itemIndex !== index);\n  const before = line.items.find((item) => {\n    const center = mixNumber(item.layout.x.min, item.layout.x.max, 0.5);\n    return direction === \"ltr\" ? x < center : x > center;\n  });\n  const targetIndex = before ? remaining.indexOf(before) : remaining.indexOf(line.items[line.items.length - 1]) + 1;\n  const nextOrder = [...remaining];\n  nextOrder.splice(targetIndex, 0, order[index]);\n  return nextOrder.every((item, itemIndex) => item === order[itemIndex]) ? order : nextOrder;\n}\nfunction distanceToBox(point, box) {\n  const x = Math.max(box.x.min - point.x, 0, point.x - box.x.max);\n  const y = Math.max(box.y.min - point.y, 0, point.y - box.y.max);\n  return x * x + y * y;\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/utils/detect-axis.mjs\nvar isSeparated = (a, b) => a.max <= b.min || b.max <= a.min;\nfunction detectAxis(layouts) {\n  let x = false;\n  let y = false;\n  for (let i = 0; i < layouts.length; i++) {\n    for (let j = i + 1; j < layouts.length; j++) {\n      x || (x = isSeparated(layouts[i].x, layouts[j].x));\n      y || (y = isSeparated(layouts[i].y, layouts[j].y));\n      if (x && y)\n        return \"xy\";\n    }\n  }\n  return x ? \"x\" : \"y\";\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/Group.mjs\nfunction ReorderGroupComponent({ children, as = \"ul\", axis: axisOverride, onReorder, values, onPointerDownCapture, onClickCapture, ...props }, externalRef) {\n  const Component3 = useConstant(() => motion[as]);\n  const itemLayouts = useRef14(/* @__PURE__ */ new Map());\n  const [detectedAxis, setDetectedAxis] = useState10(\"y\");\n  const isReordering = useRef14(false);\n  const hasReordered = useRef14(false);\n  const groupRef = useRef14(null);\n  const axis = axisOverride || detectedAxis;\n  invariant(Boolean(values), \"Reorder.Group must be provided a values prop\", \"reorder-values\");\n  const valuesSet = new Set(values);\n  itemLayouts.current.forEach((_, value) => {\n    if (!valuesSet.has(value))\n      itemLayouts.current.delete(value);\n  });\n  const context = {\n    axis,\n    groupRef,\n    hasReordered,\n    registerItem: (value, layout2) => {\n      itemLayouts.current.set(value, layout2);\n      if (!axisOverride) {\n        const nextAxis = detectAxis(values.flatMap((itemValue) => {\n          const itemLayout = itemLayouts.current.get(itemValue);\n          return itemLayout ? [itemLayout] : [];\n        }));\n        if (nextAxis !== detectedAxis)\n          setDetectedAxis(nextAxis);\n      }\n    },\n    updateOrder: (item, offset, velocity) => {\n      if (isReordering.current)\n        return;\n      const order = values.flatMap((value) => {\n        const layout2 = itemLayouts.current.get(value);\n        return layout2 ? [{ value, layout: layout2 }] : [];\n      });\n      const direction = groupRef.current?.ownerDocument.defaultView?.getComputedStyle(groupRef.current).direction === \"rtl\" ? \"rtl\" : \"ltr\";\n      const newOrder = checkReorder(order, item, offset, velocity, axis, direction);\n      if (order !== newOrder) {\n        isReordering.current = true;\n        hasReordered.current = true;\n        const newValues = [...values];\n        const measuredIndexes = order.map(({ value }) => values.indexOf(value));\n        newOrder.forEach(({ value }, index) => {\n          newValues[measuredIndexes[index]] = value;\n        });\n        onReorder(newValues);\n      }\n    }\n  };\n  useEffect15(() => {\n    isReordering.current = false;\n  }, [values]);\n  const setRef2 = (element) => {\n    groupRef.current = element;\n    if (typeof externalRef === \"function\") {\n      externalRef(element);\n    } else if (externalRef) {\n      externalRef.current = element;\n    }\n  };\n  const groupStyle = {\n    overflowAnchor: \"none\",\n    ...props.style\n  };\n  return jsx10(Component3, {\n    ...props,\n    style: groupStyle,\n    ref: setRef2,\n    /**\n     * A release that ends a reordering drag isn't a click. Browsers\n     * only click an element holding both the press and release\n     * targets, so whether it was clicked depended on which nodes\n     * React moved, and so on drag direction (#2682): Chrome drops\n     * the click if the dragged item's node moved, others may click\n     * an ancestor. Swallow it here, above every item, either way.\n     * The flag is cleared when the drag ends, a frame after the\n     * release's click, or on the next press. Clicks with no\n     * pointer press behind them (detail 0, e.g. keyboard) are left\n     * alone.\n     */\n    onPointerDownCapture: (event) => {\n      hasReordered.current = false;\n      onPointerDownCapture?.(event);\n    },\n    onClickCapture: (event) => {\n      if (hasReordered.current && event.detail) {\n        hasReordered.current = false;\n        event.stopPropagation();\n        event.preventDefault();\n      }\n      onClickCapture?.(event);\n    },\n    ignoreStrict: true,\n    children: jsx10(ReorderContext.Provider, { value: context, children })\n  });\n}\nvar ReorderGroup = /* @__PURE__ */ forwardRef2(ReorderGroupComponent);\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/Item.mjs\nimport { jsx as jsx11 } from \"react/jsx-runtime\";\nimport { forwardRef as forwardRef3, useContext as useContext18 } from \"react\";\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.mjs\nvar threshold = 50;\nvar maxSpeed = 25;\nvar overflowStyles2 = /* @__PURE__ */ new Set([\"auto\", \"scroll\"]);\nvar initialScrollLimits = /* @__PURE__ */ new WeakMap();\nvar activeScrollEdge = /* @__PURE__ */ new WeakMap();\nvar currentGroupElement = null;\nfunction resetAutoScrollState() {\n  if (currentGroupElement) {\n    const scrollableAncestor = findScrollableAncestor(currentGroupElement, \"y\");\n    if (scrollableAncestor) {\n      activeScrollEdge.delete(scrollableAncestor);\n      initialScrollLimits.delete(scrollableAncestor);\n    }\n    const scrollableAncestorX = findScrollableAncestor(currentGroupElement, \"x\");\n    if (scrollableAncestorX && scrollableAncestorX !== scrollableAncestor) {\n      activeScrollEdge.delete(scrollableAncestorX);\n      initialScrollLimits.delete(scrollableAncestorX);\n    }\n    currentGroupElement = null;\n  }\n}\nfunction isScrollableElement(element, axis) {\n  const style2 = getComputedStyle(element);\n  const overflow = axis === \"x\" ? style2.overflowX : style2.overflowY;\n  const isDocumentScroll = element === document.body || element === document.documentElement;\n  return overflowStyles2.has(overflow) || isDocumentScroll;\n}\nfunction findScrollableAncestor(element, axis) {\n  let current2 = element?.parentElement;\n  while (current2) {\n    if (isScrollableElement(current2, axis)) {\n      return current2;\n    }\n    current2 = current2.parentElement;\n  }\n  return null;\n}\nfunction getScrollAmount(pointerPosition, scrollElement, axis) {\n  const rect = scrollElement.getBoundingClientRect();\n  const start2 = axis === \"x\" ? Math.max(0, rect.left) : Math.max(0, rect.top);\n  const end = axis === \"x\" ? Math.min(window.innerWidth, rect.right) : Math.min(window.innerHeight, rect.bottom);\n  const distanceFromStart = pointerPosition - start2;\n  const distanceFromEnd = end - pointerPosition;\n  if (distanceFromStart < threshold) {\n    const intensity = 1 - distanceFromStart / threshold;\n    return { amount: -maxSpeed * intensity * intensity, edge: \"start\" };\n  } else if (distanceFromEnd < threshold) {\n    const intensity = 1 - distanceFromEnd / threshold;\n    return { amount: maxSpeed * intensity * intensity, edge: \"end\" };\n  }\n  return { amount: 0, edge: null };\n}\nfunction autoScrollIfNeeded(groupElement, pointerPosition, axis, velocity) {\n  if (!groupElement)\n    return;\n  currentGroupElement = groupElement;\n  const scrollableAncestor = findScrollableAncestor(groupElement, axis);\n  if (!scrollableAncestor)\n    return;\n  const viewportPointerPosition = pointerPosition - (axis === \"x\" ? window.scrollX : window.scrollY);\n  const { amount: scrollAmount, edge } = getScrollAmount(viewportPointerPosition, scrollableAncestor, axis);\n  if (edge === null) {\n    activeScrollEdge.delete(scrollableAncestor);\n    initialScrollLimits.delete(scrollableAncestor);\n    return;\n  }\n  const currentActiveEdge = activeScrollEdge.get(scrollableAncestor);\n  const isDocumentScroll = scrollableAncestor === document.body || scrollableAncestor === document.documentElement;\n  if (currentActiveEdge !== edge) {\n    const shouldStart = edge === \"start\" && velocity < 0 || edge === \"end\" && velocity > 0;\n    if (!shouldStart)\n      return;\n    activeScrollEdge.set(scrollableAncestor, edge);\n    const maxScroll = axis === \"x\" ? scrollableAncestor.scrollWidth - (isDocumentScroll ? window.innerWidth : scrollableAncestor.clientWidth) : scrollableAncestor.scrollHeight - (isDocumentScroll ? window.innerHeight : scrollableAncestor.clientHeight);\n    initialScrollLimits.set(scrollableAncestor, maxScroll);\n  }\n  if (scrollAmount > 0) {\n    const initialLimit = initialScrollLimits.get(scrollableAncestor);\n    const currentScroll = axis === \"x\" ? isDocumentScroll ? window.scrollX : scrollableAncestor.scrollLeft : isDocumentScroll ? window.scrollY : scrollableAncestor.scrollTop;\n    if (currentScroll >= initialLimit)\n      return;\n  }\n  if (axis === \"x\") {\n    if (isDocumentScroll) {\n      window.scrollBy({ left: scrollAmount });\n    } else {\n      scrollableAncestor.scrollLeft += scrollAmount;\n    }\n  } else {\n    if (isDocumentScroll) {\n      window.scrollBy({ top: scrollAmount });\n    } else {\n      scrollableAncestor.scrollTop += scrollAmount;\n    }\n  }\n}\n\n// ../../../node_modules/framer-motion/dist/es/components/Reorder/Item.mjs\nfunction useDefaultMotionValue(value, defaultValue = 0) {\n  return isMotionValue(value) ? value : useMotionValue(defaultValue);\n}\nfunction ReorderItemComponent({ children, style: style2 = {}, value, as = \"li\", onDrag, onDragEnd, layout: layout2 = true, ...props }, externalRef) {\n  const Component3 = useConstant(() => motion[as]);\n  const context = useContext18(ReorderContext);\n  const point = {\n    x: useDefaultMotionValue(style2.x),\n    y: useDefaultMotionValue(style2.y)\n  };\n  const zIndex = useTransform([point.x, point.y], ([latestX, latestY]) => latestX || latestY ? 1 : \"unset\");\n  invariant(Boolean(context), \"Reorder.Item must be a child of Reorder.Group\", \"reorder-item-child\");\n  const { axis, registerItem, updateOrder, groupRef, hasReordered } = context;\n  const dragAxis = axis === \"xy\" ? true : axis;\n  return jsx11(Component3, { drag: dragAxis, ...props, dragSnapToOrigin: true, style: { ...style2, x: point.x, y: point.y, zIndex }, layout: layout2, onDrag: (event, gesturePoint) => {\n    const { velocity, point: pointerPoint } = gesturePoint;\n    const offset = { x: point.x.get(), y: point.y.get() };\n    updateOrder(value, offset, velocity);\n    const scrollAxis = axis === \"xy\" ? Math.abs(velocity.x) > Math.abs(velocity.y) ? \"x\" : \"y\" : axis;\n    autoScrollIfNeeded(groupRef.current, pointerPoint[scrollAxis], scrollAxis, velocity[scrollAxis]);\n    onDrag && onDrag(event, gesturePoint);\n  }, onDragEnd: (event, gesturePoint) => {\n    hasReordered.current = false;\n    resetAutoScrollState();\n    onDragEnd && onDragEnd(event, gesturePoint);\n  }, onLayoutMeasure: (measured) => {\n    registerItem(value, measured);\n  }, ref: externalRef, ignoreStrict: true, children });\n}\nvar ReorderItem = /* @__PURE__ */ forwardRef3(ReorderItemComponent);\n\nexport {\n  __commonJS,\n  __using,\n  __callDispose,\n  LayoutGroupContext,\n  isBrowser,\n  useIsomorphicLayoutEffect,\n  PresenceContext,\n  addUniqueItem,\n  removeItem,\n  moveItem,\n  clamp,\n  warning,\n  invariant,\n  MotionGlobalConfig,\n  isNumericalString,\n  isObject,\n  isZeroValueString,\n  memo,\n  noop,\n  pipe,\n  progress,\n  SubscriptionManager,\n  secondsToMilliseconds,\n  millisecondsToSeconds,\n  velocityPerSecond,\n  hasWarned,\n  warnOnce,\n  wrap,\n  cubicBezier,\n  mirrorEasing,\n  reverseEasing,\n  backOut,\n  backIn,\n  backInOut,\n  anticipate,\n  circIn,\n  circOut,\n  circInOut,\n  easeIn,\n  easeOut,\n  easeInOut,\n  steps,\n  isEasingArray,\n  getEasingForSegment,\n  isBezierDefinition,\n  easingDefinitionToFunction,\n  frameData,\n  time,\n  isCSSVariableName,\n  isCSSVariableToken,\n  containsCSSVariable,\n  number,\n  alpha,\n  scale,\n  rgbUnit,\n  rgba,\n  hex,\n  degrees,\n  percent,\n  px,\n  vh,\n  vw,\n  progressPercentage,\n  hsla,\n  color,\n  hasComplexValues,\n  analyseComplexValue,\n  complex,\n  hslaToRgba,\n  mixImmediate,\n  mixNumber,\n  mixLinearColor,\n  mixColor,\n  invisibleValues,\n  mixVisibility,\n  getMixer,\n  mixArray,\n  mixObject,\n  mixComplex,\n  mix,\n  createRenderBatcher,\n  frame,\n  cancelFrame,\n  frameSteps,\n  generateLinearEasing,\n  maxGeneratorDuration,\n  calcGeneratorDuration,\n  createGeneratorEasing,\n  spring,\n  inertia,\n  interpolate,\n  fillOffset,\n  defaultOffset,\n  convertOffsetToTimes,\n  defaultEasing,\n  keyframes,\n  getFinalKeyframe,\n  round,\n  JSAnimation,\n  animateValue,\n  transformValueTypes,\n  numberValueTypes,\n  defaultValueTypes,\n  getDefaultValueType,\n  getAnimatableNone2 as getAnimatableNone,\n  fillWildcards,\n  defaultTransformValue,\n  parseValueFromTransform,\n  readTransformValue,\n  transformPropOrder,\n  transformProps,\n  flushKeyframeResolvers,\n  KeyframeResolver,\n  setStyle,\n  supportsFlags,\n  supportsScrollTimeline,\n  supportsViewTimeline,\n  supportsLinearEasing,\n  cubicBezierAsString,\n  supportedWaapiEasing,\n  mapEasingToNativeEasing,\n  startWaapiAnimation,\n  isGenerator,\n  applyGeneratorOptions,\n  NativeAnimation,\n  sampleDelta,\n  NativeAnimationExtended,\n  makeAnimationInstant,\n  acceleratedValues,\n  supportsWaapi,\n  supportsBrowserAnimation,\n  getValueAsType,\n  buildTransform,\n  AsyncMotionValueAnimation,\n  GroupAnimation,\n  GroupAnimationWithThen,\n  NativeAnimationWrapper,\n  animationMapKey,\n  getAnimationMap,\n  calcChildStagger,\n  collectMotionValues,\n  MotionValue,\n  motionValue,\n  resolveTransition,\n  getValueTransition,\n  getDefaultTransition,\n  isTransitionDefined,\n  animateMotionValue,\n  arc,\n  parseCSSVariable,\n  getVariableValue,\n  resolveVariantFromProps,\n  resolveVariant,\n  positionalKeys,\n  isKeyframesTarget,\n  setTarget,\n  isMotionValue,\n  isWillChangeMotionValue,\n  addValueToWillChange,\n  camelToDash,\n  optimizedAppearDataId,\n  optimizedAppearDataAttribute,\n  getOptimisedAppearId,\n  animateTarget,\n  animateVariant,\n  animateVisualElement,\n  testValueType,\n  dimensionValueTypes,\n  findDimensionValueType,\n  DOMKeyframesResolver,\n  applyPxDefaults,\n  isWaapiSupportedEasing,\n  supportsPartialKeyframes,\n  addEffect,\n  removeEffect,\n  findEffect,\n  animateValues,\n  animateEffectSubject,\n  isHTMLElement,\n  isSVGElement,\n  resolveElements,\n  MotionValueState,\n  createEffect,\n  originProps,\n  addStyleValue,\n  readStyleValue,\n  styleSubjectEffect,\n  styleEffect,\n  buildHTMLStyles,\n  buildSVGPath,\n  buildSVGAttrs,\n  addAttrValue,\n  attrEffect,\n  addSVGValue,\n  readSVGValue,\n  svgSubjectEffect,\n  svgEffect,\n  convertBoundingBoxToBox,\n  convertBoxToBoundingBox,\n  transformBoxPoints,\n  hasScale,\n  hasTransform,\n  has2DTranslate,\n  scalePoint,\n  applyPointDelta,\n  applyAxisDelta,\n  applyBoxDelta,\n  applyTreeDeltas,\n  translateAxis,\n  transformAxis,\n  transformBox,\n  measureViewportBox,\n  measurePageBox,\n  animateElement,\n  handOffElementState,\n  propEffect,\n  microtask,\n  cancelMicrotask,\n  isDragging,\n  isDragActive,\n  setDragLock,\n  hover,\n  isNodeOrChild,\n  isPrimaryPointer,\n  isElementKeyboardAccessible,\n  isElementTextInput,\n  press,\n  getComputedStyle2 as getComputedStyle,\n  resize,\n  statsBuffer,\n  recordStats,\n  isSVGSVGElement,\n  getOriginIndex,\n  stagger,\n  transform,\n  followValue,\n  attachFollow,\n  transformValue,\n  mapValue,\n  springValue,\n  attachSpring,\n  findValueType,\n  getViewAnimationLayerInfo,\n  getViewAnimations,\n  ViewTransitionBuilder,\n  animateView,\n  createAxisDelta,\n  createDelta,\n  createAxis,\n  createBox,\n  visualElementStore,\n  isAnimationControls,\n  isVariantLabel,\n  variantPriorityOrder,\n  variantProps,\n  isControllingVariants,\n  isVariantNode,\n  updateMotionValuesFromProps,\n  prefersReducedMotion,\n  hasReducedMotionListener,\n  initPrefersReducedMotion,\n  setFeatureDefinitions,\n  getFeatureDefinitions,\n  VisualElement,\n  DOMVisualElement,\n  Feature,\n  renderHTML,\n  scaleCorrectors,\n  addScaleCorrector,\n  isForcedMotionValue,\n  scrapeMotionValuesFromProps,\n  HTMLVisualElement,\n  ObjectVisualElement,\n  camelCaseAttributes,\n  isSVGTag,\n  renderSVG,\n  scrapeMotionValuesFromProps2,\n  SVGVisualElement,\n  createAnimationState,\n  checkVariantsDidChange,\n  getVariantContext,\n  copyAxisInto,\n  copyBoxInto,\n  copyAxisDeltaInto,\n  calcLength,\n  isNear,\n  calcAxisDelta,\n  calcBoxDelta,\n  calcRelativeAxis,\n  calcRelativeBox,\n  calcRelativeAxisPosition,\n  calcRelativePosition,\n  removePointDelta,\n  removeAxisDelta,\n  removeAxisTransforms,\n  removeBoxTransforms,\n  isDeltaZero,\n  axisEquals,\n  boxEquals,\n  axisEqualsRounded,\n  boxEqualsRounded,\n  aspectRatio,\n  axisDeltaEquals,\n  eachAxis,\n  pixelsToPercent,\n  correctBorderRadius,\n  correctBoxShadow,\n  buildProjectionTransform,\n  mixValues,\n  animateSingleValue,\n  addDomEvent,\n  compareByDepth,\n  FlatTree,\n  delay,\n  delayInSeconds,\n  resolveMotionValue,\n  NodeStack,\n  globalProjectionState,\n  createProjectionNode,\n  propagateDirtyNodes,\n  cleanDirtyNodes,\n  DocumentProjectionNode,\n  nodeGroup,\n  rootProjectionNode,\n  HTMLProjectionNode,\n  LayoutAnimationBuilder,\n  parseAnimateLayoutArgs,\n  animateLayout,\n  sync,\n  cancelSync,\n  MotionConfigContext,\n  useComposedRefs,\n  PopChild,\n  PresenceChild,\n  usePresence,\n  useIsPresent,\n  AnimatePresence,\n  DeprecatedLayoutGroupContext,\n  useForceUpdate,\n  LayoutGroup,\n  LazyMotion,\n  MotionConfig,\n  MotionContext,\n  isValidMotionProp,\n  filterProps,\n  makeUseVisualState,\n  SwitchLayoutGroupContext,\n  m,\n  animations,\n  addPointerInfo,\n  addPointerEvent,\n  distance,\n  distance2D,\n  motion,\n  useUnmountEffect,\n  domAnimation,\n  domMax,\n  domMin,\n  useMotionValueEvent,\n  scrollInfo,\n  scroll,\n  useScroll,\n  useElementScroll,\n  useViewportScroll,\n  useMotionValue,\n  useMotionTemplate,\n  useTransform,\n  useFollowValue,\n  useSpring,\n  useAnimationFrame,\n  useTime,\n  useVelocity,\n  WillChangeMotionValue,\n  useWillChange,\n  useReducedMotion,\n  useReducedMotionConfig,\n  animationControls,\n  createScopedAnimate,\n  animate,\n  useAnimate,\n  animateMini,\n  useAnimateMini,\n  useAnimationControls,\n  useAnimation,\n  usePresenceData,\n  useDomEvent,\n  DragControls,\n  useDragControls,\n  isMotionComponent,\n  unwrapMotionComponent,\n  useInstantLayoutTransition,\n  useResetProjection,\n  useCycle,\n  inView,\n  useInView,\n  useInstantTransition,\n  disableInstantTransitions,\n  usePageInView,\n  transformViewBoxPoint,\n  correctParentTransform,\n  startOptimizedAppearAnimation,\n  useAnimatedState,\n  AnimateSharedLayout,\n  useInvertedScale,\n  namespace_exports\n};\n//# sourceMappingURL=chunk-JD57JJMT.mjs.map\n","import {\n  AnimatePresence,\n  AnimateSharedLayout,\n  AsyncMotionValueAnimation,\n  DOMKeyframesResolver,\n  DOMVisualElement,\n  DeprecatedLayoutGroupContext,\n  DocumentProjectionNode,\n  DragControls,\n  Feature,\n  FlatTree,\n  GroupAnimation,\n  GroupAnimationWithThen,\n  HTMLProjectionNode,\n  HTMLVisualElement,\n  JSAnimation,\n  KeyframeResolver,\n  LayoutAnimationBuilder,\n  LayoutGroup,\n  LayoutGroupContext,\n  LazyMotion,\n  MotionConfig,\n  MotionConfigContext,\n  MotionContext,\n  MotionGlobalConfig,\n  MotionValue,\n  MotionValueState,\n  NativeAnimation,\n  NativeAnimationExtended,\n  NativeAnimationWrapper,\n  NodeStack,\n  ObjectVisualElement,\n  PopChild,\n  PresenceChild,\n  PresenceContext,\n  SVGVisualElement,\n  SubscriptionManager,\n  SwitchLayoutGroupContext,\n  ViewTransitionBuilder,\n  VisualElement,\n  WillChangeMotionValue,\n  acceleratedValues,\n  addAttrValue,\n  addDomEvent,\n  addEffect,\n  addPointerEvent,\n  addPointerInfo,\n  addSVGValue,\n  addScaleCorrector,\n  addStyleValue,\n  addUniqueItem,\n  addValueToWillChange,\n  alpha,\n  analyseComplexValue,\n  animate,\n  animateEffectSubject,\n  animateElement,\n  animateLayout,\n  animateMini,\n  animateMotionValue,\n  animateSingleValue,\n  animateTarget,\n  animateValue,\n  animateValues,\n  animateVariant,\n  animateView,\n  animateVisualElement,\n  animationControls,\n  animationMapKey,\n  animations,\n  anticipate,\n  applyAxisDelta,\n  applyBoxDelta,\n  applyGeneratorOptions,\n  applyPointDelta,\n  applyPxDefaults,\n  applyTreeDeltas,\n  arc,\n  aspectRatio,\n  attachFollow,\n  attachSpring,\n  attrEffect,\n  axisDeltaEquals,\n  axisEquals,\n  axisEqualsRounded,\n  backIn,\n  backInOut,\n  backOut,\n  boxEquals,\n  boxEqualsRounded,\n  buildHTMLStyles,\n  buildProjectionTransform,\n  buildSVGAttrs,\n  buildSVGPath,\n  buildTransform,\n  calcAxisDelta,\n  calcBoxDelta,\n  calcChildStagger,\n  calcGeneratorDuration,\n  calcLength,\n  calcRelativeAxis,\n  calcRelativeAxisPosition,\n  calcRelativeBox,\n  calcRelativePosition,\n  camelCaseAttributes,\n  camelToDash,\n  cancelFrame,\n  cancelMicrotask,\n  cancelSync,\n  checkVariantsDidChange,\n  circIn,\n  circInOut,\n  circOut,\n  clamp,\n  cleanDirtyNodes,\n  collectMotionValues,\n  color,\n  compareByDepth,\n  complex,\n  containsCSSVariable,\n  convertBoundingBoxToBox,\n  convertBoxToBoundingBox,\n  convertOffsetToTimes,\n  copyAxisDeltaInto,\n  copyAxisInto,\n  copyBoxInto,\n  correctBorderRadius,\n  correctBoxShadow,\n  correctParentTransform,\n  createAnimationState,\n  createAxis,\n  createAxisDelta,\n  createBox,\n  createDelta,\n  createEffect,\n  createGeneratorEasing,\n  createProjectionNode,\n  createRenderBatcher,\n  createScopedAnimate,\n  cubicBezier,\n  cubicBezierAsString,\n  defaultEasing,\n  defaultOffset,\n  defaultTransformValue,\n  defaultValueTypes,\n  degrees,\n  delay,\n  delayInSeconds,\n  dimensionValueTypes,\n  disableInstantTransitions,\n  distance,\n  distance2D,\n  domAnimation,\n  domMax,\n  domMin,\n  eachAxis,\n  easeIn,\n  easeInOut,\n  easeOut,\n  easingDefinitionToFunction,\n  fillOffset,\n  fillWildcards,\n  filterProps,\n  findDimensionValueType,\n  findEffect,\n  findValueType,\n  flushKeyframeResolvers,\n  followValue,\n  frame,\n  frameData,\n  frameSteps,\n  generateLinearEasing,\n  getAnimatableNone,\n  getAnimationMap,\n  getComputedStyle,\n  getDefaultTransition,\n  getDefaultValueType,\n  getEasingForSegment,\n  getFeatureDefinitions,\n  getFinalKeyframe,\n  getMixer,\n  getOptimisedAppearId,\n  getOriginIndex,\n  getValueAsType,\n  getValueTransition,\n  getVariableValue,\n  getVariantContext,\n  getViewAnimationLayerInfo,\n  getViewAnimations,\n  globalProjectionState,\n  handOffElementState,\n  has2DTranslate,\n  hasComplexValues,\n  hasReducedMotionListener,\n  hasScale,\n  hasTransform,\n  hasWarned,\n  hex,\n  hover,\n  hsla,\n  hslaToRgba,\n  inView,\n  inertia,\n  initPrefersReducedMotion,\n  interpolate,\n  invariant,\n  invisibleValues,\n  isAnimationControls,\n  isBezierDefinition,\n  isBrowser,\n  isCSSVariableName,\n  isCSSVariableToken,\n  isControllingVariants,\n  isDeltaZero,\n  isDragActive,\n  isDragging,\n  isEasingArray,\n  isElementKeyboardAccessible,\n  isElementTextInput,\n  isForcedMotionValue,\n  isGenerator,\n  isHTMLElement,\n  isKeyframesTarget,\n  isMotionComponent,\n  isMotionValue,\n  isNear,\n  isNodeOrChild,\n  isNumericalString,\n  isObject,\n  isPrimaryPointer,\n  isSVGElement,\n  isSVGSVGElement,\n  isSVGTag,\n  isTransitionDefined,\n  isValidMotionProp,\n  isVariantLabel,\n  isVariantNode,\n  isWaapiSupportedEasing,\n  isWillChangeMotionValue,\n  isZeroValueString,\n  keyframes,\n  m,\n  makeAnimationInstant,\n  makeUseVisualState,\n  mapEasingToNativeEasing,\n  mapValue,\n  maxGeneratorDuration,\n  measurePageBox,\n  measureViewportBox,\n  memo,\n  microtask,\n  millisecondsToSeconds,\n  mirrorEasing,\n  mix,\n  mixArray,\n  mixColor,\n  mixComplex,\n  mixImmediate,\n  mixLinearColor,\n  mixNumber,\n  mixObject,\n  mixValues,\n  mixVisibility,\n  motion,\n  motionValue,\n  moveItem,\n  namespace_exports,\n  nodeGroup,\n  noop,\n  number,\n  numberValueTypes,\n  optimizedAppearDataAttribute,\n  optimizedAppearDataId,\n  originProps,\n  parseAnimateLayoutArgs,\n  parseCSSVariable,\n  parseValueFromTransform,\n  percent,\n  pipe,\n  pixelsToPercent,\n  positionalKeys,\n  prefersReducedMotion,\n  press,\n  progress,\n  progressPercentage,\n  propEffect,\n  propagateDirtyNodes,\n  px,\n  readSVGValue,\n  readStyleValue,\n  readTransformValue,\n  recordStats,\n  removeAxisDelta,\n  removeAxisTransforms,\n  removeBoxTransforms,\n  removeEffect,\n  removeItem,\n  removePointDelta,\n  renderHTML,\n  renderSVG,\n  resize,\n  resolveElements,\n  resolveMotionValue,\n  resolveTransition,\n  resolveVariant,\n  resolveVariantFromProps,\n  reverseEasing,\n  rgbUnit,\n  rgba,\n  rootProjectionNode,\n  round,\n  sampleDelta,\n  scale,\n  scaleCorrectors,\n  scalePoint,\n  scrapeMotionValuesFromProps,\n  scrapeMotionValuesFromProps2,\n  scroll,\n  scrollInfo,\n  secondsToMilliseconds,\n  setDragLock,\n  setFeatureDefinitions,\n  setStyle,\n  setTarget,\n  spring,\n  springValue,\n  stagger,\n  startOptimizedAppearAnimation,\n  startWaapiAnimation,\n  statsBuffer,\n  steps,\n  styleEffect,\n  styleSubjectEffect,\n  supportedWaapiEasing,\n  supportsBrowserAnimation,\n  supportsFlags,\n  supportsLinearEasing,\n  supportsPartialKeyframes,\n  supportsScrollTimeline,\n  supportsViewTimeline,\n  supportsWaapi,\n  svgEffect,\n  svgSubjectEffect,\n  sync,\n  testValueType,\n  time,\n  transform,\n  transformAxis,\n  transformBox,\n  transformBoxPoints,\n  transformPropOrder,\n  transformProps,\n  transformValue,\n  transformValueTypes,\n  transformViewBoxPoint,\n  translateAxis,\n  unwrapMotionComponent,\n  updateMotionValuesFromProps,\n  useAnimate,\n  useAnimateMini,\n  useAnimatedState,\n  useAnimation,\n  useAnimationControls,\n  useAnimationFrame,\n  useComposedRefs,\n  useCycle,\n  useDomEvent,\n  useDragControls,\n  useElementScroll,\n  useFollowValue,\n  useForceUpdate,\n  useInView,\n  useInstantLayoutTransition,\n  useInstantTransition,\n  useInvertedScale,\n  useIsPresent,\n  useIsomorphicLayoutEffect,\n  useMotionTemplate,\n  useMotionValue,\n  useMotionValueEvent,\n  usePageInView,\n  usePresence,\n  usePresenceData,\n  useReducedMotion,\n  useReducedMotionConfig,\n  useResetProjection,\n  useScroll,\n  useSpring,\n  useTime,\n  useTransform,\n  useUnmountEffect,\n  useVelocity,\n  useViewportScroll,\n  useWillChange,\n  variantPriorityOrder,\n  variantProps,\n  velocityPerSecond,\n  vh,\n  visualElementStore,\n  vw,\n  warnOnce,\n  warning,\n  wrap\n} from \"./chunk-JD57JJMT.mjs\";\nexport {\n  AnimatePresence,\n  AnimateSharedLayout,\n  AsyncMotionValueAnimation,\n  DOMKeyframesResolver,\n  DOMVisualElement,\n  DeprecatedLayoutGroupContext,\n  DocumentProjectionNode,\n  DragControls,\n  Feature,\n  FlatTree,\n  GroupAnimation,\n  GroupAnimationWithThen,\n  HTMLProjectionNode,\n  HTMLVisualElement,\n  JSAnimation,\n  KeyframeResolver,\n  LayoutAnimationBuilder,\n  LayoutGroup,\n  LayoutGroupContext,\n  LazyMotion,\n  MotionConfig,\n  MotionConfigContext,\n  MotionContext,\n  MotionGlobalConfig,\n  MotionValue,\n  MotionValueState,\n  NativeAnimation,\n  NativeAnimationExtended,\n  NativeAnimationWrapper,\n  NodeStack,\n  ObjectVisualElement,\n  PopChild,\n  PresenceChild,\n  PresenceContext,\n  namespace_exports as Reorder,\n  SVGVisualElement,\n  SubscriptionManager,\n  SwitchLayoutGroupContext,\n  ViewTransitionBuilder,\n  VisualElement,\n  WillChangeMotionValue,\n  acceleratedValues,\n  addAttrValue,\n  addDomEvent,\n  addEffect,\n  addPointerEvent,\n  addPointerInfo,\n  addSVGValue,\n  addScaleCorrector,\n  addStyleValue,\n  addUniqueItem,\n  addValueToWillChange,\n  alpha,\n  analyseComplexValue,\n  animate,\n  animateEffectSubject,\n  animateElement,\n  animateLayout,\n  animateMini,\n  animateMotionValue,\n  animateSingleValue,\n  animateTarget,\n  animateValue,\n  animateValues,\n  animateVariant,\n  animateView,\n  animateVisualElement,\n  animationControls,\n  animationMapKey,\n  animations,\n  anticipate,\n  applyAxisDelta,\n  applyBoxDelta,\n  applyGeneratorOptions,\n  applyPointDelta,\n  applyPxDefaults,\n  applyTreeDeltas,\n  arc,\n  aspectRatio,\n  attachFollow,\n  attachSpring,\n  attrEffect,\n  axisDeltaEquals,\n  axisEquals,\n  axisEqualsRounded,\n  backIn,\n  backInOut,\n  backOut,\n  boxEquals,\n  boxEqualsRounded,\n  buildHTMLStyles,\n  buildProjectionTransform,\n  buildSVGAttrs,\n  buildSVGPath,\n  buildTransform,\n  calcAxisDelta,\n  calcBoxDelta,\n  calcChildStagger,\n  calcGeneratorDuration,\n  calcLength,\n  calcRelativeAxis,\n  calcRelativeAxisPosition,\n  calcRelativeBox,\n  calcRelativePosition,\n  camelCaseAttributes,\n  camelToDash,\n  cancelFrame,\n  cancelMicrotask,\n  cancelSync,\n  checkVariantsDidChange,\n  circIn,\n  circInOut,\n  circOut,\n  clamp,\n  cleanDirtyNodes,\n  collectMotionValues,\n  color,\n  compareByDepth,\n  complex,\n  containsCSSVariable,\n  convertBoundingBoxToBox,\n  convertBoxToBoundingBox,\n  convertOffsetToTimes,\n  copyAxisDeltaInto,\n  copyAxisInto,\n  copyBoxInto,\n  correctBorderRadius,\n  correctBoxShadow,\n  correctParentTransform,\n  createAnimationState,\n  createAxis,\n  createAxisDelta,\n  createBox,\n  createDelta,\n  createEffect,\n  createGeneratorEasing,\n  createProjectionNode,\n  createRenderBatcher,\n  createScopedAnimate,\n  cubicBezier,\n  cubicBezierAsString,\n  defaultEasing,\n  defaultOffset,\n  defaultTransformValue,\n  defaultValueTypes,\n  degrees,\n  delay,\n  delayInSeconds,\n  dimensionValueTypes,\n  disableInstantTransitions,\n  distance,\n  distance2D,\n  domAnimation,\n  domMax,\n  domMin,\n  eachAxis,\n  easeIn,\n  easeInOut,\n  easeOut,\n  easingDefinitionToFunction,\n  fillOffset,\n  fillWildcards,\n  filterProps,\n  findDimensionValueType,\n  findEffect,\n  findValueType,\n  flushKeyframeResolvers,\n  followValue,\n  frame,\n  frameData,\n  frameSteps,\n  generateLinearEasing,\n  getAnimatableNone,\n  getAnimationMap,\n  getComputedStyle,\n  getDefaultTransition,\n  getDefaultValueType,\n  getEasingForSegment,\n  getFeatureDefinitions,\n  getFinalKeyframe,\n  getMixer,\n  getOptimisedAppearId,\n  getOriginIndex,\n  getValueAsType,\n  getValueTransition,\n  getVariableValue,\n  getVariantContext,\n  getViewAnimationLayerInfo,\n  getViewAnimations,\n  globalProjectionState,\n  handOffElementState,\n  has2DTranslate,\n  hasComplexValues,\n  hasReducedMotionListener,\n  hasScale,\n  hasTransform,\n  hasWarned,\n  hex,\n  hover,\n  hsla,\n  hslaToRgba,\n  inView,\n  inertia,\n  initPrefersReducedMotion,\n  interpolate,\n  invariant,\n  invisibleValues,\n  isAnimationControls,\n  isBezierDefinition,\n  isBrowser,\n  isCSSVariableName,\n  isCSSVariableToken,\n  isControllingVariants,\n  isDeltaZero,\n  isDragActive,\n  isDragging,\n  isEasingArray,\n  isElementKeyboardAccessible,\n  isElementTextInput,\n  isForcedMotionValue,\n  isGenerator,\n  isHTMLElement,\n  isKeyframesTarget,\n  isMotionComponent,\n  isMotionValue,\n  isNear,\n  isNodeOrChild,\n  isNumericalString,\n  isObject,\n  isPrimaryPointer,\n  isSVGElement,\n  isSVGSVGElement,\n  isSVGTag,\n  isTransitionDefined,\n  isValidMotionProp,\n  isVariantLabel,\n  isVariantNode,\n  isWaapiSupportedEasing,\n  isWillChangeMotionValue,\n  isZeroValueString,\n  keyframes,\n  m,\n  makeAnimationInstant,\n  makeUseVisualState,\n  mapEasingToNativeEasing,\n  mapValue,\n  maxGeneratorDuration,\n  measurePageBox,\n  measureViewportBox,\n  memo,\n  microtask,\n  millisecondsToSeconds,\n  mirrorEasing,\n  mix,\n  mixArray,\n  mixColor,\n  mixComplex,\n  mixImmediate,\n  mixLinearColor,\n  mixNumber,\n  mixObject,\n  mixValues,\n  mixVisibility,\n  motion,\n  motionValue,\n  moveItem,\n  nodeGroup,\n  noop,\n  number,\n  numberValueTypes,\n  optimizedAppearDataAttribute,\n  optimizedAppearDataId,\n  originProps,\n  parseAnimateLayoutArgs,\n  parseCSSVariable,\n  parseValueFromTransform,\n  percent,\n  pipe,\n  pixelsToPercent,\n  positionalKeys,\n  prefersReducedMotion,\n  press,\n  progress,\n  progressPercentage,\n  propEffect,\n  propagateDirtyNodes,\n  px,\n  readSVGValue,\n  readStyleValue,\n  readTransformValue,\n  recordStats,\n  removeAxisDelta,\n  removeAxisTransforms,\n  removeBoxTransforms,\n  removeEffect,\n  removeItem,\n  removePointDelta,\n  renderHTML,\n  renderSVG,\n  resize,\n  resolveElements,\n  resolveMotionValue,\n  resolveTransition,\n  resolveVariant,\n  resolveVariantFromProps,\n  reverseEasing,\n  rgbUnit,\n  rgba,\n  rootProjectionNode,\n  round,\n  sampleDelta,\n  scale,\n  scaleCorrectors,\n  scalePoint,\n  scrapeMotionValuesFromProps as scrapeHTMLMotionValuesFromProps,\n  scrapeMotionValuesFromProps2 as scrapeSVGMotionValuesFromProps,\n  scroll,\n  scrollInfo,\n  secondsToMilliseconds,\n  setDragLock,\n  setFeatureDefinitions,\n  setStyle,\n  setTarget,\n  spring,\n  springValue,\n  stagger,\n  startOptimizedAppearAnimation,\n  startWaapiAnimation,\n  statsBuffer,\n  steps,\n  styleEffect,\n  styleSubjectEffect,\n  supportedWaapiEasing,\n  supportsBrowserAnimation,\n  supportsFlags,\n  supportsLinearEasing,\n  supportsPartialKeyframes,\n  supportsScrollTimeline,\n  supportsViewTimeline,\n  supportsWaapi,\n  svgEffect,\n  svgSubjectEffect,\n  sync,\n  testValueType,\n  time,\n  transform,\n  transformAxis,\n  transformBox,\n  transformBoxPoints,\n  transformPropOrder,\n  transformProps,\n  transformValue,\n  transformValueTypes,\n  transformViewBoxPoint,\n  translateAxis,\n  unwrapMotionComponent,\n  updateMotionValuesFromProps,\n  useAnimate,\n  useAnimateMini,\n  useAnimation,\n  useAnimationControls,\n  useAnimationFrame,\n  useComposedRefs,\n  useCycle,\n  useAnimatedState as useDeprecatedAnimatedState,\n  useInvertedScale as useDeprecatedInvertedScale,\n  useDomEvent,\n  useDragControls,\n  useElementScroll,\n  useFollowValue,\n  useForceUpdate,\n  useInView,\n  useInstantLayoutTransition,\n  useInstantTransition,\n  useIsPresent,\n  useIsomorphicLayoutEffect,\n  useMotionTemplate,\n  useMotionValue,\n  useMotionValueEvent,\n  usePageInView,\n  usePresence,\n  usePresenceData,\n  useReducedMotion,\n  useReducedMotionConfig,\n  useResetProjection,\n  useScroll,\n  useSpring,\n  useTime,\n  useTransform,\n  useUnmountEffect,\n  useVelocity,\n  useViewportScroll,\n  useWillChange,\n  variantPriorityOrder,\n  variantProps,\n  velocityPerSecond,\n  vh,\n  visualElementStore,\n  vw,\n  warnOnce,\n  warning,\n  wrap\n};\n//# sourceMappingURL=framer-motion.ZJUPCPDG.mjs.map\n"],"mappings":"sQA2EA,SAAS,EAAc,EAAK,EAAM,CAC5B,EAAI,QAAQ,CAAI,IAAM,IACxB,EAAI,KAAK,CAAI,CACjB,CACA,SAAS,EAAW,EAAK,EAAM,CAC7B,IAAM,EAAQ,EAAI,QAAQ,CAAI,EAC1B,EAAQ,IACV,EAAI,OAAO,EAAO,CAAC,CACvB,CACA,SAAS,GAAS,CAAC,GAAG,GAAM,EAAW,EAAS,CAC9C,IAAM,EAAa,EAAY,EAAI,EAA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