@sankhyatronics/sankhya-ui 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ContentBlock/ContentBlock.d.ts +1 -2
- package/dist/components/ItemsAccordion/ItemsAccordion.d.ts +1 -1
- package/dist/hooks/useMarkdown.d.ts +5 -0
- package/dist/index.es.js +345 -317
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -12,16 +12,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
12
12
|
${m}px !important;
|
|
13
13
|
top: ${h}px !important;
|
|
14
14
|
}
|
|
15
|
-
`),()=>{g.contains(y)&&g.removeChild(y)}},[t]),b.jsx(gp,{isPresent:t,childRef:s,sizeRef:o,children:pn.cloneElement(e,{ref:u})})}const xp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=mr(bp),c=I.useId();let f=!0,h=I.useMemo(()=>(f=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:d=>{u.set(d,!0);for(const p of u.values())if(!p)return;r&&r()},register:d=>(u.set(d,!1),()=>u.delete(d))}),[n,u,r]);return s&&f&&(h={...h}),I.useMemo(()=>{u.forEach((d,p)=>u.set(p,!1))},[n]),pn.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=b.jsx(yp,{isPresent:n,anchorX:a,root:l,children:e})),b.jsx(wn.Provider,{value:h,children:e})};function bp(){return new Map}function xa(e=!0){const t=I.useContext(wn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=I.useId();I.useEffect(()=>{if(e)return i(s)},[e]);const o=I.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const En=e=>e.key||"";function ba(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const wp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,c]=xa(o),f=I.useMemo(()=>ba(e),[e]),h=o&&!u?[]:f.map(En),d=I.useRef(!0),p=I.useRef(f),m=mr(()=>new Map),y=I.useRef(new Set),[g,k]=I.useState(f),[v,E]=I.useState(f);is(()=>{d.current=!1,p.current=f;for(let M=0;M<v.length;M++){const D=En(v[M]);h.includes(D)?(m.delete(D),y.current.delete(D)):m.get(D)!==!0&&m.set(D,!1)}},[v,h.length,h.join("-")]);const A=[];if(f!==g){let M=[...f];for(let D=0;D<v.length;D++){const V=v[D],C=En(V);h.includes(C)||(M.splice(D,0,V),A.push(V))}return s==="wait"&&A.length&&(M=A),E(ba(M)),k(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&v.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:S}=I.useContext(pr);return b.jsx(b.Fragment,{children:v.map(M=>{const D=En(M),V=o&&!u?!1:f===v||h.includes(D),C=()=>{if(y.current.has(D))return;if(y.current.add(D),m.has(D))m.set(D,!0);else return;let R=!0;m.forEach(O=>{O||(R=!1)}),R&&(S?.(),E(p.current),o&&c?.(),r&&r())};return b.jsx(xp,{isPresent:V,initial:!d.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:V?void 0:C,anchorX:a,children:M},D)})})},wa=I.createContext({strict:!1}),va={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"]},xt={};for(const e in va)xt[e]={isEnabled:t=>va[e].some(n=>!!t[n])};function vp(e){for(const t in e)xt[t]={...xt[t],...e[t]}}const kp=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 In(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kp.has(e)}let ka=e=>!In(e);function Sp(e){typeof e=="function"&&(ka=t=>t.startsWith("on")?!In(t):e(t))}try{Sp(require("@emotion/is-prop-valid").default)}catch{}function Cp(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ka(i)||n===!0&&In(i)||!t&&!In(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dn=I.createContext({});function jn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gt(e){return typeof e=="string"||Array.isArray(e)}const ii=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oi=["initial",...ii];function Mn(e){return jn(e.animate)||oi.some(t=>Gt(e[t]))}function Sa(e){return!!(Mn(e)||e.variants)}function Tp(e,t){if(Mn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Gt(n)?n:void 0,animate:Gt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pp(e){const{initial:t,animate:n}=Tp(e,I.useContext(Dn));return I.useMemo(()=>({initial:t,animate:n}),[Ca(t),Ca(n)])}function Ca(e){return Array.isArray(e)?e.join(" "):e}function Ta(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=Ta(e,t.target.x),r=Ta(e,t.target.y);return`${n}% ${r}%`}},Ap={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ke.parse(e);if(i.length>5)return r;const s=Ke.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}},si={borderRadius:{...Yt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yt,borderTopRightRadius:Yt,borderBottomLeftRadius:Yt,borderBottomRightRadius:Yt,boxShadow:Ap};function Pa(e,{layout:t,layoutId:n}){return gt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!si[e]||e==="opacity")}const Ep={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ip=mt.length;function Dp(e,t,n){let r="",i=!0;for(let s=0;s<Ip;s++){const o=mt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=aa(a,Jr[o]);if(!l){i=!1;const c=Ep[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ai(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(gt.has(l)){o=!0;continue}else if(Cs(l)){i[l]=u;continue}else{const c=aa(u,Jr[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=Dp(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const li=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Aa(e,t,n){for(const r in t)!de(t[r])&&!Pa(r,n)&&(e[r]=t[r])}function jp({transformTemplate:e},t){return I.useMemo(()=>{const n=li();return ai(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mp(e,t){const n=e.style||{},r={};return Aa(r,n,e),Object.assign(r,jp(e,t)),r}function Lp(e,t){const n={},r=Mp(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 Np={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rp={offset:"strokeDashoffset",array:"strokeDasharray"};function Fp(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Np:Rp;e[s.offset]=F.transform(-r);const o=F.transform(t),a=F.transform(n);e[s.array]=`${o} ${a}`}const Op=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ea(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(ai(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const d of Op)f[d]!==void 0&&(h[d]=f[d],delete f[d]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Fp(f,i,s,o,!1)}const Ia=()=>({...li(),attrs:{}}),Da=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vp(e,t,n,r){const i=I.useMemo(()=>{const s=Ia();return Ea(s,t,Da(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Aa(s,e.style,e),i.style={...s,...i.style}}return i}const zp=["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 ui(e){return typeof e!="string"||e.includes("-")?!1:!!(zp.indexOf(e)>-1||/[A-Z]/u.test(e))}function _p(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??ui(e)?Vp:Lp)(t,r,i,e),u=Cp(t,typeof e=="string",s),c=e!==I.Fragment?{...u,...l,ref:n}:{},{children:f}=t,h=I.useMemo(()=>de(f)?f.get():f,[f]);return I.createElement(e,{...c,children:h})}function ja(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ci(e,t,n,r){if(typeof t=="function"){const[i,s]=ja(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ja(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Ln(e){return de(e)?e.get():e}function Bp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$p(n,r,i,e),renderState:t()}}function $p(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=Ln(s[h]);let{initial:o,animate:a}=e;const l=Mn(e),u=Sa(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!jn(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const p=ci(e,h[d]);if(p){const{transitionEnd:m,transition:y,...g}=p;for(const k in g){let v=g[k];if(Array.isArray(v)){const E=c?v.length-1:0;v=v[E]}v!==null&&(i[k]=v)}for(const k in m)i[k]=m[k]}}}return i}const Ma=e=>(t,n)=>{const r=I.useContext(Dn),i=I.useContext(wn),s=()=>Bp(e,t,r,i);return n?s():mr(s)};function fi(e,t,n){const{style:r}=e,i={};for(const s in r)(de(r[s])||t.style&&de(t.style[s])||Pa(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const Up=Ma({scrapeMotionValuesFromProps:fi,createRenderState:li});function La(e,t,n){const r=fi(e,t,n);for(const i in e)if(de(e[i])||de(t[i])){const s=mt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Hp=Ma({scrapeMotionValuesFromProps:La,createRenderState:Ia}),Wp=Symbol.for("motionComponentSymbol");function bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Na(e,t){if(typeof e=="function")return e(t);bt(e)&&(e.current=t)}function qp(e,t,n){const r=I.useRef(null);return I.useCallback(i=>{if(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n)if(i){const s=Na(n,i);typeof s=="function"&&(r.current=s)}else r.current?(r.current(),r.current=null):Na(n,i)},[t,e,n])}const hi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ra="data-"+hi("framerAppearId"),Fa=I.createContext({});function Gp(e,t,n,r,i,s){const{visualElement:o}=I.useContext(Dn),a=I.useContext(wa),l=I.useContext(wn),u=I.useContext(ri).reducedMotion,c=I.useRef(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:s}));const f=c.current,h=I.useContext(Fa);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Yp(c.current,n,i,h);const d=I.useRef(!1);I.useInsertionEffect(()=>{f&&d.current&&f.update(n,l)});const p=n[Ra],m=I.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return is(()=>{f&&(d.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),m.current&&f.animationState&&f.animationState.animateChanges())}),I.useEffect(()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),f.enteringChildren=void 0)}),f}function Yp(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Oa(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&bt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Oa(e){if(e)return e.options.allowProjection!==!1?e.projection:Oa(e.parent)}function di(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vp(r);const s=n?n==="svg":ui(e),o=s?Hp:Up;function a(u,c){let f;const h={...I.useContext(ri),...u,layoutId:Kp(u)},{isStatic:d}=h,p=Pp(u),m=o(u,d);if(!d&&gr){Xp(h,r);const y=Qp(h);f=y.MeasureLayout,p.visualElement=Gp(e,m,h,i,y.ProjectionNode,s)}return b.jsxs(Dn.Provider,{value:p,children:[f&&p.visualElement?b.jsx(f,{visualElement:p.visualElement,...h}):null,_p(e,u,qp(m,p.visualElement,c),m,d,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=I.forwardRef(a);return l[Wp]=e,l}function Kp({layoutId:e}){const t=I.useContext(pr).id;return t&&e!==void 0?t+"-"+e:e}function Xp(e,t){const n=I.useContext(wa).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?ft(!1,r,"lazy-strict-mode"):$e(!1,r,"lazy-strict-mode")}}function Qp(e){const{drag:t,layout:n}=xt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zp(e,t){if(typeof Proxy>"u")return di;const n=new Map,r=(s,o)=>di(s,o,e,t),i=(s,o)=>(process.env.NODE_ENV!=="production"&&kr(!1,"motion() is deprecated. Use motion.create() instead."),r(s,o));return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,di(o,void 0,e,t)),n.get(o))})}function Va({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function em(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 pi(e){return e===void 0||e===1}function mi({scale:e,scaleX:t,scaleY:n}){return!pi(e)||!pi(t)||!pi(n)}function it(e){return mi(e)||za(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function za(e){return _a(e.x)||_a(e.y)}function _a(e){return e&&e!=="0%"}function Nn(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=Nn(e,i,r)),Nn(e,n,r)+t}function gi(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 $a(e,{x:t,y:n}){gi(e.x,t.translate,t.scale,t.originPoint),gi(e.y,n.translate,n.scale,n.originPoint)}const Ua=.999999999999,Ha=1.0000000000001;function tm(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&vt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,$a(e,o)),r&&it(s.latestValues)&&vt(e,s.latestValues))}t.x<Ha&&t.x>Ua&&(t.x=1),t.y<Ha&&t.y>Ua&&(t.y=1)}function wt(e,t){e.min=e.min+t,e.max=e.max+t}function Wa(e,t,n,r,i=.5){const s=ie(e.min,e.max,i);gi(e,t,n,s,r)}function vt(e,t){Wa(e.x,t.x,t.scaleX,t.scale,t.originX),Wa(e.y,t.y,t.scaleY,t.scale,t.originY)}function qa(e,t){return Va(em(e.getBoundingClientRect(),t))}function nm(e,t,n){const r=qa(e,n),{scroll:i}=t;return i&&(wt(r.x,i.offset.x),wt(r.y,i.offset.y)),r}const Ga=()=>({translate:0,scale:1,origin:0,originPoint:0}),kt=()=>({x:Ga(),y:Ga()}),Ya=()=>({min:0,max:0}),ce=()=>({x:Ya(),y:Ya()}),yi={current:null},Ka={current:!1};function rm(){if(Ka.current=!0,!!gr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yi.current=e.matches;e.addEventListener("change",t),t()}else yi.current=!1}const im=new WeakMap;function om(e,t,n){for(const r in t){const i=t[r],s=n[r];if(de(i))e.addValue(r,i);else if(de(s))e.addValue(r,yt(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,yt(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Xa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sm{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=we.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,re.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;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=!!s,this.isControllingVariants=Mn(n),this.isVariantNode=Sa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const d=f[h];l[h]!==void 0&&de(d)&&d.set(l[h])}}mount(t){this.current=t,im.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:(Ka.current||rm(),this.shouldReduceMotion=yi.current),process.env.NODE_ENV!=="production"&&kr(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(),Ge(this.notifyUpdate),Ge(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=gt.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&re.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),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 xt){const n=xt[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}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<Xa.length;r++){const i=Xa[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=om(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=yt(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"&&(os(r)||as(r))?r=parseFloat(r):!dp(r)&&Ke.test(n)&&(r=sa(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 s=ci(this.props,n,this.presenceContext?.custom);s&&(r=s[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 vr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ei.render(this.render)}}class Qa extends sm{constructor(){super(...arguments),this.KeyframeResolver=tp}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 Za(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i?.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function am(e){return window.getComputedStyle(e)}class lm extends Qa{constructor(){super(...arguments),this.type="html",this.renderInstance=Za}readValueFromInstance(t,n){if(gt.has(n))return this.projection?.isProjecting?Hr(n):wd(t,n);{const r=am(t),i=(Cs(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qa(t,n)}build(t,n,r){ai(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return fi(t,n,r)}}const Ja=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 um(e,t,n,r){Za(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ja.has(i)?i:hi(i),t.attrs[i])}class cm extends Qa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gt.has(n)){const r=oa(n);return r&&r.default||0}return n=Ja.has(n)?n:hi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return La(t,n,r)}build(t,n,r){Ea(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){um(t,n,r,i)}mount(t){this.isSVGTag=Da(t.tagName),super.mount(t)}}const fm=(e,t)=>t.isSVG??ui(e)?new cm(t):new lm(t,{allowProjection:e!==I.Fragment});function St(e,t,n){const r=e.getProps();return ci(r,t,n!==void 0?n:r.custom,e)}const xi=e=>Array.isArray(e);function hm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yt(n))}function dm(e){return xi(e)?e[e.length-1]||0:e}function pm(e,t){const n=St(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=dm(s[o]);hm(e,o,a)}}function mm(e){return!!(de(e)&&e.add)}function bi(e,t){const n=e.getValue("willChange");if(mm(n))return n.add(t);if(!n&&Ue.WillChange){const r=new Ue.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function el(e){return e.props[Ra]}const gm=e=>e!==null;function ym(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(gm),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const xm={type:"spring",stiffness:500,damping:25,restSpeed:10},bm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wm={type:"keyframes",duration:.8},vm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},km=(e,{keyframes:t})=>t.length>2?wm:gt.has(e)?e.startsWith("scale")?bm(t[1]):xm:vm;function Sm({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const wi=(e,t,n,r={},i,s)=>o=>{const a=Qr(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Me(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Sm(a)||Object.assign(c,km(e,c)),c.duration&&(c.duration=Me(c.duration)),c.repeatDelay&&(c.repeatDelay=Me(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Xr(c),c.delay===0&&(f=!0)),(Ue.instantAnimations||Ue.skipAnimations)&&(f=!0,Xr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const h=ym(c.keyframes,a);if(h!==void 0){re.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new Br(c):new Ud(c)};function Cm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),h=a[c];if(h===void 0||u&&Cm(u,c))continue;const d={delay:n,...Qr(s||{},c)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===p&&!d.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const g=el(e);if(g){const k=window.MotionHandoffAnimation(g,c,re);k!==null&&(d.startTime=k,m=!0)}}bi(e,c),f.start(wi(c,f,h,e.shouldReduceMotion&&ea.has(c)?{type:!1}:d,e,m));const y=f.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{re.update(()=>{o&&pm(e,o)})}),l}function nl(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function vi(e,t,n={}){const r=St(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(tl(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Tm(e,t,l,u,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function Tm(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(vi(l,t,{...o,delay:n+(typeof r=="function"?0:r)+nl(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Pm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>vi(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=vi(e,t,n);else{const i=typeof t=="function"?St(e,t,n.custom):t;r=Promise.all(tl(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function rl(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 Am=oi.length;function il(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?il(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Am;n++){const r=oi[n],i=e.props[r];(Gt(i)||i===!1)&&(t[r]=i)}return t}const Em=[...ii].reverse(),Im=ii.length;function Dm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Pm(e,n,r)))}function jm(e){let t=Dm(e),n=ol(),r=!0;const i=l=>(u,c)=>{const f=St(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:d,...p}=f;u={...u,...p,...d}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=il(e.parent)||{},f=[],h=new Set;let d={},p=1/0;for(let y=0;y<Im;y++){const g=Em[y],k=n[g],v=u[g]!==void 0?u[g]:c[g],E=Gt(v),A=g===l?k.isActive:null;A===!1&&(p=y);let S=v===c[g]&&v!==u[g]&&E;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),k.protectedKeys={...d},!k.isActive&&A===null||!v&&!k.prevProp||jn(v)||typeof v=="boolean")continue;const M=Mm(k.prevProp,v);let D=M||g===l&&k.isActive&&!S&&E||y>p&&E,V=!1;const C=Array.isArray(v)?v:[v];let R=C.reduce(i(g),{});A===!1&&(R={});const{prevResolvedValues:O={}}=k,K={...O,...R},z=W=>{D=!0,h.has(W)&&(V=!0,h.delete(W)),k.needsAnimating[W]=!0;const J=e.getValue(W);J&&(J.liveStyle=!1)};for(const W in K){const J=R[W],ue=O[W];if(d.hasOwnProperty(W))continue;let w=!1;xi(J)&&xi(ue)?w=!rl(J,ue):w=J!==ue,w?J!=null?z(W):h.add(W):J!==void 0&&h.has(W)?z(W):k.protectedKeys[W]=!0}k.prevProp=v,k.prevResolvedValues=R,k.isActive&&(d={...d,...R}),r&&e.blockInitialAnimation&&(D=!1);const N=S&&M;D&&(!N||V)&&f.push(...C.map(W=>{const J={type:g};if(typeof W=="string"&&r&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:ue}=e,w=St(ue,W);if(ue.enteringChildren&&w){const{delayChildren:P}=w.transition||{};J.delay=nl(ue.enteringChildren,e,P)}}return{animation:W,options:J}}))}if(h.size){const y={};if(typeof u.initial!="boolean"){const g=St(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(y.transition=g.transition)}h.forEach(g=>{const k=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),y[g]=k??null}),f.push({animation:y})}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=o(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ol()}}}function Mm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rl(t,e):!1}function ot(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ol(){return{animate:ot(!0),whileInView:ot(),whileHover:ot(),whileTap:ot(),whileDrag:ot(),whileFocus:ot(),exit:ot()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Lm extends Xe{constructor(t){super(t),t.animationState||(t.animationState=jm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jn(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 Nm=0;class Rm extends Xe{constructor(){super(...arguments),this.id=Nm++}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 Fm={animation:{Feature:Lm},exit:{Feature:Rm}};function Kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xt(e){return{point:{x:e.pageX,y:e.pageY}}}const Om=e=>t=>ti(t)&&e(t,Xt(t));function Qt(e,t,n,r){return Kt(e,t,Om(n),r)}const sl=1e-4,Vm=1-sl,zm=1+sl,al=.01,_m=0-al,Bm=0+al;function ye(e){return e.max-e.min}function $m(e,t,n){return Math.abs(e-t)<=n}function ll(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Vm&&e.scale<=zm||isNaN(e.scale))&&(e.scale=1),(e.translate>=_m&&e.translate<=Bm||isNaN(e.translate))&&(e.translate=0)}function Zt(e,t,n,r){ll(e.x,t.x,n.x,r?r.originX:void 0),ll(e.y,t.y,n.y,r?r.originY:void 0)}function ul(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function Um(e,t,n){ul(e.x,t.x,n.x),ul(e.y,t.y,n.y)}function cl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function Rn(e,t,n){cl(e.x,t.x,n.x),cl(e.y,t.y,n.y)}function Ie(e){return[e("x"),e("y")]}const fl=({current:e})=>e?e.ownerDocument.defaultView:null,hl=(e,t)=>Math.abs(e-t);function Hm(e,t){const n=hl(e.x,t.x),r=hl(e.y,t.y);return Math.sqrt(n**2+r**2)}class dl{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Si(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Hm(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!p)return;const{point:m}=h,{timestamp:y}=fe;this.history.push({...m,timestamp:y});const{onStart:g,onMove:k}=this.handlers;d||(g&&g(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ki(d,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Si(h.type==="pointercancel"?this.lastMoveEventInfo:ki(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,g),m&&m(h,g)},!ti(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=Xt(t),l=ki(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=fe;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,Si(l,this.history)),this.removeListeners=zt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ge(this.updatePoint)}}function ki(e,t){return t?{point:t(e.point)}:e}function pl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Si({point:e},t){return{point:e,delta:pl(e,ml(t)),offset:pl(e,Wm(t)),velocity:qm(t,.1)}}function Wm(e){return e[0]}function ml(e){return e[e.length-1]}function qm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ml(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Me(t)));)n--;if(!r)return{x:0,y:0};const s=Ee(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Gm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ie(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function gl(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 Ym(e,{top:t,left:n,bottom:r,right:i}){return{x:gl(e.x,n,i),y:gl(e.y,t,r)}}function yl(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 Km(e,t){return{x:yl(e.x,t.x),y:yl(e.y,t.y)}}function Xm(e,t){let n=.5;const r=ye(e),i=ye(t);return i>r?n=_t(t.min,t.max-r,e.min):r>i&&(n=_t(e.min,e.max-i,t.min)),Be(0,1,n)}function Qm(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 Zm(e=Ci){return e===!1?e=0:e===!0&&(e=Ci),{x:xl(e,"left","right"),y:xl(e,"top","bottom")}}function xl(e,t,n){return{min:bl(e,t),max:bl(e,n)}}function bl(e,t){return typeof e=="number"?e:e[t]||0}const Jm=new WeakMap;class eg{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=ce(),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 s=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xt(f).point)},o=(f,h)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=op(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ie(g=>{let k=this.getAxisMotionValue(g).get()||0;if(Oe.test(k)){const{projection:v}=this.visualElement;if(v&&v.layout){const E=v.layout.layoutBox[g];E&&(k=ye(E)*(parseFloat(k)/100))}}this.originPoint[g]=k}),m&&re.postRender(()=>m(f,h)),bi(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=h;if(p&&this.currentDirection===null){this.currentDirection=tg(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),y&&y(f,h)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ie(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new dl(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:fl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&re.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||!Fn(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Gm(o,this.constraints[t],this.elastic[t])),s.set(o)}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&&bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ym(r.layoutBox,t):this.constraints=!1,this.elastic=Zm(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ie(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Qm(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!bt(t))return!1;const r=t.current;$e(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 s=nm(r,i.root,this.visualElement.getTransformPagePoint());let o=Km(i.layout.layoutBox,s);if(n){const a=n(Jp(o));this.hasMutatedConstraints=!!a,a&&(o=Va(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ie(c=>{if(!Fn(c,n,this.currentDirection))return;let f=l&&l[c]||{};o&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return bi(this.visualElement,t),r.start(wi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ie(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ie(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){Ie(n=>{const{drag:r}=this.getProps();if(!Fn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-ie(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!bt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ie(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Xm({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ie(o=>{if(!Fn(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ie(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Jm.set(this.visualElement,this);const t=this.visualElement.current,n=Qt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();bt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),re.read(r);const o=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ie(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ci,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Fn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ng extends Xe{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new eg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}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 wl=e=>(t,n)=>{e&&re.postRender(()=>e(t,n))};class rg extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new dl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wl(t),onStart:wl(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&re.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Qt(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 On={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Ti=!1;class ig extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Ti&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),On.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Ti=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||re.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ei.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Ti=!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 vl(e){const[t,n]=xa(),r=I.useContext(pr);return b.jsx(ig,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Fa),isPresent:t,safeToRemove:n})}function og(e,t,n){const r=de(e)?e:yt(e);return r.start(wi("",r,t,n)),r.animation}const sg=(e,t)=>e.depth-t.depth;class ag{constructor(){this.children=[],this.isDirty=!1}add(t){yr(this.children,t),this.isDirty=!0}remove(t){xr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sg),this.isDirty=!1,this.children.forEach(t)}}function lg(e,t){const n=we.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ge(r),e(s-t))};return re.setup(r,!0),()=>Ge(r)}const kl=["TopLeft","TopRight","BottomLeft","BottomRight"],ug=kl.length,Sl=e=>typeof e=="string"?parseFloat(e):e,Cl=e=>typeof e=="number"||F.test(e);function cg(e,t,n,r,i,s){i?(e.opacity=ie(0,n.opacity??1,fg(r)),e.opacityExit=ie(t.opacity??1,0,hg(r))):s&&(e.opacity=ie(t.opacity??1,n.opacity??1,r));for(let o=0;o<ug;o++){const a=`border${kl[o]}Radius`;let l=Tl(t,a),u=Tl(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Cl(l)===Cl(u)?(e[a]=Math.max(ie(Sl(l),Sl(u),r),0),(Oe.test(u)||Oe.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ie(t.rotate||0,n.rotate||0,r))}function Tl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const fg=Pl(0,.5,gs),hg=Pl(.5,.95,Ae);function Pl(e,t,n){return r=>r<e?0:r>t?1:n(_t(e,t,r))}function Al(e,t){e.min=t.min,e.max=t.max}function Ne(e,t){Al(e.x,t.x),Al(e.y,t.y)}function El(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Il(e,t,n,r,i){return e-=t,e=Nn(e,1/n,r),i!==void 0&&(e=Nn(e,1/i,r)),e}function dg(e,t=0,n=1,r=.5,i,s=e,o=e){if(Oe.test(t)&&(t=parseFloat(t),t=ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ie(s.min,s.max,r);e===s&&(a-=t),e.min=Il(e.min,t,n,a,i),e.max=Il(e.max,t,n,a,i)}function Dl(e,t,[n,r,i],s,o){dg(e,t[n],t[r],t[i],t.scale,s,o)}const pg=["x","scaleX","originX"],mg=["y","scaleY","originY"];function jl(e,t,n,r){Dl(e.x,t,pg,n?n.x:void 0,r?r.x:void 0),Dl(e.y,t,mg,n?n.y:void 0,r?r.y:void 0)}function Ml(e){return e.translate===0&&e.scale===1}function Ll(e){return Ml(e.x)&&Ml(e.y)}function Nl(e,t){return e.min===t.min&&e.max===t.max}function gg(e,t){return Nl(e.x,t.x)&&Nl(e.y,t.y)}function Rl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fl(e,t){return Rl(e.x,t.x)&&Rl(e.y,t.y)}function Ol(e){return ye(e.x)/ye(e.y)}function Vl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class yg{constructor(){this.members=[]}add(t){yr(this.members,t),t.scheduleRender()}remove(t){if(xr(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 s=this.members[i];if(s.isPresent!==!1){r=s;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 xg(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=n?.z||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:h,skewX:d,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),d&&(r+=`skewX(${d}deg) `),p&&(r+=`skewY(${p}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 Pi=["","X","Y","Z"],bg=1e3;let wg=0;function Ai(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=el(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",re,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zl(r)}function _l({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t?.()){this.id=wg++,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(Sg),this.nodes.forEach(Ag),this.nodes.forEach(Eg),this.nodes.forEach(Cg)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 ag)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new vr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=ga(o)&&!fp(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;re.read(()=>{f=window.innerWidth}),e(o,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c&&c(),c=lg(h,250),On.hasAnimatedSinceResize&&(On.hasAnimatedSinceResize=!1,this.nodes.forEach(Ul)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Lg,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!Fl(this.targetLayout,d),k=!f&&h;if(this.options.layoutRoot||this.resumeFrom||k||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Qr(p,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,k)}else f||Ul(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ge(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(Ig),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zl(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(),o&&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($l);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pg),this.nodes.forEach(vg),this.nodes.forEach(kg)):this.nodes.forEach($l),this.clearAllSnapshots();const a=we.now();fe.delta=Be(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Tr.update.process(fe),Tr.preRender.process(fe),Tr.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Tg),this.sharedNodes.forEach(Dg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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 o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ce(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ll(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||it(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Ng(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return ce();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Rg))){const{scroll:u}=this.root;u&&(wt(a.x,u.offset.x),wt(a.y,u.offset.y))}return a}removeElementScroll(o){const a=ce();if(Ne(a,o),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&&Ne(a,o),wt(a.x,c.offset.x),wt(a.y,c.offset.y))}return a}applyTransform(o,a=!1){const l=ce();Ne(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&vt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),it(c.latestValues)&&vt(l,c.latestValues)}return it(this.latestValues)&&vt(l,this.latestValues),l}removeTransform(o){const a=ce();Ne(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!it(u.latestValues))continue;mi(u.latestValues)&&u.updateSnapshot();const c=ce(),f=u.measurePageBox();Ne(c,f),jl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return it(this.latestValues)&&jl(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||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=fe.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ce(),this.targetWithTransforms=ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Um(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ne(this.target,this.layout.layoutBox),$a(this.target,this.targetDelta)):Ne(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||mi(this.parent.latestValues)||za(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Rn(this.relativeTargetOrigin,a,l),Ne(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===fe.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;Ne(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;tm(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ce());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(El(this.prevProjectionDelta.x,this.projectionDelta.x),El(this.prevProjectionDelta.y,this.projectionDelta.y)),Zt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Vl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kt(),this.projectionDelta=kt(),this.projectionDeltaWithTransform=kt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=kt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ce(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,y=this.getStack(),g=!y||y.members.length<=1,k=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(Mg));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const A=E/1e3;Hl(f.x,o.x,A),Hl(f.y,o.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jg(this.relativeTarget,this.relativeTargetOrigin,h,A),v&&gg(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ce()),Ne(v,this.relativeTarget)),m&&(this.animationValues=c,cg(c,u,this.latestValues,A,k,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ge(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update(()=>{On.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.currentAnimation=og(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Kl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ce();const f=ye(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=ye(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Ne(a,l),vt(a,c),Zt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new yg),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ai("z",o,u,this.animationValues);for(let c=0;c<Pi.length;c++)Ai(`rotate${Pi[c]}`,o,u,this.animationValues),Ai(`skew${Pi[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ln(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ln(a?.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=xg(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:h,y:d}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in si){if(c[p]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:g}=si[p],k=f==="none"?c[p]:m(c[p],u);if(y){const v=y.length;for(let E=0;E<v;E++)o[y[E]]=k}else g?this.options.visualElement.renderState.vars[p]=k:o[p]=k}this.options.layoutId&&(o.pointerEvents=u===this?Ln(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Bl),this.root.sharedNodes.clear()}}}function vg(e){e.updateLayout()}function kg(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,s=t.source!==e.layout.source;i==="size"?Ie(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=ye(f);f.min=n[c].min,f.max=f.min+h}):Kl(i,t.layoutBox,n)&&Ie(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=ye(n[c]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+h)});const o=kt();Zt(o,n,t.layoutBox);const a=kt();s?Zt(a,e.applyTransform(r,!0),t.measuredBox):Zt(a,n,t.layoutBox);const l=!Ll(o);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:h}=c;if(f&&h){const d=ce();Rn(d,t.layoutBox,f.layoutBox);const p=ce();Rn(p,n,h.layoutBox),Fl(d,p)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=d,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Sg(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 Cg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Tg(e){e.clearSnapshot()}function Bl(e){e.clearMeasurements()}function $l(e){e.isLayoutDirty=!1}function Pg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ul(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ag(e){e.resolveTargetDelta()}function Eg(e){e.calcProjection()}function Ig(e){e.resetSkewAndRotation()}function Dg(e){e.removeLeadSnapshot()}function Hl(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wl(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function jg(e,t,n,r){Wl(e.x,t.x,n.x,r),Wl(e.y,t.y,n.y,r)}function Mg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lg={duration:.45,ease:[.4,0,.1,1]},ql=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gl=ql("applewebkit/")&&!ql("chrome/")?Math.round:Ae;function Yl(e){e.min=Gl(e.min),e.max=Gl(e.max)}function Ng(e){Yl(e.x),Yl(e.y)}function Kl(e,t,n){return e==="position"||e==="preserve-aspect"&&!$m(Ol(t),Ol(n),.2)}function Rg(e){return e!==e.root&&e.scroll?.wasRoot}const Fg=_l({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ei={current:void 0},Xl=_l({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ei.current){const e=new Fg({});e.mount(window),e.setOptions({layoutScroll:!0}),Ei.current=e}return Ei.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Og={pan:{Feature:rg},drag:{Feature:ng,ProjectionNode:Xl,MeasureLayout:vl}};function Ql(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&re.postRender(()=>s(t,Xt(t)))}class Vg extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=sp(t,(n,r)=>(Ql(this.node,r,"Start"),i=>Ql(this.node,i,"End"))))}unmount(){}}class zg extends Xe{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=zt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zl(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),s=r[i];s&&re.postRender(()=>s(t,Xt(t)))}class _g extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=cp(t,(n,r)=>(Zl(this.node,r,"Start"),(i,{success:s})=>Zl(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ii=new WeakMap,Di=new WeakMap,Bg=e=>{const t=Ii.get(e.target);t&&t(e)},$g=e=>{e.forEach(Bg)};function Ug({root:e,...t}){const n=e||document;Di.has(n)||Di.set(n,{});const r=Di.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($g,{root:e,...t})),r[i]}function Hg(e,t,n){const r=Ug(t);return Ii.set(e,n),r.observe(e),()=>{Ii.delete(e),r.unobserve(e)}}const Wg={some:0,all:1};class qg extends Xe{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:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Wg[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=u?c:f;h&&h(l)};return Hg(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Gg(t,n))&&this.startObserver()}unmount(){}}function Gg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Yg={...Fm,...{inView:{Feature:qg},tap:{Feature:_g},focus:{Feature:zg},hover:{Feature:Vg}},...Og,...{layout:{ProjectionNode:Xl,MeasureLayout:vl}}},ve=Zp(Yg,fm),Jl=e=>{const{title:t,href:n,description:r,icon:i,badge:s,isActive:o=!1,className:a="",showDescription:l=!0,onClick:u,target:c="_self",compact:f=!1}=e,h=["menu-item",o?"active":"",f?"compact":"",!r||!l?"no-description":"",a].filter(Boolean).join(" ");return b.jsxs(ve.a,{href:n,target:c,onClick:u,className:h,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&b.jsx(ve.div,{className:"menu-item-icon",whileHover:{rotate:5},children:b.jsx(he,{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}),s&&b.jsx(ve.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:s})]}),r&&l&&b.jsx(ve.p,{className:"menu-item-description",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:r})]})]})},eu=e=>{const{children:t,columns:n=3,className:r="",gridClassName:i=""}=e,s=`menu-grid columns-${n} ${i}`;return b.jsx("div",{className:`menu-grid-container ${r}`,children:b.jsx("div",{className:s,children:t})})},tu=e=>{const{title:t,description:n,href:r,icon:i,badge:s,compact:o=!1,showDescription:a=!0,className:l=""}=e,u=`menu-grid-item ${o?"compact":"regular"} ${l}`;return b.jsx(ve.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:[s&&b.jsx(ve.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:s}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(ve.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(he,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]}):b.jsxs(nr.Link,{to:r,className:"menu-grid-link",children:[s&&b.jsx(ve.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:s}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(ve.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(he,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]})})},nu=({title:e,subtitle:t,imageSrc:n,actionLabel:r,href:i,textAlignment:s="left",padding:o="none",className:a="",inverted:l=!1,focalPoint:u="center"})=>{const c={top:"center top",left:"left center",right:"right center",bottom:"center bottom",center:"center center"},f=n?{backgroundImage:`url(${n})`,backgroundPosition:c[u]}:{},h={left:"text-left items-start",center:"text-center items-center",right:"text-right items-end",justify:"text-justify"}[s],d={none:"p-none",small:"p-small",medium:"p-medium",large:"p-large"}[o];return b.jsxs(ve.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 ${h} ${d}`,children:[b.jsx(ve.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(ve.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(ve.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})})]})]})},ru=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(he,{icon:t,className:"icon-button-icon"})})};function Gk(){}function Yk(){}function Kg(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Xg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zg={};function iu(e,t){return(Zg.jsx?Qg:Xg).test(e)}const Jg=/[ \t\n\f\r]/g;function ey(e){return typeof e=="object"?e.type==="text"?ou(e.value):!1:ou(e)}function ou(e){return e.replace(Jg,"")===""}class Jt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Jt.prototype.normal={},Jt.prototype.property={},Jt.prototype.space=void 0;function su(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Jt(n,r,t)}function ji(e){return e.toLowerCase()}class ke{constructor(t,n){this.attribute=n,this.property=t}}ke.prototype.attribute="",ke.prototype.booleanish=!1,ke.prototype.boolean=!1,ke.prototype.commaOrSpaceSeparated=!1,ke.prototype.commaSeparated=!1,ke.prototype.defined=!1,ke.prototype.mustUseProperty=!1,ke.prototype.number=!1,ke.prototype.overloadedBoolean=!1,ke.prototype.property="",ke.prototype.spaceSeparated=!1,ke.prototype.space=void 0;let ty=0;const H=st(),le=st(),Mi=st(),j=st(),te=st(),Ct=st(),Ce=st();function st(){return 2**++ty}const Li=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:le,commaOrSpaceSeparated:Ce,commaSeparated:Ct,number:j,overloadedBoolean:Mi,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),Ni=Object.keys(Li);class Ri extends ke{constructor(t,n,r,i){let s=-1;if(super(t,n),au(this,"space",i),typeof r=="number")for(;++s<Ni.length;){const o=Ni[s];au(this,Ni[s],(r&Li[o])===Li[o])}}}Ri.prototype.defined=!0;function au(e,t,n){n&&(e[t]=n)}function Tt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Ri(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ji(r)]=r,n[ji(s.attribute)]=r}return new Jt(t,n,e.space)}const lu=Tt({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:le,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:te,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:j,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:te,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:le,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function uu(e,t){return t in e?e[t]:t}function cu(e,t){return uu(e,t.toLowerCase())}const ny=Tt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ct,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:te,autoFocus:H,autoPlay:H,blocking:te,capture:null,charSet:null,checked:H,cite:null,className:te,cols:j,colSpan:null,content:null,contentEditable:le,controls:H,controlsList:te,coords:j|Ct,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:Mi,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:te,height:j,hidden:Mi,high:j,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:te,itemRef:te,itemScope:H,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,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:j,pattern:null,ping:te,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:te,required:H,reversed:H,rows:j,rowSpan:j,sandbox:te,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:le,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,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:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:cu}),ry=Tt({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:Ce,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:te,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:Ct,g2:Ct,glyphName:Ct,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,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:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:uu}),fu=Tt({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()}}),hu=Tt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cu}),du=Tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iy={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"},oy=/[A-Z]/g,pu=/-[a-z]/g,sy=/^data[-\w.:]+$/i;function ay(e,t){const n=ji(t);let r=t,i=ke;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sy.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(pu,uy);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!pu.test(s)){let o=s.replace(oy,ly);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ri}return new i(r,t)}function ly(e){return"-"+e.toLowerCase()}function uy(e){return e.charAt(1).toUpperCase()}const cy=su([lu,ny,fu,hu,du],"html"),Fi=su([lu,ry,fu,hu,du],"svg");function fy(e){return e.join(" ").trim()}var Pt={},Oi,mu;function hy(){if(mu)return Oi;mu=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
15
|
+
`),()=>{g.contains(y)&&g.removeChild(y)}},[t]),b.jsx(gp,{isPresent:t,childRef:s,sizeRef:o,children:pn.cloneElement(e,{ref:u})})}const xp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=mr(bp),c=I.useId();let f=!0,h=I.useMemo(()=>(f=!1,{id:c,initial:t,isPresent:n,custom:i,onExitComplete:d=>{u.set(d,!0);for(const p of u.values())if(!p)return;r&&r()},register:d=>(u.set(d,!1),()=>u.delete(d))}),[n,u,r]);return s&&f&&(h={...h}),I.useMemo(()=>{u.forEach((d,p)=>u.set(p,!1))},[n]),pn.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=b.jsx(yp,{isPresent:n,anchorX:a,root:l,children:e})),b.jsx(wn.Provider,{value:h,children:e})};function bp(){return new Map}function xa(e=!0){const t=I.useContext(wn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=I.useId();I.useEffect(()=>{if(e)return i(s)},[e]);const o=I.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const En=e=>e.key||"";function ba(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const wp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,c]=xa(o),f=I.useMemo(()=>ba(e),[e]),h=o&&!u?[]:f.map(En),d=I.useRef(!0),p=I.useRef(f),m=mr(()=>new Map),y=I.useRef(new Set),[g,k]=I.useState(f),[v,E]=I.useState(f);is(()=>{d.current=!1,p.current=f;for(let M=0;M<v.length;M++){const D=En(v[M]);h.includes(D)?(m.delete(D),y.current.delete(D)):m.get(D)!==!0&&m.set(D,!1)}},[v,h.length,h.join("-")]);const A=[];if(f!==g){let M=[...f];for(let D=0;D<v.length;D++){const V=v[D],C=En(V);h.includes(C)||(M.splice(D,0,V),A.push(V))}return s==="wait"&&A.length&&(M=A),E(ba(M)),k(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&v.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:S}=I.useContext(pr);return b.jsx(b.Fragment,{children:v.map(M=>{const D=En(M),V=o&&!u?!1:f===v||h.includes(D),C=()=>{if(y.current.has(D))return;if(y.current.add(D),m.has(D))m.set(D,!0);else return;let R=!0;m.forEach(O=>{O||(R=!1)}),R&&(S?.(),E(p.current),o&&c?.(),r&&r())};return b.jsx(xp,{isPresent:V,initial:!d.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:V?void 0:C,anchorX:a,children:M},D)})})},wa=I.createContext({strict:!1}),va={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"]},xt={};for(const e in va)xt[e]={isEnabled:t=>va[e].some(n=>!!t[n])};function vp(e){for(const t in e)xt[t]={...xt[t],...e[t]}}const kp=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 In(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kp.has(e)}let ka=e=>!In(e);function Sp(e){typeof e=="function"&&(ka=t=>t.startsWith("on")?!In(t):e(t))}try{Sp(require("@emotion/is-prop-valid").default)}catch{}function Cp(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ka(i)||n===!0&&In(i)||!t&&!In(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dn=I.createContext({});function jn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Gt(e){return typeof e=="string"||Array.isArray(e)}const ii=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oi=["initial",...ii];function Mn(e){return jn(e.animate)||oi.some(t=>Gt(e[t]))}function Sa(e){return!!(Mn(e)||e.variants)}function Tp(e,t){if(Mn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Gt(n)?n:void 0,animate:Gt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pp(e){const{initial:t,animate:n}=Tp(e,I.useContext(Dn));return I.useMemo(()=>({initial:t,animate:n}),[Ca(t),Ca(n)])}function Ca(e){return Array.isArray(e)?e.join(" "):e}function Ta(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const n=Ta(e,t.target.x),r=Ta(e,t.target.y);return`${n}% ${r}%`}},Ap={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ke.parse(e);if(i.length>5)return r;const s=Ke.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=ie(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}},si={borderRadius:{...Yt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yt,borderTopRightRadius:Yt,borderBottomLeftRadius:Yt,borderBottomRightRadius:Yt,boxShadow:Ap};function Pa(e,{layout:t,layoutId:n}){return gt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!si[e]||e==="opacity")}const Ep={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ip=mt.length;function Dp(e,t,n){let r="",i=!0;for(let s=0;s<Ip;s++){const o=mt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=aa(a,Jr[o]);if(!l){i=!1;const c=Ep[o]||o;r+=`${c}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ai(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(gt.has(l)){o=!0;continue}else if(Cs(l)){i[l]=u;continue}else{const c=aa(u,Jr[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=Dp(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const li=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Aa(e,t,n){for(const r in t)!de(t[r])&&!Pa(r,n)&&(e[r]=t[r])}function jp({transformTemplate:e},t){return I.useMemo(()=>{const n=li();return ai(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mp(e,t){const n=e.style||{},r={};return Aa(r,n,e),Object.assign(r,jp(e,t)),r}function Lp(e,t){const n={},r=Mp(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 Np={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rp={offset:"strokeDashoffset",array:"strokeDasharray"};function Fp(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Np:Rp;e[s.offset]=F.transform(-r);const o=F.transform(t),a=F.transform(n);e[s.array]=`${o} ${a}`}const Op=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ea(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(ai(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete f.transformBox);for(const d of Op)f[d]!==void 0&&(h[d]=f[d],delete f[d]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&Fp(f,i,s,o,!1)}const Ia=()=>({...li(),attrs:{}}),Da=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vp(e,t,n,r){const i=I.useMemo(()=>{const s=Ia();return Ea(s,t,Da(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Aa(s,e.style,e),i.style={...s,...i.style}}return i}const zp=["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 ui(e){return typeof e!="string"||e.includes("-")?!1:!!(zp.indexOf(e)>-1||/[A-Z]/u.test(e))}function _p(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??ui(e)?Vp:Lp)(t,r,i,e),u=Cp(t,typeof e=="string",s),c=e!==I.Fragment?{...u,...l,ref:n}:{},{children:f}=t,h=I.useMemo(()=>de(f)?f.get():f,[f]);return I.createElement(e,{...c,children:h})}function ja(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ci(e,t,n,r){if(typeof t=="function"){const[i,s]=ja(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ja(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Ln(e){return de(e)?e.get():e}function Bp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$p(n,r,i,e),renderState:t()}}function $p(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=Ln(s[h]);let{initial:o,animate:a}=e;const l=Mn(e),u=Sa(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!jn(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const p=ci(e,h[d]);if(p){const{transitionEnd:m,transition:y,...g}=p;for(const k in g){let v=g[k];if(Array.isArray(v)){const E=c?v.length-1:0;v=v[E]}v!==null&&(i[k]=v)}for(const k in m)i[k]=m[k]}}}return i}const Ma=e=>(t,n)=>{const r=I.useContext(Dn),i=I.useContext(wn),s=()=>Bp(e,t,r,i);return n?s():mr(s)};function fi(e,t,n){const{style:r}=e,i={};for(const s in r)(de(r[s])||t.style&&de(t.style[s])||Pa(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const Up=Ma({scrapeMotionValuesFromProps:fi,createRenderState:li});function La(e,t,n){const r=fi(e,t,n);for(const i in e)if(de(e[i])||de(t[i])){const s=mt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Hp=Ma({scrapeMotionValuesFromProps:La,createRenderState:Ia}),Wp=Symbol.for("motionComponentSymbol");function bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Na(e,t){if(typeof e=="function")return e(t);bt(e)&&(e.current=t)}function qp(e,t,n){const r=I.useRef(null);return I.useCallback(i=>{if(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n)if(i){const s=Na(n,i);typeof s=="function"&&(r.current=s)}else r.current?(r.current(),r.current=null):Na(n,i)},[t,e,n])}const hi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ra="data-"+hi("framerAppearId"),Fa=I.createContext({});function Gp(e,t,n,r,i,s){const{visualElement:o}=I.useContext(Dn),a=I.useContext(wa),l=I.useContext(wn),u=I.useContext(ri).reducedMotion,c=I.useRef(null);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:s}));const f=c.current,h=I.useContext(Fa);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Yp(c.current,n,i,h);const d=I.useRef(!1);I.useInsertionEffect(()=>{f&&d.current&&f.update(n,l)});const p=n[Ra],m=I.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return is(()=>{f&&(d.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),m.current&&f.animationState&&f.animationState.animateChanges())}),I.useEffect(()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),f.enteringChildren=void 0)}),f}function Yp(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Oa(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&bt(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Oa(e){if(e)return e.options.allowProjection!==!1?e.projection:Oa(e.parent)}function di(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vp(r);const s=n?n==="svg":ui(e),o=s?Hp:Up;function a(u,c){let f;const h={...I.useContext(ri),...u,layoutId:Kp(u)},{isStatic:d}=h,p=Pp(u),m=o(u,d);if(!d&&gr){Xp(h,r);const y=Qp(h);f=y.MeasureLayout,p.visualElement=Gp(e,m,h,i,y.ProjectionNode,s)}return b.jsxs(Dn.Provider,{value:p,children:[f&&p.visualElement?b.jsx(f,{visualElement:p.visualElement,...h}):null,_p(e,u,qp(m,p.visualElement,c),m,d,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=I.forwardRef(a);return l[Wp]=e,l}function Kp({layoutId:e}){const t=I.useContext(pr).id;return t&&e!==void 0?t+"-"+e:e}function Xp(e,t){const n=I.useContext(wa).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?ft(!1,r,"lazy-strict-mode"):$e(!1,r,"lazy-strict-mode")}}function Qp(e){const{drag:t,layout:n}=xt;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zp(e,t){if(typeof Proxy>"u")return di;const n=new Map,r=(s,o)=>di(s,o,e,t),i=(s,o)=>(process.env.NODE_ENV!=="production"&&kr(!1,"motion() is deprecated. Use motion.create() instead."),r(s,o));return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,di(o,void 0,e,t)),n.get(o))})}function Va({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Jp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function em(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 pi(e){return e===void 0||e===1}function mi({scale:e,scaleX:t,scaleY:n}){return!pi(e)||!pi(t)||!pi(n)}function it(e){return mi(e)||za(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function za(e){return _a(e.x)||_a(e.y)}function _a(e){return e&&e!=="0%"}function Nn(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=Nn(e,i,r)),Nn(e,n,r)+t}function gi(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 $a(e,{x:t,y:n}){gi(e.x,t.translate,t.scale,t.originPoint),gi(e.y,n.translate,n.scale,n.originPoint)}const Ua=.999999999999,Ha=1.0000000000001;function tm(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&vt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,$a(e,o)),r&&it(s.latestValues)&&vt(e,s.latestValues))}t.x<Ha&&t.x>Ua&&(t.x=1),t.y<Ha&&t.y>Ua&&(t.y=1)}function wt(e,t){e.min=e.min+t,e.max=e.max+t}function Wa(e,t,n,r,i=.5){const s=ie(e.min,e.max,i);gi(e,t,n,s,r)}function vt(e,t){Wa(e.x,t.x,t.scaleX,t.scale,t.originX),Wa(e.y,t.y,t.scaleY,t.scale,t.originY)}function qa(e,t){return Va(em(e.getBoundingClientRect(),t))}function nm(e,t,n){const r=qa(e,n),{scroll:i}=t;return i&&(wt(r.x,i.offset.x),wt(r.y,i.offset.y)),r}const Ga=()=>({translate:0,scale:1,origin:0,originPoint:0}),kt=()=>({x:Ga(),y:Ga()}),Ya=()=>({min:0,max:0}),ce=()=>({x:Ya(),y:Ya()}),yi={current:null},Ka={current:!1};function rm(){if(Ka.current=!0,!!gr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yi.current=e.matches;e.addEventListener("change",t),t()}else yi.current=!1}const im=new WeakMap;function om(e,t,n){for(const r in t){const i=t[r],s=n[r];if(de(i))e.addValue(r,i);else if(de(s))e.addValue(r,yt(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,yt(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Xa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sm{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=we.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,re.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;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=!!s,this.isControllingVariants=Mn(n),this.isVariantNode=Sa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const d=f[h];l[h]!==void 0&&de(d)&&d.set(l[h])}}mount(t){this.current=t,im.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:(Ka.current||rm(),this.shouldReduceMotion=yi.current),process.env.NODE_ENV!=="production"&&kr(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(),Ge(this.notifyUpdate),Ge(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=gt.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&re.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),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 xt){const n=xt[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}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<Xa.length;r++){const i=Xa[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=om(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=yt(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"&&(os(r)||as(r))?r=parseFloat(r):!dp(r)&&Ke.test(n)&&(r=sa(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 s=ci(this.props,n,this.presenceContext?.custom);s&&(r=s[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 vr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ei.render(this.render)}}class Qa extends sm{constructor(){super(...arguments),this.KeyframeResolver=tp}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 Za(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i?.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function am(e){return window.getComputedStyle(e)}class lm extends Qa{constructor(){super(...arguments),this.type="html",this.renderInstance=Za}readValueFromInstance(t,n){if(gt.has(n))return this.projection?.isProjecting?Hr(n):wd(t,n);{const r=am(t),i=(Cs(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qa(t,n)}build(t,n,r){ai(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return fi(t,n,r)}}const Ja=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 um(e,t,n,r){Za(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ja.has(i)?i:hi(i),t.attrs[i])}class cm extends Qa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gt.has(n)){const r=oa(n);return r&&r.default||0}return n=Ja.has(n)?n:hi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return La(t,n,r)}build(t,n,r){Ea(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){um(t,n,r,i)}mount(t){this.isSVGTag=Da(t.tagName),super.mount(t)}}const fm=(e,t)=>t.isSVG??ui(e)?new cm(t):new lm(t,{allowProjection:e!==I.Fragment});function St(e,t,n){const r=e.getProps();return ci(r,t,n!==void 0?n:r.custom,e)}const xi=e=>Array.isArray(e);function hm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yt(n))}function dm(e){return xi(e)?e[e.length-1]||0:e}function pm(e,t){const n=St(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=dm(s[o]);hm(e,o,a)}}function mm(e){return!!(de(e)&&e.add)}function bi(e,t){const n=e.getValue("willChange");if(mm(n))return n.add(t);if(!n&&Ue.WillChange){const r=new Ue.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function el(e){return e.props[Ra]}const gm=e=>e!==null;function ym(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(gm),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const xm={type:"spring",stiffness:500,damping:25,restSpeed:10},bm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wm={type:"keyframes",duration:.8},vm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},km=(e,{keyframes:t})=>t.length>2?wm:gt.has(e)?e.startsWith("scale")?bm(t[1]):xm:vm;function Sm({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const wi=(e,t,n,r={},i,s)=>o=>{const a=Qr(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Me(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Sm(a)||Object.assign(c,km(e,c)),c.duration&&(c.duration=Me(c.duration)),c.repeatDelay&&(c.repeatDelay=Me(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Xr(c),c.delay===0&&(f=!0)),(Ue.instantAnimations||Ue.skipAnimations)&&(f=!0,Xr(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const h=ym(c.keyframes,a);if(h!==void 0){re.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new Br(c):new Ud(c)};function Cm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function tl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in a){const f=e.getValue(c,e.latestValues[c]??null),h=a[c];if(h===void 0||u&&Cm(u,c))continue;const d={delay:n,...Qr(s||{},c)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===p&&!d.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const g=el(e);if(g){const k=window.MotionHandoffAnimation(g,c,re);k!==null&&(d.startTime=k,m=!0)}}bi(e,c),f.start(wi(c,f,h,e.shouldReduceMotion&&ea.has(c)?{type:!1}:d,e,m));const y=f.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{re.update(()=>{o&&pm(e,o)})}),l}function nl(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function vi(e,t,n={}){const r=St(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(tl(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Tm(e,t,l,u,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function Tm(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(vi(l,t,{...o,delay:n+(typeof r=="function"?0:r)+nl(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Pm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>vi(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=vi(e,t,n);else{const i=typeof t=="function"?St(e,t,n.custom):t;r=Promise.all(tl(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function rl(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 Am=oi.length;function il(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?il(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Am;n++){const r=oi[n],i=e.props[r];(Gt(i)||i===!1)&&(t[r]=i)}return t}const Em=[...ii].reverse(),Im=ii.length;function Dm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Pm(e,n,r)))}function jm(e){let t=Dm(e),n=ol(),r=!0;const i=l=>(u,c)=>{const f=St(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:d,...p}=f;u={...u,...p,...d}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=il(e.parent)||{},f=[],h=new Set;let d={},p=1/0;for(let y=0;y<Im;y++){const g=Em[y],k=n[g],v=u[g]!==void 0?u[g]:c[g],E=Gt(v),A=g===l?k.isActive:null;A===!1&&(p=y);let S=v===c[g]&&v!==u[g]&&E;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),k.protectedKeys={...d},!k.isActive&&A===null||!v&&!k.prevProp||jn(v)||typeof v=="boolean")continue;const M=Mm(k.prevProp,v);let D=M||g===l&&k.isActive&&!S&&E||y>p&&E,V=!1;const C=Array.isArray(v)?v:[v];let R=C.reduce(i(g),{});A===!1&&(R={});const{prevResolvedValues:O={}}=k,K={...O,...R},z=W=>{D=!0,h.has(W)&&(V=!0,h.delete(W)),k.needsAnimating[W]=!0;const J=e.getValue(W);J&&(J.liveStyle=!1)};for(const W in K){const J=R[W],ue=O[W];if(d.hasOwnProperty(W))continue;let w=!1;xi(J)&&xi(ue)?w=!rl(J,ue):w=J!==ue,w?J!=null?z(W):h.add(W):J!==void 0&&h.has(W)?z(W):k.protectedKeys[W]=!0}k.prevProp=v,k.prevResolvedValues=R,k.isActive&&(d={...d,...R}),r&&e.blockInitialAnimation&&(D=!1);const N=S&&M;D&&(!N||V)&&f.push(...C.map(W=>{const J={type:g};if(typeof W=="string"&&r&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:ue}=e,w=St(ue,W);if(ue.enteringChildren&&w){const{delayChildren:P}=w.transition||{};J.delay=nl(ue.enteringChildren,e,P)}}return{animation:W,options:J}}))}if(h.size){const y={};if(typeof u.initial!="boolean"){const g=St(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(y.transition=g.transition)}h.forEach(g=>{const k=e.getBaseTarget(g),v=e.getValue(g);v&&(v.liveStyle=!0),y[g]=k??null}),f.push({animation:y})}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=o(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ol()}}}function Mm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rl(t,e):!1}function ot(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ol(){return{animate:ot(!0),whileInView:ot(),whileHover:ot(),whileTap:ot(),whileDrag:ot(),whileFocus:ot(),exit:ot()}}class Xe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Lm extends Xe{constructor(t){super(t),t.animationState||(t.animationState=jm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jn(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 Nm=0;class Rm extends Xe{constructor(){super(...arguments),this.id=Nm++}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 Fm={animation:{Feature:Lm},exit:{Feature:Rm}};function Kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xt(e){return{point:{x:e.pageX,y:e.pageY}}}const Om=e=>t=>ti(t)&&e(t,Xt(t));function Qt(e,t,n,r){return Kt(e,t,Om(n),r)}const sl=1e-4,Vm=1-sl,zm=1+sl,al=.01,_m=0-al,Bm=0+al;function ye(e){return e.max-e.min}function $m(e,t,n){return Math.abs(e-t)<=n}function ll(e,t,n,r=.5){e.origin=r,e.originPoint=ie(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ie(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Vm&&e.scale<=zm||isNaN(e.scale))&&(e.scale=1),(e.translate>=_m&&e.translate<=Bm||isNaN(e.translate))&&(e.translate=0)}function Zt(e,t,n,r){ll(e.x,t.x,n.x,r?r.originX:void 0),ll(e.y,t.y,n.y,r?r.originY:void 0)}function ul(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function Um(e,t,n){ul(e.x,t.x,n.x),ul(e.y,t.y,n.y)}function cl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function Rn(e,t,n){cl(e.x,t.x,n.x),cl(e.y,t.y,n.y)}function Ie(e){return[e("x"),e("y")]}const fl=({current:e})=>e?e.ownerDocument.defaultView:null,hl=(e,t)=>Math.abs(e-t);function Hm(e,t){const n=hl(e.x,t.x),r=hl(e.y,t.y);return Math.sqrt(n**2+r**2)}class dl{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Si(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=Hm(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!p)return;const{point:m}=h,{timestamp:y}=fe;this.history.push({...m,timestamp:y});const{onStart:g,onMove:k}=this.handlers;d||(g&&g(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ki(d,this.transformPagePoint),re.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Si(h.type==="pointercancel"?this.lastMoveEventInfo:ki(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,g),m&&m(h,g)},!ti(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=Xt(t),l=ki(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=fe;this.history=[{...u,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,Si(l,this.history)),this.removeListeners=zt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ge(this.updatePoint)}}function ki(e,t){return t?{point:t(e.point)}:e}function pl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Si({point:e},t){return{point:e,delta:pl(e,ml(t)),offset:pl(e,Wm(t)),velocity:qm(t,.1)}}function Wm(e){return e[0]}function ml(e){return e[e.length-1]}function qm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ml(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Me(t)));)n--;if(!r)return{x:0,y:0};const s=Ee(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Gm(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ie(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ie(n,e,r.max):Math.min(e,n)),e}function gl(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 Ym(e,{top:t,left:n,bottom:r,right:i}){return{x:gl(e.x,n,i),y:gl(e.y,t,r)}}function yl(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 Km(e,t){return{x:yl(e.x,t.x),y:yl(e.y,t.y)}}function Xm(e,t){let n=.5;const r=ye(e),i=ye(t);return i>r?n=_t(t.min,t.max-r,e.min):r>i&&(n=_t(e.min,e.max-i,t.min)),Be(0,1,n)}function Qm(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 Zm(e=Ci){return e===!1?e=0:e===!0&&(e=Ci),{x:xl(e,"left","right"),y:xl(e,"top","bottom")}}function xl(e,t,n){return{min:bl(e,t),max:bl(e,n)}}function bl(e,t){return typeof e=="number"?e:e[t]||0}const Jm=new WeakMap;class eg{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=ce(),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 s=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xt(f).point)},o=(f,h)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=op(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ie(g=>{let k=this.getAxisMotionValue(g).get()||0;if(Oe.test(k)){const{projection:v}=this.visualElement;if(v&&v.layout){const E=v.layout.layoutBox[g];E&&(k=ye(E)*(parseFloat(k)/100))}}this.originPoint[g]=k}),m&&re.postRender(()=>m(f,h)),bi(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=h;if(p&&this.currentDirection===null){this.currentDirection=tg(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),y&&y(f,h)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ie(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new dl(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:fl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&re.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||!Fn(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Gm(o,this.constraints[t],this.elastic[t])),s.set(o)}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&&bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ym(r.layoutBox,t):this.constraints=!1,this.elastic=Zm(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ie(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Qm(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!bt(t))return!1;const r=t.current;$e(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 s=nm(r,i.root,this.visualElement.getTransformPagePoint());let o=Km(i.layout.layoutBox,s);if(n){const a=n(Jp(o));this.hasMutatedConstraints=!!a,a&&(o=Va(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ie(c=>{if(!Fn(c,n,this.currentDirection))return;let f=l&&l[c]||{};o&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return bi(this.visualElement,t),r.start(wi(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ie(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ie(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){Ie(n=>{const{drag:r}=this.getProps();if(!Fn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-ie(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!bt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ie(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Xm({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ie(o=>{if(!Fn(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ie(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Jm.set(this.visualElement,this);const t=this.visualElement.current,n=Qt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();bt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),re.read(r);const o=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ie(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ci,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Fn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ng extends Xe{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new eg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}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 wl=e=>(t,n)=>{e&&re.postRender(()=>e(t,n))};class rg extends Xe{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new dl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:fl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:wl(t),onStart:wl(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&re.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Qt(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 On={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Ti=!1;class ig extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Ti&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),On.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Ti=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||re.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ei.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Ti=!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 vl(e){const[t,n]=xa(),r=I.useContext(pr);return b.jsx(ig,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Fa),isPresent:t,safeToRemove:n})}function og(e,t,n){const r=de(e)?e:yt(e);return r.start(wi("",r,t,n)),r.animation}const sg=(e,t)=>e.depth-t.depth;class ag{constructor(){this.children=[],this.isDirty=!1}add(t){yr(this.children,t),this.isDirty=!0}remove(t){xr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sg),this.isDirty=!1,this.children.forEach(t)}}function lg(e,t){const n=we.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ge(r),e(s-t))};return re.setup(r,!0),()=>Ge(r)}const kl=["TopLeft","TopRight","BottomLeft","BottomRight"],ug=kl.length,Sl=e=>typeof e=="string"?parseFloat(e):e,Cl=e=>typeof e=="number"||F.test(e);function cg(e,t,n,r,i,s){i?(e.opacity=ie(0,n.opacity??1,fg(r)),e.opacityExit=ie(t.opacity??1,0,hg(r))):s&&(e.opacity=ie(t.opacity??1,n.opacity??1,r));for(let o=0;o<ug;o++){const a=`border${kl[o]}Radius`;let l=Tl(t,a),u=Tl(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Cl(l)===Cl(u)?(e[a]=Math.max(ie(Sl(l),Sl(u),r),0),(Oe.test(u)||Oe.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ie(t.rotate||0,n.rotate||0,r))}function Tl(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const fg=Pl(0,.5,gs),hg=Pl(.5,.95,Ae);function Pl(e,t,n){return r=>r<e?0:r>t?1:n(_t(e,t,r))}function Al(e,t){e.min=t.min,e.max=t.max}function Ne(e,t){Al(e.x,t.x),Al(e.y,t.y)}function El(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Il(e,t,n,r,i){return e-=t,e=Nn(e,1/n,r),i!==void 0&&(e=Nn(e,1/i,r)),e}function dg(e,t=0,n=1,r=.5,i,s=e,o=e){if(Oe.test(t)&&(t=parseFloat(t),t=ie(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ie(s.min,s.max,r);e===s&&(a-=t),e.min=Il(e.min,t,n,a,i),e.max=Il(e.max,t,n,a,i)}function Dl(e,t,[n,r,i],s,o){dg(e,t[n],t[r],t[i],t.scale,s,o)}const pg=["x","scaleX","originX"],mg=["y","scaleY","originY"];function jl(e,t,n,r){Dl(e.x,t,pg,n?n.x:void 0,r?r.x:void 0),Dl(e.y,t,mg,n?n.y:void 0,r?r.y:void 0)}function Ml(e){return e.translate===0&&e.scale===1}function Ll(e){return Ml(e.x)&&Ml(e.y)}function Nl(e,t){return e.min===t.min&&e.max===t.max}function gg(e,t){return Nl(e.x,t.x)&&Nl(e.y,t.y)}function Rl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fl(e,t){return Rl(e.x,t.x)&&Rl(e.y,t.y)}function Ol(e){return ye(e.x)/ye(e.y)}function Vl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class yg{constructor(){this.members=[]}add(t){yr(this.members,t),t.scheduleRender()}remove(t){if(xr(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 s=this.members[i];if(s.isPresent!==!1){r=s;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 xg(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=n?.z||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:h,skewX:d,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),d&&(r+=`skewX(${d}deg) `),p&&(r+=`skewY(${p}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 Pi=["","X","Y","Z"],bg=1e3;let wg=0;function Ai(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=el(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",re,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zl(r)}function _l({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t?.()){this.id=wg++,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(Sg),this.nodes.forEach(Ag),this.nodes.forEach(Eg),this.nodes.forEach(Cg)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 ag)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new vr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=ga(o)&&!fp(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;re.read(()=>{f=window.innerWidth}),e(o,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c&&c(),c=lg(h,250),On.hasAnimatedSinceResize&&(On.hasAnimatedSinceResize=!1,this.nodes.forEach(Ul)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Lg,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!Fl(this.targetLayout,d),k=!f&&h;if(this.options.layoutRoot||this.resumeFrom||k||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Qr(p,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,k)}else f||Ul(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ge(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(Ig),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zl(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(),o&&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($l);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pg),this.nodes.forEach(vg),this.nodes.forEach(kg)):this.nodes.forEach($l),this.clearAllSnapshots();const a=we.now();fe.delta=Be(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Tr.update.process(fe),Tr.preRender.process(fe),Tr.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Tg),this.sharedNodes.forEach(Dg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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 o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ce(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ll(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||it(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Ng(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return ce();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Rg))){const{scroll:u}=this.root;u&&(wt(a.x,u.offset.x),wt(a.y,u.offset.y))}return a}removeElementScroll(o){const a=ce();if(Ne(a,o),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&&Ne(a,o),wt(a.x,c.offset.x),wt(a.y,c.offset.y))}return a}applyTransform(o,a=!1){const l=ce();Ne(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&vt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),it(c.latestValues)&&vt(l,c.latestValues)}return it(this.latestValues)&&vt(l,this.latestValues),l}removeTransform(o){const a=ce();Ne(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!it(u.latestValues))continue;mi(u.latestValues)&&u.updateSnapshot();const c=ce(),f=u.measurePageBox();Ne(c,f),jl(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return it(this.latestValues)&&jl(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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(!(o||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=fe.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ce(),this.targetWithTransforms=ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Um(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ne(this.target,this.layout.layoutBox),$a(this.target,this.targetDelta)):Ne(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||mi(this.parent.latestValues)||za(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ce(),this.relativeTargetOrigin=ce(),Rn(this.relativeTargetOrigin,a,l),Ne(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===fe.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;Ne(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;tm(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ce());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(El(this.prevProjectionDelta.x,this.projectionDelta.x),El(this.prevProjectionDelta.y,this.projectionDelta.y)),Zt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Vl(this.projectionDelta.x,this.prevProjectionDelta.x)||!Vl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kt(),this.projectionDelta=kt(),this.projectionDeltaWithTransform=kt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=kt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ce(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,y=this.getStack(),g=!y||y.members.length<=1,k=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(Mg));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const A=E/1e3;Hl(f.x,o.x,A),Hl(f.y,o.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jg(this.relativeTarget,this.relativeTargetOrigin,h,A),v&&gg(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ce()),Ne(v,this.relativeTarget)),m&&(this.animationValues=c,cg(c,u,this.latestValues,A,k,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ge(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=re.update(()=>{On.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=yt(0)),this.currentAnimation=og(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Kl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ce();const f=ye(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=ye(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Ne(a,l),vt(a,c),Zt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new yg),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ai("z",o,u,this.animationValues);for(let c=0;c<Pi.length;c++)Ai(`rotate${Pi[c]}`,o,u,this.animationValues),Ai(`skew${Pi[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ln(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ln(a?.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=xg(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:h,y:d}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in si){if(c[p]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:g}=si[p],k=f==="none"?c[p]:m(c[p],u);if(y){const v=y.length;for(let E=0;E<v;E++)o[y[E]]=k}else g?this.options.visualElement.renderState.vars[p]=k:o[p]=k}this.options.layoutId&&(o.pointerEvents=u===this?Ln(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Bl),this.root.sharedNodes.clear()}}}function vg(e){e.updateLayout()}function kg(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,s=t.source!==e.layout.source;i==="size"?Ie(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=ye(f);f.min=n[c].min,f.max=f.min+h}):Kl(i,t.layoutBox,n)&&Ie(c=>{const f=s?t.measuredBox[c]:t.layoutBox[c],h=ye(n[c]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+h)});const o=kt();Zt(o,n,t.layoutBox);const a=kt();s?Zt(a,e.applyTransform(r,!0),t.measuredBox):Zt(a,n,t.layoutBox);const l=!Ll(o);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:h}=c;if(f&&h){const d=ce();Rn(d,t.layoutBox,f.layoutBox);const p=ce();Rn(p,n,h.layoutBox),Fl(d,p)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=d,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Sg(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 Cg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Tg(e){e.clearSnapshot()}function Bl(e){e.clearMeasurements()}function $l(e){e.isLayoutDirty=!1}function Pg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ul(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ag(e){e.resolveTargetDelta()}function Eg(e){e.calcProjection()}function Ig(e){e.resetSkewAndRotation()}function Dg(e){e.removeLeadSnapshot()}function Hl(e,t,n){e.translate=ie(t.translate,0,n),e.scale=ie(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wl(e,t,n,r){e.min=ie(t.min,n.min,r),e.max=ie(t.max,n.max,r)}function jg(e,t,n,r){Wl(e.x,t.x,n.x,r),Wl(e.y,t.y,n.y,r)}function Mg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lg={duration:.45,ease:[.4,0,.1,1]},ql=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gl=ql("applewebkit/")&&!ql("chrome/")?Math.round:Ae;function Yl(e){e.min=Gl(e.min),e.max=Gl(e.max)}function Ng(e){Yl(e.x),Yl(e.y)}function Kl(e,t,n){return e==="position"||e==="preserve-aspect"&&!$m(Ol(t),Ol(n),.2)}function Rg(e){return e!==e.root&&e.scroll?.wasRoot}const Fg=_l({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ei={current:void 0},Xl=_l({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ei.current){const e=new Fg({});e.mount(window),e.setOptions({layoutScroll:!0}),Ei.current=e}return Ei.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Og={pan:{Feature:rg},drag:{Feature:ng,ProjectionNode:Xl,MeasureLayout:vl}};function Ql(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&re.postRender(()=>s(t,Xt(t)))}class Vg extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=sp(t,(n,r)=>(Ql(this.node,r,"Start"),i=>Ql(this.node,i,"End"))))}unmount(){}}class zg extends Xe{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=zt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zl(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),s=r[i];s&&re.postRender(()=>s(t,Xt(t)))}class _g extends Xe{mount(){const{current:t}=this.node;t&&(this.unmount=cp(t,(n,r)=>(Zl(this.node,r,"Start"),(i,{success:s})=>Zl(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ii=new WeakMap,Di=new WeakMap,Bg=e=>{const t=Ii.get(e.target);t&&t(e)},$g=e=>{e.forEach(Bg)};function Ug({root:e,...t}){const n=e||document;Di.has(n)||Di.set(n,{});const r=Di.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($g,{root:e,...t})),r[i]}function Hg(e,t,n){const r=Ug(t);return Ii.set(e,n),r.observe(e),()=>{Ii.delete(e),r.unobserve(e)}}const Wg={some:0,all:1};class qg extends Xe{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:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Wg[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),h=u?c:f;h&&h(l)};return Hg(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Gg(t,n))&&this.startObserver()}unmount(){}}function Gg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Yg={...Fm,...{inView:{Feature:qg},tap:{Feature:_g},focus:{Feature:zg},hover:{Feature:Vg}},...Og,...{layout:{ProjectionNode:Xl,MeasureLayout:vl}}},ve=Zp(Yg,fm),Jl=e=>{const{title:t,href:n,description:r,icon:i,badge:s,isActive:o=!1,className:a="",showDescription:l=!0,onClick:u,target:c="_self",compact:f=!1}=e,h=["menu-item",o?"active":"",f?"compact":"",!r||!l?"no-description":"",a].filter(Boolean).join(" ");return b.jsxs(ve.a,{href:n,target:c,onClick:u,className:h,whileHover:{scale:1.01,x:4},whileTap:{scale:.99},transition:{duration:.1},children:[i&&b.jsx(ve.div,{className:"menu-item-icon",whileHover:{rotate:5},children:b.jsx(he,{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}),s&&b.jsx(ve.span,{className:"menu-item-badge",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200},children:s})]}),r&&l&&b.jsx(ve.p,{className:"menu-item-description",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.2},children:r})]})]})},eu=e=>{const{children:t,columns:n=3,className:r="",gridClassName:i=""}=e,s=`menu-grid columns-${n} ${i}`;return b.jsx("div",{className:`menu-grid-container ${r}`,children:b.jsx("div",{className:s,children:t})})},tu=e=>{const{title:t,description:n,href:r,icon:i,badge:s,compact:o=!1,showDescription:a=!0,className:l=""}=e,u=`menu-grid-item ${o?"compact":"regular"} ${l}`;return b.jsx(ve.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:[s&&b.jsx(ve.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:s}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(ve.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(he,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]}):b.jsxs(nr.Link,{to:r,className:"menu-grid-link",children:[s&&b.jsx(ve.span,{className:"menu-grid-badge",initial:{scale:0},animate:{scale:1},children:s}),b.jsxs("div",{className:"menu-grid-header",children:[i&&b.jsx(ve.div,{className:"menu-grid-icon",whileHover:{rotate:5,scale:1.1},children:b.jsx(he,{icon:i})}),b.jsx("span",{className:"menu-grid-title",children:t})]}),n&&a&&b.jsx("span",{className:"menu-grid-description",children:n})]})})},nu=({title:e,subtitle:t,imageSrc:n,actionLabel:r,href:i,textAlignment:s="left",padding:o="none",className:a="",inverted:l=!1,focalPoint:u="center"})=>{const c={top:"center top",left:"left center",right:"right center",bottom:"center bottom",center:"center center"},f=n?{backgroundImage:`url(${n})`,backgroundPosition:c[u]}:{},h={left:"text-left items-start",center:"text-center items-center",right:"text-right items-end",justify:"text-justify"}[s],d={none:"p-none",small:"p-small",medium:"p-medium",large:"p-large"}[o];return b.jsxs(ve.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 ${h} ${d}`,children:[b.jsx(ve.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(ve.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(ve.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})})]})]})},ru=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(he,{icon:t,className:"icon-button-icon"})})};function Yk(){}function Kk(){}function Kg(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Xg=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qg=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zg={};function iu(e,t){return(Zg.jsx?Qg:Xg).test(e)}const Jg=/[ \t\n\f\r]/g;function ey(e){return typeof e=="object"?e.type==="text"?ou(e.value):!1:ou(e)}function ou(e){return e.replace(Jg,"")===""}class Jt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Jt.prototype.normal={},Jt.prototype.property={},Jt.prototype.space=void 0;function su(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Jt(n,r,t)}function ji(e){return e.toLowerCase()}class ke{constructor(t,n){this.attribute=n,this.property=t}}ke.prototype.attribute="",ke.prototype.booleanish=!1,ke.prototype.boolean=!1,ke.prototype.commaOrSpaceSeparated=!1,ke.prototype.commaSeparated=!1,ke.prototype.defined=!1,ke.prototype.mustUseProperty=!1,ke.prototype.number=!1,ke.prototype.overloadedBoolean=!1,ke.prototype.property="",ke.prototype.spaceSeparated=!1,ke.prototype.space=void 0;let ty=0;const H=st(),le=st(),Mi=st(),j=st(),te=st(),Ct=st(),Ce=st();function st(){return 2**++ty}const Li=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:le,commaOrSpaceSeparated:Ce,commaSeparated:Ct,number:j,overloadedBoolean:Mi,spaceSeparated:te},Symbol.toStringTag,{value:"Module"})),Ni=Object.keys(Li);class Ri extends ke{constructor(t,n,r,i){let s=-1;if(super(t,n),au(this,"space",i),typeof r=="number")for(;++s<Ni.length;){const o=Ni[s];au(this,Ni[s],(r&Li[o])===Li[o])}}}Ri.prototype.defined=!0;function au(e,t,n){n&&(e[t]=n)}function Tt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Ri(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ji(r)]=r,n[ji(s.attribute)]=r}return new Jt(t,n,e.space)}const lu=Tt({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:j,ariaColIndex:j,ariaColSpan:j,ariaControls:te,ariaCurrent:null,ariaDescribedBy:te,ariaDetails:null,ariaDisabled:le,ariaDropEffect:te,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:te,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:te,ariaLevel:j,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:te,ariaPlaceholder:null,ariaPosInSet:j,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:te,ariaRowCount:j,ariaRowIndex:j,ariaRowSpan:j,ariaSelected:le,ariaSetSize:j,ariaSort:null,ariaValueMax:j,ariaValueMin:j,ariaValueNow:j,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function uu(e,t){return t in e?e[t]:t}function cu(e,t){return uu(e,t.toLowerCase())}const ny=Tt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ct,acceptCharset:te,accessKey:te,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:te,autoFocus:H,autoPlay:H,blocking:te,capture:null,charSet:null,checked:H,cite:null,className:te,cols:j,colSpan:null,content:null,contentEditable:le,controls:H,controlsList:te,coords:j|Ct,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:Mi,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:te,height:j,hidden:Mi,high:j,href:null,hrefLang:null,htmlFor:te,httpEquiv:te,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:te,itemRef:te,itemScope:H,itemType:te,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:j,manifest:null,max:null,maxLength:j,media:null,method:null,min:null,minLength:j,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:j,pattern:null,ping:te,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:te,required:H,reversed:H,rows:j,rowSpan:j,sandbox:te,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:j,sizes:null,slot:null,span:j,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:j,step:null,style:null,tabIndex:j,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:le,width:j,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:te,axis:null,background:null,bgColor:null,border:j,borderColor:null,bottomMargin:j,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:j,leftMargin:j,link:null,longDesc:null,lowSrc:null,marginHeight:j,marginWidth:j,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:j,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:j,valueType:null,version:null,vAlign:null,vLink:null,vSpace:j,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:j,security:null,unselectable:null},space:"html",transform:cu}),ry=Tt({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:Ce,accentHeight:j,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:j,amplitude:j,arabicForm:null,ascent:j,attributeName:null,attributeType:null,azimuth:j,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:j,by:null,calcMode:null,capHeight:j,className:te,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:j,diffuseConstant:j,direction:null,display:null,dur:null,divisor:j,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:j,enableBackground:null,end:null,event:null,exponent:j,externalResourcesRequired:null,fill:null,fillOpacity:j,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:Ct,g2:Ct,glyphName:Ct,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:j,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:j,horizOriginX:j,horizOriginY:j,id:null,ideographic:j,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:j,k:j,k1:j,k2:j,k3:j,k4:j,kernelMatrix:Ce,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:j,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:j,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:j,overlineThickness:j,paintOrder:null,panose1:null,path:null,pathLength:j,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:te,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:j,pointsAtY:j,pointsAtZ:j,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ce,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ce,rev:Ce,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ce,requiredFeatures:Ce,requiredFonts:Ce,requiredFormats:Ce,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:j,specularExponent:j,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:j,strikethroughThickness:j,string:null,stroke:null,strokeDashArray:Ce,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:j,strokeOpacity:j,strokeWidth:null,style:null,surfaceScale:j,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ce,tabIndex:j,tableValues:null,target:null,targetX:j,targetY:j,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ce,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:j,underlineThickness:j,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:j,values:null,vAlphabetic:j,vMathematical:j,vectorEffect:null,vHanging:j,vIdeographic:j,version:null,vertAdvY:j,vertOriginX:j,vertOriginY:j,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:j,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:uu}),fu=Tt({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()}}),hu=Tt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:cu}),du=Tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iy={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"},oy=/[A-Z]/g,pu=/-[a-z]/g,sy=/^data[-\w.:]+$/i;function ay(e,t){const n=ji(t);let r=t,i=ke;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sy.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(pu,uy);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!pu.test(s)){let o=s.replace(oy,ly);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ri}return new i(r,t)}function ly(e){return"-"+e.toLowerCase()}function uy(e){return e.charAt(1).toUpperCase()}const cy=su([lu,ny,fu,hu,du],"html"),Fi=su([lu,ry,fu,hu,du],"svg");function fy(e){return e.join(" ").trim()}var Pt={},Oi,mu;function hy(){if(mu)return Oi;mu=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
16
16
|
`,u="/",c="*",f="",h="comment",d="declaration";function p(y,g){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];g=g||{};var k=1,v=1;function E(z){var N=z.match(t);N&&(k+=N.length);var X=z.lastIndexOf(l);v=~X?z.length-X:v+z.length}function A(){var z={line:k,column:v};return function(N){return N.position=new S(z),V(),N}}function S(z){this.start=z,this.end={line:k,column:v},this.source=g.source}S.prototype.content=y;function M(z){var N=new Error(g.source+":"+k+":"+v+": "+z);if(N.reason=z,N.filename=g.source,N.line=k,N.column=v,N.source=y,!g.silent)throw N}function D(z){var N=z.exec(y);if(N){var X=N[0];return E(X),y=y.slice(X.length),N}}function V(){D(n)}function C(z){var N;for(z=z||[];N=R();)N!==!1&&z.push(N);return z}function R(){var z=A();if(!(u!=y.charAt(0)||c!=y.charAt(1))){for(var N=2;f!=y.charAt(N)&&(c!=y.charAt(N)||u!=y.charAt(N+1));)++N;if(N+=2,f===y.charAt(N-1))return M("End of comment missing");var X=y.slice(2,N-2);return v+=2,E(X),y=y.slice(N),v+=2,z({type:h,comment:X})}}function O(){var z=A(),N=D(r);if(N){if(R(),!D(i))return M("property missing ':'");var X=D(s),W=z({type:d,property:m(N[0].replace(e,f)),value:X?m(X[0].replace(e,f)):f});return D(o),W}}function K(){var z=[];C(z);for(var N;N=O();)N!==!1&&(z.push(N),C(z));return z}return V(),K()}function m(y){return y?y.replace(a,f):f}return Oi=p,Oi}var gu;function dy(){if(gu)return Pt;gu=1;var e=Pt&&Pt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.default=n;const t=e(hy());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const o=(0,t.default)(r),a=typeof i=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;a?i(u,c,l):c&&(s=s||{},s[u]=c)}),s}return Pt}var en={},yu;function py(){if(yu)return en;yu=1,Object.defineProperty(en,"__esModule",{value:!0}),en.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(u){return!u||n.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),s(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,o))};return en.camelCase=l,en}var tn,xu;function my(){if(xu)return tn;xu=1;var e=tn&&tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(dy()),n=py();function r(i,s){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(a,l){a&&l&&(o[(0,n.camelCase)(a,s)]=l)}),o}return r.default=r,tn=r,tn}var gy=my();const yy=Eo(gy),bu=wu("end"),Vi=wu("start");function wu(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 xy(e){const t=Vi(e),n=bu(e);if(t&&n)return{start:t,end:n}}function nn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vu(e.position):"start"in e||"end"in e?vu(e):"line"in e||"column"in e?zi(e):""}function zi(e){return ku(e&&e.line)+":"+ku(e&&e.column)}function vu(e){return zi(e&&e.start)+"-"+zi(e&&e.end)}function ku(e){return e&&typeof e=="number"?e:1}class pe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.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=nn(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pe.prototype.file="",pe.prototype.name="",pe.prototype.reason="",pe.prototype.message="",pe.prototype.stack="",pe.prototype.column=void 0,pe.prototype.line=void 0,pe.prototype.ancestors=void 0,pe.prototype.cause=void 0,pe.prototype.fatal=void 0,pe.prototype.place=void 0,pe.prototype.ruleId=void 0,pe.prototype.source=void 0;const _i={}.hasOwnProperty,by=new Map,wy=/[A-Z]/g,vy=new Set(["table","tbody","thead","tfoot","tr"]),ky=new Set(["td","th"]),Su="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Sy(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=jy(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=Dy(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"?Fi:cy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=Cu(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function Cu(e,t,n){if(t.type==="element")return Cy(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ty(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ay(e,t,n);if(t.type==="mdxjsEsm")return Py(e,t);if(t.type==="root")return Ey(e,t,n);if(t.type==="text")return Iy(e,t)}function Cy(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fi,e.schema=i),e.ancestors.push(t);const s=Pu(e,t.tagName,!1),o=My(e,t);let a=$i(e,t);return vy.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!ey(l):!0})),Tu(e,o,s,t),Bi(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function Ty(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)}rn(e,t.position)}function Py(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rn(e,t.position)}function Ay(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Fi,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:Pu(e,t.name,!0),o=Ly(e,t),a=$i(e,t);return Tu(e,o,s,t),Bi(o,a),e.ancestors.pop(),e.schema=r,e.create(t,s,o,n)}function Ey(e,t,n){const r={};return Bi(r,$i(e,t)),e.create(t,e.Fragment,r,n)}function Iy(e,t){return t.value}function Tu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Bi(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Dy(e,t,n){return r;function r(i,s,o,a){const u=Array.isArray(o.children)?n:t;return a?u(s,o,a):u(s,o)}}function jy(e,t){return n;function n(r,i,s,o){const a=Array.isArray(s.children),l=Vi(r);return t(i,s,o,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function My(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&_i.call(t.properties,i)){const s=Ny(e,i,t.properties[i]);if(s){const[o,a]=s;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&ky.has(t.tagName)?r=a:n[o]=a}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ly(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const o=s.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else rn(e,t.position);else{const i=r.name;let s;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,s=e.evaluater.evaluateExpression(a.expression)}else rn(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function $i(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:by;for(;++r<t.children.length;){const s=t.children[r];let o;if(e.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=i.get(l)||0;o=l+"-"+u,i.set(l,u+1)}}const a=Cu(e,s,o);a!==void 0&&n.push(a)}return n}function Ny(e,t,n){const r=ay(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Kg(n):fy(n)),r.property==="style"){let i=typeof n=="object"?n:Ry(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Fy(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?iy[r.property]||r.property:r.attribute,n]}}function Ry(e,t){try{return yy(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new pe("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=Su+"#cannot-parse-style-attribute",i}}function Pu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,o;for(;++s<i.length;){const a=iu(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=o}else r=iu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return _i.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);rn(e)}function rn(e,t){const n=new pe("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=Su+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Fy(e){const t={};let n;for(n in e)_i.call(e,n)&&(t[Oy(n)]=e[n]);return t}function Oy(e){let t=e.replace(wy,Vy);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Vy(e){return"-"+e.toLowerCase()}const Ui={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"]},zy={};function Hi(e,t){const n=zy,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Au(e,r,i)}function Au(e,t,n){if(_y(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 Eu(e.children,t,n)}return Array.isArray(e)?Eu(e,t,n):""}function Eu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Au(e[i],t,n);return r.join("")}function _y(e){return!!(e&&typeof e=="object")}const Iu=document.createElement("i");function Wi(e){const t="&"+e+";";Iu.innerHTML=t;const n=Iu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Te(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function De(e,t){return e.length>0?(Te(e,e.length,0,t),e):t}const Du={}.hasOwnProperty;function ju(e){const t={};let n=-1;for(;++n<e.length;)By(t,e[n]);return t}function By(e,t){let n;for(n in t){const i=(Du.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Du.call(i,o)||(i[o]=[]);const a=s[o];$y(i[o],Array.isArray(a)?a:a?[a]:[])}}}function $y(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Te(e,0,0,r)}function Mu(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 Re(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xe=Qe(/[A-Za-z]/),me=Qe(/[\dA-Za-z]/),Uy=Qe(/[#-'*+\--9=?A-Z^-~]/);function Vn(e){return e!==null&&(e<32||e===127)}const qi=Qe(/\d/),Hy=Qe(/[\dA-Fa-f]/),Wy=Qe(/[!-/:-@[-`{-~]/);function _(e){return e!==null&&e<-2}function Z(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const zn=Qe(new RegExp("\\p{P}|\\p{S}","u")),at=Qe(/\s/);function Qe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function At(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&me(e.charCodeAt(n+1))&&me(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const a=e.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(o=String.fromCharCode(s,a),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Y(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(l){return q(l)?(e.enter(n),a(l)):t(l)}function a(l){return q(l)&&s++<i?(e.consume(l),a):(e.exit(n),t(l))}}const qy={tokenize:Gy};function Gy(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"),Y(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return _(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}const Yy={tokenize:Ky},Lu={tokenize:Xy};function Ky(e){const t=this,n=[];let r=0,i,s,o;return a;function a(v){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&k();const E=t.events.length;let A=E,S;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){S=t.events[A][1].end;break}g(r);let M=E;for(;M<t.events.length;)t.events[M][1].end={...S},M++;return Te(t.events,A+1,0,t.events.slice(E)),t.events.length=M,u(v)}return a(v)}function u(v){if(r===n.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return p(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lu,c,f)(v)}function c(v){return i&&k(),g(r),h(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,p(v)}function h(v){return t.containerState={},e.attempt(Lu,d,p)(v)}function d(v){return r++,n.push([t.currentConstruct,t.containerState]),h(v)}function p(v){if(v===null){i&&k(),g(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),m(v)}function m(v){if(v===null){y(e.exit("chunkFlow"),!0),g(0),e.consume(v);return}return _(v)?(e.consume(v),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),m)}function y(v,E){const A=t.sliceStream(v);if(E&&A.push(null),v.previous=s,s&&(s.next=v),s=v,i.defineSkip(v.start),i.write(A),t.parser.lazy[v.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const M=t.events.length;let D=M,V,C;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(V){C=t.events[D][1].end;break}V=!0}for(g(r),S=M;S<t.events.length;)t.events[S][1].end={...C},S++;Te(t.events,D+1,0,t.events.slice(M)),t.events.length=S}}function g(v){let E=n.length;for(;E-- >v;){const A=n[E];t.containerState=A[1],A[0].exit.call(t,e)}n.length=v}function k(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Xy(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Et(e){if(e===null||Z(e)||at(e))return 1;if(zn(e))return 2}function _n(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Gi={name:"attention",resolveAll:Qy,tokenize:Zy};function Qy(e,t){let n=-1,r,i,s,o,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};Nu(f,-l),Nu(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=De(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=De(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",s,t]]),u=De(u,_n(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=De(u,[["exit",s,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=De(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Te(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 Zy(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Et(r);let s;return o;function o(l){return s=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===s)return e.consume(l),a;const u=e.exit("attentionSequence"),c=Et(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?f:f&&(i||!h)),u._close=!!(s===42?h:h&&(c||!f)),t(l)}}function Nu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Jy={name:"autolink",tokenize:ex};function ex(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(d){return xe(d)?(e.consume(d),o):d===64?n(d):u(d)}function o(d){return d===43||d===45||d===46||me(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||me(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Vn(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Uy(d)?(e.consume(d),u):n(d)}function c(d){return me(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||me(d))&&r++<63){const p=d===45?h:f;return e.consume(d),p}return n(d)}}const on={partial:!0,tokenize:tx};function tx(e,t,n){return r;function r(s){return q(s)?Y(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||_(s)?t(s):n(s)}}const Ru={continuation:{tokenize:rx},exit:ix,name:"blockQuote",tokenize:nx};function nx(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return q(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function rx(e,t,n){const r=this;return i;function i(o){return q(o)?Y(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(Ru,t,n)(o)}}function ix(e){e.exit("blockQuote")}const Fu={name:"characterEscape",tokenize:ox};function ox(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Wy(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Ou={name:"characterReference",tokenize:sx};function sx(e,t,n){const r=this;let i=0,s,o;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"),s=31,o=me,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=Hy,c):(e.enter("characterReferenceValue"),s=7,o=qi,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return o===me&&!Wi(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<s?(e.consume(f),c):n(f)}}const Vu={partial:!0,tokenize:lx},zu={concrete:!0,name:"codeFenced",tokenize:ax};function ax(e,t,n){const r=this,i={partial:!0,tokenize:A};let s=0,o=0,a;return l;function l(S){return u(S)}function u(S){const M=r.events[r.events.length-1];return s=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===a?(o++,e.consume(S),c):o<3?n(S):(e.exit("codeFencedFenceSequence"),q(S)?Y(e,f,"whitespace")(S):f(S))}function f(S){return S===null||_(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(Vu,m,E)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||_(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):q(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,d,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),h)}function d(S){return S===null||_(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||_(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===a?n(S):(e.consume(S),p)}function m(S){return e.attempt(i,E,y)(S)}function y(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g}function g(S){return s>0&&q(S)?Y(e,k,"linePrefix",s+1)(S):k(S)}function k(S){return S===null||_(S)?e.check(Vu,m,E)(S):(e.enter("codeFlowValue"),v(S))}function v(S){return S===null||_(S)?(e.exit("codeFlowValue"),k(S)):(e.consume(S),v)}function E(S){return e.exit("codeFenced"),t(S)}function A(S,M,D){let V=0;return C;function C(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),R}function R(N){return S.enter("codeFencedFence"),q(N)?Y(S,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):O(N)}function O(N){return N===a?(S.enter("codeFencedFenceSequence"),K(N)):D(N)}function K(N){return N===a?(V++,S.consume(N),K):V>=o?(S.exit("codeFencedFenceSequence"),q(N)?Y(S,z,"whitespace")(N):z(N)):D(N)}function z(N){return N===null||_(N)?(S.exit("codeFencedFence"),M(N)):D(N)}}}function lx(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Yi={name:"codeIndented",tokenize:cx},ux={partial:!0,tokenize:fx};function cx(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Y(e,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):_(u)?e.attempt(ux,o,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||_(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function fx(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):_(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Y(e,s,"linePrefix",5)(o)}function s(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):_(o)?i(o):n(o)}}const hx={name:"codeText",previous:px,resolve:dx,tokenize:mx};function dx(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 px(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mx(e,t,n){let r=0,i,s;return o;function o(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?(s=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)):(s.type="codeTextData",u(f))}}class gx{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 s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&sn(this.left,r),s.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),sn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),sn(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);sn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);sn(this.left,n.reverse())}}}function sn(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 _u(e){const t={};let n=-1,r,i,s,o,a,l,u;const c=new gx(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,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,yx(c,n)),n=t[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(o=c.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);else if(!(o[1].type==="linePrefix"||o[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 Te(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function yx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,l=[],u={};let c,f,h=-1,d=n,p=0,m=0;const y=[m];for(;d;){for(;e.get(++i)[1]!==d;);s.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(m=h+1,y.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){const g=a.slice(y[h],y[h+1]),k=s.pop();l.push([k,k+g.length-1]),e.splice(k,2,g)}for(l.reverse(),h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}const xx={resolve:wx,tokenize:vx},bx={partial:!0,tokenize:kx};function wx(e){return _u(e),e}function vx(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?s(a):_(a)?e.check(bx,o,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function kx(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Y(e,s,"linePrefix")}function s(o){if(o===null||_(o))return n(o);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(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Bu(e,t,n,r,i,s,o,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(s),e.consume(g),e.exit(s),h):g===null||g===32||g===41||Vn(g)?n(g):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(g))}function h(g){return g===62?(e.enter(s),e.consume(g),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||_(g)?n(g):(e.consume(g),g===92?p:d)}function p(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function m(g){return!c&&(g===null||g===41||Z(g))?(e.exit("chunkString"),e.exit(a),e.exit(o),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||Vn(g)?n(g):(e.consume(g),g===92?y:m)}function y(g){return g===40||g===41||g===92?(e.consume(g),m):m(g)}}function $u(e,t,n,r,i,s){const o=this;let a=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(s),c}function c(d){return a>999||d===null||d===91||d===93&&!l||d===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):_(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||_(d)||a++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!q(d)),d===92?h:f)}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function Uu(e,t,n,r,i,s){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(s),u(h))}function u(h){return h===o?(e.exit(s),l(o)):h===null?n(h):_(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Y(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||_(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===o||h===92?(e.consume(h),c):c(h)}}function an(e,t){let n;return r;function r(i){return _(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):q(i)?Y(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Sx={name:"definition",tokenize:Tx},Cx={partial:!0,tokenize:Px};function Tx(e,t,n){const r=this;let i;return s;function s(d){return e.enter("definition"),o(d)}function o(d){return $u.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return Z(d)?an(e,u)(d):u(d)}function u(d){return Bu(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Cx,f,f)(d)}function f(d){return q(d)?Y(e,h,"whitespace")(d):h(d)}function h(d){return d===null||_(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function Px(e,t,n){return r;function r(a){return Z(a)?an(e,i)(a):n(a)}function i(a){return Uu(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return q(a)?Y(e,o,"whitespace")(a):o(a)}function o(a){return a===null||_(a)?t(a):n(a)}}const Ax={name:"hardBreakEscape",tokenize:Ex};function Ex(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return _(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Ix={name:"headingAtx",resolve:Dx,tokenize:jx};function Dx(e,t){let n=e.length-2,r=3,i,s;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},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Te(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function jx(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Z(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)):q(c)?Y(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||Z(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Mx=["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"],Hu=["pre","script","style","textarea"],Lx={concrete:!0,name:"htmlFlow",resolveTo:Fx,tokenize:Ox},Nx={partial:!0,tokenize:zx},Rx={partial:!0,tokenize:Vx};function Fx(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 Ox(e,t,n){const r=this;let i,s,o,a,l;return u;function u(x){return c(x)}function c(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),f}function f(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),s=!0,m):x===63?(e.consume(x),i=3,r.interrupt?t:w):xe(x)?(e.consume(x),o=String.fromCharCode(x),y):n(x)}function h(x){return x===45?(e.consume(x),i=2,d):x===91?(e.consume(x),i=5,a=0,p):xe(x)?(e.consume(x),i=4,r.interrupt?t:w):n(x)}function d(x){return x===45?(e.consume(x),r.interrupt?t:w):n(x)}function p(x){const Q="CDATA[";return x===Q.charCodeAt(a++)?(e.consume(x),a===Q.length?r.interrupt?t:O:p):n(x)}function m(x){return xe(x)?(e.consume(x),o=String.fromCharCode(x),y):n(x)}function y(x){if(x===null||x===47||x===62||Z(x)){const Q=x===47,je=o.toLowerCase();return!Q&&!s&&Hu.includes(je)?(i=1,r.interrupt?t(x):O(x)):Mx.includes(o.toLowerCase())?(i=6,Q?(e.consume(x),g):r.interrupt?t(x):O(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):s?k(x):v(x))}return x===45||me(x)?(e.consume(x),o+=String.fromCharCode(x),y):n(x)}function g(x){return x===62?(e.consume(x),r.interrupt?t:O):n(x)}function k(x){return q(x)?(e.consume(x),k):C(x)}function v(x){return x===47?(e.consume(x),C):x===58||x===95||xe(x)?(e.consume(x),E):q(x)?(e.consume(x),v):C(x)}function E(x){return x===45||x===46||x===58||x===95||me(x)?(e.consume(x),E):A(x)}function A(x){return x===61?(e.consume(x),S):q(x)?(e.consume(x),A):v(x)}function S(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),l=x,M):q(x)?(e.consume(x),S):D(x)}function M(x){return x===l?(e.consume(x),l=null,V):x===null||_(x)?n(x):(e.consume(x),M)}function D(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||Z(x)?A(x):(e.consume(x),D)}function V(x){return x===47||x===62||q(x)?v(x):n(x)}function C(x){return x===62?(e.consume(x),R):n(x)}function R(x){return x===null||_(x)?O(x):q(x)?(e.consume(x),R):n(x)}function O(x){return x===45&&i===2?(e.consume(x),X):x===60&&i===1?(e.consume(x),W):x===62&&i===4?(e.consume(x),P):x===63&&i===3?(e.consume(x),w):x===93&&i===5?(e.consume(x),ue):_(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Nx,$,K)(x)):x===null||_(x)?(e.exit("htmlFlowData"),K(x)):(e.consume(x),O)}function K(x){return e.check(Rx,z,$)(x)}function z(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),N}function N(x){return x===null||_(x)?K(x):(e.enter("htmlFlowData"),O(x))}function X(x){return x===45?(e.consume(x),w):O(x)}function W(x){return x===47?(e.consume(x),o="",J):O(x)}function J(x){if(x===62){const Q=o.toLowerCase();return Hu.includes(Q)?(e.consume(x),P):O(x)}return xe(x)&&o.length<8?(e.consume(x),o+=String.fromCharCode(x),J):O(x)}function ue(x){return x===93?(e.consume(x),w):O(x)}function w(x){return x===62?(e.consume(x),P):x===45&&i===2?(e.consume(x),w):O(x)}function P(x){return x===null||_(x)?(e.exit("htmlFlowData"),$(x)):(e.consume(x),P)}function $(x){return e.exit("htmlFlow"),t(x)}}function Vx(e,t,n){const r=this;return i;function i(o){return _(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function zx(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(on,t,n)}}const _x={name:"htmlText",tokenize:Bx};function Bx(e,t,n){const r=this;let i,s,o;return a;function a(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),A):w===63?(e.consume(w),v):xe(w)?(e.consume(w),D):n(w)}function u(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),s=0,p):xe(w)?(e.consume(w),k):n(w)}function c(w){return w===45?(e.consume(w),d):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),h):_(w)?(o=f,W(w)):(e.consume(w),f)}function h(w){return w===45?(e.consume(w),d):f(w)}function d(w){return w===62?X(w):w===45?h(w):f(w)}function p(w){const P="CDATA[";return w===P.charCodeAt(s++)?(e.consume(w),s===P.length?m:p):n(w)}function m(w){return w===null?n(w):w===93?(e.consume(w),y):_(w)?(o=m,W(w)):(e.consume(w),m)}function y(w){return w===93?(e.consume(w),g):m(w)}function g(w){return w===62?X(w):w===93?(e.consume(w),g):m(w)}function k(w){return w===null||w===62?X(w):_(w)?(o=k,W(w)):(e.consume(w),k)}function v(w){return w===null?n(w):w===63?(e.consume(w),E):_(w)?(o=v,W(w)):(e.consume(w),v)}function E(w){return w===62?X(w):v(w)}function A(w){return xe(w)?(e.consume(w),S):n(w)}function S(w){return w===45||me(w)?(e.consume(w),S):M(w)}function M(w){return _(w)?(o=M,W(w)):q(w)?(e.consume(w),M):X(w)}function D(w){return w===45||me(w)?(e.consume(w),D):w===47||w===62||Z(w)?V(w):n(w)}function V(w){return w===47?(e.consume(w),X):w===58||w===95||xe(w)?(e.consume(w),C):_(w)?(o=V,W(w)):q(w)?(e.consume(w),V):X(w)}function C(w){return w===45||w===46||w===58||w===95||me(w)?(e.consume(w),C):R(w)}function R(w){return w===61?(e.consume(w),O):_(w)?(o=R,W(w)):q(w)?(e.consume(w),R):V(w)}function O(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,K):_(w)?(o=O,W(w)):q(w)?(e.consume(w),O):(e.consume(w),z)}function K(w){return w===i?(e.consume(w),i=void 0,N):w===null?n(w):_(w)?(o=K,W(w)):(e.consume(w),K)}function z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Z(w)?V(w):(e.consume(w),z)}function N(w){return w===47||w===62||Z(w)?V(w):n(w)}function X(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function W(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),J}function J(w){return q(w)?Y(e,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ue(w)}function ue(w){return e.enter("htmlTextData"),o(w)}}const Ki={name:"labelEnd",resolveAll:Wx,resolveTo:qx,tokenize:Gx},$x={tokenize:Yx},Ux={tokenize:Kx},Hx={tokenize:Xx};function Wx(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&&Te(e,0,e.length,n),e}function qx(e,t){let n=e.length,r=0,i,s,o,a;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const l={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=De(a,e.slice(s+1,s+r+3)),a=De(a,[["enter",c,t]]),a=De(a,_n(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),a=De(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=De(a,e.slice(o+1)),a=De(a,[["exit",l,t]]),Te(e,s,e.length,a),e}function Gx(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(h){return s?s._inactive?f(h):(o=r.parser.defined.includes(Re(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt($x,c,o?c:f)(h):h===91?e.attempt(Ux,c,o?u:f)(h):o?c(h):f(h)}function u(h){return e.attempt(Hx,c,f)(h)}function c(h){return t(h)}function f(h){return s._balanced=!0,n(h)}}function Yx(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 Z(f)?an(e,s)(f):s(f)}function s(f){return f===41?c(f):Bu(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Z(f)?an(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?Uu(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Z(f)?an(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 Kx(e,t,n){const r=this;return i;function i(a){return $u.call(r,e,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function Xx(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Qx={name:"labelStartImage",resolveAll:Ki.resolveAll,tokenize:Zx};function Zx(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Jx={name:"labelStartLink",resolveAll:Ki.resolveAll,tokenize:eb};function eb(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Xi={name:"lineEnding",tokenize:tb};function tb(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Y(e,t,"linePrefix")}}const Bn={name:"thematicBreak",tokenize:nb};function nb(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(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"),q(u)?Y(e,a,"whitespace")(u):a(u))}}const Se={continuation:{tokenize:sb},exit:lb,name:"list",tokenize:ob},rb={partial:!0,tokenize:ub},ib={partial:!0,tokenize:ab};function ob(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:qi(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Bn,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return qi(d)&&++o<10?(e.consume(d),l):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(on,r.interrupt?n:c,e.attempt(rb,h,f))}function c(d){return r.containerState.initialBlankLine=!0,s++,h(d)}function f(d){return q(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function sb(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(on,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!q(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ib,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(Se,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ab(e,t,n){const r=this;return Y(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function lb(e){e.exit(this.containerState.type)}function ub(e,t,n){const r=this;return Y(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!q(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const Wu={name:"setextUnderline",resolveTo:cb,tokenize:fb};function cb(e,t){let n=e.length,r,i,s;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),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function fb(e,t,n){const r=this;let i;return s;function s(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,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),q(u)?Y(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||_(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const hb={tokenize:db};function db(e){const t=this,n=e.attempt(on,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xx,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const pb={resolveAll:Gu()},mb=qu("string"),gb=qu("text");function qu(e){return{resolveAll:Gu(e==="text"?yb:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,a);return o;function o(c){return u(c)?s(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"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const d=f[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Gu(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function yb(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 s=i.length,o=-1,a=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)l=!0,a++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:r.start._bufferIndex+o,_index:r.start._index+s,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 xb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Sx},disable:{null:[]},document:{42:Se,43:Se,45:Se,48:Se,49:Se,50:Se,51:Se,52:Se,53:Se,54:Se,55:Se,56:Se,57:Se,62:Ru},flow:{35:Ix,42:Bn,45:[Wu,Bn],60:Lx,61:Wu,95:Bn,96:zu,126:zu},flowInitial:{[-2]:Yi,[-1]:Yi,32:Yi},insideSpan:{null:[Gi,pb]},string:{38:Ou,92:Fu},text:{[-5]:Xi,[-4]:Xi,[-3]:Xi,33:Qx,38:Ou,42:Gi,60:[Jy,_x],91:Jx,92:[Ax,Fu],93:Ki,95:Gi,96:hx}},Symbol.toStringTag,{value:"Module"}));function bb(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={},s=[];let o=[],a=[];const l={attempt:M(A),check:M(S),consume:k,enter:v,exit:E,interrupt:M(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:p,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function f(R){return o=De(o,R),y(),o[o.length-1]!==null?[]:(D(t,0),u.events=_n(s,u.events,u),u.events)}function h(R,O){return vb(d(R),O)}function d(R){return wb(o,R)}function p(){const{_bufferIndex:R,_index:O,line:K,column:z,offset:N}=r;return{_bufferIndex:R,_index:O,line:K,column:z,offset:N}}function m(R){i[R.line]=R.column,C()}function y(){let R;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<O.length;)g(O.charCodeAt(r._bufferIndex));else g(O)}}function g(R){c=c(R)}function k(R){_(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,C()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function v(R,O){const K=O||{};return K.type=R,K.start=p(),u.events.push(["enter",K,u]),a.push(K),K}function E(R){const O=a.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function A(R,O){D(R,O.from)}function S(R,O){O.restore()}function M(R,O){return K;function K(z,N,X){let W,J,ue,w;return Array.isArray(z)?$(z):"tokenize"in z?$([z]):P(z);function P(se){return ne;function ne(be){const _e=be!==null&&se[be],Je=be!==null&&se.null,tr=[...Array.isArray(_e)?_e:_e?[_e]:[],...Array.isArray(Je)?Je:Je?[Je]:[]];return $(tr)(be)}}function $(se){return W=se,J=0,se.length===0?X:x(se[J])}function x(se){return ne;function ne(be){return w=V(),ue=se,se.partial||(u.currentConstruct=se),se.name&&u.parser.constructs.disable.null.includes(se.name)?je():se.tokenize.call(O?Object.assign(Object.create(u),O):u,l,Q,je)(be)}}function Q(se){return R(ue,w),N}function je(se){return w.restore(),++J<W.length?x(W[J]):X}}}function D(R,O){R.resolveAll&&!s.includes(R)&&s.push(R),R.resolve&&Te(u.events,O,u.events.length-O,R.resolve(u.events.slice(O),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function V(){const R=p(),O=u.previous,K=u.currentConstruct,z=u.events.length,N=Array.from(a);return{from:z,restore:X};function X(){r=R,u.previous=O,u.currentConstruct=K,u.events.length=z,a=N,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function wb(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,s)];else{if(o=e.slice(n,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function vb(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
17
17
|
`;break}case-3:{o=`\r
|
|
18
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function kb(e){const r={constructs:ju([xb,...(e||{}).extensions||[]]),content:i(qy),defined:[],document:i(Yy),flow:i(hb),lazy:{},string:i(mb),text:i(gb)};return r;function i(s){return o;function o(a){return bb(r,s,a)}}}function Sb(e){for(;!_u(e););return e}const Yu=/[\0\t\n\r]/g;function Cb(){let e=1,t="",n=!0,r;return i;function i(s,o,a){const l=[];let u,c,f,h,d;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Yu.lastIndex=f,u=Yu.exec(s),h=u&&u.index!==void 0?u.index:s.length,d=s.charCodeAt(h),!u){t=s.slice(f);break}if(d===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(s.slice(f,h)),e+=h-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Tb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pb(e){return e.replace(Tb,Ab)}function Ab(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Mu(n.slice(s?2:1),s?16:10)}return Wi(n)||e}const Ku={}.hasOwnProperty;function Eb(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ib(n)(Sb(kb(n).document().write(Cb()(e,t,!0))))}function Ib(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(df),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(cf),blockQuote:s(Je),characterEscape:V,characterReference:V,codeFenced:s(tr),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(tr,o),codeText:s(Mk,o),codeTextData:V,data:V,codeFlowValue:V,definition:s(Lk),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Nk),hardBreakEscape:s(ff),hardBreakTrailing:s(ff),htmlFlow:s(hf,o),htmlFlowData:V,htmlText:s(hf,o),htmlTextData:V,image:s(Rk),label:o,link:s(df),listItem:s(Fk),listItemValue:h,listOrdered:s(pf,f),listUnordered:s(pf),paragraph:s(Ok),reference:x,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(cf),strong:s(Vk),thematicBreak:s(_k)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:_e,autolinkProtocol:be,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:je,characterReferenceMarkerNumeric:je,characterReferenceValue:se,characterReference:ne,codeFenced:l(y),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:C,codeIndented:l(g),codeText:l(N),codeTextData:C,data:C,definition:l(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(K),htmlFlowData:C,htmlText:l(z),htmlTextData:C,image:l(W),label:ue,labelText:J,lineEnding:R,link:l(X),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Q,resourceDestinationString:w,resourceTitleString:P,resource:$,setextHeading:l(D),setextHeadingLineSequence:M,setextHeadingText:S,strong:l(),thematicBreak:l()}};Xu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let L={type:"root",children:[]};const U={stack:[L],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:c,data:n},G=[];let ee=-1;for(;++ee<T.length;)if(T[ee][1].type==="listOrdered"||T[ee][1].type==="listUnordered")if(T[ee][0]==="enter")G.push(ee);else{const Fe=G.pop();ee=i(T,Fe,ee)}for(ee=-1;++ee<T.length;){const Fe=t[T[ee][0]];Ku.call(Fe,T[ee][1].type)&&Fe[T[ee][1].type].call(Object.assign({sliceSerialize:T[ee][2].sliceSerialize},U),T[ee][1])}if(U.tokenStack.length>0){const Fe=U.tokenStack[U.tokenStack.length-1];(Fe[1]||Qu).call(U,void 0,Fe[0])}for(L.position={start:Ze(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Ze(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<t.transforms.length;)L=t.transforms[ee](L)||L;return L}function i(T,L,U){let G=L-1,ee=-1,Fe=!1,ut,We,hn,dn;for(;++G<=U;){const Pe=T[G];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?ee++:ee--,dn=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(ut&&!dn&&!ee&&!hn&&(hn=G),dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dn=void 0}if(!ee&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||ee===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(ut){let Mt=G;for(We=void 0;Mt--;){const qe=T[Mt];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;We&&(T[We][1].type="lineEndingBlank",Fe=!0),qe[1].type="lineEnding",We=Mt}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}hn&&(!We||hn<We)&&(ut._spread=!0),ut.end=Object.assign({},We?T[We][1].start:Pe[1].end),T.splice(We||G,0,["exit",ut,Pe[2]]),G++,U++}if(Pe[1].type==="listItemPrefix"){const Mt={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};ut=Mt,T.splice(G,0,["enter",Mt,Pe[2]]),G++,U++,hn=void 0,dn=!0}}}return T[L][1]._spread=Fe,U}function s(T,L){return U;function U(G){a.call(this,T(G),G),L&&L.call(this,G)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(T,L,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([L,U||void 0]),T.position={start:Ze(L.start),end:void 0}}function l(T){return L;function L(U){T&&T.call(this,U),u.call(this,U)}}function u(T,L){const U=this.stack.pop(),G=this.tokenStack.pop();if(G)G[0].type!==T.type&&(L?L.call(this,T,G[0]):(G[1]||Qu).call(this,T,G[0]));else throw new Error("Cannot close `"+T.type+"` ("+nn({start:T.start,end:T.end})+"): it’s not open");U.position.end=Ze(T.end)}function c(){return Hi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(T){if(this.data.expectingFirstListItemValue){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){const T=this.resume(),L=this.stack[this.stack.length-1];L.lang=T}function p(){const T=this.resume(),L=this.stack[this.stack.length-1];L.meta=T}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/(\r?\n|\r)$/g,"")}function k(T){const L=this.resume(),U=this.stack[this.stack.length-1];U.label=L,U.identifier=Re(this.sliceSerialize(T)).toLowerCase()}function v(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function E(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function A(T){const L=this.stack[this.stack.length-1];if(!L.depth){const U=this.sliceSerialize(T).length;L.depth=U}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(T){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function V(T){const U=this.stack[this.stack.length-1].children;let G=U[U.length-1];(!G||G.type!=="text")&&(G=zk(),G.position={start:Ze(T.start),end:void 0},U.push(G)),this.stack.push(G)}function C(T){const L=this.stack.pop();L.value+=this.sliceSerialize(T),L.position.end=Ze(T.end)}function R(T){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=L.children[L.children.length-1];U.position.end=Ze(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(L.type)&&(V.call(this,T),C.call(this,T))}function O(){this.data.atHardBreak=!0}function K(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function z(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function N(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function X(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,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 L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function J(T){const L=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=Pb(L),U.identifier=Re(L).toLowerCase()}function ue(){const T=this.stack[this.stack.length-1],L=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const G=T.children;U.children=G}else U.alt=L}function w(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function P(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function $(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function Q(T){const L=this.resume(),U=this.stack[this.stack.length-1];U.label=L,U.identifier=Re(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function je(T){this.data.characterReferenceType=T.type}function se(T){const L=this.sliceSerialize(T),U=this.data.characterReferenceType;let G;U?(G=Mu(L,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):G=Wi(L);const ee=this.stack[this.stack.length-1];ee.value+=G}function ne(T){const L=this.stack.pop();L.position.end=Ze(T.end)}function be(T){C.call(this,T);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(T)}function _e(T){C.call(this,T);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(T)}function Je(){return{type:"blockquote",children:[]}}function tr(){return{type:"code",lang:null,meta:null,value:""}}function Mk(){return{type:"inlineCode",value:""}}function Lk(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nk(){return{type:"emphasis",children:[]}}function cf(){return{type:"heading",depth:0,children:[]}}function ff(){return{type:"break"}}function hf(){return{type:"html",value:""}}function Rk(){return{type:"image",title:null,url:"",alt:null}}function df(){return{type:"link",title:null,url:"",children:[]}}function pf(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Fk(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Ok(){return{type:"paragraph",children:[]}}function Vk(){return{type:"strong",children:[]}}function zk(){return{type:"text",value:""}}function _k(){return{type:"thematicBreak"}}}function Ze(e){return{line:e.line,column:e.column,offset:e.offset}}function Xu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Xu(e,r):Db(e,r)}}function Db(e,t){let n;for(n in t)if(Ku.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Qu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is still open")}function jb(e){const t=this;t.parser=n;function n(r){return Eb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mb(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 Lb(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
18
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}function kb(e){const r={constructs:ju([xb,...(e||{}).extensions||[]]),content:i(qy),defined:[],document:i(Yy),flow:i(hb),lazy:{},string:i(mb),text:i(gb)};return r;function i(s){return o;function o(a){return bb(r,s,a)}}}function Sb(e){for(;!_u(e););return e}const Yu=/[\0\t\n\r]/g;function Cb(){let e=1,t="",n=!0,r;return i;function i(s,o,a){const l=[];let u,c,f,h,d;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(Yu.lastIndex=f,u=Yu.exec(s),h=u&&u.index!==void 0?u.index:s.length,d=s.charCodeAt(h),!u){t=s.slice(f);break}if(d===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(s.slice(f,h)),e+=h-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Tb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pb(e){return e.replace(Tb,Ab)}function Ab(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return Mu(n.slice(s?2:1),s?16:10)}return Wi(n)||e}const Ku={}.hasOwnProperty;function Eb(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ib(n)(Sb(kb(n).document().write(Cb()(e,t,!0))))}function Ib(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(df),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(cf),blockQuote:s(Je),characterEscape:V,characterReference:V,codeFenced:s(tr),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(tr,o),codeText:s(Lk,o),codeTextData:V,data:V,codeFlowValue:V,definition:s(Nk),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Rk),hardBreakEscape:s(ff),hardBreakTrailing:s(ff),htmlFlow:s(hf,o),htmlFlowData:V,htmlText:s(hf,o),htmlTextData:V,image:s(Fk),label:o,link:s(df),listItem:s(Ok),listItemValue:h,listOrdered:s(pf,f),listUnordered:s(pf),paragraph:s(Vk),reference:x,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(cf),strong:s(zk),thematicBreak:s(Bk)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:_e,autolinkProtocol:be,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:je,characterReferenceMarkerNumeric:je,characterReferenceValue:se,characterReference:ne,codeFenced:l(y),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:C,codeIndented:l(g),codeText:l(N),codeTextData:C,data:C,definition:l(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(K),htmlFlowData:C,htmlText:l(z),htmlTextData:C,image:l(W),label:ue,labelText:J,lineEnding:R,link:l(X),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Q,resourceDestinationString:w,resourceTitleString:P,resource:$,setextHeading:l(D),setextHeadingLineSequence:M,setextHeadingText:S,strong:l(),thematicBreak:l()}};Xu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let L={type:"root",children:[]};const U={stack:[L],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:c,data:n},G=[];let ee=-1;for(;++ee<T.length;)if(T[ee][1].type==="listOrdered"||T[ee][1].type==="listUnordered")if(T[ee][0]==="enter")G.push(ee);else{const Fe=G.pop();ee=i(T,Fe,ee)}for(ee=-1;++ee<T.length;){const Fe=t[T[ee][0]];Ku.call(Fe,T[ee][1].type)&&Fe[T[ee][1].type].call(Object.assign({sliceSerialize:T[ee][2].sliceSerialize},U),T[ee][1])}if(U.tokenStack.length>0){const Fe=U.tokenStack[U.tokenStack.length-1];(Fe[1]||Qu).call(U,void 0,Fe[0])}for(L.position={start:Ze(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Ze(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},ee=-1;++ee<t.transforms.length;)L=t.transforms[ee](L)||L;return L}function i(T,L,U){let G=L-1,ee=-1,Fe=!1,ut,We,hn,dn;for(;++G<=U;){const Pe=T[G];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?ee++:ee--,dn=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(ut&&!dn&&!ee&&!hn&&(hn=G),dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dn=void 0}if(!ee&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||ee===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(ut){let Mt=G;for(We=void 0;Mt--;){const qe=T[Mt];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;We&&(T[We][1].type="lineEndingBlank",Fe=!0),qe[1].type="lineEnding",We=Mt}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}hn&&(!We||hn<We)&&(ut._spread=!0),ut.end=Object.assign({},We?T[We][1].start:Pe[1].end),T.splice(We||G,0,["exit",ut,Pe[2]]),G++,U++}if(Pe[1].type==="listItemPrefix"){const Mt={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};ut=Mt,T.splice(G,0,["enter",Mt,Pe[2]]),G++,U++,hn=void 0,dn=!0}}}return T[L][1]._spread=Fe,U}function s(T,L){return U;function U(G){a.call(this,T(G),G),L&&L.call(this,G)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(T,L,U){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([L,U||void 0]),T.position={start:Ze(L.start),end:void 0}}function l(T){return L;function L(U){T&&T.call(this,U),u.call(this,U)}}function u(T,L){const U=this.stack.pop(),G=this.tokenStack.pop();if(G)G[0].type!==T.type&&(L?L.call(this,T,G[0]):(G[1]||Qu).call(this,T,G[0]));else throw new Error("Cannot close `"+T.type+"` ("+nn({start:T.start,end:T.end})+"): it’s not open");U.position.end=Ze(T.end)}function c(){return Hi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(T){if(this.data.expectingFirstListItemValue){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function d(){const T=this.resume(),L=this.stack[this.stack.length-1];L.lang=T}function p(){const T=this.resume(),L=this.stack[this.stack.length-1];L.meta=T}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/(\r?\n|\r)$/g,"")}function k(T){const L=this.resume(),U=this.stack[this.stack.length-1];U.label=L,U.identifier=Re(this.sliceSerialize(T)).toLowerCase()}function v(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function E(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function A(T){const L=this.stack[this.stack.length-1];if(!L.depth){const U=this.sliceSerialize(T).length;L.depth=U}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function M(T){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function V(T){const U=this.stack[this.stack.length-1].children;let G=U[U.length-1];(!G||G.type!=="text")&&(G=_k(),G.position={start:Ze(T.start),end:void 0},U.push(G)),this.stack.push(G)}function C(T){const L=this.stack.pop();L.value+=this.sliceSerialize(T),L.position.end=Ze(T.end)}function R(T){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=L.children[L.children.length-1];U.position.end=Ze(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(L.type)&&(V.call(this,T),C.call(this,T))}function O(){this.data.atHardBreak=!0}function K(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function z(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function N(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function X(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,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 L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function J(T){const L=this.sliceSerialize(T),U=this.stack[this.stack.length-2];U.label=Pb(L),U.identifier=Re(L).toLowerCase()}function ue(){const T=this.stack[this.stack.length-1],L=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const G=T.children;U.children=G}else U.alt=L}function w(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function P(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function $(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function Q(T){const L=this.resume(),U=this.stack[this.stack.length-1];U.label=L,U.identifier=Re(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function je(T){this.data.characterReferenceType=T.type}function se(T){const L=this.sliceSerialize(T),U=this.data.characterReferenceType;let G;U?(G=Mu(L,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):G=Wi(L);const ee=this.stack[this.stack.length-1];ee.value+=G}function ne(T){const L=this.stack.pop();L.position.end=Ze(T.end)}function be(T){C.call(this,T);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(T)}function _e(T){C.call(this,T);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(T)}function Je(){return{type:"blockquote",children:[]}}function tr(){return{type:"code",lang:null,meta:null,value:""}}function Lk(){return{type:"inlineCode",value:""}}function Nk(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rk(){return{type:"emphasis",children:[]}}function cf(){return{type:"heading",depth:0,children:[]}}function ff(){return{type:"break"}}function hf(){return{type:"html",value:""}}function Fk(){return{type:"image",title:null,url:"",alt:null}}function df(){return{type:"link",title:null,url:"",children:[]}}function pf(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Ok(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Vk(){return{type:"paragraph",children:[]}}function zk(){return{type:"strong",children:[]}}function _k(){return{type:"text",value:""}}function Bk(){return{type:"thematicBreak"}}}function Ze(e){return{line:e.line,column:e.column,offset:e.offset}}function Xu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Xu(e,r):Db(e,r)}}function Db(e,t){let n;for(n in t)if(Ku.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Qu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is still open")}function jb(e){const t=this;t.parser=n;function n(r){return Eb(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mb(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 Lb(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
19
19
|
`}]}function Nb(e,t){const n=t.value?t.value+`
|
|
20
20
|
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function Rb(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fb(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ob(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=At(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=s+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(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Vb(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 zb(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Zu(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),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function _b(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={src:At(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Bb(e,t){const n={src:At(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 $b(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 Ub(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zu(e,t);const i={href:At(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Hb(e,t){const n={href:At(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 Wb(e,t,n){const r=e.all(t),i=n?qb(n):Ju(t),s={},o=[];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:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|
21
21
|
`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
|
22
22
|
`});const u={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,u),e.applyData(t,u)}function qb(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=Ju(n[r])}return t}function Ju(e){const t=e.spread;return t??e.children.length>1}function Gb(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 o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Yb(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Kb(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Xb(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qb(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Vi(t.children[1]),l=bu(t.children[t.children.length-1]);a&&l&&(o.position={start:a,end:l}),i.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Zb(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const f=t.children[l],h={},d=o?o[l]:void 0;d&&(h.align=d);let p={type:"element",tagName:s,properties:h,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Jb(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ec=9,tc=32;function e0(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(nc(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(nc(t.slice(i),i>0,!1)),s.join("")}function nc(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===ec||s===tc;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===ec||s===tc;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function t0(e,t){const n={type:"text",value:e0(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function n0(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const r0={blockquote:Mb,break:Lb,code:Nb,delete:Rb,emphasis:Fb,footnoteReference:Ob,heading:Vb,html:zb,imageReference:_b,image:Bb,inlineCode:$b,linkReference:Ub,link:Hb,listItem:Wb,list:Gb,paragraph:Yb,root:Kb,strong:Xb,table:Qb,tableCell:Jb,tableRow:Zb,text:t0,thematicBreak:n0,toml:$n,yaml:$n,definition:$n,footnoteDefinition:$n};function $n(){}const rc=-1,Un=0,ln=1,Hn=2,Qi=3,Zi=4,Ji=5,eo=6,ic=7,oc=8,sc=typeof self=="object"?self:globalThis,i0=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,o]=t[i];switch(s){case Un:case rc:return n(o,i);case ln:{const a=n([],i);for(const l of o)a.push(r(l));return a}case Hn:{const a=n({},i);for(const[l,u]of o)a[r(l)]=r(u);return a}case Qi:return n(new Date(o),i);case Zi:{const{source:a,flags:l}=o;return n(new RegExp(a,l),i)}case Ji:{const a=n(new Map,i);for(const[l,u]of o)a.set(r(l),r(u));return a}case eo:{const a=n(new Set,i);for(const l of o)a.add(r(l));return a}case ic:{const{name:a,message:l}=o;return n(new sc[a](l),i)}case oc:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new sc[s](o),i)};return r},ac=e=>i0(new Map,e)(0),It="",{toString:o0}={},{keys:s0}=Object,un=e=>{const t=typeof e;if(t!=="object"||!e)return[Un,t];const n=o0.call(e).slice(8,-1);switch(n){case"Array":return[ln,It];case"Object":return[Hn,It];case"Date":return[Qi,It];case"RegExp":return[Zi,It];case"Map":return[Ji,It];case"Set":return[eo,It];case"DataView":return[ln,n]}return n.includes("Array")?[ln,n]:n.includes("Error")?[ic,n]:[Hn,n]},Wn=([e,t])=>e===Un&&(t==="function"||t==="symbol"),a0=(e,t,n,r)=>{const i=(o,a)=>{const l=r.push(o)-1;return n.set(a,l),l},s=o=>{if(n.has(o))return n.get(o);let[a,l]=un(o);switch(a){case Un:{let c=o;switch(l){case"bigint":a=oc,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([rc],o)}return i([a,c],o)}case ln:{if(l){let h=o;return l==="DataView"?h=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(o)),i([l,[...h]],o)}const c=[],f=i([a,c],o);for(const h of o)c.push(s(h));return f}case Hn:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const c=[],f=i([a,c],o);for(const h of s0(o))(e||!Wn(un(o[h])))&&c.push([s(h),s(o[h])]);return f}case Qi:return i([a,o.toISOString()],o);case Zi:{const{source:c,flags:f}=o;return i([a,{source:c,flags:f}],o)}case Ji:{const c=[],f=i([a,c],o);for(const[h,d]of o)(e||!(Wn(un(h))||Wn(un(d))))&&c.push([s(h),s(d)]);return f}case eo:{const c=[],f=i([a,c],o);for(const h of o)(e||!Wn(un(h)))&&c.push(s(h));return f}}const{message:u}=o;return i([a,{name:l,message:u}],o)};return s},lc=(e,{json:t,lossy:n}={})=>{const r=[];return a0(!(t||n),!!t,new Map,r)(e),r},qn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ac(lc(e,t)):structuredClone(e):(e,t)=>ac(lc(e,t));function l0(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 u0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function c0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||l0,r=e.options.footnoteBackLabel||u0,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),h=At(f.toLowerCase());let d=0;const p=[],m=e.footnoteCounts.get(f);for(;m!==void 0&&++d<=m;){p.length>0&&p.push({type:"text",value:" "});let k=typeof n=="string"?n:n(l,d);typeof k=="string"&&(k={type:"text",value:k}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const k=y.children[y.children.length-1];k&&k.type==="text"?k.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else c.push(...p);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...qn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
23
23
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
24
|
-
`}]}}const Gn=(function(e){if(e==null)return p0;if(typeof e=="function")return Yn(e);if(typeof e=="object")return Array.isArray(e)?f0(e):h0(e);if(typeof e=="string")return d0(e);throw new Error("Expected function, string, or object as test")});function f0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Gn(e[n]);return Yn(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function h0(e){const t=e;return Yn(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function d0(e){return Yn(t);function t(n){return n&&n.type===e}}function Yn(e){return t;function t(n,r,i){return!!(m0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function p0(){return!0}function m0(e){return e!==null&&typeof e=="object"&&"type"in e}function
|
|
24
|
+
`}]}}const Gn=(function(e){if(e==null)return p0;if(typeof e=="function")return Yn(e);if(typeof e=="object")return Array.isArray(e)?f0(e):h0(e);if(typeof e=="string")return d0(e);throw new Error("Expected function, string, or object as test")});function f0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Gn(e[n]);return Yn(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function h0(e){const t=e;return Yn(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function d0(e){return Yn(t);function t(n){return n&&n.type===e}}function Yn(e){return t;function t(n,r,i){return!!(m0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function p0(){return!0}function m0(e){return e!==null&&typeof e=="object"&&"type"in e}function o1(e){return e}const uc=[],g0=!0,to=!1,y0="skip";function cc(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=Gn(i),o=r?-1:1;a(e,void 0,[])();function a(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=uc,p,m,y;if((!t||s(l,u,c[c.length-1]||void 0))&&(d=x0(n(l,c)),d[0]===to))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==y0)for(m=(r?g.children.length:-1)+o,y=c.concat(g);m>-1&&m<g.children.length;){const k=g.children[m];if(p=a(k,m,y)(),p[0]===to)return p;m=typeof p[1]=="number"?p[1]:m+o}}return d}}}function x0(e){return Array.isArray(e)?e:typeof e=="number"?[g0,e]:e==null?uc:[e]}function no(e,t,n,r){let i,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,i=n):(s=t,o=n,i=r),cc(e,s,a,i);function a(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const ro={}.hasOwnProperty,b0={};function w0(e,t){const n=t||b0,r=new Map,i=new Map,s=new Map,o={...r0,...n.handlers},a={all:u,applyData:k0,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:v0,wrap:C0};return no(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),a;function l(c,f){const h=c.type,d=a.handlers[h];if(ro.call(a.handlers,h)&&d)return d(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in c){const{children:m,...y}=c,g=qn(y);return g.children=a.all(c),g}return qn(c)}return(a.options.unknownHandler||S0)(a,c,f)}function u(c){const f=[];if("children"in c){const h=c.children;let d=-1;for(;++d<h.length;){const p=a.one(h[d],c);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=fc(p.value)),!Array.isArray(p)&&p.type==="element")){const m=p.children[0];m&&m.type==="text"&&(m.value=fc(m.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function v0(e,t){e.position&&(t.position=xy(e))}function k0(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,qn(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function S0(e,t){const n=t.data||{},r="value"in t&&!(ro.call(n,"hProperties")||ro.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 C0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
25
25
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
26
26
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
27
27
|
`}),n}function fc(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hc(e,t){const n=w0(e,t),r=n.one(e,void 0),i=c0(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
|
|
@@ -40,5 +40,5 @@ React keys must be passed directly to JSX without using spread:
|
|
|
40
40
|
`))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
41
41
|
`,...s.current()});return/^[\t ]/.test(u)&&(u=fn(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}jc.peek=Kw;function jc(e){return e.value||""}function Kw(){return"<"}Mc.peek=Xw;function Mc(e,t,n,r){const i=bo(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),o(),u}function Xw(){return"!"}Lc.peek=Qw;function Lc(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Qw(){return"!"}Nc.peek=Zw;function Nc(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const o=n.unsafe[s],a=n.compilePattern(o);let l;if(o.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function Zw(){return"`"}function Rc(e,t){const n=Hi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Fc.peek=Jw;function Fc(e,t,n,r){const i=bo(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,l;if(Rc(e,n)){const c=n.stack;n.stack=[],a=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),a(),n.stack=c,f}a=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),a(),u}function Jw(e,t,n){return Rc(e,n)?"<":"["}Oc.peek=ev;function Oc(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function ev(){return"["}function wo(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tv(e){const t=wo(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Vc(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rv(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?nv(n):wo(n);const a=e.ordered?o==="."?")":".":tv(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Vc(n)===o&&c){let f=-1;for(;++f<e.children.length;){const h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),u}function iv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ov(e,t,n,r){const i=iv(n);let s=n.bulletCurrent||wo(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(f,h,d){return h?(d?"":" ".repeat(o))+f:(d?s:s+" ".repeat(o-s.length))+f}}function sv(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),i(),o}const av=Gn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lv(e,t,n,r){return(e.children.some(function(o){return av(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function uv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}zc.peek=cv;function zc(e,t,n,r){const i=uv(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=l.charCodeAt(0),c=Zn(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=fn(u)+l.slice(1));const f=l.charCodeAt(l.length-1),h=Zn(r.after.charCodeAt(0),f,i);h.inside&&(l=l.slice(0,-1)+fn(f));const d=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+l+d}function cv(e,t,n){return n.options.strong||"*"}function fv(e,t,n,r){return n.safe(e.value,r)}function hv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function dv(e,t,n){const r=(Vc(n)+(n.options.ruleSpaces?" ":"")).repeat(hv(n));return n.options.ruleSpaces?r.slice(0,-1):r}const _c={blockquote:Fw,break:Ic,code:$w,definition:Hw,emphasis:Dc,hardBreak:Ic,heading:Yw,html:jc,image:Mc,imageReference:Lc,inlineCode:Nc,link:Fc,linkReference:Oc,list:rv,listItem:ov,paragraph:sv,root:lv,strong:zc,text:fv,thematicBreak:dv};function pv(){return{enter:{table:mv,tableData:Bc,tableHeader:Bc,tableRow:yv},exit:{codeText:xv,table:gv,tableData:vo,tableHeader:vo,tableRow:vo}}}function mv(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gv(e){this.exit(e),this.data.inTable=void 0}function yv(e){this.enter({type:"tableRow",children:[]},e)}function vo(e){this.exit(e)}function Bc(e){this.enter({type:"tableCell",children:[]},e)}function xv(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bv));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bv(e,t){return t==="|"?t:e}function wv(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
42
42
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:l,tableRow:a}};function o(d,p,m,y){return u(c(d,m,y),d.align)}function a(d,p,m,y){const g=f(d,m,y),k=u([g]);return k.slice(0,k.indexOf(`
|
|
43
|
-
`))}function l(d,p,m,y){const g=m.enter("tableCell"),k=m.enter("phrasing"),v=m.containerPhrasing(d,{...y,before:s,after:s});return k(),g(),v}function u(d,p){return Nw(d,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function c(d,p,m){const y=d.children;let g=-1;const k=[],v=p.enter("table");for(;++g<y.length;)k[g]=f(y[g],p,m);return v(),k}function f(d,p,m){const y=d.children;let g=-1;const k=[],v=p.enter("tableRow");for(;++g<y.length;)k[g]=l(y[g],d,p,m);return v(),k}function h(d,p,m){let y=_c.inlineCode(d,p,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function vv(){return{exit:{taskListCheckValueChecked:$c,taskListCheckValueUnchecked:$c,paragraph:Sv}}}function kv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Cv}}}function $c(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Sv(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,o;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Cv(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=_c.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function Tv(){return[rw(),Cw(),Ew(),pv(),vv()]}function Pv(e){return{extensions:[iw(),Tw(e),Iw(),wv(e),kv()]}}const Av={tokenize:Lv,partial:!0},Uc={tokenize:Nv,partial:!0},Hc={tokenize:Rv,partial:!0},Wc={tokenize:Fv,partial:!0},Ev={tokenize:Ov,partial:!0},qc={name:"wwwAutolink",tokenize:jv,previous:Yc},Gc={name:"protocolAutolink",tokenize:Mv,previous:Kc},He={name:"emailAutolink",tokenize:Dv,previous:Xc},ze={};function Iv(){return{text:ze}}let lt=48;for(;lt<123;)ze[lt]=He,lt++,lt===58?lt=65:lt===91&&(lt=97);ze[43]=He,ze[45]=He,ze[46]=He,ze[95]=He,ze[72]=[He,Gc],ze[104]=[He,Gc],ze[87]=[He,qc],ze[119]=[He,qc];function Dv(e,t,n){const r=this;let i,s;return o;function o(f){return!ko(f)||!Xc.call(r,r.previous)||So(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return ko(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(Ev,c,u)(f):f===45||f===95||me(f)?(s=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return s&&i&&xe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function jv(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Yc.call(r,r.previous)||So(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Av,e.attempt(Uc,e.attempt(Hc,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Mv(e,t,n){const r=this;let i="",s=!1;return o;function o(f){return(f===72||f===104)&&Kc.call(r,r.previous)&&!So(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(xe(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),s?u:(s=!0,l)):n(f)}function u(f){return f===null||Vn(f)||Z(f)||at(f)||zn(f)?n(f):e.attempt(Uc,e.attempt(Hc,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Lv(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function Nv(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(Wc,l,a)(u):u===null||Z(u)||at(u)||u!==45&&zn(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function Rv(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Wc,t,s)(o):o===null||Z(o)||at(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function Fv(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||Z(a)||at(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||Z(a)||at(a)?t(a):r(a)}function s(a){return xe(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):xe(a)?(e.consume(a),o):n(a)}}function Ov(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return me(s)?n(s):t(s)}}function Yc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Z(e)}function Kc(e){return!xe(e)}function Xc(e){return!(e===47||ko(e))}function ko(e){return e===43||e===45||e===46||e===95||me(e)}function So(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Vv={tokenize:qv,partial:!0};function zv(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Uv,continuation:{tokenize:Hv},exit:Wv}},text:{91:{name:"gfmFootnoteCall",tokenize:$v},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_v,resolveTo:Bv}}}}function _v(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);const u=Re(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Bv(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function $v(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(s>999||f===93&&!o||f===null||f===91||Z(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Re(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Z(f)||(o=!0),s++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function Uv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,a;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(p)}function c(p){if(o>999||p===93&&!a||p===null||p===91||Z(p))return n(p);if(p===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return s=Re(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Z(p)||(a=!0),o++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,c):c(p)}function h(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(s)||i.push(s),Y(e,d,"gfmFootnoteDefinitionWhitespace")):n(p)}function d(p){return t(p)}}function Hv(e,t,n){return e.check(on,t,e.attempt(Vv,t,n))}function Wv(e){e.exit("gfmFootnoteDefinition")}function qv(e,t,n){const r=this;return Y(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Gv(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",f,a]],d=a.parser.constructs.insideSpan.null;d&&Te(h,h.length,0,_n(d,o.slice(u+1,l),a)),Te(h,h.length,0,[["exit",f,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),Te(o,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){const u=this.previous,c=this.events;let f=0;return h;function h(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(o.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const m=Et(u);if(p===126)return f>1?l(p):(o.consume(p),f++,d);if(f<2&&!n)return l(p);const y=o.exit("strikethroughSequenceTemporary"),g=Et(p);return y._open=!g||g===2&&!!m,y._close=!m||m===2&&!!g,a(p)}}}class Yv{constructor(){this.map=[]}add(t,n,r){Kv(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function Kv(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Xv(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Qv(){return{flow:{null:{name:"table",tokenize:Zv,resolveAll:Jv}}}}function Zv(e,t,n){const r=this;let i=0,s=0,o;return a;function a(C){let R=r.events.length-1;for(;R>-1;){const z=r.events[R][1].type;if(z==="lineEnding"||z==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,K=O==="tableHead"||O==="tableRow"?S:l;return K===S&&r.parser.lazy[r.now().line]?n(C):K(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(o=!0,s+=1),c(C)}function c(C){return C===null?n(C):_(C)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),d):n(C):q(C)?Y(e,c,"whitespace")(C):(s+=1,o&&(o=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||Z(C)?(e.exit("data"),c(C)):(e.consume(C),C===92?h:f)}function h(C){return C===92||C===124?(e.consume(C),f):f(C)}function d(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,q(C)?Y(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):p(C))}function p(C){return C===45||C===58?y(C):C===124?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),m):A(C)}function m(C){return q(C)?Y(e,y,"whitespace")(C):y(C)}function y(C){return C===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):C===45?(s+=1,g(C)):C===null||_(C)?E(C):A(C)}function g(C){return C===45?(e.enter("tableDelimiterFiller"),k(C)):A(C)}function k(C){return C===45?(e.consume(C),k):C===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(C))}function v(C){return q(C)?Y(e,E,"whitespace")(C):E(C)}function E(C){return C===124?p(C):C===null||_(C)?!o||i!==s?A(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):A(C)}function A(C){return n(C)}function S(C){return e.enter("tableRow"),M(C)}function M(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),M):C===null||_(C)?(e.exit("tableRow"),t(C)):q(C)?Y(e,M,"whitespace")(C):(e.enter("data"),D(C))}function D(C){return C===null||C===124||Z(C)?(e.exit("data"),M(C)):(e.consume(C),C===92?V:D)}function V(C){return C===92||C===124?(e.consume(C),D):D(C)}}function Jv(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,f;const h=new Yv;for(;++n<e.length;){const d=e[n],p=d[1];d[0]==="enter"?p.type==="tableHead"?(a=!1,l!==0&&(Qc(h,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",c,t]])),i=p.type==="tableDelimiterRow"?2:c?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],f=Jn(h,t,s,i,void 0,f),s=[0,0,0,0]),o[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],f=Jn(h,t,s,i,void 0,f)),s=o,o=[s[1],n,0,0])):p.type==="tableHead"?(a=!0,l=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],f=Jn(h,t,s,i,n,f)):o[1]!==0&&(f=Jn(h,t,o,i,n,f)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Qc(h,t,l,u,c),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Xv(t.events,n))}return e}function Jn(e,t,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},Dt(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const l=Dt(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=Dt(t.events,n[2]),c=Dt(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,m=n[3]-n[2]-1;e.add(p,m,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(s.end=Object.assign({},Dt(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Qc(e,t,n,r,i){const s=[],o=Dt(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function Dt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ek={name:"tasklistCheck",tokenize:nk};function tk(){return{text:{91:ek}}}function nk(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return Z(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return _(l)?t(l):q(l)?e.check({tokenize:rk},t,n)(l):n(l)}}function rk(e,t,n){return Y(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ik(e){return ju([Iv(),zv(),Gv(e),Qv(),tk()])}const ok={};function er(e){const t=this,n=e||ok,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ik(n)),s.push(Tv()),o.push(Pv(n))}const Zc=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:s="",actionLabel:o,href:a,inverted:l=!1})=>b.jsx("section",{className:`feature-split-section ${s} 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(Xn,{remarkPlugins:[Qn,er],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(he,{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(Xn,{remarkPlugins:[Qn,er],children:u.description})})]})]},c))}),o&&a&&b.jsx("div",{className:"feature-split-actions",children:b.jsx("button",{onClick:()=>window.location.href=a,children:o})})]}),b.jsx("div",{className:"feature-split-image-wrapper",children:b.jsx("img",{src:r.imageSrc,alt:r.alt,className:"feature-split-image"})})]})}),Jc=({title:e,subtitle:t,content:n,format:r="markdown",className:i="",image:s,inverted:o=!1})=>b.jsx("section",{className:`content-block-section ${o?"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})]}),s&&b.jsxs("div",{className:"content-block-featured-image",children:[b.jsx("img",{src:s.imageSrc,alt:s.alt}),s.caption&&b.jsx("figcaption",{children:s.caption})]}),b.jsx("div",{className:"content-block-body markdown-body",children:r==="html"?b.jsx("div",{dangerouslySetInnerHTML:{__html:n||""}}):b.jsx(Xn,{remarkPlugins:[Qn,er],children:n||""})})]})}),Co=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:s="",inverted:o=!1})=>b.jsx(dr,{hoverable:!0,elevation:"sm",className:`feature-card ${s}`,inverted:o,children:b.jsxs("div",{className:"feature-card-content",children:[e&&b.jsx("div",{className:"feature-icon-wrapper",children:b.jsx(he,{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(Xn,{remarkPlugins:[Qn,er],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(nr.Link,{to:r,className:"feature-link",children:[i," ",b.jsx("span",{children:"→"})]}))]})}),ef=({title:e,subtitle:t,items:n,children:r,className:i="",columns:s,actionLabel:o="Learn more",inverted:a=!1})=>{const l=s?{"--features-columns":s}:{};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(Co,{...u,actionLabel:o,inverted:a},c))]})]})})},tf=I.createContext(void 0),sk=()=>{const e=I.useContext(tf);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},ak=({children:e})=>{const[t,n]=I.useState(null);return b.jsx(tf.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},To=e=>{const{title:t,icon:n,iconPosition:r="left",iconSize:i="1.2rem",iconColor:s="currentColor",className:o="",itemGroupClassName:a="",children:l,href:u,id:c=t||n||"dropdown",target:f="_self"}=e,{activeDropdown:h,setActiveDropdown:d}=sk(),p=I.useRef(null),m=I.useRef(null),y=h===c,g=y;I.useEffect(()=>{const v=E=>{p.current&&!p.current.contains(E.target)&&h===c&&d(null)};return g&&document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[g,h,c,d]);const k=v=>{v.stopPropagation(),l&&(v.preventDefault(),d(y?null:c))};return b.jsxs("div",{ref:p,className:"menu",children:[(t||n)&&b.jsx(b.Fragment,{children:u?b.jsxs("a",{href:u,onClick:k,className:`menu-title ${o} ${y?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":g,children:[n&&r==="left"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]}):b.jsxs("button",{onClick:k,className:`menu-title ${o} ${y?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":g,children:[n&&r==="left"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]})}),b.jsx("div",{ref:m,className:`menu-dropdown ${a} ${g?"show":""}`,onClick:()=>d(null),children:l})]})},nf=({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))})})}),rf=({title:e,subtitle:t,actionLabel:n,onAction:r,className:i="",imageSrc:s,inverted:o=!1})=>{const a=s?{backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundPosition:"center"}:{};return b.jsx("section",{className:`cta-section ${o?"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})})]})})},of=({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(dr,{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((s,o)=>b.jsx(he,{icon:"mdi:star",width:"20",height:"20"},o))}),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))})]})}),sf=({options:e=[],value:t,defaultValue:n,className:r,icon:i,id:s,hideSelectedLabel:o=!1})=>{const[a,l]=I.useState(n),u=t!==void 0,c=u?t:a,f=m=>{u||l(m.value),m.onClick?.()},h=e.find(m=>m.value===c),d=h?.icon||i;let p=h?.label||h?.value||c||"";return o&&d&&(p=""),b.jsx(To,{id:s,title:p,icon:d,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(he,{icon:m.icon})}),m.label&&b.jsx("span",{className:`option-label ${r}`,children:m.label})]},m.value))})},af=({children:e,autoPlay:t=!0,interval:n=5e3,className:r="",showArrows:i=!0,showIndicators:s=!0})=>{const[o,a]=I.useState(0),[l,u]=I.useState(0),c=I.useCallback(()=>{u(1),a(p=>(p+1)%e.length)},[e.length]),f=()=>{u(-1),a(p=>(p-1+e.length)%e.length)},h=p=>{u(p>o?1:-1),a(p)};I.useEffect(()=>{if(!t)return;const p=setInterval(c,n);return()=>clearInterval(p)},[t,n,c]);const d={enter:p=>({x:p>0?1e3:-1e3,opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:p=>({zIndex:0,x:p<0?1e3:-1e3,opacity:0})};return!e||e.length===0?null:b.jsxs("div",{className:`carousel-container ${r}`,children:[b.jsx(wp,{initial:!1,custom:l,mode:"wait",children:b.jsx(ve.div,{custom:l,variants:d,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},style:{width:"100%",height:"100%"},children:e[o]},o)}),i&&e.length>1&&b.jsxs(b.Fragment,{children:[b.jsx("button",{className:"carousel-nav-btn carousel-prev",onClick:f,"aria-label":"Previous Slide",children:"❮"}),b.jsx("button",{className:"carousel-nav-btn carousel-next",onClick:c,"aria-label":"Next Slide",children:"❯"})]}),s&&e.length>1&&b.jsx("div",{className:"carousel-indicators",children:e.map((p,m)=>b.jsx("button",{className:`carousel-dot ${m===o?"active":""}`,onClick:()=>h(m),"aria-label":`Go to slide ${m+1}`},m))})]})},lf={Header:rs,MenuItem:Jl,MenuGrid:eu,MenuGridItem:tu,Dropdown:To,Hero:nu,IconButton:ru,FeatureSplit:Zc,ContentBlock:Jc,FeaturesSection:ef,FeatureItem:Co,BentoGrid:ns,Stats:nf,CTASection:rf,Testimonials:of,Select:sf,Carousel:af};let Po={...lf};function lk(e,t){Po[e]=t}function uf(e){return Po[e]}function uk(e){return e in Po}function ck(e){return typeof e=="string"&&e.trim().length>0}const jt=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return b.jsx(b.Fragment,{children:e.map((m,y)=>b.jsx(jt,{config:m,className:t,handlers:n,onError:r},m.id||`item-${y}`))});if(!e||typeof e!="object")return null;const{type:i,data:s,children:o,id:a,...l}=e,u=a||s?.id||i;if(!ck(i)){const m=new Error(`Invalid component type: "${i}"`);return r?.(m,e),console.error(`Invalid component type: "${i}"`),null}if(!uk(i)){const m=new Error(`Component "${i}" is not registered`);return r?.(m,e),console.error(`Component "${i}" is not registered`),null}const c=uf(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"||I.isValidElement(m))return m;if(Array.isArray(m))return m.map(g=>f(g));const y={...m};return Object.keys(y).forEach(g=>{const k=y[g];if(typeof k=="string"&&k.startsWith("@action:")){const v=k.replace("@action:","");n&&n[v]&&(y[g]=n[v])}else typeof k=="object"&&k!==null&&(y[g]=f(k))}),y},d={...f(s),...l,id:a||s?.id};t&&(d.className=s?.className?`${s.className} ${t}`:t);const p=m=>{if(m){if(Array.isArray(m))return m.map((y,g)=>y&&typeof y=="object"&&y.type?b.jsx(jt,{config:y,handlers:n,onError:r},y.id||`child-${g}`):y);if(m&&typeof m=="object"&&m.type){const y=m.id||m.data?.id||m.type;return b.jsx(jt,{config:m,handlers:n,onError:r},y)}return m}};if(o!==void 0)if(i==="Header"){const m=p(o);if(m&&Array.isArray(m)){const y=m.filter(k=>{const v=k?.props?.config;return(v?.["data-position"]||v?.data?.["data-position"])!=="far-item"}),g=m.filter(k=>{const v=k?.props?.config;return(v?.["data-position"]||v?.data?.["data-position"])==="far-item"});d.menuBar=y,d.utilityButtons=g}}else if(i==="MenuGrid"){const m=p(o);m&&(d.children=m)}else if(i==="Dropdown"){const m=p(o);d.children=m}else if(i==="Carousel"){const m=p(o);d.children=m}else d.children=p(o);if(s?.items&&Array.isArray(s.items)&&(d.items=s.items.map((m,y)=>m&&typeof m=="object"&&m.type?b.jsx(jt,{config:m,handlers:n,onError:r},m.id||`item-${y}`):m)),s?.embeddedView&&typeof s.embeddedView=="object"&&s.embeddedView.type){const m=s.embeddedView.id||s.embeddedView.data?.id||s.embeddedView.type;d.embeddedView=b.jsx(jt,{config:s.embeddedView,handlers:n,onError:r},m)}try{return b.jsx(c,{...d},u)}catch(m){const y=m instanceof Error?m:new Error("Unknown rendering error");return r?.(y,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,": ",y.message]},u)}},fk=({imageSrc:e,companyName:t,description:n,columns:r,socialLinks:i,poweredBy:s,poweredByLink:o,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((h,d)=>b.jsx("a",{href:h.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:b.jsx(he,{icon:h.icon,width:"24",height:"24"})},d))})]}),r.map((h,d)=>b.jsxs("div",{className:"footer-column",children:[b.jsx("h4",{className:"footer-column-title",children:h.title}),b.jsx("div",{className:"footer-links",children:h.links.map((p,m)=>p.href.startsWith("http")?b.jsx("a",{href:p.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:p.label},m):b.jsx(nr.Link,{to:p.href,className:"footer-link",children:p.label},m))})]},d))]}),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.`}),s&&b.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"footer-powered-by",children:s})]})})]})})},hk=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[s,o]=I.useState(new Set),a=I.useRef({}),l=u=>{o(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=s.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(he,{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 dk;function pk({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[s,o]=I.useState(null),[a,l]=I.useState(r),[u,c]=I.useState(null),f=i||dk,h=async(d,p)=>{if(!f){c("API service not configured"),l(!1);return}const m=d||t;l(!0),c(null);try{const y=new URLSearchParams({story:m,...n,...p}).toString(),g=y?`${e}?${y}`:e,k=await f.get(g);k.status===200?o(k.data):c(`Error ${k.status}: ${k.statusText}`)}catch(y){console.error(`Failed to fetch from ${e}:`,y),c(y.message||"Failed to fetch configuration")}finally{l(!1)}};return I.useEffect(()=>{r&&f?h():r&&!f&&(c("API service not configured"),l(!1))},[e,t,JSON.stringify(n),r,f]),{data:s,loading:a,error:u,refetch:h,setData:o}}const mk={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 ge(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,s=mk[t],o={};return r&&(o.variant=r),pk({endpoint:s,storyName:n,params:o,apiService:i})}function gk(e,t,n){return ge({component:"MenuGridItem",story:e,apiService:t,variant:n})}function yk(e,t,n){return ge({component:"MenuGrid",story:e,apiService:t,variant:n})}function xk(e,t,n){return ge({component:"Dropdown",story:e,apiService:t,variant:n})}function bk(e,t,n){return ge({component:"Hero",story:e,apiService:t,variant:n})}function wk(e,t,n){return ge({component:"Header",story:e,apiService:t,variant:n})}function vk(e,t,n){return ge({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function kk(e,t,n){return ge({component:"Footer",story:e,apiService:t,variant:n})}function Sk(e,t,n){return ge({component:"Stats",story:e,apiService:t,variant:n})}function Ck(e,t,n){return ge({component:"FeatureSplit",story:e,apiService:t,variant:n})}function Tk(e,t,n){return ge({component:"ContentBlock",story:e,apiService:t,variant:n})}function Pk(e,t,n){return ge({component:"FeaturesSection",story:e,apiService:t,variant:n})}function Ak(e,t,n){return ge({component:"BentoGrid",story:e,apiService:t,variant:n})}function Ek(e,t,n){return ge({component:"CTASection",story:e,apiService:t,variant:n})}function Ik(e,t,n){return ge({component:"Testimonials",story:e,apiService:t,variant:n})}function Dk(e,t,n){return ge({component:"Select",story:e,apiService:t,variant:n})}function jk(e,t,n){return ge({component:"Carousel",story:e,apiService:t,variant:n})}B.BentoGrid=ns,B.CTASection=rf,B.Card=dr,B.Carousel=af,B.ContentBlock=Jc,B.Dropdown=To,B.DropdownProvider=ak,B.DynamicRenderer=jt,B.FeatureItem=Co,B.FeatureSplit=Zc,B.FeaturesSection=ef,B.Footer=fk,B.Header=rs,B.Hero=nu,B.IconButton=ru,B.ItemsAccordion=hk,B.MenuGrid=eu,B.MenuGridItem=tu,B.MenuItem=Jl,B.Select=sf,B.Stats=nf,B.Testimonials=of,B.baseComponents=lf,B.getComponent=uf,B.registerComponent=lk,B.useBentoGridConfig=Ak,B.useCTASectionConfig=Ek,B.useCarouselConfig=jk,B.useContentBlockConfig=Tk,B.useDropdownConfig=xk,B.useFeatureSplitConfig=Ck,B.useFeaturesSectionConfig=Pk,B.useFooterConfig=kk,B.useHeaderConfig=wk,B.useHeroConfig=bk,B.useItemsAccordionConfig=vk,B.useMenuGridConfig=yk,B.useMenuGridItemConfig=gk,B.useSelectConfig=Dk,B.useStatsConfig=Sk,B.useTestimonialsConfig=Ik,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
|
43
|
+
`))}function l(d,p,m,y){const g=m.enter("tableCell"),k=m.enter("phrasing"),v=m.containerPhrasing(d,{...y,before:s,after:s});return k(),g(),v}function u(d,p){return Nw(d,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function c(d,p,m){const y=d.children;let g=-1;const k=[],v=p.enter("table");for(;++g<y.length;)k[g]=f(y[g],p,m);return v(),k}function f(d,p,m){const y=d.children;let g=-1;const k=[],v=p.enter("tableRow");for(;++g<y.length;)k[g]=l(y[g],d,p,m);return v(),k}function h(d,p,m){let y=_c.inlineCode(d,p,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function vv(){return{exit:{taskListCheckValueChecked:$c,taskListCheckValueUnchecked:$c,paragraph:Sv}}}function kv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Cv}}}function $c(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Sv(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,o;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Cv(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=_c.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function Tv(){return[rw(),Cw(),Ew(),pv(),vv()]}function Pv(e){return{extensions:[iw(),Tw(e),Iw(),wv(e),kv()]}}const Av={tokenize:Lv,partial:!0},Uc={tokenize:Nv,partial:!0},Hc={tokenize:Rv,partial:!0},Wc={tokenize:Fv,partial:!0},Ev={tokenize:Ov,partial:!0},qc={name:"wwwAutolink",tokenize:jv,previous:Yc},Gc={name:"protocolAutolink",tokenize:Mv,previous:Kc},He={name:"emailAutolink",tokenize:Dv,previous:Xc},ze={};function Iv(){return{text:ze}}let lt=48;for(;lt<123;)ze[lt]=He,lt++,lt===58?lt=65:lt===91&&(lt=97);ze[43]=He,ze[45]=He,ze[46]=He,ze[95]=He,ze[72]=[He,Gc],ze[104]=[He,Gc],ze[87]=[He,qc],ze[119]=[He,qc];function Dv(e,t,n){const r=this;let i,s;return o;function o(f){return!ko(f)||!Xc.call(r,r.previous)||So(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return ko(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(Ev,c,u)(f):f===45||f===95||me(f)?(s=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return s&&i&&xe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function jv(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Yc.call(r,r.previous)||So(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Av,e.attempt(Uc,e.attempt(Hc,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Mv(e,t,n){const r=this;let i="",s=!1;return o;function o(f){return(f===72||f===104)&&Kc.call(r,r.previous)&&!So(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(xe(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),s?u:(s=!0,l)):n(f)}function u(f){return f===null||Vn(f)||Z(f)||at(f)||zn(f)?n(f):e.attempt(Uc,e.attempt(Hc,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Lv(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function Nv(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(Wc,l,a)(u):u===null||Z(u)||at(u)||u!==45&&zn(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function Rv(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Wc,t,s)(o):o===null||Z(o)||at(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function Fv(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||Z(a)||at(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||Z(a)||at(a)?t(a):r(a)}function s(a){return xe(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):xe(a)?(e.consume(a),o):n(a)}}function Ov(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return me(s)?n(s):t(s)}}function Yc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Z(e)}function Kc(e){return!xe(e)}function Xc(e){return!(e===47||ko(e))}function ko(e){return e===43||e===45||e===46||e===95||me(e)}function So(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Vv={tokenize:qv,partial:!0};function zv(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Uv,continuation:{tokenize:Hv},exit:Wv}},text:{91:{name:"gfmFootnoteCall",tokenize:$v},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_v,resolveTo:Bv}}}}function _v(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);const u=Re(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Bv(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function $v(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,o;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(s>999||f===93&&!o||f===null||f===91||Z(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Re(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Z(f)||(o=!0),s++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function Uv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,o=0,a;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(p)}function c(p){if(o>999||p===93&&!a||p===null||p===91||Z(p))return n(p);if(p===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return s=Re(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Z(p)||(a=!0),o++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,c):c(p)}function h(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(s)||i.push(s),Y(e,d,"gfmFootnoteDefinitionWhitespace")):n(p)}function d(p){return t(p)}}function Hv(e,t,n){return e.check(on,t,e.attempt(Vv,t,n))}function Wv(e){e.exit("gfmFootnoteDefinition")}function qv(e,t,n){const r=this;return Y(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Gv(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},h=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",f,a]],d=a.parser.constructs.insideSpan.null;d&&Te(h,h.length,0,_n(d,o.slice(u+1,l),a)),Te(h,h.length,0,[["exit",f,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),Te(o,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){const u=this.previous,c=this.events;let f=0;return h;function h(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(o.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const m=Et(u);if(p===126)return f>1?l(p):(o.consume(p),f++,d);if(f<2&&!n)return l(p);const y=o.exit("strikethroughSequenceTemporary"),g=Et(p);return y._open=!g||g===2&&!!m,y._close=!m||m===2&&!!g,a(p)}}}class Yv{constructor(){this.map=[]}add(t,n,r){Kv(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function Kv(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Xv(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Qv(){return{flow:{null:{name:"table",tokenize:Zv,resolveAll:Jv}}}}function Zv(e,t,n){const r=this;let i=0,s=0,o;return a;function a(C){let R=r.events.length-1;for(;R>-1;){const z=r.events[R][1].type;if(z==="lineEnding"||z==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,K=O==="tableHead"||O==="tableRow"?S:l;return K===S&&r.parser.lazy[r.now().line]?n(C):K(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(o=!0,s+=1),c(C)}function c(C){return C===null?n(C):_(C)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),d):n(C):q(C)?Y(e,c,"whitespace")(C):(s+=1,o&&(o=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||Z(C)?(e.exit("data"),c(C)):(e.consume(C),C===92?h:f)}function h(C){return C===92||C===124?(e.consume(C),f):f(C)}function d(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),o=!1,q(C)?Y(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):p(C))}function p(C){return C===45||C===58?y(C):C===124?(o=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),m):A(C)}function m(C){return q(C)?Y(e,y,"whitespace")(C):y(C)}function y(C){return C===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):C===45?(s+=1,g(C)):C===null||_(C)?E(C):A(C)}function g(C){return C===45?(e.enter("tableDelimiterFiller"),k(C)):A(C)}function k(C){return C===45?(e.consume(C),k):C===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(C))}function v(C){return q(C)?Y(e,E,"whitespace")(C):E(C)}function E(C){return C===124?p(C):C===null||_(C)?!o||i!==s?A(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):A(C)}function A(C){return n(C)}function S(C){return e.enter("tableRow"),M(C)}function M(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),M):C===null||_(C)?(e.exit("tableRow"),t(C)):q(C)?Y(e,M,"whitespace")(C):(e.enter("data"),D(C))}function D(C){return C===null||C===124||Z(C)?(e.exit("data"),M(C)):(e.consume(C),C===92?V:D)}function V(C){return C===92||C===124?(e.consume(C),D):D(C)}}function Jv(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,f;const h=new Yv;for(;++n<e.length;){const d=e[n],p=d[1];d[0]==="enter"?p.type==="tableHead"?(a=!1,l!==0&&(Qc(h,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",c,t]])),i=p.type==="tableDelimiterRow"?2:c?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],f=Jn(h,t,s,i,void 0,f),s=[0,0,0,0]),o[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],f=Jn(h,t,s,i,void 0,f)),s=o,o=[s[1],n,0,0])):p.type==="tableHead"?(a=!0,l=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],f=Jn(h,t,s,i,n,f)):o[1]!==0&&(f=Jn(h,t,o,i,n,f)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Qc(h,t,l,u,c),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Xv(t.events,n))}return e}function Jn(e,t,n,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},Dt(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const l=Dt(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=Dt(t.events,n[2]),c=Dt(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,m=n[3]-n[2]-1;e.add(p,m,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(s.end=Object.assign({},Dt(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Qc(e,t,n,r,i){const s=[],o=Dt(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function Dt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const ek={name:"tasklistCheck",tokenize:nk};function tk(){return{text:{91:ek}}}function nk(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return Z(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return _(l)?t(l):q(l)?e.check({tokenize:rk},t,n)(l):n(l)}}function rk(e,t,n){return Y(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ik(e){return ju([Iv(),zv(),Gv(e),Qv(),tk()])}const ok={};function er(e){const t=this,n=e||ok,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ik(n)),s.push(Tv()),o.push(Pv(n))}const Zc=({title:e,subtitle:t,items:n=[],image:r,imagePosition:i="right",className:s="",actionLabel:o,href:a,inverted:l=!1})=>b.jsx("section",{className:`feature-split-section ${s} 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(Xn,{remarkPlugins:[Qn,er],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(he,{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(Xn,{remarkPlugins:[Qn,er],children:u.description})})]})]},c))}),o&&a&&b.jsx("div",{className:"feature-split-actions",children:b.jsx("button",{onClick:()=>window.location.href=a,children:o})})]}),b.jsx("div",{className:"feature-split-image-wrapper",children:b.jsx("img",{src:r.imageSrc,alt:r.alt,className:"feature-split-image"})})]})}),sk=e=>{const[t,n]=I.useState(""),[r,i]=I.useState(!1),[s,o]=I.useState(null);return I.useEffect(()=>{if(!e){n("");return}(async()=>{i(!0),o(null);try{const l=await fetch(e);if(!l.ok)throw new Error(`Failed to fetch markdown: ${l.statusText}`);const u=await l.text();n(u)}catch(l){o(l instanceof Error?l:new Error("Unknown error fetching markdown")),console.error("Error fetching markdown:",l)}finally{i(!1)}})()},[e]),{content:t,loading:r,error:s}},Jc=({title:e,subtitle:t,contentUrl:n,className:r="",image:i,inverted:s=!1})=>{const{content:o,loading:a,error:l}=sk(n);return b.jsx("section",{className:`content-block-section ${s?"theme-inverted":""} ${r}`,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})]}),i&&b.jsxs("div",{className:"content-block-featured-image",children:[b.jsx("img",{src:i.imageSrc,alt:i.alt}),i.caption&&b.jsx("figcaption",{children:i.caption})]}),b.jsxs("div",{className:"content-block-body markdown-body",children:[a&&b.jsx("div",{children:"Loading content..."}),l&&b.jsx("div",{children:"Error loading content."}),!a&&!l&&b.jsx(Xn,{remarkPlugins:[Qn,er],children:o||""})]})]})})},Co=({icon:e,title:t,description:n,href:r,actionLabel:i="Learn more",className:s="",inverted:o=!1})=>b.jsx(dr,{hoverable:!0,elevation:"sm",className:`feature-card ${s}`,inverted:o,children:b.jsxs("div",{className:"feature-card-content",children:[e&&b.jsx("div",{className:"feature-icon-wrapper",children:b.jsx(he,{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(Xn,{remarkPlugins:[Qn,er],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(nr.Link,{to:r,className:"feature-link",children:[i," ",b.jsx("span",{children:"→"})]}))]})}),ef=({title:e,subtitle:t,items:n,children:r,className:i="",columns:s,actionLabel:o="Learn more",inverted:a=!1})=>{const l=s?{"--features-columns":s}:{};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(Co,{...u,actionLabel:o,inverted:a},c))]})]})})},tf=I.createContext(void 0),ak=()=>{const e=I.useContext(tf);if(!e)throw new Error("useDropdownContext must be used within DropdownProvider");return e},lk=({children:e})=>{const[t,n]=I.useState(null);return b.jsx(tf.Provider,{value:{activeDropdown:t,setActiveDropdown:n},children:e})},To=e=>{const{title:t,icon:n,iconPosition:r="left",iconSize:i="1.2rem",iconColor:s="currentColor",className:o="",itemGroupClassName:a="",children:l,href:u,id:c=t||n||"dropdown",target:f="_self"}=e,{activeDropdown:h,setActiveDropdown:d}=ak(),p=I.useRef(null),m=I.useRef(null),y=h===c,g=y;I.useEffect(()=>{const v=E=>{p.current&&!p.current.contains(E.target)&&h===c&&d(null)};return g&&document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[g,h,c,d]);const k=v=>{v.stopPropagation(),l&&(v.preventDefault(),d(y?null:c))};return b.jsxs("div",{ref:p,className:"menu",children:[(t||n)&&b.jsx(b.Fragment,{children:u?b.jsxs("a",{href:u,onClick:k,className:`menu-title ${o} ${y?"active":""}`,target:f,"aria-haspopup":!!l,"aria-expanded":g,children:[n&&r==="left"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]}):b.jsxs("button",{onClick:k,className:`menu-title ${o} ${y?"active":""}`,type:"button","aria-haspopup":"true","aria-expanded":g,children:[n&&r==="left"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-left"}),t&&b.jsx("span",{children:t}),n&&r==="right"&&b.jsx(he,{icon:n,style:{width:i,height:i,color:s},className:"icon-right"}),l&&b.jsx("span",{className:"arrow",children:g?"▲":"▼"})]})}),b.jsx("div",{ref:m,className:`menu-dropdown ${a} ${g?"show":""}`,onClick:()=>d(null),children:l})]})},nf=({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))})})}),rf=({title:e,subtitle:t,actionLabel:n,onAction:r,className:i="",imageSrc:s,inverted:o=!1})=>{const a=s?{backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundPosition:"center"}:{};return b.jsx("section",{className:`cta-section ${o?"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})})]})})},of=({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(dr,{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((s,o)=>b.jsx(he,{icon:"mdi:star",width:"20",height:"20"},o))}),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))})]})}),sf=({options:e=[],value:t,defaultValue:n,className:r,icon:i,id:s,hideSelectedLabel:o=!1})=>{const[a,l]=I.useState(n),u=t!==void 0,c=u?t:a,f=m=>{u||l(m.value),m.onClick?.()},h=e.find(m=>m.value===c),d=h?.icon||i;let p=h?.label||h?.value||c||"";return o&&d&&(p=""),b.jsx(To,{id:s,title:p,icon:d,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(he,{icon:m.icon})}),m.label&&b.jsx("span",{className:`option-label ${r}`,children:m.label})]},m.value))})},af=({children:e,autoPlay:t=!0,interval:n=5e3,className:r="",showArrows:i=!0,showIndicators:s=!0})=>{const[o,a]=I.useState(0),[l,u]=I.useState(0),c=I.useCallback(()=>{u(1),a(p=>(p+1)%e.length)},[e.length]),f=()=>{u(-1),a(p=>(p-1+e.length)%e.length)},h=p=>{u(p>o?1:-1),a(p)};I.useEffect(()=>{if(!t)return;const p=setInterval(c,n);return()=>clearInterval(p)},[t,n,c]);const d={enter:p=>({x:p>0?1e3:-1e3,opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:p=>({zIndex:0,x:p<0?1e3:-1e3,opacity:0})};return!e||e.length===0?null:b.jsxs("div",{className:`carousel-container ${r}`,children:[b.jsx(wp,{initial:!1,custom:l,mode:"wait",children:b.jsx(ve.div,{custom:l,variants:d,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}},style:{width:"100%",height:"100%"},children:e[o]},o)}),i&&e.length>1&&b.jsxs(b.Fragment,{children:[b.jsx("button",{className:"carousel-nav-btn carousel-prev",onClick:f,"aria-label":"Previous Slide",children:"❮"}),b.jsx("button",{className:"carousel-nav-btn carousel-next",onClick:c,"aria-label":"Next Slide",children:"❯"})]}),s&&e.length>1&&b.jsx("div",{className:"carousel-indicators",children:e.map((p,m)=>b.jsx("button",{className:`carousel-dot ${m===o?"active":""}`,onClick:()=>h(m),"aria-label":`Go to slide ${m+1}`},m))})]})},lf={Header:rs,MenuItem:Jl,MenuGrid:eu,MenuGridItem:tu,Dropdown:To,Hero:nu,IconButton:ru,FeatureSplit:Zc,ContentBlock:Jc,FeaturesSection:ef,FeatureItem:Co,BentoGrid:ns,Stats:nf,CTASection:rf,Testimonials:of,Select:sf,Carousel:af};let Po={...lf};function uk(e,t){Po[e]=t}function uf(e){return Po[e]}function ck(e){return e in Po}function fk(e){return typeof e=="string"&&e.trim().length>0}const jt=({config:e,className:t,handlers:n,onError:r})=>{if(Array.isArray(e))return b.jsx(b.Fragment,{children:e.map((m,y)=>b.jsx(jt,{config:m,className:t,handlers:n,onError:r},m.id||`item-${y}`))});if(!e||typeof e!="object")return null;const{type:i,data:s,children:o,id:a,...l}=e,u=a||s?.id||i;if(!fk(i)){const m=new Error(`Invalid component type: "${i}"`);return r?.(m,e),console.error(`Invalid component type: "${i}"`),null}if(!ck(i)){const m=new Error(`Component "${i}" is not registered`);return r?.(m,e),console.error(`Component "${i}" is not registered`),null}const c=uf(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"||I.isValidElement(m))return m;if(Array.isArray(m))return m.map(g=>f(g));const y={...m};return Object.keys(y).forEach(g=>{const k=y[g];if(typeof k=="string"&&k.startsWith("@action:")){const v=k.replace("@action:","");n&&n[v]&&(y[g]=n[v])}else typeof k=="object"&&k!==null&&(y[g]=f(k))}),y},d={...f(s),...l,id:a||s?.id};t&&(d.className=s?.className?`${s.className} ${t}`:t);const p=m=>{if(m){if(Array.isArray(m))return m.map((y,g)=>y&&typeof y=="object"&&y.type?b.jsx(jt,{config:y,handlers:n,onError:r},y.id||`child-${g}`):y);if(m&&typeof m=="object"&&m.type){const y=m.id||m.data?.id||m.type;return b.jsx(jt,{config:m,handlers:n,onError:r},y)}return m}};if(o!==void 0)if(i==="Header"){const m=p(o);if(m&&Array.isArray(m)){const y=m.filter(k=>{const v=k?.props?.config;return(v?.["data-position"]||v?.data?.["data-position"])!=="far-item"}),g=m.filter(k=>{const v=k?.props?.config;return(v?.["data-position"]||v?.data?.["data-position"])==="far-item"});d.menuBar=y,d.utilityButtons=g}}else if(i==="MenuGrid"){const m=p(o);m&&(d.children=m)}else if(i==="Dropdown"){const m=p(o);d.children=m}else if(i==="Carousel"){const m=p(o);d.children=m}else d.children=p(o);if(s?.items&&Array.isArray(s.items)&&(d.items=s.items.map((m,y)=>m&&typeof m=="object"&&m.type?b.jsx(jt,{config:m,handlers:n,onError:r},m.id||`item-${y}`):m)),s?.embeddedView&&typeof s.embeddedView=="object"&&s.embeddedView.type){const m=s.embeddedView.id||s.embeddedView.data?.id||s.embeddedView.type;d.embeddedView=b.jsx(jt,{config:s.embeddedView,handlers:n,onError:r},m)}try{return b.jsx(c,{...d},u)}catch(m){const y=m instanceof Error?m:new Error("Unknown rendering error");return r?.(y,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,": ",y.message]},u)}},hk=({imageSrc:e,companyName:t,description:n,columns:r,socialLinks:i,poweredBy:s,poweredByLink:o,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((h,d)=>b.jsx("a",{href:h.href,className:"footer-social-link",target:"_blank",rel:"noopener noreferrer",children:b.jsx(he,{icon:h.icon,width:"24",height:"24"})},d))})]}),r.map((h,d)=>b.jsxs("div",{className:"footer-column",children:[b.jsx("h4",{className:"footer-column-title",children:h.title}),b.jsx("div",{className:"footer-links",children:h.links.map((p,m)=>p.href.startsWith("http")?b.jsx("a",{href:p.href,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:p.label},m):b.jsx(nr.Link,{to:p.href,className:"footer-link",children:p.label},m))})]},d))]}),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.`}),s&&b.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"footer-powered-by",children:s})]})})]})})},dk=({title:e,subtitle:t,items:n,className:r="",allowMultiple:i=!1})=>{const[s,o]=I.useState(new Set),a=I.useRef({}),l=u=>{o(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=s.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(he,{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 pk;function mk({endpoint:e,storyName:t="Default",params:n={},autoFetch:r=!0,apiService:i}){const[s,o]=I.useState(null),[a,l]=I.useState(r),[u,c]=I.useState(null),f=i||pk,h=async(d,p)=>{if(!f){c("API service not configured"),l(!1);return}const m=d||t;l(!0),c(null);try{const y=new URLSearchParams({story:m,...n,...p}).toString(),g=y?`${e}?${y}`:e,k=await f.get(g);k.status===200?o(k.data):c(`Error ${k.status}: ${k.statusText}`)}catch(y){console.error(`Failed to fetch from ${e}:`,y),c(y.message||"Failed to fetch configuration")}finally{l(!1)}};return I.useEffect(()=>{r&&f?h():r&&!f&&(c("API service not configured"),l(!1))},[e,t,JSON.stringify(n),r,f]),{data:s,loading:a,error:u,refetch:h,setData:o}}const gk={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 ge(e){const{component:t,story:n="Default",variant:r,apiService:i}=e,s=gk[t],o={};return r&&(o.variant=r),mk({endpoint:s,storyName:n,params:o,apiService:i})}function yk(e,t,n){return ge({component:"MenuGridItem",story:e,apiService:t,variant:n})}function xk(e,t,n){return ge({component:"MenuGrid",story:e,apiService:t,variant:n})}function bk(e,t,n){return ge({component:"Dropdown",story:e,apiService:t,variant:n})}function wk(e,t,n){return ge({component:"Hero",story:e,apiService:t,variant:n})}function vk(e,t,n){return ge({component:"Header",story:e,apiService:t,variant:n})}function kk(e,t,n){return ge({component:"ItemsAccordion",story:e,apiService:t,variant:n})}function Sk(e,t,n){return ge({component:"Footer",story:e,apiService:t,variant:n})}function Ck(e,t,n){return ge({component:"Stats",story:e,apiService:t,variant:n})}function Tk(e,t,n){return ge({component:"FeatureSplit",story:e,apiService:t,variant:n})}function Pk(e,t,n){return ge({component:"ContentBlock",story:e,apiService:t,variant:n})}function Ak(e,t,n){return ge({component:"FeaturesSection",story:e,apiService:t,variant:n})}function Ek(e,t,n){return ge({component:"BentoGrid",story:e,apiService:t,variant:n})}function Ik(e,t,n){return ge({component:"CTASection",story:e,apiService:t,variant:n})}function Dk(e,t,n){return ge({component:"Testimonials",story:e,apiService:t,variant:n})}function jk(e,t,n){return ge({component:"Select",story:e,apiService:t,variant:n})}function Mk(e,t,n){return ge({component:"Carousel",story:e,apiService:t,variant:n})}B.BentoGrid=ns,B.CTASection=rf,B.Card=dr,B.Carousel=af,B.ContentBlock=Jc,B.Dropdown=To,B.DropdownProvider=lk,B.DynamicRenderer=jt,B.FeatureItem=Co,B.FeatureSplit=Zc,B.FeaturesSection=ef,B.Footer=hk,B.Header=rs,B.Hero=nu,B.IconButton=ru,B.ItemsAccordion=dk,B.MenuGrid=eu,B.MenuGridItem=tu,B.MenuItem=Jl,B.Select=sf,B.Stats=nf,B.Testimonials=of,B.baseComponents=lf,B.getComponent=uf,B.registerComponent=uk,B.useBentoGridConfig=Ek,B.useCTASectionConfig=Ik,B.useCarouselConfig=Mk,B.useContentBlockConfig=Pk,B.useDropdownConfig=bk,B.useFeatureSplitConfig=Tk,B.useFeaturesSectionConfig=Ak,B.useFooterConfig=Sk,B.useHeaderConfig=vk,B.useHeroConfig=wk,B.useItemsAccordionConfig=kk,B.useMenuGridConfig=xk,B.useMenuGridItemConfig=yk,B.useSelectConfig=jk,B.useStatsConfig=Ck,B.useTestimonialsConfig=Dk,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
|
|
44
44
|
//# sourceMappingURL=index.umd.js.map
|