react-markdown-typewriter 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.mts +77 -8
  3. package/dist/index.d.ts +77 -8
  4. package/dist/index.mjs +1 -1
  5. package/package.json +18 -7
  6. package/dist/components/MarkdownTypewriter.d.mts +0 -9
  7. package/dist/components/MarkdownTypewriter.d.ts +0 -9
  8. package/dist/components/MarkdownTypewriter.js +0 -1
  9. package/dist/components/MarkdownTypewriter.mjs +0 -1
  10. package/dist/components/MarkdownTypewriterAsync.d.mts +0 -9
  11. package/dist/components/MarkdownTypewriterAsync.d.ts +0 -9
  12. package/dist/components/MarkdownTypewriterAsync.js +0 -1
  13. package/dist/components/MarkdownTypewriterAsync.mjs +0 -1
  14. package/dist/components/MarkdownTypewriterHooks.d.mts +0 -9
  15. package/dist/components/MarkdownTypewriterHooks.d.ts +0 -9
  16. package/dist/components/MarkdownTypewriterHooks.js +0 -1
  17. package/dist/components/MarkdownTypewriterHooks.mjs +0 -1
  18. package/dist/components/TypewriterItem.d.mts +0 -14
  19. package/dist/components/TypewriterItem.d.ts +0 -14
  20. package/dist/components/TypewriterItem.js +0 -1
  21. package/dist/components/TypewriterItem.mjs +0 -1
  22. package/dist/components/index.d.mts +0 -8
  23. package/dist/components/index.d.ts +0 -8
  24. package/dist/components/index.js +0 -1
  25. package/dist/components/index.mjs +0 -1
  26. package/dist/functions/markdownComponents.d.mts +0 -11
  27. package/dist/functions/markdownComponents.d.ts +0 -11
  28. package/dist/functions/markdownComponents.js +0 -1
  29. package/dist/functions/markdownComponents.mjs +0 -1
  30. package/dist/functions/typewriterHook.d.mts +0 -16
  31. package/dist/functions/typewriterHook.d.ts +0 -16
  32. package/dist/functions/typewriterHook.js +0 -1
  33. package/dist/functions/typewriterHook.mjs +0 -1
  34. package/dist/index.js +0 -1
  35. package/dist/interfaces/MarkdownTypewriterProps.d.mts +0 -70
  36. package/dist/interfaces/MarkdownTypewriterProps.d.ts +0 -70
  37. package/dist/interfaces/MarkdownTypewriterProps.js +0 -1
  38. package/dist/interfaces/MarkdownTypewriterProps.mjs +0 -0
  39. package/dist/interfaces/index.d.mts +0 -4
  40. package/dist/interfaces/index.d.ts +0 -4
  41. package/dist/interfaces/index.js +0 -1
  42. package/dist/interfaces/index.mjs +0 -0
