whatmore-react-assets 1.0.1508 → 1.0.1512

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 (29) hide show
  1. package/package.json +1 -1
  2. package/static/js/181.4fa7064f.chunk.js +2 -0
  3. package/static/js/378.bce12c1d.chunk.js +1 -0
  4. package/static/js/{437.6c7b5bca.chunk.js → 437.dde8cedd.chunk.js} +1 -1
  5. package/static/js/{526.cd5c661d.chunk.js → 526.05fc9297.chunk.js} +2 -2
  6. package/static/js/{650.87f81931.chunk.js → 650.904f15e7.chunk.js} +2 -2
  7. package/static/js/714.f8433ccc.chunk.js +280 -0
  8. package/static/js/{banner-template-a.ffa68c7f.chunk.js → banner-template-a.c111db81.chunk.js} +1 -1
  9. package/static/js/carousel-template-a.ad1d3694.chunk.js +1 -0
  10. package/static/js/{carousel-template-b.536fc0f5.chunk.js → carousel-template-b.491f7a30.chunk.js} +1 -1
  11. package/static/js/{carousel-template-f.a230cc14.chunk.js → carousel-template-f.e678009c.chunk.js} +2 -2
  12. package/static/js/{carousel-template-feed.6bac61c5.chunk.js → carousel-template-feed.d05aff4d.chunk.js} +1 -1
  13. package/static/js/carousel-template-g.b4131705.chunk.js +1 -0
  14. package/static/js/carousel-template-h.281672ab.chunk.js +1 -0
  15. package/static/js/{carousel-template-view-more.6a1e1875.chunk.js → carousel-template-view-more.60a7cb82.chunk.js} +1 -1
  16. package/static/js/{collections-template-a.722a5fec.chunk.js → collections-template-a.b5d6e4e8.chunk.js} +1 -1
  17. package/static/js/{collections-template-b.44cba013.chunk.js → collections-template-b.f8db3b41.chunk.js} +1 -1
  18. package/static/js/{collections-template-c.575eb1ab.chunk.js → collections-template-c.90dc084e.chunk.js} +1 -1
  19. package/static/js/{collections-template-stories.d1690304.chunk.js → collections-template-stories.4cd831e5.chunk.js} +1 -1
  20. package/static/js/{homepage-carousel-view.73d2a1f6.chunk.js → homepage-carousel-view.be64918d.chunk.js} +1 -1
  21. package/static/js/{product-page-view.7701b35a.chunk.js → product-page-view.41cee781.chunk.js} +1 -1
  22. package/static/js/{spotlight-view.d4904c63.chunk.js → spotlight-view.e89cfe30.chunk.js} +1 -1
  23. package/whatmore.js +2 -2
  24. package/static/js/181.fc55964c.chunk.js +0 -2
  25. package/static/js/304.060b3c71.chunk.js +0 -280
  26. package/static/js/946.5885b1f0.chunk.js +0 -1
  27. package/static/js/carousel-template-a.1bb96267.chunk.js +0 -1
  28. package/static/js/carousel-template-g.731150de.chunk.js +0 -1
  29. package/static/js/carousel-template-h.b3cc6ae4.chunk.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whatmore-react-assets",
3
- "version": "1.0.1508",
3
+ "version": "1.0.1512",
4
4
  "description": "public repo for all whatmore js and css assets",
5
5
  "main": "whatmore.js",
