@sankhyatronics/sankhya-ui 0.0.5 → 0.0.7
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.
- package/dist/components/BentoGrid/BentoGrid.d.ts +1 -0
- package/dist/components/Common/DynamicRenderer.constants.d.ts +0 -1
- package/dist/components/Common/DynamicRenderer.interfaces.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +0 -1
- package/dist/components/IconButton/IconButton.d.ts +0 -3
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/hooks/useDataConfig.d.ts +0 -7
- package/dist/hooks/useTypedApiConfig.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +2872 -3000
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/HamburgerMenu/HamburgerMenu.d.ts +0 -7
- package/dist/hooks/useBreakpointTouch.d.ts +0 -21
package/dist/index.umd.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
(function(z,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-router")):typeof define=="function"&&define.amd?define(["exports","react","react-router"],I):(z=typeof globalThis<"u"?globalThis:z||self,I(z["react-jp-ui"]={},z.React,z.ReactRouter))})(this,(function(z,I,zn){"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}}.select-options-group{padding:.5rem;display:flex;flex-direction:column;gap:.25rem}.select-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;border-radius:.375rem;transition:all .2s ease}.option-icon{display:flex;align-items:center;font-size:1.25rem}.option-label{flex:1}.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(
|
|
1
|
+
(function($,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react"),require("react-router")):typeof define=="function"&&define.amd?define(["exports","react","react-router"],j):($=typeof globalThis<"u"?globalThis:$||self,j($["react-jp-ui"]={},$.React,$.ReactRouter))})(this,(function($,j,Bn){"use strict";var Ji=document.createElement("style");Ji.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)}.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-text{border-radius:8px;padding:16px;color:var(--color-primary)}.bento-card-title{font-size:1rem}.bento-card-description{font-size:.875rem}.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{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-toggle{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:.5rem;font-size:1.5rem;color:var(--color-primary-950);z-index:1002}.header-nav-container{position:fixed;inset:0;background-color:var(--color-primary);display:none;flex-direction:column;padding:5rem 1.5rem 2rem;gap:2rem;z-index:1001;overflow-y:auto}.header-nav-container.active{display:flex;animation:headerFadeIn .3s ease}.header-nav{display:flex;flex-direction:column;gap:1.5rem}.header-utility{display:flex;flex-direction:column;gap:1.5rem;padding-top:1.5rem;border-top:1px solid var(--color-primary-200)}@media(min-width:768px){.header{padding:1rem 2rem}.header-toggle{display:none}.header-nav-container{position:static;display:flex;flex-direction:row;flex-grow:1;padding:0;margin-left:4rem;gap:1rem;background:none;overflow:visible}.header-nav{flex-direction:row;flex-grow:1;gap:1.5rem}.header-utility{flex-direction:row;padding-top:0;margin-left:1.5rem;padding-left:1.5rem;border-top:none;border-left:1px solid var(--color-primary-200)}}.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}}.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:.5rem;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:80%;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}}.select-options-group{padding:.5rem;display:flex;flex-direction:column;gap:.25rem}.select-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;border-radius:.375rem;transition:all .2s ease}.option-icon{display:flex;align-items:center;font-size:1.25rem}.option-label{flex:1}.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}}.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)}.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{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(Ji);function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn={exports:{}},Et={};var to;function lc(){if(to)return Et;to=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 Et.Fragment=t,Et.jsx=n,Et.jsxs=n,Et}var At={};var no;function uc(){return no||(no=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===L?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case v:return"Fragment";case S:return"Profiler";case g:return"StrictMode";case k:return"Suspense";case N:return"SuspenseList";case B: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 m:return"Portal";case P:return C.displayName||"Context";case w:return(C._context.displayName||"Context")+".Consumer";case E: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 O: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===v)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===O)return"<...>";try{var z=e(C);return z?"<"+z+">":"<...>"}catch{return"<...>"}}function i(){var C=R.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:b,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(F(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
3
|
let props = %s;
|
|
4
4
|
<%s {...props} />
|
|
5
5
|
React keys must be passed directly to JSX without using spread:
|
|
6
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(_)&&(n(_.key),te=""+_.key),"key"in _){p={};for(var Fe in _)Fe!=="key"&&(p[Fe]=_[Fe])}else p=_;return te&&a(p,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,te,p,i(),Ie,oe)}function f(C){d(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===F&&(C._payload.status==="fulfilled"?d(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function d(C){return typeof C=="object"&&C!==null&&C.$$typeof===v}var h=I,v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),k=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"),V=Symbol.for("react.client.reference"),R=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,B=Array.isArray,D=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(C){return C()}};var G,W={},Q=h.react_stack_bottom_frame.bind(h,o)(),le=D(r(o)),y={};At.Fragment=g,At.jsx=function(C,_,p){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,_,p,!1,X?Error("react-stack-top-frame"):Q,X?D(r(C)):le)},At.jsxs=function(C,_,p){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,_,p,!0,X?Error("react-stack-top-frame"):Q,X?D(r(C)):le)}})()),At}var io;function dc(){return io||(io=1,process.env.NODE_ENV==="production"?sn.exports=cc():sn.exports=fc()),sn.exports}var m=dc();function hc(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}),_n=Object.freeze({...oo,...an}),$n=Object.freeze({..._n,body:"",hidden:!1});function pc(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=pc(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 mc(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=hc(e);for(const i in r){const o=r[i];o&&(t(i,mc(e,i,o)),n.push(i))}return n}const gc={provider:"",aliases:{},not_found:{},...oo};function Un(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"||!Un(e,gc))return null;const n=t.icons;for(const i in n){const o=n[i];if(!i||typeof o.body!="string"||!Un(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]||!Un(o,$n))return null}return t}const uo=Object.create(null);function yc(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]=yc(e,t))}function co(e,t){return lo(t)?ao(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function xc(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 bc(e,t){const n=ln(e,!0,It);if(!n)return!1;const r=ot(n.provider,n.prefix);return t?xc(r,n.name,t):(r.missing.add(n.name),!0)}function vc(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)=>{bc(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}),wc=/(-?[0-9.]*[0-9]+[0-9.]*)/g,kc=/^-?[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(wc);if(r===null||!r.length)return e;const i=[];let o=r.shift(),s=kc.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 Sc(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 Tc(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Cc(e,t,n){const r=Sc(e);return Tc(r.defs,t+r.content+n)}const Ec=e=>e==="unset"||e==="undefined"||e==="none";function Pc(e,t){const n={..._n,...e},r={...go,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(b=>{const g=[],x=b.hFlip,S=b.vFlip;let w=b.rotate;x?S?w+=2:(g.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),g.push("scale(-1 1)"),i.top=i.left=0):S&&(g.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),g.push("scale(1 -1)"),i.top=i.left=0);let E;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:E=i.height/2+i.top,g.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:g.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,g.unshift("rotate(-90 "+E.toString()+" "+E.toString()+")");break}w%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)),g.length&&(o=Cc(o,'<g transform="'+g.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 d={},h=(b,g)=>{Ec(g)||(d[b]=g.toString())};h("width",c),h("height",f);const v=[i.left,i.top,l,u];return d.viewBox=v.join(" "),{attributes:d,viewBox:v,body:o}}const Ac=/\sid="(\S+)"/g,Ic="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let jc=0;function Dc(e,t=Ic){const n=[];let r;for(;r=Ac.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+(jc++).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 Hn=Object.create(null);function Mc(e,t){Hn[e]=t}function Wn(e){return Hn[e]||Hn[""]}function qn(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 Gn=Object.create(null),jt=["https://api.simplesvg.com","https://api.unisvg.com"],cn=[];for(;jt.length>0;)jt.length===1||Math.random()>.5?cn.push(jt.shift()):cn.push(jt.pop());Gn[""]=qn({resources:["https://api.iconify.design"].concat(cn)});function Nc(e,t){const n=qn(t);return n===null?!1:(Gn[e]=n,!0)}function Yn(e){return Gn[e]}let xo=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Lc(e,t){const n=Yn(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 Vc(e){return e===404}const Rc=(e,t,n)=>{const r=[],i=Lc(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 Oc(e){if(typeof e=="string"){const t=Yn(e);if(t)return t.path}return"/"}const Fc={prepare:Rc,send:(e,t,n)=>{if(!xo){n("abort",424);return}let r=Oc(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(Vc(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 Bc(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 zc=0;function _c(e,t,n){const r=zc++,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 Uc(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 Hc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Wc(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 k=e.resources.slice(0);for(s=[];k.length>1;){const N=Math.floor(Math.random()*k.length);s.push(k[N]),k=k.slice(0,N).concat(k.slice(N+1))}s=s.concat(k)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let l="pending",u=0,c,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function v(){f&&(clearTimeout(f),f=null)}function b(){l==="pending"&&(l="aborted"),v(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function g(k,N){N&&(h=[]),typeof k=="function"&&h.push(k)}function x(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:g,abort:b}}function S(){l="failed",h.forEach(k=>{k(void 0,c)})}function w(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function E(k,N,M){const F=N!=="success";switch(d=d.filter(O=>O!==k),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,d.length||(s.length?P():S());return}if(v(),w(),!e.random){const O=e.resources.indexOf(k.resource);O!==-1&&O!==e.index&&(e.index=O)}l="completed",h.forEach(O=>{O(M)})}function P(){if(l!=="pending")return;v();const k=s.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{v(),l==="pending"&&(w(),S())},e.timeout);return}S();return}const N={status:"pending",resource:k,callback:(M,F)=>{E(N,M,F)}};d.push(N),u++,f=setTimeout(P,e.rotate),n(k,t,N.callback)}return setTimeout(P),x}function vo(e){const t={...Hc,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,l,u){const c=Wc(t,a,l,(f,d)=>{r(),u&&u(f,d)});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 Kn=Object.create(null);function qc(e){if(!Kn[e]){const t=Yn(e);if(!t)return;const n=vo(t),r={config:t,redundancy:n};Kn[e]=r}return Kn[e]}function Gc(e,t,n){let r,i;if(typeof e=="string"){const o=Wn(e);if(!o)return n(void 0,424),wo;i=o.send;const s=qc(e);s&&(r=s.redundancy)}else{const o=qn(e);if(o){r=vo(o);const s=e.resources?e.resources[0]:"",a=Wn(s);a&&(i=a.send)}}return!r||!i?(n(void 0,424),wo):r.query(t,i,n)().abort}function ko(){}function Yc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Bc(e)}))}function Kc(e){const t=[],n=[];return e.forEach(r=>{(r.match(fo)?t:n).push(r)}),{valid:t,invalid:n}}function Dt(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(),Yc(e)}function So(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Xc(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=>{Dt(e,i,c)});return}if(o){i.forEach(c=>{const f=o(c,r,n);So(f,d=>{const h=d?{prefix:r,icons:{[c]:d}}:null;Dt(e,[c],h)})});return}const{valid:s,invalid:a}=Kc(i);if(a.length&&Dt(e,a,null),!s.length)return;const l=r.match(fo)?Wn(n):null;if(!l){Dt(e,s,null);return}l.prepare(n,r,s).forEach(c=>{Gc(n,c,f=>{Dt(e,c.icons,f)})})}))}const Qc=(e,t)=>{const n=Uc(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,d=ot(u,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[u][c].push(f))}),o.forEach(l=>{const u=i[l.provider][l.prefix];u.length&&Xc(l,u)}),t?_c(t,r,o):ko};function Zc(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 Jc=/[\s,]+/;function ef(e,t){t.split(Jc).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function tf(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 nf(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 rf(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function of(e){return"data:image/svg+xml,"+rf(e)}function sf(e){return'url("'+of(e)+'")'}let Mt;function af(){try{Mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Mt=null}}function lf(e){return Mt===void 0&&af(),Mt?Mt.createHTML(e):e}const To={...go,inline:!1},uf={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},cf={display:"inline-block"},Xn={backgroundColor:"currentColor"},Co={backgroundColor:"transparent"},Eo={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Po={WebkitMask:Xn,mask:Xn,background:Co};for(const e in Po){const t=Po[e];for(const n in Eo)t[e+n]=Eo[n]}const ff={...To,inline:!0};function Ao(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const df=(e,t,n)=>{const r=t.inline?ff:To,i=Zc(r,t),o=t.mode||"svg",s={},a=t.style||{},l={...o==="svg"?uf:{}};if(n){const g=ln(n,!1,!0);if(g){const x=["iconify"],S=["provider","prefix"];for(const w of S)g[w]&&x.push("iconify--"+g[w]);l.className=x.join(" ")}}for(let g in t){const x=t[g];if(x!==void 0)switch(g){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=x;break;case"className":l[g]=(l[g]?l[g]+" ":"")+x;break;case"inline":case"hFlip":case"vFlip":i[g]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&ef(i,x);break;case"color":s.color=x;break;case"rotate":typeof x=="string"?i[g]=tf(x):typeof x=="number"&&(i[g]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete l["aria-hidden"];break;default:r[g]===void 0&&(l[g]=x)}}const u=Pc(e,i),c=u.attributes;if(i.inline&&(s.verticalAlign="-0.125em"),o==="svg"){l.style={...s,...a},Object.assign(l,c);let g=0,x=t.id;return typeof x=="string"&&(x=x.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:lf(Dc(u.body,x?()=>x+"ID"+g++:"iconifyReact"))},I.createElement("svg",l)}const{body:f,width:d,height:h}=e,v=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),b=nf(f,{...c,width:d+"",height:h+""});return l.style={...s,"--svg":sf(b),width:Ao(c.width),height:Ao(c.height),...cf,...v?Xn:Co,...a},I.createElement("span",l)};if(ho(!0),Mc("",Fc),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"||!vc(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;Nc(n,i)||console.error(r)}catch{console.error(r)}}}}function Io(e){const[t,n]=I.useState(!!e.ssr),[r,i]=I.useState({});function o(h){if(h){const v=e.icon;if(typeof v=="object")return{name:"",data:v};const b=po(v);if(b)return{name:v,data:b}}return{name:""}}const[s,a]=I.useState(o(!!e.ssr));function l(){const h=r.callback;h&&(h(),i({}))}function u(h){if(JSON.stringify(s)!==JSON.stringify(h))return l(),a(h),!0}function c(){var h;const v=e.icon;if(typeof v=="object"){u({name:"",data:v});return}const b=po(v);if(u({name:v,data:b}))if(b===void 0){const g=Qc([v],c);i({callback:g})}else b&&((h=e.onLoad)===null||h===void 0||h.call(e,v))}I.useEffect(()=>(n(!0),l),[]),I.useEffect(()=>{t&&c()},[e.icon,t]);const{name:f,data:d}=s;return d?df({..._n,...d},e,f):e.children?e.children:e.fallback?e.fallback:I.createElement("span",{})}const fe=I.forwardRef((e,t)=>Io({...e,_ref:t}));I.forwardRef((e,t)=>Io({inline:!0,...e,_ref:t}));const jo=({title:e,subtitle:t,items:n,className:r="",inverted:i=!1})=>m.jsx("section",{className:`bento-grid-section ${i?"theme-inverted":""} ${r}`,children:m.jsxs("div",{className:"bento-grid-container",children:[(e||t)&&m.jsxs("div",{className:"bento-grid-header",children:[e&&m.jsx("h2",{className:"section-title bento-grid-title",children:e}),t&&m.jsx("p",{className:"section-subtitle bento-grid-subtitle",children:t})]}),m.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 m.jsxs(u,{...c,children:[o.image&&m.jsx("div",{className:"bento-card-image-wrapper",children:m.jsx("img",{src:o.image.imageSrc,alt:o.image.alt,className:"bento-card-image"})}),m.jsxs("div",{className:"bento-card-content",children:[o.icon&&m.jsx("div",{className:"bento-card-icon",children:m.jsx(fe,{icon:o.icon,width:"24",height:"24"})}),m.jsxs("div",{className:"bento-card-text",children:[m.jsx("h3",{className:"card-title bento-card-title",children:o.title}),o.description&&m.jsx("p",{className:"card-description bento-card-description",children:o.description})]})]})]},s)})})]})}),Qn=({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}`,hf("elevation",o),i?"card-hoverable":"",a?"theme-inverted":"",t].filter(Boolean).join(" ");return m.jsx("div",{className:l,onClick:s,children:e})},hf=(e,t)=>t&&t!=="none"?`card-${e}-${t}`:"",Zn=({children:e,className:t="",position:n="right",label:r="Toggle menu"})=>{const[i,o]=I.useState(!1),s=I.useRef(null);I.useEffect(()=>{const u=c=>{s.current&&!s.current.contains(c.target)&&o(!1)};return i&&document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}},[i]),I.useEffect(()=>{const u=c=>{c.key==="Escape"&&o(!1)};return i&&document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[i]),I.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 m.jsxs("div",{className:`hamburger-menu ${t}`,ref:s,children:[m.jsx("button",{className:"hamburger-toggle",onClick:a,"aria-label":r,"aria-expanded":i,children:m.jsx(fe,{icon:i?"mdi:close":"mdi:menu",width:"24",height:"24"})}),i&&m.jsx("div",{className:"hamburger-overlay",onClick:()=>o(!1)}),m.jsx("div",{className:`hamburger-content-container ${t} ${n} ${i?"open":""}`,onClick:l,children:m.jsx("div",{className:"hamburger-content",children:e})})]})},Do=(e={})=>{const{breakpoint:t=768,useActualDetection:n=!0,touchClassName:r="touch-device"}=e,[i,o]=I.useState(!1),s=I.useRef(null);return I.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,d=Do({breakpoint:o});return m.jsxs("header",{className:`header ${r?"header-sticky":""} ${f?"theme-inverted":""} ${i}`,children:[m.jsx("div",{className:"header-logo-wrapper",children:a&&m.jsx("a",{href:s||"#",target:l,className:`${u} hover-lift`,"aria-label":"Home",children:m.jsx("img",{src:a,alt:c,className:"header-logo-img"})})}),m.jsxs("div",{className:`header-right ${d?"header-right-hidden":""}`,children:[m.jsx("div",{className:"header-nav",children:t}),n&&n.length>0&&m.jsx("div",{className:"header-utility",children:n})]}),d&&m.jsxs("div",{className:"header-mobile-wrapper",children:[n&&n.length>0&&m.jsx("div",{className:"header-mobile-utility",children:n}),m.jsx("div",{className:"header-hamburger",children:m.jsx(Zn,{position:"right",label:"Navigation menu",children:m.jsxs("div",{className:"header-mobile-menu-content",children:[t,n&&n.length>0&&m.jsx(m.Fragment,{children:m.jsxs("div",{className:"header-mobile-settings",children:[m.jsx("h3",{className:"header-mobile-settings-title",children:"Settings"}),n]})})]})})})]})]})},No=I.createContext({});function pf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jn=typeof window<"u",mf=Jn?I.useLayoutEffect:I.useEffect,er=I.createContext(null);function tr(e,t){e.indexOf(t)===-1&&e.push(t)}function nr(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 rr(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(rr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(rr(t,n))});const _e={},Lo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Vo(e){return typeof e=="object"&&e!==null}const Ro=e=>/^0[^.\s]+$/u.test(e);function ir(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,gf=(e,t)=>n=>t(e(n)),Nt=(...e)=>e.reduce(gf),Lt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class or{constructor(){this.subscriptions=[]}add(t){return tr(this.subscriptions,t),()=>nr(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 je=e=>e*1e3,Ee=e=>e/1e3;function Oo(e,t){return t?e*(1e3/t):0}const Fo=new Set;function sr(e,t,n){e||Fo.has(t)||(console.warn(rr(t,n)),Fo.add(t))}const Bo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yf=1e-7,xf=12;function bf(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)>yf&&++a<xf);return s}function Vt(e,t,n,r){if(e===t&&n===r)return Ce;const i=o=>bf(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=Vt(.33,1.53,.69,.99),ar=_o($o),Uo=zo(ar),Ho=e=>(e*=2)<1?.5*ar(e):.5*(2-Math.pow(2,-10*(e-1))),lr=e=>1-Math.sin(Math.acos(e)),Wo=_o(lr),qo=zo(lr),vf=Vt(.42,0,1,1),wf=Vt(0,0,.58,1),Go=Vt(.42,0,.58,1),kf=e=>Array.isArray(e)&&typeof e[0]!="number",Yo=e=>Array.isArray(e)&&typeof e[0]=="number",Ko={linear:Ce,easeIn:vf,easeInOut:Go,easeOut:wf,circIn:lr,circInOut:qo,circOut:Wo,backIn:ar,backInOut:Uo,backOut:$o,anticipate:Ho},Sf=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 Vt(t,n,r,i)}else if(Sf(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 Tf(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,d=!1)=>{const v=d&&i?n:r;return f&&s.add(c),v.has(c)||v.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 Cf=40;function Qo(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=fn.reduce((w,E)=>(w[E]=Tf(o),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:h,postRender:v}=s,b=()=>{const w=_e.useManualTiming?i.timestamp:performance.now();n=!1,_e.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,Cf),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),h.process(i),v.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},g=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:fn.reduce((w,E)=>{const P=s[E];return w[E]=(k,N=!1,M=!1)=>(n||g(),P.schedule(k,N,M)),w},{}),cancel:w=>{for(let E=0;E<fn.length;E++)s[fn[E]].cancel(w)},state:i,steps:s}}const{schedule:ne,cancel:He,state:ce,steps:ur}=Qo(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let dn;function Ef(){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(Ef)}},Zo=e=>t=>typeof t=="string"&&t.startsWith(e),Jo=Zo("--"),Pf=Zo("var(--"),cr=e=>Pf(e)?Af.test(e.split("/*")[0].trim()):!1,Af=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,at={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Rt={...at,transform:e=>Be(0,1,e)},hn={...at,default:1},Ot=e=>Math.round(e*1e5)/1e5,fr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function If(e){return e==null}const jf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dr=(e,t)=>n=>!!(typeof n=="string"&&jf.test(n)&&n.startsWith(e)||t&&!If(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(fr);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Df=e=>Be(0,255,e),hr={...at,transform:e=>Math.round(Df(e))},Qe={test:dr("rgb","red"),parse:es("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+hr.transform(e)+", "+hr.transform(t)+", "+hr.transform(n)+", "+Ot(Rt.transform(r))+")"};function Mf(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 pr={test:dr("#"),parse:Mf,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"),Nf=Ft("vh"),Lf=Ft("vw"),ts={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},lt={test:dr("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(Rt.transform(r))+")"},se={test:e=>Qe.test(e)||pr.test(e)||lt.test(e),parse:e=>Qe.test(e)?Qe.parse(e):lt.test(e)?lt.parse(e):pr.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)}},Vf=/(?:#[\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(fr)?.length||0)+(e.match(Vf)?.length||0)>0}const ns="number",rs="color",Of="var",Ff="var(",is="${}",Bf=/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(Bf,l=>(se.test(l)?(r.color.push(o),i.push(rs),n.push(se.parse(l))):l.startsWith(Ff)?(r.var.push(o),i.push(Of),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 zf=e=>typeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function _f(e){const t=os(e);return ss(e)(t.map(zf))}const qe={test:Rf,parse:os,createTransformer:ss,getAnimatableNone:_f};function mr(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=mr(l,a,e+1/3),o=mr(l,a,e),s=mr(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,gr=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Uf=[pr,Qe,lt],Hf=e=>Uf.find(t=>t.test(e));function as(e){const t=Hf(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=gr(n.red,r.red,o),i.green=gr(n.green,r.green,o),i.blue=gr(n.blue,r.blue,o),i.alpha=re(n.alpha,r.alpha,o),Qe.transform(i))},yr=new Set(["none","hidden"]);function Wf(e,t){return yr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qf(e,t){return n=>re(e,t,n)}function xr(e){return typeof e=="number"?qf:typeof e=="string"?cr(e)?pn:se.test(e)?ls:Kf:Array.isArray(e)?us:typeof e=="object"?se.test(e)?ls:Gf:pn}function us(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>xr(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Gf(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=xr(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Yf(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 Kf=(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?yr.has(e)&&!i.values.length||yr.has(t)&&!r.values.length?Wf(e,t):Nt(us(Yf(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):xr(e)(e,t)}const Xf=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 br(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 Qf(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(br(r),mn);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Ee(i)}}const Zf=5;function ds(e,t,n){const r=Math.max(t-Zf,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},vr=.001;function Jf({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:r=ie.mass}){let i,o;st(e<=je(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,d=c-n,h=wr(u,s),v=Math.exp(-f);return vr-d/h*v},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-f),b=wr(Math.pow(u,2),s);return(-i(u)+vr>0?-1:1)*((d-h)*v)/b}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-vr+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=td(i,o,a);if(e=je(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 ed=12;function td(e,t,n){let r=n;for(let i=1;i<ed;i++)r=r-e(r)/t(r);return r}function wr(e,t){return e*Math.sqrt(1-t*t)}const nd=["duration","bounce"],rd=["stiffness","damping","mass"];function hs(e,t){return t.some(n=>e[n]!==void 0)}function id(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!hs(e,rd)&&hs(e,nd))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=Jf(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:d,isResolvedFromDuration:h}=id({...n,velocity:-Ee(n.velocity||0)}),v=d||0,b=u/(2*Math.sqrt(l*c)),g=s-o,x=Ee(Math.sqrt(l/c)),S=Math.abs(g)<5;r||(r=S?ie.restSpeed.granular:ie.restSpeed.default),i||(i=S?ie.restDelta.granular:ie.restDelta.default);let w;if(b<1){const P=wr(x,b);w=k=>{const N=Math.exp(-b*x*k);return s-N*((v+b*x*g)/P*Math.sin(P*k)+g*Math.cos(P*k))}}else if(b===1)w=P=>s-Math.exp(-x*P)*(g+(v+x*g)*P);else{const P=x*Math.sqrt(b*b-1);w=k=>{const N=Math.exp(-b*x*k),M=Math.min(P*k,300);return s-N*((v+b*x*g)*Math.sinh(M)+P*g*Math.cosh(M))/P}}const E={calculatedDuration:h&&f||null,next:P=>{const k=w(P);if(h)a.done=P>=f;else{let N=P===0?v:0;b<1&&(N=P===0?je(v):ds(w,P,k));const M=Math.abs(N)<=r,F=Math.abs(s-k)<=i;a.done=M&&F}return a.value=a.done?s:k,a},toString:()=>{const P=Math.min(br(E),mn),k=fs(N=>E.next(P*N).value,P,30);return P+"ms "+k},toTransition:()=>{}};return E}gn.applyToOptions=e=>{const t=Qf(e,100,gn);return e.ease=t.ease,e.duration=je(t.duration),e.type="keyframes",e};function kr({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],d={done:!1,value:f},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,v=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let b=n*t;const g=f+b,x=s===void 0?g:s(g);x!==g&&(b=x-f);const S=M=>-b*Math.exp(-M/r),w=M=>x+S(M),E=M=>{const F=S(M),O=w(M);d.done=Math.abs(F)<=u,d.value=d.done?x:O};let P,k;const N=M=>{h(d.value)&&(P=M,k=gn({keyframes:[d.value,v(d.value)],velocity:ds(w,M,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:M=>{let F=!1;return!k&&P===void 0&&(F=!0,E(M),N(M)),P!==void 0&&M>=P?k.next(M-P):(!F&&E(M),d)}}}function od(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 sd(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=od(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 d=Lt(e[f],e[f+1],c);return a[f](d)};return n?c=>u(Be(e[0],e[o-1],c)):u}function ad(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 ld(e){const t=[0];return ad(t,e.length-1),t}function ud(e,t){return e.map(n=>n*t)}function cd(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=kf(r)?r.map(Xo):Xo(r),o={done:!1,value:t[0]},s=ud(n&&n.length===t.length?n:ld(t),e),a=sd(s,t,{ease:Array.isArray(i)?i:cd(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const fd=e=>e!==null;function Sr(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(fd),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const dd={decay:kr,inertia:kr,tween:ut,keyframes:ut,spring:gn};function ps(e){typeof e.type=="string"&&(e.type=dd[e.type])}class Tr{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 hd=e=>e/100;class Cr extends Tr{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(hd,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=br(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:d,repeatDelay:h,type:v,onUpdate:b,finalKeyframe:g}=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 w=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)&&(d==="reverse"?(O=1-O,h&&(O-=h/a)):d==="mirror"&&(E=s)),w=Be(0,1,O)*a}const P=S?{done:!1,value:c[0]}:E.next(w);o&&(P.value=o(P.value));let{done:k}=P;!S&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&v!==kr&&(P.value=Sr(c,this.options,g,this.speed)),b&&b(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=je(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=Xf,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 pd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ze=e=>e*180/Math.PI,Er=e=>{const t=Ze(Math.atan2(e[1],e[0]));return Pr(t)},md={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Er,rotateZ:Er,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},Pr=e=>(e=e%360,e<0&&(e+=360),e),ms=Er,gs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ys=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),gd={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=>Pr(Ze(Math.atan2(e[6],e[5]))),rotateY:e=>Pr(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 Ar(e){return e.includes("scale")?1:0}function Ir(e,t){if(!e||e==="none")return Ar(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=gd,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=md,i=a}if(!i)return Ar(t);const o=r[t],s=i[1].split(",").map(xd);return typeof o=="function"?o(s):s[o]}const yd=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ir(n,t)};function xd(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,bd=new Set(["x","y","z"]),vd=ct.filter(e=>!bd.has(e));function wd(e){const t=[];return vd.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})=>Ir(t,"x"),y:(e,{transform:t})=>Ir(t,"y")};Je.translateX=Je.x,Je.translateY=Je.y;const et=new Set;let jr=!1,Dr=!1,Mr=!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=wd(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,jr=!1,et.forEach(e=>e.complete(Mr)),et.clear()}function vs(){et.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dr=!0)})}function kd(){Mr=!0,vs(),bs(),Mr=!1}class Nr{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),jr||(jr=!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])}pd(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 Sd=e=>e.startsWith("--");function Td(e,t,n){Sd(t)?e.style.setProperty(t,n):e.style[t]=n}const Cd=ir(()=>window.ScrollTimeline!==void 0),Ed={};function Pd(e,t){const n=ir(e);return()=>Ed[t]??n()}const ws=Pd(()=>{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 Ad(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 d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function Ts(e){return typeof e=="function"&&"applyToOptions"in e}function Id({type:e,...t}){return Ts(e)&&ws()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class jd extends Tr{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=Id(t);this.animation=Ad(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Sr(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):Td(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=je(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&&Cd()?(this.animation.timeline=t,Ce):n(this)}}const Cs={anticipate:Ho,backInOut:Uo,circInOut:qo};function Dd(e){return e in Cs}function Md(e){typeof e.ease=="string"&&Dd(e.ease)&&(e.ease=Cs[e.ease])}const Es=10;class Nd extends jd{constructor(t){Md(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 Cr({...s,autoplay:!1}),l=je(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 Ld(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 Vd(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:Ld(e)||(n==="spring"||Ts(n))&&r}function Lr(e){e.duration=0,e.type="keyframes"}const Rd=new Set(["opacity","clipPath","filter","transform"]),Od=ir(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Fd(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 Od()&&n&&Rd.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const Bd=40;class zd extends Tr{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 d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},h=c?.KeyframeResolver||Nr;this.keyframeResolver=new h(a,(v,b,g)=>this.onKeyframesResolved(v,b,d,!g),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(),Vd(t,o,s,a)||((_e.instantAnimations||!l)&&c?.(Sr(t,r,n)),t[0]=t[t.length-1],Lr(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Bd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!u&&Fd(d)?new Nd({...d,element:d.motionValue.owner.current}):new Cr(d);h.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),kd()),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 _d=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $d(e){const t=_d.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Ud=4;function As(e,t,n=1){ze(n<=Ud,`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 cr(i)?As(i,t,n+1):i}function Vr(e,t){return e?.[t]??e?.default??e}const Is=new Set(["width","height","top","left","right","bottom",...ct]),Hd={test:e=>e==="auto",parse:e=>e},js=e=>t=>t.test(e),Ds=[at,L,Le,We,Lf,Nf,Hd],Ms=e=>Ds.find(js(e));function Wd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ro(e):!0}const qd=new Set(["brightness","contrast","saturate","opacity"]);function Gd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(fr)||[];if(!r)return e;const i=n.replace(r,"");let o=qd.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Yd=/\b([a-z-]*)\(.*?\)/gu,Rr={...qe,getAnimatableNone:e=>{const t=e.match(Yd);return t?t.map(Gd).join(" "):e}},Ns={...at,transform:Math.round},Or={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:Rt,originX:ts,originY:ts,originZ:L},zIndex:Ns,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Ns},Kd={...Or,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=>Kd[e];function Vs(e,t){let n=Ls(e);return n!==Rr&&(n=qe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xd=new Set(["auto","none","0"]);function Qd(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Xd.has(o)&&Bt(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Vs(n,i)}class Zd extends Nr{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(),cr(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||Wd(t[i]))&&r.push(i);r.length&&Qd(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 Jd(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 Rs=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function eh(e){return Vo(e)&&"offsetHeight"in e}const Os=30,th=e=>!isNaN(parseFloat(e));class nh{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=th(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&sr(!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 or);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 nh(e,t)}const{schedule:Fr}=Qo(queueMicrotask,!1),De={x:!1,y:!1};function Fs(){return De.x||De.y}function rh(e){return e==="x"||e==="y"?De[e]?null:(De[e]=!0,()=>{De[e]=!1}):De.x||De.y?null:(De.x=De.y=!0,()=>{De.x=De.y=!1})}function Bs(e,t){const n=Jd(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 ih(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,Br=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,oh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sh(e){return oh.has(e.tagName)||e.tabIndex!==-1}const yn=new WeakSet;function $s(e){return t=>{t.key==="Enter"&&e(t)}}function zr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ah=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=$s(()=>{if(yn.has(n))return;zr(n,"down");const i=$s(()=>{zr(n,"up")}),o=()=>zr(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 Br(e)&&!Fs()}function lh(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=(h,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),yn.has(l)&&yn.delete(l),Us(h)&&typeof u=="function"&&u(h,{success:v})},f=h=>{c(h,l===window||l===document||n.useGlobalTarget||_s(l,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),eh(a)&&(a.addEventListener("focus",u=>ah(u,i)),!sh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Hs(e){return Vo(e)&&"ownerSVGElement"in e}function uh(e){return Hs(e)&&e.tagName==="svg"}const de=e=>!!(e&&e.getVelocity),ch=[...Ds,se,qe],fh=e=>ch.find(js(e)),Ws=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function dh(e=!0){const t=I.useContext(er);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const s=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const qs=I.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 hh(e){for(const t in e)ht[t]={...ht[t],...e[t]}}const ph=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")||ph.has(e)}let Ys=e=>!xn(e);function mh(e){typeof e=="function"&&(Ys=t=>t.startsWith("on")?!xn(t):e(t))}try{mh(require("@emotion/is-prop-valid").default)}catch{}function gh(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=I.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 _r=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$r=["initial",..._r];function wn(e){return vn(e.animate)||$r.some(t=>_t(e[t]))}function Ks(e){return!!(wn(e)||e.variants)}function yh(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 xh(e){const{initial:t,animate:n}=yh(e,I.useContext(bn));return I.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}%`}},bh={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)}},Ur={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:bh};function Zs(e,{layout:t,layoutId:n}){return ft.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ur[e]||e==="opacity")}const vh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wh=ct.length;function kh(e,t,n){let r="",i=!0;for(let o=0;o<wh;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=Rs(a,Or[s]);if(!l){i=!1;const c=vh[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Hr(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=Rs(u,Or[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=kh(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 Wr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Js(e,t,n){for(const r in t)!de(t[r])&&!Zs(r,n)&&(e[r]=t[r])}function Sh({transformTemplate:e},t){return I.useMemo(()=>{const n=Wr();return Hr(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Th(e,t){const n=e.style||{},r={};return Js(r,n,e),Object.assign(r,Sh(e,t)),r}function Ch(e,t){const n={},r=Th(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 Eh={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ph={offset:"strokeDashoffset",array:"strokeDasharray"};function Ah(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Eh:Ph;e[o.offset]=L.transform(-r);const s=L.transform(t),a=L.transform(n);e[o.array]=`${s} ${a}`}const Ih=["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(Hr(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const h of Ih)f[h]!==void 0&&(d[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Ah(f,i,o,s,!1)}const ta=()=>({...Wr(),attrs:{}}),na=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jh(e,t,n,r){const i=I.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 qr(e){return typeof e!="string"||e.includes("-")?!1:!!(Dh.indexOf(e)>-1||/[A-Z]/u.test(e))}function Mh(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??qr(e)?jh:Ch)(t,r,i,e),u=gh(t,typeof e=="string",o),c=e!==I.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=I.useMemo(()=>de(f)?f.get():f,[f]);return I.createElement(e,{...c,children:d})}function ra(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Gr(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 de(e)?e.get():e}function Nh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Lh(n,r,i,e),renderState:t()}}function Lh(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=kn(o[d]);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 d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const v=Gr(e,d[h]);if(v){const{transitionEnd:b,transition:g,...x}=v;for(const S in x){let w=x[S];if(Array.isArray(w)){const E=c?w.length-1:0;w=w[E]}w!==null&&(i[S]=w)}for(const S in b)i[S]=b[S]}}}return i}const ia=e=>(t,n)=>{const r=I.useContext(bn),i=I.useContext(er),o=()=>Nh(e,t,r,i);return n?o():pf(o)};function Yr(e,t,n){const{style:r}=e,i={};for(const o in r)(de(r[o])||t.style&&de(t.style[o])||Zs(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}const Vh=ia({scrapeMotionValuesFromProps:Yr,createRenderState:Wr});function oa(e,t,n){const r=Yr(e,t,n);for(const i in e)if(de(e[i])||de(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}),Oh=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 Fh(e,t,n){const r=I.useRef(null);return I.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 Kr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),aa="data-"+Kr("framerAppearId"),la=I.createContext({});function Bh(e,t,n,r,i,o){const{visualElement:s}=I.useContext(bn),a=I.useContext(qs),l=I.useContext(er),u=I.useContext(Ws).reducedMotion,c=I.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,d=I.useContext(la);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&zh(c.current,n,i,d);const h=I.useRef(!1);I.useInsertionEffect(()=>{f&&h.current&&f.update(n,l)});const v=n[aa],b=I.useRef(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return mf(()=>{f&&(h.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),b.current&&f.animationState&&f.animationState.animateChanges())}),I.useEffect(()=>{f&&(!b.current&&f.animationState&&f.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),f.enteringChildren=void 0)}),f}function zh(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 Xr(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&hh(r);const o=n?n==="svg":qr(e),s=o?Rh:Vh;function a(u,c){let f;const d={...I.useContext(Ws),...u,layoutId:_h(u)},{isStatic:h}=d,v=xh(u),b=s(u,h);if(!h&&Jn){$h(d,r);const g=Uh(d);f=g.MeasureLayout,v.visualElement=Bh(e,b,d,i,g.ProjectionNode,o)}return m.jsxs(bn.Provider,{value:v,children:[f&&v.visualElement?m.jsx(f,{visualElement:v.visualElement,...d}):null,Mh(e,u,Fh(b,v.visualElement,c),b,h,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=I.forwardRef(a);return l[Oh]=e,l}function _h({layoutId:e}){const t=I.useContext(No).id;return t&&e!==void 0?t+"-"+e:e}function $h(e,t){const n=I.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 Uh(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 Hh(e,t){if(typeof Proxy>"u")return Xr;const n=new Map,r=(o,s)=>Xr(o,s,e,t),i=(o,s)=>(process.env.NODE_ENV!=="production"&&sr(!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,Xr(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 Wh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qh(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 Qr(e){return e===void 0||e===1}function Zr({scale:e,scaleX:t,scaleY:n}){return!Qr(e)||!Qr(t)||!Qr(n)}function tt(e){return Zr(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 Jr(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}){Jr(e.x,t.translate,t.scale,t.originPoint),Jr(e.y,n.translate,n.scale,n.originPoint)}const ma=.999999999999,ga=1.0000000000001;function Gh(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&>(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)&>(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);Jr(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(qh(e.getBoundingClientRect(),t))}function Yh(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()}),ei={current:null},wa={current:!1};function Kh(){if(wa.current=!0,!!Jn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ei.current=e.matches;e.addEventListener("change",t),t()}else ei.current=!1}const Xh=new WeakMap;function Qh(e,t,n){for(const r in t){const i=t[r],o=n[r];if(de(i))e.addValue(r,i);else if(de(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 Zh{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=Nr,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 d=ye.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,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 d in f){const h=f[d];l[d]!==void 0&&de(h)&&h.set(l[d])}}mount(t){this.current=t,Xh.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||Kh(),this.shouldReduceMotion=ei.current),process.env.NODE_ENV!=="production"&&sr(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=Qh(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)||Ro(r))?r=parseFloat(r):!fh(r)&&qe.test(n)&&(r=Vs(t,n)),this.setBaseTarget(t,de(r)?r.get():r)),de(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=Gr(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&&!de(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 or),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Fr.render(this.render)}}class Sa extends Zh{constructor(){super(...arguments),this.KeyframeResolver=Zd}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;de(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 Jh(e){return window.getComputedStyle(e)}class ep extends Sa{constructor(){super(...arguments),this.type="html",this.renderInstance=Ta}readValueFromInstance(t,n){if(ft.has(n))return this.projection?.isProjecting?Ar(n):yd(t,n);{const r=Jh(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){Hr(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Yr(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 tp(e,t,n,r){Ta(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ca.has(i)?i:Kr(i),t.attrs[i])}class np 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:Kr(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){tp(t,n,r,i)}mount(t){this.isSVGTag=na(t.tagName),super.mount(t)}}const rp=(e,t)=>t.isSVG??qr(e)?new np(t):new ep(t,{allowProjection:e!==I.Fragment});function xt(e,t,n){const r=e.getProps();return Gr(r,t,n!==void 0?n:r.custom,e)}const ti=e=>Array.isArray(e);function ip(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dt(n))}function op(e){return ti(e)?e[e.length-1]||0:e}function sp(e,t){const n=xt(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=op(o[s]);ip(e,s,a)}}function ap(e){return!!(de(e)&&e.add)}function ni(e,t){const n=e.getValue("willChange");if(ap(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 lp=e=>e!==null;function up(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(lp),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const cp={type:"spring",stiffness:500,damping:25,restSpeed:10},fp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dp={type:"keyframes",duration:.8},hp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pp=(e,{keyframes:t})=>t.length>2?dp:ft.has(e)?e.startsWith("scale")?fp(t[1]):cp:hp;function mp({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 ri=(e,t,n,r={},i,o)=>s=>{const a=Vr(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-je(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};mp(a)||Object.assign(c,pp(e,c)),c.duration&&(c.duration=je(c.duration)),c.repeatDelay&&(c.repeatDelay=je(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Lr(c),c.delay===0&&(f=!0)),(_e.instantAnimations||_e.skipAnimations)&&(f=!0,Lr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=up(c.keyframes,a);if(d!==void 0){ne.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Cr(c):new zd(c)};function gp({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),d=a[c];if(d===void 0||u&&gp(u,c))continue;const h={delay:n,...Vr(o||{},c)},v=f.get();if(v!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===v&&!h.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const x=Ea(e);if(x){const S=window.MotionHandoffAnimation(x,c,ne);S!==null&&(h.startTime=S,b=!0)}}ni(e,c),f.start(ri(c,f,d,e.shouldReduceMotion&&Is.has(c)?{type:!1}:h,e,b));const g=f.animation;g&&l.push(g)}return s&&Promise.all(l).then(()=>{ne.update(()=>{s&&sp(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 ii(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 yp(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 yp(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(ii(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 xp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ii(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ii(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 bp=$r.length;function ja(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ja(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<bp;n++){const r=$r[n],i=e.props[r];(_t(i)||i===!1)&&(t[r]=i)}return t}const vp=[..._r].reverse(),wp=_r.length;function kp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xp(e,n,r)))}function Sp(e){let t=kp(e),n=Da(),r=!0;const i=l=>(u,c)=>{const f=xt(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:h,...v}=f;u={...u,...v,...h}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=ja(e.parent)||{},f=[],d=new Set;let h={},v=1/0;for(let g=0;g<wp;g++){const x=vp[g],S=n[x],w=u[x]!==void 0?u[x]:c[x],E=_t(w),P=x===l?S.isActive:null;P===!1&&(v=g);let k=w===c[x]&&w!==u[x]&&E;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),S.protectedKeys={...h},!S.isActive&&P===null||!w&&!S.prevProp||vn(w)||typeof w=="boolean")continue;const N=Tp(S.prevProp,w);let M=N||x===l&&S.isActive&&!k&&E||g>v&&E,F=!1;const O=Array.isArray(w)?w:[w];let V=O.reduce(i(x),{});P===!1&&(V={});const{prevResolvedValues:R={}}=S,K={...R,...V},B=W=>{M=!0,d.has(W)&&(F=!0,d.delete(W)),S.needsAnimating[W]=!0;const Q=e.getValue(W);Q&&(Q.liveStyle=!1)};for(const W in K){const Q=V[W],le=R[W];if(h.hasOwnProperty(W))continue;let y=!1;ti(Q)&&ti(le)?y=!Ia(Q,le):y=Q!==le,y?Q!=null?B(W):d.add(W):Q!==void 0&&d.has(W)?B(W):S.protectedKeys[W]=!0}S.prevProp=w,S.prevResolvedValues=V,S.isActive&&(h={...h,...V}),r&&e.blockInitialAnimation&&(M=!1);const D=k&&N;M&&(!D||F)&&f.push(...O.map(W=>{const Q={type:x};if(typeof W=="string"&&r&&!D&&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(d.size){const g={};if(typeof u.initial!="boolean"){const x=xt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(g.transition=x.transition)}d.forEach(x=>{const S=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),g[x]=S??null}),f.push({animation:g})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?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=Da()}}}function Tp(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 Da(){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 Cp extends Ge{constructor(t){super(t),t.animationState||(t.animationState=Sp(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 Ep=0;class Pp extends Ge{constructor(){super(...arguments),this.id=Ep++}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 Ap={animation:{Feature:Cp},exit:{Feature:Pp}};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 Ip=e=>t=>Br(t)&&e(t,Ht(t));function Wt(e,t,n,r){return Ut(e,t,Ip(n),r)}const Ma=1e-4,jp=1-Ma,Dp=1+Ma,Na=.01,Mp=0-Na,Np=0+Na;function me(e){return e.max-e.min}function Lp(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=me(n)/me(t),e.translate=re(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jp&&e.scale<=Dp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Mp&&e.translate<=Np||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 Va(e,t,n){e.min=n.min+t.min,e.max=e.min+me(t)}function Vp(e,t,n){Va(e.x,t.x,n.x),Va(e.y,t.y,n.y)}function Ra(e,t,n){e.min=t.min-n.min,e.max=e.min+me(t)}function Tn(e,t,n){Ra(e.x,t.x,n.x),Ra(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 d=si(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,v=Rp(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!v)return;const{point:b}=d,{timestamp:g}=ce;this.history.push({...b,timestamp:g});const{onStart:x,onMove:S}=this.handlers;h||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=oi(h,this.transformPagePoint),ne.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=si(d.type==="pointercancel"?this.lastMoveEventInfo:oi(h,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,x),b&&b(d,x)},!Br(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=Ht(t),l=oi(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ce;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,si(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 oi(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 si({point:e},t){return{point:e,delta:za(e,_a(t)),offset:za(e,Op(t)),velocity:Fp(t,.1)}}function Op(e){return e[0]}function _a(e){return e[e.length-1]}function Fp(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>je(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 Bp(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 zp(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 _p(e,t){return{x:Ua(e.x,t.x),y:Ua(e.y,t.y)}}function $p(e,t){let n=.5;const r=me(e),i=me(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 Up(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 ai=.35;function Hp(e=ai){return e===!1?e=0:e===!0&&(e=ai),{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 Wp=new WeakMap;class qp{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:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ht(f).point)},s=(f,d)=>{const{drag:h,dragPropagation:v,onDragStart:b}=this.getProps();if(h&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rh(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,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:w}=this.visualElement;if(w&&w.layout){const E=w.layout.layoutBox[x];E&&(S=me(E)*(parseFloat(S)/100))}}this.originPoint[x]=S}),b&&ne.postRender(()=>b(f,d)),ni(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:v,onDirectionLock:b,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:x}=d;if(v&&this.currentDirection===null){this.currentDirection=Gp(x),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),g&&g(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),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=Bp(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=zp(r.layoutBox,t):this.constraints=!1,this.elastic=Hp(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Pe(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Up(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=Yh(r,i.root,this.visualElement.getTransformPagePoint());let s=_p(i.layout.layoutBox,o);if(n){const a=n(Wh(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 d=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ni(this.visualElement,t),r.start(ri(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;Wp.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=ai,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 Gp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Yp extends Ge{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new qp(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 Kp 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 li=!1;class Xp extends I.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),li&&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,li=!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(),Fr.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;li=!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]=dh(),r=I.useContext(No);return m.jsx(Xp,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(la),isPresent:t,safeToRemove:n})}function Qp(e,t,n){const r=de(e)?e:dt(e);return r.start(ri("",r,t,n)),r.animation}const Zp=(e,t)=>e.depth-t.depth;class Jp{constructor(){this.children=[],this.isDirty=!1}add(t){tr(this.children,t),this.isDirty=!0}remove(t){nr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zp),this.isDirty=!1,this.children.forEach(t)}}function em(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"],tm=Ya.length,Ka=e=>typeof e=="string"?parseFloat(e):e,Xa=e=>typeof e=="number"||L.test(e);function nm(e,t,n,r,i,o){i?(e.opacity=re(0,n.opacity??1,rm(r)),e.opacityExit=re(t.opacity??1,0,im(r))):o&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<tm;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 rm=Za(0,.5,Wo),im=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 om(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){om(e,t[n],t[r],t[i],t.scale,o,s)}const sm=["x","scaleX","originX"],am=["y","scaleY","originY"];function rl(e,t,n,r){nl(e.x,t,sm,n?n.x:void 0,r?r.x:void 0),nl(e.y,t,am,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 lm(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 me(e.x)/me(e.y)}function cl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class um{constructor(){this.members=[]}add(t){tr(this.members,t),t.scheduleRender()}remove(t){if(nr(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 cm(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:d,skewX:h,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}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 ui=["","X","Y","Z"],fm=1e3;let dm=0;function ci(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=dm++,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(mm),this.nodes.forEach(bm),this.nodes.forEach(vm),this.nodes.forEach(gm)},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 Jp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new or),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)&&!uh(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 d=()=>this.root.updateBlockedByResize=!1;ne.read(()=>{f=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=em(d,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:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||Cm,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=u.getProps(),x=!this.targetLayout||!ll(this.targetLayout,h),S=!f&&d;if(this.options.layoutRoot||this.resumeFrom||S||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Vr(v,"layout"),onPlay:b,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,S)}else f||ml(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(wm),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(xm),this.nodes.forEach(hm),this.nodes.forEach(pm)):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,ur.update.process(ce),ur.preRender.process(ce),ur.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ym),this.sharedNodes.forEach(km)}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&&!me(this.snapshot.measuredBox.x)&&!me(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)),Em(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(Pm))){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&>(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),tt(c.latestValues)&>(l,c.latestValues)}return tt(this.latestValues)&>(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;Zr(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 d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.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(),Vp(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,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Zr(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,d=this.treeScale.y;Gh(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:h}=s;if(!h){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,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!cl(this.projectionDelta.x,this.prevProjectionDelta.x)||!cl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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 d=ue(),h=l?l.source:void 0,v=this.layout?this.layout.source:void 0,b=h!==v,g=this.getStack(),x=!g||g.members.length<=1,S=!!(b&&!x&&this.options.crossfade===!0&&!this.path.some(Tm));this.animationProgress=0;let w;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(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Sm(this.relativeTarget,this.relativeTargetOrigin,d,P),w&&lm(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ue()),Me(w,this.relativeTarget)),b&&(this.animationValues=c,nm(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=Qp(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(fm),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=me(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=me(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}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 um),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&&ci("z",s,u,this.animationValues);for(let c=0;c<ui.length;c++)ci(`rotate${ui[c]}`,s,u,this.animationValues),ci(`skew${ui[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=cm(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),s.transform=f;const{x:d,y:h}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${h.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 v in Ur){if(c[v]===void 0)continue;const{correct:b,applyTo:g,isCSSVariable:x}=Ur[v],S=f==="none"?c[v]:b(c[v],u);if(g){const w=g.length;for(let E=0;E<w;E++)s[g[E]]=S}else x?this.options.visualElement.renderState.vars[v]=S:s[v]=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 hm(e){e.updateLayout()}function pm(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],d=me(f);f.min=n[c].min,f.max=f.min+d}):wl(i,t.layoutBox,n)&&Pe(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],d=me(n[c]);f.max=f.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+d)});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:d}=c;if(f&&d){const h=ue();Tn(h,t.layoutBox,f.layoutBox);const v=ue();Tn(v,n,d.layoutBox),ll(h,v)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=h,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 mm(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 gm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ym(e){e.clearSnapshot()}function hl(e){e.clearMeasurements()}function pl(e){e.isLayoutDirty=!1}function xm(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 bm(e){e.resolveTargetDelta()}function vm(e){e.calcProjection()}function wm(e){e.resetSkewAndRotation()}function km(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 Sm(e,t,n,r){yl(e.x,t.x,n.x,r),yl(e.y,t.y,n.y,r)}function Tm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Cm={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 Em(e){vl(e.x),vl(e.y)}function wl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Lp(ul(t),ul(n),.2)}function Pm(e){return e!==e.root&&e.scroll?.wasRoot}const Am=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}),fi={current:void 0},kl=dl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fi.current){const e=new Am({});e.mount(window),e.setOptions({layoutScroll:!0}),fi.current=e}return fi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Im={pan:{Feature:Kp},drag:{Feature:Yp,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 jm extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=ih(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 Mm extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=lh(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 di=new WeakMap,hi=new WeakMap,Nm=e=>{const t=di.get(e.target);t&&t(e)},Lm=e=>{e.forEach(Nm)};function Vm({root:e,...t}){const n=e||document;hi.has(n)||hi.set(n,{});const r=hi.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Lm,{root:e,...t})),r[i]}function Rm(e,t,n){const r=Vm(t);return di.set(e,n),r.observe(e),()=>{di.delete(e),r.unobserve(e)}}const Om={some:0,all:1};class Fm 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:Om[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(),d=u?c:f;d&&d(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(Bm(t,n))&&this.startObserver()}unmount(){}}function Bm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const zm={...Ap,...{inView:{Feature:Fm},tap:{Feature:Mm},focus:{Feature:Dm},hover:{Feature:jm}},...Im,...{layout:{ProjectionNode:kl,MeasureLayout:Ga}}},we=Hh(zm,rp),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,d=["menu-item",s?"active":"",f?"compact":"",!r||!l?"no-description":"",a].filter(Boolean).join(" ");return m.jsxs(we.a,{href:n,target:c,onClick:u,className:d,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&m.jsx(we.div,{className:"menu-item-icon",whileHover:{rotate:5},children:m.jsx(fe,{icon:i})}),m.jsxs("div",{className:"menu-item-content",children:[m.jsxs("div",{className:"menu-item-header",children:[m.jsx("span",{className:"menu-item-title",children:t}),o&&m.jsx(we.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:o})]}),r&&l&&m.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 m.jsx("div",{className:`menu-grid-container ${r}`,children:m.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 m.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")?m.jsxs("a",{href:r,className:"menu-grid-link",target:"_blank",rel:"noopener noreferrer",children:[o&&m.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),m.jsxs("div",{className:"menu-grid-header",children:[i&&m.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:m.jsx(fe,{icon:i})}),m.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&m.jsx("span",{className:"menu-grid-description",children:n})]}):m.jsxs(zn.Link,{to:r,className:"menu-grid-link",children:[o&&m.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),m.jsxs("div",{className:"menu-grid-header",children:[i&&m.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:m.jsx(fe,{icon:i})}),m.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&m.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]}:{},d={left:"text-left items-start",center:"text-center items-center",right:"text-right items-end",justify:"text-justify"}[o],h={none:"p-none",small:"p-small",medium:"p-medium",large:"p-large"}[s];return m.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:[m.jsx("div",{className:"hero-overlay"}),m.jsxs("div",{className:`hero-text ${d} ${h}`,children:[m.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&&m.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&&m.jsx("div",{className:"hero-actions",children:m.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=I.createContext(void 0),_m=()=>{const e=I.useContext(Il);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},$m=({children:e})=>{const[t,n]=I.useState(null);return m.jsx(Il.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},Pn=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,d=Do({breakpoint:768}),{activeDropdown:h,setActiveDropdown:v}=_m(),[b,g]=I.useState(!1),x=I.useRef(null),S=I.useRef(null),w=h===c,E=d?w:w||b;I.useEffect(()=>{const O=V=>{S.current&&!S.current.contains(V.target)&&(g(!1),h===c&&v(null))};return E&&!d&&document.addEventListener("mousedown",O),()=>{document.removeEventListener("mousedown",O)}},[E,d,h,c,v]);const P=O=>{d&&(O.preventDefault(),v(w?null:c)),u&&d&&!w&&O.preventDefault()},k=()=>{d||(g(!0),v(c))},N=()=>{d||setTimeout(()=>{const O=x.current?.matches(":hover"),V=S.current?.matches(":hover");!O&&!V&&(g(!1),v(null))},100)},M=()=>{d||(g(!0),v(c))},F=()=>{d||(g(!1),v(null))};return m.jsxs("div",{ref:S,className:"menu",onMouseEnter:k,onMouseLeave:N,children:[(t||n)&&m.jsx(m.Fragment,{children:u?m.jsxs("a",{href:u,onClick:P,className:`menu-title ${s} ${w?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":E,children:[n&&r==="left"&&m.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&m.jsx("span",{children:t}),n&&r==="right"&&m.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&m.jsx("span",{className:"arrow",children:E?"▲":"▼"})]}):m.jsxs("button",{onClick:P,className:`menu-title ${s} ${w?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":E,children:[n&&r==="left"&&m.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&m.jsx("span",{children:t}),n&&r==="right"&&m.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&m.jsx("span",{className:"arrow",children:E?"▲":"▼"})]})}),m.jsx("div",{ref:x,className:`menu-dropdown ${a} ${E?"show":""}`,onMouseEnter:M,onMouseLeave:F,children:l})]})},jl=e=>{const{icon:t,onClick:n,ariaLabel:r,className:i="",badge:o,active:s=!1,children:a}=e;return a?m.jsx(Pn,{icon:t,className:`utility-button ${s?"active":""} ${i}`,id:r||t,children:a}):m.jsxs("button",{className:`utility-button ${s?"active":""} ${i}`,onClick:n,"aria-label":r,type:"button",children:[m.jsx(fe,{icon:t,className:"icon-button-icon"}),o&&m.jsx("span",{className:"icon-button-badge",children:o})]})};function _b(){}function $b(){}function Um(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Hm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qm={};function Dl(e,t){return(qm.jsx?Wm:Hm).test(e)}const Gm=/[ \t\n\f\r]/g;function Ym(e){return typeof e=="object"?e.type==="text"?Ml(e.value):!1:Ml(e)}function Ml(e){return e.replace(Gm,"")===""}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 Km=0;const H=rt(),ae=rt(),mi=rt(),A=rt(),J=rt(),bt=rt(),ke=rt();function rt(){return 2**++Km}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 Vl=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 Rl(e,t){return t in e?e[t]:t}function Ol(e,t){return Rl(e,t.toLowerCase())}const Xm=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}),Qm=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:Rl}),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()}}),Zm={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"},Jm=/[A-Z]/g,_l=/-[a-z]/g,eg=/^data[-\w.:]+$/i;function tg(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"&&eg.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(_l,rg);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!_l.test(o)){let s=o.replace(Jm,ng);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=xi}return new i(r,t)}function ng(e){return"-"+e.toLowerCase()}function rg(e){return e.charAt(1).toUpperCase()}const ig=Nl([Vl,Xm,Fl,Bl,zl],"html"),bi=Nl([Vl,Qm,Fl,Bl,zl],"svg");function og(e){return e.join(" ").trim()}var wt={},vi,$l;function sg(){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="",d="comment",h="declaration";function v(g,x){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];x=x||{};var S=1,w=1;function E(B){var D=B.match(t);D&&(S+=D.length);var G=B.lastIndexOf(l);w=~G?B.length-G:w+B.length}function P(){var B={line:S,column:w};return function(D){return D.position=new k(B),F(),D}}function k(B){this.start=B,this.end={line:S,column:w},this.source=x.source}k.prototype.content=g;function N(B){var D=new Error(x.source+":"+S+":"+w+": "+B);if(D.reason=B,D.filename=x.source,D.line=S,D.column=w,D.source=g,!x.silent)throw D}function M(B){var D=B.exec(g);if(D){var G=D[0];return E(G),g=g.slice(G.length),D}}function F(){M(n)}function O(B){var D;for(B=B||[];D=V();)D!==!1&&B.push(D);return B}function V(){var B=P();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var D=2;f!=g.charAt(D)&&(c!=g.charAt(D)||u!=g.charAt(D+1));)++D;if(D+=2,f===g.charAt(D-1))return N("End of comment missing");var G=g.slice(2,D-2);return w+=2,E(G),g=g.slice(D),w+=2,B({type:d,comment:G})}}function R(){var B=P(),D=M(r);if(D){if(V(),!M(i))return N("property missing ':'");var G=M(o),W=B({type:h,property:b(D[0].replace(e,f)),value:G?b(G[0].replace(e,f)):f});return M(s),W}}function K(){var B=[];O(B);for(var D;D=R();)D!==!1&&(B.push(D),O(B));return B}return F(),K()}function b(g){return g?g.replace(a,f):f}return vi=v,vi}var Ul;function ag(){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(sg());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 lg(){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 ug(){if(Wl)return Kt;Wl=1;var e=Kt&&Kt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ag()),n=lg();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 cg=ug();const fg=to(cg),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 dg(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 he 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}}he.prototype.file="",he.prototype.name="",he.prototype.reason="",he.prototype.message="",he.prototype.stack="",he.prototype.column=void 0,he.prototype.line=void 0,he.prototype.ancestors=void 0,he.prototype.cause=void 0,he.prototype.fatal=void 0,he.prototype.place=void 0,he.prototype.ruleId=void 0,he.prototype.source=void 0;const Si={}.hasOwnProperty,hg=new Map,pg=/[A-Z]/g,mg=new Set(["table","tbody","thead","tfoot","tr"]),gg=new Set(["td","th"]),Xl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yg(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=Cg(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=Tg(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:ig,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 xg(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return bg(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return wg(e,t,n);if(t.type==="mdxjsEsm")return vg(e,t);if(t.type==="root")return kg(e,t,n);if(t.type==="text")return Sg(e,t)}function xg(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=Eg(e,t);let a=Ci(e,t);return mg.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Ym(l):!0})),Zl(e,s,o,t),Ti(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function bg(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 vg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qt(e,t.position)}function wg(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=Pg(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 kg(e,t,n){const r={};return Ti(r,Ci(e,t)),e.create(t,e.Fragment,r,n)}function Sg(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 Tg(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 Cg(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 Eg(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Si.call(t.properties,i)){const o=Ag(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&gg.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 Pg(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:hg;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 Ag(e,t,n){const r=tg(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Um(n):og(n)),r.property==="style"){let i=typeof n=="object"?n:Ig(e,String(n));return e.stylePropertyNameCase==="css"&&(i=jg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Zm[r.property]||r.property:r.attribute,n]}}function Ig(e,t){try{return fg(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new he("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=Dl(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=Dl(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 he("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 jg(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(pg,Mg);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Mg(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"]},Ng={};function Lg(e,t){const n=Ng,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(Vg(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 Vg(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 Ve(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?(Ve(e,e.length,0,t),e):t}const ru={}.hasOwnProperty;function Rg(e){const t={};let n=-1;for(;++n<e.length;)Og(t,e[n]);return t}function Og(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];Fg(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Fg(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ve(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 Re=Ye(/[A-Za-z]/),Se=Ye(/[\dA-Za-z]/),Bg=Ye(/[#-'*+\--9=?A-Z^-~]/);function Ai(e){return e!==null&&(e<32||e===127)}const Ii=Ye(/\d/),zg=Ye(/[\dA-Fa-f]/),_g=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")),Ug=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 Hg={tokenize:Wg};function Wg(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 qg={tokenize:Gg},ou={tokenize:Yg};function Gg(e){const t=this,n=[];let r=0,i,o,s;return a;function a(w){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(w)}return u(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const E=t.events.length;let P=E,k;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){k=t.events[P][1].end;break}x(r);let N=E;for(;N<t.events.length;)t.events[N][1].end={...k},N++;return Ve(t.events,P+1,0,t.events.slice(E)),t.events.length=N,u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return d(w);if(i.currentConstruct&&i.currentConstruct.concrete)return v(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ou,c,f)(w)}function c(w){return i&&S(),x(r),d(w)}function f(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,v(w)}function d(w){return t.containerState={},e.attempt(ou,h,v)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),d(w)}function v(w){if(w===null){i&&S(),x(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),b(w)}function b(w){if(w===null){g(e.exit("chunkFlow"),!0),x(0),e.consume(w);return}return $(w)?(e.consume(w),g(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),b)}function g(w,E){const P=t.sliceStream(w);if(E&&P.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(P),t.parser.lazy[w.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<s&&(!i.events[k][1].end||i.events[k][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),k=N;k<t.events.length;)t.events[k][1].end={...O},k++;Ve(t.events,M+1,0,t.events.slice(N)),t.events.length=k}}function x(w){let E=n.length;for(;E-- >w;){const P=n[E];t.containerState=P[1],P[0].exit.call(t,e)}n.length=w}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Yg(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)||Ug(e))return 1;if($g(e))return 2}function ji(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 Di={name:"attention",resolveAll:Kg,tokenize:Xg};function Kg(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},d={...e[n][1].start};au(f,-l),au(d,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:d},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,ji(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,Ve(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 Xg(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),d=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!d)),u._close=!!(o===42?d:d&&(c||!f)),t(l)}}function au(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Qg={name:"autolink",tokenize:Zg};function Zg(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Re(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||Se(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Se(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Ai(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Bg(h)?(e.consume(h),u):n(h)}function c(h){return Se(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Se(h))&&r++<63){const v=h===45?d:f;return e.consume(h),v}return n(h)}}const An={partial:!0,tokenize:Jg};function Jg(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:ty},exit:ny,name:"blockQuote",tokenize:ey};function ey(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 ty(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 ny(e){e.exit("blockQuote")}const uu={name:"characterEscape",tokenize:ry};function ry(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 _g(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const cu={name:"characterReference",tokenize:iy};function iy(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=zg,c):(e.enter("characterReferenceValue"),o=7,s=Ii,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return s===Se&&!Pi(r.sliceSerialize(d))?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:sy},du={concrete:!0,name:"codeFenced",tokenize:oy};function oy(e,t,n){const r=this,i={partial:!0,tokenize:P};let o=0,s=0,a;return l;function l(k){return u(k)}function u(k){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===a?(s++,e.consume(k),c):s<3?n(k):(e.exit("codeFencedFenceSequence"),Y(k)?ee(e,f,"whitespace")(k):f(k))}function f(k){return k===null||$(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(fu,b,E)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||$(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):Y(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ee(e,h,"whitespace")(k)):k===96&&k===a?n(k):(e.consume(k),d)}function h(k){return k===null||$(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(k))}function v(k){return k===null||$(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?n(k):(e.consume(k),v)}function b(k){return e.attempt(i,E,g)(k)}function g(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),x}function x(k){return o>0&&Y(k)?ee(e,S,"linePrefix",o+1)(k):S(k)}function S(k){return k===null||$(k)?e.check(fu,b,E)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||$(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),w)}function E(k){return e.exit("codeFenced"),t(k)}function P(k,N,M){let F=0;return O;function O(D){return k.enter("lineEnding"),k.consume(D),k.exit("lineEnding"),V}function V(D){return k.enter("codeFencedFence"),Y(D)?ee(k,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):R(D)}function R(D){return D===a?(k.enter("codeFencedFenceSequence"),K(D)):M(D)}function K(D){return D===a?(F++,k.consume(D),K):F>=s?(k.exit("codeFencedFenceSequence"),Y(D)?ee(k,B,"whitespace")(D):B(D)):M(D)}function B(D){return D===null||$(D)?(k.exit("codeFencedFence"),N(D)):M(D)}}}function sy(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:ly},ay={partial:!0,tokenize:uy};function ly(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(ay,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 uy(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 cy={name:"codeText",previous:dy,resolve:fy,tokenize:hy};function fy(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 dy(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hy(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 py{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 py(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,my(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 Ve(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function my(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,d=-1,h=n,v=0,b=0;const g=[b];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(b=d+1,g.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const x=a.slice(g[d],g[d+1]),S=o.pop();l.push([S,S+x.length-1]),e.splice(S,2,x)}for(l.reverse(),d=-1;++d<l.length;)u[v+l[d][0]]=v+l[d][1],v+=l[d][1]-l[d][0]-1;return u}const gy={resolve:xy,tokenize:by},yy={partial:!0,tokenize:vy};function xy(e){return hu(e),e}function by(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(yy,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 vy(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),d):x===null||x===32||x===41||Ai(x)?n(x):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(x))}function d(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"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),d(x)):x===null||x===60||$(x)?n(x):(e.consume(x),x===92?v:h)}function v(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function b(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++,b):x===41?(e.consume(x),c--,b):x===null||x===32||x===40||Ai(x)?n(x):(e.consume(x),x===92?g:b)}function g(x){return x===40||x===41||x===92?(e.consume(x),b):b(x)}}function mu(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):$(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||$(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Y(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function gu(e,t,n,r,i,o){let s;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===s?(e.exit(o),l(s)):d===null?n(d):$(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ee(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||$(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}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 wy={name:"definition",tokenize:Sy},ky={partial:!0,tokenize:Ty};function Sy(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return mu.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return be(h)?Jt(e,u)(h):u(h)}function u(h){return pu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(ky,f,f)(h)}function f(h){return Y(h)?ee(e,d,"whitespace")(h):d(h)}function d(h){return h===null||$(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Ty(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 Cy={name:"hardBreakEscape",tokenize:Ey};function Ey(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 Py={name:"headingAtx",resolve:Ay,tokenize:Iy};function Ay(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"},Ve(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Iy(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 jy=["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:Ly,tokenize:Vy},My={partial:!0,tokenize:Oy},Ny={partial:!0,tokenize:Ry};function Ly(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 Vy(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),d):p===47?(e.consume(p),o=!0,b):p===63?(e.consume(p),i=3,r.interrupt?t:y):Re(p)?(e.consume(p),s=String.fromCharCode(p),g):n(p)}function d(p){return p===45?(e.consume(p),i=2,h):p===91?(e.consume(p),i=5,a=0,v):Re(p)?(e.consume(p),i=4,r.interrupt?t:y):n(p)}function h(p){return p===45?(e.consume(p),r.interrupt?t:y):n(p)}function v(p){const X="CDATA[";return p===X.charCodeAt(a++)?(e.consume(p),a===X.length?r.interrupt?t:R:v):n(p)}function b(p){return Re(p)?(e.consume(p),s=String.fromCharCode(p),g):n(p)}function g(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):R(p)):jy.includes(s.toLowerCase())?(i=6,X?(e.consume(p),x):r.interrupt?t(p):R(p)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(p):o?S(p):w(p))}return p===45||Se(p)?(e.consume(p),s+=String.fromCharCode(p),g):n(p)}function x(p){return p===62?(e.consume(p),r.interrupt?t:R):n(p)}function S(p){return Y(p)?(e.consume(p),S):O(p)}function w(p){return p===47?(e.consume(p),O):p===58||p===95||Re(p)?(e.consume(p),E):Y(p)?(e.consume(p),w):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),k):Y(p)?(e.consume(p),P):w(p)}function k(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),k):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)?w(p):n(p)}function O(p){return p===62?(e.consume(p),V):n(p)}function V(p){return p===null||$(p)?R(p):Y(p)?(e.consume(p),V):n(p)}function R(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(My,_,K)(p)):p===null||$(p)?(e.exit("htmlFlowData"),K(p)):(e.consume(p),R)}function K(p){return e.check(Ny,B,_)(p)}function B(p){return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),D}function D(p){return p===null||$(p)?K(p):(e.enter("htmlFlowData"),R(p))}function G(p){return p===45?(e.consume(p),y):R(p)}function W(p){return p===47?(e.consume(p),s="",Q):R(p)}function Q(p){if(p===62){const X=s.toLowerCase();return yu.includes(X)?(e.consume(p),C):R(p)}return Re(p)&&s.length<8?(e.consume(p),s+=String.fromCharCode(p),Q):R(p)}function le(p){return p===93?(e.consume(p),y):R(p)}function y(p){return p===62?(e.consume(p),C):p===45&&i===2?(e.consume(p),y):R(p)}function C(p){return p===null||$(p)?(e.exit("htmlFlowData"),_(p)):(e.consume(p),C)}function _(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 Oy(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(An,t,n)}}const Fy={name:"htmlText",tokenize:By};function By(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),w):Re(y)?(e.consume(y),M):n(y)}function u(y){return y===45?(e.consume(y),c):y===91?(e.consume(y),o=0,v):Re(y)?(e.consume(y),S):n(y)}function c(y){return y===45?(e.consume(y),h):n(y)}function f(y){return y===null?n(y):y===45?(e.consume(y),d):$(y)?(s=f,W(y)):(e.consume(y),f)}function d(y){return y===45?(e.consume(y),h):f(y)}function h(y){return y===62?G(y):y===45?d(y):f(y)}function v(y){const C="CDATA[";return y===C.charCodeAt(o++)?(e.consume(y),o===C.length?b:v):n(y)}function b(y){return y===null?n(y):y===93?(e.consume(y),g):$(y)?(s=b,W(y)):(e.consume(y),b)}function g(y){return y===93?(e.consume(y),x):b(y)}function x(y){return y===62?G(y):y===93?(e.consume(y),x):b(y)}function S(y){return y===null||y===62?G(y):$(y)?(s=S,W(y)):(e.consume(y),S)}function w(y){return y===null?n(y):y===63?(e.consume(y),E):$(y)?(s=w,W(y)):(e.consume(y),w)}function E(y){return y===62?G(y):w(y)}function P(y){return Re(y)?(e.consume(y),k):n(y)}function k(y){return y===45||Se(y)?(e.consume(y),k):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||Re(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):V(y)}function V(y){return y===61?(e.consume(y),R):$(y)?(s=V,W(y)):Y(y)?(e.consume(y),V):F(y)}function R(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=R,W(y)):Y(y)?(e.consume(y),R):(e.consume(y),B)}function K(y){return y===i?(e.consume(y),i=void 0,D):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 D(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:Uy,resolveTo:Hy,tokenize:Wy},zy={tokenize:qy},_y={tokenize:Gy},$y={tokenize:Yy};function Uy(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&&Ve(e,0,e.length,n),e}function Hy(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,ji(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]]),Ve(e,o,e.length,a),e}function Wy(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(d){return o?o._inactive?f(d):(s=r.parser.defined.includes(kt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(zy,c,s?c:f)(d):d===91?e.attempt(_y,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt($y,c,f)(d)}function c(d){return t(d)}function f(d){return o._balanced=!0,n(d)}}function qy(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 Gy(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 Yy(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 Ky={name:"labelStartImage",resolveAll:Ni.resolveAll,tokenize:Xy};function Xy(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 Qy={name:"labelStartLink",resolveAll:Ni.resolveAll,tokenize:Zy};function Zy(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:Jy};function Jy(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ee(e,t,"linePrefix")}}const In={name:"thematicBreak",tokenize:ex};function ex(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:ix},exit:sx,name:"list",tokenize:rx},tx={partial:!0,tokenize:ax},nx={partial:!0,tokenize:ox};function rx(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(h){const v=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ii(h)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(In,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Ii(h)&&++s<10?(e.consume(h),l):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(An,r.interrupt?n:c,e.attempt(tx,d,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,d(h)}function f(h){return Y(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function ix(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(An,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(nx,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 ox(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 sx(e){e.exit(this.containerState.type)}function ax(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:lx,tokenize:ux};function lx(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 ux(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 cx={tokenize:fx};function fx(e){const t=this,n=e.attempt(An,r,e.attempt(this.parser.constructs.flowInitial,i,ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gy,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 dx={resolveAll:vu()},hx=bu("string"),px=bu("text");function bu(e){return{resolveAll:vu(e==="text"?mx: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 d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.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 mx(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 gx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:wy},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:Py,42:In,45:[xu,In],60:Dy,61:xu,95:In,96:du,126:du},flowInitial:{[-2]:Mi,[-1]:Mi,32:Mi},insideSpan:{null:[Di,dx]},string:{38:cu,92:uu},text:{[-5]:Li,[-4]:Li,[-3]:Li,33:Ky,38:cu,42:Di,60:[Qg,Fy],91:Qy,92:[Cy,uu],93:Ni,95:Di,96:cy}},Symbol.toStringTag,{value:"Module"}));function yx(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(k),consume:S,enter:w,exit:E,interrupt:N(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:v,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function f(V){return s=Ae(s,V),g(),s[s.length-1]!==null?[]:(M(t,0),u.events=ji(o,u.events,u),u.events)}function d(V,R){return bx(h(V),R)}function h(V){return xx(s,V)}function v(){const{_bufferIndex:V,_index:R,line:K,column:B,offset:D}=r;return{_bufferIndex:V,_index:R,line:K,column:B,offset:D}}function b(V){i[V.line]=V.column,O()}function g(){let V;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(V=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===V&&r._bufferIndex<R.length;)x(R.charCodeAt(r._bufferIndex));else x(R)}}function x(V){c=c(V)}function S(V){$(V)?(r.line++,r.column=1,r.offset+=V===-3?2:1,O()):V!==-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=V}function w(V,R){const K=R||{};return K.type=V,K.start=v(),u.events.push(["enter",K,u]),a.push(K),K}function E(V){const R=a.pop();return R.end=v(),u.events.push(["exit",R,u]),R}function P(V,R){M(V,R.from)}function k(V,R){R.restore()}function N(V,R){return K;function K(B,D,G){let W,Q,le,y;return Array.isArray(B)?_(B):"tokenize"in B?_([B]):C(B);function C(oe){return te;function te(ge){const Fe=ge!==null&&oe[ge],Xe=ge!==null&&oe.null,Bn=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Xe)?Xe:Xe?[Xe]:[]];return _(Bn)(ge)}}function _(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(R?Object.assign(Object.create(u),R):u,l,X,Ie)(ge)}}function X(oe){return V(le,y),D}function Ie(oe){return y.restore(),++Q<W.length?p(W[Q]):G}}}function M(V,R){V.resolveAll&&!o.includes(V)&&o.push(V),V.resolve&&Ve(u.events,R,u.events.length-R,V.resolve(u.events.slice(R),u)),V.resolveTo&&(u.events=V.resolveTo(u.events,u))}function F(){const V=v(),R=u.previous,K=u.currentConstruct,B=u.events.length,D=Array.from(a);return{from:B,restore:G};function G(){r=V,u.previous=R,u.currentConstruct=K,u.events.length=B,a=D,O()}}function O(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function xx(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 bx(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=`
|
|
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){d(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===O&&(C._payload.status==="fulfilled"?d(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function d(C){return typeof C=="object"&&C!==null&&C.$$typeof===b}var h=j,b=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),P=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),R=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,F=Array.isArray,D=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(C){return C()}};var G,W={},Q=h.react_stack_bottom_frame.bind(h,o)(),le=D(r(o)),y={};At.Fragment=v,At.jsx=function(C,z,p){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,z,p,!1,X?Error("react-stack-top-frame"):Q,X?D(r(C)):le)},At.jsxs=function(C,z,p){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,z,p,!0,X?Error("react-stack-top-frame"):Q,X?D(r(C)):le)}})()),At}var ro;function cc(){return ro||(ro=1,process.env.NODE_ENV==="production"?sn.exports=lc():sn.exports=uc()),sn.exports}var x=cc();function fc(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 io=Object.freeze({left:0,top:0,width:16,height:16}),an=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),zn=Object.freeze({...io,...an}),_n=Object.freeze({...zn,body:"",hidden:!1});function dc(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 oo(e,t){const n=dc(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 hc(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=oo(r[a]||i[a],o)}return s(t),n.forEach(s),oo(e,o)}function so(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=fc(e);for(const i in r){const o=r[i];o&&(t(i,hc(e,i,o)),n.push(i))}return n}const pc={provider:"",aliases:{},not_found:{},...io};function $n(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ao(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,pc))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 lo=Object.create(null);function mc(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ot(e,t){const n=lo[e]||(lo[e]=Object.create(null));return n[t]||(n[t]=mc(e,t))}function uo(e,t){return ao(t)?so(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function gc(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}const co=/^[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 fo(e){return typeof e=="boolean"&&(It=e),It}function ho(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 yc(e,t){const n=ln(e,!0,It);if(!n)return!1;const r=ot(n.provider,n.prefix);return t?gc(r,n.name,t):(r.missing.add(n.name),!0)}function xc(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),It&&!t&&!e.prefix){let i=!1;return ao(e)&&(e.prefix="",so(e,(o,s)=>{yc(o,s)&&(i=!0)})),i}const n=e.prefix;if(!un({prefix:n,name:"a"}))return!1;const r=ot(t,n);return!!uo(r,e)}const po=Object.freeze({width:null,height:null}),mo=Object.freeze({...po,...an}),bc=/(-?[0-9.]*[0-9]+[0-9.]*)/g,vc=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function go(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(bc);if(r===null||!r.length)return e;const i=[];let o=r.shift(),s=vc.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 wc(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 kc(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Sc(e,t,n){const r=wc(e);return kc(r.defs,t+r.content+n)}const Tc=e=>e==="unset"||e==="undefined"||e==="none";function Cc(e,t){const n={...zn,...e},r={...mo,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(m=>{const v=[],g=m.hFlip,S=m.vFlip;let w=m.rotate;g?S?w+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):S&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let P;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:P=i.height/2+i.top,v.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,v.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}w%2===1&&(i.left!==i.top&&(P=i.left,i.left=i.top,i.top=P),i.width!==i.height&&(P=i.width,i.width=i.height,i.height=P)),v.length&&(o=Sc(o,'<g transform="'+v.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=go(f,l/u)):(c=s==="auto"?l:s,f=a===null?go(c,u/l):a==="auto"?u:a);const d={},h=(m,v)=>{Tc(v)||(d[m]=v.toString())};h("width",c),h("height",f);const b=[i.left,i.top,l,u];return d.viewBox=b.join(" "),{attributes:d,viewBox:b,body:o}}const Pc=/\sid="(\S+)"/g,Ec="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ac=0;function Ic(e,t=Ec){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+(Ac++).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 Dc(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 jc(e,t){const n=Wn(t);return n===null?!1:(qn[e]=n,!0)}function Gn(e){return qn[e]}let yo=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Mc(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 Nc(e){return e===404}const Vc=(e,t,n)=>{const r=[],i=Mc(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 Lc(e){if(typeof e=="string"){const t=Gn(e);if(t)return t.path}return"/"}const Rc={prepare:Vc,send:(e,t,n)=>{if(!yo){n("abort",424);return}let r=Lc(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;yo(e+r).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{n(Nc(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 xo(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Oc(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||xo([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Fc=0;function Bc(e,t,n){const r=Fc++,i=xo.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 zc(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 $c={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Uc(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 k=e.resources.slice(0);for(s=[];k.length>1;){const N=Math.floor(Math.random()*k.length);s.push(k[N]),k=k.slice(0,N).concat(k.slice(N+1))}s=s.concat(k)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let l="pending",u=0,c,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function b(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),b(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function v(k,N){N&&(h=[]),typeof k=="function"&&h.push(k)}function g(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:v,abort:m}}function S(){l="failed",h.forEach(k=>{k(void 0,c)})}function w(){d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function P(k,N,M){const O=N!=="success";switch(d=d.filter(B=>B!==k),l){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(N==="abort"){c=M,S();return}if(O){c=M,d.length||(s.length?E():S());return}if(b(),w(),!e.random){const B=e.resources.indexOf(k.resource);B!==-1&&B!==e.index&&(e.index=B)}l="completed",h.forEach(B=>{B(M)})}function E(){if(l!=="pending")return;b();const k=s.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{b(),l==="pending"&&(w(),S())},e.timeout);return}S();return}const N={status:"pending",resource:k,callback:(M,O)=>{P(N,M,O)}};d.push(N),u++,f=setTimeout(E,e.rotate),n(k,t,N.callback)}return setTimeout(E),g}function bo(e){const t={...$c,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,l,u){const c=Uc(t,a,l,(f,d)=>{r(),u&&u(f,d)});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 vo(){}const Yn=Object.create(null);function Hc(e){if(!Yn[e]){const t=Gn(e);if(!t)return;const n=bo(t),r={config:t,redundancy:n};Yn[e]=r}return Yn[e]}function Wc(e,t,n){let r,i;if(typeof e=="string"){const o=Hn(e);if(!o)return n(void 0,424),vo;i=o.send;const s=Hc(e);s&&(r=s.redundancy)}else{const o=Wn(e);if(o){r=bo(o);const s=e.resources?e.resources[0]:"",a=Hn(s);a&&(i=a.send)}}return!r||!i?(n(void 0,424),vo):r.query(t,i,n)().abort}function wo(){}function qc(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Oc(e)}))}function Gc(e){const t=[],n=[];return e.forEach(r=>{(r.match(co)?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(!uo(e,n).length){r();return}}catch(i){console.error(i)}r(),qc(e)}function ko(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Yc(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)){ko(e.loadIcons(i,r,n),c=>{jt(e,i,c)});return}if(o){i.forEach(c=>{const f=o(c,r,n);ko(f,d=>{const h=d?{prefix:r,icons:{[c]:d}}:null;jt(e,[c],h)})});return}const{valid:s,invalid:a}=Gc(i);if(a.length&&jt(e,a,null),!s.length)return;const l=r.match(co)?Hn(n):null;if(!l){jt(e,s,null);return}l.prepare(n,r,s).forEach(c=>{Wc(n,c,f=>{jt(e,c.icons,f)})})}))}const Kc=(e,t)=>{const n=_c(e,!0,fo()),r=zc(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,wo)}),()=>{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,d=ot(u,c),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),i[u][c].push(f))}),o.forEach(l=>{const u=i[l.provider][l.prefix];u.length&&Yc(l,u)}),t?Bc(t,r,o):wo};function Xc(e,t){const n={...e};for(const r in t){const i=t[r],o=typeof i;r in po?(i===null||i&&(o==="string"||o==="number"))&&(n[r]=i):o===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Qc=/[\s,]+/;function Zc(e,t){t.split(Qc).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Jc(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 ef(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 tf(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function nf(e){return"data:image/svg+xml,"+tf(e)}function rf(e){return'url("'+nf(e)+'")'}let Mt;function of(){try{Mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Mt=null}}function sf(e){return Mt===void 0&&of(),Mt?Mt.createHTML(e):e}const So={...mo,inline:!1},af={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},lf={display:"inline-block"},Kn={backgroundColor:"currentColor"},To={backgroundColor:"transparent"},Co={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Po={WebkitMask:Kn,mask:Kn,background:To};for(const e in Po){const t=Po[e];for(const n in Co)t[e+n]=Co[n]}const uf={...So,inline:!0};function Eo(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const cf=(e,t,n)=>{const r=t.inline?uf:So,i=Xc(r,t),o=t.mode||"svg",s={},a=t.style||{},l={...o==="svg"?af:{}};if(n){const v=ln(n,!1,!0);if(v){const g=["iconify"],S=["provider","prefix"];for(const w of S)v[w]&&g.push("iconify--"+v[w]);l.className=g.join(" ")}}for(let v in t){const g=t[v];if(g!==void 0)switch(v){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=g;break;case"className":l[v]=(l[v]?l[v]+" ":"")+g;break;case"inline":case"hFlip":case"vFlip":i[v]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&Zc(i,g);break;case"color":s.color=g;break;case"rotate":typeof g=="string"?i[v]=Jc(g):typeof g=="number"&&(i[v]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete l["aria-hidden"];break;default:r[v]===void 0&&(l[v]=g)}}const u=Cc(e,i),c=u.attributes;if(i.inline&&(s.verticalAlign="-0.125em"),o==="svg"){l.style={...s,...a},Object.assign(l,c);let v=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:sf(Ic(u.body,g?()=>g+"ID"+v++:"iconifyReact"))},j.createElement("svg",l)}const{body:f,width:d,height:h}=e,b=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),m=ef(f,{...c,width:d+"",height:h+""});return l.style={...s,"--svg":rf(m),width:Eo(c.width),height:Eo(c.height),...lf,...b?Kn:To,...a},j.createElement("span",l)};if(fo(!0),Dc("",Rc),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"||!xc(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;jc(n,i)||console.error(r)}catch{console.error(r)}}}}function Ao(e){const[t,n]=j.useState(!!e.ssr),[r,i]=j.useState({});function o(h){if(h){const b=e.icon;if(typeof b=="object")return{name:"",data:b};const m=ho(b);if(m)return{name:b,data:m}}return{name:""}}const[s,a]=j.useState(o(!!e.ssr));function l(){const h=r.callback;h&&(h(),i({}))}function u(h){if(JSON.stringify(s)!==JSON.stringify(h))return l(),a(h),!0}function c(){var h;const b=e.icon;if(typeof b=="object"){u({name:"",data:b});return}const m=ho(b);if(u({name:b,data:m}))if(m===void 0){const v=Kc([b],c);i({callback:v})}else m&&((h=e.onLoad)===null||h===void 0||h.call(e,b))}j.useEffect(()=>(n(!0),l),[]),j.useEffect(()=>{t&&c()},[e.icon,t]);const{name:f,data:d}=s;return d?cf({...zn,...d},e,f):e.children?e.children:e.fallback?e.fallback:j.createElement("span",{})}const fe=j.forwardRef((e,t)=>Ao({...e,_ref:t}));j.forwardRef((e,t)=>Ao({inline:!0,...e,_ref:t}));const Io=({title:e,subtitle:t,items:n,className:r="",inverted:i=!1})=>x.jsx("section",{className:`bento-grid-section ${i?"theme-inverted":""} ${r}`,children:x.jsxs("div",{className:"bento-grid-container",children:[(e||t)&&x.jsxs("div",{className:"bento-grid-header",children:[e&&x.jsx("h2",{className:"section-title bento-grid-title",children:e}),t&&x.jsx("p",{className:"section-subtitle bento-grid-subtitle",children:t})]}),x.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 x.jsxs(u,{...c,children:[o.image&&x.jsx("div",{className:"bento-card-image-wrapper",children:x.jsx("img",{src:o.image.imageSrc,alt:o.image.alt,className:"bento-card-image"})}),x.jsxs("div",{className:"bento-card-content",children:[o.icon&&x.jsx("div",{className:"bento-card-icon",children:x.jsx(fe,{icon:o.icon,width:"24",height:"24"})}),x.jsxs("div",{className:`bento-card-text ${o.cardTextClassName}`,children:[x.jsx("h3",{className:"bento-card-title",children:o.title}),o.description&&x.jsx("p",{className:"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}`,ff("elevation",o),i?"card-hoverable":"",a?"theme-inverted":"",t].filter(Boolean).join(" ");return x.jsx("div",{className:l,onClick:s,children:e})},ff=(e,t)=>t&&t!=="none"?`card-${e}-${t}`:"",Do=e=>{const{menuBar:t,utilityButtons:n,sticky:r=!1,className:i="",logoHref:o,imageSrc:s,logoTarget:a="_self",logoClassName:l="",altText:u="Logo",inverted:c=!1}=e,[f,d]=j.useState(!1);return x.jsxs("header",{className:`header ${r?"header-sticky":""} ${c?"theme-inverted":""} ${i}`,children:[x.jsx("div",{className:"header-logo-wrapper",children:s&&x.jsx("a",{href:o||"#",target:a,className:`${l} hover-lift`,"aria-label":"Home",children:x.jsx("img",{src:s,alt:u})})}),x.jsx("button",{className:"header-toggle",onClick:()=>d(!f),"aria-label":"Toggle navigation",children:x.jsx(fe,{icon:f?"mdi:close":"mdi:menu"})}),x.jsxs("div",{className:`header-nav-container ${f?"active":""}`,children:[x.jsx("div",{className:"header-nav",children:t}),n&&n.length>0&&x.jsx("div",{className:"header-utility",children:n})]})]})},jo=j.createContext({});function df(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qn=typeof window<"u",hf=Qn?j.useLayoutEffect:j.useEffect,Zn=j.createContext(null);function Jn(e,t){e.indexOf(t)===-1&&e.push(t)}function er(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 tr(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(tr(t,n))},ze=(e,t,n)=>{if(!e)throw new Error(tr(t,n))});const _e={},Mo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function No(e){return typeof e=="object"&&e!==null}const Vo=e=>/^0[^.\s]+$/u.test(e);function nr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,pf=(e,t)=>n=>t(e(n)),Nt=(...e)=>e.reduce(pf),Vt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class rr{constructor(){this.subscriptions=[]}add(t){return Jn(this.subscriptions,t),()=>er(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,Pe=e=>e/1e3;function Lo(e,t){return t?e*(1e3/t):0}const Ro=new Set;function ir(e,t,n){e||Ro.has(t)||(console.warn(tr(t,n)),Ro.add(t))}const Oo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mf=1e-7,gf=12;function yf(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Oo(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>mf&&++a<gf);return s}function Lt(e,t,n,r){if(e===t&&n===r)return Ce;const i=o=>yf(o,0,1,e,n);return o=>o===0||o===1?o:Oo(i(o),t,r)}const Fo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bo=e=>t=>1-e(1-t),zo=Lt(.33,1.53,.69,.99),or=Bo(zo),_o=Fo(or),$o=e=>(e*=2)<1?.5*or(e):.5*(2-Math.pow(2,-10*(e-1))),sr=e=>1-Math.sin(Math.acos(e)),Uo=Bo(sr),Ho=Fo(sr),xf=Lt(.42,0,1,1),bf=Lt(0,0,.58,1),Wo=Lt(.42,0,.58,1),vf=e=>Array.isArray(e)&&typeof e[0]!="number",qo=e=>Array.isArray(e)&&typeof e[0]=="number",Go={linear:Ce,easeIn:xf,easeInOut:Wo,easeOut:bf,circIn:sr,circInOut:Ho,circOut:Uo,backIn:or,backInOut:_o,backOut:zo,anticipate:$o},wf=e=>typeof e=="string",Yo=e=>{if(qo(e)){ze(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Lt(t,n,r,i)}else if(wf(e))return ze(Go[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Go[e];return e},fn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kf(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,d=!1)=>{const b=d&&i?n:r;return f&&s.add(c),b.has(c)||b.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 Sf=40;function Ko(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=fn.reduce((w,P)=>(w[P]=kf(o),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:h,postRender:b}=s,m=()=>{const w=_e.useManualTiming?i.timestamp:performance.now();n=!1,_e.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,Sf),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),h.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:fn.reduce((w,P)=>{const E=s[P];return w[P]=(k,N=!1,M=!1)=>(n||v(),E.schedule(k,N,M)),w},{}),cancel:w=>{for(let P=0;P<fn.length;P++)s[fn[P]].cancel(w)},state:i,steps:s}}const{schedule:ne,cancel:He,state:ce,steps:ar}=Ko(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let dn;function Tf(){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(Tf)}},Xo=e=>t=>typeof t=="string"&&t.startsWith(e),Qo=Xo("--"),Cf=Xo("var(--"),lr=e=>Cf(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},Rt={...at,transform:e=>Be(0,1,e)},hn={...at,default:1},Ot=e=>Math.round(e*1e5)/1e5,ur=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ef(e){return e==null}const Af=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cr=(e,t)=>n=>!!(typeof n=="string"&&Af.test(n)&&n.startsWith(e)||t&&!Ef(n)&&Object.prototype.hasOwnProperty.call(n,t)),Zo=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(ur);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},If=e=>Be(0,255,e),fr={...at,transform:e=>Math.round(If(e))},Qe={test:cr("rgb","red"),parse:Zo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fr.transform(e)+", "+fr.transform(t)+", "+fr.transform(n)+", "+Ot(Rt.transform(r))+")"};function Df(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 dr={test:cr("#"),parse:Df,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"),Ve=Ft("%"),V=Ft("px"),jf=Ft("vh"),Mf=Ft("vw"),Jo={...Ve,parse:e=>Ve.parse(e)/100,transform:e=>Ve.transform(e*100)},lt={test:cr("hsl","hue"),parse:Zo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ve.transform(Ot(t))+", "+Ve.transform(Ot(n))+", "+Ot(Rt.transform(r))+")"},se={test:e=>Qe.test(e)||dr.test(e)||lt.test(e),parse:e=>Qe.test(e)?Qe.parse(e):lt.test(e)?lt.parse(e):dr.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)}},Nf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vf(e){return isNaN(e)&&typeof e=="string"&&(e.match(ur)?.length||0)+(e.match(Nf)?.length||0)>0}const es="number",ts="color",Lf="var",Rf="var(",ns="${}",Of=/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(Of,l=>(se.test(l)?(r.color.push(o),i.push(ts),n.push(se.parse(l))):l.startsWith(Rf)?(r.var.push(o),i.push(Lf),n.push(l)):(r.number.push(o),i.push(es),n.push(parseFloat(l))),++o,ns)).split(ns);return{values:n,split:a,indexes:r,types:i}}function rs(e){return Bt(e).values}function is(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===es?o+=Ot(i[s]):a===ts?o+=se.transform(i[s]):o+=i[s]}return o}}const Ff=e=>typeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function Bf(e){const t=rs(e);return is(e)(t.map(Ff))}const qe={test:Vf,parse:rs,createTransformer:is,getAnimatableNone:Bf};function hr(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 zf({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=hr(l,a,e+1/3),o=hr(l,a,e),s=hr(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,pr=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_f=[dr,Qe,lt],$f=e=>_f.find(t=>t.test(e));function os(e){const t=$f(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=zf(n)),n}const ss=(e,t)=>{const n=os(e),r=os(t);if(!n||!r)return pn(e,t);const i={...n};return o=>(i.red=pr(n.red,r.red,o),i.green=pr(n.green,r.green,o),i.blue=pr(n.blue,r.blue,o),i.alpha=re(n.alpha,r.alpha,o),Qe.transform(i))},mr=new Set(["none","hidden"]);function Uf(e,t){return mr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Hf(e,t){return n=>re(e,t,n)}function gr(e){return typeof e=="number"?Hf:typeof e=="string"?lr(e)?pn:se.test(e)?ss:Gf:Array.isArray(e)?as:typeof e=="object"?se.test(e)?ss:Wf:pn}function as(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>gr(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Wf(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=gr(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function qf(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 Gf=(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?mr.has(e)&&!i.values.length||mr.has(t)&&!r.values.length?Uf(e,t):Nt(as(qf(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 ls(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):gr(e)(e,t)}const Yf=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()}},us=(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 yr(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 Kf(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(yr(r),mn);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Pe(i)}}const Xf=5;function cs(e,t,n){const r=Math.max(t-Xf,0);return Lo(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},xr=.001;function Qf({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,Pe(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=br(u,s),b=Math.exp(-f);return xr-d/h*b},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,b=Math.exp(-f),m=br(Math.pow(u,2),s);return(-i(u)+xr>0?-1:1)*((d-h)*b)/m}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-xr+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=Jf(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 Zf=12;function Jf(e,t,n){let r=n;for(let i=1;i<Zf;i++)r=r-e(r)/t(r);return r}function br(e,t){return e*Math.sqrt(1-t*t)}const ed=["duration","bounce"],td=["stiffness","damping","mass"];function fs(e,t){return t.some(n=>e[n]!==void 0)}function nd(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!fs(e,td)&&fs(e,ed))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=Qf(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:d,isResolvedFromDuration:h}=nd({...n,velocity:-Pe(n.velocity||0)}),b=d||0,m=u/(2*Math.sqrt(l*c)),v=s-o,g=Pe(Math.sqrt(l/c)),S=Math.abs(v)<5;r||(r=S?ie.restSpeed.granular:ie.restSpeed.default),i||(i=S?ie.restDelta.granular:ie.restDelta.default);let w;if(m<1){const E=br(g,m);w=k=>{const N=Math.exp(-m*g*k);return s-N*((b+m*g*v)/E*Math.sin(E*k)+v*Math.cos(E*k))}}else if(m===1)w=E=>s-Math.exp(-g*E)*(v+(b+g*v)*E);else{const E=g*Math.sqrt(m*m-1);w=k=>{const N=Math.exp(-m*g*k),M=Math.min(E*k,300);return s-N*((b+m*g*v)*Math.sinh(M)+E*v*Math.cosh(M))/E}}const P={calculatedDuration:h&&f||null,next:E=>{const k=w(E);if(h)a.done=E>=f;else{let N=E===0?b:0;m<1&&(N=E===0?De(b):cs(w,E,k));const M=Math.abs(N)<=r,O=Math.abs(s-k)<=i;a.done=M&&O}return a.value=a.done?s:k,a},toString:()=>{const E=Math.min(yr(P),mn),k=us(N=>P.next(E*N).value,E,30);return E+"ms "+k},toTransition:()=>{}};return P}gn.applyToOptions=e=>{const t=Kf(e,100,gn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function vr({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],d={done:!1,value:f},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,b=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let m=n*t;const v=f+m,g=s===void 0?v:s(v);g!==v&&(m=g-f);const S=M=>-m*Math.exp(-M/r),w=M=>g+S(M),P=M=>{const O=S(M),B=w(M);d.done=Math.abs(O)<=u,d.value=d.done?g:B};let E,k;const N=M=>{h(d.value)&&(E=M,k=gn({keyframes:[d.value,b(d.value)],velocity:cs(w,M,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:M=>{let O=!1;return!k&&E===void 0&&(O=!0,P(M),N(M)),E!==void 0&&M>=E?k.next(M-E):(!O&&P(M),d)}}}function rd(e,t,n){const r=[],i=n||_e.mix||ls,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 id(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=rd(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 d=Vt(e[f],e[f+1],c);return a[f](d)};return n?c=>u(Be(e[0],e[o-1],c)):u}function od(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Vt(0,t,r);e.push(re(n,1,i))}}function sd(e){const t=[0];return od(t,e.length-1),t}function ad(e,t){return e.map(n=>n*t)}function ld(e,t){return e.map(()=>t||Wo).splice(0,e.length-1)}function ut({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=vf(r)?r.map(Yo):Yo(r),o={done:!1,value:t[0]},s=ad(n&&n.length===t.length?n:sd(t),e),a=id(s,t,{ease:Array.isArray(i)?i:ld(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const ud=e=>e!==null;function wr(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(ud),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const cd={decay:vr,inertia:vr,tween:ut,keyframes:ut,spring:gn};function ds(e){typeof e.type=="string"&&(e.type=cd[e.type])}class kr{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 fd=e=>e/100;class Sr extends kr{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;ds(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(fd,ls(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=yr(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:d,repeatDelay:h,type:b,onUpdate:m,finalKeyframe:v}=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 g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,P=r;if(f){const M=Math.min(this.currentTime,i)/a;let O=Math.floor(M),B=M%1;!B&&M>=1&&(B=1),B===1&&O--,O=Math.min(O,f+1),!!(O%2)&&(d==="reverse"?(B=1-B,h&&(B-=h/a)):d==="mirror"&&(P=s)),w=Be(0,1,B)*a}const E=S?{done:!1,value:c[0]}:P.next(w);o&&(E.value=o(E.value));let{done:k}=E;!S&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&b!==vr&&(E.value=wr(c,this.options,v,this.speed)),m&&m(E.value),N&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Pe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pe(t)}get time(){return Pe(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=Pe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Yf,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 dd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ze=e=>e*180/Math.PI,Tr=e=>{const t=Ze(Math.atan2(e[1],e[0]));return Cr(t)},hd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Tr,rotateZ:Tr,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},Cr=e=>(e=e%360,e<0&&(e+=360),e),hs=Tr,ps=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ms=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),pd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ps,scaleY:ms,scale:e=>(ps(e)+ms(e))/2,rotateX:e=>Cr(Ze(Math.atan2(e[6],e[5]))),rotateY:e=>Cr(Ze(Math.atan2(-e[2],e[0]))),rotateZ:hs,rotate:hs,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 Er(e,t){if(!e||e==="none")return Pr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=pd,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hd,i=a}if(!i)return Pr(t);const o=r[t],s=i[1].split(",").map(gd);return typeof o=="function"?o(s):s[o]}const md=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Er(n,t)};function gd(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),gs=e=>e===at||e===V,yd=new Set(["x","y","z"]),xd=ct.filter(e=>!yd.has(e));function bd(e){const t=[];return xd.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})=>Er(t,"x"),y:(e,{transform:t})=>Er(t,"y")};Je.translateX=Je.x,Je.translateY=Je.y;const et=new Set;let Ar=!1,Ir=!1,Dr=!1;function ys(){if(Ir){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=bd(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)})}Ir=!1,Ar=!1,et.forEach(e=>e.complete(Dr)),et.clear()}function xs(){et.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ir=!0)})}function vd(){Dr=!0,xs(),ys(),Dr=!1}class jr{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),Ar||(Ar=!0,ne.read(xs),ne.resolveKeyframes(ys))):(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])}dd(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 wd=e=>e.startsWith("--");function kd(e,t,n){wd(t)?e.style.setProperty(t,n):e.style[t]=n}const Sd=nr(()=>window.ScrollTimeline!==void 0),Td={};function Cd(e,t){const n=nr(e);return()=>Td[t]??n()}const bs=Cd(()=>{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})`,vs={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 ws(e,t){if(e)return typeof e=="function"?bs()?us(e,t):"ease-out":qo(e)?zt(e):Array.isArray(e)?e.map(n=>ws(n,t)||vs.easeOut):vs[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=ws(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function ks(e){return typeof e=="function"&&"applyToOptions"in e}function Ed({type:e,...t}){return ks(e)&&bs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ad extends kr{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=Ed(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=wr(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):kd(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 Pe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pe(t)}get time(){return Pe(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&&Sd()?(this.animation.timeline=t,Ce):n(this)}}const Ss={anticipate:$o,backInOut:_o,circInOut:Ho};function Id(e){return e in Ss}function Dd(e){typeof e.ease=="string"&&Id(e.ease)&&(e.ease=Ss[e.ease])}const Ts=10;class jd extends Ad{constructor(t){Dd(t),ds(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 Sr({...s,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ts).value,a.sample(l).value,Ts),a.stop()}}const Cs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qe.test(e)||e==="0")&&!e.startsWith("url("));function Md(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 Nd(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=Cs(i,t),a=Cs(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:Md(e)||(n==="spring"||ks(n))&&r}function Mr(e){e.duration=0,e.type="keyframes"}const Vd=new Set(["opacity","clipPath","filter","transform"]),Ld=nr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Rd(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 Ld()&&n&&Vd.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const Od=40;class Fd extends kr{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 d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,name:l,motionValue:u,element:c,...f},h=c?.KeyframeResolver||jr;this.keyframeResolver=new h(a,(b,m,v)=>this.onKeyframesResolved(b,m,d,!v),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(),Nd(t,o,s,a)||((_e.instantAnimations||!l)&&c?.(wr(t,r,n)),t[0]=t[t.length-1],Mr(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Od?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!u&&Rd(d)?new jd({...d,element:d.motionValue.owner.current}):new Sr(d);h.finished.then(()=>this.notifyFinished()).catch(Ce),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),vd()),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 Bd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zd(e){const t=Bd.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const _d=4;function Ps(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]=zd(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Mo(s)?parseFloat(s):s}return lr(i)?Ps(i,t,n+1):i}function Nr(e,t){return e?.[t]??e?.default??e}const Es=new Set(["width","height","top","left","right","bottom",...ct]),$d={test:e=>e==="auto",parse:e=>e},As=e=>t=>t.test(e),Is=[at,V,Ve,We,Mf,jf,$d],Ds=e=>Is.find(As(e));function Ud(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vo(e):!0}const Hd=new Set(["brightness","contrast","saturate","opacity"]);function Wd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ur)||[];if(!r)return e;const i=n.replace(r,"");let o=Hd.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const qd=/\b([a-z-]*)\(.*?\)/gu,Vr={...qe,getAnimatableNone:e=>{const t=e.match(qd);return t?t.map(Wd).join(" "):e}},js={...at,transform:Math.round},Lr={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:We,rotateX:We,rotateY:We,rotateZ:We,scale:hn,scaleX:hn,scaleY:hn,scaleZ:hn,skew:We,skewX:We,skewY:We,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Rt,originX:Jo,originY:Jo,originZ:V},zIndex:js,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:js},Gd={...Lr,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Vr,WebkitFilter:Vr},Ms=e=>Gd[e];function Ns(e,t){let n=Ms(e);return n!==Vr&&(n=qe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Yd=new Set(["auto","none","0"]);function Kd(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Yd.has(o)&&Bt(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Ns(n,i)}class Xd extends jr{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(),lr(u))){const c=Ps(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Es.has(r)||t.length!==2)return;const[i,o]=t,s=Ds(i),a=Ds(o);if(s!==a)if(gs(s)&&gs(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||Ud(t[i]))&&r.push(i);r.length&&Kd(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 Qd(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 Zd(e){return No(e)&&"offsetHeight"in e}const Ls=30,Jd=e=>!isNaN(parseFloat(e));class eh{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=Jd(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ir(!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 rr);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>Ls)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ls);return Lo(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 eh(e,t)}const{schedule:Rr}=Ko(queueMicrotask,!1),je={x:!1,y:!1};function Rs(){return je.x||je.y}function th(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 Os(e,t){const n=Qd(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Fs(e){return!(e.pointerType==="touch"||Rs())}function nh(e,t,n={}){const[r,i,o]=Os(e,n),s=a=>{if(!Fs(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{Fs(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const Bs=(e,t)=>t?e===t?!0:Bs(e,t.parentElement):!1,Or=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ih(e){return rh.has(e.tagName)||e.tabIndex!==-1}const yn=new WeakSet;function zs(e){return t=>{t.key==="Enter"&&e(t)}}function Fr(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const oh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=zs(()=>{if(yn.has(n))return;Fr(n,"down");const i=zs(()=>{Fr(n,"up")}),o=()=>Fr(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 _s(e){return Or(e)&&!Rs()}function sh(e,t,n={}){const[r,i,o]=Os(e,n),s=a=>{const l=a.currentTarget;if(!_s(a))return;yn.add(l);const u=t(l,a),c=(h,b)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),yn.has(l)&&yn.delete(l),_s(h)&&typeof u=="function"&&u(h,{success:b})},f=h=>{c(h,l===window||l===document||n.useGlobalTarget||Bs(l,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,i),Zd(a)&&(a.addEventListener("focus",u=>oh(u,i)),!ih(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function $s(e){return No(e)&&"ownerSVGElement"in e}function ah(e){return $s(e)&&e.tagName==="svg"}const de=e=>!!(e&&e.getVelocity),lh=[...Is,se,qe],uh=e=>lh.find(As(e)),Us=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ch(e=!0){const t=j.useContext(Zn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=j.useId();j.useEffect(()=>{if(e)return i(o)},[e]);const s=j.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Hs=j.createContext({strict:!1}),Ws={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 Ws)ht[e]={isEnabled:t=>Ws[e].some(n=>!!t[n])};function fh(e){for(const t in e)ht[t]={...ht[t],...e[t]}}const dh=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")||dh.has(e)}let qs=e=>!xn(e);function hh(e){typeof e=="function"&&(qs=t=>t.startsWith("on")?!xn(t):e(t))}try{hh(require("@emotion/is-prop-valid").default)}catch{}function ph(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(qs(i)||n===!0&&xn(i)||!t&&!xn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const bn=j.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 Br=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...Br];function wn(e){return vn(e.animate)||zr.some(t=>_t(e[t]))}function Gs(e){return!!(wn(e)||e.variants)}function mh(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 gh(e){const{initial:t,animate:n}=mh(e,j.useContext(bn));return j.useMemo(()=>({initial:t,animate:n}),[Ys(t),Ys(n)])}function Ys(e){return Array.isArray(e)?e.join(" "):e}function Ks(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(V.test(e))e=parseFloat(e);else return e;const n=Ks(e,t.target.x),r=Ks(e,t.target.y);return`${n}% ${r}%`}},yh={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:yh};function Xs(e,{layout:t,layoutId:n}){return ft.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_r[e]||e==="opacity")}const xh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bh=ct.length;function vh(e,t,n){let r="",i=!0;for(let o=0;o<bh;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,Lr[s]);if(!l){i=!1;const c=xh[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function $r(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(Qo(l)){i[l]=u;continue}else{const c=Vs(u,Lr[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=vh(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 Ur=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qs(e,t,n){for(const r in t)!de(t[r])&&!Xs(r,n)&&(e[r]=t[r])}function wh({transformTemplate:e},t){return j.useMemo(()=>{const n=Ur();return $r(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kh(e,t){const n=e.style||{},r={};return Qs(r,n,e),Object.assign(r,wh(e,t)),r}function Sh(e,t){const n={},r=kh(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 Th={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ch={offset:"strokeDashoffset",array:"strokeDasharray"};function Ph(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Th:Ch;e[o.offset]=V.transform(-r);const s=V.transform(t),a=V.transform(n);e[o.array]=`${s} ${a}`}const Eh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Zs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if($r(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const h of Eh)f[h]!==void 0&&(d[h]=f[h],delete f[h]);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 Js=()=>({...Ur(),attrs:{}}),ea=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ah(e,t,n,r){const i=j.useMemo(()=>{const o=Js();return Zs(o,t,ea(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Qs(o,e.style,e),i.style={...o,...i.style}}return i}const Ih=["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 Hr(e){return typeof e!="string"||e.includes("-")?!1:!!(Ih.indexOf(e)>-1||/[A-Z]/u.test(e))}function Dh(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??Hr(e)?Ah:Sh)(t,r,i,e),u=ph(t,typeof e=="string",o),c=e!==j.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=j.useMemo(()=>de(f)?f.get():f,[f]);return j.createElement(e,{...c,children:d})}function ta(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Wr(e,t,n,r){if(typeof t=="function"){const[i,o]=ta(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]=ta(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function kn(e){return de(e)?e.get():e}function jh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Mh(n,r,i,e),renderState:t()}}function Mh(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=kn(o[d]);let{initial:s,animate:a}=e;const l=wn(e),u=Gs(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 d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const b=Wr(e,d[h]);if(b){const{transitionEnd:m,transition:v,...g}=b;for(const S in g){let w=g[S];if(Array.isArray(w)){const P=c?w.length-1:0;w=w[P]}w!==null&&(i[S]=w)}for(const S in m)i[S]=m[S]}}}return i}const na=e=>(t,n)=>{const r=j.useContext(bn),i=j.useContext(Zn),o=()=>jh(e,t,r,i);return n?o():df(o)};function qr(e,t,n){const{style:r}=e,i={};for(const o in r)(de(r[o])||t.style&&de(t.style[o])||Xs(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}const Nh=na({scrapeMotionValuesFromProps:qr,createRenderState:Ur});function ra(e,t,n){const r=qr(e,t,n);for(const i in e)if(de(e[i])||de(t[i])){const o=ct.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Vh=na({scrapeMotionValuesFromProps:ra,createRenderState:Js}),Lh=Symbol.for("motionComponentSymbol");function pt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ia(e,t){if(typeof e=="function")return e(t);pt(e)&&(e.current=t)}function Rh(e,t,n){const r=j.useRef(null);return j.useCallback(i=>{if(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n)if(i){const o=ia(n,i);typeof o=="function"&&(r.current=o)}else r.current?(r.current(),r.current=null):ia(n,i)},[t,e,n])}const Gr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oa="data-"+Gr("framerAppearId"),sa=j.createContext({});function Oh(e,t,n,r,i,o){const{visualElement:s}=j.useContext(bn),a=j.useContext(Hs),l=j.useContext(Zn),u=j.useContext(Us).reducedMotion,c=j.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,d=j.useContext(sa);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Fh(c.current,n,i,d);const h=j.useRef(!1);j.useInsertionEffect(()=>{f&&h.current&&f.update(n,l)});const b=n[oa],m=j.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return hf(()=>{f&&(h.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),m.current&&f.animationState&&f.animationState.animateChanges())}),j.useEffect(()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),m.current=!1),f.enteringChildren=void 0)}),f}function Fh(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:aa(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 aa(e){if(e)return e.options.allowProjection!==!1?e.projection:aa(e.parent)}function Yr(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&fh(r);const o=n?n==="svg":Hr(e),s=o?Vh:Nh;function a(u,c){let f;const d={...j.useContext(Us),...u,layoutId:Bh(u)},{isStatic:h}=d,b=gh(u),m=s(u,h);if(!h&&Qn){zh(d,r);const v=_h(d);f=v.MeasureLayout,b.visualElement=Oh(e,m,d,i,v.ProjectionNode,o)}return x.jsxs(bn.Provider,{value:b,children:[f&&b.visualElement?x.jsx(f,{visualElement:b.visualElement,...d}):null,Dh(e,u,Rh(m,b.visualElement,c),m,h,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=j.forwardRef(a);return l[Lh]=e,l}function Bh({layoutId:e}){const t=j.useContext(jo).id;return t&&e!==void 0?t+"-"+e:e}function zh(e,t){const n=j.useContext(Hs).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 $h(e,t){if(typeof Proxy>"u")return Yr;const n=new Map,r=(o,s)=>Yr(o,s,e,t),i=(o,s)=>(process.env.NODE_ENV!=="production"&&ir(!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,Yr(s,void 0,e,t)),n.get(s))})}function la({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Uh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Hh(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 Kr(e){return e===void 0||e===1}function Xr({scale:e,scaleX:t,scaleY:n}){return!Kr(e)||!Kr(t)||!Kr(n)}function tt(e){return Xr(e)||ua(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ua(e){return ca(e.x)||ca(e.y)}function ca(e){return e&&e!=="0%"}function Sn(e,t,n){const r=e-n,i=t*r;return n+i}function fa(e,t,n,r,i){return i!==void 0&&(e=Sn(e,i,r)),Sn(e,n,r)+t}function Qr(e,t=0,n=1,r,i){e.min=fa(e.min,t,n,r,i),e.max=fa(e.max,t,n,r,i)}function da(e,{x:t,y:n}){Qr(e.x,t.translate,t.scale,t.originPoint),Qr(e.y,n.translate,n.scale,n.originPoint)}const ha=.999999999999,pa=1.0000000000001;function Wh(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&>(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,da(e,s)),r&&tt(o.latestValues)&>(e,o.latestValues))}t.x<pa&&t.x>ha&&(t.x=1),t.y<pa&&t.y>ha&&(t.y=1)}function mt(e,t){e.min=e.min+t,e.max=e.max+t}function ma(e,t,n,r,i=.5){const o=re(e.min,e.max,i);Qr(e,t,n,o,r)}function gt(e,t){ma(e.x,t.x,t.scaleX,t.scale,t.originX),ma(e.y,t.y,t.scaleY,t.scale,t.originY)}function ga(e,t){return la(Hh(e.getBoundingClientRect(),t))}function qh(e,t,n){const r=ga(e,n),{scroll:i}=t;return i&&(mt(r.x,i.offset.x),mt(r.y,i.offset.y)),r}const ya=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:ya(),y:ya()}),xa=()=>({min:0,max:0}),ue=()=>({x:xa(),y:xa()}),Zr={current:null},ba={current:!1};function Gh(){if(ba.current=!0,!!Qn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zr.current=e.matches;e.addEventListener("change",t),t()}else Zr.current=!1}const Yh=new WeakMap;function Kh(e,t,n){for(const r in t){const i=t[r],o=n[r];if(de(i))e.addValue(r,i);else if(de(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 va=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Xh{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=jr,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 d=ye.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,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=Gs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&de(h)&&h.set(l[d])}}mount(t){this.current=t,Yh.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:(ba.current||Gh(),this.shouldReduceMotion=Zr.current),process.env.NODE_ENV!=="production"&&ir(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<va.length;r++){const i=va[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=Kh(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"&&(Mo(r)||Vo(r))?r=parseFloat(r):!uh(r)&&qe.test(n)&&(r=Ns(t,n)),this.setBaseTarget(t,de(r)?r.get():r)),de(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=Wr(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&&!de(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 rr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Rr.render(this.render)}}class wa extends Xh{constructor(){super(...arguments),this.KeyframeResolver=Xd}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;de(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ka(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 Qh(e){return window.getComputedStyle(e)}class Zh extends wa{constructor(){super(...arguments),this.type="html",this.renderInstance=ka}readValueFromInstance(t,n){if(ft.has(n))return this.projection?.isProjecting?Pr(n):md(t,n);{const r=Qh(t),i=(Qo(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ga(t,n)}build(t,n,r){$r(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qr(t,n,r)}}const Sa=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 Jh(e,t,n,r){ka(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Sa.has(i)?i:Gr(i),t.attrs[i])}class ep extends wa{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=Ms(n);return r&&r.default||0}return n=Sa.has(n)?n:Gr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ra(t,n,r)}build(t,n,r){Zs(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Jh(t,n,r,i)}mount(t){this.isSVGTag=ea(t.tagName),super.mount(t)}}const tp=(e,t)=>t.isSVG??Hr(e)?new ep(t):new Zh(t,{allowProjection:e!==j.Fragment});function xt(e,t,n){const r=e.getProps();return Wr(r,t,n!==void 0?n:r.custom,e)}const Jr=e=>Array.isArray(e);function np(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dt(n))}function rp(e){return Jr(e)?e[e.length-1]||0:e}function ip(e,t){const n=xt(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=rp(o[s]);np(e,s,a)}}function op(e){return!!(de(e)&&e.add)}function ei(e,t){const n=e.getValue("willChange");if(op(n))return n.add(t);if(!n&&_e.WillChange){const r=new _e.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ta(e){return e.props[oa]}const sp=e=>e!==null;function ap(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(sp),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const lp={type:"spring",stiffness:500,damping:25,restSpeed:10},up=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cp={type:"keyframes",duration:.8},fp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dp=(e,{keyframes:t})=>t.length>2?cp:ft.has(e)?e.startsWith("scale")?up(t[1]):lp:fp;function hp({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 ti=(e,t,n,r={},i,o)=>s=>{const a=Nr(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:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};hp(a)||Object.assign(c,dp(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)&&(Mr(c),c.delay===0&&(f=!0)),(_e.instantAnimations||_e.skipAnimations)&&(f=!0,Mr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=ap(c.keyframes,a);if(d!==void 0){ne.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Sr(c):new Fd(c)};function pp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ca(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),d=a[c];if(d===void 0||u&&pp(u,c))continue;const h={delay:n,...Nr(o||{},c)},b=f.get();if(b!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===b&&!h.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const g=Ta(e);if(g){const S=window.MotionHandoffAnimation(g,c,ne);S!==null&&(h.startTime=S,m=!0)}}ei(e,c),f.start(ti(c,f,d,e.shouldReduceMotion&&Es.has(c)?{type:!1}:h,e,m));const v=f.animation;v&&l.push(v)}return s&&Promise.all(l).then(()=>{ne.update(()=>{s&&ip(e,s)})}),l}function Pa(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 ni(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(Ca(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return mp(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 mp(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(ni(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Pa(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function gp(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ni(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ni(e,t,n);else{const i=typeof t=="function"?xt(e,t,n.custom):t;r=Promise.all(Ca(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ea(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 yp=zr.length;function Aa(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Aa(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<yp;n++){const r=zr[n],i=e.props[r];(_t(i)||i===!1)&&(t[r]=i)}return t}const xp=[...Br].reverse(),bp=Br.length;function vp(e){return t=>Promise.all(t.map(({animation:n,options:r})=>gp(e,n,r)))}function wp(e){let t=vp(e),n=Ia(),r=!0;const i=l=>(u,c)=>{const f=xt(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:h,...b}=f;u={...u,...b,...h}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Aa(e.parent)||{},f=[],d=new Set;let h={},b=1/0;for(let v=0;v<bp;v++){const g=xp[v],S=n[g],w=u[g]!==void 0?u[g]:c[g],P=_t(w),E=g===l?S.isActive:null;E===!1&&(b=v);let k=w===c[g]&&w!==u[g]&&P;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),S.protectedKeys={...h},!S.isActive&&E===null||!w&&!S.prevProp||vn(w)||typeof w=="boolean")continue;const N=kp(S.prevProp,w);let M=N||g===l&&S.isActive&&!k&&P||v>b&&P,O=!1;const B=Array.isArray(w)?w:[w];let L=B.reduce(i(g),{});E===!1&&(L={});const{prevResolvedValues:R={}}=S,K={...R,...L},F=W=>{M=!0,d.has(W)&&(O=!0,d.delete(W)),S.needsAnimating[W]=!0;const Q=e.getValue(W);Q&&(Q.liveStyle=!1)};for(const W in K){const Q=L[W],le=R[W];if(h.hasOwnProperty(W))continue;let y=!1;Jr(Q)&&Jr(le)?y=!Ea(Q,le):y=Q!==le,y?Q!=null?F(W):d.add(W):Q!==void 0&&d.has(W)?F(W):S.protectedKeys[W]=!0}S.prevProp=w,S.prevResolvedValues=L,S.isActive&&(h={...h,...L}),r&&e.blockInitialAnimation&&(M=!1);const D=k&&N;M&&(!D||O)&&f.push(...B.map(W=>{const Q={type:g};if(typeof W=="string"&&r&&!D&&e.manuallyAnimateOnMount&&e.parent){const{parent:le}=e,y=xt(le,W);if(le.enteringChildren&&y){const{delayChildren:C}=y.transition||{};Q.delay=Pa(le.enteringChildren,e,C)}}return{animation:W,options:Q}}))}if(d.size){const v={};if(typeof u.initial!="boolean"){const g=xt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(v.transition=g.transition)}d.forEach(g=>{const S=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),v[g]=S??null}),f.push({animation:v})}let m=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?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=Ia()}}}function kp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ea(t,e):!1}function nt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ia(){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 Sp extends Ge{constructor(t){super(t),t.animationState||(t.animationState=wp(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 Tp=0;class Cp extends Ge{constructor(){super(...arguments),this.id=Tp++}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:Sp},exit:{Feature:Cp}};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 Ep=e=>t=>Or(t)&&e(t,Ht(t));function Wt(e,t,n,r){return Ut(e,t,Ep(n),r)}const Da=1e-4,Ap=1-Da,Ip=1+Da,ja=.01,Dp=0-ja,jp=0+ja;function pe(e){return e.max-e.min}function Mp(e,t,n){return Math.abs(e-t)<=n}function Ma(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>=Ap&&e.scale<=Ip||isNaN(e.scale))&&(e.scale=1),(e.translate>=Dp&&e.translate<=jp||isNaN(e.translate))&&(e.translate=0)}function qt(e,t,n,r){Ma(e.x,t.x,n.x,r?r.originX:void 0),Ma(e.y,t.y,n.y,r?r.originY:void 0)}function Na(e,t,n){e.min=n.min+t.min,e.max=e.min+pe(t)}function Np(e,t,n){Na(e.x,t.x,n.x),Na(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 Ee(e){return[e("x"),e("y")]}const La=({current:e})=>e?e.ownerDocument.defaultView:null,Ra=(e,t)=>Math.abs(e-t);function Vp(e,t){const n=Ra(e.x,t.x),r=Ra(e.y,t.y);return Math.sqrt(n**2+r**2)}class Oa{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 d=ii(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,b=Vp(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!b)return;const{point:m}=d,{timestamp:v}=ce;this.history.push({...m,timestamp:v});const{onStart:g,onMove:S}=this.handlers;h||(g&&g(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ri(h,this.transformPagePoint),ne.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:b,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=ii(d.type==="pointercancel"?this.lastMoveEventInfo:ri(h,this.transformPagePoint),this.history);this.startEvent&&b&&b(d,g),m&&m(d,g)},!Or(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=Ht(t),l=ri(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ce;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,ii(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 ri(e,t){return t?{point:t(e.point)}:e}function Fa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ii({point:e},t){return{point:e,delta:Fa(e,Ba(t)),offset:Fa(e,Lp(t)),velocity:Rp(t,.1)}}function Lp(e){return e[0]}function Ba(e){return e[e.length-1]}function Rp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ba(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>De(t)));)n--;if(!r)return{x:0,y:0};const o=Pe(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 Op(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 za(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 Fp(e,{top:t,left:n,bottom:r,right:i}){return{x:za(e.x,n,i),y:za(e.y,t,r)}}function _a(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 Bp(e,t){return{x:_a(e.x,t.x),y:_a(e.y,t.y)}}function zp(e,t){let n=.5;const r=pe(e),i=pe(t);return i>r?n=Vt(t.min,t.max-r,e.min):r>i&&(n=Vt(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 oi=.35;function $p(e=oi){return e===!1?e=0:e===!0&&(e=oi),{x:$a(e,"left","right"),y:$a(e,"top","bottom")}}function $a(e,t,n){return{min:Ua(e,t),max:Ua(e,n)}}function Ua(e,t){return typeof e=="number"?e:e[t]||0}const Up=new WeakMap;class Hp{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:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ht(f).point)},s=(f,d)=>{const{drag:h,dragPropagation:b,onDragStart:m}=this.getProps();if(h&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=th(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ee(g=>{let S=this.getAxisMotionValue(g).get()||0;if(Ve.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const P=w.layout.layoutBox[g];P&&(S=pe(P)*(parseFloat(S)/100))}}this.originPoint[g]=S}),m&&ne.postRender(()=>m(f,d)),ei(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:b,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:g}=d;if(b&&this.currentDirection===null){this.currentDirection=Wp(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,g),this.updateAxis("y",d.point,g),this.visualElement.render(),v&&v(f,d)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ee(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Oa(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:La(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=Op(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=Fp(r.layoutBox,t):this.constraints=!1,this.elastic=$p(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ee(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=qh(r,i.root,this.visualElement.getTransformPagePoint());let s=Bp(i.layout.layoutBox,o);if(n){const a=n(Uh(s));this.hasMutatedConstraints=!!a,a&&(s=la(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ee(c=>{if(!Cn(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,b)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ei(this.visualElement,t),r.start(ti(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ee(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ee(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){Ee(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};Ee(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=zp({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(),Ee(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;Up.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&&(Ee(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=oi,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 Wp(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qp extends Ge{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new Hp(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 Ha=e=>(t,n)=>{e&&ne.postRender(()=>e(t,n))};class Gp extends Ge{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new Oa(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:La(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ha(t),onStart:Ha(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 Pn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let si=!1;class Yp extends j.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),si&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Pn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,si=!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(),Rr.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;si=!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 Wa(e){const[t,n]=ch(),r=j.useContext(jo);return x.jsx(Yp,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(sa),isPresent:t,safeToRemove:n})}function Kp(e,t,n){const r=de(e)?e:dt(e);return r.start(ti("",r,t,n)),r.animation}const Xp=(e,t)=>e.depth-t.depth;class Qp{constructor(){this.children=[],this.isDirty=!1}add(t){Jn(this.children,t),this.isDirty=!0}remove(t){er(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Xp),this.isDirty=!1,this.children.forEach(t)}}function Zp(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 qa=["TopLeft","TopRight","BottomLeft","BottomRight"],Jp=qa.length,Ga=e=>typeof e=="string"?parseFloat(e):e,Ya=e=>typeof e=="number"||V.test(e);function em(e,t,n,r,i,o){i?(e.opacity=re(0,n.opacity??1,tm(r)),e.opacityExit=re(t.opacity??1,0,nm(r))):o&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<Jp;s++){const a=`border${qa[s]}Radius`;let l=Ka(t,a),u=Ka(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Ya(l)===Ya(u)?(e[a]=Math.max(re(Ga(l),Ga(u),r),0),(Ve.test(u)||Ve.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=re(t.rotate||0,n.rotate||0,r))}function Ka(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tm=Xa(0,.5,Uo),nm=Xa(.5,.95,Ce);function Xa(e,t,n){return r=>r<e?0:r>t?1:n(Vt(e,t,r))}function Qa(e,t){e.min=t.min,e.max=t.max}function Me(e,t){Qa(e.x,t.x),Qa(e.y,t.y)}function Za(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ja(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 rm(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ve.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=Ja(e.min,t,n,a,i),e.max=Ja(e.max,t,n,a,i)}function el(e,t,[n,r,i],o,s){rm(e,t[n],t[r],t[i],t.scale,o,s)}const im=["x","scaleX","originX"],om=["y","scaleY","originY"];function tl(e,t,n,r){el(e.x,t,im,n?n.x:void 0,r?r.x:void 0),el(e.y,t,om,n?n.y:void 0,r?r.y:void 0)}function nl(e){return e.translate===0&&e.scale===1}function rl(e){return nl(e.x)&&nl(e.y)}function il(e,t){return e.min===t.min&&e.max===t.max}function sm(e,t){return il(e.x,t.x)&&il(e.y,t.y)}function ol(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sl(e,t){return ol(e.x,t.x)&&ol(e.y,t.y)}function al(e){return pe(e.x)/pe(e.y)}function ll(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class am{constructor(){this.members=[]}add(t){Jn(this.members,t),t.scheduleRender()}remove(t){if(er(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 lm(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:d,skewX:h,skewY:b}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),b&&(r+=`skewY(${b}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 ai=["","X","Y","Z"],um=1e3;let cm=0;function li(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ul(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ta(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&&ul(r)}function cl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=cm++,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(hm),this.nodes.forEach(ym),this.nodes.forEach(xm),this.nodes.forEach(pm)},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 Qp)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new rr),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=$s(s)&&!ah(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 d=()=>this.root.updateBlockedByResize=!1;ne.read(()=>{f=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=Zp(d,250),Pn.hasAnimatedSinceResize&&(Pn.hasAnimatedSinceResize=!1,this.nodes.forEach(hl)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||Sm,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!sl(this.targetLayout,h),S=!f&&d;if(this.options.layoutRoot||this.resumeFrom||S||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Nr(b,"layout"),onPlay:m,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,S)}else f||hl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(bm),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&&ul(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(fl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(dl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gm),this.nodes.forEach(fm),this.nodes.forEach(dm)):this.nodes.forEach(dl),this.clearAllSnapshots();const a=ye.now();ce.delta=Be(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,ar.update.process(ce),ar.preRender.process(ce),ar.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mm),this.sharedNodes.forEach(vm)}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&&!rl(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)),Tm(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(Cm))){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&>(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),tt(c.latestValues)&>(l,c.latestValues)}return tt(this.latestValues)&>(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;Xr(u.latestValues)&&u.updateSnapshot();const c=ue(),f=u.measurePageBox();Me(c,f),tl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return tt(this.latestValues)&&tl(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 d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.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(),Np(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):Me(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Xr(this.parent.latestValues)||ua(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,d=this.treeScale.y;Wh(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:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Za(this.prevProjectionDelta.x,this.projectionDelta.x),Za(this.prevProjectionDelta.y,this.projectionDelta.y)),qt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!ll(this.projectionDelta.x,this.prevProjectionDelta.x)||!ll(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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 d=ue(),h=l?l.source:void 0,b=this.layout?this.layout.source:void 0,m=h!==b,v=this.getStack(),g=!v||v.members.length<=1,S=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(km));this.animationProgress=0;let w;this.mixTargetDelta=P=>{const E=P/1e3;pl(f.x,s.x,E),pl(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tn(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wm(this.relativeTarget,this.relativeTargetOrigin,d,E),w&&sm(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ue()),Me(w,this.relativeTarget)),m&&(this.animationValues=c,em(c,u,this.latestValues,E,S,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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(()=>{Pn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dt(0)),this.currentAnimation=Kp(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(um),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&&bl(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 d=pe(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}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 am),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&&li("z",s,u,this.animationValues);for(let c=0;c<ai.length;c++)li(`rotate${ai[c]}`,s,u,this.animationValues),li(`skew${ai[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=lm(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),s.transform=f;const{x:d,y:h}=this.projectionDelta;s.transformOrigin=`${d.origin*100}% ${h.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 b in _r){if(c[b]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:g}=_r[b],S=f==="none"?c[b]:m(c[b],u);if(v){const w=v.length;for(let P=0;P<w;P++)s[v[P]]=S}else g?this.options.visualElement.renderState.vars[b]=S:s[b]=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(fl),this.root.sharedNodes.clear()}}}function fm(e){e.updateLayout()}function dm(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"?Ee(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],d=pe(f);f.min=n[c].min,f.max=f.min+d}):bl(i,t.layoutBox,n)&&Ee(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],d=pe(n[c]);f.max=f.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+d)});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=!rl(s);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:d}=c;if(f&&d){const h=ue();Tn(h,t.layoutBox,f.layoutBox);const b=ue();Tn(b,n,d.layoutBox),sl(h,b)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=h,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 hm(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 pm(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mm(e){e.clearSnapshot()}function fl(e){e.clearMeasurements()}function dl(e){e.isLayoutDirty=!1}function gm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ym(e){e.resolveTargetDelta()}function xm(e){e.calcProjection()}function bm(e){e.resetSkewAndRotation()}function vm(e){e.removeLeadSnapshot()}function pl(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 ml(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function wm(e,t,n,r){ml(e.x,t.x,n.x,r),ml(e.y,t.y,n.y,r)}function km(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sm={duration:.45,ease:[.4,0,.1,1]},gl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yl=gl("applewebkit/")&&!gl("chrome/")?Math.round:Ce;function xl(e){e.min=yl(e.min),e.max=yl(e.max)}function Tm(e){xl(e.x),xl(e.y)}function bl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Mp(al(t),al(n),.2)}function Cm(e){return e!==e.root&&e.scroll?.wasRoot}const Pm=cl({attachResizeListener:(e,t)=>Ut(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ui={current:void 0},vl=cl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ui.current){const e=new Pm({});e.mount(window),e.setOptions({layoutScroll:!0}),ui.current=e}return ui.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Em={pan:{Feature:Gp},drag:{Feature:qp,ProjectionNode:vl,MeasureLayout:Wa}};function wl(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 Am extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=nh(t,(n,r)=>(wl(this.node,r,"Start"),i=>wl(this.node,i,"End"))))}unmount(){}}class Im 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 kl(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 Dm extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=sh(t,(n,r)=>(kl(this.node,r,"Start"),(i,{success:o})=>kl(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ci=new WeakMap,fi=new WeakMap,jm=e=>{const t=ci.get(e.target);t&&t(e)},Mm=e=>{e.forEach(jm)};function Nm({root:e,...t}){const n=e||document;fi.has(n)||fi.set(n,{});const r=fi.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Mm,{root:e,...t})),r[i]}function Vm(e,t,n){const r=Nm(t);return ci.set(e,n),r.observe(e),()=>{ci.delete(e),r.unobserve(e)}}const Lm={some:0,all:1};class Rm 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:Lm[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(),d=u?c:f;d&&d(l)};return Vm(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(Om(t,n))&&this.startObserver()}unmount(){}}function Om({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fm={...Pp,...{inView:{Feature:Rm},tap:{Feature:Dm},focus:{Feature:Im},hover:{Feature:Am}},...Em,...{layout:{ProjectionNode:vl,MeasureLayout:Wa}}},we=$h(Fm,tp),Sl=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,d=["menu-item",s?"active":"",f?"compact":"",!r||!l?"no-description":"",a].filter(Boolean).join(" ");return x.jsxs(we.a,{href:n,target:c,onClick:u,className:d,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&x.jsx(we.div,{className:"menu-item-icon",whileHover:{rotate:5},children:x.jsx(fe,{icon:i})}),x.jsxs("div",{className:"menu-item-content",children:[x.jsxs("div",{className:"menu-item-header",children:[x.jsx("span",{className:"menu-item-title",children:t}),o&&x.jsx(we.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:o})]}),r&&l&&x.jsx(we.p,{className:"menu-item-description",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:r})]})]})},Tl=e=>{const{children:t,columns:n=3,className:r="",gridClassName:i=""}=e,o=`menu-grid columns-${n} ${i}`;return x.jsx("div",{className:`menu-grid-container ${r}`,children:x.jsx("div",{className:o,children:t})})},Cl=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 x.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")?x.jsxs("a",{href:r,className:"menu-grid-link",target:"_blank",rel:"noopener noreferrer",children:[o&&x.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),x.jsxs("div",{className:"menu-grid-header",children:[i&&x.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:x.jsx(fe,{icon:i})}),x.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&x.jsx("span",{className:"menu-grid-description",children:n})]}):x.jsxs(Bn.Link,{to:r,className:"menu-grid-link",children:[o&&x.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),x.jsxs("div",{className:"menu-grid-header",children:[i&&x.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:x.jsx(fe,{icon:i})}),x.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&x.jsx("span",{className:"menu-grid-description",children:n})]})})},Pl=({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]}:{},d={left:"text-left items-start",center:"text-center items-center",right:"text-right items-end",justify:"text-justify"}[o],h={none:"p-none",small:"p-small",medium:"p-medium",large:"p-large"}[s];return x.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:[x.jsx("div",{className:"hero-overlay"}),x.jsxs("div",{className:`hero-text ${d} ${h}`,children:[x.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&&x.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&&x.jsx("div",{className:"hero-actions",children:x.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})})]})]})},El=e=>{const{icon:t,onClick:n,ariaLabel:r,className:i=""}=e;return x.jsx("button",{className:`select-option ${i}`,onClick:n,"aria-label":r,type:"button",children:x.jsx(fe,{icon:t,className:"icon-button-icon"})})};function Fb(){}function Bb(){}function Bm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const zm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_m=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$m={};function Al(e,t){return($m.jsx?_m:zm).test(e)}const Um=/[ \t\n\f\r]/g;function Hm(e){return typeof e=="object"?e.type==="text"?Il(e.value):!1:Il(e)}function Il(e){return e.replace(Um,"")===""}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 Dl(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 di(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 Wm=0;const H=rt(),ae=rt(),hi=rt(),A=rt(),J=rt(),bt=rt(),ke=rt();function rt(){return 2**++Wm}const pi=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:ae,commaOrSpaceSeparated:ke,commaSeparated:bt,number:A,overloadedBoolean:hi,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),mi=Object.keys(pi);class gi extends xe{constructor(t,n,r,i){let o=-1;if(super(t,n),jl(this,"space",i),typeof r=="number")for(;++o<mi.length;){const s=mi[o];jl(this,mi[o],(r&pi[s])===pi[s])}}}gi.prototype.defined=!0;function jl(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 gi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[di(r)]=r,n[di(o.attribute)]=r}return new Gt(t,n,e.space)}const Ml=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 Nl(e,t){return t in e?e[t]:t}function Vl(e,t){return Nl(e,t.toLowerCase())}const qm=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:hi,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:hi,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:Vl}),Gm=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:Nl}),Ll=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()}}),Rl=vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vl}),Ol=vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ym={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"},Km=/[A-Z]/g,Fl=/-[a-z]/g,Xm=/^data[-\w.:]+$/i;function Qm(e,t){const n=di(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"&&Xm.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Fl,Jm);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Fl.test(o)){let s=o.replace(Km,Zm);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=gi}return new i(r,t)}function Zm(e){return"-"+e.toLowerCase()}function Jm(e){return e.charAt(1).toUpperCase()}const eg=Dl([Ml,qm,Ll,Rl,Ol],"html"),yi=Dl([Ml,Gm,Ll,Rl,Ol],"svg");function tg(e){return e.join(" ").trim()}var wt={},xi,Bl;function ng(){if(Bl)return xi;Bl=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="",d="comment",h="declaration";function b(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var S=1,w=1;function P(F){var D=F.match(t);D&&(S+=D.length);var G=F.lastIndexOf(l);w=~G?F.length-G:w+F.length}function E(){var F={line:S,column:w};return function(D){return D.position=new k(F),O(),D}}function k(F){this.start=F,this.end={line:S,column:w},this.source=g.source}k.prototype.content=v;function N(F){var D=new Error(g.source+":"+S+":"+w+": "+F);if(D.reason=F,D.filename=g.source,D.line=S,D.column=w,D.source=v,!g.silent)throw D}function M(F){var D=F.exec(v);if(D){var G=D[0];return P(G),v=v.slice(G.length),D}}function O(){M(n)}function B(F){var D;for(F=F||[];D=L();)D!==!1&&F.push(D);return F}function L(){var F=E();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var D=2;f!=v.charAt(D)&&(c!=v.charAt(D)||u!=v.charAt(D+1));)++D;if(D+=2,f===v.charAt(D-1))return N("End of comment missing");var G=v.slice(2,D-2);return w+=2,P(G),v=v.slice(D),w+=2,F({type:d,comment:G})}}function R(){var F=E(),D=M(r);if(D){if(L(),!M(i))return N("property missing ':'");var G=M(o),W=F({type:h,property:m(D[0].replace(e,f)),value:G?m(G[0].replace(e,f)):f});return M(s),W}}function K(){var F=[];B(F);for(var D;D=R();)D!==!1&&(F.push(D),B(F));return F}return O(),K()}function m(v){return v?v.replace(a,f):f}return xi=b,xi}var zl;function rg(){if(zl)return wt;zl=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(ng());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={},_l;function ig(){if(_l)return Yt;_l=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,$l;function og(){if($l)return Kt;$l=1;var e=Kt&&Kt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(rg()),n=ig();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 sg=og();const ag=eo(sg),Ul=Hl("end"),bi=Hl("start");function Hl(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 lg(e){const t=bi(e),n=Ul(e);if(t&&n)return{start:t,end:n}}function Xt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wl(e.position):"start"in e||"end"in e?Wl(e):"line"in e||"column"in e?vi(e):""}function vi(e){return ql(e&&e.line)+":"+ql(e&&e.column)}function Wl(e){return vi(e&&e.start)+"-"+vi(e&&e.end)}function ql(e){return e&&typeof e=="number"?e:1}class he 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}}he.prototype.file="",he.prototype.name="",he.prototype.reason="",he.prototype.message="",he.prototype.stack="",he.prototype.column=void 0,he.prototype.line=void 0,he.prototype.ancestors=void 0,he.prototype.cause=void 0,he.prototype.fatal=void 0,he.prototype.place=void 0,he.prototype.ruleId=void 0,he.prototype.source=void 0;const wi={}.hasOwnProperty,ug=new Map,cg=/[A-Z]/g,fg=new Set(["table","tbody","thead","tfoot","tr"]),dg=new Set(["td","th"]),Gl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hg(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=wg(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=vg(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"?yi:eg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Yl(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Yl(e,t,n){if(t.type==="element")return pg(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mg(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yg(e,t,n);if(t.type==="mdxjsEsm")return gg(e,t);if(t.type==="root")return xg(e,t,n);if(t.type==="text")return bg(e,t)}function pg(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=yi,e.schema=i),e.ancestors.push(t);const o=Xl(e,t.tagName,!1),s=kg(e,t);let a=Si(e,t);return fg.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Hm(l):!0})),Kl(e,s,o,t),ki(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function mg(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 gg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qt(e,t.position)}function yg(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=yi,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Xl(e,t.name,!0),s=Sg(e,t),a=Si(e,t);return Kl(e,s,o,t),ki(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function xg(e,t,n){const r={};return ki(r,Si(e,t)),e.create(t,e.Fragment,r,n)}function bg(e,t){return t.value}function Kl(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ki(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function vg(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 wg(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=bi(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 kg(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&wi.call(t.properties,i)){const o=Tg(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&dg.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 Sg(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 Si(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ug;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=Yl(e,o,s);a!==void 0&&n.push(a)}return n}function Tg(e,t,n){const r=Qm(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Bm(n):tg(n)),r.property==="style"){let i=typeof n=="object"?n:Cg(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Pg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ym[r.property]||r.property:r.attribute,n]}}function Cg(e,t){try{return ag(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new he("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=Gl+"#cannot-parse-style-attribute",i}}function Xl(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=Al(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=Al(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return wi.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 he("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=Gl+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Pg(e){const t={};let n;for(n in e)wi.call(e,n)&&(t[Eg(n)]=e[n]);return t}function Eg(e){let t=e.replace(cg,Ag);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ag(e){return"-"+e.toLowerCase()}const Ti={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"]},Ig={};function Dg(e,t){const n=Ig,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ql(e,r,i)}function Ql(e,t,n){if(jg(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 Zl(e.children,t,n)}return Array.isArray(e)?Zl(e,t,n):""}function Zl(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ql(e[i],t,n);return r.join("")}function jg(e){return!!(e&&typeof e=="object")}const Jl=document.createElement("i");function Ci(e){const t="&"+e+";";Jl.innerHTML=t;const n=Jl.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Le(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?(Le(e,e.length,0,t),e):t}const eu={}.hasOwnProperty;function Mg(e){const t={};let n=-1;for(;++n<e.length;)Ng(t,e[n]);return t}function Ng(e,t){let n;for(n in t){const i=(eu.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){eu.call(i,s)||(i[s]=[]);const a=o[s];Vg(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Vg(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Le(e,0,0,r)}function tu(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 Re=Ye(/[A-Za-z]/),Se=Ye(/[\dA-Za-z]/),Lg=Ye(/[#-'*+\--9=?A-Z^-~]/);function Pi(e){return e!==null&&(e<32||e===127)}const Ei=Ye(/\d/),Rg=Ye(/[\dA-Fa-f]/),Og=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 Fg=Ye(new RegExp("\\p{P}|\\p{S}","u")),Bg=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 zg={tokenize:_g};function _g(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 $g={tokenize:Ug},nu={tokenize:Hg};function Ug(e){const t=this,n=[];let r=0,i,o,s;return a;function a(w){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,l,u)(w)}return u(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const P=t.events.length;let E=P,k;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){k=t.events[E][1].end;break}g(r);let N=P;for(;N<t.events.length;)t.events[N][1].end={...k},N++;return Le(t.events,E+1,0,t.events.slice(P)),t.events.length=N,u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return d(w);if(i.currentConstruct&&i.currentConstruct.concrete)return b(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nu,c,f)(w)}function c(w){return i&&S(),g(r),d(w)}function f(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(w)}function d(w){return t.containerState={},e.attempt(nu,h,b)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),d(w)}function b(w){if(w===null){i&&S(),g(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(w)}function m(w){if(w===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return _(w)?(e.consume(w),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),m)}function v(w,P){const E=t.sliceStream(w);if(P&&E.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(E),t.parser.lazy[w.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<s&&(!i.events[k][1].end||i.events[k][1].end.offset>s))return;const N=t.events.length;let M=N,O,B;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(O){B=t.events[M][1].end;break}O=!0}for(g(r),k=N;k<t.events.length;)t.events[k][1].end={...B},k++;Le(t.events,M+1,0,t.events.slice(N)),t.events.length=k}}function g(w){let P=n.length;for(;P-- >w;){const E=n[P];t.containerState=E[1],E[0].exit.call(t,e)}n.length=w}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Hg(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 ru(e){if(e===null||be(e)||Bg(e))return 1;if(Fg(e))return 2}function Ai(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 Ii={name:"attention",resolveAll:Wg,tokenize:qg};function Wg(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},d={...e[n][1].start};iu(f,-l),iu(d,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:d},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,Ai(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,Le(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 qg(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ru(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=ru(l),f=!c||c===2&&i||n.includes(l),d=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!d)),u._close=!!(o===42?d:d&&(c||!f)),t(l)}}function iu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gg={name:"autolink",tokenize:Yg};function Yg(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Re(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||Se(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Se(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Pi(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Lg(h)?(e.consume(h),u):n(h)}function c(h){return Se(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Se(h))&&r++<63){const b=h===45?d:f;return e.consume(h),b}return n(h)}}const En={partial:!0,tokenize:Kg};function Kg(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 ou={continuation:{tokenize:Qg},exit:Zg,name:"blockQuote",tokenize:Xg};function Xg(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 Qg(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(ou,t,n)(s)}}function Zg(e){e.exit("blockQuote")}const su={name:"characterEscape",tokenize:Jg};function Jg(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 Og(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const au={name:"characterReference",tokenize:ey};function ey(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=Rg,c):(e.enter("characterReferenceValue"),o=7,s=Ei,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return s===Se&&!Ci(r.sliceSerialize(d))?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 lu={partial:!0,tokenize:ny},uu={concrete:!0,name:"codeFenced",tokenize:ty};function ty(e,t,n){const r=this,i={partial:!0,tokenize:E};let o=0,s=0,a;return l;function l(k){return u(k)}function u(k){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===a?(s++,e.consume(k),c):s<3?n(k):(e.exit("codeFencedFenceSequence"),Y(k)?ee(e,f,"whitespace")(k):f(k))}function f(k){return k===null||_(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(lu,m,P)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||_(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):Y(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ee(e,h,"whitespace")(k)):k===96&&k===a?n(k):(e.consume(k),d)}function h(k){return k===null||_(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||_(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?n(k):(e.consume(k),b)}function m(k){return e.attempt(i,P,v)(k)}function v(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),g}function g(k){return o>0&&Y(k)?ee(e,S,"linePrefix",o+1)(k):S(k)}function S(k){return k===null||_(k)?e.check(lu,m,P)(k):(e.enter("codeFlowValue"),w(k))}function w(k){return k===null||_(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),w)}function P(k){return e.exit("codeFenced"),t(k)}function E(k,N,M){let O=0;return B;function B(D){return k.enter("lineEnding"),k.consume(D),k.exit("lineEnding"),L}function L(D){return k.enter("codeFencedFence"),Y(D)?ee(k,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):R(D)}function R(D){return D===a?(k.enter("codeFencedFenceSequence"),K(D)):M(D)}function K(D){return D===a?(O++,k.consume(D),K):O>=s?(k.exit("codeFencedFenceSequence"),Y(D)?ee(k,F,"whitespace")(D):F(D)):M(D)}function F(D){return D===null||_(D)?(k.exit("codeFencedFence"),N(D)):M(D)}}}function ny(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 Di={name:"codeIndented",tokenize:iy},ry={partial:!0,tokenize:oy};function iy(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(ry,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 oy(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 sy={name:"codeText",previous:ly,resolve:ay,tokenize:uy};function ay(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 ly(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uy(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 cy{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 cu(e){const t={};let n=-1,r,i,o,s,a,l,u;const c=new cy(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,fy(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 Le(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function fy(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,d=-1,h=n,b=0,m=0;const v=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(m=d+1,v.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),d=v.length;d--;){const g=a.slice(v[d],v[d+1]),S=o.pop();l.push([S,S+g.length-1]),e.splice(S,2,g)}for(l.reverse(),d=-1;++d<l.length;)u[b+l[d][0]]=b+l[d][1],b+=l[d][1]-l[d][0]-1;return u}const dy={resolve:py,tokenize:my},hy={partial:!0,tokenize:gy};function py(e){return cu(e),e}function my(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(hy,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 gy(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 fu(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),d):g===null||g===32||g===41||Pi(g)?n(g):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(g))}function d(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(e.exit("chunkString"),e.exit(a),d(g)):g===null||g===60||_(g)?n(g):(e.consume(g),g===92?b:h)}function b(g){return g===60||g===62||g===92?(e.consume(g),h):h(g)}function m(g){return!c&&(g===null||g===41||be(g))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(g)):c<u&&g===40?(e.consume(g),c++,m):g===41?(e.consume(g),c--,m):g===null||g===32||g===40||Pi(g)?n(g):(e.consume(g),g===92?v:m)}function v(g){return g===40||g===41||g===92?(e.consume(g),m):m(g)}}function du(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):_(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||_(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Y(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function hu(e,t,n,r,i,o){let s;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===s?(e.exit(o),l(s)):d===null?n(d):_(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ee(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===s||d===null||_(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===s||d===92?(e.consume(d),c):c(d)}}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 yy={name:"definition",tokenize:by},xy={partial:!0,tokenize:vy};function by(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return du.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=kt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return be(h)?Jt(e,u)(h):u(h)}function u(h){return fu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(xy,f,f)(h)}function f(h){return Y(h)?ee(e,d,"whitespace")(h):d(h)}function d(h){return h===null||_(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function vy(e,t,n){return r;function r(a){return be(a)?Jt(e,i)(a):n(a)}function i(a){return hu(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 wy={name:"hardBreakEscape",tokenize:ky};function ky(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 Sy={name:"headingAtx",resolve:Ty,tokenize:Cy};function Ty(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"},Le(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Cy(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 Py=["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"],pu=["pre","script","style","textarea"],Ey={concrete:!0,name:"htmlFlow",resolveTo:Dy,tokenize:jy},Ay={partial:!0,tokenize:Ny},Iy={partial:!0,tokenize:My};function Dy(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 jy(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),d):p===47?(e.consume(p),o=!0,m):p===63?(e.consume(p),i=3,r.interrupt?t:y):Re(p)?(e.consume(p),s=String.fromCharCode(p),v):n(p)}function d(p){return p===45?(e.consume(p),i=2,h):p===91?(e.consume(p),i=5,a=0,b):Re(p)?(e.consume(p),i=4,r.interrupt?t:y):n(p)}function h(p){return p===45?(e.consume(p),r.interrupt?t:y):n(p)}function b(p){const X="CDATA[";return p===X.charCodeAt(a++)?(e.consume(p),a===X.length?r.interrupt?t:R:b):n(p)}function m(p){return Re(p)?(e.consume(p),s=String.fromCharCode(p),v):n(p)}function v(p){if(p===null||p===47||p===62||be(p)){const X=p===47,Ie=s.toLowerCase();return!X&&!o&&pu.includes(Ie)?(i=1,r.interrupt?t(p):R(p)):Py.includes(s.toLowerCase())?(i=6,X?(e.consume(p),g):r.interrupt?t(p):R(p)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(p):o?S(p):w(p))}return p===45||Se(p)?(e.consume(p),s+=String.fromCharCode(p),v):n(p)}function g(p){return p===62?(e.consume(p),r.interrupt?t:R):n(p)}function S(p){return Y(p)?(e.consume(p),S):B(p)}function w(p){return p===47?(e.consume(p),B):p===58||p===95||Re(p)?(e.consume(p),P):Y(p)?(e.consume(p),w):B(p)}function P(p){return p===45||p===46||p===58||p===95||Se(p)?(e.consume(p),P):E(p)}function E(p){return p===61?(e.consume(p),k):Y(p)?(e.consume(p),E):w(p)}function k(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),k):M(p)}function N(p){return p===l?(e.consume(p),l=null,O):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)?E(p):(e.consume(p),M)}function O(p){return p===47||p===62||Y(p)?w(p):n(p)}function B(p){return p===62?(e.consume(p),L):n(p)}function L(p){return p===null||_(p)?R(p):Y(p)?(e.consume(p),L):n(p)}function R(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(Ay,z,K)(p)):p===null||_(p)?(e.exit("htmlFlowData"),K(p)):(e.consume(p),R)}function K(p){return e.check(Iy,F,z)(p)}function F(p){return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),D}function D(p){return p===null||_(p)?K(p):(e.enter("htmlFlowData"),R(p))}function G(p){return p===45?(e.consume(p),y):R(p)}function W(p){return p===47?(e.consume(p),s="",Q):R(p)}function Q(p){if(p===62){const X=s.toLowerCase();return pu.includes(X)?(e.consume(p),C):R(p)}return Re(p)&&s.length<8?(e.consume(p),s+=String.fromCharCode(p),Q):R(p)}function le(p){return p===93?(e.consume(p),y):R(p)}function y(p){return p===62?(e.consume(p),C):p===45&&i===2?(e.consume(p),y):R(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 My(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 Ny(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(En,t,n)}}const Vy={name:"htmlText",tokenize:Ly};function Ly(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),E):y===63?(e.consume(y),w):Re(y)?(e.consume(y),M):n(y)}function u(y){return y===45?(e.consume(y),c):y===91?(e.consume(y),o=0,b):Re(y)?(e.consume(y),S):n(y)}function c(y){return y===45?(e.consume(y),h):n(y)}function f(y){return y===null?n(y):y===45?(e.consume(y),d):_(y)?(s=f,W(y)):(e.consume(y),f)}function d(y){return y===45?(e.consume(y),h):f(y)}function h(y){return y===62?G(y):y===45?d(y):f(y)}function b(y){const C="CDATA[";return y===C.charCodeAt(o++)?(e.consume(y),o===C.length?m:b):n(y)}function m(y){return y===null?n(y):y===93?(e.consume(y),v):_(y)?(s=m,W(y)):(e.consume(y),m)}function v(y){return y===93?(e.consume(y),g):m(y)}function g(y){return y===62?G(y):y===93?(e.consume(y),g):m(y)}function S(y){return y===null||y===62?G(y):_(y)?(s=S,W(y)):(e.consume(y),S)}function w(y){return y===null?n(y):y===63?(e.consume(y),P):_(y)?(s=w,W(y)):(e.consume(y),w)}function P(y){return y===62?G(y):w(y)}function E(y){return Re(y)?(e.consume(y),k):n(y)}function k(y){return y===45||Se(y)?(e.consume(y),k):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)?O(y):n(y)}function O(y){return y===47?(e.consume(y),G):y===58||y===95||Re(y)?(e.consume(y),B):_(y)?(s=O,W(y)):Y(y)?(e.consume(y),O):G(y)}function B(y){return y===45||y===46||y===58||y===95||Se(y)?(e.consume(y),B):L(y)}function L(y){return y===61?(e.consume(y),R):_(y)?(s=L,W(y)):Y(y)?(e.consume(y),L):O(y)}function R(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=R,W(y)):Y(y)?(e.consume(y),R):(e.consume(y),F)}function K(y){return y===i?(e.consume(y),i=void 0,D):y===null?n(y):_(y)?(s=K,W(y)):(e.consume(y),K)}function F(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||be(y)?O(y):(e.consume(y),F)}function D(y){return y===47||y===62||be(y)?O(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 ji={name:"labelEnd",resolveAll:By,resolveTo:zy,tokenize:_y},Ry={tokenize:$y},Oy={tokenize:Uy},Fy={tokenize:Hy};function By(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&&Le(e,0,e.length,n),e}function zy(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,Ai(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]]),Le(e,o,e.length,a),e}function _y(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(d){return o?o._inactive?f(d):(s=r.parser.defined.includes(kt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(Ry,c,s?c:f)(d):d===91?e.attempt(Oy,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(Fy,c,f)(d)}function c(d){return t(d)}function f(d){return o._balanced=!0,n(d)}}function $y(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):fu(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?hu(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 Uy(e,t,n){const r=this;return i;function i(a){return du.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 Hy(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 Wy={name:"labelStartImage",resolveAll:ji.resolveAll,tokenize:qy};function qy(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 Gy={name:"labelStartLink",resolveAll:ji.resolveAll,tokenize:Yy};function Yy(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 Mi={name:"lineEnding",tokenize:Ky};function Ky(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:Xy};function Xy(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:ex},exit:nx,name:"list",tokenize:Jy},Qy={partial:!0,tokenize:rx},Zy={partial:!0,tokenize:tx};function Jy(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(h){const b=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ei(h)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(An,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Ei(h)&&++s<10?(e.consume(h),l):(!r.interrupt||s<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(En,r.interrupt?n:c,e.attempt(Qy,d,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,d(h)}function f(h){return Y(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function ex(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(En,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(Zy,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 tx(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 nx(e){e.exit(this.containerState.type)}function rx(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 mu={name:"setextUnderline",resolveTo:ix,tokenize:ox};function ix(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 ox(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 sx={tokenize:ax};function ax(e){const t=this,n=e.attempt(En,r,e.attempt(this.parser.constructs.flowInitial,i,ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(dy,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 lx={resolveAll:yu()},ux=gu("string"),cx=gu("text");function gu(e){return{resolveAll:yu(e==="text"?fx: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 d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function yu(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 fx(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 dx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:yy},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:ou},flow:{35:Sy,42:An,45:[mu,An],60:Ey,61:mu,95:An,96:uu,126:uu},flowInitial:{[-2]:Di,[-1]:Di,32:Di},insideSpan:{null:[Ii,lx]},string:{38:au,92:su},text:{[-5]:Mi,[-4]:Mi,[-3]:Mi,33:Wy,38:au,42:Ii,60:[Gg,Vy],91:Gy,92:[wy,su],93:ji,95:Ii,96:sy}},Symbol.toStringTag,{value:"Module"}));function hx(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(E),check:N(k),consume:S,enter:w,exit:P,interrupt:N(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:b,parser:e,previous:null,sliceSerialize:d,sliceStream:h,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function f(L){return s=Ae(s,L),v(),s[s.length-1]!==null?[]:(M(t,0),u.events=Ai(o,u.events,u),u.events)}function d(L,R){return mx(h(L),R)}function h(L){return px(s,L)}function b(){const{_bufferIndex:L,_index:R,line:K,column:F,offset:D}=r;return{_bufferIndex:L,_index:R,line:K,column:F,offset:D}}function m(L){i[L.line]=L.column,B()}function v(){let L;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<R.length;)g(R.charCodeAt(r._bufferIndex));else g(R)}}function g(L){c=c(L)}function S(L){_(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,B()):L!==-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=L}function w(L,R){const K=R||{};return K.type=L,K.start=b(),u.events.push(["enter",K,u]),a.push(K),K}function P(L){const R=a.pop();return R.end=b(),u.events.push(["exit",R,u]),R}function E(L,R){M(L,R.from)}function k(L,R){R.restore()}function N(L,R){return K;function K(F,D,G){let W,Q,le,y;return Array.isArray(F)?z(F):"tokenize"in F?z([F]):C(F);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=O(),le=oe,oe.partial||(u.currentConstruct=oe),oe.name&&u.parser.constructs.disable.null.includes(oe.name)?Ie():oe.tokenize.call(R?Object.assign(Object.create(u),R):u,l,X,Ie)(ge)}}function X(oe){return L(le,y),D}function Ie(oe){return y.restore(),++Q<W.length?p(W[Q]):G}}}function M(L,R){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&Le(u.events,R,u.events.length-R,L.resolve(u.events.slice(R),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function O(){const L=b(),R=u.previous,K=u.currentConstruct,F=u.events.length,D=Array.from(a);return{from:F,restore:G};function G(){r=L,u.previous=R,u.currentConstruct=K,u.events.length=F,a=D,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function px(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 mx(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
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 vx(e){const r={constructs:Rg([gx,...(e||{}).extensions||[]]),content:i(Hg),defined:[],document:i(qg),flow:i(cx),lazy:{},string:i(hx),text:i(px)};return r;function i(o){return s;function s(a){return yx(r,o,a)}}}function wx(e){for(;!hu(e););return e}const wu=/[\0\t\n\r]/g;function kx(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,f,d,h;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),d=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(d),!u){t=o.slice(f);break}if(h===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(o.slice(f,d)),e+=d-f),h){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=d+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Sx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tx(e){return e.replace(Sx,Cx)}function Cx(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 Ex(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Px(n)(wx(vx(n).document().write(kx()(e,t,!0))))}function Px(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(lc),autolinkProtocol:F,autolinkEmail:F,atxHeading:o(oc),blockQuote:o(Xe),characterEscape:F,characterReference:F,codeFenced:o(Bn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Bn,s),codeText:o(Eb,s),codeTextData:F,data:F,codeFlowValue:F,definition:o(Pb),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Ab),hardBreakEscape:o(sc),hardBreakTrailing:o(sc),htmlFlow:o(ac,s),htmlFlowData:F,htmlText:o(ac,s),htmlTextData:F,image:o(Ib),label:s,link:o(lc),listItem:o(jb),listItemValue:d,listOrdered:o(uc,f),listUnordered:o(uc),paragraph:o(Db),reference:p,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(oc),strong:o(Mb),thematicBreak:o(Lb)},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(g),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:l(x),codeText:l(D),codeTextData:O,data:O,definition:l(),definitionDestinationString:E,definitionLabelString:S,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(K),htmlFlowData:O,htmlText:l(B),htmlTextData:O,image:l(W),label:le,labelText:Q,lineEnding:V,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:y,resourceTitleString:C,resource:_,setextHeading:l(M),setextHeadingLineSequence:N,setextHeadingText:k,strong:l(),thematicBreak:l()}};Su(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let j={type:"root",children:[]};const U={stack:[j],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(j.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;)j=t.transforms[Z](j)||j;return j}function i(T,j,U){let q=j-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[j][1]._spread=Ne,U}function o(T,j){return U;function U(q){a.call(this,T(q),q),j&&j.call(this,q)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(T,j,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([j,U||void 0]),T.position={start:Ke(j.start),end:void 0}}function l(T){return j;function j(U){T&&T.call(this,U),u.call(this,U)}}function u(T,j){const U=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==T.type&&(j?j.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 Lg(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(T){if(this.data.expectingFirstListItemValue){const j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),j=this.stack[this.stack.length-1];j.lang=T}function v(){const T=this.resume(),j=this.stack[this.stack.length-1];j.meta=T}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const T=this.resume(),j=this.stack[this.stack.length-1];j.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const T=this.resume(),j=this.stack[this.stack.length-1];j.value=T.replace(/(\r?\n|\r)$/g,"")}function S(T){const j=this.resume(),U=this.stack[this.stack.length-1];U.label=j,U.identifier=kt(this.sliceSerialize(T)).toLowerCase()}function w(){const T=this.resume(),j=this.stack[this.stack.length-1];j.title=T}function E(){const T=this.resume(),j=this.stack[this.stack.length-1];j.url=T}function P(T){const j=this.stack[this.stack.length-1];if(!j.depth){const U=this.sliceSerialize(T).length;j.depth=U}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function N(T){const j=this.stack[this.stack.length-1];j.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=Nb(),q.position={start:Ke(T.start),end:void 0},U.push(q)),this.stack.push(q)}function O(T){const j=this.stack.pop();j.value+=this.sliceSerialize(T),j.position.end=Ke(T.end)}function V(T){const j=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=j.children[j.children.length-1];U.position.end=Ke(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&(F.call(this,T),O.call(this,T))}function R(){this.data.atHardBreak=!0}function K(){const T=this.resume(),j=this.stack[this.stack.length-1];j.value=T}function B(){const T=this.resume(),j=this.stack[this.stack.length-1];j.value=T}function D(){const T=this.resume(),j=this.stack[this.stack.length-1];j.value=T}function G(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const j=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=j,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 j=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=j,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Q(T){const j=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=Tx(j),U.identifier=kt(j).toLowerCase()}function le(){const T=this.stack[this.stack.length-1],j=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=j}function y(){const T=this.resume(),j=this.stack[this.stack.length-1];j.url=T}function C(){const T=this.resume(),j=this.stack[this.stack.length-1];j.title=T}function _(){this.data.inReference=void 0}function p(){this.data.referenceType="collapsed"}function X(T){const j=this.resume(),U=this.stack[this.stack.length-1];U.label=j,U.identifier=kt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Ie(T){this.data.characterReferenceType=T.type}function oe(T){const j=this.sliceSerialize(T),U=this.data.characterReferenceType;let q;U?(q=iu(j,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=Pi(j);const Z=this.stack[this.stack.length-1];Z.value+=q}function te(T){const j=this.stack.pop();j.position.end=Ke(T.end)}function ge(T){O.call(this,T);const j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(T)}function Fe(T){O.call(this,T);const j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(T)}function Xe(){return{type:"blockquote",children:[]}}function Bn(){return{type:"code",lang:null,meta:null,value:""}}function Eb(){return{type:"inlineCode",value:""}}function Pb(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ab(){return{type:"emphasis",children:[]}}function oc(){return{type:"heading",depth:0,children:[]}}function sc(){return{type:"break"}}function ac(){return{type:"html",value:""}}function Ib(){return{type:"image",title:null,url:"",alt:null}}function lc(){return{type:"link",title:null,url:"",children:[]}}function uc(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function jb(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Db(){return{type:"paragraph",children:[]}}function Mb(){return{type:"strong",children:[]}}function Nb(){return{type:"text",value:""}}function Lb(){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):Ax(e,r)}}function Ax(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 Ix(e){const t=this;t.parser=n;function n(r){return Ex(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function jx(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
|
|
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
|
|
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 gx(e){const r={constructs:Mg([dx,...(e||{}).extensions||[]]),content:i(zg),defined:[],document:i($g),flow:i(sx),lazy:{},string:i(ux),text:i(cx)};return r;function i(o){return s;function s(a){return hx(r,o,a)}}}function yx(e){for(;!cu(e););return e}const xu=/[\0\t\n\r]/g;function xx(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,c,f,d,h;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(xu.lastIndex=f,u=xu.exec(o),d=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(d),!u){t=o.slice(f);break}if(h===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(o.slice(f,d)),e+=d-f),h){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=d+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const bx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function vx(e){return e.replace(bx,wx)}function wx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return tu(n.slice(o?2:1),o?16:10)}return Ci(n)||e}const bu={}.hasOwnProperty;function kx(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Sx(n)(yx(gx(n).document().write(xx()(e,t,!0))))}function Sx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(sc),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(rc),blockQuote:o(Xe),characterEscape:O,characterReference:O,codeFenced:o(Fn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Fn,s),codeText:o(Sb,s),codeTextData:O,data:O,codeFlowValue:O,definition:o(Tb),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Cb),hardBreakEscape:o(ic),hardBreakTrailing:o(ic),htmlFlow:o(oc,s),htmlFlowData:O,htmlText:o(oc,s),htmlTextData:O,image:o(Pb),label:s,link:o(sc),listItem:o(Eb),listItemValue:d,listOrdered:o(ac,f),listUnordered:o(ac),paragraph:o(Ab),reference:p,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(rc),strong:o(Ib),thematicBreak:o(jb)},exit:{atxHeading:l(),atxHeadingSequence:E,autolink:l(),autolinkEmail:Fe,autolinkProtocol:ge,blockQuote:l(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:oe,characterReference:te,codeFenced:l(v),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:b,codeFlowValue:B,codeIndented:l(g),codeText:l(D),codeTextData:B,data:B,definition:l(),definitionDestinationString:P,definitionLabelString:S,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(K),htmlFlowData:B,htmlText:l(F),htmlTextData:B,image:l(W),label:le,labelText:Q,lineEnding:L,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:k,strong:l(),thematicBreak:l()}};vu(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]];bu.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]||wu).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 Pt=q;for($e=void 0;Pt--;){const Ue=T[Pt];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=Pt}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 Pt={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};it=Pt,T.splice(q,0,["enter",Pt,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]||wu).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 Dg(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(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 h(){const T=this.resume(),I=this.stack[this.stack.length-1];I.lang=T}function b(){const T=this.resume(),I=this.stack[this.stack.length-1];I.meta=T}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){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 g(){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 w(){const T=this.resume(),I=this.stack[this.stack.length-1];I.title=T}function P(){const T=this.resume(),I=this.stack[this.stack.length-1];I.url=T}function E(T){const I=this.stack[this.stack.length-1];if(!I.depth){const U=this.sliceSerialize(T).length;I.depth=U}}function k(){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 O(T){const U=this.stack[this.stack.length-1].children;let q=U[U.length-1];(!q||q.type!=="text")&&(q=Db(),q.position={start:Ke(T.start),end:void 0},U.push(q)),this.stack.push(q)}function B(T){const I=this.stack.pop();I.value+=this.sliceSerialize(T),I.position.end=Ke(T.end)}function L(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)&&(O.call(this,T),B.call(this,T))}function R(){this.data.atHardBreak=!0}function K(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function F(){const T=this.resume(),I=this.stack[this.stack.length-1];I.value=T}function D(){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=vx(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=tu(I,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=Ci(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){B.call(this,T);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(T)}function Fe(T){B.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 Sb(){return{type:"inlineCode",value:""}}function Tb(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Cb(){return{type:"emphasis",children:[]}}function rc(){return{type:"heading",depth:0,children:[]}}function ic(){return{type:"break"}}function oc(){return{type:"html",value:""}}function Pb(){return{type:"image",title:null,url:"",alt:null}}function sc(){return{type:"link",title:null,url:"",children:[]}}function ac(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Eb(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Ab(){return{type:"paragraph",children:[]}}function Ib(){return{type:"strong",children:[]}}function Db(){return{type:"text",value:""}}function jb(){return{type:"thematicBreak"}}}function Ke(e){return{line:e.line,column:e.column,offset:e.offset}}function vu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vu(e,r):Tx(e,r)}}function Tx(e,t){let n;for(n in t)if(bu.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 wu(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 Cx(e){const t=this;t.parser=n;function n(r){return kx(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Px(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 Ex(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
11
|
+
`}]}function Ax(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 Ix(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dx(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jx(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 Mx(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 Nx(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ku(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 Vx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ku(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 Lx(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 Rx(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 Ox(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ku(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 Fx(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 Bx(e,t,n){const r=e.all(t),i=n?zx(n):Su(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
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
|
|
14
|
+
`});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function zx(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=Su(n[r])}return t}function Su(e){const t=e.spread;return t??e.children.length>1}function _x(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 $x(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ux(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Hx(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wx(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=bi(t.children[1]),l=Ul(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 qx(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],d={},h=s?s[l]:void 0;h&&(d.align=h);let b={type:"element",tagName:o,properties:d,children:[]};f&&(b.children=e.all(f),e.patch(f,b),b=e.applyData(f,b)),u.push(b)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Gx(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Tu=9,Cu=32;function Yx(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Pu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Pu(t.slice(i),i>0,!1)),o.join("")}function Pu(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Tu||o===Cu;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Tu||o===Cu;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Kx(e,t){const n={type:"text",value:Yx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xx(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qx={blockquote:Px,break:Ex,code:Ax,delete:Ix,emphasis:Dx,footnoteReference:jx,heading:Mx,html:Nx,imageReference:Vx,image:Lx,inlineCode:Rx,linkReference:Ox,link:Fx,listItem:Bx,list:_x,paragraph:$x,root:Ux,strong:Hx,table:Wx,tableCell:Gx,tableRow:qx,text:Kx,thematicBreak:Xx,toml:In,yaml:In,definition:In,footnoteDefinition:In};function In(){}const Eu=-1,Dn=0,en=1,jn=2,Ni=3,Vi=4,Li=5,Ri=6,Au=7,Iu=8,Du=typeof self=="object"?self:globalThis,Zx=(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 Eu: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 Ni:return n(new Date(s),i);case Vi:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case Li:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case Ri:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case Au:{const{name:a,message:l}=s;return n(new Du[a](l),i)}case Iu: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 Du[o](s),i)};return r},ju=e=>Zx(new Map,e)(0),Tt="",{toString:Jx}={},{keys:e0}=Object,tn=e=>{const t=typeof e;if(t!=="object"||!e)return[Dn,t];const n=Jx.call(e).slice(8,-1);switch(n){case"Array":return[en,Tt];case"Object":return[jn,Tt];case"Date":return[Ni,Tt];case"RegExp":return[Vi,Tt];case"Map":return[Li,Tt];case"Set":return[Ri,Tt];case"DataView":return[en,n]}return n.includes("Array")?[en,n]:n.includes("Error")?[Au,n]:[jn,n]},Mn=([e,t])=>e===Dn&&(t==="function"||t==="symbol"),t0=(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=Iu,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Eu],s)}return i([a,c],s)}case en:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),i([l,[...d]],s)}const c=[],f=i([a,c],s);for(const d of s)c.push(o(d));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 d of e0(s))(e||!Mn(tn(s[d])))&&c.push([o(d),o(s[d])]);return f}case Ni:return i([a,s.toISOString()],s);case Vi:{const{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case Li:{const c=[],f=i([a,c],s);for(const[d,h]of s)(e||!(Mn(tn(d))||Mn(tn(h))))&&c.push([o(d),o(h)]);return f}case Ri:{const c=[],f=i([a,c],s);for(const d of s)(e||!Mn(tn(d)))&&c.push(o(d));return f}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},Mu=(e,{json:t,lossy:n}={})=>{const r=[];return t0(!(t||n),!!t,new Map,r)(e),r},Nn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ju(Mu(e,t)):structuredClone(e):(e,t)=>ju(Mu(e,t));function n0(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 r0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function i0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||n0,r=e.options.footnoteBackLabel||r0,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(),d=St(f.toLowerCase());let h=0;const b=[],m=e.footnoteCounts.get(f);for(;m!==void 0&&++h<=m;){b.length>0&&b.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,h);typeof S=="string"&&(S={type:"text",value:S}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const S=v.children[v.children.length-1];S&&S.type==="text"?S.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...b)}else c.push(...b);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,g),a.push(g)}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
15
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
16
|
-
`}]}}const
|
|
16
|
+
`}]}}const Oi=(function(e){if(e==null)return l0;if(typeof e=="function")return Vn(e);if(typeof e=="object")return Array.isArray(e)?o0(e):s0(e);if(typeof e=="string")return a0(e);throw new Error("Expected function, string, or object as test")});function o0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Oi(e[n]);return Vn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function s0(e){const t=e;return Vn(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function a0(e){return Vn(t);function t(n){return n&&n.type===e}}function Vn(e){return t;function t(n,r,i){return!!(u0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function l0(){return!0}function u0(e){return e!==null&&typeof e=="object"&&"type"in e}function Kb(e){return e}const Nu=[],c0=!0,Vu=!1,f0="skip";function Lu(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Oi(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 h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=Nu,b,m,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=d0(n(l,c)),h[0]===Vu))return h;if("children"in l&&l.children){const g=l;if(g.children&&h[0]!==f0)for(m=(r?g.children.length:-1)+s,v=c.concat(g);m>-1&&m<g.children.length;){const S=g.children[m];if(b=a(S,m,v)(),b[0]===Vu)return b;m=typeof b[1]=="number"?b[1]:m+s}}return h}}}function d0(e){return Array.isArray(e)?e:typeof e=="number"?[c0,e]:e==null?Nu:[e]}function Ru(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),Lu(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 Fi={}.hasOwnProperty,h0={};function p0(e,t){const n=t||h0,r=new Map,i=new Map,o=new Map,s={...Qx,...n.handlers},a={all:u,applyData:g0,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:m0,wrap:x0};return Ru(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),a;function l(c,f){const d=c.type,h=a.handlers[d];if(Fi.call(a.handlers,d)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in c){const{children:m,...v}=c,g=Nn(v);return g.children=a.all(c),g}return Nn(c)}return(a.options.unknownHandler||y0)(a,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const b=a.one(d[h],c);if(b){if(h&&d[h-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Ou(b.value)),!Array.isArray(b)&&b.type==="element")){const m=b.children[0];m&&m.type==="text"&&(m.value=Ou(m.value))}Array.isArray(b)?f.push(...b):f.push(b)}}}return f}}function m0(e,t){e.position&&(t.position=lg(e))}function g0(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 y0(e,t){const n=t.data||{},r="value"in t&&!(Fi.call(n,"hProperties")||Fi.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 x0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
17
17
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
18
18
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
19
|
-
`}),n}function
|
|
20
|
-
`},i),o}function S0(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 T0(){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 d;for(d in u);return typeof d>"u"||e.call(u,d)},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,d,h,v,b=arguments[0],g=1,x=arguments.length,S=!1;for(typeof b=="boolean"&&(S=b,b=arguments[1]||{},g=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});g<x;++g)if(u=arguments[g],u!=null)for(c in u)f=a(b,c),d=a(u,c),b!==d&&(S&&d&&(o(d)||(h=i(d)))?(h?(h=!1,v=f&&i(f)?f:[]):v=f&&o(f)?f:{},s(b,{name:c,newValue:l(S,v,d)})):typeof d<"u"&&s(b,{name:c,newValue:d}));return b},_i}var C0=T0();const $i=to(C0);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 E0(){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?P0(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 P0(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:A0,dirname:I0,extname:j0,join:D0,sep:"/"};function A0(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 I0(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 j0(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?".":M0(n)}function M0(e){nn(e);const t=e.codePointAt(0)===47;let n=N0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function N0(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 L0={cwd:V0};function V0(){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 O0(e)}function O0(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"||F0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":L0.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 he(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 F0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const B0=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),z0={}.hasOwnProperty;class Yi extends B0{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=E0()}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):z0.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,d){if(c||!f||!d)return u(c);const h=f,v=r.stringify(h,d);U0(v)?d.value=v:d.result=v,u(c,d)});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,d){const h=f||t;c?a(c):s?s(h):r(void 0,h,d)}}}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,d=-1;for(;++f<r.length;)if(r[f][0]===u){d=f;break}if(d===-1)r.push([u,...c]);else if(c.length>0){let[h,...v]=c;const b=r[d][1];Ui(b)&&Ui(h)&&(h=$i(!0,b,h)),r[d]=[u,h,...v]}}}}const _0=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 U0(e){return typeof e=="string"||H0(e)}function H0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const W0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Yu=[],Ku={allowDangerousHtml:!0},q0=/^(https?|ircs?|mailto|xmpp)$/i,G0=[{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 On(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,d=e.urlTransform||Y0,h=_0().use(Ix).use(l).use(S0,u).use(a),v=new Hu;typeof r=="string"&&(v.value=r);for(const S of G0)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+W0+S.id,void 0);const b=h.parse(v);let g=h.runSync(b,v);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),Bu(g,x),yg(g,{Fragment:m.Fragment,components:o,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function x(S,w,E){if(S.type==="raw"&&E&&typeof w=="number")return c?E.children.splice(w,1):E.children[w]={type:"text",value:S.value},w;if(S.type==="element"){let P;for(P in Ei)if(Object.hasOwn(Ei,P)&&Object.hasOwn(S.properties,P)){const k=S.properties[P],N=Ei[P];(N===null||N.includes(S.tagName))&&(S.properties[P]=d(String(k||""),P,S))}}if(S.type==="element"){let P=t?!t.includes(S.tagName):s?s.includes(S.tagName):!1;if(!P&&n&&typeof w=="number"&&(P=!n(S,w,E)),P&&E&&typeof w=="number")return f&&S.children?E.children.splice(w,1,...S.children):E.children.splice(w,1),w}}}function Y0(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||q0.test(e.slice(0,t))?e:""}function K0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function X0(e,t,n){const i=Bi({}.ignore||[]),o=Q0(t);let s=-1;for(;++s<o.length;)Fu(e,"text",a);function a(u,c){let f=-1,d;for(;++f<c.length;){const h=c[f],v=d?d.children:void 0;if(i(h,v?v.indexOf(h):void 0,d))return;d=h}if(d)return l(u,c)}function l(u,c){const f=c[c.length-1],d=o[s][0],h=o[s][1];let v=0;const g=f.children.indexOf(u);let x=!1,S=[];d.lastIndex=0;let w=d.exec(u.value);for(;w;){const E=w.index,P={index:w.index,input:w.input,stack:[...c,u]};let k=h(...w,P);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?d.lastIndex=E+1:(v!==E&&S.push({type:"text",value:u.value.slice(v,E)}),Array.isArray(k)?S.push(...k):k&&S.push(k),v=E+w[0].length,x=!0),!d.global)break;w=d.exec(u.value)}return x?(v<u.value.length&&S.push({type:"text",value:u.value.slice(v)}),f.children.splice(g,1,...S)):S=[u],g+S.length}}function Q0(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([Z0(i[0]),J0(i[1])])}return t}function Z0(e){return typeof e=="string"?new RegExp(K0(e),"g"):e}function J0(e){return typeof e=="function"?e:function(){return e}}function eb(e){X0(e,[/\r?\n|\r/g,tb])}function tb(){return{type:"break"}}function Fn(){return function(e){eb(e)}}const Xu=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:o="",actionLabel:s,href:a,inverted:l=!1})=>m.jsx("section",{className:`feature-split-section ${o} image-${i} ${l?"theme-inverted":""}`,children:m.jsxs("div",{className:"feature-split-container",children:[m.jsxs("div",{className:"feature-split-content",children:[m.jsx("div",{className:"section-title feature-split-title",children:e}),t&&m.jsx("div",{className:"feature-split-description",children:m.jsx(On,{remarkPlugins:[Fn],children:t})}),n&&n.length>0&&m.jsx("div",{className:"feature-split-list",children:n.map((u,c)=>m.jsxs("div",{className:"feature-split-item",children:[u.icon&&m.jsx("div",{className:"feature-split-icon-wrapper",children:m.jsx(fe,{icon:u.icon,width:"24",height:"24"})}),m.jsxs("div",{children:[m.jsx("h3",{className:"card-title feature-split-item-title",children:u.title}),m.jsx("div",{className:"feature-split-item-description",children:m.jsx(On,{remarkPlugins:[Fn],children:u.description})})]})]},c))}),s&&a&&m.jsx("div",{className:"feature-split-actions",children:m.jsx("button",{onClick:()=>window.location.href=a,children:s})})]}),m.jsx("div",{className:"feature-split-image-wrapper",children:m.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})=>m.jsx("section",{className:`content-block-section ${s?"theme-inverted":""} ${i}`,children:m.jsxs("div",{className:"content-block-container",children:[m.jsxs("div",{className:"content-block-header",children:[e&&m.jsx("div",{className:"section-title content-block-title",children:e}),t&&m.jsx("div",{className:"section-subtitle content-block-subtitle",children:t})]}),o&&m.jsxs("div",{className:"content-block-featured-image",children:[m.jsx("img",{src:o.imageSrc,alt:o.alt}),o.caption&&m.jsx("figcaption",{children:o.caption})]}),m.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?m.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):m.jsx(On,{remarkPlugins:[Fn],children:n||""})})]})}),Zi=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:o="",inverted:s=!1})=>m.jsx(Qn,{hoverable:!0,elevation:"sm",className:`feature-card ${o}`,inverted:s,children:m.jsxs("div",{className:"feature-card-content",children:[e&&m.jsx("div",{className:"feature-icon-wrapper",children:m.jsx(fe,{icon:e,width:"24",height:"24"})}),m.jsx("h3",{className:"card-title feature-title",children:t}),m.jsx("div",{className:"card-description feature-description",children:m.jsx(On,{remarkPlugins:[Fn],children:n})}),r&&(r.startsWith("http")?m.jsxs("a",{href:r,className:"feature-link",target:"_blank",rel:"noopener noreferrer",children:[i," ",m.jsx("span",{children:"→"})]}):m.jsxs(zn.Link,{to:r,className:"feature-link",children:[i," ",m.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 m.jsx("section",{className:`features-section ${a?"theme-inverted":""} ${i}`,children:m.jsxs("div",{className:"features-container",children:[m.jsxs("div",{className:"features-header",children:[m.jsx("div",{className:"section-title features-title",children:e}),t&&m.jsx("div",{className:"section-subtitle features-subtitle",children:t})]}),m.jsxs("div",{className:"features-grid",style:l,children:[r,n&&n.map((u,c)=>m.jsx(Zi,{...u,actionLabel:s,inverted:a},c))]})]})})},Ju=({items:e,className:t=""})=>m.jsx("section",{className:`stats-section ${t}`,children:m.jsx("div",{className:"stats-container",children:m.jsx("div",{className:"stats-grid",children:e.map((n,r)=>m.jsxs("div",{className:"stat-item",children:[m.jsx("span",{className:"stat-value",children:n.value}),m.jsx("span",{className:"stat-label",children:n.label}),n.description&&m.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 m.jsx("section",{className:`cta-section ${s?"theme-inverted":""} ${i}`,style:a,children:m.jsxs("div",{className:"cta-container",children:[m.jsx("h2",{className:"section-title cta-title",children:e}),t&&m.jsx("p",{className:"section-subtitle cta-description",children:t}),n&&m.jsx("div",{className:"cta-actions",children:n&&m.jsx("button",{onClick:r,children:n})})]})})},tc=({title:e,subtitle:t,items:n,className:r=""})=>m.jsx("section",{className:`testimonials-section ${r}`,children:m.jsxs("div",{className:"testimonials-container",children:[m.jsxs("div",{className:"testimonials-header",children:[m.jsx("h2",{className:"section-title testimonials-title",children:e}),t&&m.jsx("p",{className:"section-subtitle testimonials-subtitle",children:t})]}),m.jsx("div",{className:"testimonials-grid",children:n.map(i=>m.jsx(Qn,{elevation:"sm",className:"testimonial-card",children:m.jsxs("div",{className:"testimonial-card-content",children:[m.jsx("div",{className:"testimonial-stars",children:[...Array(i.rating||5)].map((o,s)=>m.jsx(fe,{icon:"mdi:star",width:"20",height:"20"},s))}),m.jsxs("blockquote",{className:"testimonial-quote",children:['"',i.quote,'"']}),m.jsxs("div",{className:"testimonial-author",children:[i.imageSrc?m.jsx("img",{src:i.imageSrc,alt:i.name,className:"testimonial-avatar"}):m.jsx("div",{className:"testimonial-avatar-placeholder",children:i.name.charAt(0)}),m.jsxs("div",{className:"testimonial-author-info",children:[m.jsx("span",{className:"testimonial-name",children:i.name}),m.jsxs("span",{className:"testimonial-role",children:[i.role," ",i.company&&`at ${i.company}`]})]})]})]})},i.id))})]})}),nc=({options:e=[],value:t,defaultValue:n,onChange:r,className:i,icon:o,id:s,hideSelectedLabel:a=!1})=>{const[l,u]=I.useState(n),c=t!==void 0,f=c?t:l,d=g=>{c||u(g.value),r?.(g.value),g.onClick?.()},h=e.find(g=>g.value===f),v=h?.icon||o;let b=h?.label||h?.value||f||"";return a&&v&&(b=""),m.jsx(Pn,{id:s,title:b,icon:v,className:`${i||""}`,itemGroupClassName:"select-options-group",children:e.map(g=>m.jsxs("div",{className:`select-option ${g.value===f?"selected":""} ${i}`,onClick:()=>d(g),role:"option","aria-selected":g.value===f,children:[g.icon&&m.jsx("span",{className:"option-icon",children:m.jsx(fe,{icon:g.icon})}),g.label&&m.jsx("span",{className:`option-label ${i}`,children:g.label})]},g.value))})},rc={Header:Mo,MenuItem:Cl,MenuGrid:El,MenuGridItem:Pl,Dropdown:Pn,Hero:Al,IconButton:jl,HamburgerMenu:Zn,FeatureSplit:Xu,ContentBlock:Qu,FeaturesSection:Zu,FeatureItem:Zi,BentoGrid:jo,Stats:Ju,CTASection:ec,Testimonials:tc,Select:nc};let Ji={...rc};function nb(e,t){Ji[e]=t}function ic(e){return Ji[e]}function rb(e){return e in Ji}function ib(e){return typeof e=="string"&&e.trim().length>0}const Ct=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return m.jsx(m.Fragment,{children:e.map((b,g)=>m.jsx(Ct,{config:b,className:t,handlers:n,onError:r},b.id||`item-${g}`))});if(!e||typeof e!="object")return null;const{type:i,data:o,children:s,id:a,...l}=e,u=a||o?.id||i;if(!ib(i)){const b=new Error(`Invalid component type: "${i}"`);return r?.(b,e),console.error(`Invalid component type: "${i}"`),null}if(!rb(i)){const b=new Error(`Component "${i}" is not registered`);return r?.(b,e),console.error(`Component "${i}" is not registered`),null}const c=ic(i);if(!c){const b=new Error(`Failed to load component: "${i}"`);return r?.(b,e),console.error(`Failed to load component: "${i}"`),null}const f=b=>{if(!b||typeof b!="object"||I.isValidElement(b))return b;if(Array.isArray(b))return b.map(x=>f(x));const g={...b};return Object.keys(g).forEach(x=>{const S=g[x];if(typeof S=="string"&&S.startsWith("@action:")){const w=S.replace("@action:","");n&&n[w]&&(g[x]=n[w])}else typeof S=="object"&&S!==null&&(g[x]=f(S))}),g},h={...f(o),...l,id:a||o?.id};t&&(h.className=o?.className?`${o.className} ${t}`:t);const v=b=>{if(b){if(Array.isArray(b))return b.map((g,x)=>g&&typeof g=="object"&&g.type?m.jsx(Ct,{config:g,handlers:n,onError:r},g.id||`child-${x}`):g);if(b&&typeof b=="object"&&b.type){const g=b.id||b.data?.id||b.type;return m.jsx(Ct,{config:b,handlers:n,onError:r},g)}return b}};if(s!==void 0)if(i==="Header"){const b=v(s);if(b&&Array.isArray(b)){const g=b.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])!=="far-item"}),x=b.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])==="far-item"});h.menuBar=g,h.utilityButtons=x}}else if(i==="MenuGrid"){const b=v(s);b&&(h.children=b)}else if(i==="Dropdown"){const b=v(s);h.children=b}else h.children=v(s);if(o?.items&&Array.isArray(o.items)&&(h.items=o.items.map((b,g)=>b&&typeof b=="object"&&b.type?m.jsx(Ct,{config:b,handlers:n,onError:r},b.id||`item-${g}`):b)),o?.embeddedView&&typeof o.embeddedView=="object"&&o.embeddedView.type){const b=o.embeddedView.id||o.embeddedView.data?.id||o.embeddedView.type;h.embeddedView=m.jsx(Ct,{config:o.embeddedView,handlers:n,onError:r},b)}try{return m.jsx(c,{...h},u)}catch(b){const g=b instanceof Error?b:new Error("Unknown rendering error");return r?.(g,e),console.error(`Error rendering component "${i}":`,b),m.jsxs("div",{className:"error-boundary",style:{border:"1px solid red",padding:"1rem",color:"red",background:"#fee"},children:["Error rendering ",i,": ",g.message]},u)}},ob=({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:m.jsxs("div",{className:"footer-logo-container",children:[e&&m.jsx("img",{src:e,alt:t||"Logo",className:"footer-logo-img"}),t&&m.jsx("span",{className:"footer-company-name",children:t})]});return m.jsx("footer",{className:l,children:m.jsxs("div",{className:"footer-container",children:[m.jsxs("div",{className:"footer-grid",children:[m.jsxs("div",{className:"footer-brand",children:[m.jsx("div",{className:"footer-logo",children:u()}),n&&m.jsx("p",{className:"footer-description",children:n}),i&&m.jsx("div",{className:"footer-social",children:i.map((c,f)=>m.jsx("a",{href:c.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:m.jsx(fe,{icon:c.icon,width:"24",height:"24"})},f))})]}),r.map((c,f)=>m.jsxs("div",{className:"footer-column",children:[m.jsx("h4",{className:"footer-column-title",children:c.title}),m.jsx("div",{className:"footer-links",children:c.links.map((d,h)=>d.href.startsWith("http")?m.jsx("a",{href:d.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:d.label},h):m.jsx(zn.Link,{to:d.href,className:"footer-link",children:d.label},h))})]},f))]}),m.jsxs("div",{className:"footer-bottom",children:[m.jsx("div",{className:"footer-copyright",children:o||`© ${new Date().getFullYear()} Company Name. All rights reserved.`}),m.jsx("div",{className:"footer-legal"})]})]})})},sb=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[o,s]=I.useState(new Set),a=I.useRef({}),l=u=>{s(c=>{const f=new Set(i?c:[]);return c.has(u)?f.delete(u):f.add(u),f})};return m.jsx("section",{className:`accordion-section ${r}`,children:m.jsxs("div",{className:"accordion-container",children:[(e||t)&&m.jsxs("div",{className:"accordion-header-section",children:[e&&m.jsx("h2",{className:"accordion-title",children:e}),t&&m.jsx("p",{className:"accordion-subtitle",children:t})]}),m.jsx("div",{className:"accordion-list",children:n.map(u=>{const c=o.has(u.id);return m.jsxs("div",{className:`accordion-item ${c?"open":""}`,children:[m.jsxs("button",{className:"accordion-trigger",onClick:()=>l(u.id),"aria-expanded":c,"aria-controls":`content-${u.id}`,children:[m.jsx("span",{className:"accordion-item-title",children:u.title}),m.jsx(fe,{icon:"mdi:chevron-down",width:"24",height:"24",className:`accordion-icon ${c?"rotate":""}`})]}),m.jsx("div",{id:`content-${u.id}`,className:"accordion-content",style:{height:c?a.current[u.id]?.scrollHeight:0},children:m.jsx("div",{ref:f=>{a.current[u.id]=f},className:"accordion-content-inner",children:u.content})})]},u.id)})})]})})};let ab;function lb({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[o,s]=I.useState(null),[a,l]=I.useState(r),[u,c]=I.useState(null),f=i||ab,d=async(h,v)=>{if(!f){c("API service not configured"),l(!1);return}const b=h||t;l(!0),c(null);try{const g=new URLSearchParams({story:b,...n,...v}).toString(),x=g?`${e}?${g}`:e,S=await f.get(x);S.status===200?s(S.data):c(`Error ${S.status}: ${S.statusText}`)}catch(g){console.error(`Failed to fetch from ${e}:`,g),c(g.message||"Failed to fetch configuration")}finally{l(!1)}};return I.useEffect(()=>{r&&f?d():r&&!f&&(c("API service not configured"),l(!1))},[e,t,JSON.stringify(n),r,f]),{data:o,loading:a,error:u,refetch:d,setData:s}}const ub={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",Select:"/select"};function pe(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,o=ub[t],s={};return r&&(s.variant=r),lb({endpoint:o,storyName:n,params:s,apiService:i})}function cb(e,t,n){return pe({component:"MenuGridItem",story:e,apiService:t,variant:n})}function fb(e,t,n){return pe({component:"MenuGrid",story:e,apiService:t,variant:n})}function db(e,t,n){return pe({component:"Dropdown",story:e,apiService:t,variant:n})}function hb(e,t,n){return pe({component:"HamburgerMenu",story:e,apiService:t,variant:n})}function pb(e,t,n){return pe({component:"Hero",story:e,apiService:t,variant:n})}function mb(e,t,n){return pe({component:"Header",story:e,apiService:t,variant:n})}function gb(e,t,n){return pe({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function yb(e,t,n){return pe({component:"Footer",story:e,apiService:t,variant:n})}function xb(e,t,n){return pe({component:"Stats",story:e,apiService:t,variant:n})}function bb(e,t,n){return pe({component:"FeatureSplit",story:e,apiService:t,variant:n})}function vb(e,t,n){return pe({component:"ContentBlock",story:e,apiService:t,variant:n})}function wb(e,t,n){return pe({component:"FeaturesSection",story:e,apiService:t,variant:n})}function kb(e,t,n){return pe({component:"BentoGrid",story:e,apiService:t,variant:n})}function Sb(e,t,n){return pe({component:"CTASection",story:e,apiService:t,variant:n})}function Tb(e,t,n){return pe({component:"Testimonials",story:e,apiService:t,variant:n})}function Cb(e,t,n){return pe({component:"Select",story:e,apiService:t,variant:n})}z.BentoGrid=jo,z.CTASection=ec,z.Card=Qn,z.ContentBlock=Qu,z.Dropdown=Pn,z.DropdownProvider=$m,z.DynamicRenderer=Ct,z.FeatureItem=Zi,z.FeatureSplit=Xu,z.FeaturesSection=Zu,z.Footer=ob,z.HamburgerMenu=Zn,z.Header=Mo,z.Hero=Al,z.IconButton=jl,z.ItemsAccordion=sb,z.MenuGrid=El,z.MenuGridItem=Pl,z.MenuItem=Cl,z.Select=nc,z.Stats=Ju,z.Testimonials=tc,z.baseComponents=rc,z.getComponent=ic,z.registerComponent=nb,z.useBentoGridConfig=kb,z.useCTASectionConfig=Sb,z.useContentBlockConfig=vb,z.useDropdownConfig=db,z.useFeatureSplitConfig=bb,z.useFeaturesSectionConfig=wb,z.useFooterConfig=yb,z.useHamburgerMenuConfig=hb,z.useHeaderConfig=mb,z.useHeroConfig=pb,z.useItemsAccordionConfig=gb,z.useMenuGridConfig=fb,z.useMenuGridItemConfig=cb,z.useSelectConfig=Cb,z.useStatsConfig=xb,z.useTestimonialsConfig=Tb,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})}));
|
|
19
|
+
`}),n}function Ou(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Fu(e,t){const n=p0(e,t),r=n.one(e,void 0),i=i0(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 b0(e,t){return e&&"run"in e?async function(n,r){const i=Fu(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Fu(n,{file:r,...e||t})}}function Bu(e){if(e)throw e}var Bi,zu;function v0(){if(zu)return Bi;zu=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 d;for(d in u);return typeof d>"u"||e.call(u,d)},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 Bi=function l(){var u,c,f,d,h,b,m=arguments[0],v=1,g=arguments.length,S=!1;for(typeof m=="boolean"&&(S=m,m=arguments[1]||{},v=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});v<g;++v)if(u=arguments[v],u!=null)for(c in u)f=a(m,c),d=a(u,c),m!==d&&(S&&d&&(o(d)||(h=i(d)))?(h?(h=!1,b=f&&i(f)?f:[]):b=f&&o(f)?f:{},s(m,{name:c,newValue:l(S,b,d)})):typeof d<"u"&&s(m,{name:c,newValue:d}));return m},Bi}var w0=v0();const zi=eo(w0);function _i(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 k0(){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?S0(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 S0(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:T0,dirname:C0,extname:P0,join:E0,sep:"/"};function T0(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 C0(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 P0(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 E0(...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?".":A0(n)}function A0(e){nn(e);const t=e.codePointAt(0)===47;let n=I0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function I0(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 D0={cwd:j0};function j0(){return"/"}function $i(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function M0(e){if(typeof e=="string")e=new URL(e);else if(!$i(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 N0(e)}function N0(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 Ui=["history","path","basename","stem","extname","dirname"];class _u{constructor(t){let n;t?$i(t)?n={path:t}:typeof t=="string"||V0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":D0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ui.length;){const o=Ui[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)Ui.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Oe.basename(this.path):void 0}set basename(t){Wi(t,"basename"),Hi(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){$u(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(Hi(t,"extname"),$u(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){$i(t)&&(t=M0(t)),Wi(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){Wi(t,"stem"),Hi(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 he(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 Hi(e,t){if(e&&e.includes(Oe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Oe.sep+"`")}function Wi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $u(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function V0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const L0=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),R0={}.hasOwnProperty;class qi extends L0{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=k0()}copy(){const t=new qi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(zi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ki("data",this.frozen),this.namespace[t]=n,this):R0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ki("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=Ln(t),r=this.parser||this.Parser;return Gi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Gi("process",this.parser||this.Parser),Yi("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Ln(t),l=r.parse(a);r.run(l,a,function(c,f,d){if(c||!f||!d)return u(c);const h=f,b=r.stringify(h,d);B0(b)?d.value=b:d.result=b,u(c,d)});function u(c,f){c||!f?s(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Gi("processSync",this.parser||this.Parser),Yi("processSync",this.compiler||this.Compiler),this.process(t,i),Hu("processSync","process",n),r;function i(o,s){n=!0,Bu(o),r=s}}run(t,n,r){Uu(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=Ln(n);i.run(t,l,u);function u(c,f,d){const h=f||t;c?a(c):s?s(h):r(void 0,h,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Hu("runSync","run",r),i;function o(s,a){Bu(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ln(n),i=this.compiler||this.Compiler;return Yi("stringify",i),Uu(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ki("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=zi(!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,d=-1;for(;++f<r.length;)if(r[f][0]===u){d=f;break}if(d===-1)r.push([u,...c]);else if(c.length>0){let[h,...b]=c;const m=r[d][1];_i(m)&&_i(h)&&(h=zi(!0,m,h)),r[d]=[u,h,...b]}}}}const O0=new qi().freeze();function Gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Yi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ki(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 Uu(e){if(!_i(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Hu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ln(e){return F0(e)?e:new _u(e)}function F0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function B0(e){return typeof e=="string"||z0(e)}function z0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _0="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wu=[],qu={allowDangerousHtml:!0},$0=/^(https?|ircs?|mailto|xmpp)$/i,U0=[{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 Rn(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Wu,l=e.remarkPlugins||Wu,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qu}:qu,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||H0,h=O0().use(Cx).use(l).use(b0,u).use(a),b=new _u;typeof r=="string"&&(b.value=r);for(const S of U0)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+_0+S.id,void 0);const m=h.parse(b);let v=h.runSync(m,b);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),Ru(v,g),hg(v,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function g(S,w,P){if(S.type==="raw"&&P&&typeof w=="number")return c?P.children.splice(w,1):P.children[w]={type:"text",value:S.value},w;if(S.type==="element"){let E;for(E in Ti)if(Object.hasOwn(Ti,E)&&Object.hasOwn(S.properties,E)){const k=S.properties[E],N=Ti[E];(N===null||N.includes(S.tagName))&&(S.properties[E]=d(String(k||""),E,S))}}if(S.type==="element"){let E=t?!t.includes(S.tagName):s?s.includes(S.tagName):!1;if(!E&&n&&typeof w=="number"&&(E=!n(S,w,P)),E&&P&&typeof w=="number")return f&&S.children?P.children.splice(w,1,...S.children):P.children.splice(w,1),w}}}function H0(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||$0.test(e.slice(0,t))?e:""}function W0(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function q0(e,t,n){const i=Oi({}.ignore||[]),o=G0(t);let s=-1;for(;++s<o.length;)Lu(e,"text",a);function a(u,c){let f=-1,d;for(;++f<c.length;){const h=c[f],b=d?d.children:void 0;if(i(h,b?b.indexOf(h):void 0,d))return;d=h}if(d)return l(u,c)}function l(u,c){const f=c[c.length-1],d=o[s][0],h=o[s][1];let b=0;const v=f.children.indexOf(u);let g=!1,S=[];d.lastIndex=0;let w=d.exec(u.value);for(;w;){const P=w.index,E={index:w.index,input:w.input,stack:[...c,u]};let k=h(...w,E);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?d.lastIndex=P+1:(b!==P&&S.push({type:"text",value:u.value.slice(b,P)}),Array.isArray(k)?S.push(...k):k&&S.push(k),b=P+w[0].length,g=!0),!d.global)break;w=d.exec(u.value)}return g?(b<u.value.length&&S.push({type:"text",value:u.value.slice(b)}),f.children.splice(v,1,...S)):S=[u],v+S.length}}function G0(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([Y0(i[0]),K0(i[1])])}return t}function Y0(e){return typeof e=="string"?new RegExp(W0(e),"g"):e}function K0(e){return typeof e=="function"?e:function(){return e}}function X0(e){q0(e,[/\r?\n|\r/g,Q0])}function Q0(){return{type:"break"}}function On(){return function(e){X0(e)}}const Gu=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:o="",actionLabel:s,href:a,inverted:l=!1})=>x.jsx("section",{className:`feature-split-section ${o} image-${i} ${l?"theme-inverted":""}`,children:x.jsxs("div",{className:"feature-split-container",children:[x.jsxs("div",{className:"feature-split-content",children:[x.jsx("div",{className:"section-title feature-split-title",children:e}),t&&x.jsx("div",{className:"feature-split-description",children:x.jsx(Rn,{remarkPlugins:[On],children:t})}),n&&n.length>0&&x.jsx("div",{className:"feature-split-list",children:n.map((u,c)=>x.jsxs("div",{className:"feature-split-item",children:[u.icon&&x.jsx("div",{className:"feature-split-icon-wrapper",children:x.jsx(fe,{icon:u.icon,width:"24",height:"24"})}),x.jsxs("div",{children:[x.jsx("h3",{className:"card-title feature-split-item-title",children:u.title}),x.jsx("div",{className:"feature-split-item-description",children:x.jsx(Rn,{remarkPlugins:[On],children:u.description})})]})]},c))}),s&&a&&x.jsx("div",{className:"feature-split-actions",children:x.jsx("button",{onClick:()=>window.location.href=a,children:s})})]}),x.jsx("div",{className:"feature-split-image-wrapper",children:x.jsx("img",{src:r.imageSrc,alt:r.alt,className:"feature-split-image"})})]})}),Yu=({title:e,subtitle:t,content:n,format:r="markdown",className:i="",image:o,inverted:s=!1})=>x.jsx("section",{className:`content-block-section ${s?"theme-inverted":""} ${i}`,children:x.jsxs("div",{className:"content-block-container",children:[x.jsxs("div",{className:"content-block-header",children:[e&&x.jsx("div",{className:"section-title content-block-title",children:e}),t&&x.jsx("div",{className:"section-subtitle content-block-subtitle",children:t})]}),o&&x.jsxs("div",{className:"content-block-featured-image",children:[x.jsx("img",{src:o.imageSrc,alt:o.alt}),o.caption&&x.jsx("figcaption",{children:o.caption})]}),x.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?x.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):x.jsx(Rn,{remarkPlugins:[On],children:n||""})})]})}),Xi=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:o="",inverted:s=!1})=>x.jsx(Xn,{hoverable:!0,elevation:"sm",className:`feature-card ${o}`,inverted:s,children:x.jsxs("div",{className:"feature-card-content",children:[e&&x.jsx("div",{className:"feature-icon-wrapper",children:x.jsx(fe,{icon:e,width:"24",height:"24"})}),x.jsx("h3",{className:"card-title feature-title",children:t}),x.jsx("div",{className:"card-description feature-description",children:x.jsx(Rn,{remarkPlugins:[On],children:n})}),r&&(r.startsWith("http")?x.jsxs("a",{href:r,className:"feature-link",target:"_blank",rel:"noopener noreferrer",children:[i," ",x.jsx("span",{children:"→"})]}):x.jsxs(Bn.Link,{to:r,className:"feature-link",children:[i," ",x.jsx("span",{children:"→"})]}))]})}),Ku=({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 x.jsx("section",{className:`features-section ${a?"theme-inverted":""} ${i}`,children:x.jsxs("div",{className:"features-container",children:[x.jsxs("div",{className:"features-header",children:[x.jsx("div",{className:"section-title features-title",children:e}),t&&x.jsx("div",{className:"section-subtitle features-subtitle",children:t})]}),x.jsxs("div",{className:"features-grid",style:l,children:[r,n&&n.map((u,c)=>x.jsx(Xi,{...u,actionLabel:s,inverted:a},c))]})]})})},Xu=j.createContext(void 0),Z0=()=>{const e=j.useContext(Xu);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},J0=({children:e})=>{const[t,n]=j.useState(null);return x.jsx(Xu.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},Qi=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,{activeDropdown:d,setActiveDropdown:h}=Z0(),b=j.useRef(null),m=j.useRef(null),v=d===c,g=v;j.useEffect(()=>{const w=P=>{b.current&&!b.current.contains(P.target)&&d===c&&h(null)};return g&&document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[g,d,c,h]);const S=w=>{l&&(w.preventDefault(),h(v?null:c))};return x.jsxs("div",{ref:b,className:"menu",children:[(t||n)&&x.jsx(x.Fragment,{children:u?x.jsxs("a",{href:u,onClick:S,className:`menu-title ${s} ${v?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":g,children:[n&&r==="left"&&x.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&x.jsx("span",{children:t}),n&&r==="right"&&x.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&x.jsx("span",{className:"arrow",children:g?"▲":"▼"})]}):x.jsxs("button",{onClick:S,className:`menu-title ${s} ${v?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":g,children:[n&&r==="left"&&x.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&x.jsx("span",{children:t}),n&&r==="right"&&x.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&x.jsx("span",{className:"arrow",children:g?"▲":"▼"})]})}),x.jsx("div",{ref:m,className:`menu-dropdown ${a} ${g?"show":""}`,onClick:()=>h(null),children:l})]})},Qu=({items:e,className:t=""})=>x.jsx("section",{className:`stats-section ${t}`,children:x.jsx("div",{className:"stats-container",children:x.jsx("div",{className:"stats-grid",children:e.map((n,r)=>x.jsxs("div",{className:"stat-item",children:[x.jsx("span",{className:"stat-value",children:n.value}),x.jsx("span",{className:"stat-label",children:n.label}),n.description&&x.jsx("span",{className:"stat-description",children:n.description})]},r))})})}),Zu=({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 x.jsx("section",{className:`cta-section ${s?"theme-inverted":""}`,style:a,children:x.jsxs("div",{className:`cta-container ${i}`,children:[x.jsx("h2",{className:"section-title cta-title",children:e}),t&&x.jsx("p",{className:"section-subtitle cta-description",children:t}),n&&x.jsx("div",{className:"cta-actions btn btn-outline",children:n&&x.jsx("button",{onClick:r,children:n})})]})})},Ju=({title:e,subtitle:t,items:n,className:r=""})=>x.jsx("section",{className:`testimonials-section ${r}`,children:x.jsxs("div",{className:"testimonials-container",children:[x.jsxs("div",{className:"testimonials-header",children:[x.jsx("h2",{className:"section-title testimonials-title",children:e}),t&&x.jsx("p",{className:"section-subtitle testimonials-subtitle",children:t})]}),x.jsx("div",{className:"testimonials-grid",children:n.map(i=>x.jsx(Xn,{elevation:"sm",className:"testimonial-card",children:x.jsxs("div",{className:"testimonial-card-content",children:[x.jsx("div",{className:"testimonial-stars",children:[...Array(i.rating||5)].map((o,s)=>x.jsx(fe,{icon:"mdi:star",width:"20",height:"20"},s))}),x.jsxs("blockquote",{className:"testimonial-quote",children:['"',i.quote,'"']}),x.jsxs("div",{className:"testimonial-author",children:[i.imageSrc?x.jsx("img",{src:i.imageSrc,alt:i.name,className:"testimonial-avatar"}):x.jsx("div",{className:"testimonial-avatar-placeholder",children:i.name.charAt(0)}),x.jsxs("div",{className:"testimonial-author-info",children:[x.jsx("span",{className:"testimonial-name",children:i.name}),x.jsxs("span",{className:"testimonial-role",children:[i.role," ",i.company&&`at ${i.company}`]})]})]})]})},i.id))})]})}),ec=({options:e=[],value:t,defaultValue:n,className:r,icon:i,id:o,hideSelectedLabel:s=!1})=>{const[a,l]=j.useState(n),u=t!==void 0,c=u?t:a,f=m=>{u||l(m.value),m.onClick?.()},d=e.find(m=>m.value===c),h=d?.icon||i;let b=d?.label||d?.value||c||"";return s&&h&&(b=""),x.jsx(Qi,{id:o,title:b,icon:h,className:`${r||""}`,itemGroupClassName:"select-options-group",children:e.map(m=>x.jsxs("div",{className:`select-option ${m.value===c?"selected":""} ${r}`,onClick:()=>f(m),role:"option","aria-selected":m.value===c,children:[m.icon&&x.jsx("span",{className:"option-icon",children:x.jsx(fe,{icon:m.icon})}),m.label&&x.jsx("span",{className:`option-label ${r}`,children:m.label})]},m.value))})},tc={Header:Do,MenuItem:Sl,MenuGrid:Tl,MenuGridItem:Cl,Dropdown:Qi,Hero:Pl,IconButton:El,FeatureSplit:Gu,ContentBlock:Yu,FeaturesSection:Ku,FeatureItem:Xi,BentoGrid:Io,Stats:Qu,CTASection:Zu,Testimonials:Ju,Select:ec};let Zi={...tc};function eb(e,t){Zi[e]=t}function nc(e){return Zi[e]}function tb(e){return e in Zi}function nb(e){return typeof e=="string"&&e.trim().length>0}const Ct=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return x.jsx(x.Fragment,{children:e.map((m,v)=>x.jsx(Ct,{config:m,className:t,handlers:n,onError:r},m.id||`item-${v}`))});if(!e||typeof e!="object")return null;const{type:i,data:o,children:s,id:a,...l}=e,u=a||o?.id||i;if(!nb(i)){const m=new Error(`Invalid component type: "${i}"`);return r?.(m,e),console.error(`Invalid component type: "${i}"`),null}if(!tb(i)){const m=new Error(`Component "${i}" is not registered`);return r?.(m,e),console.error(`Component "${i}" is not registered`),null}const c=nc(i);if(!c){const m=new Error(`Failed to load component: "${i}"`);return r?.(m,e),console.error(`Failed to load component: "${i}"`),null}const f=m=>{if(!m||typeof m!="object"||j.isValidElement(m))return m;if(Array.isArray(m))return m.map(g=>f(g));const v={...m};return Object.keys(v).forEach(g=>{const S=v[g];if(typeof S=="string"&&S.startsWith("@action:")){const w=S.replace("@action:","");n&&n[w]&&(v[g]=n[w])}else typeof S=="object"&&S!==null&&(v[g]=f(S))}),v},h={...f(o),...l,id:a||o?.id};t&&(h.className=o?.className?`${o.className} ${t}`:t);const b=m=>{if(m){if(Array.isArray(m))return m.map((v,g)=>v&&typeof v=="object"&&v.type?x.jsx(Ct,{config:v,handlers:n,onError:r},v.id||`child-${g}`):v);if(m&&typeof m=="object"&&m.type){const v=m.id||m.data?.id||m.type;return x.jsx(Ct,{config:m,handlers:n,onError:r},v)}return m}};if(s!==void 0)if(i==="Header"){const m=b(s);if(m&&Array.isArray(m)){const v=m.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])!=="far-item"}),g=m.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])==="far-item"});h.menuBar=v,h.utilityButtons=g}}else if(i==="MenuGrid"){const m=b(s);m&&(h.children=m)}else if(i==="Dropdown"){const m=b(s);h.children=m}else h.children=b(s);if(o?.items&&Array.isArray(o.items)&&(h.items=o.items.map((m,v)=>m&&typeof m=="object"&&m.type?x.jsx(Ct,{config:m,handlers:n,onError:r},m.id||`item-${v}`):m)),o?.embeddedView&&typeof o.embeddedView=="object"&&o.embeddedView.type){const m=o.embeddedView.id||o.embeddedView.data?.id||o.embeddedView.type;h.embeddedView=x.jsx(Ct,{config:o.embeddedView,handlers:n,onError:r},m)}try{return x.jsx(c,{...h},u)}catch(m){const v=m instanceof Error?m:new Error("Unknown rendering error");return r?.(v,e),console.error(`Error rendering component "${i}":`,m),x.jsxs("div",{className:"error-boundary",style:{border:"1px solid red",padding:"1rem",color:"red",background:"#fee"},children:["Error rendering ",i,": ",v.message]},u)}},rb=({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:x.jsxs("div",{className:"footer-logo-container",children:[e&&x.jsx("img",{src:e,alt:t||"Logo",className:"footer-logo-img"}),t&&x.jsx("span",{className:"footer-company-name",children:t})]});return x.jsx("footer",{className:l,children:x.jsxs("div",{className:"footer-container",children:[x.jsxs("div",{className:"footer-grid",children:[x.jsxs("div",{className:"footer-brand",children:[x.jsx("div",{className:"footer-logo",children:u()}),n&&x.jsx("p",{className:"footer-description",children:n}),i&&x.jsx("div",{className:"footer-social",children:i.map((c,f)=>x.jsx("a",{href:c.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:x.jsx(fe,{icon:c.icon,width:"24",height:"24"})},f))})]}),r.map((c,f)=>x.jsxs("div",{className:"footer-column",children:[x.jsx("h4",{className:"footer-column-title",children:c.title}),x.jsx("div",{className:"footer-links",children:c.links.map((d,h)=>d.href.startsWith("http")?x.jsx("a",{href:d.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:d.label},h):x.jsx(Bn.Link,{to:d.href,className:"footer-link",children:d.label},h))})]},f))]}),x.jsxs("div",{className:"footer-bottom",children:[x.jsx("div",{className:"footer-copyright",children:o||`© ${new Date().getFullYear()} Company Name. All rights reserved.`}),x.jsx("div",{className:"footer-legal"})]})]})})},ib=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[o,s]=j.useState(new Set),a=j.useRef({}),l=u=>{s(c=>{const f=new Set(i?c:[]);return c.has(u)?f.delete(u):f.add(u),f})};return x.jsx("section",{className:`accordion-section ${r}`,children:x.jsxs("div",{className:"accordion-container",children:[(e||t)&&x.jsxs("div",{className:"accordion-header-section",children:[e&&x.jsx("h2",{className:"accordion-title",children:e}),t&&x.jsx("p",{className:"accordion-subtitle",children:t})]}),x.jsx("div",{className:"accordion-list",children:n.map(u=>{const c=o.has(u.id);return x.jsxs("div",{className:`accordion-item ${c?"open":""}`,children:[x.jsxs("button",{className:"accordion-trigger",onClick:()=>l(u.id),"aria-expanded":c,"aria-controls":`content-${u.id}`,children:[x.jsx("span",{className:"accordion-item-title",children:u.title}),x.jsx(fe,{icon:"mdi:chevron-down",width:"24",height:"24",className:`accordion-icon ${c?"rotate":""}`})]}),x.jsx("div",{id:`content-${u.id}`,className:"accordion-content",style:{height:c?a.current[u.id]?.scrollHeight:0},children:x.jsx("div",{ref:f=>{a.current[u.id]=f},className:"accordion-content-inner",children:u.content})})]},u.id)})})]})})};let ob;function sb({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[o,s]=j.useState(null),[a,l]=j.useState(r),[u,c]=j.useState(null),f=i||ob,d=async(h,b)=>{if(!f){c("API service not configured"),l(!1);return}const m=h||t;l(!0),c(null);try{const v=new URLSearchParams({story:m,...n,...b}).toString(),g=v?`${e}?${v}`:e,S=await f.get(g);S.status===200?s(S.data):c(`Error ${S.status}: ${S.statusText}`)}catch(v){console.error(`Failed to fetch from ${e}:`,v),c(v.message||"Failed to fetch configuration")}finally{l(!1)}};return j.useEffect(()=>{r&&f?d():r&&!f&&(c("API service not configured"),l(!1))},[e,t,JSON.stringify(n),r,f]),{data:o,loading:a,error:u,refetch:d,setData:s}}const ab={MenuGridItem:"/menu-grid-item",MenuGrid:"/menu-grid",Dropdown:"/dropdown",Header:"/header",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",Select:"/select"};function me(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,o=ab[t],s={};return r&&(s.variant=r),sb({endpoint:o,storyName:n,params:s,apiService:i})}function lb(e,t,n){return me({component:"MenuGridItem",story:e,apiService:t,variant:n})}function ub(e,t,n){return me({component:"MenuGrid",story:e,apiService:t,variant:n})}function cb(e,t,n){return me({component:"Dropdown",story:e,apiService:t,variant:n})}function fb(e,t,n){return me({component:"Hero",story:e,apiService:t,variant:n})}function db(e,t,n){return me({component:"Header",story:e,apiService:t,variant:n})}function hb(e,t,n){return me({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function pb(e,t,n){return me({component:"Footer",story:e,apiService:t,variant:n})}function mb(e,t,n){return me({component:"Stats",story:e,apiService:t,variant:n})}function gb(e,t,n){return me({component:"FeatureSplit",story:e,apiService:t,variant:n})}function yb(e,t,n){return me({component:"ContentBlock",story:e,apiService:t,variant:n})}function xb(e,t,n){return me({component:"FeaturesSection",story:e,apiService:t,variant:n})}function bb(e,t,n){return me({component:"BentoGrid",story:e,apiService:t,variant:n})}function vb(e,t,n){return me({component:"CTASection",story:e,apiService:t,variant:n})}function wb(e,t,n){return me({component:"Testimonials",story:e,apiService:t,variant:n})}function kb(e,t,n){return me({component:"Select",story:e,apiService:t,variant:n})}$.BentoGrid=Io,$.CTASection=Zu,$.Card=Xn,$.ContentBlock=Yu,$.Dropdown=Qi,$.DropdownProvider=J0,$.DynamicRenderer=Ct,$.FeatureItem=Xi,$.FeatureSplit=Gu,$.FeaturesSection=Ku,$.Footer=rb,$.Header=Do,$.Hero=Pl,$.IconButton=El,$.ItemsAccordion=ib,$.MenuGrid=Tl,$.MenuGridItem=Cl,$.MenuItem=Sl,$.Select=ec,$.Stats=Qu,$.Testimonials=Ju,$.baseComponents=tc,$.getComponent=nc,$.registerComponent=eb,$.useBentoGridConfig=bb,$.useCTASectionConfig=vb,$.useContentBlockConfig=yb,$.useDropdownConfig=cb,$.useFeatureSplitConfig=gb,$.useFeaturesSectionConfig=xb,$.useFooterConfig=pb,$.useHeaderConfig=db,$.useHeroConfig=fb,$.useItemsAccordionConfig=hb,$.useMenuGridConfig=ub,$.useMenuGridItemConfig=lb,$.useSelectConfig=kb,$.useStatsConfig=mb,$.useTestimonialsConfig=wb,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|
|
21
21
|
//# sourceMappingURL=index.umd.js.map
|