@@ -1 +0,0 @@
1
- 'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var Ua=Object.create;var ui=Object.defineProperty;var Ka=Object.getOwnPropertyDescriptor;var Ga=Object.getOwnPropertyNames;var Wa=Object.getPrototypeOf,$a=Object.prototype.hasOwnProperty;var Ha=(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 za=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var _a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ga(e))!$a.call(t,i)&&i!==r&&ui(t,i,{get:()=>e[i],enumerable:!(o=Ka(e,i))||o.enumerable});return t};var Ya=(t,e,r)=>(r=t!=null?Ua(Wa(t)):{},_a(!t||!t.__esModule?ui(r,"default",{value:t,enumerable:true}):r,t));var La=za((y3,Ra)=>{Ra.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 li=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var mi=li;var Ie=react.createContext({});function Di(t){let e=react.useRef(null);return e.current===null&&(e.current=t()),e.current}var Gt=typeof window<"u";var ci=Gt?react.useLayoutEffect:react.useEffect;var Wt=react.createContext(null);var je=react.createContext({transformPagePoint:t=>t,isStatic:false,reducedMotion:"never"});function fi(t=true){let e=react.useContext(Wt);if(e===null)return [true,null];let{isPresent:r,onExitComplete:o,register:i}=e,s=react.useId();react.useEffect(()=>{if(t)return i(s)},[t]);let n=react.useCallback(()=>t&&o&&o(s),[s,o,t]);return !r&&o?[false,n]:[true]}var xe=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pi(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(D){n.has(D)&&(l.schedule(D),t()),D(a);}let l={schedule:(D,c=false,f=false)=>{let g=f&&i?r:o;return c&&n.add(D),g.has(D)||g.add(D),D},cancel:D=>{o.delete(D),n.delete(D);},process:D=>{if(a=D,i){s=true;return}i=true,[r,o]=[o,r],r.forEach(m),r.clear(),i=false,s&&(s=false,l.process(D));}};return l}var G={};var su=40;function Ne(t,e){let r=false,o=true,i={delta:0,timestamp:0,isProcessing:false},s=()=>r=true,n=xe.reduce((h,T)=>(h[T]=pi(s),h),{}),{setup:a,read:u,resolveKeyframes:m,preUpdate:l,update:D,preRender:c,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,su),1)),i.timestamp=h,i.isProcessing=true,a.process(i),u.process(i),m.process(i),l.process(i),D.process(i),c.process(i),f.process(i),p.process(i),i.isProcessing=false,r&&e&&(o=false,t(g));},y=()=>{r=true,o=true,i.isProcessing||t(g);};return {schedule:xe.reduce((h,T)=>{let F=n[T];return h[T]=(B,L=false,v=false)=>(r||y(),F.schedule(B,L,v)),h},{}),cancel:h=>{for(let T=0;T<xe.length;T++)n[xe[T]].cancel(h);},state:i,steps:n}}var P=t=>t;var{schedule:E,cancel:Y,state:M,steps:Ue}=Ne(typeof requestAnimationFrame<"u"?requestAnimationFrame:P,true);var Ke=react.createContext({strict:false});var hi={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"]},ut={};for(let t in hi)ut[t]={isEnabled:e=>hi[t].some(r=>!!e[r])};function di(t){for(let e in t)ut[e]={...ut[e],...t[e]};}var uu=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 Ee(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||uu.has(t)}var gi=t=>!Ee(t);function lu(t){t&&(gi=e=>e.startsWith("on")?!Ee(e):t(e));}try{lu(Ha("@emotion/is-prop-valid").default);}catch{}function Ci(t,e,r){let o={};for(let i in t)i==="values"&&typeof t.values=="object"||(gi(i)||r===true&&Ee(i)||!e&&!Ee(i)||t.draggable&&i.startsWith("onDrag"))&&(o[i]=t[i]);return o}var yi=new Set;function $t(t,e,r){t||yi.has(e)||(console.warn(e),yi.add(e));}function Fi(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 gt=react.createContext({});function Ct(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function lt(t){return typeof t=="string"||Array.isArray(t)}var Ge=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ve=["initial",...Ge];function Pt(t){return Ct(t.animate)||ve.some(e=>lt(t[e]))}function We(t){return !!(Pt(t)||t.variants)}function xi(t,e){if(Pt(t)){let{initial:r,animate:o}=t;return {initial:r===false||lt(r)?r:void 0,animate:lt(o)?o:void 0}}return t.inherit!==false?e:{}}function vi(t){let{initial:e,animate:r}=xi(t,react.useContext(gt));return react.useMemo(()=>({initial:e,animate:r}),[Ei(e),Ei(r)])}function Ei(t){return Array.isArray(t)?t.join(" "):t}var Ai=Symbol.for("motionComponentSymbol");function mt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ti(t,e,r){return react.useCallback(o=>{o&&t.onMount&&t.onMount(o),e&&(o?e.mount(o):e.unmount()),r&&(typeof r=="function"?r(o):mt(r)&&(r.current=o));},[e])}var Ht=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var pu="framerAppearId",$e="data-"+Ht(pu);var He=react.createContext({});var{schedule:zt}=Ne(queueMicrotask,false);function Bi(t,e,r,o,i){let{visualElement:s}=react.useContext(gt),n=react.useContext(Ke),a=react.useContext(Wt),u=react.useContext(je).reducedMotion,m=react.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,D=react.useContext(He);l&&!l.projection&&i&&(l.type==="html"||l.type==="svg")&&Cu(m.current,r,i,D);let c=react.useRef(false);react.useInsertionEffect(()=>{l&&c.current&&l.update(r,a);});let f=r[$e],p=react.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return ci(()=>{l&&(c.current=true,window.MotionIsMounted=true,l.updateFeatures(),zt.render(l.render),p.current&&l.animationState&&l.animationState.animateChanges());}),react.useEffect(()=>{l&&(!p.current&&l.animationState&&l.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f);}),p.current=false));}),l}function Cu(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:bi(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!n||a&&mt(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,crossfade:l,layoutScroll:u,layoutRoot:m});}function bi(t){if(t)return t.options.allowProjection!==false?t.projection:bi(t.parent)}var Q=()=>{},N=()=>{};process.env.NODE_ENV!=="production"&&(Q=(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&&di(t);function s(a,u){let m,l={...react.useContext(je),...a,layoutId:Eu(a)},{isStatic:D}=l,c=vi(a),f=o(a,D);if(!D&&Gt){vu(l,t);let p=Au(l);m=p.MeasureLayout,c.visualElement=Bi(i,f,l,e,p.ProjectionNode);}return jsxRuntime.jsxs(gt.Provider,{value:c,children:[m&&c.visualElement?jsxRuntime.jsx(m,{visualElement:c.visualElement,...l}):null,r(i,a,Ti(f,c.visualElement,u),f,D,c.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;let n=react.forwardRef(s);return n[Ai]=i,n}function Eu({layoutId:t}){let e=react.useContext(Ie).id;return e&&t!==void 0?e+"-"+t:t}function vu(t,e){let r=react.useContext(Ke).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?Q(false,o):N(false,o);}}function Au(t){let{drag:e,layout:r}=ut;if(!e&&!r)return {};let o={...e,...r};return {MeasureLayout:e?.isEnabled(t)||r?.isEnabled(t)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}var Vi=t=>e=>typeof e=="string"&&e.startsWith(t),_t=Vi("--"),Tu=Vi("var(--"),Yt=t=>Tu(t)?Bu.test(t.split("/*")[0].trim()):false,Bu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Mt={};function Pi(t){for(let e in t)Mt[e]=t[e],_t(e)&&(Mt[e].isCSSVariable=true);}var et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Z=new Set(et);function ze(t,{layout:e,layoutId:r}){return Z.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Mt[t]||t==="opacity")}var b=t=>!!(t&&t.getVelocity);var _e=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var j=(t,e,r)=>r>e?e:r<t?t:r;var rt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Dt={...rt,transform:t=>j(0,1,t)},Te={...rt,default:1};var Do={...rt,transform:Math.round};var Be=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ot=Be("deg"),W=Be("%"),C=Be("px"),Mi=Be("vh"),wi=Be("vw"),co={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(t*100)};var Ri={rotate:ot,rotateX:ot,rotateY:ot,rotateZ:ot,scale:Te,scaleX:Te,scaleY:Te,scaleZ:Te,skew:ot,skewX:ot,skewY:ot,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:Dt,originX:co,originY:co,originZ:C};var Xt={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,backgroundPositionX:C,backgroundPositionY:C,...Ri,zIndex:Do,fillOpacity:Dt,strokeOpacity:Dt,numOctaves:Do};var bu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Su=et.length;function Li(t,e,r){let o="",i=true;for(let s=0;s<Su;s++){let n=et[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=_e(a,Xt[n]);if(!u){i=false;let l=bu[n]||n;o+=`${l}(${m}) `;}r&&(e[n]=m);}}return o=o.trim(),r?o=r(e,i?"":o):i&&(o="none"),o}function qt(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(Z.has(u)){n=true;continue}else if(_t(u)){i[u]=m;continue}else {let l=_e(m,Xt[u]);u.startsWith("origin")?(a=true,s[u]=l):o[u]=l;}}if(e.transform||(n||r?o.transform=Li(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 Zt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fo(t,e,r){for(let o in e)!b(e[o])&&!ze(o,r)&&(t[o]=e[o]);}function Pu({transformTemplate:t},e){return react.useMemo(()=>{let r=Zt();return qt(r,e,t),Object.assign({},r.vars,r.style)},[e])}function Mu(t,e){let r=t.style||{},o={};return fo(o,r,t),Object.assign(o,Pu(t,e)),o}function ki(t,e){let r={},o=Mu(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 Oi=["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 Jt(t){return typeof t!="string"||t.includes("-")?false:!!(Oi.indexOf(t)>-1||/[A-Z]/u.test(t))}var wu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ru={offset:"strokeDashoffset",array:"strokeDasharray"};function Ii(t,e,r=1,o=0,i=true){t.pathLength=1;let s=i?wu:Ru;t[s.offset]=C.transform(-o);let n=C.transform(e),a=C.transform(r);t[s.array]=`${n} ${a}`;}function Ye(t,{attrX:e,attrY:r,attrScale:o,pathLength:i,pathSpacing:s=1,pathOffset:n=0,...a},u,m,l){if(qt(t,a,m),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:D,style:c}=t;D.transform&&(c.transform=D.transform,delete D.transform),(c.transform||D.transformOrigin)&&(c.transformOrigin=D.transformOrigin??"50% 50%",delete D.transformOrigin),c.transform&&(c.transformBox=l?.transformBox??"fill-box",delete D.transformBox),e!==void 0&&(D.x=e),r!==void 0&&(D.y=r),o!==void 0&&(D.scale=o),i!==void 0&&Ii(D,i,s,n,false);}var Xe=()=>({...Zt(),attrs:{}});var qe=t=>typeof t=="string"&&t.toLowerCase()==="svg";function ji(t,e,r,o){let i=react.useMemo(()=>{let s=Xe();return Ye(s,e,qe(o),t.transformTemplate,t.style),{...s.attrs,style:{...s.style}}},[e]);if(t.style){let s={};fo(s,t.style,t),i.style={...s,...i.style};}return i}function Ni(t=false){return (r,o,i,{latestValues:s},n)=>{let u=(Jt(r)?ji:ki)(o,s,n,r),m=Ci(o,typeof r=="string",t),l=r!==react.Fragment?{...m,...u,ref:i}:{},{children:D}=o,c=react.useMemo(()=>b(D)?D.get():D,[D]);return react.createElement(r,{...l,children:c})}}function Ui(t){let e=[{},{}];return t?.values.forEach((r,o)=>{e[0][o]=r.get(),e[1][o]=r.getVelocity();}),e}function Qt(t,e,r,o){if(typeof e=="function"){let[i,s]=Ui(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]=Ui(o);e=e(r!==void 0?r:t.custom,i,s);}return e}function te(t){return b(t)?t.get():t}function ju({scrapeMotionValuesFromProps:t,createRenderState:e},r,o,i){return {latestValues:Nu(r,o,i,t),renderState:e()}}var Ze=t=>(e,r)=>{let o=react.useContext(gt),i=react.useContext(Wt),s=()=>ju(t,e,o,i);return r?s():Di(s)};function Nu(t,e,r,o){let i={},s=o(t,{});for(let c in s)i[c]=te(s[c]);let{initial:n,animate:a}=t,u=Pt(t),m=We(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 D=l?a:n;if(D&&typeof D!="boolean"&&!Ct(D)){let c=Array.isArray(D)?D:[D];for(let f=0;f<c.length;f++){let p=Qt(t,c[f]);if(p){let{transitionEnd:g,transition:y,...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 ee(t,e,r){let{style:o}=t,i={};for(let s in o)(b(o[s])||e.style&&b(e.style[s])||ze(s,t)||r?.getValue(s)?.liveStyle!==void 0)&&(i[s]=o[s]);return i}var Gi={useVisualState:Ze({scrapeMotionValuesFromProps:ee,createRenderState:Zt})};function Je(t,e,r){let o=ee(t,e,r);for(let i in t)if(b(t[i])||b(e[i])){let s=et.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;o[s]=t[i];}return o}var Wi={useVisualState:Ze({scrapeMotionValuesFromProps:Je,createRenderState:Xe})};function $i(t,e){return function(o,{forwardMotionProps:i}={forwardMotionProps:false}){let n={...Jt(o)?Wi:Gi,preloadedFeatures:t,useRender:Ni(i),createVisualElement:e,Component:o};return Si(n)}}function ct(t,e,r){let o=t.getProps();return Qt(o,e,r!==void 0?r:o.custom,t)}var be=t=>Array.isArray(t);var Qe;function Uu(){Qe=void 0;}var w={now:()=>(Qe===void 0&&w.set(M.isProcessing||G.useManualTiming?M.timestamp:performance.now()),Qe),set:t=>{Qe=t,queueMicrotask(Uu);}};function re(t,e){t.indexOf(e)===-1&&t.push(e);}function oe(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1);}var yt=class{constructor(){this.subscriptions=[];}add(e){return re(this.subscriptions,e),()=>oe(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 tr(t,e){return e?t*(1e3/e):0}var Hi=30,Ku=t=>!isNaN(parseFloat(t)),po=class{constructor(e,r={}){this.version="__VERSION__",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,i=true)=>{let s=w.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=w.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ku(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 yt);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=w.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Hi)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Hi);return tr(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 tt(t,e){return new po(t,e)}function Gu(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,tt(r));}function Wu(t){return be(t)?t[t.length-1]||0:t}function _i(t,e){let r=ct(t,e),{transitionEnd:o={},transition:i={},...s}=r||{};s={...s,...o};for(let n in s){let a=Wu(s[n]);Gu(t,n,a);}}function Yi(t){return !!(b(t)&&t.add)}function Se(t,e){let r=t.getValue("willChange");if(Yi(r))return r.add(e);if(!r&&G.WillChange){let o=new G.WillChange("auto");t.addValue("willChange",o),o.add(e);}}function er(t){return t.props[$e]}var $u=t=>t!==null;function Xi(t,{repeat:e,repeatType:r="loop"},o){let i=t.filter($u),s=e&&r!=="loop"&&e%2===1?0:i.length-1;return !s||o===void 0?i[s]:o}var Hu={type:"spring",stiffness:500,damping:25,restSpeed:10},zu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),_u={type:"keyframes",duration:.8},Yu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qi=(t,{keyframes:e})=>e.length>2?_u:Z.has(t)?t.startsWith("scale")?zu(e[1]):Hu:Yu;function Zi({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 ie(t,e){return t?.[e]??t?.default??t}var O=t=>t*1e3,U=t=>t/1e3;var Ft=t=>Math.round(t*1e5)/1e5;var ne=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ji(t){return t==null}var Qi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var se=(t,e)=>r=>!!(typeof r=="string"&&Qi.test(r)&&r.startsWith(t)||e&&!Ji(r)&&Object.prototype.hasOwnProperty.call(r,e)),rr=(t,e,r)=>o=>{if(typeof o!="string")return o;let[i,s,n,a]=o.match(ne);return {[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(n),alpha:a!==void 0?parseFloat(a):1}};var Xu=t=>j(0,255,t),ho={...rt,transform:t=>Math.round(Xu(t))},nt={test:se("rgb","red"),parse:rr("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:o=1})=>"rgba("+ho.transform(t)+", "+ho.transform(e)+", "+ho.transform(r)+", "+Ft(Dt.transform(o))+")"};function qu(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 Ve={test:se("#"),parse:qu,transform:nt.transform};var xt={test:se("hsl","hue"),parse:rr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:o=1})=>"hsla("+Math.round(t)+", "+W.transform(Ft(e))+", "+W.transform(Ft(r))+", "+Ft(Dt.transform(o))+")"};var R={test:t=>nt.test(t)||Ve.test(t)||xt.test(t),parse:t=>nt.test(t)?nt.parse(t):xt.test(t)?xt.parse(t):Ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?nt.transform(t):xt.transform(t)};var tn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zu(t){return isNaN(t)&&typeof t=="string"&&(t.match(ne)?.length||0)+(t.match(tn)?.length||0)>0}var rn="number",on="color",Ju="var",Qu="var(",en="${}",tl=/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 wt(t){let e=t.toString(),r=[],o={color:[],number:[],var:[]},i=[],s=0,a=e.replace(tl,u=>(R.test(u)?(o.color.push(s),i.push(on),r.push(R.parse(u))):u.startsWith(Qu)?(o.var.push(s),i.push(Ju),r.push(u)):(o.number.push(s),i.push(rn),r.push(parseFloat(u))),++s,en)).split(en);return {values:r,split:a,indexes:o,types:i}}function nn(t){return wt(t).values}function sn(t){let{split:e,types:r}=wt(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===rn?s+=Ft(i[n]):a===on?s+=R.transform(i[n]):s+=i[n];}return s}}var el=t=>typeof t=="number"?0:t;function rl(t){let e=nn(t);return sn(t)(e.map(el))}var $={test:Zu,parse:nn,createTransformer:sn,getAnimatableNone:rl};function go(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 an({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=go(u,a,t+1/3),s=go(u,a,t),n=go(u,a,t-1/3);}return {red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(n*255),alpha:o}}function ae(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)},ol=[Ve,nt,xt],il=t=>ol.find(e=>e.test(t));function un(t){let e=il(t);if(Q(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return false;let r=e.parse(t);return e===xt&&(r=an(r)),r}var yo=(t,e)=>{let r=un(t),o=un(e);if(!r||!o)return ae(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),nt.transform(i))};var or=new Set(["none","hidden"]);function ln(t,e){return or.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}var nl=(t,e)=>r=>e(t(r)),st=(...t)=>t.reduce(nl);function sl(t,e){return r=>A(t,e,r)}function ir(t){return typeof t=="number"?sl:typeof t=="string"?Yt(t)?ae:R.test(t)?yo:ll:Array.isArray(t)?mn:typeof t=="object"?R.test(t)?yo:al:ae}function mn(t,e){let r=[...t],o=r.length,i=t.map((s,n)=>ir(s)(s,e[n]));return s=>{for(let n=0;n<o;n++)r[n]=i[n](s);return r}}function al(t,e){let r={...t,...e},o={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(o[i]=ir(t[i])(t[i],e[i]));return i=>{for(let s in o)r[s]=o[s](i);return r}}function ul(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 ll=(t,e)=>{let r=$.createTransformer(e),o=wt(t),i=wt(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?or.has(t)&&!i.values.length||or.has(e)&&!o.values.length?ln(t,e):st(mn(ul(o,i),i.values),r):(Q(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.`),ae(t,e))};function nr(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?A(t,e,r):ir(t)(t,e)}var Dn=t=>{let e=({timestamp:r})=>t(r);return {start:(r=true)=>E.update(e,r),stop:()=>Y(e),now:()=>M.isProcessing?M.timestamp:w.now()}};var sr=(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 ue(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 cn(t,e=100,r){let o=r({...t,keyframes:[0,e]}),i=Math.min(ue(o),2e4);return {type:"keyframes",ease:s=>o.next(i*s).value/e,duration:U(i)}}var ml=5;function ar(t,e,r){let o=Math.max(e-ml,0);return tr(r-t(o),e-o)}var S={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 xo=.001;function fn({duration:t=S.duration,bounce:e=S.bounce,velocity:r=S.velocity,mass:o=S.mass}){let i,s;Q(t<=O(S.maxDuration),"Spring duration must be 10 seconds or less");let n=1-e;n=j(S.minDamping,S.maxDamping,n),t=j(S.minDuration,S.maxDuration,U(t)),n<1?(i=m=>{let l=m*n,D=l*t,c=l-r,f=ur(m,n),p=Math.exp(-D);return xo-c/f*p},s=m=>{let D=m*n*t,c=D*r+r,f=Math.pow(n,2)*Math.pow(m,2)*t,p=Math.exp(-D),g=ur(Math.pow(m,2),n);return (-i(m)+xo>0?-1:1)*((c-f)*p)/g}):(i=m=>{let l=Math.exp(-m*t),D=(m-r)*t+1;return -1e-3+l*D},s=m=>{let l=Math.exp(-m*t),D=(r-m)*(t*t);return l*D});let a=5/t,u=cl(i,s,a);if(t=O(t),isNaN(u))return {stiffness:S.stiffness,damping:S.damping,duration:t};{let m=Math.pow(u,2)*o;return {stiffness:m,damping:n*2*Math.sqrt(o*m),duration:t}}}var Dl=12;function cl(t,e,r){let o=r;for(let i=1;i<Dl;i++)o=o-t(o)/e(o);return o}function ur(t,e){return t*Math.sqrt(1-e*e)}var fl=["duration","bounce"],pl=["stiffness","damping","mass"];function pn(t,e){return e.some(r=>t[r]!==void 0)}function hl(t){let e={velocity:S.velocity,stiffness:S.stiffness,damping:S.damping,mass:S.mass,isResolvedFromDuration:false,...t};if(!pn(t,pl)&&pn(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:S.mass,stiffness:i,damping:s};}else {let r=fn(t);e={...e,...r,mass:S.mass},e.isResolvedFromDuration=true;}return e}function le(t=S.visualDuration,e=S.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:D,velocity:c,isResolvedFromDuration:f}=hl({...r,velocity:-U(r.velocity||0)}),p=c||0,g=m/(2*Math.sqrt(u*l)),y=n-s,d=U(Math.sqrt(u/l)),x=Math.abs(y)<5;o||(o=x?S.restSpeed.granular:S.restSpeed.default),i||(i=x?S.restDelta.granular:S.restDelta.default);let h;if(g<1){let F=ur(d,g);h=B=>{let L=Math.exp(-g*d*B);return n-L*((p+g*d*y)/F*Math.sin(F*B)+y*Math.cos(F*B))};}else if(g===1)h=F=>n-Math.exp(-d*F)*(y+(p+d*y)*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*y)*Math.sinh(v)+F*y*Math.cosh(v))/F};}let T={calculatedDuration:f&&D||null,next:F=>{let B=h(F);if(f)a.done=F>=D;else {let L=F===0?p:0;g<1&&(L=F===0?O(p):ar(h,F,B));let v=Math.abs(L)<=o,H=Math.abs(n-B)<=i;a.done=v&&H;}return a.value=a.done?n:B,a},toString:()=>{let F=Math.min(ue(T),2e4),B=sr(L=>T.next(F*L).value,F,30);return F+"ms "+B},toTransition:()=>{}};return T}le.applyToOptions=t=>{let e=cn(t,100,le);return t.ease=e.ease,t.duration=O(e.duration),t.type="keyframes",t};function Pe({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 D=t[0],c={done:false,value:D},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,y=D+g,d=n===void 0?y:n(y);d!==y&&(g=d-D);let x=v=>-g*Math.exp(-v/o),h=v=>d+x(v),T=v=>{let H=x(v),q=h(v);c.done=Math.abs(H)<=m,c.value=c.done?d:q;},F,B,L=v=>{f(c.value)&&(F=v,B=le({keyframes:[c.value,p(c.value)],velocity:ar(h,v,c.value),damping:i,stiffness:s,restDelta:m,restSpeed:l}));};return L(0),{calculatedDuration:null,next:v=>{let H=false;return !B&&F===void 0&&(H=true,T(v),L(v)),F!==void 0&&v>=F?B.next(v-F):(!H&&T(v),c)}}}var ft=(t,e,r)=>{let o=e-t;return o===0?1:(r-t)/o};function dl(t,e,r){let o=[],i=r||G.mix||nr,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=st(u,a);}o.push(a);}return o}function hn(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=dl(e,o,i),u=a.length,m=l=>{if(n&&l<t[0])return e[0];let D=0;if(u>1)for(;D<t.length-2&&!(l<t[D+1]);D++);let c=ft(t[D],t[D+1],l);return a[D](c)};return r?l=>m(j(t[0],t[s-1],l)):m}function dn(t,e){let r=t[t.length-1];for(let o=1;o<=e;o++){let i=ft(0,e,o);t.push(A(r,1,i));}}function gn(t){let e=[0];return dn(e,t.length-1),e}function Cn(t,e){return t.map(r=>r*e)}var yn=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,gl=1e-7,Cl=12;function yl(t,e,r,o,i){let s,n,a=0;do n=e+(r-e)/2,s=yn(n,o,i)-t,s>0?r=n:e=n;while(Math.abs(s)>gl&&++a<Cl);return n}function Et(t,e,r,o){if(t===e&&r===o)return P;let i=s=>yl(s,0,1,t,r);return s=>s===0||s===1?s:yn(i(s),e,o)}var Fn=Et(.42,0,1,1),xn=Et(0,0,.58,1),lr=Et(.42,0,.58,1);var En=t=>Array.isArray(t)&&typeof t[0]!="number";var mr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var Dr=t=>e=>1-t(1-e);var Eo=Et(.33,1.53,.69,.99),Me=Dr(Eo),cr=mr(Me);var fr=t=>(t*=2)<1?.5*Me(t):.5*(2-Math.pow(2,-10*(t-1)));var pr=t=>1-Math.sin(Math.acos(t)),hr=Dr(pr),dr=mr(pr);var gr=t=>Array.isArray(t)&&typeof t[0]=="number";var vn={linear:P,easeIn:Fn,easeInOut:lr,easeOut:xn,circIn:pr,circInOut:dr,circOut:hr,backIn:Me,backInOut:cr,backOut:Eo,anticipate:fr},Fl=t=>typeof t=="string",vo=t=>{if(gr(t)){N(t.length===4,"Cubic bezier arrays must contain four numerical values.");let[e,r,o,i]=t;return Et(e,r,o,i)}else if(Fl(t))return N(vn[t]!==void 0,`Invalid easing type '${t}'`),vn[t];return t};function xl(t,e){return t.map(()=>e||lr).splice(0,t.length-1)}function vt({duration:t=300,keyframes:e,times:r,ease:o="easeInOut"}){let i=En(o)?o.map(vo):vo(o),s={done:false,value:e[0]},n=Cn(r&&r.length===e.length?r:gn(e),t),a=hn(n,e,{ease:Array.isArray(i)?i:xl(e,i)});return {calculatedDuration:t,next:u=>(s.value=a(u),s.done=u>=t,s)}}var El=t=>t!==null;function me(t,{repeat:e,repeatType:r="loop"},o,i=1){let s=t.filter(El),a=i<0||e&&r!=="loop"&&e%2===1?0:s.length-1;return !a||o===void 0?s[a]:o}var vl={decay:Pe,inertia:Pe,tween:vt,keyframes:vt,spring:le};function Cr(t){typeof t.type=="string"&&(t.type=vl[t.type]);}var At=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 Al=t=>t/100,Tt=class extends At{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!==w.now()&&this.tick(w.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=vt,repeat:o=0,repeatDelay:i=0,repeatType:s,velocity:n=0}=e,{keyframes:a}=e,u=r||vt;process.env.NODE_ENV!=="production"&&u!==vt&&N(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`),u!==vt&&typeof a[0]!="number"&&(this.mixKeyframes=st(Al,nr(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=ue(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:D,repeatType:c,repeatDelay:f,type:p,onUpdate:g,finalKeyframe:y}=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.playbackSpeed>=0?d<0:d>i;this.currentTime=Math.max(d,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let h=this.currentTime,T=o;if(D){let v=Math.min(this.currentTime,i)/a,H=Math.floor(v),q=v%1;!q&&v>=1&&(q=1),q===1&&H--,H=Math.min(H,D+1),!!(H%2)&&(c==="reverse"?(q=1-q,f&&(q-=f/a)):c==="mirror"&&(T=n)),h=j(0,1,q)*a;}let F=x?{done:false,value:l[0]}:T.next(h);s&&(F.value=s(F.value));let{done:B}=F;!x&&u!==null&&(B=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return L&&p!==Pe&&(F.value=me(l,this.options,y,this.speed)),g&&g(F.value),L&&this.finish(),F}then(e,r){return this.finished.then(e,r)}get duration(){return U(this.calculatedDuration)}get time(){return U(this.currentTime)}set time(e){e=O(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(false);}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(w.now());let r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=U(this.currentTime));}play(){if(this.isStopped)return;let{driver:e=Dn,onPlay:r,startTime:o}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),r&&r();let i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=o??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start();}pause(){this.state="paused",this.updateTime(w.now()),this.holdTime=this.currentTime;}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null;}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e();}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown();}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null;}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0);}sample(e){return this.startTime=0,this.tick(e,true)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function An(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1]);}var Rt=t=>t*180/Math.PI,Ao=t=>{let e=Rt(Math.atan2(t[1],t[0]));return To(e)},Tl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ao,rotateZ:Ao,skewX:t=>Rt(Math.atan(t[1])),skewY:t=>Rt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},To=t=>(t=t%360,t<0&&(t+=360),t),Tn=Ao,Bn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),bn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Bl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bn,scaleY:bn,scale:t=>(Bn(t)+bn(t))/2,rotateX:t=>To(Rt(Math.atan2(t[6],t[5]))),rotateY:t=>To(Rt(Math.atan2(-t[2],t[0]))),rotateZ:Tn,rotate:Tn,skewX:t=>Rt(Math.atan(t[4])),skewY:t=>Rt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Sn(t){return t.includes("scale")?1:0}function yr(t,e){if(!t||t==="none")return Sn(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,i;if(r)o=Bl,i=r;else {let a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Tl,i=a;}if(!i)return Sn(e);let s=o[e],n=i[1].split(",").map(bl);return typeof s=="function"?s(n):n[s]}var Vn=(t,e)=>{let{transform:r="none"}=getComputedStyle(t);return yr(r,e)};function bl(t){return parseFloat(t.trim())}var Bo=t=>t===rt||t===C,Sl=new Set(["x","y","z"]),Vl=et.filter(t=>!Sl.has(t));function Pn(t){let e=[];return Vl.forEach(r=>{let o=t.getValue(r);o!==void 0&&(e.push([r,o.get()]),o.set(r.startsWith("scale")?1:0));}),e}var Bt={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>yr(e,"x"),y:(t,{transform:e})=>yr(e,"y")};Bt.translateX=Bt.x;Bt.translateY=Bt.y;var Lt=new Set,bo=false,So=false,Vo=false;function Mn(){if(So){let t=Array.from(Lt).filter(o=>o.needsMeasurement),e=new Set(t.map(o=>o.element)),r=new Map;e.forEach(o=>{let i=Pn(o);i.length&&(r.set(o,i),o.render());}),t.forEach(o=>o.measureInitialState()),e.forEach(o=>{o.render();let i=r.get(o);i&&i.forEach(([s,n])=>{o.getValue(s)?.set(n);});}),t.forEach(o=>o.measureEndState()),t.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY);});}So=false,bo=false,Lt.forEach(t=>t.complete(Vo)),Lt.clear();}function wn(){Lt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(So=true);});}function Rn(){Vo=true,wn(),Mn(),Vo=false;}var bt=class{constructor(e,r,o,i,s,n=false){this.state="pending",this.isAsync=false,this.needsMeasurement=false,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=o,this.motionValue=i,this.element=s,this.isAsync=n;}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),bo||(bo=true,E.read(wn),E.resolveKeyframes(Mn))):(this.readKeyframes(),this.complete());}readKeyframes(){let{unresolvedKeyframes:e,name:r,element:o,motionValue:i}=this;if(e[0]===null){let s=i?.get(),n=e[e.length-1];if(s!==void 0)e[0]=s;else if(o&&r){let a=o.readValue(r,n);a!=null&&(e[0]=a);}e[0]===void 0&&(e[0]=n),i&&s===void 0&&i.set(e[0]);}An(e);}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=false){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Lt.delete(this);}cancel(){this.state==="scheduled"&&(Lt.delete(this),this.state="pending");}resume(){this.state==="pending"&&this.scheduleResolve();}};var Ln=t=>t.startsWith("--");function kn(t,e,r){Ln(e)?t.style.setProperty(e,r):t.style[e]=r;}function De(t){let e;return ()=>(e===void 0&&(e=t()),e)}var On=De(()=>window.ScrollTimeline!==void 0);var In={};function jn(t,e){let r=De(t);return ()=>In[e]??r()}var Fr=jn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"});}catch{return false}return true},"linearEasing");var kt=([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`;var Po={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kt([0,.65,.55,1]),circOut:kt([.55,0,1,.45]),backIn:kt([.31,.01,.66,-0.59]),backOut:kt([.33,1.53,.69,.99])};function Mo(t,e){if(t)return typeof t=="function"?Fr()?sr(t,e):"ease-out":gr(t)?kt(t):Array.isArray(t)?t.map(r=>Mo(r,e)||Po.easeOut):Po[t]}function Nn(t,e,r,{delay:o=0,duration:i=300,repeat:s=0,repeatType:n="loop",ease:a="easeOut",times:u}={},m=void 0){let l={[e]:r};u&&(l.offset=u);let D=Mo(a,i);Array.isArray(D)&&(l.easing=D);let c={delay:o,duration:i,easing:Array.isArray(D)?"linear":D,fill:"both",iterations:s+1,direction:n==="reverse"?"alternate":"normal"};m&&(c.pseudoElement=m);let f=t.animate(l,c);return f}function xr(t){return typeof t=="function"&&"applyToOptions"in t}function Un({type:t,...e}){return xr(t)&&Fr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var Er=class extends At{constructor(e){if(super(),this.finishedTime=null,this.isStopped=false,!e)return;let{element:r,name:o,keyframes:i,pseudoElement:s,allowFlatten:n=false,finalKeyframe:a,onComplete:u}=e;this.isPseudoElement=!!s,this.allowFlatten=n,this.options=e,N(typeof e.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let m=Un(e);this.animation=Nn(r,o,i,m,s),m.autoplay===false&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let l=me(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(l):kn(r,o,l),this.animation.cancel();}u?.(),this.notifyFinished();},this.animation.oncancel=()=>this.notifyFinished();}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished());}pause(){this.animation.pause();}complete(){this.animation.finish?.();}cancel(){try{this.animation.cancel();}catch{}}stop(){if(this.isStopped)return;this.isStopped=true;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel());}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.();}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return U(Number(e))}get time(){return U(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=O(e);}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e;}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e;}attachTimeline({timeline:e,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&On()?(this.animation.timeline=e,P):r(this)}};var Kn={anticipate:fr,backInOut:cr,circInOut:dr};function Pl(t){return t in Kn}function Gn(t){typeof t.ease=="string"&&Pl(t.ease)&&(t.ease=Kn[t.ease]);}var Wn=10,vr=class extends Er{constructor(e){Gn(e),Cr(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e;}updateMotionValue(e){let{motionValue:r,onUpdate:o,onComplete:i,element:s,...n}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}let a=new Tt({...n,autoplay:false}),u=O(this.finishedTime??this.time);r.setWithVelocity(a.sample(u-Wn).value,a.sample(u).value,Wn),a.stop();}};var wo=(t,e)=>e==="zIndex"?false:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($.test(t)||t==="0")&&!t.startsWith("url("));function Ml(t){let e=t[0];if(t.length===1)return true;for(let r=0;r<t.length;r++)if(t[r]!==e)return true}function $n(t,e,r,o){let i=t[0];if(i===null)return false;if(e==="display"||e==="visibility")return true;let s=t[t.length-1],n=wo(i,e),a=wo(s,e);return Q(n===a,`You are trying to animate ${e} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!n||!a?false:Ml(t)||(r==="spring"||xr(r))&&o}var wl=new Set(["opacity","clipPath","filter","transform"]),Rl=De(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Hn(t){let{motionValue:e,name:r,repeatDelay:o,repeatType:i,damping:s,type:n}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return false;let{onUpdate:a,transformTemplate:u}=e.owner.getProps();return Rl()&&r&&wl.has(r)&&(r!=="transform"||!u)&&!a&&!o&&i!=="mirror"&&s!==0&&n!=="inertia"}var Ll=40,Ar=class extends At{constructor({autoplay:e=true,delay:r=0,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:n="loop",keyframes:a,name:u,motionValue:m,element:l,...D}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel();},this.createdAt=w.now();let c={autoplay:e,delay:r,type:o,repeat:i,repeatDelay:s,repeatType:n,name:u,motionValue:m,element:l,...D},f=l?.KeyframeResolver||bt;this.keyframeResolver=new f(a,(p,g,y)=>this.onKeyframesResolved(p,g,c,!y),u,m,l),this.keyframeResolver?.scheduleResolve();}onKeyframesResolved(e,r,o,i){this.keyframeResolver=void 0;let{name:s,type:n,velocity:a,delay:u,isHandoff:m,onUpdate:l}=o;this.resolvedAt=w.now(),$n(e,s,n,a)||((G.instantAnimations||!u)&&l?.(me(e,o,r)),e[0]=e[e.length-1],o.duration=0,o.repeat=0);let c={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ll?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:e},f=!m&&Hn(c)?new vr({...c,element:c.motionValue.owner.current}):new Tt(c);f.finished.then(()=>this.notifyFinished()).catch(P),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f;}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Rn()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e;}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e;}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play();}pause(){this.animation.pause();}complete(){this.animation.complete();}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel();}};var ce=(t,e,r,o={},i,s)=>n=>{let a=ie(o,t)||{},u=a.delay||o.delay||0,{elapsed:m=0}=o;m=m-O(u);let l={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-m,onUpdate:c=>{e.set(c),a.onUpdate&&a.onUpdate(c);},onComplete:()=>{n(),a.onComplete&&a.onComplete();},name:t,motionValue:e,element:s?void 0:i};Zi(a)||Object.assign(l,qi(t,l)),l.duration&&(l.duration=O(l.duration)),l.repeatDelay&&(l.repeatDelay=O(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let D=false;if((l.type===false||l.duration===0&&!l.repeatDelay)&&(l.duration=0,l.delay===0&&(D=true)),(G.instantAnimations||G.skipAnimations)&&(D=true,l.duration=0,l.delay=0),l.allowFlatten=!a.type&&!a.ease,D&&!s&&e.get()!==void 0){let c=Xi(l.keyframes,a);if(c!==void 0){E.update(()=>{l.onUpdate(c),l.onComplete();});return}}return a.isSync?new Tt(l):new Ar(l)};var Tr=new Set(["width","height","top","left","right","bottom",...et]);function kl({protectedKeys:t,needsAnimating:e},r){let o=t.hasOwnProperty(r)&&e[r]!==true;return e[r]=false,o}function Br(t,e,{delay:r=0,transitionOverride:o,type:i}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:n,...a}=e;o&&(s=o);let u=[],m=i&&t.animationState&&t.animationState.getState()[i];for(let l in a){let D=t.getValue(l,t.latestValues[l]??null),c=a[l];if(c===void 0||m&&kl(m,l))continue;let f={delay:r,...ie(s||{},l)},p=D.get();if(p!==void 0&&!D.isAnimating&&!Array.isArray(c)&&c===p&&!f.velocity)continue;let g=false;if(window.MotionHandoffAnimation){let d=er(t);if(d){let x=window.MotionHandoffAnimation(d,l,E);x!==null&&(f.startTime=x,g=true);}}Se(t,l),D.start(ce(l,D,c,t.shouldReduceMotion&&Tr.has(l)?{type:false}:f,t,g));let y=D.animation;y&&u.push(y);}return n&&Promise.all(u).then(()=>{E.update(()=>{n&&_i(t,n);});}),u}function br(t,e,r={}){let o=ct(t,e,r.type==="exit"?t.presenceContext?.custom:void 0),{transition:i=t.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let s=o?()=>Promise.all(Br(t,o,r)):()=>Promise.resolve(),n=t.variantChildren&&t.variantChildren.size?(u=0)=>{let{delayChildren:m=0,staggerChildren:l,staggerDirection:D}=i;return Ol(t,e,m+u,l,D,r)}:()=>Promise.resolve(),{when:a}=i;if(a){let[u,m]=a==="beforeChildren"?[s,n]:[n,s];return u().then(()=>m())}else return Promise.all([s(),n(r.delay)])}function Ol(t,e,r=0,o=0,i=1,s){let n=[],a=(t.variantChildren.size-1)*o,u=i===1?(m=0)=>m*o:(m=0)=>a-m*o;return Array.from(t.variantChildren).sort(Il).forEach((m,l)=>{m.notify("AnimationStart",e),n.push(br(m,e,{...s,delay:r+u(l)}).then(()=>m.notify("AnimationComplete",e)));}),Promise.all(n)}function Il(t,e){return t.sortNodePosition(e)}function zn(t,e,r={}){t.notify("AnimationStart",e);let o;if(Array.isArray(e)){let i=e.map(s=>br(t,s,r));o=Promise.all(i);}else if(typeof e=="string")o=br(t,e,r);else {let i=typeof e=="function"?ct(t,e,r.custom):e;o=Promise.all(Br(t,i,r));}return o.then(()=>{t.notify("AnimationComplete",e);})}function Ro(t,e){if(!Array.isArray(e))return false;let r=e.length;if(r!==t.length)return false;for(let o=0;o<r;o++)if(e[o]!==t[o])return false;return true}var jl=ve.length;function Lo(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent?Lo(t.parent)||{}:{};return t.props.initial!==void 0&&(r.initial=t.props.initial),r}let e={};for(let r=0;r<jl;r++){let o=ve[r],i=t.props[o];(lt(i)||i===false)&&(e[o]=i);}return e}var Nl=[...Ge].reverse(),Ul=Ge.length;function Kl(t){return e=>Promise.all(e.map(({animation:r,options:o})=>zn(t,r,o)))}function Yn(t){let e=Kl(t),r=_n(),o=true,i=u=>(m,l)=>{let D=ct(t,l,u==="exit"?t.presenceContext?.custom:void 0);if(D){let{transition:c,transitionEnd:f,...p}=D;m={...m,...p,...f};}return m};function s(u){e=u(t);}function n(u){let{props:m}=t,l=Lo(t.parent)||{},D=[],c=new Set,f={},p=1/0;for(let y=0;y<Ul;y++){let d=Nl[y],x=r[d],h=m[d]!==void 0?m[d]:l[d],T=lt(h),F=d===u?x.isActive:null;F===false&&(p=y);let B=h===l[d]&&h!==m[d]&&T;if(B&&o&&t.manuallyAnimateOnMount&&(B=false),x.protectedKeys={...f},!x.isActive&&F===null||!h&&!x.prevProp||Ct(h)||typeof h=="boolean")continue;let L=Gl(x.prevProp,h),v=L||d===u&&x.isActive&&!B&&T||y>p&&T,H=false,q=Array.isArray(h)?h:[h],Kt=q.reduce(i(d),{});F===false&&(Kt={});let{prevResolvedValues:si={}}=x,Na={...si,...Kt},ai=K=>{v=true,c.has(K)&&(H=true,c.delete(K)),x.needsAnimating[K]=true;let at=t.getValue(K);at&&(at.liveStyle=false);};for(let K in Na){let at=Kt[K],ao=si[K];if(f.hasOwnProperty(K))continue;let uo=false;be(at)&&be(ao)?uo=!Ro(at,ao):uo=at!==ao,uo?at!=null?ai(K):c.add(K):at!==void 0&&c.has(K)?ai(K):x.protectedKeys[K]=true;}x.prevProp=h,x.prevResolvedValues=Kt,x.isActive&&(f={...f,...Kt}),o&&t.blockInitialAnimation&&(v=false),v&&(!(B&&L)||H)&&D.push(...q.map(K=>({animation:K,options:{type:d}})));}if(c.size){let y={};if(typeof m.initial!="boolean"){let d=ct(t,Array.isArray(m.initial)?m.initial[0]:m.initial);d&&d.transition&&(y.transition=d.transition);}c.forEach(d=>{let x=t.getBaseTarget(d),h=t.getValue(d);h&&(h.liveStyle=true),y[d]=x??null;}),D.push({animation:y});}let g=!!D.length;return o&&(m.initial===false||m.initial===m.animate)&&!t.manuallyAnimateOnMount&&(g=false),o=false,g?e(D):Promise.resolve()}function a(u,m){if(r[u].isActive===m)return Promise.resolve();t.variantChildren?.forEach(D=>D.animationState?.setActive(u,m)),r[u].isActive=m;let l=n(u);for(let D in r)r[D].protectedKeys={};return l}return {animateChanges:n,setActive:a,setAnimateFunction:s,getState:()=>r,reset:()=>{r=_n(),o=true;}}}function Gl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ro(e,t):false}function Ot(t=false){return {isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _n(){return {animate:Ot(true),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}var I=class{constructor(e){this.isMounted=false,this.node=e;}update(){}};var Sr=class extends I{constructor(e){super(e),e.animationState||(e.animationState=Yn(e));}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ct(e)&&(this.unmountControls=e.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){let{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription();}unmount(){this.node.animationState.reset(),this.unmountControls?.();}};var Wl=0,Vr=class extends I{constructor(){super(...arguments),this.id=Wl++;}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===o)return;let i=this.node.animationState.setActive("exit",!e);r&&!e&&i.then(()=>{r(this.id);});}mount(){let{register:e,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),e&&(this.unmount=e(this.id));}unmount(){}};var Xn={animation:{Feature:Sr},exit:{Feature:Vr}};function pt(t,e,r,o={passive:true}){return t.addEventListener(e,r,o),()=>t.removeEventListener(e,r)}var fe=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==false;function ht(t){return {point:{x:t.pageX,y:t.pageY}}}var qn=t=>e=>fe(e)&&t(e,ht(e));function St(t,e,r,o){return pt(t,e,qn(r),o)}function Pr({top:t,left:e,right:r,bottom:o}){return {x:{min:e,max:r},y:{min:t,max:o}}}function Zn({x:t,y:e}){return {top:e.min,right:t.max,bottom:e.max,left:t.min}}function Jn(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return {top:r.y,left:r.x,bottom:o.y,right:o.x}}var rs=1e-4,$l=1-rs,Hl=1+rs,os=.01,zl=0-os,_l=0+os;function k(t){return t.max-t.min}function is(t,e,r){return Math.abs(t-e)<=r}function Qn(t,e,r,o=.5){t.origin=o,t.originPoint=A(e.min,e.max,t.origin),t.scale=k(r)/k(e),t.translate=A(r.min,r.max,t.origin)-t.originPoint,(t.scale>=$l&&t.scale<=Hl||isNaN(t.scale))&&(t.scale=1),(t.translate>=zl&&t.translate<=_l||isNaN(t.translate))&&(t.translate=0);}function pe(t,e,r,o){Qn(t.x,e.x,r.x,o?o.originX:void 0),Qn(t.y,e.y,r.y,o?o.originY:void 0);}function ts(t,e,r){t.min=r.min+e.min,t.max=t.min+k(e);}function ns(t,e,r){ts(t.x,e.x,r.x),ts(t.y,e.y,r.y);}function es(t,e,r){t.min=e.min-r.min,t.max=t.min+k(e);}function he(t,e,r){es(t.x,e.x,r.x),es(t.y,e.y,r.y);}var ss=()=>({translate:0,scale:1,origin:0,originPoint:0}),It=()=>({x:ss(),y:ss()}),as=()=>({min:0,max:0}),V=()=>({x:as(),y:as()});function z(t){return [t("x"),t("y")]}function ko(t){return t===void 0||t===1}function Mr({scale:t,scaleX:e,scaleY:r}){return !ko(t)||!ko(e)||!ko(r)}function dt(t){return Mr(t)||Oo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Oo(t){return us(t.x)||us(t.y)}function us(t){return t&&t!=="0%"}function we(t,e,r){let o=t-r,i=e*o;return r+i}function ls(t,e,r,o,i){return i!==void 0&&(t=we(t,i,o)),we(t,r,o)+e}function Io(t,e=0,r=1,o,i){t.min=ls(t.min,e,r,o,i),t.max=ls(t.max,e,r,o,i);}function jo(t,{x:e,y:r}){Io(t.x,e.translate,e.scale,e.originPoint),Io(t.y,r.translate,r.scale,r.originPoint);}var ms=.999999999999,Ds=1.0000000000001;function fs(t,e,r,o=false){let i=r.length;if(!i)return;e.x=e.y=1;let s,n;for(let a=0;a<i;a++){s=r[a],n=s.projectionDelta;let{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&jt(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,jo(t,n)),o&&dt(s.latestValues)&&jt(t,s.latestValues));}e.x<Ds&&e.x>ms&&(e.x=1),e.y<Ds&&e.y>ms&&(e.y=1);}function Vt(t,e){t.min=t.min+e,t.max=t.max+e;}function cs(t,e,r,o,i=.5){let s=A(t.min,t.max,i);Io(t,e,r,s,o);}function jt(t,e){cs(t.x,e.x,e.scaleX,e.scale,e.originX),cs(t.y,e.y,e.scaleY,e.scale,e.originY);}function No(t,e){return Pr(Jn(t.getBoundingClientRect(),e))}function ps(t,e,r){let o=No(t,r),{scroll:i}=e;return i&&(Vt(o.x,i.offset.x),Vt(o.y,i.offset.y)),o}var wr=({current:t})=>t?t.ownerDocument.defaultView:null;var hs=(t,e)=>Math.abs(t-e);function ds(t,e){let r=hs(t.x,e.x),o=hs(t.y,e.y);return Math.sqrt(r**2+o**2)}var de=class{constructor(e,r,{transformPagePoint:o,contextWindow:i,dragSnapToOrigin:s=false}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let D=Ko(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=ds(D.offset,{x:0,y:0})>=3;if(!c&&!f)return;let{point:p}=D,{timestamp:g}=M;this.history.push({...p,timestamp:g});let{onStart:y,onMove:d}=this.handlers;c||(y&&y(this.lastMoveEvent,D),this.startEvent=this.lastMoveEvent),d&&d(this.lastMoveEvent,D);},this.handlePointerMove=(D,c)=>{this.lastMoveEvent=D,this.lastMoveEventInfo=Uo(c,this.transformPagePoint),E.update(this.updatePoint,true);},this.handlePointerUp=(D,c)=>{this.end();let{onEnd:f,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=Ko(D.type==="pointercancel"?this.lastMoveEventInfo:Uo(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(D,y),p&&p(D,y);},!fe(e))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=o,this.contextWindow=i||window;let n=ht(e),a=Uo(n,this.transformPagePoint),{point:u}=a,{timestamp:m}=M;this.history=[{...u,timestamp:m}];let{onSessionStart:l}=r;l&&l(e,Ko(a,this.history)),this.removeListeners=st(St(this.contextWindow,"pointermove",this.handlePointerMove),St(this.contextWindow,"pointerup",this.handlePointerUp),St(this.contextWindow,"pointercancel",this.handlePointerUp));}updateHandlers(e){this.handlers=e;}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint);}};function Uo(t,e){return e?{point:e(t.point)}:t}function gs(t,e){return {x:t.x-e.x,y:t.y-e.y}}function Ko({point:t},e){return {point:t,delta:gs(t,Cs(e)),offset:gs(t,Yl(e)),velocity:Xl(e,.1)}}function Yl(t){return t[0]}function Cs(t){return t[t.length-1]}function Xl(t,e){if(t.length<2)return {x:0,y:0};let r=t.length-1,o=null,i=Cs(t);for(;r>=0&&(o=t[r],!(i.timestamp-o.timestamp>O(e)));)r--;if(!o)return {x:0,y:0};let s=U(i.timestamp-o.timestamp);if(s===0)return {x:0,y:0};let n={x:(i.x-o.x)/s,y:(i.y-o.y)/s};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}function vs(t,{min:e,max:r},o){return e!==void 0&&t<e?t=o?A(e,t,o.min):Math.max(t,e):r!==void 0&&t>r&&(t=o?A(r,t,o.max):Math.min(t,r)),t}function ys(t,e,r){return {min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function As(t,{top:e,left:r,bottom:o,right:i}){return {x:ys(t.x,r,i),y:ys(t.y,e,o)}}function Fs(t,e){let r=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,o]=[o,r]),{min:r,max:o}}function Ts(t,e){return {x:Fs(t.x,e.x),y:Fs(t.y,e.y)}}function Bs(t,e){let r=.5,o=k(t),i=k(e);return i>o?r=ft(e.min,e.max-o,t.min):o>i&&(r=ft(t.min,t.max-i,e.min)),j(0,1,r)}function bs(t,e){let r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}var Rr=.35;function Ss(t=Rr){return t===false?t=0:t===true&&(t=Rr),{x:xs(t,"left","right"),y:xs(t,"top","bottom")}}function xs(t,e,r){return {min:Es(t,e),max:Es(t,r)}}function Es(t,e){return typeof t=="number"?t:t[e]||0}var J={x:false,y:false};function Lr(){return J.x||J.y}function Vs(t){return t==="x"||t==="y"?J[t]?null:(J[t]=true,()=>{J[t]=false;}):J.x||J.y?null:(J.x=J.y=true,()=>{J.x=J.y=false;})}var ql=new WeakMap,Or=class{constructor(e){this.openDragLock=null,this.isDragging=false,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=false,this.hasMutatedConstraints=false,this.elastic=V(),this.visualElement=e;}start(e,{snapToCursor:r=false}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===false)return;let i=l=>{let{dragSnapToOrigin:D}=this.getProps();D?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(ht(l).point);},s=(l,D)=>{let{drag:c,dragPropagation:f,onDragStart:p}=this.getProps();if(c&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vs(c),!this.openDragLock))return;this.isDragging=true,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=true,this.visualElement.projection.target=void 0),z(y=>{let d=this.getAxisMotionValue(y).get()||0;if(W.test(d)){let{projection:x}=this.visualElement;if(x&&x.layout){let h=x.layout.layoutBox[y];h&&(d=k(h)*(parseFloat(d)/100));}}this.originPoint[y]=d;}),p&&E.postRender(()=>p(l,D)),Se(this.visualElement,"transform");let{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",true);},n=(l,D)=>{let{dragPropagation:c,dragDirectionLock:f,onDirectionLock:p,onDrag:g}=this.getProps();if(!c&&!this.openDragLock)return;let{offset:y}=D;if(f&&this.currentDirection===null){this.currentDirection=Zl(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",D.point,y),this.updateAxis("y",D.point,y),this.visualElement.render(),g&&g(l,D);},a=(l,D)=>this.stop(l,D),u=()=>z(l=>this.getAnimationState(l)==="paused"&&this.getAxisMotionValue(l).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new de(e,{onSessionStart:i,onStart:s,onMove:n,onSessionEnd:a,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:wr(this.visualElement)});}stop(e,r){let o=this.isDragging;if(this.cancel(),!o)return;let{velocity:i}=r;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&E.postRender(()=>s(e,r));}cancel(){this.isDragging=false;let{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=false),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",false);}updateAxis(e,r,o){let{drag:i}=this.getProps();if(!o||!kr(e,i,this.currentDirection))return;let s=this.getAxisMotionValue(e),n=this.originPoint[e]+o[e];this.constraints&&this.constraints[e]&&(n=vs(n,this.constraints[e],this.elastic[e])),s.set(n);}resolveConstraints(){let{dragConstraints:e,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(false):this.visualElement.projection?.layout,i=this.constraints;e&&mt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&o?this.constraints=As(o.layoutBox,e):this.constraints=false,this.elastic=Ss(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&z(s=>{this.constraints!==false&&this.getAxisMotionValue(s)&&(this.constraints[s]=bs(o.layoutBox[s],this.constraints[s]));});}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!mt(e))return false;let o=e.current;N(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return false;let s=ps(o,i.root,this.visualElement.getTransformPagePoint()),n=Ts(i.layout.layoutBox,s);if(r){let a=r(Zn(n));this.hasMutatedConstraints=!!a,a&&(n=Pr(a));}return n}startAnimation(e){let{drag:r,dragMomentum:o,dragElastic:i,dragTransition:s,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},m=z(l=>{if(!kr(l,r,this.currentDirection))return;let D=u&&u[l]||{};n&&(D={min:0,max:0});let c=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:o?e[l]:0,bounceStiffness:c,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...s,...D};return this.startAxisValueAnimation(l,p)});return Promise.all(m).then(a)}startAxisValueAnimation(e,r){let o=this.getAxisMotionValue(e);return Se(this.visualElement,e),o.start(ce(e,o,0,r,this.visualElement,false))}stopAnimation(){z(e=>this.getAxisMotionValue(e).stop());}pauseAnimation(){z(e=>this.getAxisMotionValue(e).animation?.pause());}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let r=`_drag${e.toUpperCase()}`,o=this.visualElement.getProps(),i=o[r];return i||this.visualElement.getValue(e,(o.initial?o.initial[e]:void 0)||0)}snapToCursor(e){z(r=>{let{drag:o}=this.getProps();if(!kr(r,o,this.currentDirection))return;let{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){let{min:n,max:a}=i.layout.layoutBox[r];s.set(e[r]-A(n,a,.5));}});}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!mt(r)||!o||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};z(n=>{let a=this.getAxisMotionValue(n);if(a&&this.constraints!==false){let u=a.get();i[n]=Bs({min:u,max:u},this.constraints[n]);}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),z(n=>{if(!kr(n,e,null))return;let a=this.getAxisMotionValue(n),{min:u,max:m}=this.constraints[n];a.set(A(u,m,i[n]));});}addListeners(){if(!this.visualElement.current)return;ql.set(this.visualElement,this);let e=this.visualElement.current,r=St(e,"pointerdown",u=>{let{drag:m,dragListener:l=true}=this.getProps();m&&l&&this.start(u);}),o=()=>{let{dragConstraints:u}=this.getProps();mt(u)&&u.current&&(this.constraints=this.resolveRefConstraints());},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),E.read(o);let n=pt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:m})=>{this.isDragging&&m&&(z(l=>{let D=this.getAxisMotionValue(l);D&&(this.originPoint[l]+=u[l].translate,D.set(D.get()+u[l].translate));}),this.visualElement.render());});return ()=>{n(),r(),s(),a&&a();}}getProps(){let e=this.visualElement.getProps(),{drag:r=false,dragDirectionLock:o=false,dragPropagation:i=false,dragConstraints:s=false,dragElastic:n=Rr,dragMomentum:a=true}=e;return {...e,drag:r,dragDirectionLock:o,dragPropagation:i,dragConstraints:s,dragElastic:n,dragMomentum:a}}};function kr(t,e,r){return (e===true||e===t)&&(r===null||r===t)}function Zl(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}var Ir=class extends I{constructor(e){super(e),this.removeGroupControls=P,this.removeListeners=P,this.controls=new Or(e);}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P;}unmount(){this.removeGroupControls(),this.removeListeners();}};var Ps=t=>(e,r)=>{t&&E.postRender(()=>t(e,r));},jr=class extends I{constructor(){super(...arguments),this.removePointerDownListener=P;}onPointerDown(e){this.session=new de(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wr(this.node)});}createPanHandlers(){let{onPanSessionStart:e,onPanStart:r,onPan:o,onPanEnd:i}=this.node.getProps();return {onSessionStart:Ps(e),onStart:Ps(r),onMove:o,onEnd:(s,n)=>{delete this.session,i&&E.postRender(()=>i(s,n));}}}mount(){this.removePointerDownListener=St(this.node.current,"pointerdown",e=>this.onPointerDown(e));}update(){this.session&&this.session.updateHandlers(this.createPanHandlers());}unmount(){this.removePointerDownListener(),this.session&&this.session.end();}};var ge={hasAnimatedSinceResize:true,hasEverUpdated:false};function Ms(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Ce={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;let r=Ms(t,e.target.x),o=Ms(t,e.target.y);return `${r}% ${o}%`}};var ws={correct:(t,{treeScale:e,projectionDelta:r})=>{let o=t,i=$.parse(t);if(i.length>5)return o;let s=$.createTransformer(t),n=typeof i[0]!="number"?1:0,a=r.x.scale*e.x,u=r.y.scale*e.y;i[0+n]/=a,i[1+n]/=u;let m=A(a,u,.5);return typeof i[2+n]=="number"&&(i[2+n]/=m),typeof i[3+n]=="number"&&(i[3+n]/=m),s(i)}};var Go=class extends react.Component{componentDidMount(){let{visualElement:e,layoutGroup:r,switchLayoutGroup:o,layoutId:i}=this.props,{projection:s}=e;Pi(tm),s&&(r.group&&r.group.add(s),o&&o.register&&i&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove();}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ge.hasEverUpdated=true;}getSnapshotBeforeUpdate(e){let{layoutDependency:r,visualElement:o,drag:i,isPresent:s}=this.props,{projection:n}=o;return n&&(n.isPresent=s,i||e.layoutDependency!==r||r===void 0||e.isPresent!==s?n.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?n.promote():n.relegate()||E.postRender(()=>{let a=n.getStack();(!a||!a.members.length)&&this.safeToRemove();}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),zt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove();}));}componentWillUnmount(){let{visualElement:e,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),o&&o.deregister&&o.deregister(i));}safeToRemove(){let{safeToRemove:e}=this.props;e&&e();}render(){return null}};function Nr(t){let[e,r]=fi(),o=react.useContext(Ie);return jsxRuntime.jsx(Go,{...t,layoutGroup:o,switchLayoutGroup:react.useContext(He),isPresent:e,safeToRemove:r})}var tm={borderRadius:{...Ce,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ce,borderTopRightRadius:Ce,borderBottomLeftRadius:Ce,borderBottomRightRadius:Ce,boxShadow:ws};function Ls(t,e,r){let o=b(t)?t:tt(t);return o.start(ce("",o,e,r)),o.animation}function ks(t){return t instanceof SVGElement&&t.tagName!=="svg"}var Os=(t,e)=>t.depth-e.depth;var Ur=class{constructor(){this.children=[],this.isDirty=false;}add(e){re(this.children,e),this.isDirty=true;}remove(e){oe(this.children,e),this.isDirty=true;}forEach(e){this.isDirty&&this.children.sort(Os),this.isDirty=false,this.children.forEach(e);}};function Is(t,e){let r=w.now(),o=({timestamp:i})=>{let s=i-r;s>=e&&(Y(o),t(s-e));};return E.setup(o,true),()=>Y(o)}var Ks=["TopLeft","TopRight","BottomLeft","BottomRight"],em=Ks.length,js=t=>typeof t=="string"?parseFloat(t):t,Ns=t=>typeof t=="number"||C.test(t);function Gs(t,e,r,o,i,s){i?(t.opacity=A(0,r.opacity??1,rm(o)),t.opacityExit=A(e.opacity??1,0,om(o))):s&&(t.opacity=A(e.opacity??1,r.opacity??1,o));for(let n=0;n<em;n++){let a=`border${Ks[n]}Radius`,u=Us(e,a),m=Us(r,a);if(u===void 0&&m===void 0)continue;u||(u=0),m||(m=0),u===0||m===0||Ns(u)===Ns(m)?(t[a]=Math.max(A(js(u),js(m),o),0),(W.test(m)||W.test(u))&&(t[a]+="%")):t[a]=m;}(e.rotate||r.rotate)&&(t.rotate=A(e.rotate||0,r.rotate||0,o));}function Us(t,e){return t[e]!==void 0?t[e]:t.borderRadius}var rm=Ws(0,.5,hr),om=Ws(.5,.95,P);function Ws(t,e,r){return o=>o<t?0:o>e?1:r(ft(t,e,o))}function $s(t,e){t.min=e.min,t.max=e.max;}function X(t,e){$s(t.x,e.x),$s(t.y,e.y);}function Wo(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin;}function Hs(t,e,r,o,i){return t-=e,t=we(t,1/r,o),i!==void 0&&(t=we(t,1/i,o)),t}function im(t,e=0,r=1,o=.5,i,s=t,n=t){if(W.test(e)&&(e=parseFloat(e),e=A(n.min,n.max,e/100)-n.min),typeof e!="number")return;let a=A(s.min,s.max,o);t===s&&(a-=e),t.min=Hs(t.min,e,r,a,i),t.max=Hs(t.max,e,r,a,i);}function zs(t,e,[r,o,i],s,n){im(t,e[r],e[o],e[i],e.scale,s,n);}var nm=["x","scaleX","originX"],sm=["y","scaleY","originY"];function $o(t,e,r,o){zs(t.x,e,nm,r?r.x:void 0,o?o.x:void 0),zs(t.y,e,sm,r?r.y:void 0,o?o.y:void 0);}function _s(t){return t.translate===0&&t.scale===1}function Ho(t){return _s(t.x)&&_s(t.y)}function Ys(t,e){return t.min===e.min&&t.max===e.max}function qs(t,e){return Ys(t.x,e.x)&&Ys(t.y,e.y)}function Xs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function zo(t,e){return Xs(t.x,e.x)&&Xs(t.y,e.y)}function _o(t){return k(t.x)/k(t.y)}function Yo(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var Kr=class{constructor(){this.members=[];}add(e){re(this.members,e),e.scheduleRender();}remove(e){if(oe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r);}}relegate(e){let r=this.members.findIndex(i=>e===i);if(r===0)return false;let o;for(let i=r;i>=0;i--){let s=this.members[i];if(s.isPresent!==false){o=s;break}}return o?(this.promote(o),true):false}promote(e,r){let o=this.lead;if(e!==o&&(this.prevLead=o,this.lead=e,e.show(),o)){o.instance&&o.scheduleRender(),e.scheduleRender(),e.resumeFrom=o,r&&(e.resumeFrom.preserveOpacity=true),o.snapshot&&(e.snapshot=o.snapshot,e.snapshot.latestValues=o.animationValues||o.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=true);let{crossfade:i}=e.options;i===false&&o.hide();}}exitAnimationComplete(){this.members.forEach(e=>{let{options:r,resumingFrom:o}=e;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete();});}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(false);});}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0);}};function Zs(t,e,r){let o="",i=t.x.translate/e.x,s=t.y.translate/e.y,n=r?.z||0;if((i||s||n)&&(o=`translate3d(${i}px, ${s}px, ${n}px) `),(e.x!==1||e.y!==1)&&(o+=`scale(${1/e.x}, ${1/e.y}) `),r){let{transformPerspective:m,rotate:l,rotateX:D,rotateY:c,skewX:f,skewY:p}=r;m&&(o=`perspective(${m}px) ${o}`),l&&(o+=`rotate(${l}deg) `),D&&(o+=`rotateX(${D}deg) `),c&&(o+=`rotateY(${c}deg) `),f&&(o+=`skewX(${f}deg) `),p&&(o+=`skewY(${p}deg) `);}let a=t.x.scale*e.x,u=t.y.scale*e.y;return (a!==1||u!==1)&&(o+=`scale(${a}, ${u})`),o||"none"}var Xo=["","X","Y","Z"],am={visibility:"hidden"},um=1e3,lm=0;function qo(t,e,r,o){let{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),o&&(o[t]=0));}function na(t){if(t.hasCheckedOptimisedAppear=true,t.root===t)return;let{visualElement:e}=t.options;if(!e)return;let r=er(e);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",E,!(i||s));}let{parent:o}=t;o&&!o.hasCheckedOptimisedAppear&&na(o);}function Gr({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:o,resetTransform:i}){return class{constructor(n={},a=e?.()){this.id=lm++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=false,this.isAnimationBlocked=false,this.isLayoutDirty=false,this.isProjectionDirty=false,this.isSharedProjectionDirty=false,this.isTransformDirty=false,this.updateManuallyBlocked=false,this.updateBlockedByResize=false,this.isUpdating=false,this.isSVG=false,this.needsReset=false,this.shouldResetTransform=false,this.hasCheckedOptimisedAppear=false,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=false,this.updateScheduled=false,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=false,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=false,this.clearAllSnapshots());},this.updateProjection=()=>{this.projectionUpdateScheduled=false,this.nodes.forEach(cm),this.nodes.forEach(gm),this.nodes.forEach(Cm),this.nodes.forEach(fm);},this.resolvedRelativeTargetAt=0,this.hasProjected=false,this.isVisible=true,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=true;this.root===this&&(this.nodes=new Ur);}addEventListener(n,a){return this.eventHandlers.has(n)||this.eventHandlers.set(n,new yt),this.eventHandlers.get(n).add(a)}notifyListeners(n,...a){let u=this.eventHandlers.get(n);u&&u.notify(...a);}hasListeners(n){return this.eventHandlers.has(n)}mount(n){if(this.instance)return;this.isSVG=ks(n),this.instance=n;let{layoutId:a,layout:u,visualElement:m}=this.options;if(m&&!m.current&&m.mount(n),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=true),t){let l,D=()=>this.root.updateBlockedByResize=false;t(n,()=>{this.root.updateBlockedByResize=true,l&&l(),l=Is(D,250),ge.hasAnimatedSinceResize&&(ge.hasAnimatedSinceResize=false,this.nodes.forEach(Qs));});}a&&this.root.registerSharedNode(a,this),this.options.animate!==false&&m&&(a||u)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:D,hasRelativeLayoutChanged:c,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let p=this.options.transition||m.getDefaultTransition()||vm,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=m.getProps(),d=!this.targetLayout||!zo(this.targetLayout,f),x=!D&&c;if(this.options.layoutRoot||this.resumeFrom||x||D&&(d||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(l,x);let h={...ie(p,"layout"),onPlay:g,onComplete:y};(m.shouldReduceMotion||this.options.layoutRoot)&&(h.delay=0,h.type=false),this.startAnimation(h);}else D||Qs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f;});}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Y(this.updateProjection);}blockUpdate(){this.updateManuallyBlocked=true;}unblockUpdate(){this.updateManuallyBlocked=false;}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||false}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=true,this.nodes&&this.nodes.forEach(ym),this.animationId++);}getTransformTemplate(){let{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=true){if(this.root.hasTreeAnimated=true,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&na(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=true;for(let l=0;l<this.path.length;l++){let D=this.path[l];D.shouldResetTransform=true,D.updateScroll("snapshot"),D.options.layoutRoot&&D.willUpdate(false);}let{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;let m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),n&&this.notifyListeners("willUpdate");}update(){if(this.updateScheduled=false,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Js);return}this.isUpdating||this.nodes.forEach(hm),this.isUpdating=false,this.nodes.forEach(dm),this.nodes.forEach(mm),this.nodes.forEach(Dm),this.clearAllSnapshots();let a=w.now();M.delta=j(0,1e3/60,a-M.timestamp),M.timestamp=a,M.isProcessing=true,Ue.update.process(M),Ue.preRender.process(M),Ue.render.process(M),M.isProcessing=false;}didUpdate(){this.updateScheduled||(this.updateScheduled=true,zt.read(this.scheduleUpdate));}clearAllSnapshots(){this.nodes.forEach(pm),this.sharedNodes.forEach(Fm);}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=true,E.preRender(this.updateProjection,false,true));}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed();});}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!k(this.snapshot.measuredBox.x)&&!k(this.snapshot.measuredBox.y)&&(this.snapshot=void 0));}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();let n=this.layout;this.layout=this.measure(false),this.layoutCorrected=V(),this.isLayoutDirty=false,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,n?n.layoutBox:void 0);}updateScroll(n="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===n&&(a=false),a&&this.instance){let u=o(this.instance);this.scroll={animationId:this.root.animationId,phase:n,isRoot:u,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u};}}resetTransform(){if(!i)return;let n=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ho(this.projectionDelta),u=this.getTransformTemplate(),m=u?u(this.latestValues,""):void 0,l=m!==this.prevTransformTemplateValue;n&&this.instance&&(a||dt(this.latestValues)||l)&&(i(this.instance,m),this.shouldResetTransform=false,this.scheduleRender());}measure(n=true){let a=this.measurePageBox(),u=this.removeElementScroll(a);return n&&(u=this.removeTransform(u)),Am(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:n}=this.options;if(!n)return V();let a=n.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tm))){let{scroll:m}=this.root;m&&(Vt(a.x,m.offset.x),Vt(a.y,m.offset.y));}return a}removeElementScroll(n){let a=V();if(X(a,n),this.scroll?.wasRoot)return a;for(let u=0;u<this.path.length;u++){let m=this.path[u],{scroll:l,options:D}=m;m!==this.root&&l&&D.layoutScroll&&(l.wasRoot&&X(a,n),Vt(a.x,l.offset.x),Vt(a.y,l.offset.y));}return a}applyTransform(n,a=false){let u=V();X(u,n);for(let m=0;m<this.path.length;m++){let l=this.path[m];!a&&l.options.layoutScroll&&l.scroll&&l!==l.root&&jt(u,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),dt(l.latestValues)&&jt(u,l.latestValues);}return dt(this.latestValues)&&jt(u,this.latestValues),u}removeTransform(n){let a=V();X(a,n);for(let u=0;u<this.path.length;u++){let m=this.path[u];if(!m.instance||!dt(m.latestValues))continue;Mr(m.latestValues)&&m.updateSnapshot();let l=V(),D=m.measurePageBox();X(l,D),$o(a,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,l);}return dt(this.latestValues)&&$o(a,this.latestValues),a}setTargetDelta(n){this.targetDelta=n,this.root.scheduleUpdateProjection(),this.isProjectionDirty=true;}setOptions(n){this.options={...this.options,...n,crossfade:n.crossfade!==void 0?n.crossfade:true};}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=false;}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.timestamp&&this.relativeParent.resolveTargetDelta(true);}resolveTargetDelta(n=false){let a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);let u=!!this.resumingFrom||this!==a;if(!(n||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:l,layoutId:D}=this.options;if(!(!this.layout||!(l||D))){if(this.resolvedRelativeTargetAt=M.timestamp,!this.targetDelta&&!this.relativeTarget){let c=this.getClosestProjectingParent();c&&c.layout&&this.animationProgress!==1?(this.relativeParent=c,this.forceRelativeParentToResolveTarget(),this.relativeTarget=V(),this.relativeTargetOrigin=V(),he(this.relativeTargetOrigin,this.layout.layoutBox,c.layout.layoutBox),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=V(),this.targetWithTransforms=V()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ns(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):X(this.target,this.layout.layoutBox),jo(this.target,this.targetDelta)):X(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=false;let c=this.getClosestProjectingParent();c&&!!c.resumingFrom==!!this.resumingFrom&&!c.options.layoutScroll&&c.target&&this.animationProgress!==1?(this.relativeParent=c,this.forceRelativeParentToResolveTarget(),this.relativeTarget=V(),this.relativeTargetOrigin=V(),he(this.relativeTargetOrigin,this.target,c.target),X(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0;}}}}getClosestProjectingParent(){if(!(!this.parent||Mr(this.parent.latestValues)||Oo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return !!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let n=this.getLead(),a=!!this.resumingFrom||this!==n,u=true;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=false),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=false),this.resolvedRelativeTargetAt===M.timestamp&&(u=false),u)return;let{layout:m,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||l))return;X(this.layoutCorrected,this.layout.layoutBox);let D=this.treeScale.x,c=this.treeScale.y;fs(this.layoutCorrected,this.treeScale,this.path,a),n.layout&&!n.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(n.target=n.layout.layoutBox,n.targetWithTransforms=V());let{target:f}=n;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Wo(this.prevProjectionDelta.x,this.projectionDelta.x),Wo(this.prevProjectionDelta.y,this.projectionDelta.y)),pe(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==D||this.treeScale.y!==c||!Yo(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=true,this.scheduleRender(),this.notifyListeners("projectionUpdate",f));}hide(){this.isVisible=false;}show(){this.isVisible=true;}scheduleRender(n=true){if(this.options.visualElement?.scheduleRender(),n){let a=this.getStack();a&&a.scheduleRender();}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0);}createProjectionDeltas(){this.prevProjectionDelta=It(),this.projectionDelta=It(),this.projectionDeltaWithTransform=It();}setAnimationOrigin(n,a=false){let u=this.snapshot,m=u?u.latestValues:{},l={...this.latestValues},D=It();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let c=V(),f=u?u.source:void 0,p=this.layout?this.layout.source:void 0,g=f!==p,y=this.getStack(),d=!y||y.members.length<=1,x=!!(g&&!d&&this.options.crossfade===true&&!this.path.some(Em));this.animationProgress=0;let h;this.mixTargetDelta=T=>{let F=T/1e3;ta(D.x,n.x,F),ta(D.y,n.y,F),this.setTargetDelta(D),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(he(c,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xm(this.relativeTarget,this.relativeTargetOrigin,c,F),h&&qs(this.relativeTarget,h)&&(this.isProjectionDirty=false),h||(h=V()),X(h,this.relativeTarget)),g&&(this.animationValues=l,Gs(l,m,this.latestValues,F,x,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F;},this.mixTargetDelta(this.options.layoutRoot?1e3:0);}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation?.stop(false),this.resumingFrom?.currentAnimation?.stop(false),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{ge.hasAnimatedSinceResize=true,this.motionValue||(this.motionValue=tt(0)),this.currentAnimation=Ls(this.motionValue,[0,1e3],{...n,isSync:true,onUpdate:a=>{this.mixTargetDelta(a),n.onUpdate&&n.onUpdate(a);},onStop:()=>{},onComplete:()=>{n.onComplete&&n.onComplete(),this.completeAnimation();}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0;});}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete");}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(um),this.currentAnimation.stop(false)),this.completeAnimation();}applyTransformsToTarget(){let n=this.getLead(),{targetWithTransforms:a,target:u,layout:m,latestValues:l}=n;if(!(!a||!u||!m)){if(this!==n&&this.layout&&m&&sa(this.options.animationType,this.layout.layoutBox,m.layoutBox)){u=this.target||V();let D=k(this.layout.layoutBox.x);u.x.min=n.target.x.min,u.x.max=u.x.min+D;let c=k(this.layout.layoutBox.y);u.y.min=n.target.y.min,u.y.max=u.y.min+c;}X(a,u),jt(a,l),pe(this.projectionDeltaWithTransform,this.layoutCorrected,a,l);}}registerSharedNode(n,a){this.sharedNodes.has(n)||this.sharedNodes.set(n,new Kr),this.sharedNodes.get(n).add(a);let m=a.options.initialPromotionConfig;a.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(a):void 0});}isLead(){let n=this.getStack();return n?n.lead===this:true}getLead(){let{layoutId:n}=this.options;return n?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:n}=this.options;return n?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:a,preserveFollowOpacity:u}={}){let m=this.getStack();m&&m.promote(this,u),n&&(this.projectionDelta=void 0,this.needsReset=true),a&&this.setOptions({transition:a});}relegate(){let n=this.getStack();return n?n.relegate(this):false}resetSkewAndRotation(){let{visualElement:n}=this.options;if(!n)return;let a=false,{latestValues:u}=n;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=true),!a)return;let m={};u.z&&qo("z",n,m,this.animationValues);for(let l=0;l<Xo.length;l++)qo(`rotate${Xo[l]}`,n,m,this.animationValues),qo(`skew${Xo[l]}`,n,m,this.animationValues);n.render();for(let l in m)n.setStaticValue(l,m[l]),this.animationValues&&(this.animationValues[l]=m[l]);n.scheduleRender();}getProjectionStyles(n){if(!this.instance||this.isSVG)return;if(!this.isVisible)return am;let a={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=false,a.opacity="",a.pointerEvents=te(n?.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none",a;let m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){let f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=te(n?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(f.transform=u?u({},""):"none",this.hasProjected=false),f}let l=m.animationValues||m.latestValues;this.applyTransformsToTarget(),a.transform=Zs(this.projectionDeltaWithTransform,this.treeScale,l),u&&(a.transform=u(l,a.transform));let{x:D,y:c}=this.projectionDelta;a.transformOrigin=`${D.origin*100}% ${c.origin*100}% 0`,m.animationValues?a.opacity=m===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:a.opacity=m===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(let f in Mt){if(l[f]===void 0)continue;let{correct:p,applyTo:g,isCSSVariable:y}=Mt[f],d=a.transform==="none"?l[f]:p(l[f],m);if(g){let x=g.length;for(let h=0;h<x;h++)a[g[h]]=d;}else y?this.options.visualElement.renderState.vars[f]=d:a[f]=d;}return this.options.layoutId&&(a.pointerEvents=m===this?te(n?.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0;}resetTree(){this.root.nodes.forEach(n=>n.currentAnimation?.stop(false)),this.root.nodes.forEach(Js),this.root.sharedNodes.clear();}}}function mm(t){t.updateLayout();}function Dm(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=t.layout,{animationType:i}=t.options,s=e.source!==t.layout.source;i==="size"?z(l=>{let D=s?e.measuredBox[l]:e.layoutBox[l],c=k(D);D.min=r[l].min,D.max=D.min+c;}):sa(i,e.layoutBox,r)&&z(l=>{let D=s?e.measuredBox[l]:e.layoutBox[l],c=k(r[l]);D.max=D.min+c,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=true,t.relativeTarget[l].max=t.relativeTarget[l].min+c);});let n=It();pe(n,r,e.layoutBox);let a=It();s?pe(a,t.applyTransform(o,true),e.measuredBox):pe(a,r,e.layoutBox);let u=!Ho(n),m=false;if(!t.resumeFrom){let l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){let{snapshot:D,layout:c}=l;if(D&&c){let f=V();he(f,e.layoutBox,D.layoutBox);let p=V();he(p,r,c.layoutBox),zo(f,p)||(m=true),l.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=f,t.relativeParent=l);}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:a,layoutDelta:n,hasLayoutChanged:u,hasRelativeLayoutChanged:m});}else if(t.isLead()){let{onExitComplete:r}=t.options;r&&r();}t.options.transition=void 0;}function cm(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty));}function fm(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=false;}function pm(t){t.clearSnapshot();}function Js(t){t.clearMeasurements();}function hm(t){t.isLayoutDirty=false;}function dm(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform();}function Qs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=true;}function gm(t){t.resolveTargetDelta();}function Cm(t){t.calcProjection();}function ym(t){t.resetSkewAndRotation();}function Fm(t){t.removeLeadSnapshot();}function ta(t,e,r){t.translate=A(e.translate,0,r),t.scale=A(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint;}function ea(t,e,r,o){t.min=A(e.min,r.min,o),t.max=A(e.max,r.max,o);}function xm(t,e,r,o){ea(t.x,e.x,r.x,o),ea(t.y,e.y,r.y,o);}function Em(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}var vm={duration:.45,ease:[.4,0,.1,1]},ra=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),oa=ra("applewebkit/")&&!ra("chrome/")?Math.round:P;function ia(t){t.min=oa(t.min),t.max=oa(t.max);}function Am(t){ia(t.x),ia(t.y);}function sa(t,e,r){return t==="position"||t==="preserve-aspect"&&!is(_o(e),_o(r),.2)}function Tm(t){return t!==t.root&&t.scroll?.wasRoot}var aa=Gr({attachResizeListener:(t,e)=>pt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>true});var Zo={current:void 0},Wr=Gr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Zo.current){let t=new aa({});t.mount(window),t.setOptions({layoutScroll:true}),Zo.current=t;}return Zo.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none";},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});var ua={pan:{Feature:jr},drag:{Feature:Ir,ProjectionNode:Wr,MeasureLayout:Nr}};function la(t,e,r){if(t instanceof EventTarget)return [t];if(typeof t=="string"){let o=document;let i=o.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}function $r(t,e){let r=la(t),o=new AbortController,i={passive:true,...e,signal:o.signal};return [r,i,()=>o.abort()]}function ma(t){return !(t.pointerType==="touch"||Lr())}function Da(t,e,r={}){let[o,i,s]=$r(t,r),n=a=>{if(!ma(a))return;let{target:u}=a,m=e(u,a);if(typeof m!="function"||!u)return;let l=D=>{ma(D)&&(m(D),u.removeEventListener("pointerleave",l));};u.addEventListener("pointerleave",l,i);};return o.forEach(a=>{a.addEventListener("pointerenter",n,i);}),s}function ca(t,e,r){let{props:o}=t;t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",r==="Start");let i="onHover"+r,s=o[i];s&&E.postRender(()=>s(e,ht(e)));}var Hr=class extends I{mount(){let{current:e}=this.node;e&&(this.unmount=Da(e,(r,o)=>(ca(this.node,o,"Start"),i=>ca(this.node,i,"End"))));}unmount(){}};var zr=class extends I{constructor(){super(...arguments),this.isActive=false;}onFocus(){let e=false;try{e=this.node.current.matches(":focus-visible");}catch{e=true;}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",true),this.isActive=true);}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",false),this.isActive=false);}mount(){this.unmount=st(pt(this.node.current,"focus",()=>this.onFocus()),pt(this.node.current,"blur",()=>this.onBlur()));}unmount(){}};var Jo=(t,e)=>e?t===e?true:Jo(t,e.parentElement):false;var Bm=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fa(t){return Bm.has(t.tagName)||t.tabIndex!==-1}var ye=new WeakSet;function pa(t){return e=>{e.key==="Enter"&&t(e);}}function Qo(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:true,bubbles:true}));}var ha=(t,e)=>{let r=t.currentTarget;if(!r)return;let o=pa(()=>{if(ye.has(r))return;Qo(r,"down");let i=pa(()=>{Qo(r,"up");}),s=()=>Qo(r,"cancel");r.addEventListener("keyup",i,e),r.addEventListener("blur",s,e);});r.addEventListener("keydown",o,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),e);};function da(t){return fe(t)&&!Lr()}function ga(t,e,r={}){let[o,i,s]=$r(t,r),n=a=>{let u=a.currentTarget;if(!da(a))return;ye.add(u);let m=e(u,a),l=(f,p)=>{window.removeEventListener("pointerup",D),window.removeEventListener("pointercancel",c),ye.has(u)&&ye.delete(u),da(f)&&typeof m=="function"&&m(f,{success:p});},D=f=>{l(f,u===window||u===document||r.useGlobalTarget||Jo(u,f.target));},c=f=>{l(f,false);};window.addEventListener("pointerup",D,i),window.addEventListener("pointercancel",c,i);};return o.forEach(a=>{(r.useGlobalTarget?window:a).addEventListener("pointerdown",n,i),a instanceof HTMLElement&&(a.addEventListener("focus",m=>ha(m,i)),!fa(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0));}),s}function Ca(t,e,r){let{props:o}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&o.whileTap&&t.animationState.setActive("whileTap",r==="Start");let i="onTap"+(r==="End"?"":r),s=o[i];s&&E.postRender(()=>s(e,ht(e)));}var _r=class extends I{mount(){let{current:e}=this.node;e&&(this.unmount=ga(e,(r,o)=>(Ca(this.node,o,"Start"),(i,{success:s})=>Ca(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}));}unmount(){}};var ei=new WeakMap,ti=new WeakMap,bm=t=>{let e=ei.get(t.target);e&&e(t);},Sm=t=>{t.forEach(bm);};function Vm({root:t,...e}){let r=t||document;ti.has(r)||ti.set(r,{});let o=ti.get(r),i=JSON.stringify(e);return o[i]||(o[i]=new IntersectionObserver(Sm,{root:t,...e})),o[i]}function ya(t,e,r){let o=Vm(e);return ei.set(t,r),o.observe(t),()=>{ei.delete(t),o.unobserve(t);}}var Pm={some:0,all:1},Yr=class extends I{constructor(){super(...arguments),this.hasEnteredView=false,this.isInView=false;}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:r,margin:o,amount:i="some",once:s}=e,n={root:r?r.current:void 0,rootMargin:o,threshold:typeof i=="number"?i:Pm[i]},a=u=>{let{isIntersecting:m}=u;if(this.isInView===m||(this.isInView=m,s&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=true),this.node.animationState&&this.node.animationState.setActive("whileInView",m);let{onViewportEnter:l,onViewportLeave:D}=this.node.getProps(),c=m?l:D;c&&c(u);};return ya(this.node.current,n,a)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:r}=this.node;["amount","margin","root"].some(Mm(e,r))&&this.startObserver();}unmount(){}};function Mm({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}var Fa={inView:{Feature:Yr},tap:{Feature:_r},focus:{Feature:zr},hover:{Feature:Hr}};var xa={layout:{ProjectionNode:Wr,MeasureLayout:Nr}};var Re={current:null},Xr={current:false};function Ea(){if(Xr.current=true,!!Gt)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Re.current=t.matches;t.addListener(e),e();}else Re.current=false;}var va=new WeakMap;function Aa(t,e,r){for(let o in e){let i=e[o],s=r[o];if(b(i))t.addValue(o,i);else if(b(s))t.addValue(o,tt(i,{owner:t}));else if(s!==i)if(t.hasValue(o)){let n=t.getValue(o);n.liveStyle===true?n.jump(i):n.hasAnimated||n.set(i);}else {let n=t.getStaticValue(o);t.addValue(o,tt(n!==void 0?n:i,{owner:t}));}}for(let o in r)e[o]===void 0&&t.removeValue(o);return e}var qr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var Zr=t=>/^0[^.\s]+$/u.test(t);var Ta={test:t=>t==="auto",parse:t=>t};var Jr=t=>e=>e.test(t);var ri=[rt,C,W,ot,wi,Mi,Ta],oi=t=>ri.find(Jr(t));var wm=[...ri,R,$],Ba=t=>wm.find(Jr(t));var Rm=new Set(["brightness","contrast","saturate","opacity"]);function Lm(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[o]=r.match(ne)||[];if(!o)return t;let i=r.replace(o,""),s=Rm.has(e)?1:0;return o!==r&&(s*=100),e+"("+s+i+")"}var km=/\b([a-z-]*)\(.*?\)/gu,Le={...$,getAnimatableNone:t=>{let e=t.match(km);return e?e.map(Lm).join(" "):t}};var Om={...Xt,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Le,WebkitFilter:Le},Qr=t=>Om[t];function to(t,e){let r=Qr(t);return r!==Le&&(r=$),r.getAnimatableNone?r.getAnimatableNone(e):void 0}var ba=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eo=class{scrapeMotionValuesFromProps(e,r,o){return {}}constructor({parent:e,props:r,presenceContext:o,reducedMotionConfig:i,blockInitialAnimation:s,visualState:n},a={}){this.current=null,this.children=new Set,this.isVariantNode=false,this.isControllingVariants=false,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection));},this.renderScheduledAt=0,this.scheduleRender=()=>{let c=w.now();this.renderScheduledAt<c&&(this.renderScheduledAt=c,E.render(this.render,false,true));};let{latestValues:u,renderState:m}=n;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=m,this.parent=e,this.props=r,this.presenceContext=o,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Pt(r),this.isVariantNode=We(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...D}=this.scrapeMotionValuesFromProps(r,{},this);for(let c in D){let f=D[c];u[c]!==void 0&&b(f)&&f.set(u[c],false);}}mount(e){this.current=e,va.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Xr.current||Ea(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?false:this.reducedMotionConfig==="always"?true:Re.current,process.env.NODE_ENV!=="production"&&$t(this.shouldReduceMotion!==true,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext);}unmount(){this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let r=this.features[e];r&&(r.unmount(),r.isMounted=false);}this.current=null;}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let o=Z.has(e);o&&this.onBindTransform&&this.onBindTransform();let i=r.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&E.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=true);}),s=r.on("renderRequest",this.scheduleRender),n;window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{i(),s(),n&&n(),r.owner&&r.stop();});}sortNodePosition(e){return !this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ut){let r=ut[e];if(!r)continue;let{isEnabled:o,Feature:i}=r;if(!this.features[e]&&i&&o(this.props)&&(this.features[e]=new i(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=true);}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):V()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r;}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<ba.length;o++){let i=ba[o];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s="on"+i,n=e[s];n&&(this.propEventSubscriptions[i]=this.on(i,n));}this.prevMotionValues=Aa(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){let o=this.values.get(e);r!==o&&(o&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get());}removeValue(e){this.values.delete(e);let r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState);}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let o=this.values.get(e);return o===void 0&&r!==void 0&&(o=tt(r===null?void 0:r,{owner:this}),this.addValue(e,o)),o}readValue(e,r){let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(qr(o)||Zr(o))?o=parseFloat(o):!Ba(o)&&$.test(r)&&(o=to(e,r)),this.setBaseTarget(e,b(o)?o.get():o)),b(o)?o.get():o}setBaseTarget(e,r){this.baseTarget[e]=r;}getBaseTarget(e){let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let s=Qt(this.props,r,this.presenceContext?.custom);s&&(o=s[e]);}if(r&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!b(i)?i:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new yt),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r);}};var Im=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jm(t){let e=Im.exec(t);if(!e)return [,];let[,r,o,i]=e;return [`--${r??o}`,i]}var Nm=4;function ii(t,e,r=1){N(r<=Nm,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[o,i]=jm(t);if(!o)return;let s=window.getComputedStyle(e).getPropertyValue(o);if(s){let n=s.trim();return qr(n)?parseFloat(n):n}return Yt(i)?ii(i,e,r+1):i}function Sa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Zr(t):true}var Um=new Set(["auto","none","0"]);function Va(t,e,r){let o=0,i;for(;o<t.length&&!i;){let s=t[o];typeof s=="string"&&!Um.has(s)&&wt(s).values.length&&(i=t[o]),o++;}if(i&&r)for(let s of e)t[s]=to(r,i);}var ro=class extends bt{constructor(e,r,o,i,s){super(e,r,o,i,s,true);}readKeyframes(){let{unresolvedKeyframes:e,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let m=e[u];if(typeof m=="string"&&(m=m.trim(),Yt(m))){let l=ii(m,r.current);l!==void 0&&(e[u]=l),u===e.length-1&&(this.finalKeyframe=m);}}if(this.resolveNoneKeyframes(),!Tr.has(o)||e.length!==2)return;let[i,s]=e,n=oi(i),a=oi(s);if(n!==a)if(Bo(n)&&Bo(a))for(let u=0;u<e.length;u++){let m=e[u];typeof m=="string"&&(e[u]=parseFloat(m));}else Bt[o]&&(this.needsMeasurement=true);}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:r}=this,o=[];for(let i=0;i<e.length;i++)(e[i]===null||Sa(e[i]))&&o.push(i);o.length&&Va(e,o,r);}measureInitialState(){let{element:e,unresolvedKeyframes:r,name:o}=this;if(!e||!e.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Bt[o](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;let i=r[r.length-1];i!==void 0&&e.getValue(o,i).jump(i,false);}measureEndState(){let{element:e,name:r,unresolvedKeyframes:o}=this;if(!e||!e.current)return;let i=e.getValue(r);i&&i.jump(this.measuredOrigin,false);let s=o.length-1,n=o[s];o[s]=Bt[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{e.getValue(a).set(u);}),this.resolveNoneKeyframes();}};var Fe=class extends eo{constructor(){super(...arguments),this.KeyframeResolver=ro;}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:o}){delete r[e],delete o[e];}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;b(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`);}));}};function oo(t,{style:e,vars:r},o,i){Object.assign(t.style,e,i&&i.getProjectionStyles(o));for(let s in r)t.style.setProperty(s,r[s]);}function Km(t){return window.getComputedStyle(t)}var io=class extends Fe{constructor(){super(...arguments),this.type="html",this.renderInstance=oo;}readValueFromInstance(e,r){if(Z.has(r))return Vn(e,r);{let o=Km(e),i=(_t(r)?o.getPropertyValue(r):o[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return No(e,r)}build(e,r,o){qt(e,r,o.transformTemplate);}scrapeMotionValuesFromProps(e,r,o){return ee(e,r,o)}};var no=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pa(t,e,r,o){oo(t,e,void 0,o);for(let i in e.attrs)t.setAttribute(no.has(i)?i:Ht(i),e.attrs[i]);}var so=class extends Fe{constructor(){super(...arguments),this.type="svg",this.isSVGTag=false,this.measureInstanceViewportBox=V;}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(Z.has(r)){let o=Qr(r);return o&&o.default||0}return r=no.has(r)?r:Ht(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,o){return Je(e,r,o)}build(e,r,o){Ye(e,r,this.isSVGTag,o.transformTemplate,o.style);}renderInstance(e,r,o,i){Pa(e,r,o,i);}mount(e){this.isSVGTag=qe(e.tagName),super.mount(e);}};var Ma=(t,e)=>Jt(t)?new so(e):new io(e,{allowProjection:t!==react.Fragment});var wa=$i({...Xn,...Fa,...ua,...xa},Ma);var Ut=Fi(wa);var ja=Ya(La());function Oa(t,e){let r=0;return (...o)=>{let i=Date.now();i-r>=e&&(r=i,t(...o));}}function Wm(t){let e=(0, ja.default)(),r=[],o=0;return t.replace(e,(i,s)=>(s>o&&r.push(...t.slice(o,s).split("")),r.push(i),o=s+i.length,i)),o<t.length&&r.push(...t.slice(o).split("")),r}function ke({children:t,className:e,characterVariants:r,dadElement:o,onCharacterAnimationComplete:i,key:s}){if(typeof t=="string"){let n=Wm(t).map((a,u)=>{let m=react.useRef(null),l=i?Oa(()=>i(m),10):void 0;return jsxRuntime.jsx(Ut.span,{ref:m,className:e,variants:r,onAnimationComplete:l,children:a},`span-${s}-${a}-${u}`)});return o(n,true)}else if(Array.isArray(t)){let n=t.map(a=>typeof a=="string"?a.split("").map((m,l)=>{let D=react.useRef(null),c=i?Oa(()=>i(D),10):void 0;return jsxRuntime.jsx(Ut.span,{ref:D,className:e,variants:r,onAnimationComplete:c,children:m},`span-${s}-${m}-${l}`)}):a);return o(n)}return o(t,true)}function $m({characterVariants:t,onCharacterAnimationComplete:e,delay:r}){let o={},i={hidden:t.hidden,visible:{...t,opacity:1,transition:{staggerChildren:r/1e3}}};return mi.forEach(s=>{try{let n=Ut[s];if(n){let a=u=>{let{children:m,id:l,className:D}=u,{node:c,...f}=u;switch(s){case "table":case "input":case "hr":case "img":return react.createElement(n,{...f,key:`${s}-${l}`,variants:D?void 0:i,onAnimationComplete:e},m);case "tr":case "th":case "td":return jsxRuntime.jsx(n,{...f,children:m});case "p":return jsxRuntime.jsx(ke,{children:m,characterVariants:t,onCharacterAnimationComplete:e,dadElement:p=>(Array.isArray(p)&&p.push(jsxRuntime.jsx(Ut.span,{style:{display:"block",height:0,width:0}},`span-${l}-newline`)),p)},l);case "span":return jsxRuntime.jsx(ke,{children:m,characterVariants:t,onCharacterAnimationComplete:e,dadElement:p=>Array.isArray(p)?react.createElement(n,{...f,key:`${s}-${l}`,children:p}):p},l);default:return jsxRuntime.jsx(ke,{children:m,characterVariants:t,onCharacterAnimationComplete:e,dadElement:(p,g)=>react.createElement(n,{...f,key:`${s}-${l}`,variants:g||D?void 0:i},p)},l)}};o[s]=a;}}catch{}}),o}module.exports=$m;