6
6
  "scripts": {
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 181.4fa7064f.chunk.js.LICENSE.txt */
2
+ (self.webpackChunkwhatmorelive_react=self.webpackChunkwhatmorelive_react||[]).push([[181],{2159:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox")},8544:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"}),"ArrowForwardRounded")},9810:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded")},7642:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded")},9935:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},645:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded")},3420:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M19.66 3.99c-2.64-1.8-5.9-.96-7.66 1.1-1.76-2.06-5.02-2.91-7.66-1.1-1.4.96-2.28 2.58-2.34 4.29-.14 3.88 3.3 6.99 8.55 11.76l.1.09c.76.69 1.93.69 2.69-.01l.11-.1c5.25-4.76 8.68-7.87 8.55-11.75-.06-1.7-.94-3.32-2.34-4.28M12.1 18.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05"}),"FavoriteBorderRounded")},7170:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M13.35 20.13c-.76.69-1.93.69-2.69-.01l-.11-.1C5.3 15.27 1.87 12.16 2 8.28c.06-1.7.93-3.33 2.34-4.29 2.64-1.8 5.9-.96 7.66 1.1 1.76-2.06 5.02-2.91 7.66-1.1 1.41.96 2.28 2.59 2.34 4.29.14 3.88-3.3 6.99-8.55 11.76z"}),"FavoriteRounded")},6118:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUpOutlined")},4892:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch")},173:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Loop")},6834:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M14.91 6.71a.9959.9959 0 0 0-1.41 0L8.91 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L11.03 12l3.88-3.88c.38-.39.38-1.03 0-1.41"}),"NavigateBeforeRounded")},2804:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded")},8203:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M14.83 4.83 12.7 2.7c-.62-.62-1.7-.18-1.7.71v.66C7.06 4.56 4 7.92 4 12c0 3.64 2.43 6.71 5.77 7.68.62.18 1.23-.32 1.23-.96v-.03c0-.43-.27-.82-.68-.94C7.82 17.03 6 14.73 6 12c0-2.97 2.16-5.43 5-5.91v1.53c0 .89 1.07 1.33 1.7.71l2.13-2.08c.4-.38.4-1.02 0-1.42m4.84 4.93c-.16-.55-.38-1.08-.66-1.59-.31-.57-1.1-.66-1.56-.2l-.01.01c-.31.31-.38.78-.17 1.16.2.37.36.76.48 1.16.12.42.51.7.94.7h.02c.65 0 1.15-.62.96-1.24M13 18.68v.02c0 .65.62 1.14 1.24.96.55-.16 1.08-.38 1.59-.66.57-.31.66-1.1.2-1.56l-.02-.02c-.31-.31-.78-.38-1.16-.17-.37.21-.76.37-1.16.49-.41.12-.69.51-.69.94m4.44-2.65c.46.46 1.25.37 1.56-.2.28-.51.5-1.04.67-1.59.18-.62-.31-1.24-.96-1.24h-.02c-.44 0-.82.28-.94.7-.12.4-.28.79-.48 1.17-.21.38-.13.86.17 1.16"}),"RotateRightRounded")},758:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"ShareSharp")},9537:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCart")},5078:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M0 12c0 3.22 1.13 6.18 3.02 8.5H1.75c-.41 0-.75.34-.75.75s.34.75.75.75H5c.55 0 1-.45 1-1v-3.25c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.16c-1.86-2.11-3-4.88-3-7.91s1.14-5.79 3-7.91v2.16c0 .41.34.75.75.75S6 6.66 6 6.25V3c0-.55-.45-1-1-1H1.75c-.41 0-.75.34-.75.75s.34.75.75.75h1.27C1.13 5.82 0 8.78 0 12m8.83 7.1c-.26-.6.09-1.28.73-1.41l3.58-.71-4.35-9.81c-.34-.76 0-1.64.76-1.98.76-.34 1.64 0 1.98.76l2.43 5.49.84-.37c.28-.13.59-.18.9-.17l4.56.21c.86.04 1.6.63 1.83 1.45l1.23 4.33c.27.96-.2 1.97-1.11 2.37l-5.63 2.49c-.48.21-1.26.33-1.76.14l-5.45-2.27c-.24-.09-.44-.28-.54-.52"}),"SwipeVerticalRounded")},5375:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M3.63 3.63c-.39.39-.39 1.02 0 1.41L7.29 8.7 7 9H4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71v-4.17l4.18 4.18c-.49.37-1.02.68-1.6.91-.36.15-.58.53-.58.92 0 .72.73 1.18 1.39.91.8-.33 1.55-.77 2.22-1.31l1.34 1.34c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L5.05 3.63c-.39-.39-1.02-.39-1.42 0M19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-3.83-2.4-7.11-5.78-8.4-.59-.23-1.22.23-1.22.86v.19c0 .38.25.71.61.85C17.18 6.54 19 9.06 19 12m-8.71-6.29-.17.17L12 7.76V6.41c0-.89-1.08-1.33-1.71-.7M16.5 12c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24"}),"VolumeOffRounded")},4895:function(t,e,n){"use strict";var o=n(4994);e.A=void 0;var i=o(n(9526)),r=n(4414);e.A=(0,i.default)((0,r.jsx)("path",{d:"M3 10v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71V6.41c0-.89-1.08-1.34-1.71-.71L7 9H4c-.55 0-1 .45-1 1m13.5 2c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 4.45v.2c0 .38.25.71.6.85C17.18 6.53 19 9.06 19 12s-1.82 5.47-4.4 6.5c-.36.14-.6.47-.6.85v.2c0 .63.63 1.07 1.21.85C18.6 19.11 21 15.84 21 12s-2.4-7.11-5.79-8.4c-.58-.23-1.21.22-1.21.85"}),"VolumeUpRounded")},731:function(t,e,n){"use strict";var o=n(3235),i=n(4414);e.A=(0,o.A)((0,i.jsx)("path",{d:"M3.5 4.02V2.75c0-.41-.34-.75-.75-.75S2 2.34 2 2.75V6c0 .55.45 1 1 1h3.25c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H4.09c2.11-1.86 4.88-3 7.91-3 4.42 0 7.27 2.19 8.25 4.1.12.25.38.4.66.4.56 0 .93-.59.67-1.08C20.3 3.39 16.81 1 12 1 8.78 1 5.82 2.13 3.5 4.02m1.7 13.41c0-.65.6-1.13 1.24-.99l3.56.8V6.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v6h.91c.31 0 .62.07.89.21l4.09 2.04c.77.38 1.21 1.22 1.09 2.07l-.63 4.46c-.14.99-.99 1.72-1.98 1.72h-6.16c-.53 0-1.29-.21-1.66-.59l-4.07-4.29c-.18-.18-.28-.43-.28-.69"}),"SwipeLeftRounded")},789:function(t,e,n){var o;!function(){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(o=function(){return r}.call(e,n,e,t))||(t.exports=o)}()},4899:function(t,e,n){"use strict";function o(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function r(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate)return t;var n=null,s=null,a=null;if("function"===typeof e.componentWillMount?n="componentWillMount":"function"===typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof e.componentWillReceiveProps?s="componentWillReceiveProps":"function"===typeof e.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"===typeof e.componentWillUpdate?a="componentWillUpdate":"function"===typeof e.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=t.displayName||t.name,u="function"===typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==s?"\n "+s:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof t.getDerivedStateFromProps&&(e.componentWillMount=o,e.componentWillReceiveProps=i),"function"===typeof e.getSnapshotBeforeUpdate){if("function"!==typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=r;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,o)}}return t}n.r(e),n.d(e,{polyfill:function(){return s}}),o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},158:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bodyOpenClassName=e.portalClassName=void 0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=n(9950),s=f(r),a=f(n(7119)),l=f(n(1942)),u=f(n(544)),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(2936)),d=n(5652),h=f(d),p=n(4899);function f(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var v=e.portalClassName="ReactModalPortal",g=e.bodyOpenClassName="ReactModal__Body--open",y=d.canUseDOM&&void 0!==a.default.createPortal,x=function(t){return document.createElement(t)},b=function(){return y?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function w(t){return t()}var S=function(t){function e(){var t,n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,l=Array(r),c=0;c<r;c++)l[c]=arguments[c];return n=i=m(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(l))),i.removePortal=function(){!y&&a.default.unmountComponentAtNode(i.node);var t=w(i.props.parentSelector);t&&t.contains(i.node)?t.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(t){i.portal=t},i.renderPortal=function(t){var n=b()(i,s.default.createElement(u.default,o({defaultStyles:e.defaultStyles},t)),i.node);i.portalRef(n)},m(i,n)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidMount",value:function(){d.canUseDOM&&(y||(this.node=x("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(t){return{prevParent:w(t.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(t,e,n){if(d.canUseDOM){var o=this.props,i=o.isOpen,r=o.portalClassName;t.portalClassName!==r&&(this.node.className=r);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(t.isOpen||i)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var t=this.portal.state,e=Date.now(),n=t.isOpen&&this.props.closeTimeoutMS&&(t.closesAt||e+this.props.closeTimeoutMS);n?(t.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-e)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&y?(!this.node&&y&&(this.node=x("div")),b()(s.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(t){c.setElement(t)}}]),e}(r.Component);S.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(h.default),l.default.instanceOf(d.SafeHTMLCollection),l.default.instanceOf(d.SafeNodeList),l.default.arrayOf(l.default.instanceOf(h.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},S.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,e){return s.default.createElement("div",t,e)},contentElement:function(t,e){return s.default.createElement("div",t,e)}},S.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(S),e.default=S},544:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),s=n(9950),a=v(n(1942)),l=m(n(4013)),u=v(n(749)),c=m(n(2936)),d=m(n(5140)),h=n(5652),p=v(h),f=v(n(1998));function m(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function v(t){return t&&t.__esModule?t:{default:t}}n(797);var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,x=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setOverlayRef=function(t){n.overlay=t,n.props.overlayRef&&n.props.overlayRef(t)},n.setContentRef=function(t){n.content=t,n.props.contentRef&&n.props.contentRef(t)},n.afterClose=function(){var t=n.props,e=t.appElement,o=t.ariaHideApp,i=t.htmlOpenClassName,r=t.bodyOpenClassName,s=t.parentSelector,a=s&&s().ownerDocument||document;r&&d.remove(a.body,r),i&&d.remove(a.getElementsByTagName("html")[0],i),o&&y>0&&0===(y-=1)&&c.show(e),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var t=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:t},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(t){(function(t){return"Tab"===t.code||9===t.keyCode})(t)&&(0,u.default)(n.content,t),n.props.shouldCloseOnEsc&&function(t){return"Escape"===t.code||27===t.keyCode}(t)&&(t.stopPropagation(),n.requestClose(t))},n.handleOverlayOnClick=function(t){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(t):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(t){n.props.shouldCloseOnOverlayClick||t.target!=n.overlay||t.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(t){return n.ownerHandlesClose()&&n.props.onRequestClose(t)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(t,e){var o="object"===("undefined"===typeof e?"undefined":i(e))?e:{base:g[t],afterOpen:g[t]+"--after-open",beforeClose:g[t]+"--before-close"},r=o.base;return n.state.afterOpen&&(r=r+" "+o.afterOpen),n.state.beforeClose&&(r=r+" "+o.beforeClose),"string"===typeof e&&e?r+" "+e:r},n.attributesFromObject=function(t,e){return Object.keys(e).reduce((function(n,o){return n[t+"-"+o]=e[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(t,e){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!e.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var t=this.props,e=t.appElement,n=t.ariaHideApp,o=t.htmlOpenClassName,i=t.bodyOpenClassName,r=t.parentSelector,s=r&&r().ownerDocument||document;i&&d.add(s.body,i),o&&d.add(s.getElementsByTagName("html")[0],o),n&&(y+=1,c.hide(e)),f.default.register(this)}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,i=t.overlayClassName,r=t.defaultStyles,s=t.children,a=n?{}:r.content,l=i?{}:r.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:e,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(c,s);return this.props.overlayElement(u,d)}}]),e}(s.Component);x.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},x.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),parentSelector:a.default.func,bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(p.default),a.default.instanceOf(h.SafeHTMLCollection),a.default.instanceOf(h.SafeNodeList),a.default.arrayOf(a.default.instanceOf(p.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},e.default=x,t.exports=e.default},2936:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(t){return t.removeAttribute("aria-hidden")})));a=null},e.log=function(){0},e.assertNodeList=l,e.setElement=function(t){var e=t;if("string"===typeof e&&s.canUseDOM){var n=document.querySelectorAll(e);l(n,e),e=n}return a=e||a},e.validateElement=u,e.hide=function(t){var e=!0,n=!1,o=void 0;try{for(var i,r=u(t)[Symbol.iterator]();!(e=(i=r.next()).done);e=!0){i.value.setAttribute("aria-hidden","true")}}catch(s){n=!0,o=s}finally{try{!e&&r.return&&r.return()}finally{if(n)throw o}}},e.show=function(t){var e=!0,n=!1,o=void 0;try{for(var i,r=u(t)[Symbol.iterator]();!(e=(i=r.next()).done);e=!0){i.value.removeAttribute("aria-hidden")}}catch(s){n=!0,o=s}finally{try{!e&&r.return&&r.return()}finally{if(n)throw o}}},e.documentNotReadyOrSSRTesting=function(){a=null};var o,i=n(2241),r=(o=i)&&o.__esModule?o:{default:o},s=n(5652);var a=null;function l(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function u(t){var e=t||a;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,r.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},797:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){for(var t=[s,a],e=0;e<t.length;e++){var n=t[e];n&&(n.parentNode&&n.parentNode.removeChild(n))}s=a=null,l=[]},e.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var t=[s,a],e=0;e<t.length;e++){var n=t[e]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,i=n(1998),r=(o=i)&&o.__esModule?o:{default:o};var s=void 0,a=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}r.default.subscribe((function(t,e){s||a||((s=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),s.style.position="absolute",s.style.opacity="0",s.setAttribute("tabindex","0"),s.addEventListener("focus",u),(a=s.cloneNode()).addEventListener("focus",u)),(l=e).length>0?(document.body.firstChild!==s&&document.body.insertBefore(s,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(s.parentElement&&s.parentElement.removeChild(s),a.parentElement&&a.parentElement.removeChild(a))}))},5140:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){var t=document.getElementsByTagName("html")[0];for(var e in n)i(t,n[e]);var r=document.body;for(var s in o)i(r,o[s]);n={},o={}},e.log=function(){0};var n={},o={};function i(t,e){t.classList.remove(e)}e.add=function(t,e){return i=t.classList,r="html"==t.nodeName.toLowerCase()?n:o,void e.split(" ").forEach((function(t){!function(t,e){t[e]||(t[e]=0),t[e]+=1}(r,t),i.add(t)}));var i,r},e.remove=function(t,e){return i=t.classList,r="html"==t.nodeName.toLowerCase()?n:o,void e.split(" ").forEach((function(t){!function(t,e){t[e]&&(t[e]-=1)}(r,t),0===r[t]&&i.remove(t)}));var i,r}},4013:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){s=[]},e.log=function(){0},e.handleBlur=u,e.handleFocus=c,e.markForFocusLater=function(){s.push(document.activeElement)},e.returnFocus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=null;try{return void(0!==s.length&&(e=s.pop()).focus({preventScroll:t}))}catch(n){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},e.popWithoutFocus=function(){s.length>0&&s.pop()},e.setupScopedFocus=function(t){a=t,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},e.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,i=n(513),r=(o=i)&&o.__esModule?o:{default:o};var s=[],a=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,r.default)(a)[0]||a).focus()}),0)}}},1998:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){o=new n};var n=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;e.default=o},5652:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canUseDOM=e.SafeNodeList=e.SafeHTMLCollection=void 0;var o,i=n(789);var r=((o=i)&&o.__esModule?o:{default:o}).default,s=r.canUseDOM?window.HTMLElement:{};e.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},e.SafeNodeList=r.canUseDOM?window.NodeList:{},e.canUseDOM=r.canUseDOM;e.default=s},749:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,r.default)(t);if(!n.length)return void e.preventDefault();var o=void 0,i=e.shiftKey,a=n[0],l=n[n.length-1],u=s();if(t===u){if(!i)return;o=l}l!==u||i||(o=a);a===u&&i&&(o=l);if(o)return e.preventDefault(),void o.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var d=n.indexOf(u);d>-1&&(d+=i?-1:1);if("undefined"===typeof(o=n[d]))return e.preventDefault(),void(o=i?l:a).focus();e.preventDefault(),o.focus()};var o,i=n(513),r=(o=i)&&o.__esModule?o:{default:o};function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?s(t.activeElement.shadowRoot):t.activeElement}t.exports=e.default},513:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var n=[].slice.call(e.querySelectorAll("*"),0).reduce((function(e,n){return e.concat(n.shadowRoot?t(n.shadowRoot):[n])}),[]);return n.filter(a)};var n="none",o="contents",i=/^(input|select|textarea|button|object|iframe)$/;function r(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;try{var i=window.getComputedStyle(t),r=i.getPropertyValue("display");return e?r!==o&&function(t,e){return"visible"!==e.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0}(t,i):r===n}catch(s){return console.warn("Failed to inspect element style"),!1}}function s(t,e){var n=t.nodeName.toLowerCase();return(i.test(n)&&!t.disabled||"a"===n&&t.href||e)&&function(t){for(var e=t,n=t.getRootNode&&t.getRootNode();e&&e!==document.body;){if(n&&e===n&&(e=n.host.parentNode),r(e))return!1;e=e.parentNode}return!0}(t)}function a(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&s(t,!n)}t.exports=e.default},4806:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o,i=n(158),r=(o=i)&&o.__esModule?o:{default:o};e.default=r.default,t.exports=e.default},6325:function(t,e,n){"use strict";n.d(e,{A:function(){return K}});var o=function(){return o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function i(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]])}return n}Object.create;function r(t,e,n){if(n||2===arguments.length)for(var o,i=0,r=e.length;i<r;i++)!o&&i in e||(o||(o=Array.prototype.slice.call(e,0,i)),o[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var s=n(9950),a="right-scroll-bar-position",l="width-before-scroll-bar";function u(t,e){return"function"===typeof t?t(e):t&&(t.current=e),t}var c="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,d=new WeakMap;function h(t,e){var n=function(t,e){var n=(0,s.useState)((function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(t){var e=n.value;e!==t&&(n.value=t,n.callback(t,e))}}}}))[0];return n.callback=e,n.facade}(e||null,(function(e){return t.forEach((function(t){return u(t,e)}))}));return c((function(){var e=d.get(n);if(e){var o=new Set(e),i=new Set(t),r=n.current;o.forEach((function(t){i.has(t)||u(t,null)})),i.forEach((function(t){o.has(t)||u(t,r)}))}d.set(n,t)}),[t]),n}function p(t){return t}function f(t,e){void 0===e&&(e=p);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(t){var i=e(t,o);return n.push(i),function(){n=n.filter((function(t){return t!==i}))}},assignSyncMedium:function(t){for(o=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){o=!0;var e=[];if(n.length){var i=n;n=[],i.forEach(t),e=n}var r=function(){var n=e;e=[],n.forEach(t)},s=function(){return Promise.resolve().then(r)};s(),n={push:function(t){e.push(t),s()},filter:function(t){return e=e.filter(t),n}}}}}var m=function(t){void 0===t&&(t={});var e=f(null);return e.options=o({async:!0,ssr:!1},t),e}(),v=function(){},g=s.forwardRef((function(t,e){var n=s.useRef(null),r=s.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),a=r[0],l=r[1],u=t.forwardProps,c=t.children,d=t.className,p=t.removeScrollBar,f=t.enabled,g=t.shards,y=t.sideCar,x=t.noIsolation,b=t.inert,w=t.allowPinchZoom,S=t.as,C=void 0===S?"div":S,P=t.gapMode,E=i(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=y,A=h([n,e]),M=o(o({},E),a);return s.createElement(s.Fragment,null,f&&s.createElement(T,{sideCar:m,removeScrollBar:p,shards:g,noIsolation:x,inert:b,setCallbacks:l,allowPinchZoom:!!w,lockRef:n,gapMode:P}),u?s.cloneElement(s.Children.only(c),o(o({},M),{ref:A})):s.createElement(C,o({},M,{className:d,ref:A}),c))}));g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:l,zeroRight:a};var y,x=function(t){var e=t.sideCar,n=i(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,o({},n))};x.isSideCarExport=!0;function b(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=y||n.nc;return e&&t.setAttribute("nonce",e),t}var w=function(){var t=0,e=null;return{add:function(n){var o,i;0==t&&(e=b())&&(i=n,(o=e).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),function(t){(document.head||document.getElementsByTagName("head")[0]).appendChild(t)}(e)),t++},remove:function(){! --t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},S=function(){var t=function(){var t=w();return function(e,n){s.useEffect((function(){return t.add(e),function(){t.remove()}}),[e&&n])}}();return function(e){var n=e.styles,o=e.dynamic;return t(n,o),null}},C={left:0,top:0,right:0,gap:0},P=function(t){return parseInt(t||"",10)||0},E=function(t){if(void 0===t&&(t="margin"),"undefined"===typeof window)return C;var e=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],o=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[P(n),P(o),P(i)]}(t),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,o-n+e[2]-e[0])}},T=S(),A="data-scroll-locked",M=function(t,e,n,o){var i=t.left,r=t.top,s=t.right,u=t.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(u,"px ").concat(o,";\n }\n body[").concat(A,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(r,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a," {\n right: ").concat(u,"px ").concat(o,";\n }\n \n .").concat(l," {\n margin-right: ").concat(u,"px ").concat(o,";\n }\n \n .").concat(a," .").concat(a," {\n right: 0 ").concat(o,";\n }\n \n .").concat(l," .").concat(l," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},R=function(){var t=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(t)?t:0},O=function(t){var e=t.noRelative,n=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;s.useEffect((function(){return document.body.setAttribute(A,(R()+1).toString()),function(){var t=R()-1;t<=0?document.body.removeAttribute(A):document.body.setAttribute(A,t.toString())}}),[]);var r=s.useMemo((function(){return E(i)}),[i]);return s.createElement(T,{styles:M(r,!e,i,n?"":"!important")})},D=!1;if("undefined"!==typeof window)try{var k=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",k,k),window.removeEventListener("test",k,k)}catch(q){D=!1}var V=!!D&&{passive:!1},j=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&!function(t){return"TEXTAREA"===t.tagName}(t)&&"visible"===n[e])},L=function(t,e){var n=e.ownerDocument,o=e;do{if("undefined"!==typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),F(t,o)){var i=B(t,o);if(i[1]>i[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},F=function(t,e){return"v"===t?function(t){return j(t,"overflowY")}(e):function(t){return j(t,"overflowX")}(e)},B=function(t,e){return"v"===t?[(n=e).scrollTop,n.scrollHeight,n.clientHeight]:function(t){return[t.scrollLeft,t.scrollWidth,t.clientWidth]}(e);var n},N=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},I=function(t){return[t.deltaX,t.deltaY]},_=function(t){return t&&"current"in t?t.current:t},U=function(t){return"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n")},W=0,$=[];function H(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}var z,Y=(z=function(t){var e=s.useRef([]),n=s.useRef([0,0]),o=s.useRef(),i=s.useState(W++)[0],a=s.useState(S)[0],l=s.useRef(t);s.useEffect((function(){l.current=t}),[t]),s.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=r([t.lockRef.current],(t.shards||[]).map(_),!0).filter(Boolean);return e.forEach((function(t){return t.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach((function(t){return t.classList.remove("allow-interactivity-".concat(i))}))}}}),[t.inert,t.lockRef.current,t.shards]);var u=s.useCallback((function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!l.current.allowPinchZoom;var i,r=N(t),s=n.current,a="deltaX"in t?t.deltaX:s[0]-r[0],u="deltaY"in t?t.deltaY:s[1]-r[1],c=t.target,d=Math.abs(a)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===d&&"range"===c.type)return!1;var h=L(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=L(d,c)),!h)return!1;if(!o.current&&"changedTouches"in t&&(a||u)&&(o.current=i),!i)return!0;var p=o.current||i;return function(t,e,n,o,i){var r=function(t,e){return"h"===t&&"rtl"===e?-1:1}(t,window.getComputedStyle(e).direction),s=r*o,a=n.target,l=e.contains(a),u=!1,c=s>0,d=0,h=0;do{var p=B(t,a),f=p[0],m=p[1]-p[2]-r*f;(f||m)&&F(t,a)&&(d+=m,h+=f),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(c&&(i&&Math.abs(d)<1||!i&&s>d)||!c&&(i&&Math.abs(h)<1||!i&&-s>h))&&(u=!0),u}(p,e,t,"h"===p?a:u,!0)}),[]),c=s.useCallback((function(t){var n=t;if($.length&&$[$.length-1]===a){var o="deltaY"in n?I(n):N(n),i=e.current.filter((function(t){return t.name===n.type&&(t.target===n.target||n.target===t.shadowParent)&&(e=t.delta,i=o,e[0]===i[0]&&e[1]===i[1]);var e,i}))[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var r=(l.current.shards||[]).map(_).filter(Boolean).filter((function(t){return t.contains(n.target)}));(r.length>0?u(n,r[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),d=s.useCallback((function(t,n,o,i){var r={name:t,delta:n,target:o,should:i,shadowParent:H(o)};e.current.push(r),setTimeout((function(){e.current=e.current.filter((function(t){return t!==r}))}),1)}),[]),h=s.useCallback((function(t){n.current=N(t),o.current=void 0}),[]),p=s.useCallback((function(e){d(e.type,I(e),e.target,u(e,t.lockRef.current))}),[]),f=s.useCallback((function(e){d(e.type,N(e),e.target,u(e,t.lockRef.current))}),[]);s.useEffect((function(){return $.push(a),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,V),document.addEventListener("touchmove",c,V),document.addEventListener("touchstart",h,V),function(){$=$.filter((function(t){return t!==a})),document.removeEventListener("wheel",c,V),document.removeEventListener("touchmove",c,V),document.removeEventListener("touchstart",h,V)}}),[]);var m=t.removeScrollBar,v=t.inert;return s.createElement(s.Fragment,null,v?s.createElement(a,{styles:U(i)}):null,m?s.createElement(O,{gapMode:t.gapMode}):null)},m.useMedium(z),x),X=s.forwardRef((function(t,e){return s.createElement(g,o({},t,{ref:e,sideCar:Y}))}));X.classNames=g.classNames;var K=X},2241:function(t){"use strict";var e=function(){};t.exports=e},4905:function(t,e,n){"use strict";n.d(e,{$:function(){return y}});var o=n(9950);var i=n(221),[r,s]=(0,i.q)({strict:!1,name:"ButtonGroupContext"}),a=n(6219),l=n(7681),u=n(4414);function c(t){const{children:e,className:n,...i}=t,r=(0,o.isValidElement)(e)?(0,o.cloneElement)(e,{"aria-hidden":!0,focusable:!1}):e,s=(0,l.cx)("chakra-button__icon",n);return(0,u.jsx)(a.B.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:s,children:r})}c.displayName="ButtonIcon";var d=n(63);function h(t){const{label:e,placement:n,spacing:i="0.5rem",children:r=(0,u.jsx)(d.y,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:c,...h}=t,p=(0,l.cx)("chakra-button__spinner",s),f="start"===n?"marginEnd":"marginStart",m=(0,o.useMemo)((()=>({display:"flex",alignItems:"center",position:e?"relative":"absolute",[f]:e?i:0,fontSize:"1em",lineHeight:"normal",...c})),[c,e,f,i]);return(0,u.jsx)(a.B.div,{className:p,...h,__css:m,children:r})}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return t=>{e.forEach((e=>{!function(t,e){if(null!=t)if("function"!==typeof t)try{t.current=e}catch(n){throw new Error(`Cannot assign value '${e}' to ref '${t}'`)}else t(e)}(e,t)}))}}function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,o.useMemo)((()=>p(...e)),e)}h.displayName="ButtonSpinner";var m=n(8039),v=n(7040),g=n(2867),y=(0,m.R)(((t,e)=>{const n=s(),i=(0,v.Vl)("Button",{...n,...t}),{isDisabled:r=(null==n?void 0:n.isDisabled),isLoading:c,isActive:d,children:p,leftIcon:m,rightIcon:y,loadingText:b,iconSpacing:w="0.5rem",type:S,spinner:C,spinnerPlacement:P="start",className:E,as:T,...A}=(0,g.MN)(t),M=(0,o.useMemo)((()=>{const t={...null==i?void 0:i._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...i,...!!n&&{_focus:t}}}),[i,n]),{ref:R,type:O}=function(t){const[e,n]=(0,o.useState)(!t);return{ref:(0,o.useCallback)((t=>{t&&n("BUTTON"===t.tagName)}),[]),type:e?"button":void 0}}(T),D={rightIcon:y,leftIcon:m,iconSpacing:w,children:p};return(0,u.jsxs)(a.B.button,{ref:f(e,R),as:T,type:null!=S?S:O,"data-active":(0,l.sE)(d),"data-loading":(0,l.sE)(c),__css:M,className:(0,l.cx)("chakra-button",E),...A,disabled:r||c,children:[c&&"start"===P&&(0,u.jsx)(h,{className:"chakra-button__spinner--start",label:b,placement:"start",spacing:w,children:C}),c?b||(0,u.jsx)(a.B.span,{opacity:0,children:(0,u.jsx)(x,{...D})}):(0,u.jsx)(x,{...D}),c&&"end"===P&&(0,u.jsx)(h,{className:"chakra-button__spinner--end",label:b,placement:"end",spacing:w,children:C})]})}));function x(t){const{leftIcon:e,rightIcon:n,children:o,iconSpacing:i}=t;return(0,u.jsxs)(u.Fragment,{children:[e&&(0,u.jsx)(c,{marginEnd:i,children:e}),o,n&&(0,u.jsx)(c,{marginStart:i,children:n})]})}y.displayName="Button"},4418:function(t,e,n){"use strict";n.d(e,{z:function(){return s}});var o=n(1422),i=n(8039),r=n(4414),s=(0,i.R)(((t,e)=>(0,r.jsx)(o.B,{align:"center",...t,direction:"row",ref:e})));s.displayName="HStack"},9556:function(t,e,n){"use strict";n.d(e,{D:function(){return u}});var o=n(8039),i=n(7040),r=n(2867),s=n(6219),a=n(7681),l=n(4414),u=(0,o.R)((function(t,e){const n=(0,i.Vl)("Heading",t),{className:o,...u}=(0,r.MN)(t);return(0,l.jsx)(s.B.h2,{ref:e,className:(0,a.cx)("chakra-heading",t.className),...u,__css:n})}));u.displayName="Heading"},8397:function(t,e,n){"use strict";n.d(e,{N:function(){return u}});var o=n(8039),i=n(7040),r=n(2867),s=n(6219),a=n(7681),l=n(4414),u=(0,o.R)((function(t,e){const n=(0,i.Vl)("Link",t),{className:o,isExternal:u,...c}=(0,r.MN)(t);return(0,l.jsx)(s.B.a,{target:u?"_blank":void 0,rel:u?"noopener":void 0,ref:e,className:(0,a.cx)("chakra-link",o),...c,__css:n})}));u.displayName="Link"},3755:function(t,e,n){"use strict";n.d(e,{s:function(){return s}});var o=n(8039),i=n(6219),r=n(4414),s=(0,o.R)((function(t,e){const{direction:n,align:o,justify:s,wrap:a,basis:l,grow:u,shrink:c,...d}=t,h={display:"flex",flexDirection:n,alignItems:o,justifyContent:s,flexWrap:a,flexBasis:l,flexGrow:u,flexShrink:c};return(0,r.jsx)(i.B.div,{ref:e,__css:h,...d})}));s.displayName="Flex"},2720:function(t,e,n){"use strict";n.d(e,{c:function(){return u}});var o=n(8039),i=n(7040),r=n(2867),s=n(6219),a=n(7681),l=n(4414),u=(0,o.R)((function(t,e){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:u,borderRightWidth:c,borderWidth:d,borderStyle:h,borderColor:p,...f}=(0,i.Vl)("Divider",t),{className:m,orientation:v="horizontal",__css:g,...y}=(0,r.MN)(t),x={vertical:{borderLeftWidth:n||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:o||u||d||"1px",width:"100%"}};return(0,l.jsx)(s.B.hr,{ref:e,"aria-orientation":v,...y,__css:{...f,border:"0",borderColor:p,borderStyle:h,...x[v],...g},className:(0,a.cx)("chakra-divider",m)})}));u.displayName="Divider"},677:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});var o=n(8039),i=n(7040),r=n(2867),s=n(6219),a=n(7681),l=n(4414),u=(0,o.R)((function(t,e){const n=(0,i.Vl)("Badge",t),{className:o,...u}=(0,r.MN)(t);return(0,l.jsx)(s.B.span,{ref:e,className:(0,a.cx)("chakra-badge",t.className),...u,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})}));u.displayName="Badge"},195:function(t,e,n){"use strict";n.d(e,{g:function(){return u}});var o=n(8039),i=n(6219),r=n(9587),s=n(7681),a=n(9950),l=n(4414),u=(0,o.R)((function(t,e){const{ratio:n=4/3,children:o,className:u,...c}=t,d=a.Children.only(o),h=(0,s.cx)("chakra-aspect-ratio",u);return(0,l.jsx)(i.B.div,{ref:e,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:(0,r.bk)(n,(t=>1/t*100+"%"))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...c,children:d})}));u.displayName="AspectRatio"},63:function(t,e,n){"use strict";n.d(e,{y:function(){return d}});var o=n(8283),i=n(8039),r=n(7040),s=n(2867),a=n(6219),l=n(7681),u=n(4414),c=(0,o.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.R)(((t,e)=>{const n=(0,r.Vl)("Spinner",t),{label:o="Loading...",thickness:i="2px",speed:d="0.45s",emptyColor:h="transparent",className:p,...f}=(0,s.MN)(t),m=(0,l.cx)("chakra-spinner",p),v={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:h,borderLeftColor:h,animation:`${c} ${d} linear infinite`,...n};return(0,u.jsx)(a.B.div,{ref:e,__css:v,className:m,...f,children:o&&(0,u.jsx)(a.B.span,{srOnly:!0,children:o})})}));d.displayName="Spinner"},4850:function(t,e,n){"use strict";n.d(e,{jd:function(){return i},yA:function(){return r}});var o={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var i={enter:{duration:.2,ease:o.easeOut},exit:{duration:.1,ease:o.easeIn}},r={enter:(t,e)=>({...t,delay:"number"===typeof e?e:null==e?void 0:e.enter}),exit:(t,e)=>({...t,delay:"number"===typeof e?e:null==e?void 0:e.exit})}},6710:function(t,e,n){"use strict";n.d(e,{s:function(){return c}});var o=n(4850),i=n(7681),r=n(3291),s=n(1502),a=n(9950),l=n(4414),u={initial:"initial",animate:"enter",exit:"exit",variants:{initial:t=>{let{offsetX:e,offsetY:n,transition:i,transitionEnd:r,delay:s}=t;var a;return{opacity:0,x:e,y:n,transition:null!=(a=null==i?void 0:i.exit)?a:o.yA.exit(o.jd.exit,s),transitionEnd:null==r?void 0:r.exit}},enter:t=>{let{transition:e,transitionEnd:n,delay:i}=t;var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:o.yA.enter(o.jd.enter,i),transitionEnd:null==n?void 0:n.enter}},exit:t=>{let{offsetY:e,offsetX:n,transition:i,transitionEnd:r,reverse:s,delay:a}=t;var l;const u={x:n,y:e};return{opacity:0,transition:null!=(l=null==i?void 0:i.exit)?l:o.yA.exit(o.jd.exit,a),...s?{...u,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...u,...null==r?void 0:r.exit}}}}}},c=(0,a.forwardRef)((function(t,e){const{unmountOnExit:n,in:o,reverse:a=!0,className:c,offsetX:d=0,offsetY:h=8,transition:p,transitionEnd:f,delay:m,...v}=t,g=!n||o&&n,y=o||n?"enter":"exit",x={offsetX:d,offsetY:h,reverse:a,transition:p,transitionEnd:f,delay:m};return(0,l.jsx)(r.N,{custom:x,children:g&&(0,l.jsx)(s.P.div,{ref:e,className:(0,i.cx)("chakra-offset-slide",c),custom:x,...u,animate:y,...v})})}));c.displayName="SlideFade"},8871:function(t,e,n){"use strict";n.d(e,{J:function(){return c}});var o=n(4850),i=n(7681),r=n(3291),s=n(1502),a=n(9950),l=n(4414),u={initial:"exit",animate:"enter",exit:"exit",variants:{exit:t=>{let{reverse:e,initialScale:n,transition:i,transitionEnd:r,delay:s}=t;var a;return{opacity:0,...e?{scale:n,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:n,...null==r?void 0:r.exit}},transition:null!=(a=null==i?void 0:i.exit)?a:o.yA.exit(o.jd.exit,s)}},enter:t=>{let{transitionEnd:e,transition:n,delay:i}=t;var r;return{opacity:1,scale:1,transition:null!=(r=null==n?void 0:n.enter)?r:o.yA.enter(o.jd.enter,i),transitionEnd:null==e?void 0:e.enter}}}},c=(0,a.forwardRef)((function(t,e){const{unmountOnExit:n,in:o,reverse:a=!0,initialScale:c=.95,className:d,transition:h,transitionEnd:p,delay:f,...m}=t,v=!n||o&&n,g=o||n?"enter":"exit",y={initialScale:c,reverse:a,transition:h,transitionEnd:p,delay:f};return(0,l.jsx)(r.N,{custom:y,children:v&&(0,l.jsx)(s.P.div,{ref:e,className:(0,i.cx)("chakra-offset-slide",d),...u,animate:g,custom:y,...m})})}));c.displayName="ScaleFade"},3291:function(t,e,n){"use strict";n.d(e,{N:function(){return g}});var o=n(4414),i=n(9950),r=n(3487),s=n(9305),a=n(2278);class l extends i.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(t){let{children:e,isPresent:n}=t;const r=(0,i.useId)(),s=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(a.Q);return(0,i.useInsertionEffect)((()=>{const{width:t,height:e,top:o,left:i}=u.current;if(n||!s.current||!t||!e)return;s.current.dataset.motionPopId=r;const a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n top: ${o}px !important;\n left: ${i}px !important;\n }\n `),()=>{document.head.removeChild(a)}}),[n]),(0,o.jsx)(l,{isPresent:n,childRef:s,sizeRef:u,children:i.cloneElement(e,{ref:s})})}const c=t=>{let{children:e,initial:n,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:h,mode:p}=t;const f=(0,s.M)(d),m=(0,i.useId)(),v=(0,i.useCallback)((t=>{f.set(t,!0);for(const e of f.values())if(!e)return;l&&l()}),[f,l]),g=(0,i.useMemo)((()=>({id:m,initial:n,isPresent:a,custom:c,onExitComplete:v,register:t=>(f.set(t,!1),()=>f.delete(t))})),h?[Math.random(),v]:[a,v]);return(0,i.useMemo)((()=>{f.forEach(((t,e)=>f.set(e,!1)))}),[a]),i.useEffect((()=>{!a&&!f.size&&l&&l()}),[a]),"popLayout"===p&&(e=(0,o.jsx)(u,{isPresent:a,children:e})),(0,o.jsx)(r.t.Provider,{value:g,children:e})};function d(){return new Map}var h=n(6017),p=n(24);const f=t=>t.key||"";function m(t){const e=[];return i.Children.forEach(t,(t=>{(0,i.isValidElement)(t)&&e.push(t)})),e}var v=n(7544);const g=t=>{let{children:e,exitBeforeEnter:n,custom:r,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync"}=t;(0,p.V)(!n,"Replace exitBeforeEnter with mode='wait'");const g=(0,i.useMemo)((()=>m(e)),[e]),y=g.map(f),x=(0,i.useRef)(!0),b=(0,i.useRef)(g),w=(0,s.M)((()=>new Map)),[S,C]=(0,i.useState)(g),[P,E]=(0,i.useState)(g);(0,v.E)((()=>{x.current=!1,b.current=g;for(let t=0;t<P.length;t++){const e=f(P[t]);y.includes(e)?w.delete(e):!0!==w.get(e)&&w.set(e,!1)}}),[P,y.length,y.join("-")]);const T=[];if(g!==S){let t=[...g];for(let e=0;e<P.length;e++){const n=P[e],o=f(n);y.includes(o)||(t.splice(e,0,n),T.push(n))}return"wait"===d&&T.length&&(t=T),E(m(t)),void C(g)}const{forceRender:A}=(0,i.useContext)(h.L);return(0,o.jsx)(o.Fragment,{children:P.map((t=>{const e=f(t),n=g===P||y.includes(e);return(0,o.jsx)(c,{isPresent:n,initial:!(x.current&&!a)&&void 0,custom:n?void 0:r,presenceAffectsLayout:u,mode:d,onExitComplete:n?void 0:()=>{if(!w.has(e))return;w.set(e,!0);let t=!0;w.forEach((e=>{e||(t=!1)})),t&&(null===A||void 0===A||A(),E(b.current),l&&l())},children:t},e)}))})}},6017:function(t,e,n){"use strict";n.d(e,{L:function(){return o}});const o=(0,n(9950).createContext)({})},2278:function(t,e,n){"use strict";n.d(e,{Q:function(){return o}});const o=(0,n(9950).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},3487:function(t,e,n){"use strict";n.d(e,{t:function(){return o}});const o=(0,n(9950).createContext)(null)},1502:function(t,e,n){"use strict";function o(t){if("undefined"===typeof Proxy)return t;const e=new Map;return new Proxy((function(){return t(...arguments)}),{get:(n,o)=>"create"===o?t:(e.has(o)||e.set(o,t(o)),e.get(o))})}function i(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}n.d(e,{P:function(){return _s}});const r=t=>Array.isArray(t);function s(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}function a(t){return"string"===typeof t||Array.isArray(t)}function l(t){const e=[{},{}];return null===t||void 0===t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function u(t,e,n,o){if("function"===typeof e){const[i,r]=l(o);e=e(void 0!==n?n:t.custom,i,r)}if("string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e){const[i,r]=l(o);e=e(void 0!==n?n:t.custom,i,r)}return e}function c(t,e,n){const o=t.getProps();return u(o,e,void 0!==n?n:o.custom,t)}const d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],h=["initial",...d],p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(p),m=t=>1e3*t,v=t=>t/1e3,g={type:"spring",stiffness:500,damping:25,restSpeed:10},y={type:"keyframes",duration:.8},x={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b=(t,e)=>{let{keyframes:n}=e;return n.length>2?y:f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:g:x};function w(t,e){return t?t[e]||t.default||t:void 0}const S=!1,C=!1,P=!1,E=t=>null!==t;function T(t,e,n){let{repeat:o,repeatType:i="loop"}=e;const r=t.filter(E),s=o&&"loop"!==i&&o%2===1?0:r.length-1;return s&&void 0!==n?n:r[s]}var A=n(9389);const M=["read","resolveKeyframes","update","preRender","render","postRender"];function R(t,e){let n=!1,o=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=M.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,o=!1,i=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(s)}const l={schedule:function(t){const i=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&o?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&r.add(t),i.has(t)||i.add(t),t},cancel:t=>{n.delete(t),r.delete(t)},process:t=>{s=t,o?i=!0:(o=!0,[e,n]=[n,e],e.forEach(a),e.clear(),o=!1,i&&(i=!1,l.process(t)))}};return l}(r),t)),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=s,p=()=>{const r=C?i.timestamp:performance.now();n=!1,i.delta=o?1e3/60:Math.max(Math.min(r-i.timestamp,40),1),i.timestamp=r,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),i.isProcessing=!1,n&&e&&(o=!1,t(p))},f=M.reduce(((e,r)=>{const a=s[r];return e[r]=function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,o=!0,i.isProcessing||t(p)),a.schedule(e,r,s)},e}),{});return{schedule:f,cancel:t=>{for(let e=0;e<M.length;e++)s[M[e]].cancel(t)},state:i,steps:s}}const{schedule:O,cancel:D,state:k,steps:V}=R("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:A.l,!0),j=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function L(t,e,n,o){if(t===e&&n===o)return A.l;const i=e=>function(t,e,n,o,i){let r,s,a=0;do{s=e+(n-e)/2,r=j(s,o,i)-t,r>0?n=s:e=s}while(Math.abs(r)>1e-7&&++a<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:j(i(t),e,o)}const F=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,B=t=>e=>1-t(1-e),N=L(.33,1.53,.69,.99),I=B(N),_=F(I),U=t=>(t*=2)<1?.5*I(t):.5*(2-Math.pow(2,-10*(t-1))),W=t=>1-Math.sin(Math.acos(t)),$=B(W),H=F(W),z=t=>/^0[^.\s]+$/u.test(t);var Y=n(24);const X=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),K=t=>e=>"string"===typeof e&&e.startsWith(t),q=K("--"),G=K("var(--"),Z=t=>!!G(t)&&Q.test(t.split("/*")[0].trim()),Q=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,J=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,Y.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[o,i]=function(t){const e=J.exec(t);if(!e)return[,];const[,n,o,i]=e;return[`--${null!==n&&void 0!==n?n:o}`,i]}(t);if(!o)return;const r=window.getComputedStyle(e).getPropertyValue(o);if(r){const t=r.trim();return X(t)?parseFloat(t):t}return Z(i)?tt(i,e,n+1):i}const et=(t,e,n)=>n>e?e:n<t?t:n,nt={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},ot={...nt,transform:t=>et(0,1,t)},it={...nt,default:1},rt=t=>({test:e=>"string"===typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),st=rt("deg"),at=rt("%"),lt=rt("px"),ut=rt("vh"),ct=rt("vw"),dt={...at,parse:t=>at.parse(t)/100,transform:t=>at.transform(100*t)},ht=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pt=t=>t===nt||t===lt,ft=(t,e)=>parseFloat(t.split(", ")[e]),mt=(t,e)=>(n,o)=>{let{transform:i}=o;if("none"===i||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return ft(r[1],e);{const e=i.match(/^matrix\((.+)\)$/u);return e?ft(e[1],t):0}},vt=new Set(["x","y","z"]),gt=p.filter((t=>!vt.has(t)));const yt={width:(t,e)=>{let{x:n}=t,{paddingLeft:o="0",paddingRight:i="0"}=e;return n.max-n.min-parseFloat(o)-parseFloat(i)},height:(t,e)=>{let{y:n}=t,{paddingTop:o="0",paddingBottom:i="0"}=e;return n.max-n.min-parseFloat(o)-parseFloat(i)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:o}=e;return parseFloat(o)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:o}=e;return parseFloat(o)+(n.max-n.min)},x:mt(4,13),y:mt(5,14)};yt.translateX=yt.x,yt.translateY=yt.y;const xt=t=>e=>e.test(t),bt=[nt,lt,at,st,ct,ut,{test:t=>"auto"===t,parse:t=>t}],wt=t=>bt.find(xt(t)),St=new Set;let Ct=!1,Pt=!1;function Et(){if(Pt){const t=Array.from(St).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return gt.forEach((n=>{const o=t.getValue(n);void 0!==o&&(e.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((e=>{let[n,o]=e;var i;null===(i=t.getValue(n))||void 0===i||i.set(o)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Pt=!1,Ct=!1,St.forEach((t=>t.complete())),St.clear()}function Tt(){St.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Pt=!0)}))}class At{constructor(t,e,n,o,i){let r=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=o,this.element=i,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(St.add(this),Ct||(Ct=!0,O.read(Tt),O.resolveKeyframes(Et))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:o}=this;for(let i=0;i<t.length;i++)if(null===t[i])if(0===i){const i=null===o||void 0===o?void 0:o.get(),r=t[t.length-1];if(void 0!==i)t[0]=i;else if(n&&e){const o=n.readValue(e,r);void 0!==o&&null!==o&&(t[0]=o)}void 0===t[0]&&(t[0]=r),o&&void 0===i&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),St.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,St.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Mt=t=>Math.round(1e5*t)/1e5,Rt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Ot=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dt=(t,e)=>n=>Boolean("string"===typeof n&&Ot.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),kt=(t,e,n)=>o=>{if("string"!==typeof o)return o;const[i,r,s,a]=o.match(Rt);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Vt={...nt,transform:t=>Math.round((t=>et(0,255,t))(t))},jt={test:Dt("rgb","red"),parse:kt("red","green","blue"),transform:t=>{let{red:e,green:n,blue:o,alpha:i=1}=t;return"rgba("+Vt.transform(e)+", "+Vt.transform(n)+", "+Vt.transform(o)+", "+Mt(ot.transform(i))+")"}};const Lt={test:Dt("#"),parse:function(t){let e="",n="",o="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),o=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),o=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,o+=o,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}},transform:jt.transform},Ft={test:Dt("hsl","hue"),parse:kt("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:o,alpha:i=1}=t;return"hsla("+Math.round(e)+", "+at.transform(Mt(n))+", "+at.transform(Mt(o))+", "+Mt(ot.transform(i))+")"}},Bt={test:t=>jt.test(t)||Lt.test(t)||Ft.test(t),parse:t=>jt.test(t)?jt.parse(t):Ft.test(t)?Ft.parse(t):Lt.parse(t),transform:t=>"string"===typeof t?t:t.hasOwnProperty("red")?jt.transform(t):Ft.transform(t)},Nt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const It="number",_t="color",Ut=/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){const e=t.toString(),n=[],o={color:[],number:[],var:[]},i=[];let r=0;const s=e.replace(Ut,(t=>(Bt.test(t)?(o.color.push(r),i.push(_t),n.push(Bt.parse(t))):t.startsWith("var(")?(o.var.push(r),i.push("var"),n.push(t)):(o.number.push(r),i.push(It),n.push(parseFloat(t))),++r,"${}"))).split("${}");return{values:n,split:s,indexes:o,types:i}}function $t(t){return Wt(t).values}function Ht(t){const{split:e,types:n}=Wt(t),o=e.length;return t=>{let i="";for(let r=0;r<o;r++)if(i+=e[r],void 0!==t[r]){const e=n[r];i+=e===It?Mt(t[r]):e===_t?Bt.transform(t[r]):t[r]}return i}}const zt=t=>"number"===typeof t?0:t;const Yt={test:function(t){var e,n;return isNaN(t)&&"string"===typeof t&&((null===(e=t.match(Rt))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Nt))||void 0===n?void 0:n.length)||0)>0},parse:$t,createTransformer:Ht,getAnimatableNone:function(t){const e=$t(t);return Ht(t)(e.map(zt))}},Xt=new Set(["brightness","contrast","saturate","opacity"]);function Kt(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[o]=n.match(Rt)||[];if(!o)return t;const i=n.replace(o,"");let r=Xt.has(e)?1:0;return o!==n&&(r*=100),e+"("+r+i+")"}const qt=/\b([a-z-]*)\(.*?\)/gu,Gt={...Yt,getAnimatableNone:t=>{const e=t.match(qt);return e?e.map(Kt).join(" "):t}},Zt={borderWidth:lt,borderTopWidth:lt,borderRightWidth:lt,borderBottomWidth:lt,borderLeftWidth:lt,borderRadius:lt,radius:lt,borderTopLeftRadius:lt,borderTopRightRadius:lt,borderBottomRightRadius:lt,borderBottomLeftRadius:lt,width:lt,maxWidth:lt,height:lt,maxHeight:lt,top:lt,right:lt,bottom:lt,left:lt,padding:lt,paddingTop:lt,paddingRight:lt,paddingBottom:lt,paddingLeft:lt,margin:lt,marginTop:lt,marginRight:lt,marginBottom:lt,marginLeft:lt,backgroundPositionX:lt,backgroundPositionY:lt},Qt={rotate:st,rotateX:st,rotateY:st,rotateZ:st,scale:it,scaleX:it,scaleY:it,scaleZ:it,skew:st,skewX:st,skewY:st,distance:lt,translateX:lt,translateY:lt,translateZ:lt,x:lt,y:lt,z:lt,perspective:lt,transformPerspective:lt,opacity:ot,originX:dt,originY:dt,originZ:lt},Jt={...nt,transform:Math.round},te={...Zt,...Qt,zIndex:Jt,size:lt,fillOpacity:ot,strokeOpacity:ot,numOctaves:Jt},ee={...te,color:Bt,backgroundColor:Bt,outlineColor:Bt,fill:Bt,stroke:Bt,borderColor:Bt,borderTopColor:Bt,borderRightColor:Bt,borderBottomColor:Bt,borderLeftColor:Bt,filter:Gt,WebkitFilter:Gt},ne=t=>ee[t];function oe(t,e){let n=ne(t);return n!==Gt&&(n=Yt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ie=new Set(["auto","none","0"]);class re extends At{constructor(t,e,n,o,i){super(t,e,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"===typeof n&&(n=n.trim(),Z(n))){const o=tt(n,e.current);void 0!==o&&(t[a]=o),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ht.has(n)||2!==t.length)return;const[o,i]=t,r=wt(o),s=wt(i);if(r!==s)if(pt(r)&&pt(s))for(let a=0;a<t.length;a++){const e=t[a];"string"===typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)("number"===typeof(o=t[i])?0===o:null===o||"none"===o||"0"===o||z(o))&&n.push(i);var o;n.length&&function(t,e,n){let o,i=0;for(;i<t.length&&!o;){const e=t[i];"string"===typeof e&&!ie.has(e)&&Wt(e).values.length&&(o=t[i]),i++}if(o&&n)for(const r of e)t[r]=oe(n,o)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const o=e[e.length-1];void 0!==o&&t.getValue(n,o).jump(o,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:o}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=o.length-1,s=o[r];o[r]=yt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach((t=>{let[n,o]=t;e.getValue(n).set(o)})),this.resolveNoneKeyframes()}}function se(t){return"function"===typeof t}let ae;function le(){ae=void 0}const ue={now:()=>(void 0===ae&&ue.set(k.isProcessing||C?k.timestamp:performance.now()),ae),set:t=>{ae=t,queueMicrotask(le)}},ce=(t,e)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Yt.test(t)&&"0"!==t||t.startsWith("url(")));function de(t,e,n,o){const i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],s=ce(i,e),a=ce(r,e);return(0,Y.$)(s===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!(!s||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||se(n))&&o)}class he{constructor(t){let{autoplay:e=!0,delay:n=0,type:o="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",...a}=t;this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ue.now(),this.options={autoplay:e,delay:n,type:o,repeat:i,repeatDelay:r,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Tt(),Et()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=ue.now(),this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:i,delay:r,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!de(t,n,o,i)){if(P||!r)return null===a||void 0===a||a(T(t,this.options,e)),null===s||void 0===s||s(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const pe=(t,e,n)=>{const o=e-t;return 0===o?1:(n-t)/o},fe=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)o+=t(pe(0,i-1,r))+", ";return`linear(${o.substring(0,o.length-2)})`};function me(t,e){return e?t*(1e3/e):0}function ve(t,e,n){const o=Math.max(e-5,0);return me(n-t(o),e-o)}const ge={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},ye=.001;function xe(t){let e,n,{duration:o=ge.duration,bounce:i=ge.bounce,velocity:r=ge.velocity,mass:s=ge.mass}=t;(0,Y.$)(o<=m(ge.maxDuration),"Spring duration must be 10 seconds or less");let a=1-i;a=et(ge.minDamping,ge.maxDamping,a),o=et(ge.minDuration,ge.maxDuration,v(o)),a<1?(e=t=>{const e=t*a,n=e*o,i=e-r,s=we(t,a),l=Math.exp(-n);return ye-i/s*l},n=t=>{const n=t*a*o,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*o,l=Math.exp(-n),u=we(Math.pow(t,2),a);return(-e(t)+ye>0?-1:1)*((i-s)*l)/u}):(e=t=>Math.exp(-t*o)*((t-r)*o+1)-.001,n=t=>Math.exp(-t*o)*(o*o*(r-t)));const l=function(t,e,n){let o=n;for(let i=1;i<be;i++)o-=t(o)/e(o);return o}(e,n,5/o);if(o=m(o),isNaN(l))return{stiffness:ge.stiffness,damping:ge.damping,duration:o};{const t=Math.pow(l,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:o}}}const be=12;function we(t,e){return t*Math.sqrt(1-e*e)}const Se=2e4;function Ce(t){let e=0;let n=t.next(e);for(;!n.done&&e<Se;)e+=50,n=t.next(e);return e>=Se?1/0:e}const Pe=["duration","bounce"],Ee=["stiffness","damping","mass"];function Te(t,e){return e.some((e=>void 0!==t[e]))}function Ae(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge.visualDuration,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge.bounce;const n="object"!==typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:o,restDelta:i}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:p}=function(t){let e={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...t};if(!Te(t,Ee)&&Te(t,Pe))if(t.visualDuration){const n=t.visualDuration,o=2*Math.PI/(1.2*n),i=o*o,r=2*et(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:ge.mass,stiffness:i,damping:r}}else{const n=xe(t);e={...e,...n,mass:ge.mass},e.isResolvedFromDuration=!0}return e}({...n,velocity:-v(n.velocity||0)}),f=h||0,g=u/(2*Math.sqrt(l*c)),y=s-r,x=v(Math.sqrt(l/c)),b=Math.abs(y)<5;let w;if(o||(o=b?ge.restSpeed.granular:ge.restSpeed.default),i||(i=b?ge.restDelta.granular:ge.restDelta.default),g<1){const t=we(x,g);w=e=>{const n=Math.exp(-g*x*e);return s-n*((f+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}}else if(1===g)w=t=>s-Math.exp(-x*t)*(y+(f+x*y)*t);else{const t=x*Math.sqrt(g*g-1);w=e=>{const n=Math.exp(-g*x*e),o=Math.min(t*e,300);return s-n*((f+g*x*y)*Math.sinh(o)+t*y*Math.cosh(o))/t}}const S={calculatedDuration:p&&d||null,next:t=>{const e=w(t);if(p)a.done=t>=d;else{let n=0;g<1&&(n=0===t?m(f):ve(w,t,e));const r=Math.abs(n)<=o,l=Math.abs(s-e)<=i;a.done=r&&l}return a.value=a.done?s:e,a},toString:()=>{const t=Math.min(Ce(S),Se),e=fe((e=>S.next(t*e).value),t,30);return t+"ms "+e}};return S}function Me(t){let{keyframes:e,velocity:n=0,power:o=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:d}=t;const h=e[0],p={done:!1,value:h},f=t=>void 0===l?u:void 0===u||Math.abs(l-t)<Math.abs(u-t)?l:u;let m=o*n;const v=h+m,g=void 0===a?v:a(v);g!==v&&(m=g-h);const y=t=>-m*Math.exp(-t/i),x=t=>g+y(t),b=t=>{const e=y(t),n=x(t);p.done=Math.abs(e)<=c,p.value=p.done?g:n};let w,S;const C=t=>{var e;(e=p.value,void 0!==l&&e<l||void 0!==u&&e>u)&&(w=t,S=Ae({keyframes:[p.value,f(p.value)],velocity:ve(x,t,p.value),damping:r,stiffness:s,restDelta:c,restSpeed:d}))};return C(0),{calculatedDuration:null,next:t=>{let e=!1;return S||void 0!==w||(e=!0,b(t),C(t)),void 0!==w&&t>=w?S.next(t-w):(!e&&b(t),p)}}}const Re=L(.42,0,1,1),Oe=L(0,0,.58,1),De=L(.42,0,.58,1),ke=t=>Array.isArray(t)&&"number"===typeof t[0],Ve={linear:A.l,easeIn:Re,easeInOut:De,easeOut:Oe,circIn:W,circInOut:H,circOut:$,backIn:I,backInOut:_,backOut:N,anticipate:U},je=t=>{if(ke(t)){(0,Y.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,i]=t;return L(e,n,o,i)}return"string"===typeof t?((0,Y.V)(void 0!==Ve[t],`Invalid easing type '${t}'`),Ve[t]):t},Le=(t,e)=>n=>e(t(n)),Fe=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(Le)},Be=(t,e,n)=>t+(e-t)*n;function Ne(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ie(t,e){return n=>n>0?e:t}const _e=(t,e,n)=>{const o=t*t,i=n*(e*e-o)+o;return i<0?0:Math.sqrt(i)},Ue=[Lt,jt,Ft];function We(t){const e=(n=t,Ue.find((t=>t.test(n))));var n;if((0,Y.$)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let o=e.parse(t);return e===Ft&&(o=function(t){let{hue:e,saturation:n,lightness:o,alpha:i}=t;e/=360,n/=100,o/=100;let r=0,s=0,a=0;if(n){const t=o<.5?o*(1+n):o+n-o*n,i=2*o-t;r=Ne(i,t,e+1/3),s=Ne(i,t,e),a=Ne(i,t,e-1/3)}else r=s=a=o;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(o)),o}const $e=(t,e)=>{const n=We(t),o=We(e);if(!n||!o)return Ie(t,e);const i={...n};return t=>(i.red=_e(n.red,o.red,t),i.green=_e(n.green,o.green,t),i.blue=_e(n.blue,o.blue,t),i.alpha=Be(n.alpha,o.alpha,t),jt.transform(i))},He=new Set(["none","hidden"]);function ze(t,e){return n=>Be(t,e,n)}function Ye(t){return"number"===typeof t?ze:"string"===typeof t?Z(t)?Ie:Bt.test(t)?$e:qe:Array.isArray(t)?Xe:"object"===typeof t?Bt.test(t)?$e:Ke:Ie}function Xe(t,e){const n=[...t],o=n.length,i=t.map(((t,n)=>Ye(t)(t,e[n])));return t=>{for(let e=0;e<o;e++)n[e]=i[e](t);return n}}function Ke(t,e){const n={...t,...e},o={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(o[i]=Ye(t[i])(t[i],e[i]));return t=>{for(const e in o)n[e]=o[e](t);return n}}const qe=(t,e)=>{const n=Yt.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?He.has(t)&&!i.values.length||He.has(e)&&!o.values.length?function(t,e){return He.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):Fe(Xe(function(t,e){var n;const o=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const s=e.types[r],a=t.indexes[s][i[s]],l=null!==(n=t.values[a])&&void 0!==n?n:0;o[r]=l,i[s]++}return o}(o,i),i.values),n):((0,Y.$)(!0,`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.`),Ie(t,e))};function Ge(t,e,n){if("number"===typeof t&&"number"===typeof e&&"number"===typeof n)return Be(t,e,n);return Ye(t)(t,e)}function Ze(t,e){let{clamp:n=!0,ease:o,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.length;if((0,Y.V)(r===e.length,"Both input and output ranges must be the same length"),1===r)return()=>e[0];if(2===r&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=function(t,e,n){const o=[],i=n||Ge,r=t.length-1;for(let s=0;s<r;s++){let n=i(t[s],t[s+1]);if(e){const t=Array.isArray(e)?e[s]||A.l:e;n=Fe(t,n)}o.push(n)}return o}(e,o,i),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const o=pe(t[n],t[n+1],e);return s[n](o)};return n?e=>l(et(t[0],t[r-1],e)):l}function Qe(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const i=pe(0,e,o);t.push(Be(n,1,i))}}(e,t.length-1),e}function Je(t){let{duration:e=300,keyframes:n,times:o,ease:i="easeInOut"}=t;const r=(t=>Array.isArray(t)&&"number"!==typeof t[0])(i)?i.map(je):je(i),s={done:!1,value:n[0]},a=function(t,e){return t.map((t=>t*e))}(o&&o.length===n.length?o:Qe(n),e),l=Ze(a,n,{ease:Array.isArray(r)?r:(u=n,c=r,u.map((()=>c||De)).splice(0,u.length-1))});var u,c;return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}const tn=t=>{const e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>O.update(e,!0),stop:()=>D(e),now:()=>k.isProcessing?k.timestamp:ue.now()}},en={decay:Me,inertia:Me,tween:Je,keyframes:Je,spring:Ae},nn=t=>t/100;class on extends he{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:o,keyframes:i}=this.options,r=(null===o||void 0===o?void 0:o.KeyframeResolver)||At;this.resolver=new r(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:r=0}=this.options,s=se(e)?e:en[e]||Je;let a,l;s!==Je&&"number"!==typeof t[0]&&(a=Fe(nn,Ge(t[0],t[1])),t=[0,100]);const u=s({...this.options,keyframes:t});"mirror"===i&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-r})),null===u.calculatedDuration&&(u.calculatedDuration=Ce(u));const{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-o}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:r,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=i;if(h){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1);Boolean(e%2)&&("reverse"===p?(n=1-n,f&&(n-=f/c)):"mirror"===p&&(x=r)),y=et(0,1,n)*c}const b=g?{done:!1,value:a[0]}:x.next(y);s&&(b.value=s(b.value));let{done:w}=b;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&void 0!==o&&(b.value=T(a,this.options,o)),m&&m(b.value),S&&this.finish(),b}get duration(){const{resolved:t}=this;return t?v(t.calculatedDuration):0}get time(){return v(this.currentTime)}set time(t){t=m(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=v(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=tn,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const o=this.driver.now();null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=o):this.startTime=null!==n&&void 0!==n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const rn=new Set(["opacity","clipPath","filter","transform"]);function sn(t){let e;return()=>(void 0===e&&(e=t()),e)}const an={linearEasing:void 0};function ln(t,e){const n=sn(t);return()=>{var t;return null!==(t=an[e])&&void 0!==t?t:n()}}const un=ln((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing");function cn(t){return Boolean("function"===typeof t&&un()||!t||"string"===typeof t&&(t in hn||un())||ke(t)||Array.isArray(t)&&t.every(cn))}const dn=t=>{let[e,n,o,i]=t;return`cubic-bezier(${e}, ${n}, ${o}, ${i})`},hn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dn([0,.65,.55,1]),circOut:dn([.55,0,1,.45]),backIn:dn([.31,.01,.66,-.59]),backOut:dn([.33,1.53,.69,.99])};function pn(t,e){return t?"function"===typeof t&&un()?fe(t,e):ke(t)?dn(t):Array.isArray(t)?t.map((t=>pn(t,e)||hn.easeOut)):hn[t]:void 0}function fn(t,e,n){let{delay:o=0,duration:i=300,repeat:r=0,repeatType:s="loop",ease:a="easeInOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u={[e]:n};l&&(u.offset=l);const c=pn(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:o,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===s?"alternate":"normal"})}function mn(t,e){t.timeline=e,t.onfinish=null}const vn=sn((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const gn={anticipate:U,backInOut:_,circInOut:H};class yn extends he{constructor(t){super(t);const{name:e,motionValue:n,element:o,keyframes:i}=this.options;this.resolver=new re(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,o),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:o=300,times:i,ease:r,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;var c;if("string"===typeof r&&un()&&r in gn&&(r=gn[r]),se((c=this.options).type)||"spring"===c.type||!cn(c.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...u}=this.options,c=function(t,e){const n=new on({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:t[0]};const i=[];let r=0;for(;!o.done&&r<2e4;)o=n.sample(r),i.push(o.value),r+=10;return{times:void 0,keyframes:i,duration:r-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),o=c.duration,i=c.times,r=c.ease,s="keyframes"}const d=fn(a.owner.current,l,t,{...this.options,duration:o,times:i,ease:r});return d.startTime=null!==u&&void 0!==u?u:this.calcStartTime(),this.pendingTimeline?(mn(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:n}=this.options;a.set(T(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:s,ease:r,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return v(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return v(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=m(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return A.l;const{animation:n}=e;mn(n,t)}else this.pendingTimeline=t;return A.l}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:o,type:i,ease:r,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new on({...u,keyframes:n,duration:o,type:i,ease:r,times:s,isGenerator:!0}),d=m(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:o,repeatType:i,damping:r,type:s}=t;return vn()&&n&&rn.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!o&&"mirror"!==i&&0!==r&&"inertia"!==s}}const xn=sn((()=>void 0!==window.ScrollTimeline));class bn{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map((n=>xn()&&n.attachTimeline?n.attachTimeline(t):e(n)));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const wn=function(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;return s=>{const a=w(o,t)||{},l=a.delay||o.delay||0;let{elapsed:u=0}=o;u-=m(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};(function(t){let{when:e,delay:n,delayChildren:o,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:l,from:u,elapsed:c,...d}=t;return!!Object.keys(d).length})(a)||(c={...c,...b(t,c)}),c.duration&&(c.duration=m(c.duration)),c.repeatDelay&&(c.repeatDelay=m(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),(P||S)&&(d=!0,c.duration=0,c.delay=0),d&&!r&&void 0!==e.get()){const t=T(c.keyframes,a);if(void 0!==t)return O.update((()=>{c.onUpdate(t),c.onComplete()})),new bn([])}return!r&&yn.supports(c)?new yn(c):new on(c)}};function Sn(t,e){-1===t.indexOf(e)&&t.push(e)}function Cn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Pn{constructor(){this.subscriptions=[]}add(t){return Sn(this.subscriptions,t),()=>Cn(this.subscriptions,t)}notify(t,e,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](t,e,n);else for(let i=0;i<o;i++){const o=this.subscriptions[i];o&&o(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const En={current:void 0};class Tn{constructor(t){var e=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=ue.now();e.updatedAt!==o&&e.setPrevFrameValue(),e.prev=e.current,e.setCurrent(t),e.current!==e.prev&&e.events.change&&e.events.change.notify(e.current),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){var e;this.current=t,this.updatedAt=ue.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Pn);const n=this.events[t].add(e);return"change"===t?()=>{n(),O.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return En.current&&En.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ue.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return me(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function An(t,e){return new Tn(t,e)}function Mn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,An(n))}const Rn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),On="data-"+Rn("framerAppearId");function Dn(t){return t.props[On]}const kn=t=>Boolean(t&&t.getVelocity);function Vn(t,e){const n=t.getValue("willChange");if(o=n,Boolean(kn(o)&&o.add))return n.add(e);var o}function jn(t,e){let{protectedKeys:n,needsAnimating:o}=t;const i=n.hasOwnProperty(e)&&!0!==o[e];return o[e]=!1,i}function Ln(t,e){let{delay:n=0,transitionOverride:o,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var s;let{transition:a=t.getDefaultTransition(),transitionEnd:l,...u}=e;o&&(a=o);const d=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const r in u){const e=t.getValue(r,null!==(s=t.latestValues[r])&&void 0!==s?s:null),o=u[r];if(void 0===o||h&&jn(h,r))continue;const i={delay:n,...w(a||{},r)};let l=!1;if(window.MotionHandoffAnimation){const e=Dn(t);if(e){const t=window.MotionHandoffAnimation(e,r,O);null!==t&&(i.startTime=t,l=!0)}}Vn(t,r),e.start(wn(r,e,o,t.shouldReduceMotion&&f.has(r)?{type:!1}:i,t,l));const c=e.animation;c&&d.push(c)}return l&&Promise.all(d).then((()=>{O.update((()=>{l&&function(t,e){const n=c(t,e);let{transitionEnd:o={},transition:i={},...s}=n||{};s={...s,...o};for(const l in s)Mn(t,l,(a=s[l],r(a)?a[a.length-1]||0:a));var a}(t,l)}))})),d}function Fn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o;const i=c(t,e,"exit"===n.type?null===(o=t.presenceContext)||void 0===o?void 0:o.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const s=i?()=>Promise.all(Ln(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5?arguments[5]:void 0;const s=[],a=(t.variantChildren.size-1)*o,l=1===i?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*o}:function(){return a-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*o};return Array.from(t.variantChildren).sort(Bn).forEach(((t,o)=>{t.notify("AnimationStart",e),s.push(Fn(t,e,{...r,delay:n+l(o)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+o,s,a,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then((()=>e()))}return Promise.all([s(),a(n.delay)])}function Bn(t,e){return t.sortNodePosition(e)}const Nn=h.length;function In(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&In(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Nn;n++){const o=h[n],i=t.props[o];(a(i)||!1===i)&&(e[o]=i)}return e}const _n=[...d].reverse(),Un=d.length;function Wn(t){return e=>Promise.all(e.map((e=>{let{animation:n,options:o}=e;return function(t,e){let n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>Fn(t,e,o)));n=Promise.all(i)}else if("string"===typeof e)n=Fn(t,e,o);else{const i="function"===typeof e?c(t,e,o.custom):e;n=Promise.all(Ln(t,i,o))}return n.then((()=>{t.notify("AnimationComplete",e)}))}(t,n,o)})))}function $n(t){let e=Wn(t),n=Yn(),o=!0;const l=e=>(n,o)=>{var i;const r=c(t,o,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(r){const{transition:t,transitionEnd:e,...o}=r;n={...n,...o,...e}}return n};function u(u){const{props:c}=t,d=In(t.parent)||{},h=[],p=new Set;let f={},m=1/0;for(let e=0;e<Un;e++){const v=_n[e],g=n[v],y=void 0!==c[v]?c[v]:d[v],x=a(y),b=v===u?g.isActive:null;!1===b&&(m=e);let w=y===d[v]&&y!==c[v]&&x;if(w&&o&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...f},!g.isActive&&null===b||!y&&!g.prevProp||i(y)||"boolean"===typeof y)continue;const S=Hn(g.prevProp,y);let C=S||v===u&&g.isActive&&!w&&x||e>m&&x,P=!1;const E=Array.isArray(y)?y:[y];let T=E.reduce(l(v),{});!1===b&&(T={});const{prevResolvedValues:A={}}=g,M={...A,...T},R=e=>{C=!0,p.has(e)&&(P=!0,p.delete(e)),g.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in M){const e=T[t],n=A[t];if(f.hasOwnProperty(t))continue;let o=!1;o=r(e)&&r(n)?!s(e,n):e!==n,o?void 0!==e&&null!==e?R(t):p.add(t):void 0!==e&&p.has(t)?R(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(f={...f,...T}),o&&t.blockInitialAnimation&&(C=!1);C&&(!(w&&S)||P)&&h.push(...E.map((t=>({animation:t,options:{type:v}}))))}if(p.size){const e={};p.forEach((n=>{const o=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=null!==o&&void 0!==o?o:null})),h.push({animation:e})}let v=Boolean(h.length);return!o||!1!==c.initial&&c.initial!==c.animate||t.manuallyAnimateOnMount||(v=!1),o=!1,v?e(h):Promise.resolve()}return{animateChanges:u,setActive:function(e,o){var i;if(n[e].isActive===o)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,o)})),n[e].isActive=o;const r=u(e);for(const t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Yn(),o=!0}}}function Hn(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!s(e,t)}function zn(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yn(){return{animate:zn(!0),whileInView:zn(),whileHover:zn(),whileTap:zn(),whileDrag:zn(),whileFocus:zn(),exit:zn()}}class Xn{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Kn=0;const qn={animation:{Feature:class extends Xn{constructor(t){super(t),t.animationState||(t.animationState=$n(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();i(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends Xn{constructor(){super(...arguments),this.id=Kn++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);e&&!t&&o.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Gn={x:!1,y:!1};function Zn(){return Gn.x||Gn.y}function Qn(t,e){const n=function(t,e,n){var o;if(t instanceof Element)return[t];if("string"===typeof t){let i=document;e&&(i=e.current);const r=null!==(o=null===n||void 0===n?void 0:n[t])&&void 0!==o?o:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}(t),o=new AbortController;return[n,{passive:!0,...e,signal:o.signal},()=>o.abort()]}function Jn(t){return e=>{"touch"===e.pointerType||Zn()||t(e)}}const to=t=>"mouse"===t.pointerType?"number"!==typeof t.button||t.button<=0:!1!==t.isPrimary,eo=new WeakSet;function no(t){return e=>{"Enter"===e.key&&t(e)}}function oo(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const io=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const ro=(t,e)=>!!e&&(t===e||ro(t,e.parentElement));function so(t){return to(t)&&!Zn()}function ao(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[o,i,r]=Qn(t,n),s=t=>{const o=t.currentTarget;if(!so(t)||eo.has(o))return;eo.add(o);const r=e(t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),so(t)&&eo.has(o)&&(eo.delete(o),r&&r(t,{success:e}))},a=t=>{s(t,n.useGlobalTarget||ro(o,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return o.forEach((t=>{(function(t){return io.has(t.tagName)||-1!==t.tabIndex})(t)||(t.tabIndex=0);(n.useGlobalTarget?window:t).addEventListener("pointerdown",s,i),t.addEventListener("focus",(t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const o=no((()=>{if(eo.has(n))return;oo(n,"down");const t=no((()=>{oo(n,"up")}));n.addEventListener("keyup",t,e),n.addEventListener("blur",(()=>oo(n,"cancel")),e)}));n.addEventListener("keydown",o,e),n.addEventListener("blur",(()=>n.removeEventListener("keydown",o)),e)})(t,i)),i)})),r}function lo(t){return{point:{x:t.pageX,y:t.pageY}}}function uo(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n)}function co(t,e,n,o){return uo(t,e,(t=>e=>to(e)&&t(e,lo(e)))(n),o)}const ho=(t,e)=>Math.abs(t-e);class po{constructor(t,e){let{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=vo(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=ho(t.x,e.x),o=ho(t.y,e.y);return Math.sqrt(n**2+o**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:o}=t,{timestamp:i}=k;this.history.push({...o,timestamp:i});const{onStart:r,onMove:s}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=fo(e,this.transformPagePoint),O.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:o,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const r=vo("pointercancel"===t.type?this.lastMoveEventInfo:fo(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,r),o&&o(t,r)},!to(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=o||window;const r=fo(lo(t),this.transformPagePoint),{point:s}=r,{timestamp:a}=k;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,vo(r,this.history)),this.removeListeners=Fe(co(this.contextWindow,"pointermove",this.handlePointerMove),co(this.contextWindow,"pointerup",this.handlePointerUp),co(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),D(this.updatePoint)}}function fo(t,e){return e?{point:e(t.point)}:t}function mo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function vo(t,e){let{point:n}=t;return{point:n,delta:mo(n,yo(e)),offset:mo(n,go(e)),velocity:xo(e,.1)}}function go(t){return t[0]}function yo(t){return t[t.length-1]}function xo(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,o=null;const i=yo(t);for(;n>=0&&(o=t[n],!(i.timestamp-o.timestamp>m(e)));)n--;if(!o)return{x:0,y:0};const r=v(i.timestamp-o.timestamp);if(0===r)return{x:0,y:0};const s={x:(i.x-o.x)/r,y:(i.y-o.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function bo(t){return t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function wo(t){return t.max-t.min}function So(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=o,t.originPoint=Be(e.min,e.max,t.origin),t.scale=wo(n)/wo(e),t.translate=Be(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Co(t,e,n,o){So(t.x,e.x,n.x,o?o.originX:void 0),So(t.y,e.y,n.y,o?o.originY:void 0)}function Po(t,e,n){t.min=n.min+e.min,t.max=t.min+wo(e)}function Eo(t,e,n){t.min=e.min-n.min,t.max=t.min+wo(e)}function To(t,e,n){Eo(t.x,e.x,n.x),Eo(t.y,e.y,n.y)}function Ao(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Mo(t,e){let n=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,o]=[o,n]),{min:n,max:o}}const Ro=.35;function Oo(t,e,n){return{min:Do(t,e),max:Do(t,n)}}function Do(t,e){return"number"===typeof t?t:t[e]||0}const ko=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Vo(t){return[t("x"),t("y")]}function jo(t){let{top:e,left:n,right:o,bottom:i}=t;return{x:{min:n,max:o},y:{min:e,max:i}}}function Lo(t){return void 0===t||1===t}function Fo(t){let{scale:e,scaleX:n,scaleY:o}=t;return!Lo(e)||!Lo(n)||!Lo(o)}function Bo(t){return Fo(t)||No(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function No(t){return Io(t.x)||Io(t.y)}function Io(t){return t&&"0%"!==t}function _o(t,e,n){return n+e*(t-n)}function Uo(t,e,n,o,i){return void 0!==i&&(t=_o(t,i,o)),_o(t,n,o)+e}function Wo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;t.min=Uo(t.min,e,n,o,i),t.max=Uo(t.max,e,n,o,i)}function $o(t,e){let{x:n,y:o}=e;Wo(t.x,n.translate,n.scale,n.originPoint),Wo(t.y,o.translate,o.scale,o.originPoint)}const Ho=.999999999999,zo=1.0000000000001;function Yo(t,e){t.min=t.min+e,t.max=t.max+e}function Xo(t,e,n,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;Wo(t,e,n,Be(t.min,t.max,i),o)}function Ko(t,e){Xo(t.x,e.x,e.scaleX,e.scale,e.originX),Xo(t.y,e.y,e.scaleY,e.scale,e.originY)}function qo(t,e){return jo(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),o=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(t.getBoundingClientRect(),e))}const Go=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},Zo=new WeakMap;class Qo{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new po(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(lo(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:o,onDragStart:i}=this.getProps();if(n&&!o&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(r=n)||"y"===r?Gn[r]?null:(Gn[r]=!0,()=>{Gn[r]=!1}):Gn.x||Gn.y?null:(Gn.x=Gn.y=!0,()=>{Gn.x=Gn.y=!1}),!this.openDragLock))return;var r;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vo((t=>{let e=this.getAxisMotionValue(t).get()||0;if(at.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const o=n.layout.layoutBox[t];if(o){e=wo(o)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),i&&O.postRender((()=>i(t,e))),Vn(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:i,onDrag:r}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=e;if(o&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Vo((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:Go(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=e;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&O.postRender((()=>i(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:o}=this.getProps();if(!n||!Jo(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=function(t,e,n){let{min:o,max:i}=e;return void 0!==o&&t<o?t=n?Be(o,t,n.min):Math.max(t,o):void 0!==i&&t>i&&(t=n?Be(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&bo(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!o)&&function(t,e){let{top:n,left:o,bottom:i,right:r}=e;return{x:Ao(t.x,o,r),y:Ao(t.y,n,i)}}(o.layoutBox,e),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ro;return!1===t?t=0:!0===t&&(t=Ro),{x:Oo(t,"left","right"),y:Oo(t,"top","bottom")}}(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Vo((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!bo(t))return!1;const n=t.current;(0,Y.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=function(t,e,n){const o=qo(t,n),{scroll:i}=e;return i&&(Yo(o.x,i.offset.x),Yo(o.y,i.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:Mo(t.x,e.x),y:Mo(t.y,e.y)}}(o.layout.layoutBox,i);if(e){const t=e(function(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=jo(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Vo((s=>{if(!Jo(s,e,this.currentDirection))return;let l=a&&a[s]||{};r&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,d={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return Vn(this.visualElement,t),n.start(wn(t,n,0,e,this.visualElement,!1))}stopAnimation(){Vo((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Vo((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[e];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Vo((e=>{const{drag:n}=this.getProps();if(!Jo(e,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(e);if(o&&o.layout){const{min:n,max:r}=o.layout.layoutBox[e];i.set(t[e]-Be(n,r,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!bo(e)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Vo((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();o[t]=function(t,e){let n=.5;const o=wo(t),i=wo(e);return i>o?n=pe(e.min,e.max-o,t.min):o>i&&(n=pe(t.min,t.max-i,e.min)),et(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Vo((e=>{if(!Jo(e,t,null))return;const n=this.getAxisMotionValue(e),{min:i,max:r}=this.constraints[e];n.set(Be(i,r,o[e]))}))}addListeners(){if(!this.visualElement.current)return;Zo.set(this.visualElement,this);const t=co(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();bo(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),O.read(e);const i=uo(window,"resize",(()=>this.scalePositionWithinConstraints())),r=n.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(Vo((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{i(),t(),o(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:r=Ro,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:r,dragMomentum:s}}}function Jo(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}const ti=t=>(e,n)=>{t&&O.postRender((()=>t(e,n)))};var ei=n(4414),ni=n(9950),oi=n(3487);var ii=n(6017);const ri=(0,ni.createContext)({}),si={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ai(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const li={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!lt.test(t))return t;t=parseFloat(t)}return`${ai(t,e.target.x)}% ${ai(t,e.target.y)}%`}},ui={correct:(t,e)=>{let{treeScale:n,projectionDelta:o}=e;const i=t,r=Yt.parse(t);if(r.length>5)return i;const s=Yt.createTransformer(t),a="number"!==typeof r[0]?1:0,l=o.x.scale*n.x,u=o.y.scale*n.y;r[0+a]/=l,r[1+a]/=u;const c=Be(l,u,.5);return"number"===typeof r[2+a]&&(r[2+a]/=c),"number"===typeof r[3+a]&&(r[3+a]/=c),s(r)}},ci={};const{schedule:di,cancel:hi}=R(queueMicrotask,!1);class pi extends ni.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;var r;r=mi,Object.assign(ci,r),i&&(e.group&&e.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),si.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:o,isPresent:i}=this.props,r=n.projection;return r?(r.isPresent=i,o||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||O.postRender((()=>{const t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),di.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function fi(t){const[e,n]=function(){const t=(0,ni.useContext)(oi.t);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:o}=t,i=(0,ni.useId)();(0,ni.useEffect)((()=>o(i)),[]);const r=(0,ni.useCallback)((()=>n&&n(i)),[i,n]);return!e&&n?[!1,r]:[!0]}(),o=(0,ni.useContext)(ii.L);return(0,ei.jsx)(pi,{...t,layoutGroup:o,switchLayoutGroup:(0,ni.useContext)(ri),isPresent:e,safeToRemove:n})}const mi={borderRadius:{...li,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:li,borderTopRightRadius:li,borderBottomLeftRadius:li,borderBottomRightRadius:li,boxShadow:ui},vi=["TopLeft","TopRight","BottomLeft","BottomRight"],gi=vi.length,yi=t=>"string"===typeof t?parseFloat(t):t,xi=t=>"number"===typeof t||lt.test(t);function bi(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const wi=Ci(0,.5,$),Si=Ci(.5,.95,A.l);function Ci(t,e,n){return o=>o<t?0:o>e?1:n(pe(t,e,o))}function Pi(t,e){t.min=e.min,t.max=e.max}function Ei(t,e){Pi(t.x,e.x),Pi(t.y,e.y)}function Ti(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ai(t,e,n,o,i){return t=_o(t-=e,1/n,o),void 0!==i&&(t=_o(t,1/i,o)),t}function Mi(t,e,n,o,i){let[r,s,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;at.test(e)&&(e=parseFloat(e),e=Be(s.min,s.max,e/100)-s.min);if("number"!==typeof e)return;let a=Be(r.min,r.max,o);t===r&&(a-=e),t.min=Ai(t.min,e,n,a,i),t.max=Ai(t.max,e,n,a,i)}(t,e[r],e[s],e[a],e.scale,o,i)}const Ri=["x","scaleX","originX"],Oi=["y","scaleY","originY"];function Di(t,e,n,o){Mi(t.x,e,Ri,n?n.x:void 0,o?o.x:void 0),Mi(t.y,e,Oi,n?n.y:void 0,o?o.y:void 0)}function ki(t){return 0===t.translate&&1===t.scale}function Vi(t){return ki(t.x)&&ki(t.y)}function ji(t,e){return t.min===e.min&&t.max===e.max}function Li(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Fi(t,e){return Li(t.x,e.x)&&Li(t.y,e.y)}function Bi(t){return wo(t.x)/wo(t.y)}function Ni(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Ii{constructor(){this.members=[]}add(t){Sn(this.members,t),t.scheduleRender()}remove(t){if(Cn(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let o=e;o>=0;o--){const t=this.members[o];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const _i=(t,e)=>t.depth-e.depth;class Ui{constructor(){this.children=[],this.isDirty=!1}add(t){Sn(this.children,t),this.isDirty=!0}remove(t){Cn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_i),this.isDirty=!1,this.children.forEach(t)}}function Wi(t){const e=kn(t)?t.get():t;return n=e,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}function $i(t,e){const n=ue.now(),o=i=>{let{timestamp:r}=i;const s=r-n;s>=e&&(D(o),t(s-e))};return O.read(o,!0),()=>D(o)}const Hi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},zi="undefined"!==typeof window&&void 0!==window.MotionDebug,Yi=["","X","Y","Z"],Xi={visibility:"hidden"};let Ki=0;function qi(t,e,n,o){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),o&&(o[t]=0))}function Gi(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Dn(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",O,!(e||o))}const{parent:o}=t;o&&!o.hasCheckedOptimisedAppear&&Gi(o)}function Zi(t){let{attachResizeListener:e,defaultParent:n,measureScroll:o,checkIsScrollRoot:i,resetTransform:r}=t;return class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=Ki++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,zi&&(Hi.totalNodes=Hi.resolvedTargetDeltas=Hi.recalculatedProjection=0),this.nodes.forEach(tr),this.nodes.forEach(ar),this.nodes.forEach(lr),this.nodes.forEach(er),zi&&window.MotionDebug.record(Hi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ui)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Pn),this.eventHandlers.get(t).add(e)}notifyListeners(t){const e=this.eventHandlers.get(t);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];e&&e.notify(...o)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:i,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||i)&&(this.isLayoutDirty=!0),e){let n;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=$i(o,250),si.hasAnimatedSinceResize&&(si.hasAnimatedSinceResize=!1,this.nodes.forEach(sr))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||r)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:o,layout:i}=t;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||s.getDefaultTransition()||fr,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!Fi(this.targetLayout,i)||o,c=!n&&o;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...w(r,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||sr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,D(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ur),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Gi(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const t=this.path[i];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(or);this.isUpdating||this.nodes.forEach(ir),this.isUpdating=!1,this.nodes.forEach(rr),this.nodes.forEach(Qi),this.nodes.forEach(Ji),this.clearAllSnapshots();const t=ue.now();k.delta=et(0,1e3/60,t-k.timestamp),k.timestamp=t,k.isProcessing=!0,V.update.process(k),V.preRender.process(k),V.render.process(k),k.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,di.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nr),this.sharedNodes.forEach(cr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,O.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){O.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Vi(this.projectionDelta),n=this.getTransformTemplate(),o=n?n(this.latestValues,""):void 0,i=o!==this.prevTransformTemplateValue;t&&(e||Bo(this.latestValues)||i)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var o;return t&&(n=this.removeTransform(n)),gr((o=n).x),gr(o.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(xr))){const{scroll:t}=this.root;t&&(Yo(n.x,t.offset.x),Yo(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Ei(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let o=0;o<this.path.length;o++){const e=this.path[o],{scroll:i,options:r}=e;e!==this.root&&i&&r.layoutScroll&&(i.wasRoot&&Ei(n,t),Yo(n.x,i.offset.x),Yo(n.y,i.offset.y))}return n}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};Ei(n,t);for(let o=0;o<this.path.length;o++){const t=this.path[o];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Ko(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Bo(t.latestValues)&&Ko(n,t.latestValues)}return Bo(this.latestValues)&&Ko(n,this.latestValues),n}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};Ei(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!Bo(t.latestValues))continue;Fo(t.latestValues)&&t.updateSnapshot();const o={x:{min:0,max:0},y:{min:0,max:0}};Ei(o,t.measurePageBox()),Di(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,o)}return Bo(this.latestValues)&&Di(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}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=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==k.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:r}=this.options;if(this.layout&&(i||r)){if(this.resolvedRelativeTargetAt=k.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},To(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Po(s.x,a.x,l.x),Po(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ei(this.target,this.layout.layoutBox),$o(this.target,this.targetDelta)):Ei(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},To(this.relativeTargetOrigin,this.target,t.target),Ei(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}zi&&Hi.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Fo(this.parent.latestValues)&&!No(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let o=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(o=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===k.timestamp&&(o=!1),o)return;const{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!r)return;Ei(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=n.length;if(!i)return;let r,s;e.x=e.y=1;for(let a=0;a<i;a++){r=n[a],s=r.projectionDelta;const{visualElement:i}=r.options;i&&i.props.style&&"contents"===i.props.style.display||(o&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ko(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,$o(t,s)),o&&Bo(r.latestValues)&&Ko(t,r.latestValues))}e.x<zo&&e.x>Ho&&(e.x=1),e.y<zo&&e.y>Ho&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Ti(this.prevProjectionDelta.x,this.projectionDelta.x),Ti(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Co(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&Ni(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ni(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),zi&&Hi.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,o=n?n.latestValues:{},i={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(pr));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,h,p,f,m,v;dr(r.x,t.x,n),dr(r.y,t.y,n),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=s,v=n,hr(p.x,f.x,m.x,v),hr(p.y,f.y,m.y,v),d&&(l=this.relativeTarget,h=d,ji(l.x,h.x)&&ji(l.y,h.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Ei(d,this.relativeTarget)),a&&(this.animationValues=i,function(t,e,n,o,i,r){i?(t.opacity=Be(0,void 0!==n.opacity?n.opacity:1,wi(o)),t.opacityExit=Be(void 0!==e.opacity?e.opacity:1,0,Si(o))):r&&(t.opacity=Be(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let s=0;s<gi;s++){const i=`border${vi[s]}Radius`;let r=bi(e,i),a=bi(n,i);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||xi(r)===xi(a)?(t[i]=Math.max(Be(yi(r),yi(a),o),0),(at.test(a)||at.test(r))&&(t[i]+="%")):t[i]=a)}(e.rotate||n.rotate)&&(t.rotate=Be(e.rotate||0,n.rotate||0,o))}(i,o,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(D(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=O.update((()=>{si.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const o=kn(t)?t:An(t);return o.start(wn("",o,e,n)),o.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:o,latestValues:i}=t;if(e&&n&&o){if(this!==t&&this.layout&&o&&yr(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=wo(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const o=wo(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+o}Ei(e,n),Ko(e,i),Co(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ii);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=this.getStack();o&&o.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const o={};n.z&&qi("z",t,o,this.animationValues);for(let i=0;i<Yi.length;i++)qi(`rotate${Yi[i]}`,t,o,this.animationValues),qi(`skew${Yi[i]}`,t,o,this.animationValues);t.render();for(const i in o)t.setStaticValue(i,o[i]),this.animationValues&&(this.animationValues[i]=o[i]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Xi;const o={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Wi(null===t||void 0===t?void 0:t.pointerEvents)||"",o.transform=i?i(this.latestValues,""):"none",o;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Wi(null===t||void 0===t?void 0:t.pointerEvents)||""),this.hasProjected&&!Bo(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}const s=r.animationValues||r.latestValues;this.applyTransformsToTarget(),o.transform=function(t,e,n){let o="";const i=t.x.translate/e.x,r=t.y.translate/e.y,s=(null===n||void 0===n?void 0:n.z)||0;if((i||r||s)&&(o=`translate3d(${i}px, ${r}px, ${s}px) `),1===e.x&&1===e.y||(o+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:i,rotateY:r,skewX:s,skewY:a}=n;t&&(o=`perspective(${t}px) ${o}`),e&&(o+=`rotate(${e}deg) `),i&&(o+=`rotateX(${i}deg) `),r&&(o+=`rotateY(${r}deg) `),s&&(o+=`skewX(${s}deg) `),a&&(o+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(o+=`scale(${a}, ${l})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(o.transform=i(s,o.transform));const{x:a,y:l}=this.projectionDelta;o.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,r.animationValues?o.opacity=r===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:o.opacity=r===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const u in ci){if(void 0===s[u])continue;const{correct:t,applyTo:e}=ci[u],n="none"===o.transform?s[u]:t(s[u],r);if(e){const t=e.length;for(let i=0;i<t;i++)o[e[i]]=n}else o[u]=n}return this.options.layoutId&&(o.pointerEvents=r===this?Wi(null===t||void 0===t?void 0:t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(or),this.root.sharedNodes.clear()}}}function Qi(t){t.updateLayout()}function Ji(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:o}=t.layout,{animationType:i}=t.options,r=n.source!==t.layout.source;"size"===i?Vo((t=>{const o=r?n.measuredBox[t]:n.layoutBox[t],i=wo(o);o.min=e[t].min,o.max=o.min+i})):yr(i,n.layoutBox,e)&&Vo((o=>{const i=r?n.measuredBox[o]:n.layoutBox[o],s=wo(e[o]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[o].max=t.relativeTarget[o].min+s)}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Co(s,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Co(a,t.applyTransform(o,!0),n.measuredBox):Co(a,e,n.layoutBox);const l=!Vi(s);let u=!1;if(!t.resumeFrom){const o=t.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:i,layout:r}=o;if(i&&r){const s={x:{min:0,max:0},y:{min:0,max:0}};To(s,n.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};To(a,e,r.layoutBox),Fi(s,a)||(u=!0),o.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=o)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tr(t){zi&&Hi.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function er(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nr(t){t.clearSnapshot()}function or(t){t.clearMeasurements()}function ir(t){t.isLayoutDirty=!1}function rr(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ar(t){t.resolveTargetDelta()}function lr(t){t.calcProjection()}function ur(t){t.resetSkewAndRotation()}function cr(t){t.removeLeadSnapshot()}function dr(t,e,n){t.translate=Be(e.translate,0,n),t.scale=Be(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function hr(t,e,n,o){t.min=Be(e.min,n.min,o),t.max=Be(e.max,n.max,o)}function pr(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const fr={duration:.45,ease:[.4,0,.1,1]},mr=t=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vr=mr("applewebkit/")&&!mr("chrome/")?Math.round:A.l;function gr(t){t.min=vr(t.min),t.max=vr(t.max)}function yr(t,e,n){return"position"===t||"preserve-aspect"===t&&(o=Bi(e),i=Bi(n),r=.2,!(Math.abs(o-i)<=r));var o,i,r}function xr(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const br=Zi({attachResizeListener:(t,e)=>uo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wr={current:void 0},Sr=Zi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!wr.current){const t=new br({});t.mount(window),t.setOptions({layoutScroll:!0}),wr.current=t}return wr.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Cr={pan:{Feature:class extends Xn{constructor(){super(...arguments),this.removePointerDownListener=A.l}onPointerDown(t){this.session=new po(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Go(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ti(t),onStart:ti(e),onMove:n,onEnd:(t,e)=>{delete this.session,o&&O.postRender((()=>o(t,e)))}}}mount(){this.removePointerDownListener=co(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Xn{constructor(t){super(t),this.removeGroupControls=A.l,this.removeListeners=A.l,this.controls=new Qo(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Sr,MeasureLayout:fi}};function Pr(t,e,n){const{props:o}=t;t.animationState&&o.whileHover&&t.animationState.setActive("whileHover","Start"===n);const i=o["onHover"+n];i&&O.postRender((()=>i(e,lo(e))))}function Er(t,e,n){const{props:o}=t;t.animationState&&o.whileTap&&t.animationState.setActive("whileTap","Start"===n);const i=o["onTap"+("End"===n?"":n)];i&&O.postRender((()=>i(e,lo(e))))}const Tr=new WeakMap,Ar=new WeakMap,Mr=t=>{const e=Tr.get(t.target);e&&e(t)},Rr=t=>{t.forEach(Mr)};function Or(t,e,n){const o=function(t){let{root:e,...n}=t;const o=e||document;Ar.has(o)||Ar.set(o,{});const i=Ar.get(o),r=JSON.stringify(n);return i[r]||(i[r]=new IntersectionObserver(Rr,{root:e,...n})),i[r]}(e);return Tr.set(t,n),o.observe(t),()=>{Tr.delete(t),o.unobserve(t)}}const Dr={some:0,all:1};const kr={inView:{Feature:class extends Xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:o="some",once:i}=t,r={root:e?e.current:void 0,rootMargin:n,threshold:"number"===typeof o?o:Dr[o]};return Or(this.node.current,r,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),r=e?n:o;r&&r(t)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=ao(t,(t=>(Er(this.node,t,"Start"),(t,e)=>{let{success:n}=e;return Er(this.node,t,n?"End":"Cancel")})),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Xn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fe(uo(this.node.current,"focus",(()=>this.onFocus())),uo(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[o,i,r]=Qn(t,n),s=Jn((t=>{const{target:n}=t,o=e(t);if(!o||!n)return;const r=Jn((t=>{o(t),n.removeEventListener("pointerleave",r)}));n.addEventListener("pointerleave",r,i)}));return o.forEach((t=>{t.addEventListener("pointerenter",s,i)})),r}(t,(t=>(Pr(this.node,t,"Start"),t=>Pr(this.node,t,"End")))))}unmount(){}}}},Vr={layout:{ProjectionNode:Sr,MeasureLayout:fi}};var jr=n(2278);const Lr=(0,ni.createContext)({});var Fr=n(7544);const Br=(0,ni.createContext)({strict:!1});function Nr(t,e,n,o,i){var r,s;const{visualElement:a}=(0,ni.useContext)(Lr),l=(0,ni.useContext)(Br),u=(0,ni.useContext)(oi.t),c=(0,ni.useContext)(jr.Q).reducedMotion,d=(0,ni.useRef)(null);o=o||l.renderer,!d.current&&o&&(d.current=o(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));const h=d.current,p=(0,ni.useContext)(ri);!h||h.projection||!i||"html"!==h.type&&"svg"!==h.type||function(t,e,n,o){const{layoutId:i,layout:r,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ir(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:Boolean(s)||a&&bo(a),visualElement:t,animationType:"string"===typeof r?r:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}(d.current,n,i,p);const f=(0,ni.useRef)(!1);(0,ni.useInsertionEffect)((()=>{h&&f.current&&h.update(n,u)}));const m=n[On],v=(0,ni.useRef)(Boolean(m)&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,m))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,m)));return(0,Fr.E)((()=>{h&&(f.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),di.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())})),(0,ni.useEffect)((()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)})),v.current=!1))})),h}function Ir(t){if(t)return!1!==t.options.allowProjection?t.projection:Ir(t.parent)}function _r(t,e,n){return(0,ni.useCallback)((o=>{o&&t.mount&&t.mount(o),e&&(o?e.mount(o):e.unmount()),n&&("function"===typeof n?n(o):bo(n)&&(n.current=o))}),[e])}function Ur(t){return i(t.animate)||h.some((e=>a(t[e])))}function Wr(t){return Boolean(Ur(t)||t.variants)}function $r(t){const{initial:e,animate:n}=function(t,e){if(Ur(t)){const{initial:e,animate:n}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,ni.useContext)(Lr));return(0,ni.useMemo)((()=>({initial:e,animate:n})),[Hr(e),Hr(n)])}function Hr(t){return Array.isArray(t)?t.join(" "):t}const zr={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"]},Yr={};for(const Ws in zr)Yr[Ws]={isEnabled:t=>zr[Ws].some((e=>!!t[e]))};var Xr=n(7584);const Kr=Symbol.for("motionComponentSymbol");function qr(t){let{preloadedFeatures:e,createVisualElement:n,useRender:o,useVisualState:i,Component:r}=t;e&&function(t){for(const e in t)Yr[e]={...Yr[e],...t[e]}}(e);const s=(0,ni.forwardRef)((function(t,e){let s;const a={...(0,ni.useContext)(jr.Q),...t,layoutId:Gr(t)},{isStatic:l}=a,u=$r(t),c=i(t,l);if(!l&&Xr.B){!function(){(0,ni.useContext)(Br).strict;0}();const t=function(t){const{drag:e,layout:n}=Yr;if(!e&&!n)return{};const o={...e,...n};return{MeasureLayout:(null===e||void 0===e?void 0:e.isEnabled(t))||(null===n||void 0===n?void 0:n.isEnabled(t))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(a);s=t.MeasureLayout,u.visualElement=Nr(r,c,a,n,t.ProjectionNode)}return(0,ei.jsxs)(Lr.Provider,{value:u,children:[s&&u.visualElement?(0,ei.jsx)(s,{visualElement:u.visualElement,...a}):null,o(r,t,_r(c,u.visualElement,e),c,l,u.visualElement)]})}));return s[Kr]=r,s}function Gr(t){let{layoutId:e}=t;const n=(0,ni.useContext)(ii.L).id;return n&&void 0!==e?n+"-"+e:e}const Zr=["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 Qr(t){return"string"===typeof t&&!t.includes("-")&&!!(Zr.indexOf(t)>-1||/[A-Z]/u.test(t))}function Jr(t,e,n,o){let{style:i,vars:r}=e;Object.assign(t.style,i,o&&o.getProjectionStyles(n));for(const s in r)t.style.setProperty(s,r[s])}const ts=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 es(t,e,n,o){Jr(t,e,void 0,o);for(const i in e.attrs)t.setAttribute(ts.has(i)?i:Rn(i),e.attrs[i])}function ns(t,e){let{layout:n,layoutId:o}=e;return f.has(t)||t.startsWith("origin")||(n||void 0!==o)&&(!!ci[t]||"opacity"===t)}function os(t,e,n){var o;const{style:i}=t,r={};for(const s in i)(kn(i[s])||e.style&&kn(e.style[s])||ns(s,t)||void 0!==(null===(o=null===n||void 0===n?void 0:n.getValue(s))||void 0===o?void 0:o.liveStyle))&&(r[s]=i[s]);return r}function is(t,e,n){const o=os(t,e,n);for(const i in t)if(kn(t[i])||kn(e[i])){o[-1!==p.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]}return o}var rs=n(9305);const ss=t=>(e,n)=>{const o=(0,ni.useContext)(Lr),i=(0,ni.useContext)(oi.t),r=()=>function(t,e,n,o){let{scrapeMotionValuesFromProps:i,createRenderState:r,onMount:s}=t;const a={latestValues:as(e,n,o,i),renderState:r()};return s&&(a.mount=t=>s(e,t,a)),a}(t,e,o,i);return n?r():(0,rs.M)(r)};function as(t,e,n,o){const r={},s=o(t,{});for(const i in s)r[i]=Wi(s[i]);let{initial:a,animate:l}=t;const c=Ur(t),d=Wr(t);e&&d&&!c&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let h=!!n&&!1===n.initial;h=h||!1===a;const p=h?l:a;if(p&&"boolean"!==typeof p&&!i(p)){const e=Array.isArray(p)?p:[p];for(let n=0;n<e.length;n++){const o=u(t,e[n]);if(o){const{transitionEnd:t,transition:e,...n}=o;for(const o in n){let t=n[o];if(Array.isArray(t)){t=t[h?t.length-1:0]}null!==t&&(r[o]=t)}for(const o in t)r[o]=t[o]}}}return r}const ls=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),us=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),cs=(t,e)=>e&&"number"===typeof t?e.transform(t):t,ds={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hs=p.length;function ps(t,e,n){const{style:o,vars:i,transformOrigin:r}=t;let s=!1,a=!1;for(const l in e){const t=e[l];if(f.has(l))s=!0;else if(q(l))i[l]=t;else{const e=cs(t,te[l]);l.startsWith("origin")?(a=!0,r[l]=e):o[l]=e}}if(e.transform||(s||n?o.transform=function(t,e,n){let o="",i=!0;for(let r=0;r<hs;r++){const s=p[r],a=t[s];if(void 0===a)continue;let l=!0;if(l="number"===typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=cs(a,te[s]);l||(i=!1,o+=`${ds[s]||s}(${t}) `),n&&(e[s]=t)}}return o=o.trim(),n?o=n(e,i?"":o):i&&(o="none"),o}(e,t.transform,n):o.transform&&(o.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=r;o.transformOrigin=`${t} ${e} ${n}`}}function fs(t,e,n){return"string"===typeof t?t:lt.transform(e+n*t)}const ms={offset:"stroke-dashoffset",array:"stroke-dasharray"},vs={offset:"strokeDashoffset",array:"strokeDasharray"};function gs(t,e,n,o){let{attrX:i,attrY:r,attrScale:s,originX:a,originY:l,pathLength:u,pathSpacing:c=1,pathOffset:d=0,...h}=e;if(ps(t,h,o),n)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==a||void 0!==l||f.transform)&&(f.transformOrigin=function(t,e,n){return`${fs(e,t.x,t.width)} ${fs(n,t.y,t.height)}`}(m,void 0!==a?a:.5,void 0!==l?l:.5)),void 0!==i&&(p.x=i),void 0!==r&&(p.y=r),void 0!==s&&(p.scale=s),void 0!==u&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const r=i?ms:vs;t[r.offset]=lt.transform(-o);const s=lt.transform(e),a=lt.transform(n);t[r.array]=`${s} ${a}`}(p,u,c,d,!1)}const ys=t=>"string"===typeof t&&"svg"===t.toLowerCase(),xs={useVisualState:ss({scrapeMotionValuesFromProps:is,createRenderState:us,onMount:(t,e,n)=>{let{renderState:o,latestValues:i}=n;O.read((()=>{try{o.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){o.dimensions={x:0,y:0,width:0,height:0}}})),O.render((()=>{gs(o,i,ys(e.tagName),t.transformTemplate),es(e,o)}))}})},bs={useVisualState:ss({scrapeMotionValuesFromProps:os,createRenderState:ls})};function ws(t,e,n){for(const o in e)kn(e[o])||ns(o,n)||(t[o]=e[o])}function Ss(t,e){const n={};return ws(n,t.style||{},t),Object.assign(n,function(t,e){let{transformTemplate:n}=t;return(0,ni.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return ps(t,e,n),Object.assign({},t.vars,t.style)}),[e])}(t,e)),n}function Cs(t,e){const n={},o=Ss(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=o,n}const Ps=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 Es(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ps.has(t)}let Ts=t=>!Es(t);try{(As=require("@emotion/is-prop-valid").default)&&(Ts=t=>t.startsWith("on")?!Es(t):As(t))}catch(Us){}var As;function Ms(t,e,n,o){const i=(0,ni.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return gs(n,e,ys(o),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};ws(e,t.style,t),i.style={...e,...i.style}}return i}function Rs(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,o,i,r)=>{let{latestValues:s}=i;const a=(Qr(e)?Ms:Cs)(n,s,r,e),l=function(t,e,n){const o={};for(const i in t)"values"===i&&"object"===typeof t.values||(Ts(i)||!0===n&&Es(i)||!e&&!Es(i)||t.draggable&&i.startsWith("onDrag"))&&(o[i]=t[i]);return o}(n,"string"===typeof e,t),u=e!==ni.Fragment?{...l,...a,ref:o}:{},{children:c}=n,d=(0,ni.useMemo)((()=>kn(c)?c.get():c),[c]);return(0,ni.createElement)(e,{...u,children:d})}}function Os(t,e){return function(n){let{forwardMotionProps:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return qr({...Qr(n)?xs:bs,preloadedFeatures:t,useRender:Rs(o),createVisualElement:e,Component:n})}}const Ds={current:null},ks={current:!1};const Vs=new WeakMap,js=[...bt,Bt,Yt],Ls=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fs{scrapeMotionValuesFromProps(t,e,n){return{}}constructor(t){let{parent:e,props:n,presenceContext:o,reducedMotionConfig:i,blockInitialAnimation:r,visualState:s}=t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=At,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=()=>{const t=ue.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,O.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=o,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=Ur(n),this.isVariantNode=Wr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const t=d[h];void 0!==l[h]&&kn(t)&&t.set(l[h],!1)}}mount(t){this.current=t,Vs.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),ks.current||function(){if(ks.current=!0,Xr.B)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ds.current=t.matches;t.addListener(e),e()}else Ds.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ds.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Vs.delete(this.current),this.projection&&this.projection.unmount(),D(this.notifyUpdate),D(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=f.has(t),o=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&O.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{o(),i(),r&&r(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in Yr){const e=Yr[t];if(!e)continue;const{isEnabled:n,Feature:o}=e;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<Ls.length;n++){const e=Ls[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const o=t["on"+e];o&&(this.propEventSubscriptions[e]=this.on(e,o))}this.prevMotionValues=function(t,e,n){for(const o in e){const i=e[o],r=n[o];if(kn(i))t.addValue(o,i);else if(kn(r))t.addValue(o,An(i,{owner:t}));else if(r!==i)if(t.hasValue(o)){const e=t.getValue(o);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{const e=t.getStaticValue(o);t.addValue(o,An(void 0!==e?e:i,{owner:t}))}}for(const o in n)void 0===e[o]&&t.removeValue(o);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=An(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let o=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return void 0!==o&&null!==o&&("string"===typeof o&&(X(o)||z(o))?o=parseFloat(o):(i=o,!js.find(xt(i))&&Yt.test(e)&&(o=oe(t,e))),this.setBaseTarget(t,kn(o)?o.get():o)),kn(o)?o.get():o}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let o;if("string"===typeof n||"object"===typeof n){const i=u(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(o=i[t])}if(n&&void 0!==o)return o;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||kn(i)?void 0!==this.initialValues[t]&&void 0===o?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new Pn),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];this.events[t].notify(...n)}}}class Bs extends Fs{constructor(){super(...arguments),this.KeyframeResolver=re}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:n,style:o}=e;delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kn(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class Ns extends Bs{constructor(){super(...arguments),this.type="html",this.renderInstance=Jr}readValueFromInstance(t,e){if(f.has(e)){const t=ne(e);return t&&t.default||0}{const o=(n=t,window.getComputedStyle(n)),i=(q(e)?o.getPropertyValue(e):o[e])||0;return"string"===typeof i?i.trim():i}var n}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return qo(t,n)}build(t,e,n){ps(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return os(t,e,n)}}class Is extends Bs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ko}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(f.has(e)){const t=ne(e);return t&&t.default||0}return e=ts.has(e)?e:Rn(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return is(t,e,n)}build(t,e,n){gs(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,o){es(t,e,0,o)}mount(t){this.isSVGTag=ys(t.tagName),super.mount(t)}}const _s=o(Os({...qn,...kr,...Cr,...Vr},((t,e)=>Qr(t)?new Is(e):new Ns(e,{allowProjection:t!==ni.Fragment}))))},7584:function(t,e,n){"use strict";n.d(e,{B:function(){return o}});const o="undefined"!==typeof window},9305:function(t,e,n){"use strict";n.d(e,{M:function(){return i}});var o=n(9950);function i(t){const e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}},7544:function(t,e,n){"use strict";n.d(e,{E:function(){return i}});var o=n(9950);const i=n(7584).B?o.useLayoutEffect:o.useEffect},24:function(t,e,n){"use strict";n.d(e,{$:function(){return i},V:function(){return r}});var o=n(9389);let i=o.l,r=o.l},9389:function(t,e,n){"use strict";n.d(e,{l:function(){return o}});const o=t=>t}}]);