react-markdown-typewriter
Version:
React Markdown component where Typewriter effect with motion has been added.
1 lines • 134 kB
JavaScript
import {createContext,useState,useEffect,useMemo,useContext,forwardRef,createElement,useRef,useInsertionEffect,useLayoutEffect,useCallback,Fragment,useId,Component}from'react';import {jsx,jsxs}from'react/jsx-runtime';import Jm,{MarkdownAsync,MarkdownHooks}from'react-markdown';var Ya=Object.create;var ci=Object.defineProperty;var Xa=Object.getOwnPropertyDescriptor;var qa=Object.getOwnPropertyNames;var Za=Object.getPrototypeOf,Ja=Object.prototype.hasOwnProperty;var Qa=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var tu=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var eu=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of qa(e))!Ja.call(t,i)&&i!==r&&ci(t,i,{get:()=>e[i],enumerable:!(o=Xa(e,i))||o.enumerable});return t};var ru=(t,e,r)=>(r=t!=null?Ya(Za(t)):{},eu(!t||!t.__esModule?ci(r,"default",{value:t,enumerable:true}):r,t));var Ia=tu((M3,Oa)=>{Oa.exports=function(){return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};});var je=createContext({});function Di(t){let e=useRef(null);return e.current===null&&(e.current=t()),e.current}var Wt=typeof window<"u";var fi=Wt?useLayoutEffect:useEffect;var Ht=createContext(null);var Ne=createContext({transformPagePoint:t=>t,isStatic:false,reducedMotion:"never"});function pi(t=true){let e=useContext(Ht);if(e===null)return [true,null];let{isPresent:r,onExitComplete:o,register:i}=e,s=useId();useEffect(()=>{if(t)return i(s)},[t]);let n=useCallback(()=>t&&o&&o(s),[s,o,t]);return !r&&o?[false,n]:[true]}var Ee=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hi(t,e){let r=new Set,o=new Set,i=false,s=false,n=new WeakSet,a={delta:0,timestamp:0,isProcessing:false};function m(c){n.has(c)&&(l.schedule(c),t()),c(a);}let l={schedule:(c,D=false,f=false)=>{let g=f&&i?r:o;return D&&n.add(c),g.has(c)||g.add(c),c},cancel:c=>{o.delete(c),n.delete(c);},process:c=>{if(a=c,i){s=true;return}i=true,[r,o]=[o,r],r.forEach(m),r.clear(),i=false,s&&(s=false,l.process(c));}};return l}var G={};var fu=40;function Ue(t,e){let r=false,o=true,i={delta:0,timestamp:0,isProcessing:false},s=()=>r=true,n=Ee.reduce((h,T)=>(h[T]=hi(s),h),{}),{setup:a,read:u,resolveKeyframes:m,preUpdate:l,update:c,preRender:D,render:f,postRender:p}=n,g=()=>{let h=G.useManualTiming?i.timestamp:performance.now();r=false,G.useManualTiming||(i.delta=o?1e3/60:Math.max(Math.min(h-i.timestamp,fu),1)),i.timestamp=h,i.isProcessing=true,a.process(i),u.process(i),m.process(i),l.process(i),c.process(i),D.process(i),f.process(i),p.process(i),i.isProcessing=false,r&&e&&(o=false,t(g));},C=()=>{r=true,o=true,i.isProcessing||t(g);};return {schedule:Ee.reduce((h,T)=>{let F=n[T];return h[T]=(B,L=false,v=false)=>(r||C(),F.schedule(B,L,v)),h},{}),cancel:h=>{for(let T=0;T<Ee.length;T++)n[Ee[T]].cancel(h);},state:i,steps:n}}var P=t=>t;var{schedule:E,cancel:Y,state:w,steps:Ke}=Ue(typeof requestAnimationFrame<"u"?requestAnimationFrame:P,true);var Ge=createContext({strict:false});var di={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lt={};for(let t in di)lt[t]={isEnabled:e=>di[t].some(r=>!!e[r])};function gi(t){for(let e in t)lt[e]={...lt[e],...t[e]};}var hu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ve(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||hu.has(t)}var yi=t=>!ve(t);function du(t){t&&(yi=e=>e.startsWith("on")?!ve(e):t(e));}try{du(Qa("@emotion/is-prop-valid").default);}catch{}function Ci(t,e,r){let o={};for(let i in t)i==="values"&&typeof t.values=="object"||(yi(i)||r===true&&ve(i)||!e&&!ve(i)||t.draggable&&i.startsWith("onDrag"))&&(o[i]=t[i]);return o}var Fi=new Set;function $t(t,e,r){t||Fi.has(e)||(console.warn(e),Fi.add(e));}function xi(t){if(typeof Proxy>"u")return t;let e=new Map,r=(...o)=>(process.env.NODE_ENV!=="production"&&$t(false,"motion() is deprecated. Use motion.create() instead."),t(...o));return new Proxy(r,{get:(o,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}var yt=createContext({});function Ct(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function mt(t){return typeof t=="string"||Array.isArray(t)}var We=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ae=["initial",...We];function wt(t){return Ct(t.animate)||Ae.some(e=>mt(t[e]))}function He(t){return !!(wt(t)||t.variants)}function Ei(t,e){if(wt(t)){let{initial:r,animate:o}=t;return {initial:r===false||mt(r)?r:void 0,animate:mt(o)?o:void 0}}return t.inherit!==false?e:{}}function Ai(t){let{initial:e,animate:r}=Ei(t,useContext(yt));return useMemo(()=>({initial:e,animate:r}),[vi(e),vi(r)])}function vi(t){return Array.isArray(t)?t.join(" "):t}var Ti=Symbol.for("motionComponentSymbol");function ct(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Bi(t,e,r){return useCallback(o=>{o&&t.onMount&&t.onMount(o),e&&(o?e.mount(o):e.unmount()),r&&(typeof r=="function"?r(o):ct(r)&&(r.current=o));},[e])}var zt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var xu="framerAppearId",$e="data-"+zt(xu);var ze=createContext({});var{schedule:_t}=Ue(queueMicrotask,false);function bi(t,e,r,o,i){let{visualElement:s}=useContext(yt),n=useContext(Ge),a=useContext(Ht),u=useContext(Ne).reducedMotion,m=useRef(null);o=o||n.renderer,!m.current&&o&&(m.current=o(t,{visualState:e,parent:s,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===false:false,reducedMotionConfig:u}));let l=m.current,c=useContext(ze);l&&!l.projection&&i&&(l.type==="html"||l.type==="svg")&&Tu(m.current,r,i,c);let D=useRef(false);useInsertionEffect(()=>{l&&D.current&&l.update(r,a);});let f=r[$e],p=useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return fi(()=>{l&&(D.current=true,window.MotionIsMounted=true,l.updateFeatures(),_t.render(l.render),p.current&&l.animationState&&l.animationState.animateChanges());}),useEffect(()=>{l&&(!p.current&&l.animationState&&l.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f);}),p.current=false));}),l}function Tu(t,e,r,o){let{layoutId:i,layout:s,drag:n,dragConstraints:a,layoutScroll:u,layoutRoot:m,layoutCrossfade:l}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:Vi(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!n||a&&ct(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,crossfade:l,layoutScroll:u,layoutRoot:m});}function Vi(t){if(t)return t.options.allowProjection!==false?t.projection:Vi(t.parent)}var tt=()=>{},N=()=>{};process.env.NODE_ENV!=="production"&&(tt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e);},N=(t,e)=>{if(!t)throw new Error(e)});function Si({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:o,Component:i}){t&&gi(t);function s(a,u){let m,l={...useContext(Ne),...a,layoutId:Su(a)},{isStatic:c}=l,D=Ai(a),f=o(a,c);if(!c&&Wt){Pu(l,t);let p=wu(l);m=p.MeasureLayout,D.visualElement=bi(i,f,l,e,p.ProjectionNode);}return jsxs(yt.Provider,{value:D,children:[m&&D.visualElement?jsx(m,{visualElement:D.visualElement,...l}):null,r(i,a,Bi(f,D.visualElement,u),f,c,D.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;let n=forwardRef(s);return n[Ti]=i,n}function Su({layoutId:t}){let e=useContext(je).id;return e&&t!==void 0?e+"-"+t:t}function Pu(t,e){let r=useContext(Ge).strict;if(process.env.NODE_ENV!=="production"&&e&&r){let o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?tt(false,o):N(false,o);}}function wu(t){let{drag:e,layout:r}=lt;if(!e&&!r)return {};let o={...e,...r};return {MeasureLayout:e?.isEnabled(t)||r?.isEnabled(t)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}var Pi=t=>e=>typeof e=="string"&&e.startsWith(t),Yt=Pi("--"),Mu=Pi("var(--"),Xt=t=>Mu(t)?Ru.test(t.split("/*")[0].trim()):false,Ru=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Mt={};function wi(t){for(let e in t)Mt[e]=t[e],Yt(e)&&(Mt[e].isCSSVariable=true);}var rt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],J=new Set(rt);function _e(t,{layout:e,layoutId:r}){return J.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Mt[t]||t==="opacity")}var b=t=>!!(t&&t.getVelocity);var Ye=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var j=(t,e,r)=>r>e?e:r<t?t:r;var ot={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Dt={...ot,transform:t=>j(0,1,t)},Be={...ot,default:1};var Do={...ot,transform:Math.round};var be=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),it=be("deg"),W=be("%"),y=be("px"),Mi=be("vh"),Ri=be("vw"),fo={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(t*100)};var Li={rotate:it,rotateX:it,rotateY:it,rotateZ:it,scale:Be,scaleX:Be,scaleY:Be,scaleZ:Be,skew:it,skewX:it,skewY:it,distance:y,translateX:y,translateY:y,translateZ:y,x:y,y,z:y,perspective:y,transformPerspective:y,opacity:Dt,originX:fo,originY:fo,originZ:y};var qt={borderWidth:y,borderTopWidth:y,borderRightWidth:y,borderBottomWidth:y,borderLeftWidth:y,borderRadius:y,radius:y,borderTopLeftRadius:y,borderTopRightRadius:y,borderBottomRightRadius:y,borderBottomLeftRadius:y,width:y,maxWidth:y,height:y,maxHeight:y,top:y,right:y,bottom:y,left:y,padding:y,paddingTop:y,paddingRight:y,paddingBottom:y,paddingLeft:y,margin:y,marginTop:y,marginRight:y,marginBottom:y,marginLeft:y,backgroundPositionX:y,backgroundPositionY:y,...Li,zIndex:Do,fillOpacity:Dt,strokeOpacity:Dt,numOctaves:Do};var Lu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ku=rt.length;function ki(t,e,r){let o="",i=true;for(let s=0;s<ku;s++){let n=rt[s],a=t[n];if(a===void 0)continue;let u=true;if(typeof a=="number"?u=a===(n.startsWith("scale")?1:0):u=parseFloat(a)===0,!u||r){let m=Ye(a,qt[n]);if(!u){i=false;let l=Lu[n]||n;o+=`${l}(${m}) `;}r&&(e[n]=m);}}return o=o.trim(),r?o=r(e,i?"":o):i&&(o="none"),o}function Zt(t,e,r){let{style:o,vars:i,transformOrigin:s}=t,n=false,a=false;for(let u in e){let m=e[u];if(J.has(u)){n=true;continue}else if(Yt(u)){i[u]=m;continue}else {let l=Ye(m,qt[u]);u.startsWith("origin")?(a=true,s[u]=l):o[u]=l;}}if(e.transform||(n||r?o.transform=ki(e,t.transform,r):o.transform&&(o.transform="none")),a){let{originX:u="50%",originY:m="50%",originZ:l=0}=s;o.transformOrigin=`${u} ${m} ${l}`;}}var Jt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function po(t,e,r){for(let o in e)!b(e[o])&&!_e(o,r)&&(t[o]=e[o]);}function Iu({transformTemplate:t},e){return useMemo(()=>{let r=Jt();return Zt(r,e,t),Object.assign({},r.vars,r.style)},[e])}function ju(t,e){let r=t.style||{},o={};return po(o,r,t),Object.assign(o,Iu(t,e)),o}function Oi(t,e){let r={},o=ju(t,e);return t.drag&&t.dragListener!==false&&(r.draggable=false,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=t.drag===true?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}var Ii=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Qt(t){return typeof t!="string"||t.includes("-")?false:!!(Ii.indexOf(t)>-1||/[A-Z]/u.test(t))}var Nu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uu={offset:"strokeDashoffset",array:"strokeDasharray"};function ji(t,e,r=1,o=0,i=true){t.pathLength=1;let s=i?Nu:Uu;t[s.offset]=y.transform(-o);let n=y.transform(e),a=y.transform(r);t[s.array]=`${n} ${a}`;}function Xe(t,{attrX:e,attrY:r,attrScale:o,pathLength:i,pathSpacing:s=1,pathOffset:n=0,...a},u,m,l){if(Zt(t,a,m),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:D}=t;c.transform&&(D.transform=c.transform,delete c.transform),(D.transform||c.transformOrigin)&&(D.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),D.transform&&(D.transformBox=l?.transformBox??"fill-box",delete c.transformBox),e!==void 0&&(c.x=e),r!==void 0&&(c.y=r),o!==void 0&&(c.scale=o),i!==void 0&&ji(c,i,s,n,false);}var qe=()=>({...Jt(),attrs:{}});var Ze=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ni(t,e,r,o){let i=useMemo(()=>{let s=qe();return Xe(s,e,Ze(o),t.transformTemplate,t.style),{...s.attrs,style:{...s.style}}},[e]);if(t.style){let s={};po(s,t.style,t),i.style={...s,...i.style};}return i}function Ui(t=false){return (r,o,i,{latestValues:s},n)=>{let u=(Qt(r)?Ni:Oi)(o,s,n,r),m=Ci(o,typeof r=="string",t),l=r!==Fragment?{...m,...u,ref:i}:{},{children:c}=o,D=useMemo(()=>b(c)?c.get():c,[c]);return createElement(r,{...l,children:D})}}function Ki(t){let e=[{},{}];return t?.values.forEach((r,o)=>{e[0][o]=r.get(),e[1][o]=r.getVelocity();}),e}function te(t,e,r,o){if(typeof e=="function"){let[i,s]=Ki(o);e=e(r!==void 0?r:t.custom,i,s);}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[i,s]=Ki(o);e=e(r!==void 0?r:t.custom,i,s);}return e}function ee(t){return b(t)?t.get():t}function $u({scrapeMotionValuesFromProps:t,createRenderState:e},r,o,i){return {latestValues:zu(r,o,i,t),renderState:e()}}var Je=t=>(e,r)=>{let o=useContext(yt),i=useContext(Ht),s=()=>$u(t,e,o,i);return r?s():Di(s)};function zu(t,e,r,o){let i={},s=o(t,{});for(let D in s)i[D]=ee(s[D]);let{initial:n,animate:a}=t,u=wt(t),m=He(t);e&&m&&!u&&t.inherit!==false&&(n===void 0&&(n=e.initial),a===void 0&&(a=e.animate));let l=r?r.initial===false:false;l=l||n===false;let c=l?a:n;if(c&&typeof c!="boolean"&&!Ct(c)){let D=Array.isArray(c)?c:[c];for(let f=0;f<D.length;f++){let p=te(t,D[f]);if(p){let{transitionEnd:g,transition:C,...d}=p;for(let x in d){let h=d[x];if(Array.isArray(h)){let T=l?h.length-1:0;h=h[T];}h!==null&&(i[x]=h);}for(let x in g)i[x]=g[x];}}}return i}function re(t,e,r){let{style:o}=t,i={};for(let s in o)(b(o[s])||e.style&&b(e.style[s])||_e(s,t)||r?.getValue(s)?.liveStyle!==void 0)&&(i[s]=o[s]);return i}var Wi={useVisualState:Je({scrapeMotionValuesFromProps:re,createRenderState:Jt})};function Qe(t,e,r){let o=re(t,e,r);for(let i in t)if(b(t[i])||b(e[i])){let s=rt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;o[s]=t[i];}return o}var Hi={useVisualState:Je({scrapeMotionValuesFromProps:Qe,createRenderState:qe})};function $i(t,e){return function(o,{forwardMotionProps:i}={forwardMotionProps:false}){let n={...Qt(o)?Hi:Wi,preloadedFeatures:t,useRender:Ui(i),createVisualElement:e,Component:o};return Si(n)}}function ft(t,e,r){let o=t.getProps();return te(o,e,r!==void 0?r:o.custom,t)}var Ve=t=>Array.isArray(t);var tr;function _u(){tr=void 0;}var M={now:()=>(tr===void 0&&M.set(w.isProcessing||G.useManualTiming?w.timestamp:performance.now()),tr),set:t=>{tr=t,queueMicrotask(_u);}};function oe(t,e){t.indexOf(e)===-1&&t.push(e);}function ie(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1);}var Ft=class{constructor(){this.subscriptions=[];}add(e){return oe(this.subscriptions,e),()=>ie(this.subscriptions,e)}notify(e,r,o){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,o);else for(let s=0;s<i;s++){let n=this.subscriptions[s];n&&n(e,r,o);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}};function er(t,e){return e?t*(1e3/e):0}var zi=30,Yu=t=>!isNaN(parseFloat(t)),ho=class{constructor(e,r={}){this.version="__VERSION__",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,i=true)=>{let s=M.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let n of this.dependents)n.dirty();i&&this.events.renderRequest?.notify(this.current);},this.hasAnimated=false,this.setCurrent(e),this.owner=r.owner;}setCurrent(e){this.current=e,this.updatedAt=M.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Yu(this.current));}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt;}onChange(e){return process.env.NODE_ENV!=="production"&&$t(false,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Ft);let o=this.events[e].add(r);return e==="change"?()=>{o(),E.read(()=>{this.events.change.getSize()||this.stop();});}:o}clearListeners(){for(let e in this.events)this.events[e].clear();}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r;}set(e,r=true){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify);}setWithVelocity(e,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-o;}jump(e,r=true){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}dirty(){this.events.change?.notify(this.current);}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e);}removeDependent(e){this.dependents&&this.dependents.delete(e);}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=M.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zi)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,zi);return er(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=true,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}};function et(t,e){return new ho(t,e)}function Xu(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,et(r));}function qu(t){return Ve(t)?t[t.length-1]||0:t}function Yi(t,e){let r=ft(t,e),{transitionEnd:o={},transition:i={},...s}=r||{};s={...s,...o};for(let n in s){let a=qu(s[n]);Xu(t,n,a);}}function Xi(t){return !!(b(t)&&t.add)}function Se(t,e){let r=t.getValue("willChange");if(Xi(r))return r.add(e);if(!r&&G.WillChange){let o=new G.WillChange("auto");t.addValue("willChange",o),o.add(e);}}function rr(t){return t.props[$e]}var Zu=t=>t!==null;function qi(t,{repeat:e,repeatType:r="loop"},o){let i=t.filter(Zu),s=e&&r!=="loop"&&e%2===1?0:i.length-1;return !s||o===void 0?i[s]:o}var Ju={type:"spring",stiffness:500,damping:25,restSpeed:10},Qu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),tl={type:"keyframes",duration:.8},el={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zi=(t,{keyframes:e})=>e.length>2?tl:J.has(t)?t.startsWith("scale")?Qu(e[1]):Ju:el;function Ji({when:t,delay:e,delayChildren:r,staggerChildren:o,staggerDirection:i,repeat:s,repeatType:n,repeatDelay:a,from:u,elapsed:m,...l}){return !!Object.keys(l).length}function ne(t,e){return t?.[e]??t?.default??t}var O=t=>t*1e3,U=t=>t/1e3;var xt=t=>Math.round(t*1e5)/1e5;var se=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Qi(t){return t==null}var tn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ae=(t,e)=>r=>!!(typeof r=="string"&&tn.test(r)&&r.startsWith(t)||e&&!Qi(r)&&Object.prototype.hasOwnProperty.call(r,e)),or=(t,e,r)=>o=>{if(typeof o!="string")return o;let[i,s,n,a]=o.match(se);return {[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(n),alpha:a!==void 0?parseFloat(a):1}};var rl=t=>j(0,255,t),go={...ot,transform:t=>Math.round(rl(t))},st={test:ae("rgb","red"),parse:or("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:o=1})=>"rgba("+go.transform(t)+", "+go.transform(e)+", "+go.transform(r)+", "+xt(Dt.transform(o))+")"};function ol(t){let e="",r="",o="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),o=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),o=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,o+=o,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}}var Pe={test:ae("#"),parse:ol,transform:st.transform};var Et={test:ae("hsl","hue"),parse:or("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+W.transform(xt(e))+", "+W.transform(xt(r))+", "+xt(Dt.transform(o))+")"};var R={test:t=>st.test(t)||Pe.test(t)||Et.test(t),parse:t=>st.test(t)?st.parse(t):Et.test(t)?Et.parse(t):Pe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?st.transform(t):Et.transform(t)};var en=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function il(t){return isNaN(t)&&typeof t=="string"&&(t.match(se)?.length||0)+(t.match(en)?.length||0)>0}var on="number",nn="color",nl="var",sl="var(",rn="${}",al=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rt(t){let e=t.toString(),r=[],o={color:[],number:[],var:[]},i=[],s=0,a=e.replace(al,u=>(R.test(u)?(o.color.push(s),i.push(nn),r.push(R.parse(u))):u.startsWith(sl)?(o.var.push(s),i.push(nl),r.push(u)):(o.number.push(s),i.push(on),r.push(parseFloat(u))),++s,rn)).split(rn);return {values:r,split:a,indexes:o,types:i}}function sn(t){return Rt(t).values}function an(t){let{split:e,types:r}=Rt(t),o=e.length;return i=>{let s="";for(let n=0;n<o;n++)if(s+=e[n],i[n]!==void 0){let a=r[n];a===on?s+=xt(i[n]):a===nn?s+=R.transform(i[n]):s+=i[n];}return s}}var ul=t=>typeof t=="number"?0:t;function ll(t){let e=sn(t);return an(t)(e.map(ul))}var H={test:il,parse:sn,createTransformer:an,getAnimatableNone:ll};function yo(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function un({hue:t,saturation:e,lightness:r,alpha:o}){t/=360,e/=100,r/=100;let i=0,s=0,n=0;if(!e)i=s=n=r;else {let a=r<.5?r*(1+e):r+e-r*e,u=2*r-a;i=yo(u,a,t+1/3),s=yo(u,a,t),n=yo(u,a,t-1/3);}return {red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(n*255),alpha:o}}function ue(t,e){return r=>r>0?e:t}var A=(t,e,r)=>t+(e-t)*r;var Co=(t,e,r)=>{let o=t*t,i=r*(e*e-o)+o;return i<0?0:Math.sqrt(i)},ml=[Pe,st,Et],cl=t=>ml.find(e=>e.test(t));function ln(t){let e=cl(t);if(tt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return false;let r=e.parse(t);return e===Et&&(r=un(r)),r}var Fo=(t,e)=>{let r=ln(t),o=ln(e);if(!r||!o)return ue(t,e);let i={...r};return s=>(i.red=Co(r.red,o.red,s),i.green=Co(r.green,o.green,s),i.blue=Co(r.blue,o.blue,s),i.alpha=A(r.alpha,o.alpha,s),st.transform(i))};var ir=new Set(["none","hidden"]);function mn(t,e){return ir.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}var Dl=(t,e)=>r=>e(t(r)),at=(...t)=>t.reduce(Dl);function fl(t,e){return r=>A(t,e,r)}function nr(t){return typeof t=="number"?fl:typeof t=="string"?Xt(t)?ue:R.test(t)?Fo:dl:Array.isArray(t)?cn:typeof t=="object"?R.test(t)?Fo:pl:ue}function cn(t,e){let r=[...t],o=r.length,i=t.map((s,n)=>nr(s)(s,e[n]));return s=>{for(let n=0;n<o;n++)r[n]=i[n](s);return r}}function pl(t,e){let r={...t,...e},o={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(o[i]=nr(t[i])(t[i],e[i]));return i=>{for(let s in o)r[s]=o[s](i);return r}}function hl(t,e){let r=[],o={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let s=e.types[i],n=t.indexes[s][o[s]],a=t.values[n]??0;r[i]=a,o[s]++;}return r}var dl=(t,e)=>{let r=H.createTransformer(e),o=Rt(t),i=Rt(e);return o.indexes.var.length===i.indexes.var.length&&o.indexes.color.length===i.indexes.color.length&&o.indexes.number.length>=i.indexes.number.length?ir.has(t)&&!i.values.length||ir.has(e)&&!o.values.length?mn(t,e):at(cn(hl(o,i),i.values),r):(tt(true,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ue(t,e))};function sr(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?A(t,e,r):nr(t)(t,e)}var Dn=t=>{let e=({timestamp:r})=>t(r);return {start:(r=true)=>E.update(e,r),stop:()=>Y(e),now:()=>w.isProcessing?w.timestamp:M.now()}};var ar=(t,e,r=10)=>{let o="",i=Math.max(Math.round(e/r),2);for(let s=0;s<i;s++)o+=t(s/(i-1))+", ";return `linear(${o.substring(0,o.length-2)})`};function le(t){let e=0,r=50,o=t.next(e);for(;!o.done&&e<2e4;)e+=r,o=t.next(e);return e>=2e4?1/0:e}function fn(t,e=100,r){let o=r({...t,keyframes:[0,e]}),i=Math.min(le(o),2e4);return {type:"keyframes",ease:s=>o.next(i*s).value/e,duration:U(i)}}var gl=5;function ur(t,e,r){let o=Math.max(e-gl,0);return er(r-t(o),e-o)}var V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var Eo=.001;function pn({duration:t=V.duration,bounce:e=V.bounce,velocity:r=V.velocity,mass:o=V.mass}){let i,s;tt(t<=O(V.maxDuration),"Spring duration must be 10 seconds or less");let n=1-e;n=j(V.minDamping,V.maxDamping,n),t=j(V.minDuration,V.maxDuration,U(t)),n<1?(i=m=>{let l=m*n,c=l*t,D=l-r,f=lr(m,n),p=Math.exp(-c);return Eo-D/f*p},s=m=>{let c=m*n*t,D=c*r+r,f=Math.pow(n,2)*Math.pow(m,2)*t,p=Math.exp(-c),g=lr(Math.pow(m,2),n);return (-i(m)+Eo>0?-1:1)*((D-f)*p)/g}):(i=m=>{let l=Math.exp(-m*t),c=(m-r)*t+1;return -1e-3+l*c},s=m=>{let l=Math.exp(-m*t),c=(r-m)*(t*t);return l*c});let a=5/t,u=Cl(i,s,a);if(t=O(t),isNaN(u))return {stiffness:V.stiffness,damping:V.damping,duration:t};{let m=Math.pow(u,2)*o;return {stiffness:m,damping:n*2*Math.sqrt(o*m),duration:t}}}var yl=12;function Cl(t,e,r){let o=r;for(let i=1;i<yl;i++)o=o-t(o)/e(o);return o}function lr(t,e){return t*Math.sqrt(1-e*e)}var Fl=["duration","bounce"],xl=["stiffness","damping","mass"];function hn(t,e){return e.some(r=>t[r]!==void 0)}function El(t){let e={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:false,...t};if(!hn(t,xl)&&hn(t,Fl))if(t.visualDuration){let r=t.visualDuration,o=2*Math.PI/(r*1.2),i=o*o,s=2*j(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:V.mass,stiffness:i,damping:s};}else {let r=pn(t);e={...e,...r,mass:V.mass},e.isResolvedFromDuration=true;}return e}function me(t=V.visualDuration,e=V.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:i}=r,s=r.keyframes[0],n=r.keyframes[r.keyframes.length-1],a={done:false,value:s},{stiffness:u,damping:m,mass:l,duration:c,velocity:D,isResolvedFromDuration:f}=El({...r,velocity:-U(r.velocity||0)}),p=D||0,g=m/(2*Math.sqrt(u*l)),C=n-s,d=U(Math.sqrt(u/l)),x=Math.abs(C)<5;o||(o=x?V.restSpeed.granular:V.restSpeed.default),i||(i=x?V.restDelta.granular:V.restDelta.default);let h;if(g<1){let F=lr(d,g);h=B=>{let L=Math.exp(-g*d*B);return n-L*((p+g*d*C)/F*Math.sin(F*B)+C*Math.cos(F*B))};}else if(g===1)h=F=>n-Math.exp(-d*F)*(C+(p+d*C)*F);else {let F=d*Math.sqrt(g*g-1);h=B=>{let L=Math.exp(-g*d*B),v=Math.min(F*B,300);return n-L*((p+g*d*C)*Math.sinh(v)+F*C*Math.cosh(v))/F};}let T={calculatedDuration:f&&c||null,next:F=>{let B=h(F);if(f)a.done=F>=c;else {let L=F===0?p:0;g<1&&(L=F===0?O(p):ur(h,F,B));let v=Math.abs(L)<=o,$=Math.abs(n-B)<=i;a.done=v&&$;}return a.value=a.done?n:B,a},toString:()=>{let F=Math.min(le(T),2e4),B=ar(L=>T.next(F*L).value,F,30);return F+"ms "+B},toTransition:()=>{}};return T}me.applyToOptions=t=>{let e=fn(t,100,me);return t.ease=e.ease,t.duration=O(e.duration),t.type="keyframes",t};function we({keyframes:t,velocity:e=0,power:r=.8,timeConstant:o=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:n,min:a,max:u,restDelta:m=.5,restSpeed:l}){let c=t[0],D={done:false,value:c},f=v=>a!==void 0&&v<a||u!==void 0&&v>u,p=v=>a===void 0?u:u===void 0||Math.abs(a-v)<Math.abs(u-v)?a:u,g=r*e,C=c+g,d=n===void 0?C:n(C);d!==C&&(g=d-c);let x=v=>-g*Math.exp(-v/o),h=v=>d+x(v),T=v=>{let $=x(v),Z=h(v);D.done=Math.abs($)<=m,D.value=D.done?d:Z;},F,B,L=v=>{f(D.value)&&(F=v,B=me({keyframes:[D.value,p(D.value)],velocity:ur(h,v,D.value),damping:i,stiffness:s,restDelta:m,restSpeed:l}));};return L(0),{calculatedDuration:null,next:v=>{let $=false;return !B&&F===void 0&&($=true,T(v),L(v)),F!==void 0&&v>=F?B.next(v-F):(!$&&T(v),D)}}}var pt=(t,e,r)=>{let o=e-t;return o===0?1:(r-t)/o};function vl(t,e,r){let o=[],i=r||G.mix||sr,s=t.length-1;for(let n=0;n<s;n++){let a=i(t[n],t[n+1]);if(e){let u=Array.isArray(e)?e[n]||P:e;a=at(u,a);}o.push(a);}return o}function dn(t,e,{clamp:r=true,ease:o,mixer:i}={}){let s=t.length;if(N(s===e.length,"Both input and output ranges must be the same length"),s===1)return ()=>e[0];if(s===2&&e[0]===e[1])return ()=>e[1];let n=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=vl(e,o,i),u=a.length,m=l=>{if(n&&l<t[0])return e[0];let c=0;if(u>1)for(;c<t.length-2&&!(l<t[c+1]);c++);let D=pt(t[c],t[c+1],l);return a[c](D)};return r?l=>m(j(t[0],t[s-1],l)):m}function gn(t,e){let r=t[t.length-1];for(let o=1;o<=e;o++){let i=pt(0,e,o);t.push(A(r,1,i));}}function yn(t){let e=[0];return gn(e,t.length-1),e}function Cn(t,e){return t.map(r=>r*e)}var Fn=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Al=1e-7,Tl=12;function Bl(t,e,r,o,i){let s,n,a=0;do n=e+(r-e)/2,s=Fn(n,o,i)-t,s>0?r=n:e=n;while(Math.abs(s)>Al&&++a<Tl);return n}function vt(t,e,r,o){if(t===e&&r===o)return P;let i=s=>Bl(s,0,1,t,r);return s=>s===0||s===1?s:Fn(i(s),e,o)}var xn=vt(.42,0,1,1),En=vt(0,0,.58,1),mr=vt(.42,0,.58,1);var vn=t=>Array.isArray(t)&&typeof t[0]!="number";var cr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Dr=t=>e=>1-t(1-e);var vo=vt(.33,1.53,.69,.99),Me=Dr(vo),fr=cr(Me);var pr=t=>(t*=2)<1?.5*Me(t):.5*(2-Math.pow(2,-10*(t-1)));var hr=t=>1-Math.sin(Math.acos(t)),dr=Dr(hr),gr=cr(hr);var yr=t=>Array.isArray(t)&&typeof t[0]=="number";var An={linear:P,easeIn:xn,easeInOut:mr,easeOut:En,circIn:hr,circInOut:gr,circOut:dr,backIn:Me,backInOut:fr,backOut:vo,anticipate:pr},bl=t=>typeof t=="string",Ao=t=>{if(yr(t)){N(t.length===4,"Cubic bezier arrays must contain four numerical values.");let[e,r,o,i]=t;return vt(e,r,o,i)}else if(bl(t))return N(An[t]!==void 0,`Invalid easing type '${t}'`),An[t];return t};function Vl(t,e){return t.map(()=>e||mr).splice(0,t.length-1)}function At({duration:t=300,keyframes:e,times:r,ease:o="easeInOut"}){let i=vn(o)?o.map(Ao):Ao(o),s={done:false,value:e[0]},n=Cn(r&&r.length===e.length?r:yn(e),t),a=dn(n,e,{ease:Array.isArray(i)?i:Vl(e,i)});return {calculatedDuration:t,next:u=>(s.value=a(u),s.done=u>=t,s)}}var Sl=t=>t!==null;function ce(t,{repeat:e,repeatType:r="loop"},o,i=1){let s=t.filter(Sl),a=i<0||e&&r!=="loop"&&e%2===1?0:s.length-1;return !a||o===void 0?s[a]:o}var Pl={decay:we,inertia:we,tween:At,keyframes:At,spring:me};function Cr(t){typeof t.type=="string"&&(t.type=Pl[t.type]);}var Tt=class{constructor(){this.count=0,this.updateFinished();}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(e=>{this.resolve=e;});}notifyFinished(){this.resolve();}then(e,r){return this.finished.then(e,r)}};var wl=t=>t/100,Bt=class extends Tt{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=false,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(r=true)=>{if(r){let{motionValue:i}=this.options;i&&i.updatedAt!==M.now()&&this.tick(M.now());}if(this.isStopped=true,this.state==="idle")return;this.teardown();let{onStop:o}=this.options;o&&o();},this.options=e,this.initAnimation(),this.play(),e.autoplay===false&&this.pause();}initAnimation(){let{options:e}=this;Cr(e);let{type:r=At,repeat:o=0,repeatDelay:i=0,repeatType:s,velocity:n=0}=e,{keyframes:a}=e,u=r||At;process.env.NODE_ENV!=="production"&&u!==At&&N(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`),u!==At&&typeof a[0]!="number"&&(this.mixKeyframes=at(wl,sr(a[0],a[1])),a=[0,100]);let m=u({...e,keyframes:a});s==="mirror"&&(this.mirroredGenerator=u({...e,keyframes:[...a].reverse(),velocity:-n})),m.calculatedDuration===null&&(m.calculatedDuration=le(m));let{calculatedDuration:l}=m;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(o+1)-i,this.generator=m;}updateTime(e){let r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r;}tick(e,r=false){let{generator:o,totalDuration:i,mixKeyframes:s,mirroredGenerator:n,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return o.next(0);let{delay:m=0,keyframes:l,repeat:c,repeatType:D,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);let d=this.currentTime-m*(this.playbackSpeed>=0?1:-1),x=this.playba