@sankhyatronics/sankhya-ui 0.0.9 → 0.0.10
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/README.md +1 -0
- package/dist/components/Carousel/Carousel.d.ts +10 -0
- package/dist/components/Common/DynamicRenderer.constants.d.ts +1 -0
- package/dist/components/Common/DynamicRenderer.interfaces.d.ts +1 -1
- package/dist/hooks/useDataConfig.d.ts +7 -0
- package/dist/hooks/useTypedApiConfig.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3771 -3553
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
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-copyright{display:flex;flex-direction:column;gap:4px}.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)}.footer-powered-by{font-size:.85em;opacity:.8;margin-top:4px}.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(B,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("react-router")):typeof define=="function"&&define.amd?define(["exports","react","react-router"],A):(B=typeof globalThis<"u"?globalThis:B||self,A(B["react-jp-ui"]={},B.React,B.ReactRouter))})(this,(function(B,A,$n){"use strict";var io=document.createElement("style");io.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}.btn-primary{background-color:var(--color-primary-600, #2563eb);color:var(--color-white, #ffffff)}.btn-primary:hover{background-color:var(--color-primary-500, #3b82f6);transform:translateY(-2px)}.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}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.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}}.carousel-container{position:relative;width:100%;overflow:hidden}.carousel-nav-btn{position:absolute;top:50%;transform:translateY(-50%);background:#fff3;border:1px solid rgba(255,255,255,.4);border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;transition:all .3s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;font-size:1.5rem}.carousel-nav-btn:hover{background:#fff6;transform:translateY(-50%) scale(1.1)}.carousel-prev{left:20px}.carousel-next{right:20px}.carousel-indicators{position:absolute;bottom:24px;left:50%;transform:translate(-50%);display:flex;gap:12px;z-index:10}.carousel-dot{width:12px;height:12px;border-radius:50%;background:#fff6;cursor:pointer;transition:all .3s ease;border:none;padding:0}.carousel-dot:hover{background:#ffffffb3}.carousel-dot.active{background:#fff;transform:scale(1.2)}@media(max-width:640px){.carousel-nav-btn{width:36px;height:36px;font-size:1.2rem}.carousel-prev{left:10px}.carousel-next{right:10px}}.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-copyright{display:flex;flex-direction:column;gap:4px}.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)}.footer-powered-by{font-size:.85em;opacity:.8;margin-top:4px}.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(io);function yc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const sn=yc(A);function oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var an={exports:{}},Et={};var so;function xc(){if(so)return Et;so=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 ao;function bc(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===V?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case v:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case D:return"SuspenseList";case F: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 p:return"Portal";case E:return C.displayName||"Context";case w:return(C._context.displayName||"Context")+".Consumer";case P:var _=C.render;return C=C.displayName,C||(C=_.displayName||_.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case j:return _=C.displayName||null,_!==null?_:e(C.type)||"Memo";case O:_=C._payload,C=C._init;try{return e(C(_))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var _=!1}catch{_=!0}if(_){_=console;var g=_.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return g.call(_,"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 _=e(C);return _?"<"+_+">":"<...>"}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 _=Object.getOwnPropertyDescriptor(C,"key").get;if(_&&_.isReactWarning)return!1}return C.key!==void 0}function a(C,_){function g(){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)",_))}g.isReactWarning=!0,Object.defineProperty(C,"key",{get:g,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,_,g,X,Ie,oe){var te=g.ref;return C={$$typeof:m,type:C,key:_,props:g,_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,_,g,X,Ie,oe){var te=_.children;if(te!==void 0)if(X)if(z(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(_,"key")){te=e(C);var ge=Object.keys(_).filter(function(Xe){return Xe!=="key"});X=0<ge.length?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}",b[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(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===x}var h=j,x=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 b=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 x=[i.left,i.top,l,u];return d.viewBox=x.join(" "),{attributes:d,viewBox:x,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 x(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),x(),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(x(),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;x();const k=s.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{x(),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,x=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,...x?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 x=e.icon;if(typeof x=="object")return{name:"",data:x};const m=ho(x);if(m)return{name:x,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 x=e.icon;if(typeof x=="object"){u({name:"",data:x});return}const m=ho(x);if(u({name:x,data:m}))if(m===void 0){const v=Kc([x],c);i({callback:v})}else m&&((h=e.onLoad)===null||h===void 0||h.call(e,x))}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})=>b.jsx("section",{className:`bento-grid-section ${i?"theme-inverted":""} ${r}`,children:b.jsxs("div",{className:"bento-grid-container",children:[(e||t)&&b.jsxs("div",{className:"bento-grid-header",children:[e&&b.jsx("h2",{className:"section-title bento-grid-title",children:e}),t&&b.jsx("p",{className:"section-subtitle bento-grid-subtitle",children:t})]}),b.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 b.jsxs(u,{...c,children:[o.image&&b.jsx("div",{className:"bento-card-image-wrapper",children:b.jsx("img",{src:o.image.imageSrc,alt:o.image.alt,className:"bento-card-image"})}),b.jsxs("div",{className:"bento-card-content",children:[o.icon&&b.jsx("div",{className:"bento-card-icon",children:b.jsx(fe,{icon:o.icon,width:"24",height:"24"})}),b.jsxs("div",{className:`bento-card-text ${o.cardTextClassName}`,children:[b.jsx("h3",{className:"bento-card-title",children:o.title}),o.description&&b.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 b.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 b.jsxs("header",{className:`header ${r?"header-sticky":""} ${c?"theme-inverted":""} ${i}`,children:[b.jsx("div",{className:"header-logo-wrapper",children:s&&b.jsx("a",{href:o||"#",target:a,className:`${l} hover-lift`,"aria-label":"Home",children:b.jsx("img",{src:s,alt:u})})}),b.jsx("button",{className:"header-toggle",onClick:()=>d(!f),"aria-label":"Toggle navigation",children:b.jsx(fe,{icon:f?"mdi:close":"mdi:menu"})}),b.jsxs("div",{className:`header-nav-container ${f?"active":""}`,onClick:()=>d(!1),children:[b.jsx("div",{className:"header-nav",children:t}),n&&n.length>0&&b.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 x=d&&i?n:r;return f&&s.add(c),x.has(c)||x.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:x}=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),x.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),x=Math.exp(-f);return xr-d/h*x},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-f),m=br(Math.pow(u,2),s);return(-i(u)+xr>0?-1:1)*((d-h)*x)/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)}),x=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*((x+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+(x+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*((x+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?x:0;m<1&&(N=E===0?De(x):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,x=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,x(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:x,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&&x!==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,(x,m,v)=>this.onKeyframesResolved(x,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,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),yn.has(l)&&yn.delete(l),_s(h)&&typeof u=="function"&&u(h,{success:x})},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 x=Wr(e,d[h]);if(x){const{transitionEnd:m,transition:v,...g}=x;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 x=n[oa],m=j.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));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?.(x)}),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,x=gh(u),m=s(u,h);if(!h&&Qn){zh(d,r);const v=_h(d);f=v.MeasureLayout,x.visualElement=Oh(e,m,d,i,v.ProjectionNode,o)}return b.jsxs(bn.Provider,{value:x,children:[f&&x.visualElement?b.jsx(f,{visualElement:x.visualElement,...d}):null,Dh(e,u,Rh(m,x.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)},x=f.get();if(x!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===x&&!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,...x}=f;u={...u,...x,...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={},x=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&&(x=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>x&&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,x=Vp(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!x)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:x,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&&x&&x(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:x,onDragStart:m}=this.getProps();if(h&&!x&&(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:x,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:g}=d;if(x&&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,x={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,x)});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 b.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:x}=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) `),x&&(r+=`skewY(${x}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 x=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(x,"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,x=this.layout?this.layout.source:void 0,m=h!==x,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 x in _r){if(c[x]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:g}=_r[x],S=f==="none"?c[x]:m(c[x],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[x]=S:s[x]=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 x=ue();Tn(x,n,d.layoutBox),sl(h,x)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=x,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 b.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&&b.jsx(we.div,{className:"menu-item-icon",whileHover:{rotate:5},children:b.jsx(fe,{icon:i})}),b.jsxs("div",{className:"menu-item-content",children:[b.jsxs("div",{className:"menu-item-header",children:[b.jsx("span",{className:"menu-item-title",children:t}),o&&b.jsx(we.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:o})]}),r&&l&&b.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 b.jsx("div",{className:`menu-grid-container ${r}`,children:b.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 b.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")?b.jsxs("a",{href:r,className:"menu-grid-link",target:"_blank",rel:"noopener noreferrer",children:[o&&b.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(fe,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]}):b.jsxs(Bn.Link,{to:r,className:"menu-grid-link",children:[o&&b.jsx(we.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(we.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(fe,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.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 b.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:[b.jsx("div",{className:"hero-overlay"}),b.jsxs("div",{className:`hero-text ${d} ${h}`,children:[b.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&&b.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&&b.jsx("div",{className:"hero-actions",children:b.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 b.jsx("button",{className:`select-option ${i}`,onClick:n,"aria-label":r,type:"button",children:b.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 x(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=x,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 x(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,x(w)}function d(w){return t.containerState={},e.attempt(nu,h,x)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),d(w)}function x(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 x=h===45?d:f;return e.consume(h),x}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"}),x(k))}function x(k){return k===null||_(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?n(k):(e.consume(k),x)}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,x=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[x+l[d][0]]=x+l[d][1],x+=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?x:h)}function x(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,x):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 x(p){const X="CDATA[";return p===X.charCodeAt(a++)?(e.consume(p),a===X.length?r.interrupt?t:R:x):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,x):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 x(y){const C="CDATA[";return y===C.charCodeAt(o++)?(e.consume(y),o===C.length?m:x):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 x=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ei(h)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="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:x,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 x(){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=x(),u.events.push(["enter",K,u]),a.push(K),K}function P(L){const R=a.pop();return R.end=x(),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=x(),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=`
|
|
7
|
+
<%s key={someKey} {...props} />`,X,te,ge,te),b[te+X]=!0)}if(te=null,g!==void 0&&(n(g),te=""+g),s(_)&&(n(_.key),te=""+_.key),"key"in _){g={};for(var Fe in _)Fe!=="key"&&(g[Fe]=_[Fe])}else g=_;return te&&a(g,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,te,g,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===m}var h=A,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),v=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"),D=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),F=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,z=Array.isArray,N=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=N(r(o)),b={};At.Fragment=v,At.jsx=function(C,_,g){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,_,g,!1,X?Error("react-stack-top-frame"):Q,X?N(r(C)):le)},At.jsxs=function(C,_,g){var X=1e4>R.recentlyCreatedOwnerStacks++;return c(C,_,g,!0,X?Error("react-stack-top-frame"):Q,X?N(r(C)):le)}})()),At}var lo;function vc(){return lo||(lo=1,process.env.NODE_ENV==="production"?an.exports=xc():an.exports=bc()),an.exports}var y=vc();function wc(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 uo=Object.freeze({left:0,top:0,width:16,height:16}),ln=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Un=Object.freeze({...uo,...ln}),Hn=Object.freeze({...Un,body:"",hidden:!1});function kc(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 co(e,t){const n=kc(e,t);for(const r in Hn)r in ln?r in e&&!(r in n)&&(n[r]=ln[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Sc(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let o={};function s(a){o=co(r[a]||i[a],o)}return s(t),n.forEach(s),co(e,o)}function fo(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=wc(e);for(const i in r){const o=r[i];o&&(t(i,Sc(e,i,o)),n.push(i))}return n}const Tc={provider:"",aliases:{},not_found:{},...uo};function Wn(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ho(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Wn(e,Tc))return null;const n=t.icons;for(const i in n){const o=n[i];if(!i||typeof o.body!="string"||!Wn(o,Hn))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]||!Wn(o,Hn))return null}return t}const po=Object.create(null);function Cc(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ot(e,t){const n=po[e]||(po[e]=Object.create(null));return n[t]||(n[t]=Cc(e,t))}function mo(e,t){return ho(t)?fo(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Pc(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}const go=/^[a-z0-9]+(-[a-z0-9]+)*$/,un=(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&&!cn(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&&!cn(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:o};return t&&!cn(a,n)?null:a}return null},cn=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;let It=!1;function yo(e){return typeof e=="boolean"&&(It=e),It}function xo(e){const t=typeof e=="string"?un(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 Ec(e,t){const n=un(e,!0,It);if(!n)return!1;const r=ot(n.provider,n.prefix);return t?Pc(r,n.name,t):(r.missing.add(n.name),!0)}function Ac(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),It&&!t&&!e.prefix){let i=!1;return ho(e)&&(e.prefix="",fo(e,(o,s)=>{Ec(o,s)&&(i=!0)})),i}const n=e.prefix;if(!cn({prefix:n,name:"a"}))return!1;const r=ot(t,n);return!!mo(r,e)}const bo=Object.freeze({width:null,height:null}),vo=Object.freeze({...bo,...ln}),Ic=/(-?[0-9.]*[0-9]+[0-9.]*)/g,jc=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(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(Ic);if(r===null||!r.length)return e;const i=[];let o=r.shift(),s=jc.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 Dc(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 Mc(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Nc(e,t,n){const r=Dc(e);return Mc(r.defs,t+r.content+n)}const Lc=e=>e==="unset"||e==="undefined"||e==="none";function Vc(e,t){const n={...Un,...e},r={...vo,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(p=>{const v=[],x=p.hFlip,S=p.vFlip;let w=p.rotate;x?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 E;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:E=i.height/2+i.top,v.unshift("rotate(90 "+E.toString()+" "+E.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:E=i.width/2+i.left,v.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)),v.length&&(o=Nc(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=wo(f,l/u)):(c=s==="auto"?l:s,f=a===null?wo(c,u/l):a==="auto"?u:a);const d={},h=(p,v)=>{Lc(v)||(d[p]=v.toString())};h("width",c),h("height",f);const m=[i.left,i.top,l,u];return d.viewBox=m.join(" "),{attributes:d,viewBox:m,body:o}}const Rc=/\sid="(\S+)"/g,Oc="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Fc=0;function zc(e,t=Oc){const n=[];let r;for(;r=Rc.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+(Fc++).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 qn=Object.create(null);function Bc(e,t){qn[e]=t}function Gn(e){return qn[e]||qn[""]}function Yn(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 Kn=Object.create(null),jt=["https://api.simplesvg.com","https://api.unisvg.com"],fn=[];for(;jt.length>0;)jt.length===1||Math.random()>.5?fn.push(jt.shift()):fn.push(jt.pop());Kn[""]=Yn({resources:["https://api.iconify.design"].concat(fn)});function _c(e,t){const n=Yn(t);return n===null?!1:(Kn[e]=n,!0)}function Xn(e){return Kn[e]}let ko=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function $c(e,t){const n=Xn(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 Uc(e){return e===404}const Hc=(e,t,n)=>{const r=[],i=$c(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 Wc(e){if(typeof e=="string"){const t=Xn(e);if(t)return t.path}return"/"}const qc={prepare:Hc,send:(e,t,n)=>{if(!ko){n("abort",424);return}let r=Wc(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;ko(e+r).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{n(Uc(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 So(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Gc(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||So([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Yc=0;function Kc(e,t,n){const r=Yc++,i=So.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 Xc(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 Qc(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const o=typeof i=="string"?un(i,t,n):i;o&&r.push(o)}),r}const Zc={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Jc(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 D=Math.floor(Math.random()*k.length);s.push(k[D]),k=k.slice(0,D).concat(k.slice(D+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 m(){f&&(clearTimeout(f),f=null)}function p(){l==="pending"&&(l="aborted"),m(),d.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),d=[]}function v(k,D){D&&(h=[]),typeof k=="function"&&h.push(k)}function x(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:d.length,subscribe:v,abort:p}}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,D,j){const O=D!=="success";switch(d=d.filter(F=>F!==k),l){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){c=j,S();return}if(O){c=j,d.length||(s.length?P():S());return}if(m(),w(),!e.random){const F=e.resources.indexOf(k.resource);F!==-1&&F!==e.index&&(e.index=F)}l="completed",h.forEach(F=>{F(j)})}function P(){if(l!=="pending")return;m();const k=s.shift();if(k===void 0){if(d.length){f=setTimeout(()=>{m(),l==="pending"&&(w(),S())},e.timeout);return}S();return}const D={status:"pending",resource:k,callback:(j,O)=>{E(D,j,O)}};d.push(D),u++,f=setTimeout(P,e.rotate),n(k,t,D.callback)}return setTimeout(P),x}function To(e){const t={...Zc,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,l,u){const c=Jc(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 Co(){}const Qn=Object.create(null);function ef(e){if(!Qn[e]){const t=Xn(e);if(!t)return;const n=To(t),r={config:t,redundancy:n};Qn[e]=r}return Qn[e]}function tf(e,t,n){let r,i;if(typeof e=="string"){const o=Gn(e);if(!o)return n(void 0,424),Co;i=o.send;const s=ef(e);s&&(r=s.redundancy)}else{const o=Yn(e);if(o){r=To(o);const s=e.resources?e.resources[0]:"",a=Gn(s);a&&(i=a.send)}}return!r||!i?(n(void 0,424),Co):r.query(t,i,n)().abort}function Po(){}function nf(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Gc(e)}))}function rf(e){const t=[],n=[];return e.forEach(r=>{(r.match(go)?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(!mo(e,n).length){r();return}}catch(i){console.error(i)}r(),nf(e)}function Eo(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function of(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)){Eo(e.loadIcons(i,r,n),c=>{Dt(e,i,c)});return}if(o){i.forEach(c=>{const f=o(c,r,n);Eo(f,d=>{const h=d?{prefix:r,icons:{[c]:d}}:null;Dt(e,[c],h)})});return}const{valid:s,invalid:a}=rf(i);if(a.length&&Dt(e,a,null),!s.length)return;const l=r.match(go)?Gn(n):null;if(!l){Dt(e,s,null);return}l.prepare(n,r,s).forEach(c=>{tf(n,c,f=>{Dt(e,c.icons,f)})})}))}const sf=(e,t)=>{const n=Qc(e,!0,yo()),r=Xc(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Po)}),()=>{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&&of(l,u)}),t?Kc(t,r,o):Po};function af(e,t){const n={...e};for(const r in t){const i=t[r],o=typeof i;r in bo?(i===null||i&&(o==="string"||o==="number"))&&(n[r]=i):o===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const lf=/[\s,]+/;function uf(e,t){t.split(lf).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function cf(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 ff(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 df(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function hf(e){return"data:image/svg+xml,"+df(e)}function pf(e){return'url("'+hf(e)+'")'}let Mt;function mf(){try{Mt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Mt=null}}function gf(e){return Mt===void 0&&mf(),Mt?Mt.createHTML(e):e}const Ao={...vo,inline:!1},yf={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},xf={display:"inline-block"},Zn={backgroundColor:"currentColor"},Io={backgroundColor:"transparent"},jo={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Do={WebkitMask:Zn,mask:Zn,background:Io};for(const e in Do){const t=Do[e];for(const n in jo)t[e+n]=jo[n]}const bf={...Ao,inline:!0};function Mo(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const vf=(e,t,n)=>{const r=t.inline?bf:Ao,i=af(r,t),o=t.mode||"svg",s={},a=t.style||{},l={...o==="svg"?yf:{}};if(n){const v=un(n,!1,!0);if(v){const x=["iconify"],S=["provider","prefix"];for(const w of S)v[w]&&x.push("iconify--"+v[w]);l.className=x.join(" ")}}for(let v in t){const x=t[v];if(x!==void 0)switch(v){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":l.ref=x;break;case"className":l[v]=(l[v]?l[v]+" ":"")+x;break;case"inline":case"hFlip":case"vFlip":i[v]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&uf(i,x);break;case"color":s.color=x;break;case"rotate":typeof x=="string"?i[v]=cf(x):typeof x=="number"&&(i[v]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete l["aria-hidden"];break;default:r[v]===void 0&&(l[v]=x)}}const u=Vc(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,x=t.id;return typeof x=="string"&&(x=x.replace(/-/g,"_")),l.dangerouslySetInnerHTML={__html:gf(zc(u.body,x?()=>x+"ID"+v++:"iconifyReact"))},A.createElement("svg",l)}const{body:f,width:d,height:h}=e,m=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),p=ff(f,{...c,width:d+"",height:h+""});return l.style={...s,"--svg":pf(p),width:Mo(c.width),height:Mo(c.height),...xf,...m?Zn:Io,...a},A.createElement("span",l)};if(yo(!0),Bc("",qc),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"||!Ac(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;_c(n,i)||console.error(r)}catch{console.error(r)}}}}function No(e){const[t,n]=A.useState(!!e.ssr),[r,i]=A.useState({});function o(h){if(h){const m=e.icon;if(typeof m=="object")return{name:"",data:m};const p=xo(m);if(p)return{name:m,data:p}}return{name:""}}const[s,a]=A.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 m=e.icon;if(typeof m=="object"){u({name:"",data:m});return}const p=xo(m);if(u({name:m,data:p}))if(p===void 0){const v=sf([m],c);i({callback:v})}else p&&((h=e.onLoad)===null||h===void 0||h.call(e,m))}A.useEffect(()=>(n(!0),l),[]),A.useEffect(()=>{t&&c()},[e.icon,t]);const{name:f,data:d}=s;return d?vf({...Un,...d},e,f):e.children?e.children:e.fallback?e.fallback:A.createElement("span",{})}const fe=A.forwardRef((e,t)=>No({...e,_ref:t}));A.forwardRef((e,t)=>No({inline:!0,...e,_ref:t}));const Lo=({title:e,subtitle:t,items:n,className:r="",inverted:i=!1})=>y.jsx("section",{className:`bento-grid-section ${i?"theme-inverted":""} ${r}`,children:y.jsxs("div",{className:"bento-grid-container",children:[(e||t)&&y.jsxs("div",{className:"bento-grid-header",children:[e&&y.jsx("h2",{className:"section-title bento-grid-title",children:e}),t&&y.jsx("p",{className:"section-subtitle bento-grid-subtitle",children:t})]}),y.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 y.jsxs(u,{...c,children:[o.image&&y.jsx("div",{className:"bento-card-image-wrapper",children:y.jsx("img",{src:o.image.imageSrc,alt:o.image.alt,className:"bento-card-image"})}),y.jsxs("div",{className:"bento-card-content",children:[o.icon&&y.jsx("div",{className:"bento-card-icon",children:y.jsx(fe,{icon:o.icon,width:"24",height:"24"})}),y.jsxs("div",{className:`bento-card-text ${o.cardTextClassName}`,children:[y.jsx("h3",{className:"bento-card-title",children:o.title}),o.description&&y.jsx("p",{className:"bento-card-description",children:o.description})]})]})]},s)})})]})}),Jn=({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}`,wf("elevation",o),i?"card-hoverable":"",a?"theme-inverted":"",t].filter(Boolean).join(" ");return y.jsx("div",{className:l,onClick:s,children:e})},wf=(e,t)=>t&&t!=="none"?`card-${e}-${t}`:"",Vo=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]=A.useState(!1);return y.jsxs("header",{className:`header ${r?"header-sticky":""} ${c?"theme-inverted":""} ${i}`,children:[y.jsx("div",{className:"header-logo-wrapper",children:s&&y.jsx("a",{href:o||"#",target:a,className:`${l} hover-lift`,"aria-label":"Home",children:y.jsx("img",{src:s,alt:u})})}),y.jsx("button",{className:"header-toggle",onClick:()=>d(!f),"aria-label":"Toggle navigation",children:y.jsx(fe,{icon:f?"mdi:close":"mdi:menu"})}),y.jsxs("div",{className:`header-nav-container ${f?"active":""}`,onClick:()=>d(!1),children:[y.jsx("div",{className:"header-nav",children:t}),n&&n.length>0&&y.jsx("div",{className:"header-utility",children:n})]})]})},er=A.createContext({});function tr(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const nr=typeof window<"u",Ro=nr?A.useLayoutEffect:A.useEffect,dn=A.createContext(null);function rr(e,t){e.indexOf(t)===-1&&e.push(t)}function ir(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ze=(e,t,n)=>n>t?t:n<e?e:n;function or(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let st=()=>{},Be=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(st=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(or(t,n))},Be=(e,t,n)=>{if(!e)throw new Error(or(t,n))});const _e={},Oo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Fo(e){return typeof e=="object"&&e!==null}const zo=e=>/^0[^.\s]+$/u.test(e);function sr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ce=e=>e,kf=(e,t)=>n=>t(e(n)),Nt=(...e)=>e.reduce(kf),Lt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ar{constructor(){this.subscriptions=[]}add(t){return rr(this.subscriptions,t),()=>ir(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,Pe=e=>e/1e3;function Bo(e,t){return t?e*(1e3/t):0}const _o=new Set;function lr(e,t,n){e||_o.has(t)||(console.warn(or(t,n)),_o.add(t))}const $o=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Sf=1e-7,Tf=12;function Cf(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=$o(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Sf&&++a<Tf);return s}function Vt(e,t,n,r){if(e===t&&n===r)return Ce;const i=o=>Cf(o,0,1,e,n);return o=>o===0||o===1?o:$o(i(o),t,r)}const Uo=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ho=e=>t=>1-e(1-t),Wo=Vt(.33,1.53,.69,.99),ur=Ho(Wo),qo=Uo(ur),Go=e=>(e*=2)<1?.5*ur(e):.5*(2-Math.pow(2,-10*(e-1))),cr=e=>1-Math.sin(Math.acos(e)),Yo=Ho(cr),Ko=Uo(cr),Pf=Vt(.42,0,1,1),Ef=Vt(0,0,.58,1),Xo=Vt(.42,0,.58,1),Af=e=>Array.isArray(e)&&typeof e[0]!="number",Qo=e=>Array.isArray(e)&&typeof e[0]=="number",Zo={linear:Ce,easeIn:Pf,easeInOut:Xo,easeOut:Ef,circIn:cr,circInOut:Ko,circOut:Yo,backIn:ur,backInOut:qo,backOut:Wo,anticipate:Go},If=e=>typeof e=="string",Jo=e=>{if(Qo(e)){Be(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(If(e))return Be(Zo[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Zo[e];return e},hn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jf(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 m=d&&i?n:r;return f&&s.add(c),m.has(c)||m.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Df=40;function es(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=hn.reduce((w,E)=>(w[E]=jf(o),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:h,postRender:m}=s,p=()=>{const w=_e.useManualTiming?i.timestamp:performance.now();n=!1,_e.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,Df),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),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},v=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:hn.reduce((w,E)=>{const P=s[E];return w[E]=(k,D=!1,j=!1)=>(n||v(),P.schedule(k,D,j)),w},{}),cancel:w=>{for(let E=0;E<hn.length;E++)s[hn[E]].cancel(w)},state:i,steps:s}}const{schedule:ne,cancel:He,state:ce,steps:fr}=es(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0);let pn;function Mf(){pn=void 0}const ye={now:()=>(pn===void 0&&ye.set(ce.isProcessing||_e.useManualTiming?ce.timestamp:performance.now()),pn),set:e=>{pn=e,queueMicrotask(Mf)}},ts=e=>t=>typeof t=="string"&&t.startsWith(e),ns=ts("--"),Nf=ts("var(--"),dr=e=>Nf(e)?Lf.test(e.split("/*")[0].trim()):!1,Lf=/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=>ze(0,1,e)},mn={...at,default:1},Ot=e=>Math.round(e*1e5)/1e5,hr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vf(e){return e==null}const Rf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pr=(e,t)=>n=>!!(typeof n=="string"&&Rf.test(n)&&n.startsWith(e)||t&&!Vf(n)&&Object.prototype.hasOwnProperty.call(n,t)),rs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,a]=r.match(hr);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Of=e=>ze(0,255,e),mr={...at,transform:e=>Math.round(Of(e))},Qe={test:pr("rgb","red"),parse:rs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+mr.transform(e)+", "+mr.transform(t)+", "+mr.transform(n)+", "+Ot(Rt.transform(r))+")"};function Ff(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 gr={test:pr("#"),parse:Ff,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"),zf=Ft("vh"),Bf=Ft("vw"),is={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},lt={test:pr("hsl","hue"),parse:rs("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)||gr.test(e)||lt.test(e),parse:e=>Qe.test(e)?Qe.parse(e):lt.test(e)?lt.parse(e):gr.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)}},_f=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $f(e){return isNaN(e)&&typeof e=="string"&&(e.match(hr)?.length||0)+(e.match(_f)?.length||0)>0}const os="number",ss="color",Uf="var",Hf="var(",as="${}",Wf=/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 zt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Wf,l=>(se.test(l)?(r.color.push(o),i.push(ss),n.push(se.parse(l))):l.startsWith(Hf)?(r.var.push(o),i.push(Uf),n.push(l)):(r.number.push(o),i.push(os),n.push(parseFloat(l))),++o,as)).split(as);return{values:n,split:a,indexes:r,types:i}}function ls(e){return zt(e).values}function us(e){const{split:t,types:n}=zt(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===os?o+=Ot(i[s]):a===ss?o+=se.transform(i[s]):o+=i[s]}return o}}const qf=e=>typeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function Gf(e){const t=ls(e);return us(e)(t.map(qf))}const qe={test:$f,parse:ls,createTransformer:us,getAnimatableNone:Gf};function yr(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 Yf({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=yr(l,a,e+1/3),o=yr(l,a,e),s=yr(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function gn(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,xr=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kf=[gr,Qe,lt],Xf=e=>Kf.find(t=>t.test(e));function cs(e){const t=Xf(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=Yf(n)),n}const fs=(e,t)=>{const n=cs(e),r=cs(t);if(!n||!r)return gn(e,t);const i={...n};return o=>(i.red=xr(n.red,r.red,o),i.green=xr(n.green,r.green,o),i.blue=xr(n.blue,r.blue,o),i.alpha=re(n.alpha,r.alpha,o),Qe.transform(i))},br=new Set(["none","hidden"]);function Qf(e,t){return br.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Zf(e,t){return n=>re(e,t,n)}function vr(e){return typeof e=="number"?Zf:typeof e=="string"?dr(e)?gn:se.test(e)?fs:td:Array.isArray(e)?ds:typeof e=="object"?se.test(e)?fs:Jf:gn}function ds(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>vr(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Jf(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vr(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function ed(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 td=(e,t)=>{const n=qe.createTransformer(t),r=zt(e),i=zt(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?br.has(e)&&!i.values.length||br.has(t)&&!r.values.length?Qf(e,t):Nt(ds(ed(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"),gn(e,t))};function hs(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):vr(e)(e,t)}const nd=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()}},ps=(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)})`},yn=2e4;function wr(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<yn;)t+=n,r=e.next(t);return t>=yn?1/0:t}function rd(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(wr(r),yn);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Pe(i)}}const id=5;function ms(e,t,n){const r=Math.max(t-id,0);return Bo(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},kr=.001;function od({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=ze(ie.minDamping,ie.maxDamping,s),e=ze(ie.minDuration,ie.maxDuration,Pe(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=Sr(u,s),m=Math.exp(-f);return kr-d/h*m},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-f),p=Sr(Math.pow(u,2),s);return(-i(u)+kr>0?-1:1)*((d-h)*m)/p}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-kr+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=ad(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 sd=12;function ad(e,t,n){let r=n;for(let i=1;i<sd;i++)r=r-e(r)/t(r);return r}function Sr(e,t){return e*Math.sqrt(1-t*t)}const ld=["duration","bounce"],ud=["stiffness","damping","mass"];function gs(e,t){return t.some(n=>e[n]!==void 0)}function cd(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!gs(e,ud)&&gs(e,ld))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ze(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ie.mass,stiffness:i,damping:o}}else{const n=od(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function xn(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}=cd({...n,velocity:-Pe(n.velocity||0)}),m=d||0,p=u/(2*Math.sqrt(l*c)),v=s-o,x=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(p<1){const P=Sr(x,p);w=k=>{const D=Math.exp(-p*x*k);return s-D*((m+p*x*v)/P*Math.sin(P*k)+v*Math.cos(P*k))}}else if(p===1)w=P=>s-Math.exp(-x*P)*(v+(m+x*v)*P);else{const P=x*Math.sqrt(p*p-1);w=k=>{const D=Math.exp(-p*x*k),j=Math.min(P*k,300);return s-D*((m+p*x*v)*Math.sinh(j)+P*v*Math.cosh(j))/P}}const E={calculatedDuration:h&&f||null,next:P=>{const k=w(P);if(h)a.done=P>=f;else{let D=P===0?m:0;p<1&&(D=P===0?je(m):ms(w,P,k));const j=Math.abs(D)<=r,O=Math.abs(s-k)<=i;a.done=j&&O}return a.value=a.done?s:k,a},toString:()=>{const P=Math.min(wr(E),yn),k=ps(D=>E.next(P*D).value,P,30);return P+"ms "+k},toTransition:()=>{}};return E}xn.applyToOptions=e=>{const t=rd(e,100,xn);return e.ease=t.ease,e.duration=je(t.duration),e.type="keyframes",e};function Tr({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=j=>a!==void 0&&j<a||l!==void 0&&j>l,m=j=>a===void 0?l:l===void 0||Math.abs(a-j)<Math.abs(l-j)?a:l;let p=n*t;const v=f+p,x=s===void 0?v:s(v);x!==v&&(p=x-f);const S=j=>-p*Math.exp(-j/r),w=j=>x+S(j),E=j=>{const O=S(j),F=w(j);d.done=Math.abs(O)<=u,d.value=d.done?x:F};let P,k;const D=j=>{h(d.value)&&(P=j,k=xn({keyframes:[d.value,m(d.value)],velocity:ms(w,j,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:j=>{let O=!1;return!k&&P===void 0&&(O=!0,E(j),D(j)),P!==void 0&&j>=P?k.next(j-P):(!O&&E(j),d)}}}function fd(e,t,n){const r=[],i=n||_e.mix||hs,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 dd(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Be(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=fd(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(ze(e[0],e[o-1],c)):u}function hd(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 pd(e){const t=[0];return hd(t,e.length-1),t}function md(e,t){return e.map(n=>n*t)}function gd(e,t){return e.map(()=>t||Xo).splice(0,e.length-1)}function ut({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Af(r)?r.map(Jo):Jo(r),o={done:!1,value:t[0]},s=md(n&&n.length===t.length?n:pd(t),e),a=dd(s,t,{ease:Array.isArray(i)?i:gd(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const yd=e=>e!==null;function Cr(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(yd),a=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!a||r===void 0?o[a]:r}const xd={decay:Tr,inertia:Tr,tween:ut,keyframes:ut,spring:xn};function ys(e){typeof e.type=="string"&&(e.type=xd[e.type])}class Pr{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 bd=e=>e/100;class Er extends Pr{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;ys(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&&Be(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(bd,hs(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=wr(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:m,onUpdate:p,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 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 j=Math.min(this.currentTime,i)/a;let O=Math.floor(j),F=j%1;!F&&j>=1&&(F=1),F===1&&O--,O=Math.min(O,f+1),!!(O%2)&&(d==="reverse"?(F=1-F,h&&(F-=h/a)):d==="mirror"&&(E=s)),w=ze(0,1,F)*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 D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&m!==Tr&&(P.value=Cr(c,this.options,v,this.speed)),p&&p(P.value),D&&this.finish(),P}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=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=Pe(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=nd,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 vd(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ze=e=>e*180/Math.PI,Ar=e=>{const t=Ze(Math.atan2(e[1],e[0]));return Ir(t)},wd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ar,rotateZ:Ar,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},Ir=e=>(e=e%360,e<0&&(e+=360),e),xs=Ar,bs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bs,scaleY:vs,scale:e=>(bs(e)+vs(e))/2,rotateX:e=>Ir(Ze(Math.atan2(e[6],e[5]))),rotateY:e=>Ir(Ze(Math.atan2(-e[2],e[0]))),rotateZ:xs,rotate:xs,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 jr(e){return e.includes("scale")?1:0}function Dr(e,t){if(!e||e==="none")return jr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=kd,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wd,i=a}if(!i)return jr(t);const o=r[t],s=i[1].split(",").map(Td);return typeof o=="function"?o(s):s[o]}const Sd=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Dr(n,t)};function Td(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),ws=e=>e===at||e===L,Cd=new Set(["x","y","z"]),Pd=ct.filter(e=>!Cd.has(e));function Ed(e){const t=[];return Pd.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})=>Dr(t,"x"),y:(e,{transform:t})=>Dr(t,"y")};Je.translateX=Je.x,Je.translateY=Je.y;const et=new Set;let Mr=!1,Nr=!1,Lr=!1;function ks(){if(Nr){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=Ed(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)})}Nr=!1,Mr=!1,et.forEach(e=>e.complete(Lr)),et.clear()}function Ss(){et.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Nr=!0)})}function Ad(){Lr=!0,Ss(),ks(),Lr=!1}class Vr{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),Mr||(Mr=!0,ne.read(Ss),ne.resolveKeyframes(ks))):(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])}vd(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 Id=e=>e.startsWith("--");function jd(e,t,n){Id(t)?e.style.setProperty(t,n):e.style[t]=n}const Dd=sr(()=>window.ScrollTimeline!==void 0),Md={};function Nd(e,t){const n=sr(e);return()=>Md[t]??n()}const Ts=Nd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Cs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bt([0,.65,.55,1]),circOut:Bt([.55,0,1,.45]),backIn:Bt([.31,.01,.66,-.59]),backOut:Bt([.33,1.53,.69,.99])};function Ps(e,t){if(e)return typeof e=="function"?Ts()?ps(e,t):"ease-out":Qo(e)?Bt(e):Array.isArray(e)?e.map(n=>Ps(n,t)||Cs.easeOut):Cs[e]}function Ld(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=Ps(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 Es(e){return typeof e=="function"&&"applyToOptions"in e}function Vd({type:e,...t}){return Es(e)&&Ts()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Rd extends Pr{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,Be(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Vd(t);this.animation=Ld(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const c=Cr(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):jd(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=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&&Dd()?(this.animation.timeline=t,Ce):n(this)}}const As={anticipate:Go,backInOut:qo,circInOut:Ko};function Od(e){return e in As}function Fd(e){typeof e.ease=="string"&&Od(e.ease)&&(e.ease=As[e.ease])}const Is=10;class zd extends Rd{constructor(t){Fd(t),ys(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 Er({...s,autoplay:!1}),l=je(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Is).value,a.sample(l).value,Is),a.stop()}}const js=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qe.test(e)||e==="0")&&!e.startsWith("url("));function Bd(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 _d(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=js(i,t),a=js(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:Bd(e)||(n==="spring"||Es(n))&&r}function Rr(e){e.duration=0,e.type="keyframes"}const $d=new Set(["opacity","clipPath","filter","transform"]),Ud=sr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Hd(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 Ud()&&n&&$d.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}const Wd=40;class qd extends Pr{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||Vr;this.keyframeResolver=new h(a,(m,p,v)=>this.onKeyframesResolved(m,p,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(),_d(t,o,s,a)||((_e.instantAnimations||!l)&&c?.(Cr(t,r,n)),t[0]=t[t.length-1],Rr(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Wd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!u&&Hd(d)?new zd({...d,element:d.motionValue.owner.current}):new Er(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(),Ad()),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 Gd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yd(e){const t=Gd.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Kd=4;function Ds(e,t,n=1){Be(n<=Kd,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Yd(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Oo(s)?parseFloat(s):s}return dr(i)?Ds(i,t,n+1):i}function Or(e,t){return e?.[t]??e?.default??e}const Ms=new Set(["width","height","top","left","right","bottom",...ct]),Xd={test:e=>e==="auto",parse:e=>e},Ns=e=>t=>t.test(e),Ls=[at,L,Le,We,Bf,zf,Xd],Vs=e=>Ls.find(Ns(e));function Qd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zo(e):!0}const Zd=new Set(["brightness","contrast","saturate","opacity"]);function Jd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hr)||[];if(!r)return e;const i=n.replace(r,"");let o=Zd.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const eh=/\b([a-z-]*)\(.*?\)/gu,Fr={...qe,getAnimatableNone:e=>{const t=e.match(eh);return t?t.map(Jd).join(" "):e}},Rs={...at,transform:Math.round},zr={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:mn,scaleX:mn,scaleY:mn,scaleZ:mn,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:is,originY:is,originZ:L},zIndex:Rs,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Rs},th={...zr,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Fr,WebkitFilter:Fr},Os=e=>th[e];function Fs(e,t){let n=Os(e);return n!==Fr&&(n=qe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nh=new Set(["auto","none","0"]);function rh(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!nh.has(o)&&zt(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Fs(n,i)}class ih extends Vr{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(),dr(u))){const c=Ds(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ms.has(r)||t.length!==2)return;const[i,o]=t,s=Vs(i),a=Vs(o);if(s!==a)if(ws(s)&&ws(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||Qd(t[i]))&&r.push(i);r.length&&rh(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 oh(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 zs=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Bs(e){return Fo(e)&&"offsetHeight"in e}const _s=30,sh=e=>!isNaN(parseFloat(e));class ah{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=sh(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&lr(!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 ar);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>_s)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_s);return Bo(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 ah(e,t)}const{schedule:Br}=es(queueMicrotask,!1),De={x:!1,y:!1};function $s(){return De.x||De.y}function lh(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 Us(e,t){const n=oh(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hs(e){return!(e.pointerType==="touch"||$s())}function uh(e,t,n={}){const[r,i,o]=Us(e,n),s=a=>{if(!Hs(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=f=>{Hs(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return r.forEach(a=>{a.addEventListener("pointerenter",s,i)}),o}const Ws=(e,t)=>t?e===t?!0:Ws(e,t.parentElement):!1,_r=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ch=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fh(e){return ch.has(e.tagName)||e.tabIndex!==-1}const bn=new WeakSet;function qs(e){return t=>{t.key==="Enter"&&e(t)}}function $r(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const dh=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=qs(()=>{if(bn.has(n))return;$r(n,"down");const i=qs(()=>{$r(n,"up")}),o=()=>$r(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 Gs(e){return _r(e)&&!$s()}function hh(e,t,n={}){const[r,i,o]=Us(e,n),s=a=>{const l=a.currentTarget;if(!Gs(a))return;bn.add(l);const u=t(l,a),c=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),bn.has(l)&&bn.delete(l),Gs(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{c(h,l===window||l===document||n.useGlobalTarget||Ws(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),Bs(a)&&(a.addEventListener("focus",u=>dh(u,i)),!fh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Ys(e){return Fo(e)&&"ownerSVGElement"in e}function ph(e){return Ys(e)&&e.tagName==="svg"}const de=e=>!!(e&&e.getVelocity),mh=[...Ls,se,qe],gh=e=>mh.find(Ns(e)),Ur=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ks(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yh(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Ks(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Ks(e[i],null)}}}}function xh(...e){return sn.useCallback(yh(...e),e)}class bh extends sn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=Bs(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function vh({children:e,isPresent:t,anchorX:n,root:r}){const i=A.useId(),o=A.useRef(null),s=A.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=A.useContext(Ur),l=e.props?.ref??e?.ref,u=xh(o,l);return A.useInsertionEffect(()=>{const{width:c,height:f,top:d,left:h,right:m}=s.current;if(t||!o.current||!c||!f)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;o.current.dataset.motionPopId=i;const v=document.createElement("style");a&&(v.nonce=a);const x=r??document.head;return x.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
8
|
+
[data-motion-pop-id="${i}"] {
|
|
9
|
+
position: absolute !important;
|
|
10
|
+
width: ${c}px !important;
|
|
11
|
+
height: ${f}px !important;
|
|
12
|
+
${p}px !important;
|
|
13
|
+
top: ${d}px !important;
|
|
14
|
+
}
|
|
15
|
+
`),()=>{x.contains(v)&&x.removeChild(v)}},[t]),y.jsx(bh,{isPresent:t,childRef:o,sizeRef:s,children:sn.cloneElement(e,{ref:u})})}const wh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s,anchorX:a,root:l})=>{const u=tr(kh),c=A.useId();let f=!0,d=A.useMemo(()=>(f=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:h=>{u.set(h,!0);for(const m of u.values())if(!m)return;r&&r()},register:h=>(u.set(h,!1),()=>u.delete(h))}),[n,u,r]);return o&&f&&(d={...d}),A.useMemo(()=>{u.forEach((h,m)=>u.set(m,!1))},[n]),sn.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=y.jsx(vh,{isPresent:n,anchorX:a,root:l,children:e})),y.jsx(dn.Provider,{value:d,children:e})};function kh(){return new Map}function Xs(e=!0){const t=A.useContext(dn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=A.useId();A.useEffect(()=>{if(e)return i(o)},[e]);const s=A.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const vn=e=>e.key||"";function Qs(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const Sh=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[u,c]=Xs(s),f=A.useMemo(()=>Qs(e),[e]),d=s&&!u?[]:f.map(vn),h=A.useRef(!0),m=A.useRef(f),p=tr(()=>new Map),v=A.useRef(new Set),[x,S]=A.useState(f),[w,E]=A.useState(f);Ro(()=>{h.current=!1,m.current=f;for(let D=0;D<w.length;D++){const j=vn(w[D]);d.includes(j)?(p.delete(j),v.current.delete(j)):p.get(j)!==!0&&p.set(j,!1)}},[w,d.length,d.join("-")]);const P=[];if(f!==x){let D=[...f];for(let j=0;j<w.length;j++){const O=w[j],F=vn(O);d.includes(F)||(D.splice(j,0,O),P.push(O))}return o==="wait"&&P.length&&(D=P),E(Qs(D)),S(f),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:k}=A.useContext(er);return y.jsx(y.Fragment,{children:w.map(D=>{const j=vn(D),O=s&&!u?!1:f===w||d.includes(j),F=()=>{if(v.current.has(j))return;if(v.current.add(j),p.has(j))p.set(j,!0);else return;let V=!0;p.forEach(R=>{R||(V=!1)}),V&&(k?.(),E(m.current),s&&c?.(),r&&r())};return y.jsx(wh,{isPresent:O,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:O?void 0:F,anchorX:a,children:D},j)})})},Zs=A.createContext({strict:!1}),Js={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 Js)ht[e]={isEnabled:t=>Js[e].some(n=>!!t[n])};function Th(e){for(const t in e)ht[t]={...ht[t],...e[t]}}const Ch=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 wn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ch.has(e)}let ea=e=>!wn(e);function Ph(e){typeof e=="function"&&(ea=t=>t.startsWith("on")?!wn(t):e(t))}try{Ph(require("@emotion/is-prop-valid").default)}catch{}function Eh(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ea(i)||n===!0&&wn(i)||!t&&!wn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const kn=A.createContext({});function Sn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _t(e){return typeof e=="string"||Array.isArray(e)}const Hr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wr=["initial",...Hr];function Tn(e){return Sn(e.animate)||Wr.some(t=>_t(e[t]))}function ta(e){return!!(Tn(e)||e.variants)}function Ah(e,t){if(Tn(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 Ih(e){const{initial:t,animate:n}=Ah(e,A.useContext(kn));return A.useMemo(()=>({initial:t,animate:n}),[na(t),na(n)])}function na(e){return Array.isArray(e)?e.join(" "):e}function ra(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=ra(e,t.target.x),r=ra(e,t.target.y);return`${n}% ${r}%`}},jh={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)}},qr={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:jh};function ia(e,{layout:t,layoutId:n}){return ft.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qr[e]||e==="opacity")}const Dh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mh=ct.length;function Nh(e,t,n){let r="",i=!0;for(let o=0;o<Mh;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=zs(a,zr[s]);if(!l){i=!1;const c=Dh[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Gr(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(ns(l)){i[l]=u;continue}else{const c=zs(u,zr[l]);l.startsWith("origin")?(a=!0,o[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=Nh(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 Yr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function oa(e,t,n){for(const r in t)!de(t[r])&&!ia(r,n)&&(e[r]=t[r])}function Lh({transformTemplate:e},t){return A.useMemo(()=>{const n=Yr();return Gr(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Vh(e,t){const n=e.style||{},r={};return oa(r,n,e),Object.assign(r,Lh(e,t)),r}function Rh(e,t){const n={},r=Vh(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 Oh={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fh={offset:"strokeDashoffset",array:"strokeDasharray"};function zh(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Oh:Fh;e[o.offset]=L.transform(-r);const s=L.transform(t),a=L.transform(n);e[o.array]=`${s} ${a}`}const Bh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function sa(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(Gr(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 Bh)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&&zh(f,i,o,s,!1)}const aa=()=>({...Yr(),attrs:{}}),la=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _h(e,t,n,r){const i=A.useMemo(()=>{const o=aa();return sa(o,t,la(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};oa(o,e.style,e),i.style={...o,...i.style}}return i}const $h=["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 Kr(e){return typeof e!="string"||e.includes("-")?!1:!!($h.indexOf(e)>-1||/[A-Z]/u.test(e))}function Uh(e,t,n,{latestValues:r},i,o=!1,s){const l=(s??Kr(e)?_h:Rh)(t,r,i,e),u=Eh(t,typeof e=="string",o),c=e!==A.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=A.useMemo(()=>de(f)?f.get():f,[f]);return A.createElement(e,{...c,children:d})}function ua(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Xr(e,t,n,r){if(typeof t=="function"){const[i,o]=ua(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]=ua(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Cn(e){return de(e)?e.get():e}function Hh({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Wh(n,r,i,e),renderState:t()}}function Wh(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Cn(o[d]);let{initial:s,animate:a}=e;const l=Tn(e),u=ta(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"&&!Sn(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const m=Xr(e,d[h]);if(m){const{transitionEnd:p,transition:v,...x}=m;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 p)i[S]=p[S]}}}return i}const ca=e=>(t,n)=>{const r=A.useContext(kn),i=A.useContext(dn),o=()=>Hh(e,t,r,i);return n?o():tr(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])||ia(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}const qh=ca({scrapeMotionValuesFromProps:Qr,createRenderState:Yr});function fa(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 Gh=ca({scrapeMotionValuesFromProps:fa,createRenderState:aa}),Yh=Symbol.for("motionComponentSymbol");function pt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function da(e,t){if(typeof e=="function")return e(t);pt(e)&&(e.current=t)}function Kh(e,t,n){const r=A.useRef(null);return A.useCallback(i=>{if(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n)if(i){const o=da(n,i);typeof o=="function"&&(r.current=o)}else r.current?(r.current(),r.current=null):da(n,i)},[t,e,n])}const Zr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ha="data-"+Zr("framerAppearId"),pa=A.createContext({});function Xh(e,t,n,r,i,o){const{visualElement:s}=A.useContext(kn),a=A.useContext(Zs),l=A.useContext(dn),u=A.useContext(Ur).reducedMotion,c=A.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=A.useContext(pa);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Qh(c.current,n,i,d);const h=A.useRef(!1);A.useInsertionEffect(()=>{f&&h.current&&f.update(n,l)});const m=n[ha],p=A.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Ro(()=>{f&&(h.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),p.current&&f.animationState&&f.animationState.animateChanges())}),A.useEffect(()=>{f&&(!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),p.current=!1),f.enteringChildren=void 0)}),f}function Qh(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:ma(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 ma(e){if(e)return e.options.allowProjection!==!1?e.projection:ma(e.parent)}function Jr(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Th(r);const o=n?n==="svg":Kr(e),s=o?Gh:qh;function a(u,c){let f;const d={...A.useContext(Ur),...u,layoutId:Zh(u)},{isStatic:h}=d,m=Ih(u),p=s(u,h);if(!h&&nr){Jh(d,r);const v=ep(d);f=v.MeasureLayout,m.visualElement=Xh(e,p,d,i,v.ProjectionNode,o)}return y.jsxs(kn.Provider,{value:m,children:[f&&m.visualElement?y.jsx(f,{visualElement:m.visualElement,...d}):null,Uh(e,u,Kh(p,m.visualElement,c),p,h,t,o)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=A.forwardRef(a);return l[Yh]=e,l}function Zh({layoutId:e}){const t=A.useContext(er).id;return t&&e!==void 0?t+"-"+e:e}function Jh(e,t){const n=A.useContext(Zs).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"):Be(!1,r,"lazy-strict-mode")}}function ep(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 tp(e,t){if(typeof Proxy>"u")return Jr;const n=new Map,r=(o,s)=>Jr(o,s,e,t),i=(o,s)=>(process.env.NODE_ENV!=="production"&&lr(!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,Jr(s,void 0,e,t)),n.get(s))})}function ga({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function np({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rp(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 ei(e){return e===void 0||e===1}function ti({scale:e,scaleX:t,scaleY:n}){return!ei(e)||!ei(t)||!ei(n)}function tt(e){return ti(e)||ya(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ya(e){return xa(e.x)||xa(e.y)}function xa(e){return e&&e!=="0%"}function Pn(e,t,n){const r=e-n,i=t*r;return n+i}function ba(e,t,n,r,i){return i!==void 0&&(e=Pn(e,i,r)),Pn(e,n,r)+t}function ni(e,t=0,n=1,r,i){e.min=ba(e.min,t,n,r,i),e.max=ba(e.max,t,n,r,i)}function va(e,{x:t,y:n}){ni(e.x,t.translate,t.scale,t.originPoint),ni(e.y,n.translate,n.scale,n.originPoint)}const wa=.999999999999,ka=1.0000000000001;function ip(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,va(e,s)),r&&tt(o.latestValues)&>(e,o.latestValues))}t.x<ka&&t.x>wa&&(t.x=1),t.y<ka&&t.y>wa&&(t.y=1)}function mt(e,t){e.min=e.min+t,e.max=e.max+t}function Sa(e,t,n,r,i=.5){const o=re(e.min,e.max,i);ni(e,t,n,o,r)}function gt(e,t){Sa(e.x,t.x,t.scaleX,t.scale,t.originX),Sa(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ta(e,t){return ga(rp(e.getBoundingClientRect(),t))}function op(e,t,n){const r=Ta(e,n),{scroll:i}=t;return i&&(mt(r.x,i.offset.x),mt(r.y,i.offset.y)),r}const Ca=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:Ca(),y:Ca()}),Pa=()=>({min:0,max:0}),ue=()=>({x:Pa(),y:Pa()}),ri={current:null},Ea={current:!1};function sp(){if(Ea.current=!0,!!nr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ri.current=e.matches;e.addEventListener("change",t),t()}else ri.current=!1}const ap=new WeakMap;function lp(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 Aa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class up{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=Vr,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=Tn(n),this.isVariantNode=ta(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,ap.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:(Ea.current||sp(),this.shouldReduceMotion=ri.current),process.env.NODE_ENV!=="production"&&lr(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<Aa.length;r++){const i=Aa[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=lp(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"&&(Oo(r)||zo(r))?r=parseFloat(r):!gh(r)&&qe.test(n)&&(r=Fs(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=Xr(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 ar),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Br.render(this.render)}}class Ia extends up{constructor(){super(...arguments),this.KeyframeResolver=ih}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 ja(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 cp(e){return window.getComputedStyle(e)}class fp extends Ia{constructor(){super(...arguments),this.type="html",this.renderInstance=ja}readValueFromInstance(t,n){if(ft.has(n))return this.projection?.isProjecting?jr(n):Sd(t,n);{const r=cp(t),i=(ns(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ta(t,n)}build(t,n,r){Gr(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Qr(t,n,r)}}const Da=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 dp(e,t,n,r){ja(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Da.has(i)?i:Zr(i),t.attrs[i])}class hp extends Ia{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=Os(n);return r&&r.default||0}return n=Da.has(n)?n:Zr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fa(t,n,r)}build(t,n,r){sa(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){dp(t,n,r,i)}mount(t){this.isSVGTag=la(t.tagName),super.mount(t)}}const pp=(e,t)=>t.isSVG??Kr(e)?new hp(t):new fp(t,{allowProjection:e!==A.Fragment});function xt(e,t,n){const r=e.getProps();return Xr(r,t,n!==void 0?n:r.custom,e)}const ii=e=>Array.isArray(e);function mp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dt(n))}function gp(e){return ii(e)?e[e.length-1]||0:e}function yp(e,t){const n=xt(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=gp(o[s]);mp(e,s,a)}}function xp(e){return!!(de(e)&&e.add)}function oi(e,t){const n=e.getValue("willChange");if(xp(n))return n.add(t);if(!n&&_e.WillChange){const r=new _e.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ma(e){return e.props[ha]}const bp=e=>e!==null;function vp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(bp),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const wp={type:"spring",stiffness:500,damping:25,restSpeed:10},kp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Sp={type:"keyframes",duration:.8},Tp={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cp=(e,{keyframes:t})=>t.length>2?Sp:ft.has(e)?e.startsWith("scale")?kp(t[1]):wp:Tp;function Pp({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const si=(e,t,n,r={},i,o)=>s=>{const a=Or(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};Pp(a)||Object.assign(c,Cp(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)&&(Rr(c),c.delay===0&&(f=!0)),(_e.instantAnimations||_e.skipAnimations)&&(f=!0,Rr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!o&&t.get()!==void 0){const d=vp(c.keyframes,a);if(d!==void 0){ne.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Er(c):new qd(c)};function Ep({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Na(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&&Ep(u,c))continue;const h={delay:n,...Or(o||{},c)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(d)&&d===m&&!h.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const x=Ma(e);if(x){const S=window.MotionHandoffAnimation(x,c,ne);S!==null&&(h.startTime=S,p=!0)}}oi(e,c),f.start(si(c,f,d,e.shouldReduceMotion&&Ms.has(c)?{type:!1}:h,e,p));const v=f.animation;v&&l.push(v)}return s&&Promise.all(l).then(()=>{ne.update(()=>{s&&yp(e,s)})}),l}function La(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 ai(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(Na(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Ap(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 Ap(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(ai(l,t,{...s,delay:n+(typeof r=="function"?0:r)+La(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Ip(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ai(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ai(e,t,n);else{const i=typeof t=="function"?xt(e,t,n.custom):t;r=Promise.all(Na(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Va(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 jp=Wr.length;function Ra(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ra(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jp;n++){const r=Wr[n],i=e.props[r];(_t(i)||i===!1)&&(t[r]=i)}return t}const Dp=[...Hr].reverse(),Mp=Hr.length;function Np(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Ip(e,n,r)))}function Lp(e){let t=Np(e),n=Oa(),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,...m}=f;u={...u,...m,...h}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Ra(e.parent)||{},f=[],d=new Set;let h={},m=1/0;for(let v=0;v<Mp;v++){const x=Dp[v],S=n[x],w=u[x]!==void 0?u[x]:c[x],E=_t(w),P=x===l?S.isActive:null;P===!1&&(m=v);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||Sn(w)||typeof w=="boolean")continue;const D=Vp(S.prevProp,w);let j=D||x===l&&S.isActive&&!k&&E||v>m&&E,O=!1;const F=Array.isArray(w)?w:[w];let V=F.reduce(i(x),{});P===!1&&(V={});const{prevResolvedValues:R={}}=S,K={...R,...V},z=W=>{j=!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=V[W],le=R[W];if(h.hasOwnProperty(W))continue;let b=!1;ii(Q)&&ii(le)?b=!Va(Q,le):b=Q!==le,b?Q!=null?z(W):d.add(W):Q!==void 0&&d.has(W)?z(W):S.protectedKeys[W]=!0}S.prevProp=w,S.prevResolvedValues=V,S.isActive&&(h={...h,...V}),r&&e.blockInitialAnimation&&(j=!1);const N=k&&D;j&&(!N||O)&&f.push(...F.map(W=>{const Q={type:x};if(typeof W=="string"&&r&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:le}=e,b=xt(le,W);if(le.enteringChildren&&b){const{delayChildren:C}=b.transition||{};Q.delay=La(le.enteringChildren,e,C)}}return{animation:W,options:Q}}))}if(d.size){const v={};if(typeof u.initial!="boolean"){const x=xt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(v.transition=x.transition)}d.forEach(x=>{const S=e.getBaseTarget(x),w=e.getValue(x);w&&(w.liveStyle=!0),v[x]=S??null}),f.push({animation:v})}let p=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?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=Oa()}}}function Vp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Va(t,e):!1}function nt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Oa(){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 Rp extends Ge{constructor(t){super(t),t.animationState||(t.animationState=Lp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sn(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 Op=0;class Fp extends Ge{constructor(){super(...arguments),this.id=Op++}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 zp={animation:{Feature:Rp},exit:{Feature:Fp}};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 Bp=e=>t=>_r(t)&&e(t,Ht(t));function Wt(e,t,n,r){return Ut(e,t,Bp(n),r)}const Fa=1e-4,_p=1-Fa,$p=1+Fa,za=.01,Up=0-za,Hp=0+za;function me(e){return e.max-e.min}function Wp(e,t,n){return Math.abs(e-t)<=n}function Ba(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>=_p&&e.scale<=$p||isNaN(e.scale))&&(e.scale=1),(e.translate>=Up&&e.translate<=Hp||isNaN(e.translate))&&(e.translate=0)}function qt(e,t,n,r){Ba(e.x,t.x,n.x,r?r.originX:void 0),Ba(e.y,t.y,n.y,r?r.originY:void 0)}function _a(e,t,n){e.min=n.min+t.min,e.max=e.min+me(t)}function qp(e,t,n){_a(e.x,t.x,n.x),_a(e.y,t.y,n.y)}function $a(e,t,n){e.min=t.min-n.min,e.max=e.min+me(t)}function En(e,t,n){$a(e.x,t.x,n.x),$a(e.y,t.y,n.y)}function Ee(e){return[e("x"),e("y")]}const Ua=({current:e})=>e?e.ownerDocument.defaultView:null,Ha=(e,t)=>Math.abs(e-t);function Gp(e,t){const n=Ha(e.x,t.x),r=Ha(e.y,t.y);return Math.sqrt(n**2+r**2)}class Wa{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=ui(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Gp(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:p}=d,{timestamp:v}=ce;this.history.push({...p,timestamp:v});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=li(h,this.transformPagePoint),ne.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:m,onSessionEnd:p,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ui(d.type==="pointercancel"?this.lastMoveEventInfo:li(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),p&&p(d,x)},!_r(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const a=Ht(t),l=li(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ce;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,ui(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 li(e,t){return t?{point:t(e.point)}:e}function qa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ui({point:e},t){return{point:e,delta:qa(e,Ga(t)),offset:qa(e,Yp(t)),velocity:Kp(t,.1)}}function Yp(e){return e[0]}function Ga(e){return e[e.length-1]}function Kp(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ga(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>je(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 Xp(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 Ya(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 Qp(e,{top:t,left:n,bottom:r,right:i}){return{x:Ya(e.x,n,i),y:Ya(e.y,t,r)}}function Ka(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Zp(e,t){return{x:Ka(e.x,t.x),y:Ka(e.y,t.y)}}function Jp(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)),ze(0,1,n)}function em(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 ci=.35;function tm(e=ci){return e===!1?e=0:e===!0&&(e=ci),{x:Xa(e,"left","right"),y:Xa(e,"top","bottom")}}function Xa(e,t,n){return{min:Qa(e,t),max:Qa(e,n)}}function Qa(e,t){return typeof e=="number"?e:e[t]||0}const nm=new WeakMap;class rm{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:m,onDragStart:p}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lh(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(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}),p&&ne.postRender(()=>p(f,d)),oi(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:m,onDirectionLock:p,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:x}=d;if(m&&this.currentDirection===null){this.currentDirection=im(x),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),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 Wa(t,{onSessionStart:o,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Ua(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||!An(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Xp(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=Qp(r.layoutBox,t):this.constraints=!1,this.elastic=tm(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ee(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=em(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!pt(t))return!1;const r=t.current;Be(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=op(r,i.root,this.visualElement.getTransformPagePoint());let s=Zp(i.layout.layoutBox,o);if(n){const a=n(np(s));this.hasMutatedConstraints=!!a,a&&(s=ga(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(!An(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,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return oi(this.visualElement,t),r.start(si(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(!An(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]=Jp({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(!An(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;nm.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=ci,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function An(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function im(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class om extends Ge{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new rm(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 Za=e=>(t,n)=>{e&&ne.postRender(()=>e(t,n))};class sm extends Ge{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new Wa(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ua(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Za(t),onStart:Za(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 In={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let fi=!1;class am extends A.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),fi&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),In.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:s}=r;return s&&(s.isPresent=o,fi=!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(),Br.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;fi=!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 Ja(e){const[t,n]=Xs(),r=A.useContext(er);return y.jsx(am,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(pa),isPresent:t,safeToRemove:n})}function lm(e,t,n){const r=de(e)?e:dt(e);return r.start(si("",r,t,n)),r.animation}const um=(e,t)=>e.depth-t.depth;class cm{constructor(){this.children=[],this.isDirty=!1}add(t){rr(this.children,t),this.isDirty=!0}remove(t){ir(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(um),this.isDirty=!1,this.children.forEach(t)}}function fm(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 el=["TopLeft","TopRight","BottomLeft","BottomRight"],dm=el.length,tl=e=>typeof e=="string"?parseFloat(e):e,nl=e=>typeof e=="number"||L.test(e);function hm(e,t,n,r,i,o){i?(e.opacity=re(0,n.opacity??1,pm(r)),e.opacityExit=re(t.opacity??1,0,mm(r))):o&&(e.opacity=re(t.opacity??1,n.opacity??1,r));for(let s=0;s<dm;s++){const a=`border${el[s]}Radius`;let l=rl(t,a),u=rl(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||nl(l)===nl(u)?(e[a]=Math.max(re(tl(l),tl(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 rl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pm=il(0,.5,Yo),mm=il(.5,.95,Ce);function il(e,t,n){return r=>r<e?0:r>t?1:n(Lt(e,t,r))}function ol(e,t){e.min=t.min,e.max=t.max}function Me(e,t){ol(e.x,t.x),ol(e.y,t.y)}function sl(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function al(e,t,n,r,i){return e-=t,e=Pn(e,1/n,r),i!==void 0&&(e=Pn(e,1/i,r)),e}function gm(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=al(e.min,t,n,a,i),e.max=al(e.max,t,n,a,i)}function ll(e,t,[n,r,i],o,s){gm(e,t[n],t[r],t[i],t.scale,o,s)}const ym=["x","scaleX","originX"],xm=["y","scaleY","originY"];function ul(e,t,n,r){ll(e.x,t,ym,n?n.x:void 0,r?r.x:void 0),ll(e.y,t,xm,n?n.y:void 0,r?r.y:void 0)}function cl(e){return e.translate===0&&e.scale===1}function fl(e){return cl(e.x)&&cl(e.y)}function dl(e,t){return e.min===t.min&&e.max===t.max}function bm(e,t){return dl(e.x,t.x)&&dl(e.y,t.y)}function hl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pl(e,t){return hl(e.x,t.x)&&hl(e.y,t.y)}function ml(e){return me(e.x)/me(e.y)}function gl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class vm{constructor(){this.members=[]}add(t){rr(this.members,t),t.scheduleRender()}remove(t){if(ir(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 wm(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:m}=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) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const di=["","X","Y","Z"],km=1e3;let Sm=0;function hi(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function yl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ma(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&&yl(r)}function xl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=Sm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Pm),this.nodes.forEach(jm),this.nodes.forEach(Dm),this.nodes.forEach(Em)},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 cm)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ar),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=Ys(s)&&!ph(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=fm(d,250),In.hasAnimatedSinceResize&&(In.hasAnimatedSinceResize=!1,this.nodes.forEach(wl)))})}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 m=this.options.transition||u.getDefaultTransition()||Rm,{onLayoutAnimationStart:p,onLayoutAnimationComplete:v}=u.getProps(),x=!this.targetLayout||!pl(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={...Or(m,"layout"),onPlay:p,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,S)}else f||wl(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(Mm),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&&yl(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(bl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(vl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Im),this.nodes.forEach(Tm),this.nodes.forEach(Cm)):this.nodes.forEach(vl),this.clearAllSnapshots();const a=ye.now();ce.delta=ze(0,1e3/60,a-ce.timestamp),ce.timestamp=a,ce.isProcessing=!0,fr.update.process(ce),fr.preRender.process(ce),fr.render.process(ce),ce.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Br.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Am),this.sharedNodes.forEach(Nm)}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&&!fl(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)),Om(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(Fm))){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;ti(u.latestValues)&&u.updateSnapshot();const c=ue(),f=u.measurePageBox();Me(c,f),ul(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return tt(this.latestValues)&&ul(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(),qp(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Me(this.target,this.layout.layoutBox),va(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||ti(this.parent.latestValues)||ya(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(),En(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;ip(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():(sl(this.prevProjectionDelta.x,this.projectionDelta.x),sl(this.prevProjectionDelta.y,this.projectionDelta.y)),qt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!gl(this.projectionDelta.x,this.prevProjectionDelta.x)||!gl(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,m=this.layout?this.layout.source:void 0,p=h!==m,v=this.getStack(),x=!v||v.members.length<=1,S=!!(p&&!x&&this.options.crossfade===!0&&!this.path.some(Vm));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;kl(f.x,s.x,P),kl(f.y,s.y,P),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(En(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lm(this.relativeTarget,this.relativeTargetOrigin,d,P),w&&bm(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ue()),Me(w,this.relativeTarget)),p&&(this.animationValues=c,hm(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(()=>{In.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dt(0)),this.currentAnimation=lm(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(km),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&&El(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 vm),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&&hi("z",s,u,this.animationValues);for(let c=0;c<di.length;c++)hi(`rotate${di[c]}`,s,u,this.animationValues),hi(`skew${di[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=Cn(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=Cn(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=wm(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 m in qr){if(c[m]===void 0)continue;const{correct:p,applyTo:v,isCSSVariable:x}=qr[m],S=f==="none"?c[m]:p(c[m],u);if(v){const w=v.length;for(let E=0;E<w;E++)s[v[E]]=S}else x?this.options.visualElement.renderState.vars[m]=S:s[m]=S}this.options.layoutId&&(s.pointerEvents=u===this?Cn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(bl),this.root.sharedNodes.clear()}}}function Tm(e){e.updateLayout()}function Cm(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=me(f);f.min=n[c].min,f.max=f.min+d}):El(i,t.layoutBox,n)&&Ee(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=!fl(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();En(h,t.layoutBox,f.layoutBox);const m=ue();En(m,n,d.layoutBox),pl(h,m)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=m,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 Pm(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Em(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Am(e){e.clearSnapshot()}function bl(e){e.clearMeasurements()}function vl(e){e.isLayoutDirty=!1}function Im(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jm(e){e.resolveTargetDelta()}function Dm(e){e.calcProjection()}function Mm(e){e.resetSkewAndRotation()}function Nm(e){e.removeLeadSnapshot()}function kl(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 Sl(e,t,n,r){e.min=re(t.min,n.min,r),e.max=re(t.max,n.max,r)}function Lm(e,t,n,r){Sl(e.x,t.x,n.x,r),Sl(e.y,t.y,n.y,r)}function Vm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Rm={duration:.45,ease:[.4,0,.1,1]},Tl=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cl=Tl("applewebkit/")&&!Tl("chrome/")?Math.round:Ce;function Pl(e){e.min=Cl(e.min),e.max=Cl(e.max)}function Om(e){Pl(e.x),Pl(e.y)}function El(e,t,n){return e==="position"||e==="preserve-aspect"&&!Wp(ml(t),ml(n),.2)}function Fm(e){return e!==e.root&&e.scroll?.wasRoot}const zm=xl({attachResizeListener:(e,t)=>Ut(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pi={current:void 0},Al=xl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pi.current){const e=new zm({});e.mount(window),e.setOptions({layoutScroll:!0}),pi.current=e}return pi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Bm={pan:{Feature:sm},drag:{Feature:om,ProjectionNode:Al,MeasureLayout:Ja}};function Il(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 _m extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=uh(t,(n,r)=>(Il(this.node,r,"Start"),i=>Il(this.node,i,"End"))))}unmount(){}}class $m 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 jl(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 Um extends Ge{mount(){const{current:t}=this.node;t&&(this.unmount=hh(t,(n,r)=>(jl(this.node,r,"Start"),(i,{success:o})=>jl(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const mi=new WeakMap,gi=new WeakMap,Hm=e=>{const t=mi.get(e.target);t&&t(e)},Wm=e=>{e.forEach(Hm)};function qm({root:e,...t}){const n=e||document;gi.has(n)||gi.set(n,{});const r=gi.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Wm,{root:e,...t})),r[i]}function Gm(e,t,n){const r=qm(t);return mi.set(e,n),r.observe(e),()=>{mi.delete(e),r.unobserve(e)}}const Ym={some:0,all:1};class Km 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:Ym[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 Gm(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(Xm(t,n))&&this.startObserver()}unmount(){}}function Xm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Qm={...zp,...{inView:{Feature:Km},tap:{Feature:Um},focus:{Feature:$m},hover:{Feature:_m}},...Bm,...{layout:{ProjectionNode:Al,MeasureLayout:Ja}}},xe=tp(Qm,pp),Dl=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 y.jsxs(xe.a,{href:n,target:c,onClick:u,className:d,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&y.jsx(xe.div,{className:"menu-item-icon",whileHover:{rotate:5},children:y.jsx(fe,{icon:i})}),y.jsxs("div",{className:"menu-item-content",children:[y.jsxs("div",{className:"menu-item-header",children:[y.jsx("span",{className:"menu-item-title",children:t}),o&&y.jsx(xe.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:o})]}),r&&l&&y.jsx(xe.p,{className:"menu-item-description",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:r})]})]})},Ml=e=>{const{children:t,columns:n=3,className:r="",gridClassName:i=""}=e,o=`menu-grid columns-${n} ${i}`;return y.jsx("div",{className:`menu-grid-container ${r}`,children:y.jsx("div",{className:o,children:t})})},Nl=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 y.jsx(xe.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")?y.jsxs("a",{href:r,className:"menu-grid-link",target:"_blank",rel:"noopener noreferrer",children:[o&&y.jsx(xe.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),y.jsxs("div",{className:"menu-grid-header",children:[i&&y.jsx(xe.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:y.jsx(fe,{icon:i})}),y.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&y.jsx("span",{className:"menu-grid-description",children:n})]}):y.jsxs($n.Link,{to:r,className:"menu-grid-link",children:[o&&y.jsx(xe.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:o}),y.jsxs("div",{className:"menu-grid-header",children:[i&&y.jsx(xe.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:y.jsx(fe,{icon:i})}),y.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&y.jsx("span",{className:"menu-grid-description",children:n})]})})},Ll=({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 y.jsxs(xe.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:[y.jsx("div",{className:"hero-overlay"}),y.jsxs("div",{className:`hero-text ${d} ${h}`,children:[y.jsx(xe.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&&y.jsx(xe.div,{className:"hero-text-primary hero-subtitle",initial:{opacity:0},animate:{opacity:1},transition:{duration:.8,delay:.5,ease:"easeOut"},children:t}),r&&y.jsx("div",{className:"hero-actions",children:y.jsx(xe.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})})]})]})},Vl=e=>{const{icon:t,onClick:n,ariaLabel:r,className:i=""}=e;return y.jsx("button",{className:`select-option ${i}`,onClick:n,"aria-label":r,type:"button",children:y.jsx(fe,{icon:t,className:"icon-button-icon"})})};function Zb(){}function Jb(){}function Zm(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Jm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tg={};function Rl(e,t){return(tg.jsx?eg:Jm).test(e)}const ng=/[ \t\n\f\r]/g;function rg(e){return typeof e=="object"?e.type==="text"?Ol(e.value):!1:Ol(e)}function Ol(e){return e.replace(ng,"")===""}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 Fl(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 yi(e){return e.toLowerCase()}class be{constructor(t,n){this.attribute=n,this.property=t}}be.prototype.attribute="",be.prototype.booleanish=!1,be.prototype.boolean=!1,be.prototype.commaOrSpaceSeparated=!1,be.prototype.commaSeparated=!1,be.prototype.defined=!1,be.prototype.mustUseProperty=!1,be.prototype.number=!1,be.prototype.overloadedBoolean=!1,be.prototype.property="",be.prototype.spaceSeparated=!1,be.prototype.space=void 0;let ig=0;const H=rt(),ae=rt(),xi=rt(),I=rt(),J=rt(),bt=rt(),ke=rt();function rt(){return 2**++ig}const bi=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:ae,commaOrSpaceSeparated:ke,commaSeparated:bt,number:I,overloadedBoolean:xi,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),vi=Object.keys(bi);class wi extends be{constructor(t,n,r,i){let o=-1;if(super(t,n),zl(this,"space",i),typeof r=="number")for(;++o<vi.length;){const s=vi[o];zl(this,vi[o],(r&bi[s])===bi[s])}}}wi.prototype.defined=!0;function zl(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 wi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[yi(r)]=r,n[yi(o.attribute)]=r}return new Gt(t,n,e.space)}const Bl=vt({properties:{ariaActiveDescendant:null,ariaAtomic:ae,ariaAutoComplete:null,ariaBusy:ae,ariaChecked:ae,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,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:I,ariaLive:null,ariaModal:ae,ariaMultiLine:ae,ariaMultiSelectable:ae,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ae,ariaReadOnly:ae,ariaRelevant:null,ariaRequired:ae,ariaRoleDescription:J,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ae,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _l(e,t){return t in e?e[t]:t}function $l(e,t){return _l(e,t.toLowerCase())}const og=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:I,colSpan:null,content:null,contentEditable:ae,controls:H,controlsList:J,coords:I|bt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:xi,draggable:ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:J,height:I,hidden:xi,high:I,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:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,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:I,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:I,rowSpan:I,sandbox:J,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:ae,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,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:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ae,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:$l}),sg=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:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ke,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,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:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_l}),Ul=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()}}),Hl=vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$l}),Wl=vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ag={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"},lg=/[A-Z]/g,ql=/-[a-z]/g,ug=/^data[-\w.:]+$/i;function cg(e,t){const n=yi(t);let r=t,i=be;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ug.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ql,dg);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ql.test(o)){let s=o.replace(lg,fg);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=wi}return new i(r,t)}function fg(e){return"-"+e.toLowerCase()}function dg(e){return e.charAt(1).toUpperCase()}const hg=Fl([Bl,og,Ul,Hl,Wl],"html"),ki=Fl([Bl,sg,Ul,Hl,Wl],"svg");function pg(e){return e.join(" ").trim()}var wt={},Si,Gl;function mg(){if(Gl)return Si;Gl=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=`
|
|
16
|
+
`,u="/",c="*",f="",d="comment",h="declaration";function m(v,x){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];x=x||{};var S=1,w=1;function E(z){var N=z.match(t);N&&(S+=N.length);var G=z.lastIndexOf(l);w=~G?z.length-G:w+z.length}function P(){var z={line:S,column:w};return function(N){return N.position=new k(z),O(),N}}function k(z){this.start=z,this.end={line:S,column:w},this.source=x.source}k.prototype.content=v;function D(z){var N=new Error(x.source+":"+S+":"+w+": "+z);if(N.reason=z,N.filename=x.source,N.line=S,N.column=w,N.source=v,!x.silent)throw N}function j(z){var N=z.exec(v);if(N){var G=N[0];return E(G),v=v.slice(G.length),N}}function O(){j(n)}function F(z){var N;for(z=z||[];N=V();)N!==!1&&z.push(N);return z}function V(){var z=P();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var N=2;f!=v.charAt(N)&&(c!=v.charAt(N)||u!=v.charAt(N+1));)++N;if(N+=2,f===v.charAt(N-1))return D("End of comment missing");var G=v.slice(2,N-2);return w+=2,E(G),v=v.slice(N),w+=2,z({type:d,comment:G})}}function R(){var z=P(),N=j(r);if(N){if(V(),!j(i))return D("property missing ':'");var G=j(o),W=z({type:h,property:p(N[0].replace(e,f)),value:G?p(G[0].replace(e,f)):f});return j(s),W}}function K(){var z=[];F(z);for(var N;N=R();)N!==!1&&(z.push(N),F(z));return z}return O(),K()}function p(v){return v?v.replace(a,f):f}return Si=m,Si}var Yl;function gg(){if(Yl)return wt;Yl=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(mg());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={},Kl;function yg(){if(Kl)return Yt;Kl=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,Xl;function xg(){if(Xl)return Kt;Xl=1;var e=Kt&&Kt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(gg()),n=yg();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 bg=xg();const vg=oo(bg),Ql=Zl("end"),Ti=Zl("start");function Zl(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 wg(e){const t=Ti(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?Jl(e.position):"start"in e||"end"in e?Jl(e):"line"in e||"column"in e?Ci(e):""}function Ci(e){return eu(e&&e.line)+":"+eu(e&&e.column)}function Jl(e){return Ci(e&&e.start)+"-"+Ci(e&&e.end)}function eu(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 Pi={}.hasOwnProperty,kg=new Map,Sg=/[A-Z]/g,Tg=new Set(["table","tbody","thead","tfoot","tr"]),Cg=new Set(["td","th"]),tu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Pg(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=Lg(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=Ng(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"?ki:hg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=nu(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function nu(e,t,n){if(t.type==="element")return Eg(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ag(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jg(e,t,n);if(t.type==="mdxjsEsm")return Ig(e,t);if(t.type==="root")return Dg(e,t,n);if(t.type==="text")return Mg(e,t)}function Eg(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ki,e.schema=i),e.ancestors.push(t);const o=iu(e,t.tagName,!1),s=Vg(e,t);let a=Ai(e,t);return Tg.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!rg(l):!0})),ru(e,s,o,t),Ei(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Ag(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 Ig(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Qt(e,t.position)}function jg(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ki,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:iu(e,t.name,!0),s=Rg(e,t),a=Ai(e,t);return ru(e,s,o,t),Ei(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Dg(e,t,n){const r={};return Ei(r,Ai(e,t)),e.create(t,e.Fragment,r,n)}function Mg(e,t){return t.value}function ru(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ei(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ng(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 Lg(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=Ti(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 Vg(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Pi.call(t.properties,i)){const o=Og(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&Cg.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 Rg(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 Ai(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:kg;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=nu(e,o,s);a!==void 0&&n.push(a)}return n}function Og(e,t,n){const r=cg(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Zm(n):pg(n)),r.property==="style"){let i=typeof n=="object"?n:Fg(e,String(n));return e.stylePropertyNameCase==="css"&&(i=zg(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ag[r.property]||r.property:r.attribute,n]}}function Fg(e,t){try{return vg(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=tu+"#cannot-parse-style-attribute",i}}function iu(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=Rl(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=Rl(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Pi.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=tu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function zg(e){const t={};let n;for(n in e)Pi.call(e,n)&&(t[Bg(n)]=e[n]);return t}function Bg(e){let t=e.replace(Sg,_g);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _g(e){return"-"+e.toLowerCase()}const Ii={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"]},$g={};function Ug(e,t){const n=$g,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ou(e,r,i)}function ou(e,t,n){if(Hg(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 su(e.children,t,n)}return Array.isArray(e)?su(e,t,n):""}function su(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ou(e[i],t,n);return r.join("")}function Hg(e){return!!(e&&typeof e=="object")}const au=document.createElement("i");function ji(e){const t="&"+e+";";au.innerHTML=t;const n=au.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 lu={}.hasOwnProperty;function Wg(e){const t={};let n=-1;for(;++n<e.length;)qg(t,e[n]);return t}function qg(e,t){let n;for(n in t){const i=(lu.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){lu.call(i,s)||(i[s]=[]);const a=o[s];Gg(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Gg(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 uu(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]/),Yg=Ye(/[#-'*+\--9=?A-Z^-~]/);function Di(e){return e!==null&&(e<32||e===127)}const Mi=Ye(/\d/),Kg=Ye(/[\dA-Fa-f]/),Xg=Ye(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function ve(e){return e!==null&&(e<0||e===32)}function Y(e){return e===-2||e===-1||e===32}const Qg=Ye(new RegExp("\\p{P}|\\p{S}","u")),Zg=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 Jg={tokenize:ey};function ey(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 ty={tokenize:ny},cu={tokenize:ry};function ny(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 D=E;for(;D<t.events.length;)t.events[D][1].end={...k},D++;return Ve(t.events,P+1,0,t.events.slice(E)),t.events.length=D,u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return d(w);if(i.currentConstruct&&i.currentConstruct.concrete)return m(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cu,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,m(w)}function d(w){return t.containerState={},e.attempt(cu,h,m)(w)}function h(w){return r++,n.push([t.currentConstruct,t.containerState]),d(w)}function m(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}),p(w)}function p(w){if(w===null){v(e.exit("chunkFlow"),!0),x(0),e.consume(w);return}return $(w)?(e.consume(w),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),p)}function v(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 D=t.events.length;let j=D,O,F;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(O){F=t.events[j][1].end;break}O=!0}for(x(r),k=D;k<t.events.length;)t.events[k][1].end={...F},k++;Ve(t.events,j+1,0,t.events.slice(D)),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 ry(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 fu(e){if(e===null||ve(e)||Zg(e))return 1;if(Qg(e))return 2}function Ni(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 Li={name:"attention",resolveAll:iy,tokenize:oy};function iy(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};du(f,-l),du(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,Ni(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 oy(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=fu(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=fu(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 du(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const sy={name:"autolink",tokenize:ay};function ay(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||Di(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Yg(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 m=h===45?d:f;return e.consume(h),m}return n(h)}}const jn={partial:!0,tokenize:ly};function ly(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 hu={continuation:{tokenize:cy},exit:fy,name:"blockQuote",tokenize:uy};function uy(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 cy(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(hu,t,n)(s)}}function fy(e){e.exit("blockQuote")}const pu={name:"characterEscape",tokenize:dy};function dy(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 Xg(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const mu={name:"characterReference",tokenize:hy};function hy(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=Kg,c):(e.enter("characterReferenceValue"),o=7,s=Mi,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return s===Se&&!ji(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 gu={partial:!0,tokenize:my},yu={concrete:!0,name:"codeFenced",tokenize:py};function py(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 D=r.events[r.events.length-1];return o=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[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(gu,p,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"}),m(k))}function m(k){return k===null||$(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?n(k):(e.consume(k),m)}function p(k){return e.attempt(i,E,v)(k)}function v(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(gu,p,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,D,j){let O=0;return F;function F(N){return k.enter("lineEnding"),k.consume(N),k.exit("lineEnding"),V}function V(N){return k.enter("codeFencedFence"),Y(N)?ee(k,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):R(N)}function R(N){return N===a?(k.enter("codeFencedFenceSequence"),K(N)):j(N)}function K(N){return N===a?(O++,k.consume(N),K):O>=s?(k.exit("codeFencedFenceSequence"),Y(N)?ee(k,z,"whitespace")(N):z(N)):j(N)}function z(N){return N===null||$(N)?(k.exit("codeFencedFence"),D(N)):j(N)}}}function my(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 Vi={name:"codeIndented",tokenize:yy},gy={partial:!0,tokenize:xy};function yy(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(gy,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 xy(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 by={name:"codeText",previous:wy,resolve:vy,tokenize:ky};function vy(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 wy(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ky(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 Sy{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 xu(e){const t={};let n=-1,r,i,o,s,a,l,u;const c=new Sy(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,Ty(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 Ty(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,m=0,p=0;const v=[p];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&&(p=d+1,v.push(p),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 x=a.slice(v[d],v[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[m+l[d][0]]=m+l[d][1],m+=l[d][1]-l[d][0]-1;return u}const Cy={resolve:Ey,tokenize:Ay},Py={partial:!0,tokenize:Iy};function Ey(e){return xu(e),e}function Ay(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(Py,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 Iy(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 bu(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||Di(x)?n(x):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(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?m:h)}function m(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function p(x){return!c&&(x===null||x===41||ve(x))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(x)):c<u&&x===40?(e.consume(x),c++,p):x===41?(e.consume(x),c--,p):x===null||x===32||x===40||Di(x)?n(x):(e.consume(x),x===92?v:p)}function v(x){return x===40||x===41||x===92?(e.consume(x),p):p(x)}}function vu(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 wu(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 jy={name:"definition",tokenize:My},Dy={partial:!0,tokenize:Ny};function My(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return vu.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 ve(h)?Jt(e,u)(h):u(h)}function u(h){return bu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Dy,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 Ny(e,t,n){return r;function r(a){return ve(a)?Jt(e,i)(a):n(a)}function i(a){return wu(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 Ly={name:"hardBreakEscape",tokenize:Vy};function Vy(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 Ry={name:"headingAtx",resolve:Oy,tokenize:Fy};function Oy(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 Fy(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||ve(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||ve(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const zy=["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"],ku=["pre","script","style","textarea"],By={concrete:!0,name:"htmlFlow",resolveTo:Uy,tokenize:Hy},_y={partial:!0,tokenize:qy},$y={partial:!0,tokenize:Wy};function Uy(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 Hy(e,t,n){const r=this;let i,o,s,a,l;return u;function u(g){return c(g)}function c(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),d):g===47?(e.consume(g),o=!0,p):g===63?(e.consume(g),i=3,r.interrupt?t:b):Re(g)?(e.consume(g),s=String.fromCharCode(g),v):n(g)}function d(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,m):Re(g)?(e.consume(g),i=4,r.interrupt?t:b):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:b):n(g)}function m(g){const X="CDATA[";return g===X.charCodeAt(a++)?(e.consume(g),a===X.length?r.interrupt?t:R:m):n(g)}function p(g){return Re(g)?(e.consume(g),s=String.fromCharCode(g),v):n(g)}function v(g){if(g===null||g===47||g===62||ve(g)){const X=g===47,Ie=s.toLowerCase();return!X&&!o&&ku.includes(Ie)?(i=1,r.interrupt?t(g):R(g)):zy.includes(s.toLowerCase())?(i=6,X?(e.consume(g),x):r.interrupt?t(g):R(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?S(g):w(g))}return g===45||Se(g)?(e.consume(g),s+=String.fromCharCode(g),v):n(g)}function x(g){return g===62?(e.consume(g),r.interrupt?t:R):n(g)}function S(g){return Y(g)?(e.consume(g),S):F(g)}function w(g){return g===47?(e.consume(g),F):g===58||g===95||Re(g)?(e.consume(g),E):Y(g)?(e.consume(g),w):F(g)}function E(g){return g===45||g===46||g===58||g===95||Se(g)?(e.consume(g),E):P(g)}function P(g){return g===61?(e.consume(g),k):Y(g)?(e.consume(g),P):w(g)}function k(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,D):Y(g)?(e.consume(g),k):j(g)}function D(g){return g===l?(e.consume(g),l=null,O):g===null||$(g)?n(g):(e.consume(g),D)}function j(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||ve(g)?P(g):(e.consume(g),j)}function O(g){return g===47||g===62||Y(g)?w(g):n(g)}function F(g){return g===62?(e.consume(g),V):n(g)}function V(g){return g===null||$(g)?R(g):Y(g)?(e.consume(g),V):n(g)}function R(g){return g===45&&i===2?(e.consume(g),G):g===60&&i===1?(e.consume(g),W):g===62&&i===4?(e.consume(g),C):g===63&&i===3?(e.consume(g),b):g===93&&i===5?(e.consume(g),le):$(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(_y,_,K)(g)):g===null||$(g)?(e.exit("htmlFlowData"),K(g)):(e.consume(g),R)}function K(g){return e.check($y,z,_)(g)}function z(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),N}function N(g){return g===null||$(g)?K(g):(e.enter("htmlFlowData"),R(g))}function G(g){return g===45?(e.consume(g),b):R(g)}function W(g){return g===47?(e.consume(g),s="",Q):R(g)}function Q(g){if(g===62){const X=s.toLowerCase();return ku.includes(X)?(e.consume(g),C):R(g)}return Re(g)&&s.length<8?(e.consume(g),s+=String.fromCharCode(g),Q):R(g)}function le(g){return g===93?(e.consume(g),b):R(g)}function b(g){return g===62?(e.consume(g),C):g===45&&i===2?(e.consume(g),b):R(g)}function C(g){return g===null||$(g)?(e.exit("htmlFlowData"),_(g)):(e.consume(g),C)}function _(g){return e.exit("htmlFlow"),t(g)}}function Wy(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 qy(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(jn,t,n)}}const Gy={name:"htmlText",tokenize:Yy};function Yy(e,t,n){const r=this;let i,o,s;return a;function a(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),l}function l(b){return b===33?(e.consume(b),u):b===47?(e.consume(b),P):b===63?(e.consume(b),w):Re(b)?(e.consume(b),j):n(b)}function u(b){return b===45?(e.consume(b),c):b===91?(e.consume(b),o=0,m):Re(b)?(e.consume(b),S):n(b)}function c(b){return b===45?(e.consume(b),h):n(b)}function f(b){return b===null?n(b):b===45?(e.consume(b),d):$(b)?(s=f,W(b)):(e.consume(b),f)}function d(b){return b===45?(e.consume(b),h):f(b)}function h(b){return b===62?G(b):b===45?d(b):f(b)}function m(b){const C="CDATA[";return b===C.charCodeAt(o++)?(e.consume(b),o===C.length?p:m):n(b)}function p(b){return b===null?n(b):b===93?(e.consume(b),v):$(b)?(s=p,W(b)):(e.consume(b),p)}function v(b){return b===93?(e.consume(b),x):p(b)}function x(b){return b===62?G(b):b===93?(e.consume(b),x):p(b)}function S(b){return b===null||b===62?G(b):$(b)?(s=S,W(b)):(e.consume(b),S)}function w(b){return b===null?n(b):b===63?(e.consume(b),E):$(b)?(s=w,W(b)):(e.consume(b),w)}function E(b){return b===62?G(b):w(b)}function P(b){return Re(b)?(e.consume(b),k):n(b)}function k(b){return b===45||Se(b)?(e.consume(b),k):D(b)}function D(b){return $(b)?(s=D,W(b)):Y(b)?(e.consume(b),D):G(b)}function j(b){return b===45||Se(b)?(e.consume(b),j):b===47||b===62||ve(b)?O(b):n(b)}function O(b){return b===47?(e.consume(b),G):b===58||b===95||Re(b)?(e.consume(b),F):$(b)?(s=O,W(b)):Y(b)?(e.consume(b),O):G(b)}function F(b){return b===45||b===46||b===58||b===95||Se(b)?(e.consume(b),F):V(b)}function V(b){return b===61?(e.consume(b),R):$(b)?(s=V,W(b)):Y(b)?(e.consume(b),V):O(b)}function R(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,K):$(b)?(s=R,W(b)):Y(b)?(e.consume(b),R):(e.consume(b),z)}function K(b){return b===i?(e.consume(b),i=void 0,N):b===null?n(b):$(b)?(s=K,W(b)):(e.consume(b),K)}function z(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||ve(b)?O(b):(e.consume(b),z)}function N(b){return b===47||b===62||ve(b)?O(b):n(b)}function G(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function W(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Q}function Q(b){return Y(b)?ee(e,le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):le(b)}function le(b){return e.enter("htmlTextData"),s(b)}}const Ri={name:"labelEnd",resolveAll:Zy,resolveTo:Jy,tokenize:ex},Ky={tokenize:tx},Xy={tokenize:nx},Qy={tokenize:rx};function Zy(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 Jy(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,Ni(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 ex(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(Ky,c,s?c:f)(d):d===91?e.attempt(Xy,c,s?u:f)(d):s?c(d):f(d)}function u(d){return e.attempt(Qy,c,f)(d)}function c(d){return t(d)}function f(d){return o._balanced=!0,n(d)}}function tx(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 ve(f)?Jt(e,o)(f):o(f)}function o(f){return f===41?c(f):bu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return ve(f)?Jt(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?wu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return ve(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 nx(e,t,n){const r=this;return i;function i(a){return vu.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 rx(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 ix={name:"labelStartImage",resolveAll:Ri.resolveAll,tokenize:ox};function ox(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 sx={name:"labelStartLink",resolveAll:Ri.resolveAll,tokenize:ax};function ax(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 Oi={name:"lineEnding",tokenize:lx};function lx(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ee(e,t,"linePrefix")}}const Dn={name:"thematicBreak",tokenize:ux};function ux(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 we={continuation:{tokenize:hx},exit:mx,name:"list",tokenize:dx},cx={partial:!0,tokenize:gx},fx={partial:!0,tokenize:px};function dx(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 m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Mi(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Dn,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 Mi(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(jn,r.interrupt?n:c,e.attempt(cx,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 hx(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(jn,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(fx,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ee(e,e.attempt(we,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function px(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 mx(e){e.exit(this.containerState.type)}function gx(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 Su={name:"setextUnderline",resolveTo:yx,tokenize:xx};function yx(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 xx(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 bx={tokenize:vx};function vx(e){const t=this,n=e.attempt(jn,r,e.attempt(this.parser.constructs.flowInitial,i,ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Cy,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 wx={resolveAll:Cu()},kx=Tu("string"),Sx=Tu("text");function Tu(e){return{resolveAll:Cu(e==="text"?Tx: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 Cu(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 Tx(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 Cx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:jy},disable:{null:[]},document:{42:we,43:we,45:we,48:we,49:we,50:we,51:we,52:we,53:we,54:we,55:we,56:we,57:we,62:hu},flow:{35:Ry,42:Dn,45:[Su,Dn],60:By,61:Su,95:Dn,96:yu,126:yu},flowInitial:{[-2]:Vi,[-1]:Vi,32:Vi},insideSpan:{null:[Li,wx]},string:{38:mu,92:pu},text:{[-5]:Oi,[-4]:Oi,[-3]:Oi,33:ix,38:mu,42:Li,60:[sy,Gy],91:sx,92:[Ly,pu],93:Ri,95:Li,96:by}},Symbol.toStringTag,{value:"Module"}));function Px(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:D(P),check:D(k),consume:S,enter:w,exit:E,interrupt:D(k,{interrupt:!0})},u={code:null,containerState:{},defineSkip:p,events:[],now:m,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),v(),s[s.length-1]!==null?[]:(j(t,0),u.events=Ni(o,u.events,u),u.events)}function d(V,R){return Ax(h(V),R)}function h(V){return Ex(s,V)}function m(){const{_bufferIndex:V,_index:R,line:K,column:z,offset:N}=r;return{_bufferIndex:V,_index:R,line:K,column:z,offset:N}}function p(V){i[V.line]=V.column,F()}function v(){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,F()):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=m(),u.events.push(["enter",K,u]),a.push(K),K}function E(V){const R=a.pop();return R.end=m(),u.events.push(["exit",R,u]),R}function P(V,R){j(V,R.from)}function k(V,R){R.restore()}function D(V,R){return K;function K(z,N,G){let W,Q,le,b;return Array.isArray(z)?_(z):"tokenize"in z?_([z]):C(z);function C(oe){return te;function te(ge){const Fe=ge!==null&&oe[ge],Xe=ge!==null&&oe.null,_n=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Xe)?Xe:Xe?[Xe]:[]];return _(_n)(ge)}}function _(oe){return W=oe,Q=0,oe.length===0?G:g(oe[Q])}function g(oe){return te;function te(ge){return b=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 V(le,b),N}function Ie(oe){return b.restore(),++Q<W.length?g(W[Q]):G}}}function j(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 O(){const V=m(),R=u.previous,K=u.currentConstruct,z=u.events.length,N=Array.from(a);return{from:z,restore:G};function G(){r=V,u.previous=R,u.currentConstruct=K,u.events.length=z,a=N,F()}}function F(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ex(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 Ax(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
17
|
`;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 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:x,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 x(){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
|
|
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
|
|
18
|
+
`;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 Ix(e){const r={constructs:Wg([Cx,...(e||{}).extensions||[]]),content:i(Jg),defined:[],document:i(ty),flow:i(bx),lazy:{},string:i(kx),text:i(Sx)};return r;function i(o){return s;function s(a){return Px(r,o,a)}}}function jx(e){for(;!xu(e););return e}const Pu=/[\0\t\n\r]/g;function Dx(){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(Pu.lastIndex=f,u=Pu.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 Mx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nx(e){return e.replace(Mx,Lx)}function Lx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return uu(n.slice(o?2:1),o?16:10)}return ji(n)||e}const Eu={}.hasOwnProperty;function Vx(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Rx(n)(jx(Ix(n).document().write(Dx()(e,t,!0))))}function Rx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(mc),autolinkProtocol:O,autolinkEmail:O,atxHeading:o(dc),blockQuote:o(Xe),characterEscape:O,characterReference:O,codeFenced:o(_n),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(_n,s),codeText:o(Ob,s),codeTextData:O,data:O,codeFlowValue:O,definition:o(Fb),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(zb),hardBreakEscape:o(hc),hardBreakTrailing:o(hc),htmlFlow:o(pc,s),htmlFlowData:O,htmlText:o(pc,s),htmlTextData:O,image:o(Bb),label:s,link:o(mc),listItem:o(_b),listItemValue:d,listOrdered:o(gc,f),listUnordered:o(gc),paragraph:o($b),reference:g,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(dc),strong:o(Ub),thematicBreak:o(Wb)},exit:{atxHeading:l(),atxHeadingSequence:P,autolink:l(),autolinkEmail:Fe,autolinkProtocol:ge,blockQuote:l(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:oe,characterReference:te,codeFenced:l(v),codeFencedFence:p,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:F,codeIndented:l(x),codeText:l(N),codeTextData:F,data:F,definition:l(),definitionDestinationString:E,definitionLabelString:S,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(K),htmlFlowData:F,htmlText:l(z),htmlTextData:F,image:l(W),label:le,labelText:Q,lineEnding:V,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:X,resourceDestinationString:b,resourceTitleString:C,resource:_,setextHeading:l(j),setextHeadingLineSequence:D,setextHeadingText:k,strong:l(),thematicBreak:l()}};Au(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let M={type:"root",children:[]};const U={stack:[M],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]];Eu.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]||Iu).call(U,void 0,Ne[0])}for(M.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;)M=t.transforms[Z](M)||M;return M}function i(T,M,U){let q=M-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[M][1]._spread=Ne,U}function o(T,M){return U;function U(q){a.call(this,T(q),q),M&&M.call(this,q)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(T,M,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([M,U||void 0]),T.position={start:Ke(M.start),end:void 0}}function l(T){return M;function M(U){T&&T.call(this,U),u.call(this,U)}}function u(T,M){const U=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==T.type&&(M?M.call(this,T,q[0]):(q[1]||Iu).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 Ug(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(T){if(this.data.expectingFirstListItemValue){const M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function h(){const T=this.resume(),M=this.stack[this.stack.length-1];M.lang=T}function m(){const T=this.resume(),M=this.stack[this.stack.length-1];M.meta=T}function p(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const T=this.resume(),M=this.stack[this.stack.length-1];M.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const T=this.resume(),M=this.stack[this.stack.length-1];M.value=T.replace(/(\r?\n|\r)$/g,"")}function S(T){const M=this.resume(),U=this.stack[this.stack.length-1];U.label=M,U.identifier=kt(this.sliceSerialize(T)).toLowerCase()}function w(){const T=this.resume(),M=this.stack[this.stack.length-1];M.title=T}function E(){const T=this.resume(),M=this.stack[this.stack.length-1];M.url=T}function P(T){const M=this.stack[this.stack.length-1];if(!M.depth){const U=this.sliceSerialize(T).length;M.depth=U}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function D(T){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function j(){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=Hb(),q.position={start:Ke(T.start),end:void 0},U.push(q)),this.stack.push(q)}function F(T){const M=this.stack.pop();M.value+=this.sliceSerialize(T),M.position.end=Ke(T.end)}function V(T){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=M.children[M.children.length-1];U.position.end=Ke(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(O.call(this,T),F.call(this,T))}function R(){this.data.atHardBreak=!0}function K(){const T=this.resume(),M=this.stack[this.stack.length-1];M.value=T}function z(){const T=this.resume(),M=this.stack[this.stack.length-1];M.value=T}function N(){const T=this.resume(),M=this.stack[this.stack.length-1];M.value=T}function G(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=M,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 M=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=M,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function Q(T){const M=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=Nx(M),U.identifier=kt(M).toLowerCase()}function le(){const T=this.stack[this.stack.length-1],M=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=M}function b(){const T=this.resume(),M=this.stack[this.stack.length-1];M.url=T}function C(){const T=this.resume(),M=this.stack[this.stack.length-1];M.title=T}function _(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function X(T){const M=this.resume(),U=this.stack[this.stack.length-1];U.label=M,U.identifier=kt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function Ie(T){this.data.characterReferenceType=T.type}function oe(T){const M=this.sliceSerialize(T),U=this.data.characterReferenceType;let q;U?(q=uu(M,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=ji(M);const Z=this.stack[this.stack.length-1];Z.value+=q}function te(T){const M=this.stack.pop();M.position.end=Ke(T.end)}function ge(T){F.call(this,T);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(T)}function Fe(T){F.call(this,T);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(T)}function Xe(){return{type:"blockquote",children:[]}}function _n(){return{type:"code",lang:null,meta:null,value:""}}function Ob(){return{type:"inlineCode",value:""}}function Fb(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zb(){return{type:"emphasis",children:[]}}function dc(){return{type:"heading",depth:0,children:[]}}function hc(){return{type:"break"}}function pc(){return{type:"html",value:""}}function Bb(){return{type:"image",title:null,url:"",alt:null}}function mc(){return{type:"link",title:null,url:"",children:[]}}function gc(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function _b(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function $b(){return{type:"paragraph",children:[]}}function Ub(){return{type:"strong",children:[]}}function Hb(){return{type:"text",value:""}}function Wb(){return{type:"thematicBreak"}}}function Ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Au(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Au(e,r):Ox(e,r)}}function Ox(e,t){let n;for(n in t)if(Eu.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 Iu(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 Fx(e){const t=this;t.parser=n;function n(r){return Vx(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zx(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 Bx(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
19
|
+
`}]}function _x(e,t){const n=t.value?t.value+`
|
|
20
|
+
`:"",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 $x(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ux(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hx(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 Wx(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 qx(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ju(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 Gx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ju(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 Yx(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 Kx(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 Xx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ju(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 Qx(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 Zx(e,t,n){const r=e.all(t),i=n?Jx(n):Du(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
21
|
`}),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
|
|
22
|
+
`});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function Jx(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=Du(n[r])}return t}function Du(e){const t=e.spread;return t??e.children.length>1}function e0(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 t0(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function n0(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function r0(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function i0(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=Ti(t.children[1]),l=Ql(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function o0(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 m={type:"element",tagName:o,properties:d,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function s0(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Mu=9,Nu=32;function a0(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Lu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Lu(t.slice(i),i>0,!1)),o.join("")}function Lu(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Mu||o===Nu;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Mu||o===Nu;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function l0(e,t){const n={type:"text",value:a0(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function u0(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const c0={blockquote:zx,break:Bx,code:_x,delete:$x,emphasis:Ux,footnoteReference:Hx,heading:Wx,html:qx,imageReference:Gx,image:Yx,inlineCode:Kx,linkReference:Xx,link:Qx,listItem:Zx,list:e0,paragraph:t0,root:n0,strong:r0,table:i0,tableCell:s0,tableRow:o0,text:l0,thematicBreak:u0,toml:Mn,yaml:Mn,definition:Mn,footnoteDefinition:Mn};function Mn(){}const Vu=-1,Nn=0,en=1,Ln=2,Fi=3,zi=4,Bi=5,_i=6,Ru=7,Ou=8,Fu=typeof self=="object"?self:globalThis,f0=(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 Nn:case Vu:return n(s,i);case en:{const a=n([],i);for(const l of s)a.push(r(l));return a}case Ln:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case Fi:return n(new Date(s),i);case zi:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case Bi:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case _i:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case Ru:{const{name:a,message:l}=s;return n(new Fu[a](l),i)}case Ou: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 Fu[o](s),i)};return r},zu=e=>f0(new Map,e)(0),Tt="",{toString:d0}={},{keys:h0}=Object,tn=e=>{const t=typeof e;if(t!=="object"||!e)return[Nn,t];const n=d0.call(e).slice(8,-1);switch(n){case"Array":return[en,Tt];case"Object":return[Ln,Tt];case"Date":return[Fi,Tt];case"RegExp":return[zi,Tt];case"Map":return[Bi,Tt];case"Set":return[_i,Tt];case"DataView":return[en,n]}return n.includes("Array")?[en,n]:n.includes("Error")?[Ru,n]:[Ln,n]},Vn=([e,t])=>e===Nn&&(t==="function"||t==="symbol"),p0=(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 Nn:{let c=s;switch(l){case"bigint":a=Ou,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Vu],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 Ln:{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 h0(s))(e||!Vn(tn(s[d])))&&c.push([o(d),o(s[d])]);return f}case Fi:return i([a,s.toISOString()],s);case zi:{const{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case Bi:{const c=[],f=i([a,c],s);for(const[d,h]of s)(e||!(Vn(tn(d))||Vn(tn(h))))&&c.push([o(d),o(h)]);return f}case _i:{const c=[],f=i([a,c],s);for(const d of s)(e||!Vn(tn(d)))&&c.push(o(d));return f}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},Bu=(e,{json:t,lossy:n}={})=>{const r=[];return p0(!(t||n),!!t,new Map,r)(e),r},Rn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zu(Bu(e,t)):structuredClone(e):(e,t)=>zu(Bu(e,t));function m0(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 g0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function y0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||m0,r=e.options.footnoteBackLabel||g0,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 m=[],p=e.footnoteCounts.get(f);for(;p!==void 0&&++h<=p;){m.length>0&&m.push({type:"text",value:" "});let S=typeof n=="string"?n:n(l,h);typeof S=="string"&&(S={type:"text",value:S}),m.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(...m)}else c.push(...m);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Rn(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
15
23
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
16
|
-
`}]}}const
|
|
24
|
+
`}]}}const $i=(function(e){if(e==null)return w0;if(typeof e=="function")return On(e);if(typeof e=="object")return Array.isArray(e)?x0(e):b0(e);if(typeof e=="string")return v0(e);throw new Error("Expected function, string, or object as test")});function x0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=$i(e[n]);return On(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function b0(e){const t=e;return On(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function v0(e){return On(t);function t(n){return n&&n.type===e}}function On(e){return t;function t(n,r,i){return!!(k0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function w0(){return!0}function k0(e){return e!==null&&typeof e=="object"&&"type"in e}function uv(e){return e}const _u=[],S0=!0,$u=!1,T0="skip";function Uu(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=$i(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=_u,m,p,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=C0(n(l,c)),h[0]===$u))return h;if("children"in l&&l.children){const x=l;if(x.children&&h[0]!==T0)for(p=(r?x.children.length:-1)+s,v=c.concat(x);p>-1&&p<x.children.length;){const S=x.children[p];if(m=a(S,p,v)(),m[0]===$u)return m;p=typeof m[1]=="number"?m[1]:p+s}}return h}}}function C0(e){return Array.isArray(e)?e:typeof e=="number"?[S0,e]:e==null?_u:[e]}function Hu(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),Uu(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 Ui={}.hasOwnProperty,P0={};function E0(e,t){const n=t||P0,r=new Map,i=new Map,o=new Map,s={...c0,...n.handlers},a={all:u,applyData:I0,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:A0,wrap:D0};return Hu(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(Ui.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:p,...v}=c,x=Rn(v);return x.children=a.all(c),x}return Rn(c)}return(a.options.unknownHandler||j0)(a,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const m=a.one(d[h],c);if(m){if(h&&d[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Wu(m.value)),!Array.isArray(m)&&m.type==="element")){const p=m.children[0];p&&p.type==="text"&&(p.value=Wu(p.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function A0(e,t){e.position&&(t.position=wg(e))}function I0(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,Rn(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function j0(e,t){const n=t.data||{},r="value"in t&&!(Ui.call(n,"hProperties")||Ui.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 D0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
17
25
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
18
26
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
19
|
-
`}),n}function
|
|
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,x,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,x=f&&i(f)?f:[]):x=f&&o(f)?f:{},s(m,{name:c,newValue:l(S,x,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,x=r.stringify(h,d);B0(x)?d.value=x:d.result=x,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,...x]=c;const m=r[d][1];_i(m)&&_i(h)&&(h=zi(!0,m,h)),r[d]=[u,h,...x]}}}}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),x=new _u;typeof r=="string"&&(x.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(x);let v=h.runSync(m,x);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),Ru(v,g),hg(v,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.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],x=d?d.children:void 0;if(i(h,x?x.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 x=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:(x!==P&&S.push({type:"text",value:u.value.slice(x,P)}),Array.isArray(k)?S.push(...k):k&&S.push(k),x=P+w[0].length,g=!0),!d.global)break;w=d.exec(u.value)}return g?(x<u.value.length&&S.push({type:"text",value:u.value.slice(x)}),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})=>b.jsx("section",{className:`feature-split-section ${o} image-${i} ${l?"theme-inverted":""}`,children:b.jsxs("div",{className:"feature-split-container",children:[b.jsxs("div",{className:"feature-split-content",children:[b.jsx("div",{className:"section-title feature-split-title",children:e}),t&&b.jsx("div",{className:"feature-split-description",children:b.jsx(Rn,{remarkPlugins:[On],children:t})}),n&&n.length>0&&b.jsx("div",{className:"feature-split-list",children:n.map((u,c)=>b.jsxs("div",{className:"feature-split-item",children:[u.icon&&b.jsx("div",{className:"feature-split-icon-wrapper",children:b.jsx(fe,{icon:u.icon,width:"24",height:"24"})}),b.jsxs("div",{children:[b.jsx("h3",{className:"card-title feature-split-item-title",children:u.title}),b.jsx("div",{className:"feature-split-item-description",children:b.jsx(Rn,{remarkPlugins:[On],children:u.description})})]})]},c))}),s&&a&&b.jsx("div",{className:"feature-split-actions",children:b.jsx("button",{onClick:()=>window.location.href=a,children:s})})]}),b.jsx("div",{className:"feature-split-image-wrapper",children:b.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})=>b.jsx("section",{className:`content-block-section ${s?"theme-inverted":""} ${i}`,children:b.jsxs("div",{className:"content-block-container",children:[b.jsxs("div",{className:"content-block-header",children:[e&&b.jsx("div",{className:"section-title content-block-title",children:e}),t&&b.jsx("div",{className:"section-subtitle content-block-subtitle",children:t})]}),o&&b.jsxs("div",{className:"content-block-featured-image",children:[b.jsx("img",{src:o.imageSrc,alt:o.alt}),o.caption&&b.jsx("figcaption",{children:o.caption})]}),b.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?b.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):b.jsx(Rn,{remarkPlugins:[On],children:n||""})})]})}),Xi=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:o="",inverted:s=!1})=>b.jsx(Xn,{hoverable:!0,elevation:"sm",className:`feature-card ${o}`,inverted:s,children:b.jsxs("div",{className:"feature-card-content",children:[e&&b.jsx("div",{className:"feature-icon-wrapper",children:b.jsx(fe,{icon:e,width:"24",height:"24"})}),b.jsx("h3",{className:"card-title feature-title",children:t}),b.jsx("div",{className:"card-description feature-description",children:b.jsx(Rn,{remarkPlugins:[On],children:n})}),r&&(r.startsWith("http")?b.jsxs("a",{href:r,className:"feature-link",target:"_blank",rel:"noopener noreferrer",children:[i," ",b.jsx("span",{children:"→"})]}):b.jsxs(Bn.Link,{to:r,className:"feature-link",children:[i," ",b.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 b.jsx("section",{className:`features-section ${a?"theme-inverted":""} ${i}`,children:b.jsxs("div",{className:"features-container",children:[b.jsxs("div",{className:"features-header",children:[b.jsx("div",{className:"section-title features-title",children:e}),t&&b.jsx("div",{className:"section-subtitle features-subtitle",children:t})]}),b.jsxs("div",{className:"features-grid",style:l,children:[r,n&&n.map((u,c)=>b.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 b.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(),x=j.useRef(null),m=j.useRef(null),v=d===c,g=v;j.useEffect(()=>{const w=P=>{x.current&&!x.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=>{w.stopPropagation(),l&&(w.preventDefault(),h(v?null:c))};return b.jsxs("div",{ref:x,className:"menu",children:[(t||n)&&b.jsx(b.Fragment,{children:u?b.jsxs("a",{href:u,onClick:S,className:`menu-title ${s} ${v?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":g,children:[n&&r==="left"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]}):b.jsxs("button",{onClick:S,className:`menu-title ${s} ${v?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":g,children:[n&&r==="left"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]})}),b.jsx("div",{ref:m,className:`menu-dropdown ${a} ${g?"show":""}`,onClick:()=>h(null),children:l})]})},Qu=({items:e,className:t=""})=>b.jsx("section",{className:`stats-section ${t}`,children:b.jsx("div",{className:"stats-container",children:b.jsx("div",{className:"stats-grid",children:e.map((n,r)=>b.jsxs("div",{className:"stat-item",children:[b.jsx("span",{className:"stat-value",children:n.value}),b.jsx("span",{className:"stat-label",children:n.label}),n.description&&b.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 b.jsx("section",{className:`cta-section ${s?"theme-inverted":""}`,style:a,children:b.jsxs("div",{className:`cta-container ${i}`,children:[b.jsx("h2",{className:"section-title cta-title",children:e}),t&&b.jsx("p",{className:"section-subtitle cta-description",children:t}),n&&b.jsx("div",{className:"cta-actions btn btn-outline",children:n&&b.jsx("button",{onClick:r,children:n})})]})})},Ju=({title:e,subtitle:t,items:n,className:r=""})=>b.jsx("section",{className:`testimonials-section ${r}`,children:b.jsxs("div",{className:"testimonials-container",children:[b.jsxs("div",{className:"testimonials-header",children:[b.jsx("h2",{className:"section-title testimonials-title",children:e}),t&&b.jsx("p",{className:"section-subtitle testimonials-subtitle",children:t})]}),b.jsx("div",{className:"testimonials-grid",children:n.map(i=>b.jsx(Xn,{elevation:"sm",className:"testimonial-card",children:b.jsxs("div",{className:"testimonial-card-content",children:[b.jsx("div",{className:"testimonial-stars",children:[...Array(i.rating||5)].map((o,s)=>b.jsx(fe,{icon:"mdi:star",width:"20",height:"20"},s))}),b.jsxs("blockquote",{className:"testimonial-quote",children:['"',i.quote,'"']}),b.jsxs("div",{className:"testimonial-author",children:[i.imageSrc?b.jsx("img",{src:i.imageSrc,alt:i.name,className:"testimonial-avatar"}):b.jsx("div",{className:"testimonial-avatar-placeholder",children:i.name.charAt(0)}),b.jsxs("div",{className:"testimonial-author-info",children:[b.jsx("span",{className:"testimonial-name",children:i.name}),b.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 x=d?.label||d?.value||c||"";return s&&h&&(x=""),b.jsx(Qi,{id:o,title:x,icon:h,className:`${r||""}`,itemGroupClassName:"select-options-group",children:e.map(m=>b.jsxs("div",{className:`select-option ${m.value===c?"selected":""} ${r}`,onClick:()=>f(m),role:"option","aria-selected":m.value===c,children:[m.icon&&b.jsx("span",{className:"option-icon",children:b.jsx(fe,{icon:m.icon})}),m.label&&b.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 b.jsx(b.Fragment,{children:e.map((m,v)=>b.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 x=m=>{if(m){if(Array.isArray(m))return m.map((v,g)=>v&&typeof v=="object"&&v.type?b.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 b.jsx(Ct,{config:m,handlers:n,onError:r},v)}return m}};if(s!==void 0)if(i==="Header"){const m=x(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=x(s);m&&(h.children=m)}else if(i==="Dropdown"){const m=x(s);h.children=m}else h.children=x(s);if(o?.items&&Array.isArray(o.items)&&(h.items=o.items.map((m,v)=>m&&typeof m=="object"&&m.type?b.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=b.jsx(Ct,{config:o.embeddedView,handlers:n,onError:r},m)}try{return b.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),b.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,poweredBy:o,poweredByLink:s,copyright:a,inverted:l=!1,className:u=""})=>{const c=`footer ${l?"theme-inverted":""} ${u}`.trim(),f=()=>!e&&!t?null:b.jsxs("div",{className:"footer-logo-container",children:[e&&b.jsx("img",{src:e,alt:t||"Logo",className:"footer-logo-img"}),t&&b.jsx("span",{className:"footer-company-name",children:t})]});return b.jsx("footer",{className:c,children:b.jsxs("div",{className:"footer-container",children:[b.jsxs("div",{className:"footer-grid",children:[b.jsxs("div",{className:"footer-brand",children:[b.jsx("div",{className:"footer-logo",children:f()}),n&&b.jsx("p",{className:"footer-description",children:n}),i&&b.jsx("div",{className:"footer-social",children:i.map((d,h)=>b.jsx("a",{href:d.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:b.jsx(fe,{icon:d.icon,width:"24",height:"24"})},h))})]}),r.map((d,h)=>b.jsxs("div",{className:"footer-column",children:[b.jsx("h4",{className:"footer-column-title",children:d.title}),b.jsx("div",{className:"footer-links",children:d.links.map((x,m)=>x.href.startsWith("http")?b.jsx("a",{href:x.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:x.label},m):b.jsx(Bn.Link,{to:x.href,className:"footer-link",children:x.label},m))})]},h))]}),b.jsx("div",{className:"footer-bottom",children:b.jsxs("div",{className:"footer-copyright",children:[b.jsx("span",{children:a||`© ${new Date().getFullYear()} Company Name. All rights reserved.`}),o&&b.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"footer-powered-by",children:o})]})})]})})},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 b.jsx("section",{className:`accordion-section ${r}`,children:b.jsxs("div",{className:"accordion-container",children:[(e||t)&&b.jsxs("div",{className:"accordion-header-section",children:[e&&b.jsx("h2",{className:"accordion-title",children:e}),t&&b.jsx("p",{className:"accordion-subtitle",children:t})]}),b.jsx("div",{className:"accordion-list",children:n.map(u=>{const c=o.has(u.id);return b.jsxs("div",{className:`accordion-item ${c?"open":""}`,children:[b.jsxs("button",{className:"accordion-trigger",onClick:f=>{f.stopPropagation(),l(u.id)},"aria-expanded":c,"aria-controls":`content-${u.id}`,children:[b.jsx("span",{className:"accordion-item-title",children:u.title}),b.jsx(fe,{icon:"mdi:chevron-down",width:"24",height:"24",className:`accordion-icon ${c?"rotate":""}`})]}),b.jsx("div",{id:`content-${u.id}`,className:"accordion-content",style:{height:c?a.current[u.id]?.scrollHeight:0},children:b.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,x)=>{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,...x}).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"})}));
|
|
27
|
+
`}),n}function Wu(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function qu(e,t){const n=E0(e,t),r=n.one(e,void 0),i=y0(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
28
|
+
`},i),o}function M0(e,t){return e&&"run"in e?async function(n,r){const i=qu(n,{file:r,...t});await e.run(i,r)}:function(n,r){return qu(n,{file:r,...e||t})}}function Gu(e){if(e)throw e}var Hi,Yu;function N0(){if(Yu)return Hi;Yu=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 Hi=function l(){var u,c,f,d,h,m,p=arguments[0],v=1,x=arguments.length,S=!1;for(typeof p=="boolean"&&(S=p,p=arguments[1]||{},v=2),(p==null||typeof p!="object"&&typeof p!="function")&&(p={});v<x;++v)if(u=arguments[v],u!=null)for(c in u)f=a(p,c),d=a(u,c),p!==d&&(S&&d&&(o(d)||(h=i(d)))?(h?(h=!1,m=f&&i(f)?f:[]):m=f&&o(f)?f:{},s(p,{name:c,newValue:l(S,m,d)})):typeof d<"u"&&s(p,{name:c,newValue:d}));return p},Hi}var L0=N0();const Wi=oo(L0);function qi(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 V0(){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?R0(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 R0(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:O0,dirname:F0,extname:z0,join:B0,sep:"/"};function O0(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 F0(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 z0(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 B0(...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?".":_0(n)}function _0(e){nn(e);const t=e.codePointAt(0)===47;let n=$0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function $0(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 U0={cwd:H0};function H0(){return"/"}function Gi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function W0(e){if(typeof e=="string")e=new URL(e);else if(!Gi(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 q0(e)}function q0(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 Yi=["history","path","basename","stem","extname","dirname"];class Ku{constructor(t){let n;t?Gi(t)?n={path:t}:typeof t=="string"||G0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":U0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Yi.length;){const o=Yi[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)Yi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Oe.basename(this.path):void 0}set basename(t){Xi(t,"basename"),Ki(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){Xu(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(Ki(t,"extname"),Xu(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){Gi(t)&&(t=W0(t)),Xi(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){Xi(t,"stem"),Ki(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 Ki(e,t){if(e&&e.includes(Oe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Oe.sep+"`")}function Xi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Xu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function G0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Y0=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),K0={}.hasOwnProperty;class Qi extends Y0{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=V0()}copy(){const t=new Qi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Wi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(eo("data",this.frozen),this.namespace[t]=n,this):K0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(eo("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=Fn(t),r=this.parser||this.Parser;return Zi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Zi("process",this.parser||this.Parser),Ji("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Fn(t),l=r.parse(a);r.run(l,a,function(c,f,d){if(c||!f||!d)return u(c);const h=f,m=r.stringify(h,d);Z0(m)?d.value=m:d.result=m,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(),Zi("processSync",this.parser||this.Parser),Ji("processSync",this.compiler||this.Compiler),this.process(t,i),Zu("processSync","process",n),r;function i(o,s){n=!0,Gu(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=Fn(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),Zu("runSync","run",r),i;function o(s,a){Gu(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Fn(n),i=this.compiler||this.Compiler;return Ji("stringify",i),Qu(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(eo("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=Wi(!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,...m]=c;const p=r[d][1];qi(p)&&qi(h)&&(h=Wi(!0,p,h)),r[d]=[u,h,...m]}}}}const X0=new Qi().freeze();function Zi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ji(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eo(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(!qi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fn(e){return Q0(e)?e:new Ku(e)}function Q0(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Z0(e){return typeof e=="string"||J0(e)}function J0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const eb="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ju=[],ec={allowDangerousHtml:!0},tb=/^(https?|ircs?|mailto|xmpp)$/i,nb=[{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 zn(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,o=e.components,s=e.disallowedElements,a=e.rehypePlugins||Ju,l=e.remarkPlugins||Ju,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ec}:ec,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||rb,h=X0().use(Fx).use(l).use(M0,u).use(a),m=new Ku;typeof r=="string"&&(m.value=r);for(const S of nb)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+eb+S.id,void 0);const p=h.parse(m);let v=h.runSync(p,m);return i&&(v={type:"element",tagName:"div",properties:{className:i},children:v.type==="root"?v.children:[v]}),Hu(v,x),Pg(v,{Fragment:y.Fragment,components:o,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.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 Ii)if(Object.hasOwn(Ii,P)&&Object.hasOwn(S.properties,P)){const k=S.properties[P],D=Ii[P];(D===null||D.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 rb(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||tb.test(e.slice(0,t))?e:""}function ib(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ob(e,t,n){const i=$i({}.ignore||[]),o=sb(t);let s=-1;for(;++s<o.length;)Uu(e,"text",a);function a(u,c){let f=-1,d;for(;++f<c.length;){const h=c[f],m=d?d.children:void 0;if(i(h,m?m.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 m=0;const v=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:(m!==E&&S.push({type:"text",value:u.value.slice(m,E)}),Array.isArray(k)?S.push(...k):k&&S.push(k),m=E+w[0].length,x=!0),!d.global)break;w=d.exec(u.value)}return x?(m<u.value.length&&S.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...S)):S=[u],v+S.length}}function sb(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([ab(i[0]),lb(i[1])])}return t}function ab(e){return typeof e=="string"?new RegExp(ib(e),"g"):e}function lb(e){return typeof e=="function"?e:function(){return e}}function ub(e){ob(e,[/\r?\n|\r/g,cb])}function cb(){return{type:"break"}}function Bn(){return function(e){ub(e)}}const tc=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:o="",actionLabel:s,href:a,inverted:l=!1})=>y.jsx("section",{className:`feature-split-section ${o} image-${i} ${l?"theme-inverted":""}`,children:y.jsxs("div",{className:"feature-split-container",children:[y.jsxs("div",{className:"feature-split-content",children:[y.jsx("div",{className:"section-title feature-split-title",children:e}),t&&y.jsx("div",{className:"feature-split-description",children:y.jsx(zn,{remarkPlugins:[Bn],children:t})}),n&&n.length>0&&y.jsx("div",{className:"feature-split-list",children:n.map((u,c)=>y.jsxs("div",{className:"feature-split-item",children:[u.icon&&y.jsx("div",{className:"feature-split-icon-wrapper",children:y.jsx(fe,{icon:u.icon,width:"24",height:"24"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"card-title feature-split-item-title",children:u.title}),y.jsx("div",{className:"feature-split-item-description",children:y.jsx(zn,{remarkPlugins:[Bn],children:u.description})})]})]},c))}),s&&a&&y.jsx("div",{className:"feature-split-actions",children:y.jsx("button",{onClick:()=>window.location.href=a,children:s})})]}),y.jsx("div",{className:"feature-split-image-wrapper",children:y.jsx("img",{src:r.imageSrc,alt:r.alt,className:"feature-split-image"})})]})}),nc=({title:e,subtitle:t,content:n,format:r="markdown",className:i="",image:o,inverted:s=!1})=>y.jsx("section",{className:`content-block-section ${s?"theme-inverted":""} ${i}`,children:y.jsxs("div",{className:"content-block-container",children:[y.jsxs("div",{className:"content-block-header",children:[e&&y.jsx("div",{className:"section-title content-block-title",children:e}),t&&y.jsx("div",{className:"section-subtitle content-block-subtitle",children:t})]}),o&&y.jsxs("div",{className:"content-block-featured-image",children:[y.jsx("img",{src:o.imageSrc,alt:o.alt}),o.caption&&y.jsx("figcaption",{children:o.caption})]}),y.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?y.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):y.jsx(zn,{remarkPlugins:[Bn],children:n||""})})]})}),to=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:o="",inverted:s=!1})=>y.jsx(Jn,{hoverable:!0,elevation:"sm",className:`feature-card ${o}`,inverted:s,children:y.jsxs("div",{className:"feature-card-content",children:[e&&y.jsx("div",{className:"feature-icon-wrapper",children:y.jsx(fe,{icon:e,width:"24",height:"24"})}),y.jsx("h3",{className:"card-title feature-title",children:t}),y.jsx("div",{className:"card-description feature-description",children:y.jsx(zn,{remarkPlugins:[Bn],children:n})}),r&&(r.startsWith("http")?y.jsxs("a",{href:r,className:"feature-link",target:"_blank",rel:"noopener noreferrer",children:[i," ",y.jsx("span",{children:"→"})]}):y.jsxs($n.Link,{to:r,className:"feature-link",children:[i," ",y.jsx("span",{children:"→"})]}))]})}),rc=({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 y.jsx("section",{className:`features-section ${a?"theme-inverted":""} ${i}`,children:y.jsxs("div",{className:"features-container",children:[y.jsxs("div",{className:"features-header",children:[y.jsx("div",{className:"section-title features-title",children:e}),t&&y.jsx("div",{className:"section-subtitle features-subtitle",children:t})]}),y.jsxs("div",{className:"features-grid",style:l,children:[r,n&&n.map((u,c)=>y.jsx(to,{...u,actionLabel:s,inverted:a},c))]})]})})},ic=A.createContext(void 0),fb=()=>{const e=A.useContext(ic);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},db=({children:e})=>{const[t,n]=A.useState(null);return y.jsx(ic.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},no=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}=fb(),m=A.useRef(null),p=A.useRef(null),v=d===c,x=v;A.useEffect(()=>{const w=E=>{m.current&&!m.current.contains(E.target)&&d===c&&h(null)};return x&&document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[x,d,c,h]);const S=w=>{w.stopPropagation(),l&&(w.preventDefault(),h(v?null:c))};return y.jsxs("div",{ref:m,className:"menu",children:[(t||n)&&y.jsx(y.Fragment,{children:u?y.jsxs("a",{href:u,onClick:S,className:`menu-title ${s} ${v?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":x,children:[n&&r==="left"&&y.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&y.jsx("span",{children:t}),n&&r==="right"&&y.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&y.jsx("span",{className:"arrow",children:x?"▲":"▼"})]}):y.jsxs("button",{onClick:S,className:`menu-title ${s} ${v?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":x,children:[n&&r==="left"&&y.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-left"}),t&&y.jsx("span",{children:t}),n&&r==="right"&&y.jsx(fe,{icon:n,style:{width:i,height:i,color:o},className:"icon-right"}),l&&y.jsx("span",{className:"arrow",children:x?"▲":"▼"})]})}),y.jsx("div",{ref:p,className:`menu-dropdown ${a} ${x?"show":""}`,onClick:()=>h(null),children:l})]})},oc=({items:e,className:t=""})=>y.jsx("section",{className:`stats-section ${t}`,children:y.jsx("div",{className:"stats-container",children:y.jsx("div",{className:"stats-grid",children:e.map((n,r)=>y.jsxs("div",{className:"stat-item",children:[y.jsx("span",{className:"stat-value",children:n.value}),y.jsx("span",{className:"stat-label",children:n.label}),n.description&&y.jsx("span",{className:"stat-description",children:n.description})]},r))})})}),sc=({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 y.jsx("section",{className:`cta-section ${s?"theme-inverted":""}`,style:a,children:y.jsxs("div",{className:`cta-container ${i}`,children:[y.jsx("h2",{className:"section-title cta-title",children:e}),t&&y.jsx("p",{className:"section-subtitle cta-description",children:t}),n&&y.jsx("div",{className:"cta-actions btn btn-outline",children:n&&y.jsx("button",{onClick:r,children:n})})]})})},ac=({title:e,subtitle:t,items:n,className:r=""})=>y.jsx("section",{className:`testimonials-section ${r}`,children:y.jsxs("div",{className:"testimonials-container",children:[y.jsxs("div",{className:"testimonials-header",children:[y.jsx("h2",{className:"section-title testimonials-title",children:e}),t&&y.jsx("p",{className:"section-subtitle testimonials-subtitle",children:t})]}),y.jsx("div",{className:"testimonials-grid",children:n.map(i=>y.jsx(Jn,{elevation:"sm",className:"testimonial-card",children:y.jsxs("div",{className:"testimonial-card-content",children:[y.jsx("div",{className:"testimonial-stars",children:[...Array(i.rating||5)].map((o,s)=>y.jsx(fe,{icon:"mdi:star",width:"20",height:"20"},s))}),y.jsxs("blockquote",{className:"testimonial-quote",children:['"',i.quote,'"']}),y.jsxs("div",{className:"testimonial-author",children:[i.imageSrc?y.jsx("img",{src:i.imageSrc,alt:i.name,className:"testimonial-avatar"}):y.jsx("div",{className:"testimonial-avatar-placeholder",children:i.name.charAt(0)}),y.jsxs("div",{className:"testimonial-author-info",children:[y.jsx("span",{className:"testimonial-name",children:i.name}),y.jsxs("span",{className:"testimonial-role",children:[i.role," ",i.company&&`at ${i.company}`]})]})]})]})},i.id))})]})}),lc=({options:e=[],value:t,defaultValue:n,className:r,icon:i,id:o,hideSelectedLabel:s=!1})=>{const[a,l]=A.useState(n),u=t!==void 0,c=u?t:a,f=p=>{u||l(p.value),p.onClick?.()},d=e.find(p=>p.value===c),h=d?.icon||i;let m=d?.label||d?.value||c||"";return s&&h&&(m=""),y.jsx(no,{id:o,title:m,icon:h,className:`${r||""}`,itemGroupClassName:"select-options-group",children:e.map(p=>y.jsxs("div",{className:`select-option ${p.value===c?"selected":""} ${r}`,onClick:()=>f(p),role:"option","aria-selected":p.value===c,children:[p.icon&&y.jsx("span",{className:"option-icon",children:y.jsx(fe,{icon:p.icon})}),p.label&&y.jsx("span",{className:`option-label ${r}`,children:p.label})]},p.value))})},uc=({children:e,autoPlay:t=!0,interval:n=5e3,className:r="",showArrows:i=!0,showIndicators:o=!0})=>{const[s,a]=A.useState(0),[l,u]=A.useState(0),c=A.useCallback(()=>{u(1),a(m=>(m+1)%e.length)},[e.length]),f=()=>{u(-1),a(m=>(m-1+e.length)%e.length)},d=m=>{u(m>s?1:-1),a(m)};A.useEffect(()=>{if(!t)return;const m=setInterval(c,n);return()=>clearInterval(m)},[t,n,c]);const h={enter:m=>({x:m>0?1e3:-1e3,opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:m=>({zIndex:0,x:m<0?1e3:-1e3,opacity:0})};return!e||e.length===0?null:y.jsxs("div",{className:`carousel-container ${r}`,children:[y.jsx(Sh,{initial:!1,custom:l,mode:"wait",children:y.jsx(xe.div,{custom:l,variants:h,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},style:{width:"100%",height:"100%"},children:e[s]},s)}),i&&e.length>1&&y.jsxs(y.Fragment,{children:[y.jsx("button",{className:"carousel-nav-btn carousel-prev",onClick:f,"aria-label":"Previous Slide",children:"❮"}),y.jsx("button",{className:"carousel-nav-btn carousel-next",onClick:c,"aria-label":"Next Slide",children:"❯"})]}),o&&e.length>1&&y.jsx("div",{className:"carousel-indicators",children:e.map((m,p)=>y.jsx("button",{className:`carousel-dot ${p===s?"active":""}`,onClick:()=>d(p),"aria-label":`Go to slide ${p+1}`},p))})]})},cc={Header:Vo,MenuItem:Dl,MenuGrid:Ml,MenuGridItem:Nl,Dropdown:no,Hero:Ll,IconButton:Vl,FeatureSplit:tc,ContentBlock:nc,FeaturesSection:rc,FeatureItem:to,BentoGrid:Lo,Stats:oc,CTASection:sc,Testimonials:ac,Select:lc,Carousel:uc};let ro={...cc};function hb(e,t){ro[e]=t}function fc(e){return ro[e]}function pb(e){return e in ro}function mb(e){return typeof e=="string"&&e.trim().length>0}const Ct=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return y.jsx(y.Fragment,{children:e.map((p,v)=>y.jsx(Ct,{config:p,className:t,handlers:n,onError:r},p.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(!mb(i)){const p=new Error(`Invalid component type: "${i}"`);return r?.(p,e),console.error(`Invalid component type: "${i}"`),null}if(!pb(i)){const p=new Error(`Component "${i}" is not registered`);return r?.(p,e),console.error(`Component "${i}" is not registered`),null}const c=fc(i);if(!c){const p=new Error(`Failed to load component: "${i}"`);return r?.(p,e),console.error(`Failed to load component: "${i}"`),null}const f=p=>{if(!p||typeof p!="object"||A.isValidElement(p))return p;if(Array.isArray(p))return p.map(x=>f(x));const v={...p};return Object.keys(v).forEach(x=>{const S=v[x];if(typeof S=="string"&&S.startsWith("@action:")){const w=S.replace("@action:","");n&&n[w]&&(v[x]=n[w])}else typeof S=="object"&&S!==null&&(v[x]=f(S))}),v},h={...f(o),...l,id:a||o?.id};t&&(h.className=o?.className?`${o.className} ${t}`:t);const m=p=>{if(p){if(Array.isArray(p))return p.map((v,x)=>v&&typeof v=="object"&&v.type?y.jsx(Ct,{config:v,handlers:n,onError:r},v.id||`child-${x}`):v);if(p&&typeof p=="object"&&p.type){const v=p.id||p.data?.id||p.type;return y.jsx(Ct,{config:p,handlers:n,onError:r},v)}return p}};if(s!==void 0)if(i==="Header"){const p=m(s);if(p&&Array.isArray(p)){const v=p.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])!=="far-item"}),x=p.filter(S=>{const w=S?.props?.config;return(w?.["data-position"]||w?.data?.["data-position"])==="far-item"});h.menuBar=v,h.utilityButtons=x}}else if(i==="MenuGrid"){const p=m(s);p&&(h.children=p)}else if(i==="Dropdown"){const p=m(s);h.children=p}else if(i==="Carousel"){const p=m(s);h.children=p}else h.children=m(s);if(o?.items&&Array.isArray(o.items)&&(h.items=o.items.map((p,v)=>p&&typeof p=="object"&&p.type?y.jsx(Ct,{config:p,handlers:n,onError:r},p.id||`item-${v}`):p)),o?.embeddedView&&typeof o.embeddedView=="object"&&o.embeddedView.type){const p=o.embeddedView.id||o.embeddedView.data?.id||o.embeddedView.type;h.embeddedView=y.jsx(Ct,{config:o.embeddedView,handlers:n,onError:r},p)}try{return y.jsx(c,{...h},u)}catch(p){const v=p instanceof Error?p:new Error("Unknown rendering error");return r?.(v,e),console.error(`Error rendering component "${i}":`,p),y.jsxs("div",{className:"error-boundary",style:{border:"1px solid red",padding:"1rem",color:"red",background:"#fee"},children:["Error rendering ",i,": ",v.message]},u)}},gb=({imageSrc:e,companyName:t,description:n,columns:r,socialLinks:i,poweredBy:o,poweredByLink:s,copyright:a,inverted:l=!1,className:u=""})=>{const c=`footer ${l?"theme-inverted":""} ${u}`.trim(),f=()=>!e&&!t?null:y.jsxs("div",{className:"footer-logo-container",children:[e&&y.jsx("img",{src:e,alt:t||"Logo",className:"footer-logo-img"}),t&&y.jsx("span",{className:"footer-company-name",children:t})]});return y.jsx("footer",{className:c,children:y.jsxs("div",{className:"footer-container",children:[y.jsxs("div",{className:"footer-grid",children:[y.jsxs("div",{className:"footer-brand",children:[y.jsx("div",{className:"footer-logo",children:f()}),n&&y.jsx("p",{className:"footer-description",children:n}),i&&y.jsx("div",{className:"footer-social",children:i.map((d,h)=>y.jsx("a",{href:d.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:y.jsx(fe,{icon:d.icon,width:"24",height:"24"})},h))})]}),r.map((d,h)=>y.jsxs("div",{className:"footer-column",children:[y.jsx("h4",{className:"footer-column-title",children:d.title}),y.jsx("div",{className:"footer-links",children:d.links.map((m,p)=>m.href.startsWith("http")?y.jsx("a",{href:m.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:m.label},p):y.jsx($n.Link,{to:m.href,className:"footer-link",children:m.label},p))})]},h))]}),y.jsx("div",{className:"footer-bottom",children:y.jsxs("div",{className:"footer-copyright",children:[y.jsx("span",{children:a||`© ${new Date().getFullYear()} Company Name. All rights reserved.`}),o&&y.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"footer-powered-by",children:o})]})})]})})},yb=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[o,s]=A.useState(new Set),a=A.useRef({}),l=u=>{s(c=>{const f=new Set(i?c:[]);return c.has(u)?f.delete(u):f.add(u),f})};return y.jsx("section",{className:`accordion-section ${r}`,children:y.jsxs("div",{className:"accordion-container",children:[(e||t)&&y.jsxs("div",{className:"accordion-header-section",children:[e&&y.jsx("h2",{className:"accordion-title",children:e}),t&&y.jsx("p",{className:"accordion-subtitle",children:t})]}),y.jsx("div",{className:"accordion-list",children:n.map(u=>{const c=o.has(u.id);return y.jsxs("div",{className:`accordion-item ${c?"open":""}`,children:[y.jsxs("button",{className:"accordion-trigger",onClick:f=>{f.stopPropagation(),l(u.id)},"aria-expanded":c,"aria-controls":`content-${u.id}`,children:[y.jsx("span",{className:"accordion-item-title",children:u.title}),y.jsx(fe,{icon:"mdi:chevron-down",width:"24",height:"24",className:`accordion-icon ${c?"rotate":""}`})]}),y.jsx("div",{id:`content-${u.id}`,className:"accordion-content",style:{height:c?a.current[u.id]?.scrollHeight:0},children:y.jsx("div",{ref:f=>{a.current[u.id]=f},className:"accordion-content-inner",children:u.content})})]},u.id)})})]})})};let xb;function bb({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[o,s]=A.useState(null),[a,l]=A.useState(r),[u,c]=A.useState(null),f=i||xb,d=async(h,m)=>{if(!f){c("API service not configured"),l(!1);return}const p=h||t;l(!0),c(null);try{const v=new URLSearchParams({story:p,...n,...m}).toString(),x=v?`${e}?${v}`:e,S=await f.get(x);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 A.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 vb={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",Carousel:"/carousel"};function pe(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,o=vb[t],s={};return r&&(s.variant=r),bb({endpoint:o,storyName:n,params:s,apiService:i})}function wb(e,t,n){return pe({component:"MenuGridItem",story:e,apiService:t,variant:n})}function kb(e,t,n){return pe({component:"MenuGrid",story:e,apiService:t,variant:n})}function Sb(e,t,n){return pe({component:"Dropdown",story:e,apiService:t,variant:n})}function Tb(e,t,n){return pe({component:"Hero",story:e,apiService:t,variant:n})}function Cb(e,t,n){return pe({component:"Header",story:e,apiService:t,variant:n})}function Pb(e,t,n){return pe({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function Eb(e,t,n){return pe({component:"Footer",story:e,apiService:t,variant:n})}function Ab(e,t,n){return pe({component:"Stats",story:e,apiService:t,variant:n})}function Ib(e,t,n){return pe({component:"FeatureSplit",story:e,apiService:t,variant:n})}function jb(e,t,n){return pe({component:"ContentBlock",story:e,apiService:t,variant:n})}function Db(e,t,n){return pe({component:"FeaturesSection",story:e,apiService:t,variant:n})}function Mb(e,t,n){return pe({component:"BentoGrid",story:e,apiService:t,variant:n})}function Nb(e,t,n){return pe({component:"CTASection",story:e,apiService:t,variant:n})}function Lb(e,t,n){return pe({component:"Testimonials",story:e,apiService:t,variant:n})}function Vb(e,t,n){return pe({component:"Select",story:e,apiService:t,variant:n})}function Rb(e,t,n){return pe({component:"Carousel",story:e,apiService:t,variant:n})}B.BentoGrid=Lo,B.CTASection=sc,B.Card=Jn,B.Carousel=uc,B.ContentBlock=nc,B.Dropdown=no,B.DropdownProvider=db,B.DynamicRenderer=Ct,B.FeatureItem=to,B.FeatureSplit=tc,B.FeaturesSection=rc,B.Footer=gb,B.Header=Vo,B.Hero=Ll,B.IconButton=Vl,B.ItemsAccordion=yb,B.MenuGrid=Ml,B.MenuGridItem=Nl,B.MenuItem=Dl,B.Select=lc,B.Stats=oc,B.Testimonials=ac,B.baseComponents=cc,B.getComponent=fc,B.registerComponent=hb,B.useBentoGridConfig=Mb,B.useCTASectionConfig=Nb,B.useCarouselConfig=Rb,B.useContentBlockConfig=jb,B.useDropdownConfig=Sb,B.useFeatureSplitConfig=Ib,B.useFeaturesSectionConfig=Db,B.useFooterConfig=Eb,B.useHeaderConfig=Cb,B.useHeroConfig=Tb,B.useItemsAccordionConfig=Pb,B.useMenuGridConfig=kb,B.useMenuGridItemConfig=wb,B.useSelectConfig=Vb,B.useStatsConfig=Ab,B.useTestimonialsConfig=Lb,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
|
21
29
|
//# sourceMappingURL=index.umd.js.map
|