@sankhyatronics/sankhya-ui 0.0.1

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 (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/dist/App.d.ts +2 -0
  4. package/dist/components/BentoGrid/BentoGrid.d.ts +18 -0
  5. package/dist/components/CTASection/CTASection.d.ts +7 -0
  6. package/dist/components/Card/Card.d.ts +12 -0
  7. package/dist/components/Common/BaseComponent.interfaces.d.ts +23 -0
  8. package/dist/components/Common/DynamicRenderer.constants.d.ts +22 -0
  9. package/dist/components/Common/DynamicRenderer.d.ts +3 -0
  10. package/dist/components/Common/DynamicRenderer.interfaces.d.ts +16 -0
  11. package/dist/components/ContentBlock/ContentBlock.d.ts +14 -0
  12. package/dist/components/Dropdown/Dropdown.d.ts +15 -0
  13. package/dist/components/FeatureSplit/FeatureSplit.d.ts +17 -0
  14. package/dist/components/FeaturesSection/FeatureItem.d.ts +9 -0
  15. package/dist/components/FeaturesSection/FeaturesSection.d.ts +9 -0
  16. package/dist/components/Footer/Footer.d.ts +23 -0
  17. package/dist/components/HamburgerMenu/HamburgerMenu.d.ts +7 -0
  18. package/dist/components/Header/Header.d.ts +14 -0
  19. package/dist/components/Hero/Hero.d.ts +9 -0
  20. package/dist/components/IconButton/IconButton.d.ts +10 -0
  21. package/dist/components/ItemsAccordion/ItemsAccordion.d.ts +14 -0
  22. package/dist/components/Menu/MenuGrid.d.ts +7 -0
  23. package/dist/components/Menu/MenuGridItem.d.ts +11 -0
  24. package/dist/components/Menu/MenuItem.d.ts +14 -0
  25. package/dist/components/Stats/Stats.d.ts +11 -0
  26. package/dist/components/Testimonials/Testimonials.d.ts +14 -0
  27. package/dist/contexts/DropdownContext.d.ts +11 -0
  28. package/dist/hooks/useApiConfig.d.ts +35 -0
  29. package/dist/hooks/useBreakpointTouch.d.ts +21 -0
  30. package/dist/hooks/useDataConfig.d.ts +106 -0
  31. package/dist/hooks/useTypedApiConfig.d.ts +17 -0
  32. package/dist/index.css +1 -0
  33. package/dist/index.d.ts +24 -0
  34. package/dist/index.es.js +13984 -0
  35. package/dist/index.es.js.map +1 -0
  36. package/dist/index.umd.js +21 -0
  37. package/dist/index.umd.js.map +1 -0
  38. package/dist/main.d.ts +1 -0
  39. package/package.json +66 -0
@@ -0,0 +1,21 @@
1
+ (function($,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react"),require("react-router")):typeof define=="function"&&define.amd?define(["exports","react","react-router"],D):($=typeof globalThis<"u"?globalThis:$||self,D($["react-jp-ui"]={},$.React,$.ReactRouter))})(this,(function($,D,Bn){"use strict";var eo=document.createElement("style");eo.textContent=`@layer sankhya-ui{:root{--color-primary-50: #f0f9ff;--color-primary-100: #e0f2fe;--color-primary-200: #bae6fd;--color-primary-300: #7dd3fc;--color-primary-400: #38bdf8;--color-primary-500: #0ea5e9;--color-primary-600: #0284c7;--color-primary-700: #0369a1;--color-primary-800: #075985;--color-primary-900: #0c4a6e;--color-primary-950: #082f49;--color-primary: #ffffff;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--text-3xl: 1.875rem;--text-4xl: 2.25rem;--text-5xl: 3rem;--text-6xl: 3.75rem;--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-weight-extrabold: 800}}.bento-grid-section{padding:80px 24px;background-color:var(--color-primary)}.bento-grid-container{max-width:1200px;margin:0 auto}.bento-grid-header{text-align:center;margin-bottom:48px}.bento-grid-title{margin:0 0 16px}.bento-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:minmax(240px,auto);gap:24px}.bento-card{background-color:var(--color-primary);border:1px solid var(--color-primary-100);border-radius:24px;overflow:hidden;position:relative;display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease;text-decoration:none}.bento-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px -10px var(--color-primary-800);z-index:1}.bento-card-image-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.bento-card-image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.bento-card:hover .bento-card-image{transform:scale(1.05)}.bento-card-image-wrapper:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,#0000,#0009)}.bento-card-content{position:relative;z-index:1;margin-top:auto;padding:24px;display:flex;flex-direction:column;gap:16px}.bento-card:not(:has(.bento-card-image-wrapper)){background-color:var(--color-primary-950)}.bento-card:has(.bento-card-image-wrapper) .bento-card-title,.bento-card:has(.bento-card-image-wrapper) .bento-card-description,.bento-card:has(.bento-card-image-wrapper) .bento-card-icon{color:var(--color-primary-400)}.bento-card-icon{width:40px;height:40px;border-radius:10px;background-color:var(--color-primary-100);color:var(--color-primary-600);display:flex;align-items:center;justify-content:center}.bento-card:has(.bento-card-image-wrapper) .bento-card-icon{background-color:var(--color-primary-900);color:var(--color-primary-100);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.bento-card-title,.bento-card-description{color:var(--color-primary-100);margin:0}.col-span-1{grid-column:span 1}.col-span-2{grid-column:span 2}.col-span-3{grid-column:span 3}.col-span-4{grid-column:span 4}.row-span-1{grid-row:span 1}.row-span-2{grid-row:span 2}@media(max-width:1024px){.bento-grid{grid-template-columns:repeat(2,1fr)}.col-span-3,.col-span-4{grid-column:span 2}}@media(max-width:640px){.bento-grid{grid-template-columns:1fr}.col-span-1,.col-span-2,.col-span-3,.col-span-4{grid-column:span 1}}.card{background-color:var(--color-primary);border-radius:12px;overflow:hidden;position:relative;transition:all .3s ease;border:1px solid var(--color-primary-100)}.card.theme-inverted{background-color:var(--color-primary-900);border-color:var(--color-primary-800)}.card-bordered{border:1px solid var(--color-primary-200)}.card-elevation-sm{box-shadow:0 1px 2px #0000000d}.card-elevation-md{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.card-elevation-lg{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.card-hoverable:hover{transform:translateY(-4px);box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;border-color:var(--color-primary-300)}.card-padding-none{padding:0}.card-padding-sm{padding:16px}.card-padding-md{padding:24px}.card-padding-lg{padding:32px}@keyframes headerSlideDown{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes headerFadeIn{0%{opacity:0}to{opacity:1}}.header-hide-on-scroll{transform:translateY(-100%);transition:transform .3s ease}.header-show-on-scroll{transform:translateY(0);transition:transform .3s ease}.header-right{display:flex;flex-grow:1;flex-wrap:wrap;gap:1rem;justify-content:flex-start;align-items:center;margin-left:4rem}.header-nav{display:flex;flex-grow:1;flex-wrap:wrap;gap:1rem;align-items:center}.header{display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem;position:relative;background-color:var(--color-primary);z-index:1000}.header.header-sticky{position:fixed;top:0;left:0;right:0;box-shadow:0 2px 8px #0000001a}.header-logo-wrapper{display:flex;align-items:center;flex-shrink:0}.header-logo-img{width:auto;height:auto;max-height:48px}.header-utility{display:flex;align-items:center;gap:.5rem;margin-left:1rem;padding-left:1rem;border-left:1px solid var(--color-primary-200)}.header-mobile-wrapper{display:flex;align-items:center;gap:1rem}.header-mobile-utility{display:flex;align-items:center;gap:.5rem}.header-mobile-menu-content{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem}.header-mobile-settings{padding-top:1.5rem;margin-top:1.5rem;border-top:1px solid var(--color-primary-200)}.header-mobile-settings-title{font-size:.875rem;font-weight:600;color:var(--color-primary-500);margin-bottom:.75rem}@media(min-width:768px){.header{padding:2rem}.header-nav{gap:1.5rem}.header-utility{gap:1rem;margin-left:1.5rem;padding-left:1.5rem}.header-mobile-wrapper{display:none}}.header-right-hidden{display:none!important}.btn{padding:12px 24px;border-radius:4px;display:inline-block;border:none;cursor:pointer;font-family:inherit;text-decoration:none;text-align:center;transition:all .2s ease}.btn-outline{background-color:transparent;border:2px solid currentColor}.delay-100{transition-delay:.1s}.delay-200{transition-delay:.2s}.delay-300{transition-delay:.3s}.delay-400{transition-delay:.4s}.delay-500{transition-delay:.5s}.duration-fast{transition-duration:.2s}.duration-normal{transition-duration:.3s}.duration-slow{transition-duration:.5s}.ease-in{transition-timing-function:ease-in}.ease-out{transition-timing-function:ease-out}.ease-in-out{transition-timing-function:ease-in-out}.will-change-opacity{will-change:opacity}.will-change-transform{will-change:transform}.fade-in{opacity:0;transition:opacity .3s ease-out}.fade-in.visible{opacity:1}.slide-up{opacity:0;transform:translateY(20px);transition:opacity .3s ease-out,transform .3s ease-out}.slide-up.visible{opacity:1;transform:translateY(0)}.hidden{display:none}.visible{display:block}.invisible{visibility:hidden}.hover-lift:hover{transform:translateY(-2px);transition:transform .2s ease}.hover-scale:hover{transform:scale(1.05);transition:transform .2s ease}.active-scale:active{transform:scale(.98)}.section-title{font-size:var(--text-4xl, 2.25rem);font-weight:var(--font-weight-bold, 700);color:var(--color-primary-950, #011d41);margin-bottom:1rem;line-height:1.2}.section-subtitle{font-size:var(--text-lg, 1.125rem);color:var(--color-primary-600, #2f87fd);line-height:1.6;margin-bottom:2rem}.hero-title{font-size:1.5rem;font-weight:700;line-height:1.2;margin-bottom:1rem}.hero-subtitle{font-size:.875rem;line-height:1.6;margin-bottom:1.5rem}@media(min-width:640px){.hero-title{font-size:1.875rem}.hero-subtitle{font-size:1rem}}@media(min-width:768px){.hero-title{font-size:2.25rem}.hero-subtitle{font-size:1.125rem}}@media(min-width:1024px){.hero-title{font-size:3rem}.hero-subtitle{font-size:1.25rem}}@media(min-width:1280px){.hero-title{font-size:3.75rem}}.card-title{font-size:var(--text-xl, 1.25rem);font-weight:var(--font-weight-semibold, 600);color:var(--color-primary-950, #011d41);margin-bottom:.5rem}.card-description{font-size:var(--text-sm, .875rem);color:var(--color-primary-600, #2f87fd);line-height:1.5}.theme-inverted .section-title,.theme-inverted .card-title,.theme-inverted .hero-title{color:var(--color-primary, #f0f7ff)}.theme-inverted .section-subtitle,.theme-inverted .card-description,.theme-inverted .hero-subtitle{color:var(--color-primary-300, #93c5fd)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.p-none{padding:0}.p-small{padding:1rem}.p-medium{padding:1.5rem}.p-large{padding:2rem}@media(min-width:768px){.p-small{padding:1.5rem}.p-medium{padding:2rem}.p-large{padding:3rem}}@media(min-width:1024px){.p-medium{padding:3rem}.p-large{padding:4rem}}.hamburger-menu{position:relative;display:inline-block}.hamburger-toggle{position:relative;z-index:1002;background:none;border:none;cursor:pointer;padding:8px;color:var(--color-primary-950)}.hamburger-overlay{position:fixed;inset:0;background-color:#00000080;z-index:1000}.hamburger-content-container{position:fixed;top:0;height:100vh;width:300px;max-width:90vw;z-index:1001;transition:transform .3s ease;overflow-y:auto;background-color:var(--color-primary);color:var(--color-primary-950);box-shadow:2px 0 8px #0000001a}.hamburger-content-container.left{left:0;transform:translate(-100%)}.hamburger-content-container.right{right:0;transform:translate(100%)}.hamburger-content-container.open{transform:translate(0)}.hamburger-content{padding:20px;height:100%}.menu-item{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;font-size:var(--text-sm);text-decoration:none;border-radius:6px;transition:all .15s ease;box-sizing:border-box}.menu-item.active{background-color:var(--color-primary-100);color:var(--color-primary-900);border-left:4px solid var(--color-primary-600)}.menu-item-icon{flex-shrink:0;margin-top:2px}.menu-item-icon svg{width:16px;height:16px}.menu-item-content{flex:1;min-width:0}.menu-item-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.menu-item-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-item-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;font-size:var(--text-xs);font-weight:500;border-radius:9999px;flex-shrink:0}.menu-item-description{margin-top:4px;font-size:var(--text-xs);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.menu-item.compact{padding:8px 12px;gap:8px}.menu-item.compact .menu-item-icon svg{width:14px;height:14px}.menu-item.compact .menu-item-title,.menu-item.compact .menu-item-description{font-size:var(--text-xs)}.menu-item.no-description{align-items:center}.menu-item.no-description .menu-item-icon{margin-top:0}.menu-grid-container{width:100%}.menu-grid{display:grid;gap:12px}.menu-grid.columns-1{grid-template-columns:repeat(1,1fr)}.menu-grid.columns-2{grid-template-columns:repeat(2,1fr)}.menu-grid.columns-3{grid-template-columns:repeat(3,1fr)}.menu-grid.columns-4{grid-template-columns:repeat(4,1fr)}@media(max-width:768px){.menu-grid.columns-2,.menu-grid.columns-3,.menu-grid.columns-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.menu-grid.columns-1,.menu-grid.columns-2,.menu-grid.columns-3,.menu-grid.columns-4{grid-template-columns:1fr}}.menu-grid-item{display:flex;flex-direction:column;border-radius:8px;position:relative;overflow:hidden;transition:all .2s ease}.menu-grid-item.regular{padding:16px}.menu-grid-item.compact{padding:12px}.menu-grid-item:hover{transform:translateY(-2px)}.menu-grid-link{display:flex;flex-direction:column;text-decoration:none;width:100%;height:100%;gap:8px}.menu-grid-badge{position:absolute;top:2px;right:8px;font-size:var(--text-xs);padding:2px 8px;border-radius:9999px;font-weight:500;z-index:1;background-color:var(--color-primary-950);color:var(--color-primary)}.menu-grid-header{display:flex;align-items:center;gap:12px;width:100%}.menu-grid-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;transition:background-color .2s ease;flex-shrink:0;padding:0;margin-bottom:0}.menu-grid-icon svg{width:18px;height:18px}.menu-grid-title{font-size:var(--text-sm);font-weight:500;transition:color .2s ease;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:0}.menu-grid-description{font-size:var(--text-xs);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4;transition:color .2s ease}.menu-grid-children{padding-top:12px;margin-top:12px}.menu-grid-children>*{margin:4px 0}.menu-grid-item.compact .menu-grid-header{gap:8px}.menu-grid-item.compact .menu-grid-icon{width:24px;height:24px}.menu-grid-item.compact .menu-grid-icon svg{width:14px;height:14px}.menu-grid-item.compact .menu-grid-title,.menu-grid-item.compact .menu-grid-description{font-size:var(--text-xs)}.menu-grid-item:has(.menu-grid-icon):not(:has(.menu-grid-title)) .menu-grid-header{justify-content:center}.menu-grid-item:has(.menu-grid-title):not(:has(.menu-grid-icon)) .menu-grid-header{justify-content:flex-start}@media(max-width:480px){.menu-grid-header{gap:8px}.menu-grid-icon{width:28px;height:28px}.menu-grid-icon svg{width:16px;height:16px}}.hero-image{background-position:center;background-repeat:no-repeat;background-size:cover;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;width:100%}.hero-text{display:flex;flex-direction:column;gap:20px;text-align:center;z-index:2;position:relative;width:100%;max-width:1200px;margin:0 auto}.hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,#0006,#0003,#0006);z-index:1}.hero-text-primary{color:var(--color-primary)}.hero-actions{display:flex;flex-direction:column;gap:1rem;justify-content:center;align-items:center;width:100%}.hero-btn-primary{background-color:var(--color-primary-600);color:var(--color-primary);font-size:.875rem;padding:.5rem 1rem}.hero-btn-primary:hover{background-color:var(--color-primary-500)}@media(min-width:640px){.hero-actions{flex-direction:row}.hero-btn-primary{font-size:1rem;padding:.5rem 1.5rem}}@media(min-width:768px){.hero-text{padding:2rem}.hero-btn-primary{font-size:1.125rem}}@media(min-width:1024px){.hero-text{padding:3rem}}.menu{display:block;position:relative}.menu-title{display:flex;align-items:center;justify-content:center;min-height:40px;padding:12px;text-align:center;width:fit-content;transition:background-color .3s ease;cursor:pointer;gap:8px;white-space:nowrap}.menu-title .arrow{display:inline-block;margin-left:8px;font-size:var(--text-xs);transition:transform .3s ease}.menu-title[aria-expanded=true] .arrow{transform:rotate(180deg)}.menu-dropdown{position:absolute;top:100%;left:0;z-index:100;opacity:0;visibility:hidden;transform:translateY(-10px);transition:opacity .3s ease,visibility .3s ease,transform .3s ease;pointer-events:none}.menu-dropdown.show{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.touch-device .menu-dropdown{display:none;position:relative;width:100%;opacity:1;visibility:visible;transform:none}.touch-device .menu-dropdown.show{display:block;pointer-events:auto}@media(max-width:768px){.menu-dropdown{width:100vw;left:0;right:0}}.menu-dropdown>*{overflow:hidden;transition:all .3s cubic-bezier(.73,.32,.34,1.5)}.utility-button{background:transparent;border:none;cursor:pointer;padding:8px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--color-primary-950);transition:background-color .2s ease;position:relative}.utility-button:hover{background-color:var(--color-primary-100)}.utility-button.active{background-color:var(--color-primary-200);color:var(--color-primary-900)}.icon-button-badge{position:absolute;top:-4px;right:-4px;width:20px;height:20px;border-radius:50%;background-color:var(--color-primary-600);color:var(--color-primary);font-size:.75rem;display:flex;align-items:center;justify-content:center;font-weight:600}.icon-button-icon{width:20px;height:20px}.feature-split-section{padding:24px;background-color:var(--color-primary)}.feature-split-container{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}.feature-split-section.image-left .feature-split-container{direction:rtl}.feature-split-section.image-left .feature-split-content{direction:ltr}.feature-split-section.image-top .feature-split-container{grid-template-columns:1fr;gap:48px;text-align:center}.feature-split-section.image-top .feature-split-content{align-items:center}.feature-split-section.image-top .feature-split-image-wrapper{order:-1;max-width:800px;margin:0 auto;min-height:400px}.feature-split-content{display:flex;flex-direction:column;gap:32px}.feature-split-title{line-height:1.2;margin:0}.feature-split-description{font-size:var(--text-base);color:var(--color-primary-600);line-height:1.6;margin:0}.feature-split-description p{margin-bottom:1em}.feature-split-description p:last-child{margin-bottom:0}.feature-split-section.theme-inverted{background-color:var(--color-primary-950)}.feature-split-section.theme-inverted .feature-split-title{color:var(--color-primary)!important}.feature-split-section.theme-inverted .feature-split-description{color:var(--color-primary-100)!important}.feature-split-section.theme-inverted .feature-split-item-title{color:var(--color-primary)!important}.feature-split-section.theme-inverted .feature-split-item-description{color:var(--color-primary-100)!important}.feature-split-section.theme-inverted .feature-split-icon-wrapper{background-color:var(--color-primary-800);color:var(--color-primary-100)}.feature-split-actions{margin-top:16px}.feature-split-actions button{color:var(--color-primary-950);background-color:var(--color-primary-100);padding:16px;border-radius:12px}.feature-split-list{display:flex;flex-direction:column;gap:24px;margin-top:16px}.feature-split-item{display:flex;gap:16px;align-items:flex-start}.feature-split-icon-wrapper{flex-shrink:0;width:48px;height:48px;border-radius:12px;background-color:var(--color-primary-100);color:var(--color-primary-600);display:flex;align-items:center;justify-content:center}.feature-split-item-title{margin:0 0 8px}.feature-split-item-description{font-size:var(--text-sm);color:var(--color-primary-600);line-height:1.5;margin:0}.feature-split-image-wrapper{width:100%;height:100%;min-height:400px;border-radius:24px;overflow:hidden;box-shadow:0 20px 40px -12px #0000001a}.feature-split-image{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}.feature-split-image:hover{transform:scale(1.02)}@media(max-width:1024px){.feature-split-container{gap:48px}}@media(max-width:768px){.feature-split-section{padding:64px 24px}.feature-split-container{grid-template-columns:1fr;gap:48px;direction:ltr!important}.feature-split-image-wrapper{min-height:300px;order:-1}}.content-block-section{padding:24px;background-color:var(--color-primary)}.content-block-container{max-width:1440px;padding:0 48px;margin:0 auto}.content-block-header{text-align:center;margin-bottom:48px}.content-block-title{margin:0 0 16px;line-height:1.1}.content-block-featured-image{margin-bottom:48px;border-radius:16px;overflow:hidden}.content-block-featured-image img{width:100%;height:auto;display:block}.content-block-featured-image figcaption{padding:12px;text-align:center;color:var(--color-primary-500);font-size:var(--text-xs)}.content-block-body{color:var(--color-primary-800);font-size:var(--text-base);line-height:1.7}.content-block-body h2{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-900);margin:48px 0 24px}.content-block-body h3{font-size:var(--text-xl);font-weight:var(--font-weight-semibold);color:var(--color-primary-900);margin:32px 0 16px}.content-block-body p{margin-bottom:24px}.content-block-body ul,.content-block-body ol{margin-bottom:24px;padding-left:24px}.content-block-body li{margin-bottom:8px}.content-block-body a{color:var(--color-primary-600);text-decoration:underline;text-underline-offset:4px}.content-block-body a:hover{color:var(--color-primary-800)}.content-block-body img{max-width:100%;height:auto;border-radius:8px;margin:32px 0}.content-block-body blockquote{border-left:4px solid var(--color-primary-300);margin:32px 0;padding-left:24px;font-style:italic;color:var(--color-primary-700)}@media(max-width:768px){.content-block-section{padding:48px 24px}.content-block-body{font-size:var(--text-base)}}.features-section{padding:80px 24px;background-color:var(--color-primary)}.features-container{max-width:1200px;margin:0 auto}.features-header{text-align:center;margin-bottom:64px}.features-title{margin:0;color:var(--color-primary-950)}.features-subtitle{margin:0 auto;color:var(--color-primary-600)}.features-section.theme-inverted{background-color:var(--color-primary-950)}.features-section.theme-inverted .features-title,.features-section.theme-inverted .section-title{color:var(--color-primary)!important}.features-section.theme-inverted .features-subtitle,.features-section.theme-inverted .section-subtitle{color:var(--color-primary-200)!important}.features-grid{display:grid;grid-template-columns:repeat(var(--features-columns, 2),1fr);gap:32px}.feature-card-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.feature-icon-wrapper{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background-color:var(--color-primary-100);color:var(--color-primary-900);margin-bottom:8px}.feature-title{margin:0}.feature-link{display:flex;align-items:center;gap:4px;margin-top:auto;color:var(--color-primary-600);font-weight:500;font-size:var(--text-sm);text-decoration:none;transition:color .2s ease}.feature-link:hover{color:var(--color-primary-900);text-decoration:underline}.feature-description{margin:0}.card.theme-inverted .feature-icon-wrapper{background-color:var(--color-primary-800);color:var(--color-primary-100)}.card.theme-inverted .feature-link{color:var(--color-primary-300)}.card.theme-inverted .feature-link:hover{color:var(--color-primary-100)}@media(max-width:768px){.features-section{padding:48px 20px}.features-grid{grid-template-columns:1fr!important}}.stats-section{padding:64px 24px;background-color:var(--color-primary);border-top:1px solid var(--color-primary-100);border-bottom:1px solid var(--color-primary-100)}.stats-container{max-width:1200px;margin:0 auto}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px}.stat-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}.stat-value{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950);line-height:1;letter-spacing:-.02em}.stat-label{font-size:var(--text-base);font-weight:var(--font-weight-semibold);color:var(--color-primary-600);text-transform:uppercase;letter-spacing:.05em}.stat-description{font-size:var(--text-sm);color:var(--color-primary-500);max-width:200px}@media(max-width:768px){.stats-section{padding:40px 24px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:24px}.stat-value{font-size:var(--text-xl)}}.cta-section{padding:100px 24px;background-color:var(--color-primary-950);color:var(--color-primary);text-align:center;border-radius:24px;margin:40px auto;max-width:1200px;width:calc(100% - 48px)}.cta-container{max-width:800px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:32px}.cta-title{margin:0;letter-spacing:-.02em}.cta-description{color:var(--color-primary-300);margin:0}.cta-actions{display:flex;gap:16px;margin-top:16px}@media(max-width:768px){.cta-section{padding:60px 24px;margin:24px;width:auto;border-radius:16px}.cta-actions{flex-direction:column;width:100%}.cta-actions>button{width:100%}}.testimonials-section{padding:80px 24px;background-color:var(--color-primary-100)}.testimonials-container{max-width:1200px;margin:0 auto}.testimonials-header{text-align:center;margin-bottom:64px}.testimonials-title{margin-bottom:16px;letter-spacing:-.02em}.testimonials-subtitle{margin:0 auto}.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:32px}.testimonial-card-content{display:flex;flex-direction:column;gap:24px}.testimonial-stars{display:flex;gap:4px;color:#fbbf24}.testimonial-quote{font-size:var(--text-sm);line-height:1.6;color:var(--color-primary-700);font-style:italic;margin:0}.testimonial-author{display:flex;align-items:center;gap:12px;margin-top:auto}.testimonial-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background-color:var(--color-primary-200)}.testimonial-avatar-placeholder{width:48px;height:48px;border-radius:50%;background-color:var(--color-primary-200);display:flex;align-items:center;justify-content:center;color:var(--color-primary-600);font-weight:var(--font-weight-semibold);font-size:var(--text-lg)}.testimonial-author-info{display:flex;flex-direction:column}.testimonial-name{font-weight:var(--font-weight-semibold);color:var(--color-primary-950);font-size:var(--text-lg)}.testimonial-role{font-size:var(--text-sm);color:var(--color-primary-500)}@media(max-width:768px){.testimonials-section{padding:48px 20px}}.footer{background-color:var(--color-primary);padding:64px 24px 32px;border-top:1px solid var(--color-primary-100)}.footer-container{max-width:1200px;margin:0 auto}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:64px;margin-bottom:64px}.footer-brand{display:flex;flex-direction:column;gap:16px}.footer-logo{font-size:var(--text-xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950)}.footer-logo-container{display:flex;align-items:center;gap:8px;font-size:var(--text-xl);font-weight:var(--font-weight-bold)}.footer-logo-img{height:32px;width:auto}.footer-description{color:var(--color-primary-600);line-height:1.6;max-width:300px}.footer-social{display:flex;gap:16px;margin-top:16px}.footer-social-link{color:var(--color-primary-500);transition:color .2s ease}.footer-social-link:hover{color:var(--color-primary-900)}.footer-column-title{font-size:var(--text-xs);font-weight:var(--font-weight-semibold);color:var(--color-primary-900);text-transform:uppercase;letter-spacing:.05em;margin-bottom:24px}.footer-links{display:flex;flex-direction:column;gap:16px}.footer-link{color:var(--color-primary-600);text-decoration:none;transition:color .2s ease;font-size:var(--text-sm)}.footer-link:hover{color:var(--color-primary-900)}.footer-bottom{padding-top:32px;border-top:1px solid var(--color-primary-200);display:flex;justify-content:space-between;align-items:center;color:var(--color-primary-500);font-size:var(--text-xs)}@media(max-width:1024px){.footer-grid{grid-template-columns:1fr repeat(2,1fr);gap:48px}}@media(max-width:768px){.footer-grid{grid-template-columns:1fr;gap:40px}.footer-bottom{flex-direction:column;gap:16px;text-align:center}}.footer.theme-inverted{background-color:var(--color-primary-950);border-top:1px solid var(--color-primary-900)}.footer.theme-inverted .footer-logo{color:var(--color-primary-100)}.footer.theme-inverted .footer-description{color:var(--color-primary-300)}.footer.theme-inverted .footer-column-title{color:var(--color-primary-100)}.footer.theme-inverted .footer-link{color:var(--color-primary-400)}.footer.theme-inverted .footer-link:hover{color:var(--color-primary-100)}.footer.theme-inverted .footer-social-link{color:var(--color-primary-400)}.footer.theme-inverted .footer-social-link:hover{color:var(--color-primary-100)}.footer.theme-inverted .footer-bottom{border-top:1px solid var(--color-primary-900);color:var(--color-primary-500)}.accordion-section{padding:80px 24px;background-color:var(--color-primary)}.accordion-container{max-width:800px;margin:0 auto}.accordion-header-section{text-align:center;margin-bottom:48px}.accordion-title{font-size:var(--text-2xl);font-weight:var(--font-weight-bold);color:var(--color-primary-950);margin-bottom:12px}.accordion-subtitle{font-size:var(--text-base);color:var(--color-primary-600)}.accordion-list{display:flex;flex-direction:column;gap:16px}.accordion-item{border:1px solid var(--color-primary-200);border-radius:8px;background-color:var(--color-primary);overflow:hidden;transition:all .2s ease}.accordion-item.open{border-color:var(--color-primary-400);box-shadow:0 4px 6px -1px #0000000d}.accordion-trigger{width:100%;display:flex;justify-content:space-between;align-items:center;padding:24px;background:none;border:none;cursor:pointer;text-align:left;font-size:var(--text-lg);font-weight:var(--font-weight-semibold);color:var(--color-primary-900)}.accordion-trigger:hover{background-color:var(--color-primary-100)}.accordion-icon{transition:transform .3s ease;color:var(--color-primary-500);flex-shrink:0;margin-left:16px}.accordion-icon.rotate{transform:rotate(180deg)}.accordion-content{height:0;overflow:hidden;transition:height .3s ease}.accordion-content-inner{padding:0 24px 24px;color:var(--color-primary-700);line-height:1.6}@media(max-width:768px){.accordion-section{padding:48px 20px}.accordion-title{font-size:var(--text-xl)}}
2
+ /*$vite$:1*/`,document.head.appendChild(eo);function to(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn={exports:{}},Pt={};var no;function uc(){if(no)return Pt;no=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var a in i)a!=="key"&&(o[a]=i[a])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:o}}return Pt.Fragment=t,Pt.jsx=n,Pt.jsxs=n,Pt}var At={};var ro;function cc(){return ro||(ro=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===R?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case w:return"Suspense";case N:return"SuspenseList";case O:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case k:return"Portal";case E:return C.displayName||"Context";case v:return(C._context.displayName||"Context")+".Consumer";case P:var z=C.render;return C=C.displayName,C||(C=z.displayName||z.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case M:return z=C.displayName||null,z!==null?z:e(C.type)||"Memo";case F:z=C._payload,C=C._init;try{return e(C(z))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var z=!1}catch{z=!0}if(z){z=console;var p=z.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return p.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),t(C)}}function r(C){if(C===b)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===F)return"<...>";try{var z=e(C);return z?"<"+z+">":"<...>"}catch{return"<...>"}}function i(){var C=V.A;return C===null?null:C.getOwner()}function o(){return Error("react-stack-top-frame")}function s(C){if(K.call(C,"key")){var z=Object.getOwnPropertyDescriptor(C,"key").get;if(z&&z.isReactWarning)return!1}return C.key!==void 0}function a(C,z){function p(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",z))}p.isReactWarning=!0,Object.defineProperty(C,"key",{get:p,configurable:!0})}function l(){var C=e(this.type);return W[C]||(W[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,z,p,X,Ie,oe){var te=p.ref;return C={$$typeof:m,type:C,key:z,props:p,_owner:X},(te!==void 0?te:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:l}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function c(C,z,p,X,Ie,oe){var te=z.children;if(te!==void 0)if(X)if(B(te)){for(X=0;X<te.length;X++)f(te[X]);Object.freeze&&Object.freeze(te)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(te);if(K.call(z,"key")){te=e(C);var ge=Object.keys(z).filter(function(Xe){return Xe!=="key"});X=0<ge.length?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}",y[te+X]||(ge=0<ge.length?"{"+ge.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
3
+ let props = %s;
4
+ <%s {...props} />
5
+ React keys must be passed directly to JSX without using spread:
6
+ let props = %s;
7
+ <%s key={someKey} {...props} />`,X,te,ge,te),y[te+X]=!0)}if(te=null,p!==void 0&&(n(p),te=""+p),s(z)&&(n(z.key),te=""+z.key),"key"in z){p={};for(var Fe in z)Fe!=="key"&&(p[Fe]=z[Fe])}else p=z;return te&&a(p,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,te,p,i(),Ie,oe)}function f(C){h(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===F&&(C._payload.status==="fulfilled"?h(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function h(C){return typeof C=="object"&&C!==null&&C.$$typeof===m}var d=D,m=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),E=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),V=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,B=Array.isArray,j=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(C){return C()}};var G,W={},Q=d.react_stack_bottom_frame.bind(d,o)(),le=j(r(o)),y={};At.Fragment=b,At.jsx=function(C,z,p){var X=1e4>V.recentlyCreatedOwnerStacks++;return c(C,z,p,!1,X?Error("react-stack-top-frame"):Q,X?j(r(C)):le)},At.jsxs=function(C,z,p){var X=1e4>V.recentlyCreatedOwnerStacks++;return c(C,z,p,!0,X?Error("react-stack-top-frame"):Q,X?j(r(C)):le)}})()),At}var io;function fc(){return io||(io=1,process.env.NODE_ENV==="production"?sn.exports=uc():sn.exports=cc()),sn.exports}var g=fc();function dc(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function o(s){if(n[s])return i[s]=[];if(!(s in i)){i[s]=null;const a=r[s]&&r[s].parent,l=a&&o(a);l&&(i[s]=[a].concat(l))}return i[s]}return Object.keys(n).concat(Object.keys(r)).forEach(o),i}const oo=Object.freeze({left:0,top:0,width:16,height:16}),an=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),zn=Object.freeze({...oo,...an}),_n=Object.freeze({...zn,body:"",hidden:!1});function hc(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function so(e,t){const n=hc(e,t);for(const r in _n)r in an?r in e&&!(r in n)&&(n[r]=an[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function pc(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=so(r[a]||i[a],o)}return s(t),n.forEach(s),so(e,o)}function ao(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=dc(e);for(const i in r){const o=r[i];o&&(t(i,pc(e,i,o)),n.push(i))}return n}const mc={provider:"",aliases:{},not_found:{},...oo};function $n(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function lo(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!$n(e,mc))return null;const n=t.icons;for(const i in n){const o=n[i];if(!i||typeof o.body!="string"||!$n(o,_n))return null}const r=t.aliases||Object.create(null);for(const i in r){const o=r[i],s=o.parent;if(!i||typeof s!="string"||!n[s]&&!r[s]||!$n(o,_n))return null}return t}const uo=Object.create(null);function gc(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ot(e,t){const n=uo[e]||(uo[e]=Object.create(null));return n[t]||(n[t]=gc(e,t))}function co(e,t){return lo(t)?ao(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function yc(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}const fo=/^[a-z0-9]+(-[a-z0-9]+)*$/,ln=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),u={provider:i.length>0?i[0]:r,prefix:l,name:a};return t&&!un(u)?null:u}const o=i[0],s=o.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!un(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:o};return t&&!un(a,n)?null:a}return null},un=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;let It=!1;function ho(e){return typeof e=="boolean"&&(It=e),It}function po(e){const t=typeof e=="string"?ln(e,!0,It):e;if(t){const n=ot(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function xc(e,t){const n=ln(e,!0,It);if(!n)return!1;const r=ot(n.provider,n.prefix);return t?yc(r,n.name,t):(r.missing.add(n.name),!0)}function bc(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),It&&!t&&!e.prefix){let i=!1;return lo(e)&&(e.prefix="",ao(e,(o,s)=>{xc(o,s)&&(i=!0)})),i}const n=e.prefix;if(!un({prefix:n,name:"a"}))return!1;const r=ot(t,n);return!!co(r,e)}const mo=Object.freeze({width:null,height:null}),go=Object.freeze({...mo,...an}),vc=/(-?[0-9.]*[0-9]+[0-9.]*)/g,wc=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function yo(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(vc);if(r===null||!r.length)return e;const i=[];let o=r.shift(),s=wc.test(o);for(;;){if(s){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*t*n)/n)}else i.push(o);if(o=r.shift(),o===void 0)return i.join("");s=!s}}function kc(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;n+=e.slice(i+1,o).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}function Sc(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Tc(e,t,n){const r=kc(e);return Sc(r.defs,t+r.content+n)}const Cc=e=>e==="unset"||e==="undefined"||e==="none";function Ec(e,t){const n={...zn,...e},r={...go,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(k=>{const b=[],x=k.hFlip,S=k.vFlip;let v=k.rotate;x?S?v+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):S&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let E;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:E=i.height/2+i.top,b.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,b.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}v%2===1&&(i.left!==i.top&&(E=i.left,i.left=i.top,i.top=E),i.width!==i.height&&(E=i.width,i.width=i.height,i.height=E)),b.length&&(o=Tc(o,'<g transform="'+b.join(" ")+'">',"</g>"))});const s=r.width,a=r.height,l=i.width,u=i.height;let c,f;s===null?(f=a===null?"1em":a==="auto"?u:a,c=yo(f,l/u)):(c=s==="auto"?l:s,f=a===null?yo(c,u/l):a==="auto"?u:a);const h={},d=(k,b)=>{Cc(b)||(h[k]=b.toString())};d("width",c),d("height",f);const m=[i.left,i.top,l,u];return h.viewBox=m.join(" "),{attributes:h,viewBox:m,body:o}}const Pc=/\sid="(\S+)"/g,Ac="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ic=0;function Dc(e,t=Ac){const n=[];let r;for(;r=Pc.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const s=typeof t=="function"?t(o):t+(Ic++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Un=Object.create(null);function jc(e,t){Un[e]=t}function Hn(e){return Un[e]||Un[""]}function Wn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const qn=Object.create(null),Dt=["https://api.simplesvg.com","https://api.unisvg.com"],cn=[];for(;Dt.length>0;)Dt.length===1||Math.random()>.5?cn.push(Dt.shift()):cn.push(Dt.pop());qn[""]=Wn({resources:["https://api.iconify.design"].concat(cn)});function Mc(e,t){const n=Wn(t);return n===null?!1:(qn[e]=n,!0)}function Gn(e){return qn[e]}let xo=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Nc(e,t){const n=Gn(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(s=>{i=Math.max(i,s.length)});const o=t+".json?icons=";r=n.maxURL-i-n.path.length-o.length}return r}function Lc(e){return e===404}const Rc=(e,t,n)=>{const r=[],i=Nc(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=i&&u>0&&(r.push(s),s={type:o,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function Vc(e){if(typeof e=="string"){const t=Gn(e);if(t)return t.path}return"/"}const Oc={prepare:Rc,send:(e,t,n)=>{if(!xo){n("abort",424);return}let r=Vc(t.provider);switch(t.type){case"icons":{const o=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;r+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let i=503;xo(e+r).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{n(Lc(s)?"abort":"next",s)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",i)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",i)})}};function bo(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Fc(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(o=>{const s=o.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==i)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:i,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:i,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||bo([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Bc=0;function zc(e,t,n){const r=Bc++,i=bo.bind(null,n,r);if(!t.pending.length)return i;const o={id:r,icons:t,callback:e,abort:i};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),i}function _c(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const o=i.provider,s=i.prefix,a=i.name,l=n[o]||(n[o]=Object.create(null)),u=l[s]||(l[s]=ot(o,s));let c;a in u.icons?c=t.loaded:s===""||u.missing.has(a)?c=t.missing:c=t.pending;const f={provider:o,prefix:s,name:a};c.push(f)}),t}function $c(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const o=typeof i=="string"?ln(i,t,n):i;o&&r.push(o)}),r}const Uc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Hc(e,t,n,r){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let w=e.resources.slice(0);for(s=[];w.length>1;){const N=Math.floor(Math.random()*w.length);s.push(w[N]),w=w.slice(0,N).concat(w.slice(N+1))}s=s.concat(w)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let l="pending",u=0,c,f=null,h=[],d=[];typeof r=="function"&&d.push(r);function m(){f&&(clearTimeout(f),f=null)}function k(){l==="pending"&&(l="aborted"),m(),h.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),h=[]}function b(w,N){N&&(d=[]),typeof w=="function"&&d.push(w)}function x(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:h.length,subscribe:b,abort:k}}function S(){l="failed",d.forEach(w=>{w(void 0,c)})}function v(){h.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),h=[]}function E(w,N,M){const F=N!=="success";switch(h=h.filter(O=>O!==w),l){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(N==="abort"){c=M,S();return}if(F){c=M,h.length||(s.length?P():S());return}if(m(),v(),!e.random){const O=e.resources.indexOf(w.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",d.forEach(O=>{O(M)})}function P(){if(l!=="pending")return;m();const w=s.shift();if(w===void 0){if(h.length){f=setTimeout(()=>{m(),l==="pending"&&(v(),S())},e.timeout);return}S();return}const N={status:"pending",resource:w,callback:(M,F)=>{E(N,M,F)}};h.push(N),u++,f=setTimeout(P,e.rotate),n(w,t,N.callback)}return setTimeout(P),x}function vo(e){const t={...Uc,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,l,u){const c=Hc(t,a,l,(f,h)=>{r(),u&&u(f,h)});return n.push(c),c}function o(a){return n.find(l=>a(l))||null}return{query:i,find:o,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function wo(){}const Yn=Object.create(null);function Wc(e){if(!Yn[e]){const t=Gn(e);if(!t)return;const n=vo(t),r={config:t,redundancy:n};Yn[e]=r}return Yn[e]}function qc(e,t,n){let r,i;if(typeof e=="string"){const o=Hn(e);if(!o)return n(void 0,424),wo;i=o.send;const s=Wc(e);s&&(r=s.redundancy)}else{const o=Wn(e);if(o){r=vo(o);const s=e.resources?e.resources[0]:"",a=Hn(s);a&&(i=a.send)}}return!r||!i?(n(void 0,424),wo):r.query(t,i,n)().abort}function ko(){}function Gc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Fc(e)}))}function Yc(e){const t=[],n=[];return e.forEach(r=>{(r.match(fo)?t:n).push(r)}),{valid:t,invalid:n}}function jt(e,t,n){function r(){const i=e.pendingIcons;t.forEach(o=>{i&&i.delete(o),e.icons[o]||e.missing.add(o)})}if(n&&typeof n=="object")try{if(!co(e,n).length){r();return}}catch(i){console.error(i)}r(),Gc(e)}function So(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Kc(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const o=e.loadIcon;if(e.loadIcons&&(i.length>1||!o)){So(e.loadIcons(i,r,n),c=>{jt(e,i,c)});return}if(o){i.forEach(c=>{const f=o(c,r,n);So(f,h=>{const d=h?{prefix:r,icons:{[c]:h}}:null;jt(e,[c],d)})});return}const{valid:s,invalid:a}=Yc(i);if(a.length&&jt(e,a,null),!s.length)return;const l=r.match(fo)?Hn(n):null;if(!l){jt(e,s,null);return}l.prepare(n,r,s).forEach(c=>{qc(n,c,f=>{jt(e,c.icons,f)})})}))}const Xc=(e,t)=>{const n=$c(e,!0,ho()),r=_c(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,ko)}),()=>{l=!1}}const i=Object.create(null),o=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:c}=l;if(c===a&&u===s)return;s=u,a=c,o.push(ot(u,c));const f=i[u]||(i[u]=Object.create(null));f[c]||(f[c]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:c,name:f}=l,h=ot(u,c),d=h.pendingIcons||(h.pendingIcons=new Set);d.has(f)||(d.add(f),i[u][c].push(f))}),o.forEach(l=>{const u=i[l.provider][l.prefix];u.length&&Kc(l,u)}),t?zc(t,r,o):ko};function Qc(e,t){const n={...e};for(const r in t){const i=t[r],o=typeof i;r in mo?(i===null||i&&(o==="string"||o==="number"))&&(n[r]=i):o===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Zc=/[\s,]+/;function Jc(e,t){t.split(Zc).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ef(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/i,o%1===0?r(o):0)}}return t}function tf(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function nf(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function rf(e){return"data:image/svg+xml,"+nf(e)}function of(e){return'url("'+rf(e)+'")'}let Mt;function sf(){try{Mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Mt=null}}function af(e){return Mt===void 0&&sf(),Mt?Mt.createHTML(e):e}const To={...go,inline:!1},lf={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},uf={display:"inline-block"},Kn={backgroundColor:"currentColor"},Co={backgroundColor:"transparent"},Eo={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Po={WebkitMask:Kn,mask:Kn,background:Co};for(const e in Po){const t=Po[e];for(const n in Eo)t[e+n]=Eo[n]}const cf={...To,inline:!0};function Ao(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const ff=(e,t,n)=>{const r=t.inline?cf:To,i=Qc(r,t),o=t.mode||"svg",s={},a=t.style||{},l={...o==="svg"?lf:{}};if(n){const b=ln(n,!1,!0);if(b){const x=["iconify"],S=["provider","prefix"];for(const v of S)b[v]&&x.push("iconify--"+b[v]);l.className=x.join(" ")}}for(let b in t){const x=t[b];if(x!==void 0)switch(b){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=x;break;case"className":l[b]=(l[b]?l[b]+" ":"")+x;break;case"inline":case"hFlip":case"vFlip":i[b]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&Jc(i,x);break;case"color":s.color=x;break;case"rotate":typeof x=="string"?i[b]=ef(x):typeof x=="number"&&(i[b]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete l["aria-hidden"];break;default:r[b]===void 0&&(l[b]=x)}}const u=Ec(e,i),c=u.attributes;if(i.inline&&(s.verticalAlign="-0.125em"),o==="svg"){l.style={...s,...a},Object.assign(l,c);let b=0,x=t.id;return typeof x=="string"&&(x=x.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:af(Dc(u.body,x?()=>x+"ID"+b++:"iconifyReact"))},D.createElement("svg",l)}const{body:f,width:h,height:d}=e,m=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),k=tf(f,{...c,width:h+"",height:d+""});return l.style={...s,"--svg":of(k),width:Ao(c.width),height:Ao(c.height),...uf,...m?Kn:Co,...a},D.createElement("span",l)};if(ho(!0),jc("",Oc),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!bc(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Mc(n,i)||console.error(r)}catch{console.error(r)}}}}function Io(e){const[t,n]=D.useState(!!e.ssr),[r,i]=D.useState({});function o(d){if(d){const m=e.icon;if(typeof m=="object")return{name:"",data:m};const k=po(m);if(k)return{name:m,data:k}}return{name:""}}const[s,a]=D.useState(o(!!e.ssr));function l(){const d=r.callback;d&&(d(),i({}))}function u(d){if(JSON.stringify(s)!==JSON.stringify(d))return l(),a(d),!0}function c(){var d;const m=e.icon;if(typeof m=="object"){u({name:"",data:m});return}const k=po(m);if(u({name:m,data:k}))if(k===void 0){const b=Xc([m],c);i({callback:b})}else k&&((d=e.onLoad)===null||d===void 0||d.call(e,m))}D.useEffect(()=>(n(!0),l),[]),D.useEffect(()=>{t&&c()},[e.icon,t]);const{name:f,data:h}=s;return h?ff({...zn,...h},e,f):e.children?e.children:e.fallback?e.fallback:D.createElement("span",{})}const he=D.forwardRef((e,t)=>Io({...e,_ref:t}));D.forwardRef((e,t)=>Io({inline:!0,...e,_ref:t}));const Do=({title:e,subtitle:t,items:n,className:r="",inverted:i=!1})=>g.jsx("section",{className:`bento-grid-section ${i?"theme-inverted":""} ${r}`,children:g.jsxs("div",{className:"bento-grid-container",children:[(e||t)&&g.jsxs("div",{className:"bento-grid-header",children:[e&&g.jsx("h2",{className:"section-title bento-grid-title",children:e}),t&&g.jsx("p",{className:"section-subtitle bento-grid-subtitle",children:t})]}),g.jsx("div",{className:"bento-grid",children:n.map((o,s)=>{const a=o.colSpan?`col-span-${o.colSpan}`:"col-span-1",l=o.rowSpan?`row-span-${o.rowSpan}`:"row-span-1",u=o.href?"a":"div",c=o.href?{href:o.href,className:`bento-card ${a} ${l} ${o.className||""} ${i?"theme-inverted":""} clickable`}:{className:`bento-card ${a} ${l} ${o.className||""} ${i?"theme-inverted":""}`};return g.jsxs(u,{...c,children:[o.image&&g.jsx("div",{className:"bento-card-image-wrapper",children:g.jsx("img",{src:o.image.imageSrc,alt:o.image.alt,className:"bento-card-image"})}),g.jsxs("div",{className:"bento-card-content",children:[o.icon&&g.jsx("div",{className:"bento-card-icon",children:g.jsx(he,{icon:o.icon,width:"24",height:"24"})}),g.jsxs("div",{className:"bento-card-text",children:[g.jsx("h3",{className:"card-title bento-card-title",children:o.title}),o.description&&g.jsx("p",{className:"card-description bento-card-description",children:o.description})]})]})]},s)})})]})}),Xn=({children:e,className:t="",variant:n="default",padding:r="md",hoverable:i=!1,elevation:o="sm",onClick:s,inverted:a=!1})=>{const l=["card",`card-${n}`,`card-padding-${r}`,df("elevation",o),i?"card-hoverable":"",a?"theme-inverted":"",t].filter(Boolean).join(" ");return g.jsx("div",{className:l,onClick:s,children:e})},df=(e,t)=>t&&t!=="none"?`card-${e}-${t}`:"",Qn=({children:e,className:t="",position:n="right",label:r="Toggle menu"})=>{const[i,o]=D.useState(!1),s=D.useRef(null);D.useEffect(()=>{const u=c=>{s.current&&!s.current.contains(c.target)&&o(!1)};return i&&document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[i]),D.useEffect(()=>{const u=c=>{c.key==="Escape"&&o(!1)};return i&&document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[i]),D.useEffect(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[i]);const a=()=>{o(!i)},l=u=>{u.target.closest("a")&&o(!1)};return g.jsxs("div",{className:`hamburger-menu ${t}`,ref:s,children:[g.jsx("button",{className:"hamburger-toggle",onClick:a,"aria-label":r,"aria-expanded":i,children:g.jsx(he,{icon:i?"mdi:close":"mdi:menu",width:"24",height:"24"})}),i&&g.jsx("div",{className:"hamburger-overlay",onClick:()=>o(!1)}),g.jsx("div",{className:`hamburger-content-container ${t} ${n} ${i?"open":""}`,onClick:l,children:g.jsx("div",{className:"hamburger-content",children:e})})]})},jo=(e={})=>{const{breakpoint:t=768,useActualDetection:n=!0,touchClassName:r="touch-device"}=e,[i,o]=D.useState(!1),s=D.useRef(null);return D.useEffect(()=>{const a=()=>{let c=!1;n&&(c=window.matchMedia("(hover: none) and (pointer: coarse)").matches),!c&&window.innerWidth<=t&&(c=!0),!c&&"ontouchstart"in window&&(c=!0),s.current!==c&&(o(c),s.current=c,c?document.documentElement.classList.add(r):document.documentElement.classList.remove(r))};a();let l;const u=()=>{clearTimeout(l),l=setTimeout(a,100)};return window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u),clearTimeout(l),document.documentElement.classList.remove(r)}},[t,n,r]),i},Mo=e=>{const{menuBar:t,utilityButtons:n,sticky:r=!1,className:i="",mobileBreakpoint:o=768,logoHref:s,imageSrc:a,logoTarget:l="_self",logoClassName:u="",altText:c="Logo",inverted:f=!1}=e,h=jo({breakpoint:o});return g.jsxs("header",{className:`header ${r?"header-sticky":""} ${f?"theme-inverted":""} ${i}`,children:[g.jsx("div",{className:"header-logo-wrapper",children:a&&g.jsx("a",{href:s||"#",target:l,className:`${u} hover-lift`,"aria-label":"Home",children:g.jsx("img",{src:a,alt:c,className:"header-logo-img"})})}),g.jsxs("div",{className:`header-right ${h?"header-right-hidden":""}`,children:[g.jsx("div",{className:"header-nav",children:t}),n&&n.length>0&&g.jsx("div",{className:"header-utility",children:n})]}),h&&g.jsxs("div",{className:"header-mobile-wrapper",children:[n&&n.length>0&&g.jsx("div",{className:"header-mobile-utility",children:n}),g.jsx("div",{className:"header-hamburger",children:g.jsx(Qn,{position:"right",label:"Navigation menu",children:g.jsxs("div",{className:"header-mobile-menu-content",children:[t,n&&n.length>0&&g.jsx(g.Fragment,{children:g.jsxs("div",{className:"header-mobile-settings",children:[g.jsx("h3",{className:"header-mobile-settings-title",children:"Settings"}),n]})})]})})})]})]})},No=D.createContext({});function hf(e){const t=D.useRef(null);return t.current===null&&(t.current=e()),t.current}const Zn=typeof window<"u",pf=Zn?D.useLayoutEffect:D.useEffect,Jn=D.createContext(null);function er(e,t){e.indexOf(t)===-1&&e.push(t)}function tr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Be=(e,t,n)=>n>t?t:n<e?e:n;function nr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let st=()=>{},ze=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(st=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(nr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(nr(t,n))});const _e={},Lo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ro(e){return typeof e=="object"&&e!==null}const Vo=e=>/^0[^.\s]+$/u.test(e);function rr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,mf=(e,t)=>n=>t(e(n)),Nt=(...e)=>e.reduce(mf),Lt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ir{constructor(){this.subscriptions=[]}add(t){return er(this.subscriptions,t),()=>tr(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Ee=e=>e/1e3;function Oo(e,t){return t?e*(1e3/t):0}const Fo=new Set;function or(e,t,n){e||Fo.has(t)||(console.warn(nr(t,n)),Fo.add(t))}const Bo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gf=1e-7,yf=12;function xf(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Bo(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>gf&&++a<yf);return s}function Rt(e,t,n,r){if(e===t&&n===r)return Ce;const i=o=>xf(o,0,1,e,n);return o=>o===0||o===1?o:Bo(i(o),t,r)}const zo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_o=e=>t=>1-e(1-t),$o=Rt(.33,1.53,.69,.99),sr=_o($o),Uo=zo(sr),Ho=e=>(e*=2)<1?.5*sr(e):.5*(2-Math.pow(2,-10*(e-1))),ar=e=>1-Math.sin(Math.acos(e)),Wo=_o(ar),qo=zo(ar),bf=Rt(.42,0,1,1),vf=Rt(0,0,.58,1),Go=Rt(.42,0,.58,1),wf=e=>Array.isArray(e)&&typeof e[0]!="number",Yo=e=>Array.isArray(e)&&typeof e[0]=="number",Ko={linear:Ce,easeIn:bf,easeInOut:Go,easeOut:vf,circIn:ar,circInOut:qo,circOut:Wo,backIn:sr,backInOut:Uo,backOut:$o,anticipate:Ho},kf=e=>typeof e=="string",Xo=e=>{if(Yo(e)){ze(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Rt(t,n,r,i)}else if(kf(e))return ze(Ko[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ko[e];return e},fn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Sf(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){s.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,h=!1)=>{const m=h&&i?n:r;return f&&s.add(c),m.has(c)||m.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Tf=40;function Qo(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=fn.reduce((v,E)=>(v[E]=Sf(o),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:h,render:d,postRender:m}=s,k=()=>{const v=_e.useManualTiming?i.timestamp:performance.now();n=!1,_e.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(v-i.timestamp,Tf),1)),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),h.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(k))},b=()=>{n=!0,r=!0,i.isProcessing||e(k)};return{schedule:fn.reduce((v,E)=>{const P=s[E];return v[E]=(w,N=!1,M=!1)=>(n||b(),P.schedule(w,N,M)),v},{}),cancel:v=>{for(let E=0;E<fn.length;E++)s[fn[E]].cancel(v)},state:i,steps:s}}const{schedule:ne,cancel:He,state:ce,steps:lr}=Qo(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let dn;function Cf(){dn=void 0}const ye={now:()=>(dn===void 0&&ye.set(ce.isProcessing||_e.useManualTiming?ce.timestamp:performance.now()),dn),set:e=>{dn=e,queueMicrotask(Cf)}},Zo=e=>t=>typeof t=="string"&&t.startsWith(e),Jo=Zo("--"),Ef=Zo("var(--"),ur=e=>Ef(e)?Pf.test(e.split("/*")[0].trim()):!1,Pf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,at={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vt={...at,transform:e=>Be(0,1,e)},hn={...at,default:1},Ot=e=>Math.round(e*1e5)/1e5,cr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Af(e){return e==null}const If=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fr=(e,t)=>n=>!!(typeof n=="string"&&If.test(n)&&n.startsWith(e)||t&&!Af(n)&&Object.prototype.hasOwnProperty.call(n,t)),es=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(cr);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Df=e=>Be(0,255,e),dr={...at,transform:e=>Math.round(Df(e))},Qe={test:fr("rgb","red"),parse:es("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dr.transform(e)+", "+dr.transform(t)+", "+dr.transform(n)+", "+Ot(Vt.transform(r))+")"};function jf(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hr={test:fr("#"),parse:jf,transform:Qe.transform},Ft=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),We=Ft("deg"),Le=Ft("%"),L=Ft("px"),Mf=Ft("vh"),Nf=Ft("vw"),ts={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},lt={test:fr("hsl","hue"),parse:es("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Le.transform(Ot(t))+", "+Le.transform(Ot(n))+", "+Ot(Vt.transform(r))+")"},se={test:e=>Qe.test(e)||hr.test(e)||lt.test(e),parse:e=>Qe.test(e)?Qe.parse(e):lt.test(e)?lt.parse(e):hr.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qe.transform(e):lt.transform(e),getAnimatableNone:e=>{const t=se.parse(e);return t.alpha=0,se.transform(t)}},Lf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Rf(e){return isNaN(e)&&typeof e=="string"&&(e.match(cr)?.length||0)+(e.match(Lf)?.length||0)>0}const ns="number",rs="color",Vf="var",Of="var(",is="${}",Ff=/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 Bt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Ff,l=>(se.test(l)?(r.color.push(o),i.push(rs),n.push(se.parse(l))):l.startsWith(Of)?(r.var.push(o),i.push(Vf),n.push(l)):(r.number.push(o),i.push(ns),n.push(parseFloat(l))),++o,is)).split(is);return{values:n,split:a,indexes:r,types:i}}function os(e){return Bt(e).values}function ss(e){const{split:t,types:n}=Bt(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===ns?o+=Ot(i[s]):a===rs?o+=se.transform(i[s]):o+=i[s]}return o}}const Bf=e=>typeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function zf(e){const t=os(e);return ss(e)(t.map(Bf))}const qe={test:Rf,parse:os,createTransformer:ss,getAnimatableNone:zf};function pr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _f({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=pr(l,a,e+1/3),o=pr(l,a,e),s=pr(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function pn(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,mr=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},$f=[hr,Qe,lt],Uf=e=>$f.find(t=>t.test(e));function as(e){const t=Uf(e);if(st(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===lt&&(n=_f(n)),n}const ls=(e,t)=>{const n=as(e),r=as(t);if(!n||!r)return pn(e,t);const i={...n};return o=>(i.red=mr(n.red,r.red,o),i.green=mr(n.green,r.green,o),i.blue=mr(n.blue,r.blue,o),i.alpha=re(n.alpha,r.alpha,o),Qe.transform(i))},gr=new Set(["none","hidden"]);function Hf(e,t){return gr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Wf(e,t){return n=>re(e,t,n)}function yr(e){return typeof e=="number"?Wf:typeof e=="string"?ur(e)?pn:se.test(e)?ls:Yf:Array.isArray(e)?us:typeof e=="object"?se.test(e)?ls:qf:pn}function us(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>yr(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function qf(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yr(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Gf(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}const Yf=(e,t)=>{const n=qe.createTransformer(t),r=Bt(e),i=Bt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gr.has(e)&&!i.values.length||gr.has(t)&&!r.values.length?Hf(e,t):Nt(us(Gf(r,i),i.values),n):(st(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),pn(e,t))};function cs(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):yr(e)(e,t)}const Kf=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ne.update(t,n),stop:()=>He(t),now:()=>ce.isProcessing?ce.timestamp:ye.now()}},fs=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},mn=2e4;function xr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mn;)t+=n,r=e.next(t);return t>=mn?1/0:t}function Xf(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(xr(r),mn);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Ee(i)}}const Qf=5;function ds(e,t,n){const r=Math.max(t-Qf,0);return Oo(n-e(r),t-r)}const ie={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},br=.001;function Zf({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let i,o;st(e<=De(ie.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Be(ie.minDamping,ie.maxDamping,s),e=Be(ie.minDuration,ie.maxDuration,Ee(e)),s<1?(i=u=>{const c=u*s,f=c*e,h=c-n,d=vr(u,s),m=Math.exp(-f);return br-h/d*m},o=u=>{const f=u*s*e,h=f*n+n,d=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-f),k=vr(Math.pow(u,2),s);return(-i(u)+br>0?-1:1)*((h-d)*m)/k}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-br+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=ed(i,o,a);if(e=De(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Jf=12;function ed(e,t,n){let r=n;for(let i=1;i<Jf;i++)r=r-e(r)/t(r);return r}function vr(e,t){return e*Math.sqrt(1-t*t)}const td=["duration","bounce"],nd=["stiffness","damping","mass"];function hs(e,t){return t.some(n=>e[n]!==void 0)}function rd(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!hs(e,nd)&&hs(e,td))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Be(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ie.mass,stiffness:i,damping:o}}else{const n=Zf(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function gn(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:d}=rd({...n,velocity:-Ee(n.velocity||0)}),m=h||0,k=u/(2*Math.sqrt(l*c)),b=s-o,x=Ee(Math.sqrt(l/c)),S=Math.abs(b)<5;r||(r=S?ie.restSpeed.granular:ie.restSpeed.default),i||(i=S?ie.restDelta.granular:ie.restDelta.default);let v;if(k<1){const P=vr(x,k);v=w=>{const N=Math.exp(-k*x*w);return s-N*((m+k*x*b)/P*Math.sin(P*w)+b*Math.cos(P*w))}}else if(k===1)v=P=>s-Math.exp(-x*P)*(b+(m+x*b)*P);else{const P=x*Math.sqrt(k*k-1);v=w=>{const N=Math.exp(-k*x*w),M=Math.min(P*w,300);return s-N*((m+k*x*b)*Math.sinh(M)+P*b*Math.cosh(M))/P}}const E={calculatedDuration:d&&f||null,next:P=>{const w=v(P);if(d)a.done=P>=f;else{let N=P===0?m:0;k<1&&(N=P===0?De(m):ds(v,P,w));const M=Math.abs(N)<=r,F=Math.abs(s-w)<=i;a.done=M&&F}return a.value=a.done?s:w,a},toString:()=>{const P=Math.min(xr(E),mn),w=fs(N=>E.next(P*N).value,P,30);return P+"ms "+w},toTransition:()=>{}};return E}gn.applyToOptions=e=>{const t=Xf(e,100,gn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function wr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],h={done:!1,value:f},d=M=>a!==void 0&&M<a||l!==void 0&&M>l,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let k=n*t;const b=f+k,x=s===void 0?b:s(b);x!==b&&(k=x-f);const S=M=>-k*Math.exp(-M/r),v=M=>x+S(M),E=M=>{const F=S(M),O=v(M);h.done=Math.abs(F)<=u,h.value=h.done?x:O};let P,w;const N=M=>{d(h.value)&&(P=M,w=gn({keyframes:[h.value,m(h.value)],velocity:ds(v,M,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:M=>{let F=!1;return!w&&P===void 0&&(F=!0,E(M),N(M)),P!==void 0&&M>=P?w.next(M-P):(!F&&E(M),h)}}}function id(e,t,n){const r=[],i=n||_e.mix||cs,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ce:t;a=Nt(l,a)}r.push(a)}return r}function od(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ze(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=id(t,r,i),l=a.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const h=Lt(e[f],e[f+1],c);return a[f](h)};return n?c=>u(Be(e[0],e[o-1],c)):u}function sd(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Lt(0,t,r);e.push(re(n,1,i))}}function ad(e){const t=[0];return sd(t,e.length-1),t}function ld(e,t){return e.map(n=>n*t)}function ud(e,t){return e.map(()=>t||Go).splice(0,e.length-1)}function ut({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=wf(r)?r.map(Xo):Xo(r),o={done:!1,value:t[0]},s=ld(n&&n.length===t.length?n:ad(t),e),a=od(s,t,{ease:Array.isArray(i)?i:ud(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const cd=e=>e!==null;function kr(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(cd),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const fd={decay:wr,inertia:wr,tween:ut,keyframes:ut,spring:gn};function ps(e){typeof e.type=="string"&&(e.type=fd[e.type])}class Sr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const dd=e=>e/100;class Tr extends Sr{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ye.now()&&this.tick(ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ps(t);const{type:n=ut,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=t;let{keyframes:a}=t;const l=n||ut;process.env.NODE_ENV!=="production"&&l!==ut&&ze(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==ut&&typeof a[0]!="number"&&(this.mixKeyframes=Nt(dd,cs(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=xr(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:d,type:m,onUpdate:k,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,E=r;if(f){const M=Math.min(this.currentTime,i)/a;let F=Math.floor(M),O=M%1;!O&&M>=1&&(O=1),O===1&&F--,F=Math.min(F,f+1),!!(F%2)&&(h==="reverse"?(O=1-O,d&&(O-=d/a)):h==="mirror"&&(E=s)),v=Be(0,1,O)*a}const P=S?{done:!1,value:c[0]}:E.next(v);o&&(P.value=o(P.value));let{done:w}=P;!S&&l!==null&&(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return N&&m!==wr&&(P.value=kr(c,this.options,b,this.speed)),k&&k(P.value),N&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Ee(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(this.currentTime)}set time(t){t=De(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Kf,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function hd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ze=e=>e*180/Math.PI,Cr=e=>{const t=Ze(Math.atan2(e[1],e[0]));return Er(t)},pd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cr,rotateZ:Cr,skewX:e=>Ze(Math.atan(e[1])),skewY:e=>Ze(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Er=e=>(e=e%360,e<0&&(e+=360),e),ms=Cr,gs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ys=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),md={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gs,scaleY:ys,scale:e=>(gs(e)+ys(e))/2,rotateX:e=>Er(Ze(Math.atan2(e[6],e[5]))),rotateY:e=>Er(Ze(Math.atan2(-e[2],e[0]))),rotateZ:ms,rotate:ms,skewX:e=>Ze(Math.atan(e[4])),skewY:e=>Ze(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pr(e){return e.includes("scale")?1:0}function Ar(e,t){if(!e||e==="none")return Pr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=md,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=pd,i=a}if(!i)return Pr(t);const o=r[t],s=i[1].split(",").map(yd);return typeof o=="function"?o(s):s[o]}const gd=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ar(n,t)};function yd(e){return parseFloat(e.trim())}const ct=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ft=new Set(ct),xs=e=>e===at||e===L,xd=new Set(["x","y","z"]),bd=ct.filter(e=>!xd.has(e));function vd(e){const t=[];return bd.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Je={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ar(t,"x"),y:(e,{transform:t})=>Ar(t,"y")};Je.translateX=Je.x,Je.translateY=Je.y;const et=new Set;let Ir=!1,Dr=!1,jr=!1;function bs(){if(Dr){const e=Array.from(et).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=vd(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{r.getValue(o)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Dr=!1,Ir=!1,et.forEach(e=>e.complete(jr)),et.clear()}function vs(){et.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dr=!0)})}function wd(){jr=!0,vs(),bs(),jr=!1}class Mr{constructor(t,n,r,i,o,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(et.add(this),Ir||(Ir=!0,ne.read(vs),ne.resolveKeyframes(bs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i?.get(),s=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),i&&o===void 0&&i.set(t[0])}hd(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),et.delete(this)}cancel(){this.state==="scheduled"&&(et.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kd=e=>e.startsWith("--");function Sd(e,t,n){kd(t)?e.style.setProperty(t,n):e.style[t]=n}const Td=rr(()=>window.ScrollTimeline!==void 0),Cd={};function Ed(e,t){const n=rr(e);return()=>Cd[t]??n()}const ws=Ed(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ks={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zt([0,.65,.55,1]),circOut:zt([.55,0,1,.45]),backIn:zt([.31,.01,.66,-.59]),backOut:zt([.33,1.53,.69,.99])};function Ss(e,t){if(e)return typeof e=="function"?ws()?fs(e,t):"ease-out":Yo(e)?zt(e):Array.isArray(e)?e.map(n=>Ss(n,t)||ks.easeOut):ks[e]}function Pd(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=Ss(a,i);Array.isArray(f)&&(c.easing=f);const h={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function Ts(e){return typeof e=="function"&&"applyToOptions"in e}function Ad({type:e,...t}){return Ts(e)&&ws()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Id extends Sr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=s,this.options=t,ze(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Ad(t);this.animation=Pd(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=kr(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Sd(n,r,c),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ee(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ee(t)}get time(){return Ee(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=De(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Td()?(this.animation.timeline=t,Ce):n(this)}}const Cs={anticipate:Ho,backInOut:Uo,circInOut:qo};function Dd(e){return e in Cs}function jd(e){typeof e.ease=="string"&&Dd(e.ease)&&(e.ease=Cs[e.ease])}const Es=10;class Md extends Id{constructor(t){jd(t),ps(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Tr({...s,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Es).value,a.sample(l).value,Es),a.stop()}}const Ps=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qe.test(e)||e==="0")&&!e.startsWith("url("));function Nd(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ld(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Ps(i,t),a=Ps(o,t);return st(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:Nd(e)||(n==="spring"||Ts(n))&&r}function Nr(e){e.duration=0,e.type="keyframes"}const Rd=new Set(["opacity","clipPath","filter","transform"]),Vd=rr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Od(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Vd()&&n&&Rd.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const Fd=40;class Bd extends Sr{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ye.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},d=c?.KeyframeResolver||Mr;this.keyframeResolver=new d(a,(m,k,b)=>this.onKeyframesResolved(m,k,h,!b),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=ye.now(),Ld(t,o,s,a)||((_e.instantAnimations||!l)&&c?.(kr(t,r,n)),t[0]=t[t.length-1],Nr(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Fd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},d=!u&&Od(h)?new Md({...h,element:h.motionValue.owner.current}):new Tr(h);d.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),wd()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const zd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _d(e){const t=zd.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const $d=4;function As(e,t,n=1){ze(n<=$d,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=_d(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Lo(s)?parseFloat(s):s}return ur(i)?As(i,t,n+1):i}function Lr(e,t){return e?.[t]??e?.default??e}const Is=new Set(["width","height","top","left","right","bottom",...ct]),Ud={test:e=>e==="auto",parse:e=>e},Ds=e=>t=>t.test(e),js=[at,L,Le,We,Nf,Mf,Ud],Ms=e=>js.find(Ds(e));function Hd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vo(e):!0}const Wd=new Set(["brightness","contrast","saturate","opacity"]);function qd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(cr)||[];if(!r)return e;const i=n.replace(r,"");let o=Wd.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Gd=/\b([a-z-]*)\(.*?\)/gu,Rr={...qe,getAnimatableNone:e=>{const t=e.match(Gd);return t?t.map(qd).join(" "):e}},Ns={...at,transform:Math.round},Vr={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,backgroundPositionX:L,backgroundPositionY:L,...{rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:hn,scaleX:hn,scaleY:hn,scaleZ:hn,skew:We,skewX:We,skewY:We,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Vt,originX:ts,originY:ts,originZ:L},zIndex:Ns,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:Ns},Yd={...Vr,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Rr,WebkitFilter:Rr},Ls=e=>Yd[e];function Rs(e,t){let n=Ls(e);return n!==Rr&&(n=qe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Kd=new Set(["auto","none","0"]);function Xd(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Kd.has(o)&&Bt(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Rs(n,i)}class Qd extends Mr{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ur(u))){const c=As(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Is.has(r)||t.length!==2)return;const[i,o]=t,s=Ms(i),a=Ms(o);if(s!==a)if(xs(s)&&xs(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else Je[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Hd(t[i]))&&r.push(i);r.length&&Xd(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Je[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Je[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Zd(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Vs=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Jd(e){return Ro(e)&&"offsetHeight"in e}const Os=30,eh=e=>!isNaN(parseFloat(e));class th{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=ye.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=eh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&or(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ir);const r=this.events[t].add(n);return t==="change"?()=>{r(),ne.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Os)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Os);return Oo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dt(e,t){return new th(e,t)}const{schedule:Or}=Qo(queueMicrotask,!1),je={x:!1,y:!1};function Fs(){return je.x||je.y}function nh(e){return e==="x"||e==="y"?je[e]?null:(je[e]=!0,()=>{je[e]=!1}):je.x||je.y?null:(je.x=je.y=!0,()=>{je.x=je.y=!1})}function Bs(e,t){const n=Zd(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function zs(e){return!(e.pointerType==="touch"||Fs())}function rh(e,t,n={}){const[r,i,o]=Bs(e,n),s=a=>{if(!zs(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{zs(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const _s=(e,t)=>t?e===t?!0:_s(e,t.parentElement):!1,Fr=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ih=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oh(e){return ih.has(e.tagName)||e.tabIndex!==-1}const yn=new WeakSet;function $s(e){return t=>{t.key==="Enter"&&e(t)}}function Br(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const sh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=$s(()=>{if(yn.has(n))return;Br(n,"down");const i=$s(()=>{Br(n,"up")}),o=()=>Br(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Us(e){return Fr(e)&&!Fs()}function ah(e,t,n={}){const[r,i,o]=Bs(e,n),s=a=>{const l=a.currentTarget;if(!Us(a))return;yn.add(l);const u=t(l,a),c=(d,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),yn.has(l)&&yn.delete(l),Us(d)&&typeof u=="function"&&u(d,{success:m})},f=d=>{c(d,l===window||l===document||n.useGlobalTarget||_s(l,d.target))},h=d=>{c(d,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),Jd(a)&&(a.addEventListener("focus",u=>sh(u,i)),!oh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Hs(e){return Ro(e)&&"ownerSVGElement"in e}function lh(e){return Hs(e)&&e.tagName==="svg"}const fe=e=>!!(e&&e.getVelocity),uh=[...js,se,qe],ch=e=>uh.find(Ds(e)),Ws=D.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function fh(e=!0){const t=D.useContext(Jn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=D.useId();D.useEffect(()=>{if(e)return i(o)},[e]);const s=D.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const qs=D.createContext({strict:!1}),Gs={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"]},ht={};for(const e in Gs)ht[e]={isEnabled:t=>Gs[e].some(n=>!!t[n])};function dh(e){for(const t in e)ht[t]={...ht[t],...e[t]}}const hh=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 xn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hh.has(e)}let Ys=e=>!xn(e);function ph(e){typeof e=="function"&&(Ys=t=>t.startsWith("on")?!xn(t):e(t))}try{ph(require("@emotion/is-prop-valid").default)}catch{}function mh(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ys(i)||n===!0&&xn(i)||!t&&!xn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const bn=D.createContext({});function vn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _t(e){return typeof e=="string"||Array.isArray(e)}const zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_r=["initial",...zr];function wn(e){return vn(e.animate)||_r.some(t=>_t(e[t]))}function Ks(e){return!!(wn(e)||e.variants)}function gh(e,t){if(wn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_t(n)?n:void 0,animate:_t(r)?r:void 0}}return e.inherit!==!1?t:{}}function yh(e){const{initial:t,animate:n}=gh(e,D.useContext(bn));return D.useMemo(()=>({initial:t,animate:n}),[Xs(t),Xs(n)])}function Xs(e){return Array.isArray(e)?e.join(" "):e}function Qs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $t={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(L.test(e))e=parseFloat(e);else return e;const n=Qs(e,t.target.x),r=Qs(e,t.target.y);return`${n}% ${r}%`}},xh={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=qe.parse(e);if(i.length>5)return r;const o=qe.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=re(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}},$r={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:xh};function Zs(e,{layout:t,layoutId:n}){return ft.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$r[e]||e==="opacity")}const bh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vh=ct.length;function wh(e,t,n){let r="",i=!0;for(let o=0;o<vh;o++){const s=ct[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Vs(a,Vr[s]);if(!l){i=!1;const c=bh[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ur(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(ft.has(l)){s=!0;continue}else if(Jo(l)){i[l]=u;continue}else{const c=Vs(u,Vr[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=wh(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;r.transformOrigin=`${l} ${u} ${c}`}}const Hr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Js(e,t,n){for(const r in t)!fe(t[r])&&!Zs(r,n)&&(e[r]=t[r])}function kh({transformTemplate:e},t){return D.useMemo(()=>{const n=Hr();return Ur(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Sh(e,t){const n=e.style||{},r={};return Js(r,n,e),Object.assign(r,kh(e,t)),r}function Th(e,t){const n={},r=Sh(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ch={offset:"stroke-dashoffset",array:"stroke-dasharray"},Eh={offset:"strokeDashoffset",array:"strokeDasharray"};function Ph(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Ch:Eh;e[o.offset]=L.transform(-r);const s=L.transform(t),a=L.transform(n);e[o.array]=`${s} ${a}`}const Ah=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ea(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(Ur(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const d of Ah)f[d]!==void 0&&(h[d]=f[d],delete f[d]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Ph(f,i,o,s,!1)}const ta=()=>({...Hr(),attrs:{}}),na=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ih(e,t,n,r){const i=D.useMemo(()=>{const o=ta();return ea(o,t,na(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Js(o,e.style,e),i.style={...o,...i.style}}return i}const Dh=["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 Wr(e){return typeof e!="string"||e.includes("-")?!1:!!(Dh.indexOf(e)>-1||/[A-Z]/u.test(e))}function jh(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??Wr(e)?Ih:Th)(t,r,i,e),u=mh(t,typeof e=="string",o),c=e!==D.Fragment?{...u,...l,ref:n}:{},{children:f}=t,h=D.useMemo(()=>fe(f)?f.get():f,[f]);return D.createElement(e,{...c,children:h})}function ra(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function qr(e,t,n,r){if(typeof t=="function"){const[i,o]=ra(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=ra(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function kn(e){return fe(e)?e.get():e}function Mh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Nh(n,r,i,e),renderState:t()}}function Nh(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=kn(o[h]);let{initial:s,animate:a}=e;const l=wn(e),u=Ks(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!vn(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const m=qr(e,h[d]);if(m){const{transitionEnd:k,transition:b,...x}=m;for(const S in x){let v=x[S];if(Array.isArray(v)){const E=c?v.length-1:0;v=v[E]}v!==null&&(i[S]=v)}for(const S in k)i[S]=k[S]}}}return i}const ia=e=>(t,n)=>{const r=D.useContext(bn),i=D.useContext(Jn),o=()=>Mh(e,t,r,i);return n?o():hf(o)};function Gr(e,t,n){const{style:r}=e,i={};for(const o in r)(fe(r[o])||t.style&&fe(t.style[o])||Zs(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}const Lh=ia({scrapeMotionValuesFromProps:Gr,createRenderState:Hr});function oa(e,t,n){const r=Gr(e,t,n);for(const i in e)if(fe(e[i])||fe(t[i])){const o=ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Rh=ia({scrapeMotionValuesFromProps:oa,createRenderState:ta}),Vh=Symbol.for("motionComponentSymbol");function pt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sa(e,t){if(typeof e=="function")return e(t);pt(e)&&(e.current=t)}function Oh(e,t,n){const r=D.useRef(null);return D.useCallback(i=>{if(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n)if(i){const o=sa(n,i);typeof o=="function"&&(r.current=o)}else r.current?(r.current(),r.current=null):sa(n,i)},[t,e,n])}const Yr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),aa="data-"+Yr("framerAppearId"),la=D.createContext({});function Fh(e,t,n,r,i,o){const{visualElement:s}=D.useContext(bn),a=D.useContext(qs),l=D.useContext(Jn),u=D.useContext(Ws).reducedMotion,c=D.useRef(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:o}));const f=c.current,h=D.useContext(la);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Bh(c.current,n,i,h);const d=D.useRef(!1);D.useInsertionEffect(()=>{f&&d.current&&f.update(n,l)});const m=n[aa],k=D.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return pf(()=>{f&&(d.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),k.current&&f.animationState&&f.animationState.animateChanges())}),D.useEffect(()=>{f&&(!k.current&&f.animationState&&f.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),k.current=!1),f.enteringChildren=void 0)}),f}function Bh(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ua(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&pt(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function ua(e){if(e)return e.options.allowProjection!==!1?e.projection:ua(e.parent)}function Kr(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&dh(r);const o=n?n==="svg":Wr(e),s=o?Rh:Lh;function a(u,c){let f;const h={...D.useContext(Ws),...u,layoutId:zh(u)},{isStatic:d}=h,m=yh(u),k=s(u,d);if(!d&&Zn){_h(h,r);const b=$h(h);f=b.MeasureLayout,m.visualElement=Fh(e,k,h,i,b.ProjectionNode,o)}return g.jsxs(bn.Provider,{value:m,children:[f&&m.visualElement?g.jsx(f,{visualElement:m.visualElement,...h}):null,jh(e,u,Oh(k,m.visualElement,c),k,d,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=D.forwardRef(a);return l[Vh]=e,l}function zh({layoutId:e}){const t=D.useContext(No).id;return t&&e!==void 0?t+"-"+e:e}function _h(e,t){const n=D.useContext(qs).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?st(!1,r,"lazy-strict-mode"):ze(!1,r,"lazy-strict-mode")}}function $h(e){const{drag:t,layout:n}=ht;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Uh(e,t){if(typeof Proxy>"u")return Kr;const n=new Map,r=(o,s)=>Kr(o,s,e,t),i=(o,s)=>(process.env.NODE_ENV!=="production"&&or(!1,"motion() is deprecated. Use motion.create() instead."),r(o,s));return new Proxy(i,{get:(o,s)=>s==="create"?r:(n.has(s)||n.set(s,Kr(s,void 0,e,t)),n.get(s))})}function ca({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Wh(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Xr(e){return e===void 0||e===1}function Qr({scale:e,scaleX:t,scaleY:n}){return!Xr(e)||!Xr(t)||!Xr(n)}function tt(e){return Qr(e)||fa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fa(e){return da(e.x)||da(e.y)}function da(e){return e&&e!=="0%"}function Sn(e,t,n){const r=e-n,i=t*r;return n+i}function ha(e,t,n,r,i){return i!==void 0&&(e=Sn(e,i,r)),Sn(e,n,r)+t}function Zr(e,t=0,n=1,r,i){e.min=ha(e.min,t,n,r,i),e.max=ha(e.max,t,n,r,i)}function pa(e,{x:t,y:n}){Zr(e.x,t.translate,t.scale,t.originPoint),Zr(e.y,n.translate,n.scale,n.originPoint)}const ma=.999999999999,ga=1.0000000000001;function qh(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&gt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,pa(e,s)),r&&tt(o.latestValues)&&gt(e,o.latestValues))}t.x<ga&&t.x>ma&&(t.x=1),t.y<ga&&t.y>ma&&(t.y=1)}function mt(e,t){e.min=e.min+t,e.max=e.max+t}function ya(e,t,n,r,i=.5){const o=re(e.min,e.max,i);Zr(e,t,n,o,r)}function gt(e,t){ya(e.x,t.x,t.scaleX,t.scale,t.originX),ya(e.y,t.y,t.scaleY,t.scale,t.originY)}function xa(e,t){return ca(Wh(e.getBoundingClientRect(),t))}function Gh(e,t,n){const r=xa(e,n),{scroll:i}=t;return i&&(mt(r.x,i.offset.x),mt(r.y,i.offset.y)),r}const ba=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:ba(),y:ba()}),va=()=>({min:0,max:0}),ue=()=>({x:va(),y:va()}),Jr={current:null},wa={current:!1};function Yh(){if(wa.current=!0,!!Zn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jr.current=e.matches;e.addEventListener("change",t),t()}else Jr.current=!1}const Kh=new WeakMap;function Xh(e,t,n){for(const r in t){const i=t[r],o=n[r];if(fe(i))e.addValue(r,i);else if(fe(o))e.addValue(r,dt(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,dt(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ka=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Qh{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mr,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 h=ye.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ne.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=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=wn(n),this.isVariantNode=Ks(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const d=f[h];l[h]!==void 0&&fe(d)&&d.set(l[h])}}mount(t){this.current=t,Kh.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((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(wa.current||Yh(),this.shouldReduceMotion=Jr.current),process.env.NODE_ENV!=="production"&&or(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),He(this.notifyUpdate),He(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ft.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&ne.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ht){const n=ht[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ka.length;r++){const i=ka[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Xh(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=dt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Lo(r)||Vo(r))?r=parseFloat(r):!ch(r)&&qe.test(n)&&(r=Rs(t,n)),this.setBaseTarget(t,fe(r)?r.get():r)),fe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=qr(this.props,n,this.presenceContext?.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!fe(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ir),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Or.render(this.render)}}class Sa extends Qh{constructor(){super(...arguments),this.KeyframeResolver=Qd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ta(e,{style:t,vars:n},r,i){const o=e.style;let s;for(s in t)o[s]=t[s];i?.applyProjectionStyles(o,r);for(s in n)o.setProperty(s,n[s])}function Zh(e){return window.getComputedStyle(e)}class Jh extends Sa{constructor(){super(...arguments),this.type="html",this.renderInstance=Ta}readValueFromInstance(t,n){if(ft.has(n))return this.projection?.isProjecting?Pr(n):gd(t,n);{const r=Zh(t),i=(Jo(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xa(t,n)}build(t,n,r){Ur(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Gr(t,n,r)}}const Ca=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 ep(e,t,n,r){Ta(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ca.has(i)?i:Yr(i),t.attrs[i])}class tp extends Sa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ue}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ft.has(n)){const r=Ls(n);return r&&r.default||0}return n=Ca.has(n)?n:Yr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return oa(t,n,r)}build(t,n,r){ea(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){ep(t,n,r,i)}mount(t){this.isSVGTag=na(t.tagName),super.mount(t)}}const np=(e,t)=>t.isSVG??Wr(e)?new tp(t):new Jh(t,{allowProjection:e!==D.Fragment});function xt(e,t,n){const r=e.getProps();return qr(r,t,n!==void 0?n:r.custom,e)}const ei=e=>Array.isArray(e);function rp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dt(n))}function ip(e){return ei(e)?e[e.length-1]||0:e}function op(e,t){const n=xt(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=ip(o[s]);rp(e,s,a)}}function sp(e){return!!(fe(e)&&e.add)}function ti(e,t){const n=e.getValue("willChange");if(sp(n))return n.add(t);if(!n&&_e.WillChange){const r=new _e.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ea(e){return e.props[aa]}const ap=e=>e!==null;function lp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(ap),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const up={type:"spring",stiffness:500,damping:25,restSpeed:10},cp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fp={type:"keyframes",duration:.8},dp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hp=(e,{keyframes:t})=>t.length>2?fp:ft.has(e)?e.startsWith("scale")?cp(t[1]):up:dp;function pp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ni=(e,t,n,r={},i,o)=>s=>{const a=Lr(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-De(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};pp(a)||Object.assign(c,hp(e,c)),c.duration&&(c.duration=De(c.duration)),c.repeatDelay&&(c.repeatDelay=De(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Nr(c),c.delay===0&&(f=!0)),(_e.instantAnimations||_e.skipAnimations)&&(f=!0,Nr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const h=lp(c.keyframes,a);if(h!==void 0){ne.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new Tr(c):new Bd(c)};function mp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Pa(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=t;r&&(o=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),h=a[c];if(h===void 0||u&&mp(u,c))continue;const d={delay:n,...Lr(o||{},c)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===m&&!d.velocity)continue;let k=!1;if(window.MotionHandoffAnimation){const x=Ea(e);if(x){const S=window.MotionHandoffAnimation(x,c,ne);S!==null&&(d.startTime=S,k=!0)}}ti(e,c),f.start(ni(c,f,h,e.shouldReduceMotion&&Is.has(c)?{type:!1}:d,e,k));const b=f.animation;b&&l.push(b)}return s&&Promise.all(l).then(()=>{ne.update(()=>{s&&op(e,s)})}),l}function Aa(e,t,n,r=0,i=1){const o=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),s=e.size,a=(s-1)*r;return typeof n=="function"?n(o,s):i===1?o*r:a-o*r}function ri(e,t,n={}){const r=xt(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Pa(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return gp(e,t,l,u,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function gp(e,t,n=0,r=0,i=0,o=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ri(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Aa(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function yp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ri(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ri(e,t,n);else{const i=typeof t=="function"?xt(e,t,n.custom):t;r=Promise.all(Pa(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ia(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const xp=_r.length;function Da(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Da(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<xp;n++){const r=_r[n],i=e.props[r];(_t(i)||i===!1)&&(t[r]=i)}return t}const bp=[...zr].reverse(),vp=zr.length;function wp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>yp(e,n,r)))}function kp(e){let t=wp(e),n=ja(),r=!0;const i=l=>(u,c)=>{const f=xt(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:d,...m}=f;u={...u,...m,...d}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Da(e.parent)||{},f=[],h=new Set;let d={},m=1/0;for(let b=0;b<vp;b++){const x=bp[b],S=n[x],v=u[x]!==void 0?u[x]:c[x],E=_t(v),P=x===l?S.isActive:null;P===!1&&(m=b);let w=v===c[x]&&v!==u[x]&&E;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),S.protectedKeys={...d},!S.isActive&&P===null||!v&&!S.prevProp||vn(v)||typeof v=="boolean")continue;const N=Sp(S.prevProp,v);let M=N||x===l&&S.isActive&&!w&&E||b>m&&E,F=!1;const O=Array.isArray(v)?v:[v];let R=O.reduce(i(x),{});P===!1&&(R={});const{prevResolvedValues:V={}}=S,K={...V,...R},B=W=>{M=!0,h.has(W)&&(F=!0,h.delete(W)),S.needsAnimating[W]=!0;const Q=e.getValue(W);Q&&(Q.liveStyle=!1)};for(const W in K){const Q=R[W],le=V[W];if(d.hasOwnProperty(W))continue;let y=!1;ei(Q)&&ei(le)?y=!Ia(Q,le):y=Q!==le,y?Q!=null?B(W):h.add(W):Q!==void 0&&h.has(W)?B(W):S.protectedKeys[W]=!0}S.prevProp=v,S.prevResolvedValues=R,S.isActive&&(d={...d,...R}),r&&e.blockInitialAnimation&&(M=!1);const j=w&&N;M&&(!j||F)&&f.push(...O.map(W=>{const Q={type:x};if(typeof W=="string"&&r&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:le}=e,y=xt(le,W);if(le.enteringChildren&&y){const{delayChildren:C}=y.transition||{};Q.delay=Aa(le.enteringChildren,e,C)}}return{animation:W,options:Q}}))}if(h.size){const b={};if(typeof u.initial!="boolean"){const x=xt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(b.transition=x.transition)}h.forEach(x=>{const S=e.getBaseTarget(x),v=e.getValue(x);v&&(v.liveStyle=!0),b[x]=S??null}),f.push({animation:b})}let k=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,k?t(f):Promise.resolve()}function a(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(l,u)),n[l].isActive=u;const c=s(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ja()}}}function Sp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ia(t,e):!1}function nt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ja(){return{animate:nt(!0),whileInView:nt(),whileHover:nt(),whileTap:nt(),whileDrag:nt(),whileFocus:nt(),exit:nt()}}class Ge{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Tp extends Ge{constructor(t){super(t),t.animationState||(t.animationState=kp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vn(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Cp=0;class Ep extends Ge{constructor(){super(...arguments),this.id=Cp++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Pp={animation:{Feature:Tp},exit:{Feature:Ep}};function Ut(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ht(e){return{point:{x:e.pageX,y:e.pageY}}}const Ap=e=>t=>Fr(t)&&e(t,Ht(t));function Wt(e,t,n,r){return Ut(e,t,Ap(n),r)}const Ma=1e-4,Ip=1-Ma,Dp=1+Ma,Na=.01,jp=0-Na,Mp=0+Na;function pe(e){return e.max-e.min}function Np(e,t,n){return Math.abs(e-t)<=n}function La(e,t,n,r=.5){e.origin=r,e.originPoint=re(t.min,t.max,e.origin),e.scale=pe(n)/pe(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ip&&e.scale<=Dp||isNaN(e.scale))&&(e.scale=1),(e.translate>=jp&&e.translate<=Mp||isNaN(e.translate))&&(e.translate=0)}function qt(e,t,n,r){La(e.x,t.x,n.x,r?r.originX:void 0),La(e.y,t.y,n.y,r?r.originY:void 0)}function Ra(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function Lp(e,t,n){Ra(e.x,t.x,n.x),Ra(e.y,t.y,n.y)}function Va(e,t,n){e.min=t.min-n.min,e.max=e.min+pe(t)}function Tn(e,t,n){Va(e.x,t.x,n.x),Va(e.y,t.y,n.y)}function Pe(e){return[e("x"),e("y")]}const Oa=({current:e})=>e?e.ownerDocument.defaultView:null,Fa=(e,t)=>Math.abs(e-t);function Rp(e,t){const n=Fa(e.x,t.x),r=Fa(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ba{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=oi(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=Rp(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!m)return;const{point:k}=h,{timestamp:b}=ce;this.history.push({...k,timestamp:b});const{onStart:x,onMove:S}=this.handlers;d||(x&&x(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ii(d,this.transformPagePoint),ne.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:m,onSessionEnd:k,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=oi(h.type==="pointercancel"?this.lastMoveEventInfo:ii(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,x),k&&k(h,x)},!Fr(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=Ht(t),l=ii(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ce;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,oi(l,this.history)),this.removeListeners=Nt(Wt(this.contextWindow,"pointermove",this.handlePointerMove),Wt(this.contextWindow,"pointerup",this.handlePointerUp),Wt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),He(this.updatePoint)}}function ii(e,t){return t?{point:t(e.point)}:e}function za(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oi({point:e},t){return{point:e,delta:za(e,_a(t)),offset:za(e,Vp(t)),velocity:Op(t,.1)}}function Vp(e){return e[0]}function _a(e){return e[e.length-1]}function Op(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_a(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const o=Ee(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Fp(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?re(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?re(n,e,r.max):Math.min(e,n)),e}function $a(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Bp(e,{top:t,left:n,bottom:r,right:i}){return{x:$a(e.x,n,i),y:$a(e.y,t,r)}}function Ua(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function zp(e,t){return{x:Ua(e.x,t.x),y:Ua(e.y,t.y)}}function _p(e,t){let n=.5;const r=pe(e),i=pe(t);return i>r?n=Lt(t.min,t.max-r,e.min):r>i&&(n=Lt(e.min,e.max-i,t.min)),Be(0,1,n)}function $p(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const si=.35;function Up(e=si){return e===!1?e=0:e===!0&&(e=si),{x:Ha(e,"left","right"),y:Ha(e,"top","bottom")}}function Ha(e,t,n){return{min:Wa(e,t),max:Wa(e,n)}}function Wa(e,t){return typeof e=="number"?e:e[t]||0}const Hp=new WeakMap;class Wp{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=ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ht(f).point)},s=(f,h)=>{const{drag:d,dragPropagation:m,onDragStart:k}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nh(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pe(x=>{let S=this.getAxisMotionValue(x).get()||0;if(Le.test(S)){const{projection:v}=this.visualElement;if(v&&v.layout){const E=v.layout.layoutBox[x];E&&(S=pe(E)*(parseFloat(S)/100))}}this.originPoint[x]=S}),k&&ne.postRender(()=>k(f,h)),ti(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:k,onDrag:b}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:x}=h;if(m&&this.currentDirection===null){this.currentDirection=qp(x),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),b&&b(f,h)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Pe(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ba(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Oa(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&ne.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Cn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Fp(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&pt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Bp(r.layoutBox,t):this.constraints=!1,this.elastic=Up(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Pe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=$p(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!pt(t))return!1;const r=t.current;ze(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Gh(r,i.root,this.visualElement.getTransformPagePoint());let s=zp(i.layout.layoutBox,o);if(n){const a=n(Hh(s));this.hasMutatedConstraints=!!a,a&&(s=ca(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Pe(c=>{if(!Cn(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ti(this.visualElement,t),r.start(ni(t,r,0,n,this.visualElement,!1))}stopAnimation(){Pe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pe(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Pe(n=>{const{drag:r}=this.getProps();if(!Cn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-re(s,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Pe(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=_p({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Pe(s=>{if(!Cn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(re(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;Hp.set(this.visualElement,this);const t=this.visualElement.current,n=Wt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();pt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ne.read(r);const s=Ut(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pe(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=si,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Cn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function qp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Gp extends Ge{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Wp(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const qa=e=>(t,n)=>{e&&ne.postRender(()=>e(t,n))};class Yp extends Ge{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new Ba(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Oa(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:qa(t),onStart:qa(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&ne.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Wt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const En={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let ai=!1;class Kp extends D.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),ai&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),En.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,ai=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||ne.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Or.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;ai=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ga(e){const[t,n]=fh(),r=D.useContext(No);return g.jsx(Kp,{...e,layoutGroup:r,switchLayoutGroup:D.useContext(la),isPresent:t,safeToRemove:n})}function Xp(e,t,n){const r=fe(e)?e:dt(e);return r.start(ni("",r,t,n)),r.animation}const Qp=(e,t)=>e.depth-t.depth;class Zp{constructor(){this.children=[],this.isDirty=!1}add(t){er(this.children,t),this.isDirty=!0}remove(t){tr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Qp),this.isDirty=!1,this.children.forEach(t)}}function Jp(e,t){const n=ye.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(He(r),e(o-t))};return ne.setup(r,!0),()=>He(r)}const Ya=["TopLeft","TopRight","BottomLeft","BottomRight"],em=Ya.length,Ka=e=>typeof e=="string"?parseFloat(e):e,Xa=e=>typeof e=="number"||L.test(e);function tm(e,t,n,r,i,o){i?(e.opacity=re(0,n.opacity??1,nm(r)),e.opacityExit=re(t.opacity??1,0,rm(r))):o&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<em;s++){const a=`border${Ya[s]}Radius`;let l=Qa(t,a),u=Qa(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Xa(l)===Xa(u)?(e[a]=Math.max(re(Ka(l),Ka(u),r),0),(Le.test(u)||Le.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function Qa(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const nm=Za(0,.5,Wo),rm=Za(.5,.95,Ce);function Za(e,t,n){return r=>r<e?0:r>t?1:n(Lt(e,t,r))}function Ja(e,t){e.min=t.min,e.max=t.max}function Me(e,t){Ja(e.x,t.x),Ja(e.y,t.y)}function el(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function tl(e,t,n,r,i){return e-=t,e=Sn(e,1/n,r),i!==void 0&&(e=Sn(e,1/i,r)),e}function im(e,t=0,n=1,r=.5,i,o=e,s=e){if(Le.test(t)&&(t=parseFloat(t),t=re(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=re(o.min,o.max,r);e===o&&(a-=t),e.min=tl(e.min,t,n,a,i),e.max=tl(e.max,t,n,a,i)}function nl(e,t,[n,r,i],o,s){im(e,t[n],t[r],t[i],t.scale,o,s)}const om=["x","scaleX","originX"],sm=["y","scaleY","originY"];function rl(e,t,n,r){nl(e.x,t,om,n?n.x:void 0,r?r.x:void 0),nl(e.y,t,sm,n?n.y:void 0,r?r.y:void 0)}function il(e){return e.translate===0&&e.scale===1}function ol(e){return il(e.x)&&il(e.y)}function sl(e,t){return e.min===t.min&&e.max===t.max}function am(e,t){return sl(e.x,t.x)&&sl(e.y,t.y)}function al(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ll(e,t){return al(e.x,t.x)&&al(e.y,t.y)}function ul(e){return pe(e.x)/pe(e.y)}function cl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class lm{constructor(){this.members=[]}add(t){er(this.members,t),t.scheduleRender()}remove(t){if(tr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function um(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:h,skewX:d,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),d&&(r+=`skewX(${d}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const li=["","X","Y","Z"],cm=1e3;let fm=0;function ui(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ea(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ne,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fl(r)}function dl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=fm++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(pm),this.nodes.forEach(xm),this.nodes.forEach(bm),this.nodes.forEach(mm)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ir),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Hs(s)&&!lh(s),this.instance=s;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;ne.read(()=>{f=window.innerWidth}),e(s,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c&&c(),c=Jp(h,250),En.hasAnimatedSinceResize&&(En.hasAnimatedSinceResize=!1,this.nodes.forEach(ml)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Tm,{onLayoutAnimationStart:k,onLayoutAnimationComplete:b}=u.getProps(),x=!this.targetLayout||!ll(this.targetLayout,d),S=!f&&h;if(this.options.layoutRoot||this.resumeFrom||S||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Lr(m,"layout"),onPlay:k,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,S)}else f||ml(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),He(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(vm),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(pl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ym),this.nodes.forEach(dm),this.nodes.forEach(hm)):this.nodes.forEach(pl),this.clearAllSnapshots();const a=ye.now();ce.delta=Be(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,lr.update.process(ce),lr.preRender.process(ce),lr.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Or.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gm),this.sharedNodes.forEach(wm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pe(this.snapshot.measuredBox.x)&&!pe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ol(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&this.instance&&(a||tt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Cm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ue();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Em))){const{scroll:u}=this.root;u&&(mt(a.x,u.offset.x),mt(a.y,u.offset.y))}return a}removeElementScroll(s){const a=ue();if(Me(a,s),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;u!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Me(a,s),mt(a.x,c.offset.x),mt(a.y,c.offset.y))}return a}applyTransform(s,a=!1){const l=ue();Me(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&gt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),tt(c.latestValues)&&gt(l,c.latestValues)}return tt(this.latestValues)&&gt(l,this.latestValues),l}removeTransform(s){const a=ue();Me(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!tt(u.latestValues))continue;Qr(u.latestValues)&&u.updateSnapshot();const c=ue(),f=u.measurePageBox();Me(c,f),rl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return tt(this.latestValues)&&rl(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==ce.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=ce.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ue(),this.targetWithTransforms=ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Lp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),pa(this.target,this.targetDelta)):Me(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Qr(this.parent.latestValues)||fa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(s,a,l){this.relativeParent=s,this.linkedParentVersion=s.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ue(),this.relativeTargetOrigin=ue(),Tn(this.relativeTargetOrigin,a,l),Me(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const s=this.getLead(),a=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ce.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Me(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;qh(this.layoutCorrected,this.treeScale,this.path,a),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=ue());const{target:d}=s;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(el(this.prevProjectionDelta.x,this.projectionDelta.x),el(this.prevProjectionDelta.y,this.projectionDelta.y)),qt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!cl(this.projectionDelta.x,this.prevProjectionDelta.x)||!cl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yt(),this.projectionDelta=yt(),this.projectionDeltaWithTransform=yt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=yt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ue(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,k=d!==m,b=this.getStack(),x=!b||b.members.length<=1,S=!!(k&&!x&&this.options.crossfade===!0&&!this.path.some(Sm));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const P=E/1e3;gl(f.x,s.x,P),gl(f.y,s.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),km(this.relativeTarget,this.relativeTargetOrigin,h,P),v&&am(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ue()),Me(v,this.relativeTarget)),k&&(this.animationValues=c,tm(c,u,this.latestValues,P,S,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(He(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ne.update(()=>{En.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dt(0)),this.currentAnimation=Xp(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(cm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&wl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ue();const f=pe(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const h=pe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Me(a,l),gt(a,c),qt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new lm),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&ui("z",s,u,this.animationValues);for(let c=0;c<li.length;c++)ui(`rotate${li[c]}`,s,u,this.animationValues),ui(`skew${li[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}applyProjectionStyles(s,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=kn(a?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=kn(a?.pointerEvents)||""),this.hasProjected&&!tt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=um(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),s.transform=f;const{x:h,y:d}=this.projectionDelta;s.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?s.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:s.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in $r){if(c[m]===void 0)continue;const{correct:k,applyTo:b,isCSSVariable:x}=$r[m],S=f==="none"?c[m]:k(c[m],u);if(b){const v=b.length;for(let E=0;E<v;E++)s[b[E]]=S}else x?this.options.visualElement.renderState.vars[m]=S:s[m]=S}this.options.layoutId&&(s.pointerEvents=u===this?kn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(hl),this.root.sharedNodes.clear()}}}function dm(e){e.updateLayout()}function hm(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Pe(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],h=pe(f);f.min=n[c].min,f.max=f.min+h}):wl(i,t.layoutBox,n)&&Pe(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],h=pe(n[c]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+h)});const s=yt();qt(s,n,t.layoutBox);const a=yt();o?qt(a,e.applyTransform(r,!0),t.measuredBox):qt(a,n,t.layoutBox);const l=!ol(s);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:h}=c;if(f&&h){const d=ue();Tn(d,t.layoutBox,f.layoutBox);const m=ue();Tn(m,n,h.layoutBox),ll(d,m)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=d,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function pm(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gm(e){e.clearSnapshot()}function hl(e){e.clearMeasurements()}function pl(e){e.isLayoutDirty=!1}function ym(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ml(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xm(e){e.resolveTargetDelta()}function bm(e){e.calcProjection()}function vm(e){e.resetSkewAndRotation()}function wm(e){e.removeLeadSnapshot()}function gl(e,t,n){e.translate=re(t.translate,0,n),e.scale=re(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function yl(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function km(e,t,n,r){yl(e.x,t.x,n.x,r),yl(e.y,t.y,n.y,r)}function Sm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Tm={duration:.45,ease:[.4,0,.1,1]},xl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bl=xl("applewebkit/")&&!xl("chrome/")?Math.round:Ce;function vl(e){e.min=bl(e.min),e.max=bl(e.max)}function Cm(e){vl(e.x),vl(e.y)}function wl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Np(ul(t),ul(n),.2)}function Em(e){return e!==e.root&&e.scroll?.wasRoot}const Pm=dl({attachResizeListener:(e,t)=>Ut(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ci={current:void 0},kl=dl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ci.current){const e=new Pm({});e.mount(window),e.setOptions({layoutScroll:!0}),ci.current=e}return ci.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Am={pan:{Feature:Yp},drag:{Feature:Gp,ProjectionNode:kl,MeasureLayout:Ga}};function Sl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&ne.postRender(()=>o(t,Ht(t)))}class Im extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=rh(t,(n,r)=>(Sl(this.node,r,"Start"),i=>Sl(this.node,i,"End"))))}unmount(){}}class Dm extends Ge{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=Nt(Ut(this.node.current,"focus",()=>this.onFocus()),Ut(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Tl(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ne.postRender(()=>o(t,Ht(t)))}class jm extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=ah(t,(n,r)=>(Tl(this.node,r,"Start"),(i,{success:o})=>Tl(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fi=new WeakMap,di=new WeakMap,Mm=e=>{const t=fi.get(e.target);t&&t(e)},Nm=e=>{e.forEach(Mm)};function Lm({root:e,...t}){const n=e||document;di.has(n)||di.set(n,{});const r=di.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Nm,{root:e,...t})),r[i]}function Rm(e,t,n){const r=Lm(t);return fi.set(e,n),r.observe(e),()=>{fi.delete(e),r.unobserve(e)}}const Vm={some:0,all:1};class Om extends Ge{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Vm[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=u?c:f;h&&h(l)};return Rm(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Fm(t,n))&&this.startObserver()}unmount(){}}function Fm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Bm={...Pp,...{inView:{Feature:Om},tap:{Feature:jm},focus:{Feature:Dm},hover:{Feature:Im}},...Am,...{layout:{ProjectionNode:kl,MeasureLayout:Ga}}},we=Uh(Bm,np),Cl=e=>{const{title:t,href:n,description:r,icon:i,badge:o,isActive:s=!1,className:a="",showDescription:l=!0,onClick:u,target:c="_self",compact:f=!1}=e,h=["menu-item",s?"active":"",f?"compact":"",!r||!l?"no-description":"",a].filter(Boolean).join(" ");return g.jsxs(we.a,{href:n,target:c,onClick:u,className:h,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&g.jsx(we.div,{className:"menu-item-icon",whileHover:{rotate:5},children:g.jsx(he,{icon:i})}),g.jsxs("div",{className:"menu-item-content",children:[g.jsxs("div",{className:"menu-item-header",children:[g.jsx("span",{className:"menu-item-title",children:t}),o&&g.jsx(we.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:o})]}),r&&l&&g.jsx(we.p,{className:"menu-item-description",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:r})]})]})},El=e=>{const{children:t,columns:n=3,className:r="",gridClassName:i=""}=e,o=`menu-grid columns-${n} ${i}`;return g.jsx("div",{className:`menu-grid-container ${r}`,children:g.jsx("div",{className:o,children:t})})},Pl=e=>{const{title:t,description:n,href:r,icon:i,badge:o,compact:s=!1,showDescription:a=!0,className:l=""}=e,u=`menu-grid-item ${s?"compact":"regular"} ${l}`;return g.jsx(we.div,{className:`${u} hover-lift`,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},whileHover:{scale:1.02},whileTap:{scale:.98},children:r.startsWith("http")?g.jsxs("a",{href:r,className:"menu-grid-link",target:"_blank",rel:"noopener noreferrer",children:[o&&g.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),g.jsxs("div",{className:"menu-grid-header",children:[i&&g.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:g.jsx(he,{icon:i})}),g.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&g.jsx("span",{className:"menu-grid-description",children:n})]}):g.jsxs(Bn.Link,{to:r,className:"menu-grid-link",children:[o&&g.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),g.jsxs("div",{className:"menu-grid-header",children:[i&&g.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:g.jsx(he,{icon:i})}),g.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&g.jsx("span",{className:"menu-grid-description",children:n})]})})},Al=({title:e,subtitle:t,imageSrc:n,actionLabel:r,href:i,textAlignment:o="left",padding:s="none",className:a="",inverted:l=!1,focalPoint:u="center"})=>{const c={top:"center top",left:"left center",right:"right center",bottom:"center bottom",center:"center center"},f=n?{backgroundImage:`url(${n})`,backgroundPosition:c[u]}:{},h={left:"text-left items-start",center:"text-center items-center",right:"text-right items-end",justify:"text-justify"}[o],d={none:"p-none",small:"p-small",medium:"p-medium",large:"p-large"}[s];return g.jsxs(we.div,{className:`hero-image relative ${a} ${l?"theme-inverted":""}`,style:f,initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},transition:{duration:1.5,ease:"easeOut"},"data-theme":"light",children:[g.jsx("div",{className:"hero-overlay"}),g.jsxs("div",{className:`hero-text ${h} ${d}`,children:[g.jsx(we.div,{className:"hero-text-primary hero-title",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3,ease:"easeOut"},children:e}),t&&g.jsx(we.div,{className:"hero-text-primary hero-subtitle",initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.5,ease:"easeOut"},children:t}),r&&g.jsx("div",{className:"hero-actions",children:g.jsx(we.a,{className:"btn hero-btn-primary hover-lift active-scale",href:i,initial:{opacity:0,y:20},animate:{opacity:1,y:0},whileHover:{scale:1.05},transition:{duration:.6,delay:.7,ease:"easeOut"},children:r})})]})]})},Il=D.createContext(void 0),zm=()=>{const e=D.useContext(Il);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},_m=({children:e})=>{const[t,n]=D.useState(null);return g.jsx(Il.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},hi=e=>{const{title:t,icon:n,iconPosition:r="left",iconSize:i="1.2rem",iconColor:o="currentColor",className:s="",itemGroupClassName:a="",children:l,href:u,id:c=t||n||"dropdown",target:f="_self"}=e,h=jo({breakpoint:768}),{activeDropdown:d,setActiveDropdown:m}=zm(),[k,b]=D.useState(!1),x=D.useRef(null),S=D.useRef(null),v=d===c,E=h?v:v||k;D.useEffect(()=>{const O=R=>{S.current&&!S.current.contains(R.target)&&(b(!1),d===c&&m(null))};return E&&!h&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)}},[E,h,d,c,m]);const P=O=>{h&&(O.preventDefault(),m(v?null:c)),u&&h&&!v&&O.preventDefault()},w=()=>{h||(b(!0),m(c))},N=()=>{h||setTimeout(()=>{const O=x.current?.matches(":hover"),R=S.current?.matches(":hover");!O&&!R&&(b(!1),m(null))},100)},M=()=>{h||(b(!0),m(c))},F=()=>{h||(b(!1),m(null))};return g.jsxs("div",{ref:S,className:"menu",onMouseEnter:w,onMouseLeave:N,children:[(t||n)&&g.jsx(g.Fragment,{children:u?g.jsxs("a",{href:u,onClick:P,className:`menu-title ${s} ${v?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":E,children:[n&&r==="left"&&g.jsx(he,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&g.jsx("span",{children:t}),n&&r==="right"&&g.jsx(he,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&g.jsx("span",{className:"arrow",children:E?"▲":"▼"})]}):g.jsxs("button",{onClick:P,className:`menu-title ${s} ${v?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":E,children:[n&&r==="left"&&g.jsx(he,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&g.jsx("span",{children:t}),n&&r==="right"&&g.jsx(he,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&g.jsx("span",{className:"arrow",children:E?"▲":"▼"})]})}),g.jsx("div",{ref:x,className:`menu-dropdown ${a} ${E?"show":""}`,onMouseEnter:M,onMouseLeave:F,children:l})]})},Dl=e=>{const{icon:t,onClick:n,ariaLabel:r,className:i="",badge:o,active:s=!1,children:a}=e;return a?g.jsx(hi,{icon:t,className:`utility-button ${s?"active":""} ${i}`,id:r||t,children:a}):g.jsxs("button",{className:`utility-button ${s?"active":""} ${i}`,onClick:n,"aria-label":r,type:"button",children:[g.jsx(he,{icon:t,className:"icon-button-icon"}),o&&g.jsx("span",{className:"icon-button-badge",children:o})]})};function Bb(){}function zb(){}function $m(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Um=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wm={};function jl(e,t){return(Wm.jsx?Hm:Um).test(e)}const qm=/[ \t\n\f\r]/g;function Gm(e){return typeof e=="object"?e.type==="text"?Ml(e.value):!1:Ml(e)}function Ml(e){return e.replace(qm,"")===""}class Gt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Gt.prototype.normal={},Gt.prototype.property={},Gt.prototype.space=void 0;function Nl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Gt(n,r,t)}function pi(e){return e.toLowerCase()}class xe{constructor(t,n){this.attribute=n,this.property=t}}xe.prototype.attribute="",xe.prototype.booleanish=!1,xe.prototype.boolean=!1,xe.prototype.commaOrSpaceSeparated=!1,xe.prototype.commaSeparated=!1,xe.prototype.defined=!1,xe.prototype.mustUseProperty=!1,xe.prototype.number=!1,xe.prototype.overloadedBoolean=!1,xe.prototype.property="",xe.prototype.spaceSeparated=!1,xe.prototype.space=void 0;let Ym=0;const H=rt(),ae=rt(),mi=rt(),A=rt(),J=rt(),bt=rt(),ke=rt();function rt(){return 2**++Ym}const gi=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:ae,commaOrSpaceSeparated:ke,commaSeparated:bt,number:A,overloadedBoolean:mi,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),yi=Object.keys(gi);class xi extends xe{constructor(t,n,r,i){let o=-1;if(super(t,n),Ll(this,"space",i),typeof r=="number")for(;++o<yi.length;){const s=yi[o];Ll(this,yi[o],(r&gi[s])===gi[s])}}}xi.prototype.defined=!0;function Ll(e,t,n){n&&(e[t]=n)}function vt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new xi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[pi(r)]=r,n[pi(o.attribute)]=r}return new Gt(t,n,e.space)}const Rl=vt({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ae,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ae,ariaFlowTo:J,ariaGrabbed:ae,ariaHasPopup:null,ariaHidden:ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:A,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:J,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:ae,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Vl(e,t){return t in e?e[t]:t}function Ol(e,t){return Vl(e,t.toLowerCase())}const Km=vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bt,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:J,autoFocus:H,autoPlay:H,blocking:J,capture:null,charSet:null,checked:H,cite:null,className:J,cols:A,colSpan:null,content:null,contentEditable:ae,controls:H,controlsList:J,coords:A|bt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:mi,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:J,height:A,hidden:mi,high:A,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:J,itemRef:J,itemScope:H,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:A,pattern:null,ping:J,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:J,required:H,reversed:H,rows:A,rowSpan:A,sandbox:J,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:ae,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:Ol}),Xm=vt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ke,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bt,g2:bt,glyphName:bt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ke,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ke,rev:ke,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ke,requiredFeatures:ke,requiredFonts:ke,requiredFormats:ke,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ke,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ke,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vl}),Fl=vt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Bl=vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ol}),zl=vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Qm={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Zm=/[A-Z]/g,_l=/-[a-z]/g,Jm=/^data[-\w.:]+$/i;function eg(e,t){const n=pi(t);let r=t,i=xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Jm.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(_l,ng);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!_l.test(o)){let s=o.replace(Zm,tg);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=xi}return new i(r,t)}function tg(e){return"-"+e.toLowerCase()}function ng(e){return e.charAt(1).toUpperCase()}const rg=Nl([Rl,Km,Fl,Bl,zl],"html"),bi=Nl([Rl,Xm,Fl,Bl,zl],"svg");function ig(e){return e.join(" ").trim()}var wt={},vi,$l;function og(){if($l)return vi;$l=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
8
+ `,u="/",c="*",f="",h="comment",d="declaration";function m(b,x){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];x=x||{};var S=1,v=1;function E(B){var j=B.match(t);j&&(S+=j.length);var G=B.lastIndexOf(l);v=~G?B.length-G:v+B.length}function P(){var B={line:S,column:v};return function(j){return j.position=new w(B),F(),j}}function w(B){this.start=B,this.end={line:S,column:v},this.source=x.source}w.prototype.content=b;function N(B){var j=new Error(x.source+":"+S+":"+v+": "+B);if(j.reason=B,j.filename=x.source,j.line=S,j.column=v,j.source=b,!x.silent)throw j}function M(B){var j=B.exec(b);if(j){var G=j[0];return E(G),b=b.slice(G.length),j}}function F(){M(n)}function O(B){var j;for(B=B||[];j=R();)j!==!1&&B.push(j);return B}function R(){var B=P();if(!(u!=b.charAt(0)||c!=b.charAt(1))){for(var j=2;f!=b.charAt(j)&&(c!=b.charAt(j)||u!=b.charAt(j+1));)++j;if(j+=2,f===b.charAt(j-1))return N("End of comment missing");var G=b.slice(2,j-2);return v+=2,E(G),b=b.slice(j),v+=2,B({type:h,comment:G})}}function V(){var B=P(),j=M(r);if(j){if(R(),!M(i))return N("property missing ':'");var G=M(o),W=B({type:d,property:k(j[0].replace(e,f)),value:G?k(G[0].replace(e,f)):f});return M(s),W}}function K(){var B=[];O(B);for(var j;j=V();)j!==!1&&(B.push(j),O(B));return B}return F(),K()}function k(b){return b?b.replace(a,f):f}return vi=m,vi}var Ul;function sg(){if(Ul)return wt;Ul=1;var e=wt&&wt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=n;const t=e(og());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const s=(0,t.default)(r),a=typeof i=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;a?i(u,c,l):c&&(o=o||{},o[u]=c)}),o}return wt}var Yt={},Hl;function ag(){if(Hl)return Yt;Hl=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},s=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),o(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,s))};return Yt.camelCase=l,Yt}var Kt,Wl;function lg(){if(Wl)return Kt;Wl=1;var e=Kt&&Kt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(sg()),n=ag();function r(i,o){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(a,l){a&&l&&(s[(0,n.camelCase)(a,o)]=l)}),s}return r.default=r,Kt=r,Kt}var ug=lg();const cg=to(ug),ql=Gl("end"),wi=Gl("start");function Gl(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fg(e){const t=wi(e),n=ql(e);if(t&&n)return{start:t,end:n}}function Xt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yl(e.position):"start"in e||"end"in e?Yl(e):"line"in e||"column"in e?ki(e):""}function ki(e){return Kl(e&&e.line)+":"+Kl(e&&e.column)}function Yl(e){return ki(e&&e.start)+"-"+ki(e&&e.end)}function Kl(e){return e&&typeof e=="number"?e:1}class de extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Xt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}de.prototype.file="",de.prototype.name="",de.prototype.reason="",de.prototype.message="",de.prototype.stack="",de.prototype.column=void 0,de.prototype.line=void 0,de.prototype.ancestors=void 0,de.prototype.cause=void 0,de.prototype.fatal=void 0,de.prototype.place=void 0,de.prototype.ruleId=void 0,de.prototype.source=void 0;const Si={}.hasOwnProperty,dg=new Map,hg=/[A-Z]/g,pg=new Set(["table","tbody","thead","tfoot","tr"]),mg=new Set(["td","th"]),Xl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gg(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Tg(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Sg(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?bi:rg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ql(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Ql(e,t,n){if(t.type==="element")return yg(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xg(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return vg(e,t,n);if(t.type==="mdxjsEsm")return bg(e,t);if(t.type==="root")return wg(e,t,n);if(t.type==="text")return kg(e,t)}function yg(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=bi,e.schema=i),e.ancestors.push(t);const o=Jl(e,t.tagName,!1),s=Cg(e,t);let a=Ci(e,t);return pg.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Gm(l):!0})),Zl(e,s,o,t),Ti(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function xg(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Qt(e,t.position)}function bg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qt(e,t.position)}function vg(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=bi,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Jl(e,t.name,!0),s=Eg(e,t),a=Ci(e,t);return Zl(e,s,o,t),Ti(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function wg(e,t,n){const r={};return Ti(r,Ci(e,t)),e.create(t,e.Fragment,r,n)}function kg(e,t){return t.value}function Zl(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ti(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Sg(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function Tg(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=wi(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Cg(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Si.call(t.properties,i)){const o=Pg(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&mg.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Eg(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Qt(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Qt(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Ci(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:dg;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=Ql(e,o,s);a!==void 0&&n.push(a)}return n}function Pg(e,t,n){const r=eg(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?$m(n):ig(n)),r.property==="style"){let i=typeof n=="object"?n:Ag(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Ig(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Qm[r.property]||r.property:r.attribute,n]}}function Ag(e,t){try{return cg(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new de("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Xl+"#cannot-parse-style-attribute",i}}function Jl(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=jl(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=jl(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Si.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qt(e)}function Qt(e,t){const n=new de("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Xl+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ig(e){const t={};let n;for(n in e)Si.call(e,n)&&(t[Dg(n)]=e[n]);return t}function Dg(e){let t=e.replace(hg,jg);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function jg(e){return"-"+e.toLowerCase()}const Ei={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Mg={};function Ng(e,t){const n=Mg,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return eu(e,r,i)}function eu(e,t,n){if(Lg(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tu(e.children,t,n)}return Array.isArray(e)?tu(e,t,n):""}function tu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=eu(e[i],t,n);return r.join("")}function Lg(e){return!!(e&&typeof e=="object")}const nu=document.createElement("i");function Pi(e){const t="&"+e+";";nu.innerHTML=t;const n=nu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Re(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Ae(e,t){return e.length>0?(Re(e,e.length,0,t),e):t}const ru={}.hasOwnProperty;function Rg(e){const t={};let n=-1;for(;++n<e.length;)Vg(t,e[n]);return t}function Vg(e,t){let n;for(n in t){const i=(ru.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){ru.call(i,s)||(i[s]=[]);const a=o[s];Og(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Og(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Re(e,0,0,r)}function iu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function kt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ve=Ye(/[A-Za-z]/),Se=Ye(/[\dA-Za-z]/),Fg=Ye(/[#-'*+\--9=?A-Z^-~]/);function Ai(e){return e!==null&&(e<32||e===127)}const Ii=Ye(/\d/),Bg=Ye(/[\dA-Fa-f]/),zg=Ye(/[!-/:-@[-`{-~]/);function _(e){return e!==null&&e<-2}function be(e){return e!==null&&(e<0||e===32)}function Y(e){return e===-2||e===-1||e===32}const _g=Ye(new RegExp("\\p{P}|\\p{S}","u")),$g=Ye(/\s/);function Ye(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function St(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Se(e.charCodeAt(n+1))&&Se(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ee(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return Y(l)?(e.enter(n),a(l)):t(l)}function a(l){return Y(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const Ug={tokenize:Hg};function Hg(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ee(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return _(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const Wg={tokenize:qg},ou={tokenize:Gg};function qg(e){const t=this,n=[];let r=0,i,o,s;return a;function a(v){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const E=t.events.length;let P=E,w;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){w=t.events[P][1].end;break}x(r);let N=E;for(;N<t.events.length;)t.events[N][1].end={...w},N++;return Re(t.events,P+1,0,t.events.slice(E)),t.events.length=N,u(v)}return a(v)}function u(v){if(r===n.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return m(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ou,c,f)(v)}function c(v){return i&&S(),x(r),h(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(v)}function h(v){return t.containerState={},e.attempt(ou,d,m)(v)}function d(v){return r++,n.push([t.currentConstruct,t.containerState]),h(v)}function m(v){if(v===null){i&&S(),x(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(v)}function k(v){if(v===null){b(e.exit("chunkFlow"),!0),x(0),e.consume(v);return}return _(v)?(e.consume(v),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),k)}function b(v,E){const P=t.sliceStream(v);if(E&&P.push(null),v.previous=o,o&&(o.next=v),o=v,i.defineSkip(v.start),i.write(P),t.parser.lazy[v.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<s&&(!i.events[w][1].end||i.events[w][1].end.offset>s))return;const N=t.events.length;let M=N,F,O;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(F){O=t.events[M][1].end;break}F=!0}for(x(r),w=N;w<t.events.length;)t.events[w][1].end={...O},w++;Re(t.events,M+1,0,t.events.slice(N)),t.events.length=w}}function x(v){let E=n.length;for(;E-- >v;){const P=n[E];t.containerState=P[1],P[0].exit.call(t,e)}n.length=v}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Gg(e,t,n){return ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function su(e){if(e===null||be(e)||$g(e))return 1;if(_g(e))return 2}function Di(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const ji={name:"attention",resolveAll:Yg,tokenize:Kg};function Yg(e,t){let n=-1,r,i,o,s,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};au(f,-l),au(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ae(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ae(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Ae(u,Di(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ae(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Ae(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Re(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Kg(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=su(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),c=su(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!h)),u._close=!!(o===42?h:h&&(c||!f)),t(l)}}function au(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Xg={name:"autolink",tokenize:Qg};function Qg(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(d){return Ve(d)?(e.consume(d),s):d===64?n(d):u(d)}function s(d){return d===43||d===45||d===46||Se(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||Se(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Ai(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Fg(d)?(e.consume(d),u):n(d)}function c(d){return Se(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||Se(d))&&r++<63){const m=d===45?h:f;return e.consume(d),m}return n(d)}}const Pn={partial:!0,tokenize:Zg};function Zg(e,t,n){return r;function r(o){return Y(o)?ee(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||_(o)?t(o):n(o)}}const lu={continuation:{tokenize:ey},exit:ty,name:"blockQuote",tokenize:Jg};function Jg(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return Y(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ey(e,t,n){const r=this;return i;function i(s){return Y(s)?ee(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(lu,t,n)(s)}}function ty(e){e.exit("blockQuote")}const uu={name:"characterEscape",tokenize:ny};function ny(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return zg(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const cu={name:"characterReference",tokenize:ry};function ry(e,t,n){const r=this;let i=0,o,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Se,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=Bg,c):(e.enter("characterReferenceValue"),o=7,s=Ii,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return s===Se&&!Pi(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):n(f)}}const fu={partial:!0,tokenize:oy},du={concrete:!0,name:"codeFenced",tokenize:iy};function iy(e,t,n){const r=this,i={partial:!0,tokenize:P};let o=0,s=0,a;return l;function l(w){return u(w)}function u(w){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===a?(s++,e.consume(w),c):s<3?n(w):(e.exit("codeFencedFenceSequence"),Y(w)?ee(e,f,"whitespace")(w):f(w))}function f(w){return w===null||_(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(fu,k,E)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||_(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):Y(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ee(e,d,"whitespace")(w)):w===96&&w===a?n(w):(e.consume(w),h)}function d(w){return w===null||_(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||_(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===a?n(w):(e.consume(w),m)}function k(w){return e.attempt(i,E,b)(w)}function b(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return o>0&&Y(w)?ee(e,S,"linePrefix",o+1)(w):S(w)}function S(w){return w===null||_(w)?e.check(fu,k,E)(w):(e.enter("codeFlowValue"),v(w))}function v(w){return w===null||_(w)?(e.exit("codeFlowValue"),S(w)):(e.consume(w),v)}function E(w){return e.exit("codeFenced"),t(w)}function P(w,N,M){let F=0;return O;function O(j){return w.enter("lineEnding"),w.consume(j),w.exit("lineEnding"),R}function R(j){return w.enter("codeFencedFence"),Y(j)?ee(w,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):V(j)}function V(j){return j===a?(w.enter("codeFencedFenceSequence"),K(j)):M(j)}function K(j){return j===a?(F++,w.consume(j),K):F>=s?(w.exit("codeFencedFenceSequence"),Y(j)?ee(w,B,"whitespace")(j):B(j)):M(j)}function B(j){return j===null||_(j)?(w.exit("codeFencedFence"),N(j)):M(j)}}}function oy(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Mi={name:"codeIndented",tokenize:ay},sy={partial:!0,tokenize:ly};function ay(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ee(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):_(u)?e.attempt(sy,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||_(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function ly(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):_(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ee(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):_(s)?i(s):n(s)}}const uy={name:"codeText",previous:fy,resolve:cy,tokenize:dy};function cy(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function fy(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function dy(e,t,n){let r=0,i,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):_(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||_(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",u(f))}}class hy{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Zt(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zt(this.left,n.reverse())}}}function Zt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function hu(e){const t={};let n=-1,r,i,o,s,a,l,u;const c=new hy(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,py(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return Re(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function py(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let c,f,h=-1,d=n,m=0,k=0;const b=[k];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(k=h+1,b.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):b.pop(),h=b.length;h--;){const x=a.slice(b[h],b[h+1]),S=o.pop();l.push([S,S+x.length-1]),e.splice(S,2,x)}for(l.reverse(),h=-1;++h<l.length;)u[m+l[h][0]]=m+l[h][1],m+=l[h][1]-l[h][0]-1;return u}const my={resolve:yy,tokenize:xy},gy={partial:!0,tokenize:by};function yy(e){return hu(e),e}function xy(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):_(a)?e.check(gy,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function by(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ee(e,o,"linePrefix")}function o(s){if(s===null||_(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function pu(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),h):x===null||x===32||x===41||Ai(x)?n(x):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(x))}function h(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(x))}function d(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||_(x)?n(x):(e.consume(x),x===92?m:d)}function m(x){return x===60||x===62||x===92?(e.consume(x),d):d(x)}function k(x){return!c&&(x===null||x===41||be(x))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(x)):c<u&&x===40?(e.consume(x),c++,k):x===41?(e.consume(x),c--,k):x===null||x===32||x===40||Ai(x)?n(x):(e.consume(x),x===92?b:k)}function b(x){return x===40||x===41||x===92?(e.consume(x),k):k(x)}}function mu(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),c}function c(d){return a>999||d===null||d===91||d===93&&!l||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):_(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||_(d)||a++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Y(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function gu(e,t,n,r,i,o){let s;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),u(h))}function u(h){return h===s?(e.exit(o),l(s)):h===null?n(h):_(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ee(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||_(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Jt(e,t){let n;return r;function r(i){return _(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Y(i)?ee(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const vy={name:"definition",tokenize:ky},wy={partial:!0,tokenize:Sy};function ky(e,t,n){const r=this;let i;return o;function o(d){return e.enter("definition"),s(d)}function s(d){return mu.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return be(d)?Jt(e,u)(d):u(d)}function u(d){return pu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(wy,f,f)(d)}function f(d){return Y(d)?ee(e,h,"whitespace")(d):h(d)}function h(d){return d===null||_(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function Sy(e,t,n){return r;function r(a){return be(a)?Jt(e,i)(a):n(a)}function i(a){return gu(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Y(a)?ee(e,s,"whitespace")(a):s(a)}function s(a){return a===null||_(a)?t(a):n(a)}}const Ty={name:"hardBreakEscape",tokenize:Cy};function Cy(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return _(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ey={name:"headingAtx",resolve:Py,tokenize:Ay};function Py(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Re(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Ay(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||be(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||_(c)?(e.exit("atxHeading"),t(c)):Y(c)?ee(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||be(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Iy=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],yu=["pre","script","style","textarea"],Dy={concrete:!0,name:"htmlFlow",resolveTo:Ny,tokenize:Ly},jy={partial:!0,tokenize:Vy},My={partial:!0,tokenize:Ry};function Ny(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ly(e,t,n){const r=this;let i,o,s,a,l;return u;function u(p){return c(p)}function c(p){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(p),f}function f(p){return p===33?(e.consume(p),h):p===47?(e.consume(p),o=!0,k):p===63?(e.consume(p),i=3,r.interrupt?t:y):Ve(p)?(e.consume(p),s=String.fromCharCode(p),b):n(p)}function h(p){return p===45?(e.consume(p),i=2,d):p===91?(e.consume(p),i=5,a=0,m):Ve(p)?(e.consume(p),i=4,r.interrupt?t:y):n(p)}function d(p){return p===45?(e.consume(p),r.interrupt?t:y):n(p)}function m(p){const X="CDATA[";return p===X.charCodeAt(a++)?(e.consume(p),a===X.length?r.interrupt?t:V:m):n(p)}function k(p){return Ve(p)?(e.consume(p),s=String.fromCharCode(p),b):n(p)}function b(p){if(p===null||p===47||p===62||be(p)){const X=p===47,Ie=s.toLowerCase();return!X&&!o&&yu.includes(Ie)?(i=1,r.interrupt?t(p):V(p)):Iy.includes(s.toLowerCase())?(i=6,X?(e.consume(p),x):r.interrupt?t(p):V(p)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(p):o?S(p):v(p))}return p===45||Se(p)?(e.consume(p),s+=String.fromCharCode(p),b):n(p)}function x(p){return p===62?(e.consume(p),r.interrupt?t:V):n(p)}function S(p){return Y(p)?(e.consume(p),S):O(p)}function v(p){return p===47?(e.consume(p),O):p===58||p===95||Ve(p)?(e.consume(p),E):Y(p)?(e.consume(p),v):O(p)}function E(p){return p===45||p===46||p===58||p===95||Se(p)?(e.consume(p),E):P(p)}function P(p){return p===61?(e.consume(p),w):Y(p)?(e.consume(p),P):v(p)}function w(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),l=p,N):Y(p)?(e.consume(p),w):M(p)}function N(p){return p===l?(e.consume(p),l=null,F):p===null||_(p)?n(p):(e.consume(p),N)}function M(p){return p===null||p===34||p===39||p===47||p===60||p===61||p===62||p===96||be(p)?P(p):(e.consume(p),M)}function F(p){return p===47||p===62||Y(p)?v(p):n(p)}function O(p){return p===62?(e.consume(p),R):n(p)}function R(p){return p===null||_(p)?V(p):Y(p)?(e.consume(p),R):n(p)}function V(p){return p===45&&i===2?(e.consume(p),G):p===60&&i===1?(e.consume(p),W):p===62&&i===4?(e.consume(p),C):p===63&&i===3?(e.consume(p),y):p===93&&i===5?(e.consume(p),le):_(p)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jy,z,K)(p)):p===null||_(p)?(e.exit("htmlFlowData"),K(p)):(e.consume(p),V)}function K(p){return e.check(My,B,z)(p)}function B(p){return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),j}function j(p){return p===null||_(p)?K(p):(e.enter("htmlFlowData"),V(p))}function G(p){return p===45?(e.consume(p),y):V(p)}function W(p){return p===47?(e.consume(p),s="",Q):V(p)}function Q(p){if(p===62){const X=s.toLowerCase();return yu.includes(X)?(e.consume(p),C):V(p)}return Ve(p)&&s.length<8?(e.consume(p),s+=String.fromCharCode(p),Q):V(p)}function le(p){return p===93?(e.consume(p),y):V(p)}function y(p){return p===62?(e.consume(p),C):p===45&&i===2?(e.consume(p),y):V(p)}function C(p){return p===null||_(p)?(e.exit("htmlFlowData"),z(p)):(e.consume(p),C)}function z(p){return e.exit("htmlFlow"),t(p)}}function Ry(e,t,n){const r=this;return i;function i(s){return _(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Vy(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Pn,t,n)}}const Oy={name:"htmlText",tokenize:Fy};function Fy(e,t,n){const r=this;let i,o,s;return a;function a(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),l}function l(y){return y===33?(e.consume(y),u):y===47?(e.consume(y),P):y===63?(e.consume(y),v):Ve(y)?(e.consume(y),M):n(y)}function u(y){return y===45?(e.consume(y),c):y===91?(e.consume(y),o=0,m):Ve(y)?(e.consume(y),S):n(y)}function c(y){return y===45?(e.consume(y),d):n(y)}function f(y){return y===null?n(y):y===45?(e.consume(y),h):_(y)?(s=f,W(y)):(e.consume(y),f)}function h(y){return y===45?(e.consume(y),d):f(y)}function d(y){return y===62?G(y):y===45?h(y):f(y)}function m(y){const C="CDATA[";return y===C.charCodeAt(o++)?(e.consume(y),o===C.length?k:m):n(y)}function k(y){return y===null?n(y):y===93?(e.consume(y),b):_(y)?(s=k,W(y)):(e.consume(y),k)}function b(y){return y===93?(e.consume(y),x):k(y)}function x(y){return y===62?G(y):y===93?(e.consume(y),x):k(y)}function S(y){return y===null||y===62?G(y):_(y)?(s=S,W(y)):(e.consume(y),S)}function v(y){return y===null?n(y):y===63?(e.consume(y),E):_(y)?(s=v,W(y)):(e.consume(y),v)}function E(y){return y===62?G(y):v(y)}function P(y){return Ve(y)?(e.consume(y),w):n(y)}function w(y){return y===45||Se(y)?(e.consume(y),w):N(y)}function N(y){return _(y)?(s=N,W(y)):Y(y)?(e.consume(y),N):G(y)}function M(y){return y===45||Se(y)?(e.consume(y),M):y===47||y===62||be(y)?F(y):n(y)}function F(y){return y===47?(e.consume(y),G):y===58||y===95||Ve(y)?(e.consume(y),O):_(y)?(s=F,W(y)):Y(y)?(e.consume(y),F):G(y)}function O(y){return y===45||y===46||y===58||y===95||Se(y)?(e.consume(y),O):R(y)}function R(y){return y===61?(e.consume(y),V):_(y)?(s=R,W(y)):Y(y)?(e.consume(y),R):F(y)}function V(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),i=y,K):_(y)?(s=V,W(y)):Y(y)?(e.consume(y),V):(e.consume(y),B)}function K(y){return y===i?(e.consume(y),i=void 0,j):y===null?n(y):_(y)?(s=K,W(y)):(e.consume(y),K)}function B(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||be(y)?F(y):(e.consume(y),B)}function j(y){return y===47||y===62||be(y)?F(y):n(y)}function G(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function W(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Q}function Q(y){return Y(y)?ee(e,le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):le(y)}function le(y){return e.enter("htmlTextData"),s(y)}}const Ni={name:"labelEnd",resolveAll:$y,resolveTo:Uy,tokenize:Hy},By={tokenize:Wy},zy={tokenize:qy},_y={tokenize:Gy};function $y(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Re(e,0,e.length,n),e}function Uy(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=Ae(a,e.slice(o+1,o+r+3)),a=Ae(a,[["enter",c,t]]),a=Ae(a,Di(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=Ae(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=Ae(a,e.slice(s+1)),a=Ae(a,[["exit",l,t]]),Re(e,o,e.length,a),e}function Hy(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?f(h):(s=r.parser.defined.includes(kt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(By,c,s?c:f)(h):h===91?e.attempt(zy,c,s?u:f)(h):s?c(h):f(h)}function u(h){return e.attempt(_y,c,f)(h)}function c(h){return t(h)}function f(h){return o._balanced=!0,n(h)}}function Wy(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return be(f)?Jt(e,o)(f):o(f)}function o(f){return f===41?c(f):pu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return be(f)?Jt(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?gu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return be(f)?Jt(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function qy(e,t,n){const r=this;return i;function i(a){return mu.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Gy(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Yy={name:"labelStartImage",resolveAll:Ni.resolveAll,tokenize:Ky};function Ky(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Xy={name:"labelStartLink",resolveAll:Ni.resolveAll,tokenize:Qy};function Qy(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Li={name:"lineEnding",tokenize:Zy};function Zy(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ee(e,t,"linePrefix")}}const An={name:"thematicBreak",tokenize:Jy};function Jy(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||_(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Y(u)?ee(e,a,"whitespace")(u):a(u))}}const ve={continuation:{tokenize:rx},exit:ox,name:"list",tokenize:nx},ex={partial:!0,tokenize:sx},tx={partial:!0,tokenize:ix};function nx(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(d){const m=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Ii(d)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(An,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return Ii(d)&&++s<10?(e.consume(d),l):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Pn,r.interrupt?n:c,e.attempt(ex,h,f))}function c(d){return r.containerState.initialBlankLine=!0,o++,h(d)}function f(d){return Y(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function rx(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Pn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ee(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!Y(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tx,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ee(e,e.attempt(ve,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ix(e,t,n){const r=this;return ee(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function ox(e){e.exit(this.containerState.type)}function sx(e,t,n){const r=this;return ee(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!Y(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const xu={name:"setextUnderline",resolveTo:ax,tokenize:lx};function ax(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function lx(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Y(u)?ee(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||_(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const ux={tokenize:cx};function cx(e){const t=this,n=e.attempt(Pn,r,e.attempt(this.parser.constructs.flowInitial,i,ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(my,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const fx={resolveAll:vu()},dx=bu("string"),hx=bu("text");function bu(e){return{resolveAll:vu(e==="text"?px:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const d=f[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function vu(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function px(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const mx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:vy},disable:{null:[]},document:{42:ve,43:ve,45:ve,48:ve,49:ve,50:ve,51:ve,52:ve,53:ve,54:ve,55:ve,56:ve,57:ve,62:lu},flow:{35:Ey,42:An,45:[xu,An],60:Dy,61:xu,95:An,96:du,126:du},flowInitial:{[-2]:Mi,[-1]:Mi,32:Mi},insideSpan:{null:[ji,fx]},string:{38:cu,92:uu},text:{[-5]:Li,[-4]:Li,[-3]:Li,33:Yy,38:cu,42:ji,60:[Xg,Oy],91:Xy,92:[Ty,uu],93:Ni,95:ji,96:uy}},Symbol.toStringTag,{value:"Module"}));function gx(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:N(P),check:N(w),consume:S,enter:v,exit:E,interrupt:N(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:m,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function f(R){return s=Ae(s,R),b(),s[s.length-1]!==null?[]:(M(t,0),u.events=Di(o,u.events,u),u.events)}function h(R,V){return xx(d(R),V)}function d(R){return yx(s,R)}function m(){const{_bufferIndex:R,_index:V,line:K,column:B,offset:j}=r;return{_bufferIndex:R,_index:V,line:K,column:B,offset:j}}function k(R){i[R.line]=R.column,O()}function b(){let R;for(;r._index<s.length;){const V=s[r._index];if(typeof V=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<V.length;)x(V.charCodeAt(r._bufferIndex));else x(V)}}function x(R){c=c(R)}function S(R){_(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,O()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function v(R,V){const K=V||{};return K.type=R,K.start=m(),u.events.push(["enter",K,u]),a.push(K),K}function E(R){const V=a.pop();return V.end=m(),u.events.push(["exit",V,u]),V}function P(R,V){M(R,V.from)}function w(R,V){V.restore()}function N(R,V){return K;function K(B,j,G){let W,Q,le,y;return Array.isArray(B)?z(B):"tokenize"in B?z([B]):C(B);function C(oe){return te;function te(ge){const Fe=ge!==null&&oe[ge],Xe=ge!==null&&oe.null,Fn=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Xe)?Xe:Xe?[Xe]:[]];return z(Fn)(ge)}}function z(oe){return W=oe,Q=0,oe.length===0?G:p(oe[Q])}function p(oe){return te;function te(ge){return y=F(),le=oe,oe.partial||(u.currentConstruct=oe),oe.name&&u.parser.constructs.disable.null.includes(oe.name)?Ie():oe.tokenize.call(V?Object.assign(Object.create(u),V):u,l,X,Ie)(ge)}}function X(oe){return R(le,y),j}function Ie(oe){return y.restore(),++Q<W.length?p(W[Q]):G}}}function M(R,V){R.resolveAll&&!o.includes(R)&&o.push(R),R.resolve&&Re(u.events,V,u.events.length-V,R.resolve(u.events.slice(V),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function F(){const R=m(),V=u.previous,K=u.currentConstruct,B=u.events.length,j=Array.from(a);return{from:B,restore:G};function G(){r=R,u.previous=V,u.currentConstruct=K,u.events.length=B,a=j,O()}}function O(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function yx(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function xx(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
9
+ `;break}case-3:{s=`\r
10
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function bx(e){const r={constructs:Rg([mx,...(e||{}).extensions||[]]),content:i(Ug),defined:[],document:i(Wg),flow:i(ux),lazy:{},string:i(dx),text:i(hx)};return r;function i(o){return s;function s(a){return gx(r,o,a)}}}function vx(e){for(;!hu(e););return e}const wu=/[\0\t\n\r]/g;function wx(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,f,h,d;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(wu.lastIndex=f,u=wu.exec(o),h=u&&u.index!==void 0?u.index:o.length,d=o.charCodeAt(h),!u){t=o.slice(f);break}if(d===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(o.slice(f,h)),e+=h-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const kx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Sx(e){return e.replace(kx,Tx)}function Tx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return iu(n.slice(o?2:1),o?16:10)}return Pi(n)||e}const ku={}.hasOwnProperty;function Cx(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ex(n)(vx(bx(n).document().write(wx()(e,t,!0))))}function Ex(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ac),autolinkProtocol:F,autolinkEmail:F,atxHeading:o(ic),blockQuote:o(Xe),characterEscape:F,characterReference:F,codeFenced:o(Fn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Fn,s),codeText:o(Tb,s),codeTextData:F,data:F,codeFlowValue:F,definition:o(Cb),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Eb),hardBreakEscape:o(oc),hardBreakTrailing:o(oc),htmlFlow:o(sc,s),htmlFlowData:F,htmlText:o(sc,s),htmlTextData:F,image:o(Pb),label:s,link:o(ac),listItem:o(Ab),listItemValue:h,listOrdered:o(lc,f),listUnordered:o(lc),paragraph:o(Ib),reference:p,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ic),strong:o(Db),thematicBreak:o(Mb)},exit:{atxHeading:l(),atxHeadingSequence:P,autolink:l(),autolinkEmail:Fe,autolinkProtocol:ge,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:oe,characterReference:te,codeFenced:l(b),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:O,codeIndented:l(x),codeText:l(j),codeTextData:O,data:O,definition:l(),definitionDestinationString:E,definitionLabelString:S,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(V),hardBreakTrailing:l(V),htmlFlow:l(K),htmlFlowData:O,htmlText:l(B),htmlTextData:O,image:l(W),label:le,labelText:Q,lineEnding:R,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:y,resourceTitleString:C,resource:z,setextHeading:l(M),setextHeadingLineSequence:N,setextHeadingText:w,strong:l(),thematicBreak:l()}};Su(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let I={type:"root",children:[]};const U={stack:[I],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:n},q=[];let Z=-1;for(;++Z<T.length;)if(T[Z][1].type==="listOrdered"||T[Z][1].type==="listUnordered")if(T[Z][0]==="enter")q.push(Z);else{const Ne=q.pop();Z=i(T,Ne,Z)}for(Z=-1;++Z<T.length;){const Ne=t[T[Z][0]];ku.call(Ne,T[Z][1].type)&&Ne[T[Z][1].type].call(Object.assign({sliceSerialize:T[Z][2].sliceSerialize},U),T[Z][1])}if(U.tokenStack.length>0){const Ne=U.tokenStack[U.tokenStack.length-1];(Ne[1]||Tu).call(U,void 0,Ne[0])}for(I.position={start:Ke(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Ke(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<t.transforms.length;)I=t.transforms[Z](I)||I;return I}function i(T,I,U){let q=I-1,Z=-1,Ne=!1,it,$e,rn,on;for(;++q<=U;){const Te=T[q];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?Z++:Z--,on=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(it&&!on&&!Z&&!rn&&(rn=q),on=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:on=void 0}if(!Z&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||Z===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(it){let Et=q;for($e=void 0;Et--;){const Ue=T[Et];if(Ue[1].type==="lineEnding"||Ue[1].type==="lineEndingBlank"){if(Ue[0]==="exit")continue;$e&&(T[$e][1].type="lineEndingBlank",Ne=!0),Ue[1].type="lineEnding",$e=Et}else if(!(Ue[1].type==="linePrefix"||Ue[1].type==="blockQuotePrefix"||Ue[1].type==="blockQuotePrefixWhitespace"||Ue[1].type==="blockQuoteMarker"||Ue[1].type==="listItemIndent"))break}rn&&(!$e||rn<$e)&&(it._spread=!0),it.end=Object.assign({},$e?T[$e][1].start:Te[1].end),T.splice($e||q,0,["exit",it,Te[2]]),q++,U++}if(Te[1].type==="listItemPrefix"){const Et={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};it=Et,T.splice(q,0,["enter",Et,Te[2]]),q++,U++,rn=void 0,on=!0}}}return T[I][1]._spread=Ne,U}function o(T,I){return U;function U(q){a.call(this,T(q),q),I&&I.call(this,q)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(T,I,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([I,U||void 0]),T.position={start:Ke(I.start),end:void 0}}function l(T){return I;function I(U){T&&T.call(this,U),u.call(this,U)}}function u(T,I){const U=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==T.type&&(I?I.call(this,T,q[0]):(q[1]||Tu).call(this,T,q[0]));else throw new Error("Cannot close `"+T.type+"` ("+Xt({start:T.start,end:T.end})+"): it’s not open");U.position.end=Ke(T.end)}function c(){return Ng(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(T){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){const T=this.resume(),I=this.stack[this.stack.length-1];I.lang=T}function m(){const T=this.resume(),I=this.stack[this.stack.length-1];I.meta=T}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T.replace(/(\r?\n|\r)$/g,"")}function S(T){const I=this.resume(),U=this.stack[this.stack.length-1];U.label=I,U.identifier=kt(this.sliceSerialize(T)).toLowerCase()}function v(){const T=this.resume(),I=this.stack[this.stack.length-1];I.title=T}function E(){const T=this.resume(),I=this.stack[this.stack.length-1];I.url=T}function P(T){const I=this.stack[this.stack.length-1];if(!I.depth){const U=this.sliceSerialize(T).length;I.depth=U}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(T){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function F(T){const U=this.stack[this.stack.length-1].children;let q=U[U.length-1];(!q||q.type!=="text")&&(q=jb(),q.position={start:Ke(T.start),end:void 0},U.push(q)),this.stack.push(q)}function O(T){const I=this.stack.pop();I.value+=this.sliceSerialize(T),I.position.end=Ke(T.end)}function R(T){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=I.children[I.children.length-1];U.position.end=Ke(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(F.call(this,T),O.call(this,T))}function V(){this.data.atHardBreak=!0}function K(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function B(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function j(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function G(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=I,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function W(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=I,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Q(T){const I=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=Sx(I),U.identifier=kt(I).toLowerCase()}function le(){const T=this.stack[this.stack.length-1],I=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const q=T.children;U.children=q}else U.alt=I}function y(){const T=this.resume(),I=this.stack[this.stack.length-1];I.url=T}function C(){const T=this.resume(),I=this.stack[this.stack.length-1];I.title=T}function z(){this.data.inReference=void 0}function p(){this.data.referenceType="collapsed"}function X(T){const I=this.resume(),U=this.stack[this.stack.length-1];U.label=I,U.identifier=kt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Ie(T){this.data.characterReferenceType=T.type}function oe(T){const I=this.sliceSerialize(T),U=this.data.characterReferenceType;let q;U?(q=iu(I,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=Pi(I);const Z=this.stack[this.stack.length-1];Z.value+=q}function te(T){const I=this.stack.pop();I.position.end=Ke(T.end)}function ge(T){O.call(this,T);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(T)}function Fe(T){O.call(this,T);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(T)}function Xe(){return{type:"blockquote",children:[]}}function Fn(){return{type:"code",lang:null,meta:null,value:""}}function Tb(){return{type:"inlineCode",value:""}}function Cb(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Eb(){return{type:"emphasis",children:[]}}function ic(){return{type:"heading",depth:0,children:[]}}function oc(){return{type:"break"}}function sc(){return{type:"html",value:""}}function Pb(){return{type:"image",title:null,url:"",alt:null}}function ac(){return{type:"link",title:null,url:"",children:[]}}function lc(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Ab(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Ib(){return{type:"paragraph",children:[]}}function Db(){return{type:"strong",children:[]}}function jb(){return{type:"text",value:""}}function Mb(){return{type:"thematicBreak"}}}function Ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Su(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Su(e,r):Px(e,r)}}function Px(e,t){let n;for(n in t)if(ku.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Tu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xt({start:t.start,end:t.end})+") is still open")}function Ax(e){const t=this;t.parser=n;function n(r){return Cx(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ix(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Dx(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
11
+ `}]}function jx(e,t){const n=t.value?t.value+`
12
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Mx(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nx(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lx(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=St(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Rx(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vx(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Cu(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Ox(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cu(e,t);const i={src:St(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Fx(e,t){const n={src:St(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Bx(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function zx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cu(e,t);const i={href:St(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function _x(e,t){const n={href:St(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $x(e,t,n){const r=e.all(t),i=n?Ux(n):Eu(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
13
+ `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
14
+ `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function Ux(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Eu(n[r])}return t}function Eu(e){const t=e.spread;return t??e.children.length>1}function Hx(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Wx(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qx(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Gx(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yx(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=wi(t.children[1]),l=ql(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Kx(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const f=t.children[l],h={},d=s?s[l]:void 0;d&&(h.align=d);let m={type:"element",tagName:o,properties:h,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Xx(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Pu=9,Au=32;function Qx(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Iu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Iu(t.slice(i),i>0,!1)),o.join("")}function Iu(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Pu||o===Au;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Pu||o===Au;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Zx(e,t){const n={type:"text",value:Qx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Jx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const e0={blockquote:Ix,break:Dx,code:jx,delete:Mx,emphasis:Nx,footnoteReference:Lx,heading:Rx,html:Vx,imageReference:Ox,image:Fx,inlineCode:Bx,linkReference:zx,link:_x,listItem:$x,list:Hx,paragraph:Wx,root:qx,strong:Gx,table:Yx,tableCell:Xx,tableRow:Kx,text:Zx,thematicBreak:Jx,toml:In,yaml:In,definition:In,footnoteDefinition:In};function In(){}const Du=-1,Dn=0,en=1,jn=2,Ri=3,Vi=4,Oi=5,Fi=6,ju=7,Mu=8,Nu=typeof self=="object"?self:globalThis,t0=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case Dn:case Du:return n(s,i);case en:{const a=n([],i);for(const l of s)a.push(r(l));return a}case jn:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case Ri:return n(new Date(s),i);case Vi:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case Oi:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case Fi:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case ju:{const{name:a,message:l}=s;return n(new Nu[a](l),i)}case Mu:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new Nu[o](s),i)};return r},Lu=e=>t0(new Map,e)(0),Tt="",{toString:n0}={},{keys:r0}=Object,tn=e=>{const t=typeof e;if(t!=="object"||!e)return[Dn,t];const n=n0.call(e).slice(8,-1);switch(n){case"Array":return[en,Tt];case"Object":return[jn,Tt];case"Date":return[Ri,Tt];case"RegExp":return[Vi,Tt];case"Map":return[Oi,Tt];case"Set":return[Fi,Tt];case"DataView":return[en,n]}return n.includes("Array")?[en,n]:n.includes("Error")?[ju,n]:[jn,n]},Mn=([e,t])=>e===Dn&&(t==="function"||t==="symbol"),i0=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=tn(s);switch(a){case Dn:{let c=s;switch(l){case"bigint":a=Mu,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Du],s)}return i([a,c],s)}case en:{if(l){let h=s;return l==="DataView"?h=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(s)),i([l,[...h]],s)}const c=[],f=i([a,c],s);for(const h of s)c.push(o(h));return f}case jn:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],f=i([a,c],s);for(const h of r0(s))(e||!Mn(tn(s[h])))&&c.push([o(h),o(s[h])]);return f}case Ri:return i([a,s.toISOString()],s);case Vi:{const{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case Oi:{const c=[],f=i([a,c],s);for(const[h,d]of s)(e||!(Mn(tn(h))||Mn(tn(d))))&&c.push([o(h),o(d)]);return f}case Fi:{const c=[],f=i([a,c],s);for(const h of s)(e||!Mn(tn(h)))&&c.push(o(h));return f}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},Ru=(e,{json:t,lossy:n}={})=>{const r=[];return i0(!(t||n),!!t,new Map,r)(e),r},Nn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Lu(Ru(e,t)):structuredClone(e):(e,t)=>Lu(Ru(e,t));function o0(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function s0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function a0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||o0,r=e.options.footnoteBackLabel||s0,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),h=St(f.toLowerCase());let d=0;const m=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){m.length>0&&m.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,d);typeof S=="string"&&(S={type:"text",value:S}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const S=b.children[b.children.length-1];S&&S.type==="text"?S.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...m)}else c.push(...m);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Nn(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
15
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
16
+ `}]}}const Bi=(function(e){if(e==null)return f0;if(typeof e=="function")return Ln(e);if(typeof e=="object")return Array.isArray(e)?l0(e):u0(e);if(typeof e=="string")return c0(e);throw new Error("Expected function, string, or object as test")});function l0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Bi(e[n]);return Ln(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function u0(e){const t=e;return Ln(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function c0(e){return Ln(t);function t(n){return n&&n.type===e}}function Ln(e){return t;function t(n,r,i){return!!(d0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function f0(){return!0}function d0(e){return e!==null&&typeof e=="object"&&"type"in e}function Xb(e){return e}const Vu=[],h0=!0,Ou=!1,p0="skip";function Fu(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Bi(i),s=r?-1:1;a(e,void 0,[])();function a(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=Vu,m,k,b;if((!t||o(l,u,c[c.length-1]||void 0))&&(d=m0(n(l,c)),d[0]===Ou))return d;if("children"in l&&l.children){const x=l;if(x.children&&d[0]!==p0)for(k=(r?x.children.length:-1)+s,b=c.concat(x);k>-1&&k<x.children.length;){const S=x.children[k];if(m=a(S,k,b)(),m[0]===Ou)return m;k=typeof m[1]=="number"?m[1]:k+s}}return d}}}function m0(e){return Array.isArray(e)?e:typeof e=="number"?[h0,e]:e==null?Vu:[e]}function Bu(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Fu(e,o,a,i);function a(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const zi={}.hasOwnProperty,g0={};function y0(e,t){const n=t||g0,r=new Map,i=new Map,o=new Map,s={...e0,...n.handlers},a={all:u,applyData:b0,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:x0,wrap:w0};return Bu(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),a;function l(c,f){const h=c.type,d=a.handlers[h];if(zi.call(a.handlers,h)&&d)return d(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in c){const{children:k,...b}=c,x=Nn(b);return x.children=a.all(c),x}return Nn(c)}return(a.options.unknownHandler||v0)(a,c,f)}function u(c){const f=[];if("children"in c){const h=c.children;let d=-1;for(;++d<h.length;){const m=a.one(h[d],c);if(m){if(d&&h[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=zu(m.value)),!Array.isArray(m)&&m.type==="element")){const k=m.children[0];k&&k.type==="text"&&(k.value=zu(k.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function x0(e,t){e.position&&(t.position=fg(e))}function b0(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Nn(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function v0(e,t){const n=t.data||{},r="value"in t&&!(zi.call(n,"hProperties")||zi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function w0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
17
+ `});++r<e.length;)r&&n.push({type:"text",value:`
18
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
19
+ `}),n}function zu(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function _u(e,t){const n=y0(e,t),r=n.one(e,void 0),i=a0(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
20
+ `},i),o}function k0(e,t){return e&&"run"in e?async function(n,r){const i=_u(n,{file:r,...t});await e.run(i,r)}:function(n,r){return _u(n,{file:r,...e||t})}}function $u(e){if(e)throw e}var _i,Uu;function S0(){if(Uu)return _i;Uu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},s=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return _i=function l(){var u,c,f,h,d,m,k=arguments[0],b=1,x=arguments.length,S=!1;for(typeof k=="boolean"&&(S=k,k=arguments[1]||{},b=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});b<x;++b)if(u=arguments[b],u!=null)for(c in u)f=a(k,c),h=a(u,c),k!==h&&(S&&h&&(o(h)||(d=i(h)))?(d?(d=!1,m=f&&i(f)?f:[]):m=f&&o(f)?f:{},s(k,{name:c,newValue:l(S,m,h)})):typeof h<"u"&&s(k,{name:c,newValue:h}));return k},_i}var T0=S0();const $i=to(T0);function Ui(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function C0(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){const c=e[++o];let f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?E0(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function E0(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const Oe={basename:P0,dirname:A0,extname:I0,join:D0,sep:"/"};function P0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function A0(e){if(nn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function I0(e){nn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function D0(...e){let t=-1,n;for(;++t<e.length;)nn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":j0(n)}function j0(e){nn(e);const t=e.codePointAt(0)===47;let n=M0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function M0(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function nn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const N0={cwd:L0};function L0(){return"/"}function Hi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function R0(e){if(typeof e=="string")e=new URL(e);else if(!Hi(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return V0(e)}function V0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Wi=["history","path","basename","stem","extname","dirname"];class Hu{constructor(t){let n;t?Hi(t)?n={path:t}:typeof t=="string"||O0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":N0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Wi.length;){const o=Wi[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Wi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Oe.basename(this.path):void 0}set basename(t){Gi(t,"basename"),qi(t,"basename"),this.path=Oe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Oe.dirname(this.path):void 0}set dirname(t){Wu(this.basename,"dirname"),this.path=Oe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Oe.extname(this.path):void 0}set extname(t){if(qi(t,"extname"),Wu(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Oe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hi(t)&&(t=R0(t)),Gi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Oe.basename(this.path,this.extname):void 0}set stem(t){Gi(t,"stem"),qi(t,"stem"),this.path=Oe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new de(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function qi(e,t){if(e&&e.includes(Oe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Oe.sep+"`")}function Gi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Wu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function O0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const F0=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),B0={}.hasOwnProperty;class Yi extends F0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=C0()}copy(){const t=new Yi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data($i(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Qi("data",this.frozen),this.namespace[t]=n,this):B0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Qi("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Rn(t),r=this.parser||this.Parser;return Ki("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ki("process",this.parser||this.Parser),Xi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Rn(t),l=r.parse(a);r.run(l,a,function(c,f,h){if(c||!f||!h)return u(c);const d=f,m=r.stringify(d,h);$0(m)?h.value=m:h.result=m,u(c,h)});function u(c,f){c||!f?s(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Ki("processSync",this.parser||this.Parser),Xi("processSync",this.compiler||this.Compiler),this.process(t,i),Gu("processSync","process",n),r;function i(o,s){n=!0,$u(o),r=s}}run(t,n,r){qu(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=Rn(n);i.run(t,l,u);function u(c,f,h){const d=f||t;c?a(c):s?s(d):r(void 0,d,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Gu("runSync","run",r),i;function o(s,a){$u(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Rn(n),i=this.compiler||this.Compiler;return Xi("stringify",i),qu(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Qi("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=$i(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[d,...m]=c;const k=r[h][1];Ui(k)&&Ui(d)&&(d=$i(!0,k,d)),r[h]=[u,d,...m]}}}}const z0=new Yi().freeze();function Ki(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Xi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qu(e){if(!Ui(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Gu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Rn(e){return _0(e)?e:new Hu(e)}function _0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $0(e){return typeof e=="string"||U0(e)}function U0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const H0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Yu=[],Ku={allowDangerousHtml:!0},W0=/^(https?|ircs?|mailto|xmpp)$/i,q0=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Vn(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Yu,l=e.remarkPlugins||Yu,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ku}:Ku,c=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||G0,d=z0().use(Ax).use(l).use(k0,u).use(a),m=new Hu;typeof r=="string"&&(m.value=r);for(const S of q0)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+H0+S.id,void 0);const k=d.parse(m);let b=d.runSync(k,m);return i&&(b={type:"element",tagName:"div",properties:{className:i},children:b.type==="root"?b.children:[b]}),Bu(b,x),gg(b,{Fragment:g.Fragment,components:o,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function x(S,v,E){if(S.type==="raw"&&E&&typeof v=="number")return c?E.children.splice(v,1):E.children[v]={type:"text",value:S.value},v;if(S.type==="element"){let P;for(P in Ei)if(Object.hasOwn(Ei,P)&&Object.hasOwn(S.properties,P)){const w=S.properties[P],N=Ei[P];(N===null||N.includes(S.tagName))&&(S.properties[P]=h(String(w||""),P,S))}}if(S.type==="element"){let P=t?!t.includes(S.tagName):s?s.includes(S.tagName):!1;if(!P&&n&&typeof v=="number"&&(P=!n(S,v,E)),P&&E&&typeof v=="number")return f&&S.children?E.children.splice(v,1,...S.children):E.children.splice(v,1),v}}}function G0(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||W0.test(e.slice(0,t))?e:""}function Y0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function K0(e,t,n){const i=Bi({}.ignore||[]),o=X0(t);let s=-1;for(;++s<o.length;)Fu(e,"text",a);function a(u,c){let f=-1,h;for(;++f<c.length;){const d=c[f],m=h?h.children:void 0;if(i(d,m?m.indexOf(d):void 0,h))return;h=d}if(h)return l(u,c)}function l(u,c){const f=c[c.length-1],h=o[s][0],d=o[s][1];let m=0;const b=f.children.indexOf(u);let x=!1,S=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const E=v.index,P={index:v.index,input:v.input,stack:[...c,u]};let w=d(...v,P);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=E+1:(m!==E&&S.push({type:"text",value:u.value.slice(m,E)}),Array.isArray(w)?S.push(...w):w&&S.push(w),m=E+v[0].length,x=!0),!h.global)break;v=h.exec(u.value)}return x?(m<u.value.length&&S.push({type:"text",value:u.value.slice(m)}),f.children.splice(b,1,...S)):S=[u],b+S.length}}function X0(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Q0(i[0]),Z0(i[1])])}return t}function Q0(e){return typeof e=="string"?new RegExp(Y0(e),"g"):e}function Z0(e){return typeof e=="function"?e:function(){return e}}function J0(e){K0(e,[/\r?\n|\r/g,eb])}function eb(){return{type:"break"}}function On(){return function(e){J0(e)}}const Xu=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:o="",actionLabel:s,href:a,inverted:l=!1})=>g.jsx("section",{className:`feature-split-section ${o} image-${i} ${l?"theme-inverted":""}`,children:g.jsxs("div",{className:"feature-split-container",children:[g.jsxs("div",{className:"feature-split-content",children:[g.jsx("div",{className:"section-title feature-split-title",children:e}),t&&g.jsx("div",{className:"feature-split-description",children:g.jsx(Vn,{remarkPlugins:[On],children:t})}),n&&n.length>0&&g.jsx("div",{className:"feature-split-list",children:n.map((u,c)=>g.jsxs("div",{className:"feature-split-item",children:[u.icon&&g.jsx("div",{className:"feature-split-icon-wrapper",children:g.jsx(he,{icon:u.icon,width:"24",height:"24"})}),g.jsxs("div",{children:[g.jsx("h3",{className:"card-title feature-split-item-title",children:u.title}),g.jsx("div",{className:"feature-split-item-description",children:g.jsx(Vn,{remarkPlugins:[On],children:u.description})})]})]},c))}),s&&a&&g.jsx("div",{className:"feature-split-actions",children:g.jsx("button",{onClick:()=>window.location.href=a,children:s})})]}),g.jsx("div",{className:"feature-split-image-wrapper",children:g.jsx("img",{src:r.imageSrc,alt:r.alt,className:"feature-split-image"})})]})}),Qu=({title:e,subtitle:t,content:n,format:r="markdown",className:i="",image:o,inverted:s=!1})=>g.jsx("section",{className:`content-block-section ${s?"theme-inverted":""} ${i}`,children:g.jsxs("div",{className:"content-block-container",children:[g.jsxs("div",{className:"content-block-header",children:[e&&g.jsx("div",{className:"section-title content-block-title",children:e}),t&&g.jsx("div",{className:"section-subtitle content-block-subtitle",children:t})]}),o&&g.jsxs("div",{className:"content-block-featured-image",children:[g.jsx("img",{src:o.imageSrc,alt:o.alt}),o.caption&&g.jsx("figcaption",{children:o.caption})]}),g.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?g.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):g.jsx(Vn,{remarkPlugins:[On],children:n||""})})]})}),Zi=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:o="",inverted:s=!1})=>g.jsx(Xn,{hoverable:!0,elevation:"sm",className:`feature-card ${o}`,inverted:s,children:g.jsxs("div",{className:"feature-card-content",children:[e&&g.jsx("div",{className:"feature-icon-wrapper",children:g.jsx(he,{icon:e,width:"24",height:"24"})}),g.jsx("h3",{className:"card-title feature-title",children:t}),g.jsx("div",{className:"card-description feature-description",children:g.jsx(Vn,{remarkPlugins:[On],children:n})}),r&&(r.startsWith("http")?g.jsxs("a",{href:r,className:"feature-link",target:"_blank",rel:"noopener noreferrer",children:[i," ",g.jsx("span",{children:"→"})]}):g.jsxs(Bn.Link,{to:r,className:"feature-link",children:[i," ",g.jsx("span",{children:"→"})]}))]})}),Zu=({title:e,subtitle:t,items:n,children:r,className:i="",columns:o,actionLabel:s="Learn more",inverted:a=!1})=>{const l=o?{"--features-columns":o}:{};return g.jsx("section",{className:`features-section ${a?"theme-inverted":""} ${i}`,children:g.jsxs("div",{className:"features-container",children:[g.jsxs("div",{className:"features-header",children:[g.jsx("div",{className:"section-title features-title",children:e}),t&&g.jsx("div",{className:"section-subtitle features-subtitle",children:t})]}),g.jsxs("div",{className:"features-grid",style:l,children:[r,n&&n.map((u,c)=>g.jsx(Zi,{...u,actionLabel:s,inverted:a},c))]})]})})},Ju=({items:e,className:t=""})=>g.jsx("section",{className:`stats-section ${t}`,children:g.jsx("div",{className:"stats-container",children:g.jsx("div",{className:"stats-grid",children:e.map((n,r)=>g.jsxs("div",{className:"stat-item",children:[g.jsx("span",{className:"stat-value",children:n.value}),g.jsx("span",{className:"stat-label",children:n.label}),n.description&&g.jsx("span",{className:"stat-description",children:n.description})]},r))})})}),ec=({title:e,subtitle:t,actionLabel:n,onAction:r,className:i="",imageSrc:o,inverted:s=!1})=>{const a=o?{backgroundImage:`url(${o})`,backgroundSize:"cover",backgroundPosition:"center"}:{};return g.jsx("section",{className:`cta-section ${s?"theme-inverted":""} ${i}`,style:a,children:g.jsxs("div",{className:"cta-container",children:[g.jsx("h2",{className:"section-title cta-title",children:e}),t&&g.jsx("p",{className:"section-subtitle cta-description",children:t}),n&&g.jsx("div",{className:"cta-actions",children:n&&g.jsx("button",{onClick:r,children:n})})]})})},tc=({title:e,subtitle:t,items:n,className:r=""})=>g.jsx("section",{className:`testimonials-section ${r}`,children:g.jsxs("div",{className:"testimonials-container",children:[g.jsxs("div",{className:"testimonials-header",children:[g.jsx("h2",{className:"section-title testimonials-title",children:e}),t&&g.jsx("p",{className:"section-subtitle testimonials-subtitle",children:t})]}),g.jsx("div",{className:"testimonials-grid",children:n.map(i=>g.jsx(Xn,{elevation:"sm",className:"testimonial-card",children:g.jsxs("div",{className:"testimonial-card-content",children:[g.jsx("div",{className:"testimonial-stars",children:[...Array(i.rating||5)].map((o,s)=>g.jsx(he,{icon:"mdi:star",width:"20",height:"20"},s))}),g.jsxs("blockquote",{className:"testimonial-quote",children:['"',i.quote,'"']}),g.jsxs("div",{className:"testimonial-author",children:[i.imageSrc?g.jsx("img",{src:i.imageSrc,alt:i.name,className:"testimonial-avatar"}):g.jsx("div",{className:"testimonial-avatar-placeholder",children:i.name.charAt(0)}),g.jsxs("div",{className:"testimonial-author-info",children:[g.jsx("span",{className:"testimonial-name",children:i.name}),g.jsxs("span",{className:"testimonial-role",children:[i.role," ",i.company&&`at ${i.company}`]})]})]})]})},i.id))})]})}),nc={Header:Mo,MenuItem:Cl,MenuGrid:El,MenuGridItem:Pl,Dropdown:hi,Hero:Al,IconButton:Dl,HamburgerMenu:Qn,FeatureSplit:Xu,ContentBlock:Qu,FeaturesSection:Zu,FeatureItem:Zi,BentoGrid:Do,Stats:Ju,CTASection:ec,Testimonials:tc};let Ji={...nc};function tb(e,t){Ji[e]=t}function rc(e){return Ji[e]}function nb(e){return e in Ji}function rb(e){return typeof e=="string"&&e.trim().length>0}const Ct=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return g.jsx(g.Fragment,{children:e.map((d,m)=>g.jsx(Ct,{config:d,className:t,handlers:n,onError:r},d.id||`item-${m}`))});if(!e||typeof e!="object")return null;const{type:i,data:o,children:s,id:a,...l}=e,u=a||o?.id||i;if(!rb(i)){const d=new Error(`Invalid component type: "${i}"`);return r?.(d,e),console.error(`Invalid component type: "${i}"`),null}if(!nb(i)){const d=new Error(`Component "${i}" is not registered`);return r?.(d,e),console.error(`Component "${i}" is not registered`),null}const c=rc(i);if(!c){const d=new Error(`Failed to load component: "${i}"`);return r?.(d,e),console.error(`Failed to load component: "${i}"`),null}const f={...o,...l,id:a||o?.id};n&&Object.keys(f).forEach(d=>{const m=f[d];if(typeof m=="string"&&m.startsWith("@action:")){const k=m.replace("@action:","");n[k]&&(f[d]=n[k])}}),t&&(f.className=o?.className?`${o.className} ${t}`:t);const h=d=>{if(d){if(Array.isArray(d))return d.map((m,k)=>m&&typeof m=="object"&&m.type?g.jsx(Ct,{config:m,handlers:n,onError:r},m.id||`child-${k}`):m);if(d&&typeof d=="object"&&d.type){const m=d.id||d.data?.id||d.type;return g.jsx(Ct,{config:d,handlers:n,onError:r},m)}return d}};if(s!==void 0)if(i==="Header"){const d=h(s);if(d&&Array.isArray(d)){const m=d.filter(b=>b?.props.config.type!=="IconButton"),k=d.filter(b=>b?.props.config.type==="IconButton");f.menuBar=m,f.utilityButtons=k}}else if(i==="MenuGrid"){const d=h(s);d&&(f.children=d)}else if(i==="Dropdown"){const d=h(s);f.children=d}else f.children=h(s);if(o?.items&&Array.isArray(o.items)&&(f.items=o.items.map((d,m)=>d&&typeof d=="object"&&d.type?g.jsx(Ct,{config:d,handlers:n,onError:r},d.id||`item-${m}`):d)),o?.embeddedView&&typeof o.embeddedView=="object"&&o.embeddedView.type){const d=o.embeddedView.id||o.embeddedView.data?.id||o.embeddedView.type;f.embeddedView=g.jsx(Ct,{config:o.embeddedView,handlers:n,onError:r},d)}try{return g.jsx(c,{...f},u)}catch(d){const m=d instanceof Error?d:new Error("Unknown rendering error");return r?.(m,e),console.error(`Error rendering component "${i}":`,d),g.jsxs("div",{className:"error-boundary",style:{border:"1px solid red",padding:"1rem",color:"red",background:"#fee"},children:["Error rendering ",i,": ",m.message]},u)}},ib=({imageSrc:e,companyName:t,description:n,columns:r,socialLinks:i,copyright:o,inverted:s=!1,className:a=""})=>{const l=`footer ${s?"theme-inverted":""} ${a}`.trim(),u=()=>!e&&!t?null:g.jsxs("div",{className:"footer-logo-container",children:[e&&g.jsx("img",{src:e,alt:t||"Logo",className:"footer-logo-img"}),t&&g.jsx("span",{className:"footer-company-name",children:t})]});return g.jsx("footer",{className:l,children:g.jsxs("div",{className:"footer-container",children:[g.jsxs("div",{className:"footer-grid",children:[g.jsxs("div",{className:"footer-brand",children:[g.jsx("div",{className:"footer-logo",children:u()}),n&&g.jsx("p",{className:"footer-description",children:n}),i&&g.jsx("div",{className:"footer-social",children:i.map((c,f)=>g.jsx("a",{href:c.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:g.jsx(he,{icon:c.icon,width:"24",height:"24"})},f))})]}),r.map((c,f)=>g.jsxs("div",{className:"footer-column",children:[g.jsx("h4",{className:"footer-column-title",children:c.title}),g.jsx("div",{className:"footer-links",children:c.links.map((h,d)=>h.href.startsWith("http")?g.jsx("a",{href:h.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:h.label},d):g.jsx(Bn.Link,{to:h.href,className:"footer-link",children:h.label},d))})]},f))]}),g.jsxs("div",{className:"footer-bottom",children:[g.jsx("div",{className:"footer-copyright",children:o||`© ${new Date().getFullYear()} Company Name. All rights reserved.`}),g.jsx("div",{className:"footer-legal"})]})]})})},ob=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[o,s]=D.useState(new Set),a=D.useRef({}),l=u=>{s(c=>{const f=new Set(i?c:[]);return c.has(u)?f.delete(u):f.add(u),f})};return g.jsx("section",{className:`accordion-section ${r}`,children:g.jsxs("div",{className:"accordion-container",children:[(e||t)&&g.jsxs("div",{className:"accordion-header-section",children:[e&&g.jsx("h2",{className:"accordion-title",children:e}),t&&g.jsx("p",{className:"accordion-subtitle",children:t})]}),g.jsx("div",{className:"accordion-list",children:n.map(u=>{const c=o.has(u.id);return g.jsxs("div",{className:`accordion-item ${c?"open":""}`,children:[g.jsxs("button",{className:"accordion-trigger",onClick:()=>l(u.id),"aria-expanded":c,"aria-controls":`content-${u.id}`,children:[g.jsx("span",{className:"accordion-item-title",children:u.title}),g.jsx(he,{icon:"mdi:chevron-down",width:"24",height:"24",className:`accordion-icon ${c?"rotate":""}`})]}),g.jsx("div",{id:`content-${u.id}`,className:"accordion-content",style:{height:c?a.current[u.id]?.scrollHeight:0},children:g.jsx("div",{ref:f=>{a.current[u.id]=f},className:"accordion-content-inner",children:u.content})})]},u.id)})})]})})};let sb;function ab({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[o,s]=D.useState(null),[a,l]=D.useState(r),[u,c]=D.useState(null),f=i||sb,h=async(d,m)=>{if(!f){c("API service not configured"),l(!1);return}const k=d||t;l(!0),c(null);try{const b=new URLSearchParams({story:k,...n,...m}).toString(),x=b?`${e}?${b}`:e,S=await f.get(x);S.status===200?s(S.data):c(`Error ${S.status}: ${S.statusText}`)}catch(b){console.error(`Failed to fetch from ${e}:`,b),c(b.message||"Failed to fetch configuration")}finally{l(!1)}};return D.useEffect(()=>{r&&f?h():r&&!f&&(c("API service not configured"),l(!1))},[e,t,JSON.stringify(n),r,f]),{data:o,loading:a,error:u,refetch:h,setData:s}}const lb={MenuGridItem:"/menu-grid-item",MenuGrid:"/menu-grid",Dropdown:"/dropdown",Header:"/header",HamburgerMenu:"/hamburger-menu",Hero:"/hero",Card:"/card",ItemsAccordion:"/items-accordion",Footer:"/footer",Stats:"/stats",FeatureSplit:"/feature-split",ContentBlock:"/content-block",FeaturesSection:"/features-section",BentoGrid:"/bento-grid",CTASection:"/cta-section",Testimonials:"/testimonials"};function me(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,o=lb[t],s={};return r&&(s.variant=r),ab({endpoint:o,storyName:n,params:s,apiService:i})}function ub(e,t,n){return me({component:"MenuGridItem",story:e,apiService:t,variant:n})}function cb(e,t,n){return me({component:"MenuGrid",story:e,apiService:t,variant:n})}function fb(e,t,n){return me({component:"Dropdown",story:e,apiService:t,variant:n})}function db(e,t,n){return me({component:"HamburgerMenu",story:e,apiService:t,variant:n})}function hb(e,t,n){return me({component:"Hero",story:e,apiService:t,variant:n})}function pb(e,t,n){return me({component:"Header",story:e,apiService:t,variant:n})}function mb(e,t,n){return me({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function gb(e,t,n){return me({component:"Footer",story:e,apiService:t,variant:n})}function yb(e,t,n){return me({component:"Stats",story:e,apiService:t,variant:n})}function xb(e,t,n){return me({component:"FeatureSplit",story:e,apiService:t,variant:n})}function bb(e,t,n){return me({component:"ContentBlock",story:e,apiService:t,variant:n})}function vb(e,t,n){return me({component:"FeaturesSection",story:e,apiService:t,variant:n})}function wb(e,t,n){return me({component:"BentoGrid",story:e,apiService:t,variant:n})}function kb(e,t,n){return me({component:"CTASection",story:e,apiService:t,variant:n})}function Sb(e,t,n){return me({component:"Testimonials",story:e,apiService:t,variant:n})}$.BentoGrid=Do,$.CTASection=ec,$.Card=Xn,$.ContentBlock=Qu,$.Dropdown=hi,$.DropdownProvider=_m,$.DynamicRenderer=Ct,$.FeatureItem=Zi,$.FeatureSplit=Xu,$.FeaturesSection=Zu,$.Footer=ib,$.HamburgerMenu=Qn,$.Header=Mo,$.Hero=Al,$.IconButton=Dl,$.ItemsAccordion=ob,$.MenuGrid=El,$.MenuGridItem=Pl,$.MenuItem=Cl,$.Stats=Ju,$.Testimonials=tc,$.baseComponents=nc,$.getComponent=rc,$.registerComponent=tb,$.useBentoGridConfig=wb,$.useCTASectionConfig=kb,$.useContentBlockConfig=bb,$.useDropdownConfig=fb,$.useFeatureSplitConfig=xb,$.useFeaturesSectionConfig=vb,$.useFooterConfig=gb,$.useHamburgerMenuConfig=db,$.useHeaderConfig=pb,$.useHeroConfig=hb,$.useItemsAccordionConfig=mb,$.useMenuGridConfig=cb,$.useMenuGridItemConfig=ub,$.useStatsConfig=yb,$.useTestimonialsConfig=Sb,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
21
+ //# sourceMappingURL=index.umd.js.map