@leostera/evalkit 0.9.0 → 0.11.0

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.
@@ -16,51 +16,54 @@ https://kumo.cfops.it/utilities/link-provider
16
16
 
17
17
  Migration example:
18
18
  Before: <Link to="/page">…</Link>
19
- After: <Link href="/page">…</Link>`)},[]);let o={"data-kumo-component":`Link`,className:q(Oi({variant:t}),`group/link inline-flex items-center gap-[0.1875em] has-[>[data-kumo-component=Badge]]:rounded-full`)};return wi({render:n??(0,J.jsx)(a,{}),ref:i,props:ti(o,r,{className:e})})});ki.displayName=`Link`;var Ai=Object.assign(ki,{ExternalIcon:Ti}),ji={size:{sm:{value:16,description:`Small loader for inline use`},base:{value:24,description:`Default loader size`},lg:{value:32,description:`Large loader for prominent loading states`}}},Mi={size:`base`};function Ni({size:e=Mi.size}={}){return typeof e==`number`?e:xr(ji.size,e,Mi.size).value}var Pi=({className:e,size:t=Mi.size,"aria-label":n=`Loading`})=>{let r=Ni({size:t});return(0,J.jsxs)(`svg`,{width:r,height:r,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,stroke:`currentColor`,className:e,role:`status`,"aria-label":n,children:[(0,J.jsxs)(`circle`,{cx:`12`,cy:`12`,r:`9.5`,fill:`none`,strokeWidth:`2`,strokeLinecap:`round`,children:[(0,J.jsx)(`animateTransform`,{attributeName:`transform`,type:`rotate`,from:`0 12 12`,to:`360 12 12`,dur:`2s`,repeatCount:`indefinite`}),(0,J.jsx)(`animate`,{attributeName:`stroke-dasharray`,values:`0 150;42 150;42 150`,keyTimes:`0;0.5;1`,dur:`1.5s`,repeatCount:`indefinite`}),(0,J.jsx)(`animate`,{attributeName:`stroke-dashoffset`,values:`0;-16;-59`,keyTimes:`0;0.5;1`,dur:`1.5s`,repeatCount:`indefinite`})]}),(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9.5`,fill:`none`,opacity:.1,strokeWidth:`2`,strokeLinecap:`round`})]})},Fi=(0,v.createContext)(null);function Ii(){return(0,v.useContext)(Fi)}var Y=typeof document<`u`?v.useLayoutEffect:()=>{},Li={...v},Ri=l(h(),1);function zi(){return typeof window<`u`}function Bi(e){return Ui(e)?(e.nodeName||``).toLowerCase():`#document`}function Vi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){return((Ui(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ui(e){return zi()?e instanceof Node||e instanceof Vi(e).Node:!1}function Wi(e){return zi()?e instanceof Element||e instanceof Vi(e).Element:!1}function Gi(e){return zi()?e instanceof HTMLElement||e instanceof Vi(e).HTMLElement:!1}function Ki(e){return!zi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Vi(e).ShadowRoot}function qi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ia(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ji(e){return/^(table|td|th)$/.test(Bi(e))}function Yi(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Xi=/transform|translate|scale|rotate|perspective|filter/,Zi=/paint|layout|strict|content/,Qi=e=>!!e&&e!==`none`,$i;function ea(e){let t=Wi(e)?ia(e):e;return Qi(t.transform)||Qi(t.translate)||Qi(t.scale)||Qi(t.rotate)||Qi(t.perspective)||!na()&&(Qi(t.backdropFilter)||Qi(t.filter))||Xi.test(t.willChange||``)||Zi.test(t.contain||``)}function ta(e){let t=oa(e);for(;Gi(t)&&!ra(t);){if(ea(t))return t;if(Yi(t))return null;t=oa(t)}return null}function na(){return $i??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),$i}function ra(e){return/^(html|body|#document)$/.test(Bi(e))}function ia(e){return Vi(e).getComputedStyle(e)}function aa(e){return Wi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oa(e){if(Bi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ki(e)&&e.host||Hi(e);return Ki(t)?t.host:t}function sa(e){let t=oa(e);return ra(t)?(e.ownerDocument||e).body:Gi(t)&&qi(t)?t:sa(t)}function ca(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=sa(e),i=r===e.ownerDocument?.body,a=Vi(r);if(i){let e=la(a);return t.concat(a,a.visualViewport||[],qi(r)?r:[],e&&n?ca(e):[])}return t.concat(r,ca(r,[],n))}function la(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ua=Math.min,da=Math.max,fa=Math.round,pa=Math.floor,ma=e=>({x:e,y:e}),ha={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ga(e,t,n){return da(e,ua(t,n))}function _a(e,t){return typeof e==`function`?e(t):e}function va(e){return e.split(`-`)[0]}function ya(e){return e.split(`-`)[1]}function ba(e){return e===`x`?`y`:`x`}function xa(e){return e===`y`?`height`:`width`}function Sa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ca(e){return ba(Sa(e))}function wa(e,t,n){n===void 0&&(n=!1);let r=ya(e),i=Ca(e),a=xa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Na(o)),[o,Na(o)]}function Ta(e){let t=Na(e);return[Ea(e),t,Ea(t)]}function Ea(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Da=[`left`,`right`],Oa=[`right`,`left`],ka=[`top`,`bottom`],Aa=[`bottom`,`top`];function ja(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Oa:Da:t?Da:Oa;case`left`:case`right`:return t?ka:Aa;default:return[]}}function Ma(e,t,n,r){let i=ya(e),a=ja(va(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ea)))),a}function Na(e){let t=va(e);return ha[t]+e.slice(t.length)}function Pa(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Fa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Pa(e)}function Ia(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function La(e,t,n){let{reference:r,floating:i}=e,a=Sa(t),o=Ca(t),s=xa(o),c=va(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ya(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Ra(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=_a(t,e),p=Fa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ia(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var za=50,Ba=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ra},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=La(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<za&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=La(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Va=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=_a(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=va(r),_=Sa(o),v=va(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Na(o)]:Ta(o)),x=p!==`none`;!d&&x&&b.push(...Ma(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=wa(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Sa(t)||T.every(e=>Sa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Sa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Ha=new Set([`left`,`top`]);async function Ua(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=va(n),s=ya(n),c=Sa(n)===`y`,l=Ha.has(o)?-1:1,u=a&&c?-1:1,d=_a(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Wa=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ua(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ga=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_a(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Sa(i),p=ba(f),m=u[p],h=u[f],g=(e,t)=>ga(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ka=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=_a(e,t),u={x:n,y:r},d=Sa(i),f=ba(d),p=u[f],m=u[d],h=_a(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ha.has(va(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},qa=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=_a(e,t),c=await i.detectOverflow(t,s),l=va(n),u=ya(n),d=Sa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ua(p-c[m],g),y=ua(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*da(c.left,c.right):S=p-2*da(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ja(e){let t=ia(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Gi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=fa(n)!==a||fa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ya(e){return Wi(e)?e:e.contextElement}function Xa(e){let t=Ya(e);if(!Gi(t))return ma(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ja(t),o=(a?fa(n.width):n.width)/r,s=(a?fa(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Za=ma(0);function Qa(e){let t=Vi(e);return!na()||!t.visualViewport?Za:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $a(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Vi(e)}function eo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ya(e),o=ma(1);t&&(r?Wi(r)&&(o=Xa(r)):o=Xa(e));let s=$a(a,n,r)?Qa(a):ma(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Vi(a),t=Wi(r)?Vi(r):r,n=e,i=la(n);for(;i&&t!==n;){let e=Xa(i),t=i.getBoundingClientRect(),r=ia(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Vi(i),i=la(n)}}return Ia({width:u,height:d,x:c,y:l})}function to(e,t){let n=aa(e).scrollLeft;return t?t.left+n:eo(Hi(e)).left+n}function no(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-to(e,n),y:n.top+t.scrollTop}}function ro(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Hi(r),s=t?Yi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ma(1),u=ma(0),d=Gi(r);if((d||!a)&&((Bi(r)!==`body`||qi(o))&&(c=aa(r)),d)){let e=eo(r);l=Xa(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?no(o,c):ma(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function io(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ao(e){let t=aa(e),n=e.ownerDocument.body,r=da(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=da(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+to(e),o=-t.scrollTop;return ia(n).direction===`rtl`&&(a+=da(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var oo=25;function so(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Vi(e),a=Hi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!na()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(to(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=oo&&(s-=o)}return{width:s,height:c,x:l,y:u}}function co(e,t){let n=eo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Xa(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function lo(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=so(e,n,t);else if(t===`document`)r=ao(Hi(e));else if(Wi(t))r=co(t,n);else{let n=Qa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ia(r)}function uo(e,t){let n=t.get(e);if(n)return n;let r=ca(e,[],!1).filter(e=>Wi(e)&&Bi(e)!==`body`),i=null,a=ia(e).position===`fixed`,o=a?oa(e):e;for(;Wi(o)&&!ra(o);){let e=ia(o),t=ea(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=oa(o)}return t.set(e,r),r}function fo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Yi(t)?[]:uo(t,this._c):[].concat(n),r],o=lo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=lo(t,a[e],i);s=da(n.top,s),c=ua(n.right,c),l=ua(n.bottom,l),u=da(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function po(e){let{width:t,height:n}=Ja(e);return{width:t,height:n}}function mo(e,t,n){let r=Gi(t),i=Hi(t),a=n===`fixed`,o=eo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ma(0);if((r||!a)&&((Bi(t)!==`body`||qi(i))&&(s=aa(t)),r)){let e=eo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=to(i));let l=i&&!r&&!a?no(i,s):ma(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function ho(e){return ia(e).position===`static`}function go(e,t){if(!Gi(e)||ia(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Hi(e)===n&&(n=n.ownerDocument.body),n}function _o(e,t){let n=Vi(e);if(Yi(e))return n;if(!Gi(e)){let t=oa(e);for(;t&&!ra(t);){if(Wi(t)&&!ho(t))return t;t=oa(t)}return n}let r=go(e,t);for(;r&&Ji(r)&&ho(r);)r=go(r,t);return r&&ra(r)&&ho(r)&&!ea(r)?n:r||ta(e)||n}var vo=async function(e){let t=this.getOffsetParent||_o,n=this.getDimensions,r=await n(e.floating);return{reference:mo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yo(e){return ia(e).direction===`rtl`}var bo={convertOffsetParentRelativeRectToViewportRelativeRect:ro,getDocumentElement:Hi,getClippingRect:fo,getOffsetParent:_o,getElementRects:vo,getClientRects:io,getDimensions:po,getScale:Xa,isElement:Wi,isRTL:yo};function xo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function So(e,t,n){let r=null,i,a=Hi(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=pa(d),h=pa(a.clientWidth-(u+f)),g=pa(a.clientHeight-(d+p)),_=pa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:da(0,ua(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!xo(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Vi(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Co(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ya(e),u=i||a?[...l?ca(l):[],...t?ca(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?So(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?eo(e):null;c&&g();function g(){let t=eo(e);h&&!xo(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var wo=Wa,To=Ga,Eo=Va,Do=qa,Oo=Ka,ko=(e,t,n)=>{let r=new Map,i=n??{},a={...bo,...i.platform,_c:r};return Ba(e,t,{...i,platform:a})},Ao=typeof document<`u`?v.useLayoutEffect:function(){};function jo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jo(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!jo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Mo(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function No(e,t){let n=Mo(e);return Math.round(t*n)/n}function Po(e){let t=v.useRef(e);return Ao(()=>{t.current=e}),t}function Fo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);jo(f,r)||p(r);let[m,h]=v.useState(null),[g,_]=v.useState(null),y=v.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=v.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=v.useRef(null),w=v.useRef(null),T=v.useRef(u),E=c!=null,D=Po(c),O=Po(i),k=Po(l),A=v.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),ko(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!jo(T.current,t)&&(T.current=t,Ri.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Ao(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=v.useRef(!1);Ao(()=>(j.current=!0,()=>{j.current=!1}),[]),Ao(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=v.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=v.useMemo(()=>({reference:x,floating:S}),[x,S]),P=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=No(N.floating,u.x),r=No(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Mo(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Io=(e,t)=>{let n=wo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lo=(e,t)=>{let n=To(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ro=(e,t)=>({fn:Oo(e).fn,options:[e,t]}),zo=(e,t)=>{let n=Eo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bo=(e,t)=>{let n=Do(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Vo(){if(typeof navigator>`u`)return{userAgent:``,platform:``,maxTouchPoints:0};{let e=navigator.userAgentData;if(e&&Array.isArray(e.brands))return{userAgent:e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `),platform:e.platform??navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}return{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Ho,platform:Uo,maxTouchPoints:Wo}=Vo(),Go=Ho.toLowerCase(),Ko=Uo.toLowerCase(),qo=/^i(os$|p)/.test(Ko)||Ko===`macintel`&&Wo>1,Jo=`android`,Yo=Ko===Jo||Go.includes(Jo),Xo=!qo&&Ko.startsWith(`mac`);Ko.startsWith(`win`),!Yo&&/^(linux|chrome os)/.test(Ko);var Zo=Xo||qo,Qo=/jsdom|happydom/.test(Go);function $o(e){e.preventDefault(),e.stopPropagation()}function es(e){return`nativeEvent`in e}function ts(e){return e.pointerType===``&&e.isTrusted?!0:Yo&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ns(e){return Qo?!1:!Yo&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Yo||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function rs(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function is(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function as(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function X(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ki(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function os(e,t){let n=e;for(;n;){if(Wi(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Ki(n)?n.host:null)}return null}function ss(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var cs=`data-base-ui-focusable`,ls=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,us=`ArrowLeft`,ds=`ArrowRight`,fs=`ArrowUp`,ps=`ArrowDown`,ms=`data-starting-style`,hs=`data-ending-style`,gs={[ms]:``},_s={[hs]:``},vs={transitionStatus(e){return e===`starting`?gs:e===`ending`?_s:null}},ys=`data-open`,bs=`data-closed`,xs=`data-anchor-hidden`,Ss=`data-popup-open`,Cs=`data-pressed`,ws={[Ss]:``},Ts={[Ss]:``,[Cs]:``},Es={[ys]:``},Ds={[bs]:``},Os={[xs]:``},ks={open(e){return e?ws:null}},As={open(e){return e?Ts:null}},js={open(e){return e?Es:Ds},anchorHidden(e){return e?Os:null}},Ms={...js,...vs},Ns=`data-trigger-disabled`;function Ps(e,t){if(!Wi(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Ns);for(let[,e]of t.entries())if(X(e,n))return!e.hasAttribute(Ns);return!1}function Fs(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Is(e){return e.matches(`html,body`)}function Ls(e){return Gi(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Rs(e){return os(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ls}`)!=null}function zs(e){return e?e.getAttribute(`role`)===`combobox`&&Ls(e):!1}function Bs(e){if(!e||Qo)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Vs(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Hs(e){return e?.ownerDocument||document}function Us(e,t){return t<0||t>=e.length}function Ws(e,t){return qs(e.current,{disabledIndices:t})}function Gs(e,t){return qs(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ks(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>qs(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:Us(e,u)?-1:u,wrapped:d}}function qs(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Js(e,a,r));return a}function Js(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Xs(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Ys(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Xs(e,t=e?ia(e):null){return!e||!e.isConnected||!t||Ys(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Zs=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Qs(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Ki(n)?n.host:null}function $s(e){for(let t of Array.from(e.children))if(Bi(t)===`summary`)return t;return null}function ec(e,t){let n=$s(t);return!!n&&(e===n||X(n,e))}function tc(e){let t=e?Bi(e):``;return e!=null&&e.matches(Zs)&&(t!==`summary`||e.parentElement!=null&&Bi(e.parentElement)===`details`&&$s(e.parentElement)===e)&&(t!==`details`||$s(e)==null)&&(t!==`input`||e.type!==`hidden`)}function nc(e){if(!tc(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Qs(t)){let n=t!==e,r=Bi(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Bi(t)===`details`&&!t.open&&!ec(e,t)||t.hasAttribute(`hidden`)||!r&&!rc(t,n))return!1}return!0}function rc(e,t){let n=ia(e);return t?n.display!==`none`:Xs(e,n)}function ic(e){let t=e.tabIndex;if(t<0){let t=Bi(e);if(t===`details`||t===`audio`||t===`video`||Gi(e)&&e.isContentEditable)return 0}return t}function ac(e){if(Bi(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function oc(e,t){let n=ac(e);if(!n)return!0;let r=t.find(e=>{let t=ac(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ac(e);return t?.name===n.name&&t.form===n.form})===n}function sc(e){if(Gi(e)&&Bi(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Gi(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function cc(e,t){sc(e).forEach(e=>{tc(e)&&t.push(e),cc(e,t)})}function lc(e,t,n){sc(e).forEach(e=>{Gi(e)&&e.matches(t)&&n.push(e),lc(e,t,n)})}function uc(e){return nc(e)&&ic(e)>=0}function dc(e){let t=[];return cc(e,t),t.filter(nc)}function fc(e){let t=dc(e);return t.filter(e=>ic(e)>=0&&oc(e,t))}function pc(e,t){let n=fc(e),r=n.length;if(r===0)return;let i=as(Hs(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function mc(e){return pc(Hs(e).body,1)||e}function hc(e){return pc(Hs(e).body,-1)||e}function gc(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!X(n,r)}function _c(e){fc(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function vc(e){let t=[];lc(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var yc=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!yc&&Go.includes(`firefox`),!yc&&Go.includes(`chrom`);function bc(e,t,n,r){let i=!1,a=!1,o=r??Xr;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var xc=`none`,Sc=`trigger-press`,Cc=`trigger-hover`,wc=`trigger-focus`,Tc=`outside-press`,Ec=`item-press`,Dc=`focus-out`,Oc=`escape-key`,kc=`list-navigation`,Ac=`cancel-open`,jc=`disabled`,Mc=`missing`,Nc=`initial`,Pc=`imperative-action`,Fc=`window-resize`;function Ic(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Lc(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Rc=Li.useInsertionEffect,zc=Rc&&Rc!==Li.useLayoutEffect?Rc:e=>e();function Z(e){let t=Pr(Bc).current;return t.next=e,zc(t.effect),t.trampoline}function Bc(){let e={next:void 0,callback:Vc,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Vc(){throw Error(`Base UI: Cannot call an event handler while rendering.`)}var Hc={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Uc={...Hc,position:`fixed`,margin:0,top:0,left:0},Wc={...Hc,position:`absolute`};function Gc(){let[,e]=v.useState({});return v.useCallback(()=>{e({})},[])}var Kc=0;function qc(e,t=`mui`){let n=v.useRef(void 0),r=Gc(),i=e??n.current;return v.useEffect(()=>{n.current??(Kc+=1,n.current=`${t}-${Kc}`,e??r())},[e,t,r]),i}var Jc=Li.useId;function Yc(e,t){if(Jc!==void 0){let n=Jc();return e??(t?`${t}-${n}`:n)}return qc(e,t)}function Xc(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Zc=v.createContext(null);Zc.displayName=`FloatingNodeContext`;var Qc=v.createContext(null);Qc.displayName=`FloatingTreeContext`;var $c=()=>v.useContext(Zc)?.id||null,el=e=>{let t=v.useContext(Qc);return e??t},tl=o((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),nl=o(((e,t)=>{t.exports=tl()})),rl=o((e=>{var t=p(),n=nl();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),il=o(((e,t)=>{t.exports=rl()})),al=nl(),ol=il(),sl=[],cl=void 0;function ll(){return cl}function ul(e){sl.push(e)}function dl(e){let t=(t,n)=>{let r=Pr(pl).current,i;try{cl=r;for(let e of sl)e.before(r);i=e(t,n);for(let e of sl)e.after(r);r.didInitialize=!0}finally{cl=void 0}return i};return t.displayName=e.displayName||e.name,t}function fl(e){return v.forwardRef(dl(e))}function pl(){return{didInitialize:!1}}var ml=Zo,hl=v.forwardRef(function(e,t){let[n,r]=v.useState();Y(()=>{ml&&yc&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,J.jsx)(`span`,{...e,ref:t,style:Uc,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});hl.displayName=`FocusGuard`;function gl(e){return`data-base-ui-${e}`}var _l={style:{transition:`none`}},vl={fallbackAxisSide:`none`},yl={fallbackAxisSide:`end`},bl={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},xl=v.createContext(null);xl.displayName=`PortalContext`;var Sl=()=>v.useContext(xl),Cl=gl(`portal`);function wl(e={}){let{ref:t,container:n,componentProps:r=Xr,elementProps:i}=e,a=Yc(),o=Sl()?.portalNode,[s,c]=v.useState(null),[l,u]=v.useState(null),d=Z(e=>{e!==null&&u(e)}),f=v.useRef(null);Y(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(Ui(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=mi(`div`,r,{ref:[t,d],props:[{id:a,[Cl]:``},i]}),m=s&&p?Ri.createPortal(p,s):null;return{node:l,nodeId:v.isValidElement(p)?p.props.id:void 0,subtree:m}}var Tl=v.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=wl({container:o,ref:t,componentProps:e,elementProps:c}),f=v.useRef(null),p=v.useRef(null),m=v.useRef(null),h=v.useRef(null),[g,_]=v.useState(null),y=v.useRef(!1),b=g?.modal,x=g?.open,S=!!g&&!g.modal&&g.open&&!!l;v.useEffect(()=>{if(!l||b)return;function e(e){l&&e.relatedTarget&&gc(e)&&(e.type===`focusin`?y.current&&=(vc(l),!1):(_c(l),y.current=!0))}return Lc(Ic(l,`focusin`,e,!0),Ic(l,`focusout`,e,!0))},[l,b]),Y(()=>{l&&x===!0&&y.current&&(vc(l),y.current=!1)},[x,l]);let C=v.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,J.jsxs)(v.Fragment,{children:[d,(0,J.jsxs)(xl.Provider,{value:C,children:[S&&l&&(0,J.jsx)(hl,{"data-type":`outside`,ref:f,onFocus:e=>{gc(e,l)?m.current?.focus():hc(g?g.domReference:null)?.focus()}}),S&&l&&(0,J.jsx)(`span`,{role:s,"aria-owns":u,style:bl}),l&&Ri.createPortal(a,l),S&&l&&(0,J.jsx)(hl,{"data-type":`outside`,ref:p,onFocus:e=>{gc(e,l)?h.current?.focus():(mc(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,bc(`focus-out`,e.nativeEvent)))}})]})]})});Tl.displayName=`FloatingPortal`;var El;function Dl(e){El??=new WeakMap;let t=El.get(e);return t||(t=new WeakMap,El.set(e,t)),t}var Ol=class{idMap=new Map;add(e,t){{let n=Dl(this),r=n.get(t);if(r!==void 0&&r!==e)throw Error(`Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.`);let i=this.idMap.get(e);i!==void 0&&i!==t&&n.delete(i),n.set(t,e)}this.idMap.set(e,t)}delete(e){{let t=this.idMap.get(e);t!==void 0&&El?.get(this)?.delete(t)}this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},kl=Hr(19)?Ml:Nl;function Al(e,t,n,r,i){return kl(e,t,n,r,i)}function jl(e,t,n,r,i){let a=v.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,al.useSyncExternalStore)(e.subscribe,a,a)}ul({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,al.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ml(e,t,n,r,i){let a=ll();if(!a)return jl(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Nl(e,t,n,r,i){return(0,ol.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Pl=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Al(this,e,t,n,r)}},Fl=class extends Pl{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){v.useDebugValue(e);let n=this;Y(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;{v.useDebugValue(e,e=>Object.keys(e));let t=v.useRef(Object.keys(e)).current,n=Object.keys(e);(t.length!==n.length||t.some((e,t)=>e!==n[t]))&&console.error(`ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.`)}Y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){v.useDebugValue(e);let n=this,r=t!==void 0;Y(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r]);{let t=this.controlledValues??=new Map;t.has(e)||t.set(e,r);let n=t.get(e);n!==void 0&&n!==r&&console.error(`A component is changing the ${n?``:`un`}controlled state of ${e.toString()} to be ${n?`un`:``}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return v.useDebugValue(e),Al(this,this.selectors[e],t,n,r)}useContextCallback(e,t){v.useDebugValue(e);let n=Z(t??Jr);this.context[e]=n}useStateSetter(e){let t=v.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Il={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Ll=class extends Fl{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Xc(),nested:n,triggerElements:i},Il),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&is(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Rl(e){v.useEffect(e,Yr)}var zl=0,Bl=class e{static create(){return new e}currentId=zl;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=zl,t()},e)}isStarted(){return this.currentId!==zl}clear=()=>{this.currentId!==zl&&(clearTimeout(this.currentId),this.currentId=zl)};disposeEffect=()=>this.clear};function Vl(){let e=Pr(Bl.create).current;return Rl(e.disposeEffect),e}function Hl(e){let t=Pr(Ul,e).current;return t.next=e,Y(t.effect),t}function Ul(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Wl=null,Gl=globalThis.requestAnimationFrame,Kl=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;let n=Gl!==requestAnimationFrame&&(Gl=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},ql=class e{static create(){return new e}static request(e){return Kl.request(e)}static cancel(e){return Kl.cancel(e)}currentId=Wl;request(e){this.cancel(),this.currentId=Kl.request(()=>{this.currentId=Wl,e()})}cancel=()=>{this.currentId!==Wl&&(Kl.cancel(this.currentId),this.currentId=Wl)};disposeEffect=()=>this.cancel};function Jl(){let e=Pr(ql.create).current;return Rl(e.disposeEffect),e}function Yl(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}function Xl(e){return e==null?e:`current`in e?e.current:e}var Zl=null;function Ql(e){if(!Zl){let e=[];Zl=e,queueMicrotask(()=>{Zl=null,Ri.flushSync(()=>{for(let t of e)t()})})}Zl.push(e)}function $l(e,t=!1,n=!1){let r=Jl();return Z((i,a=null)=>{r.cancel();let o=Xl(e);if(o==null)return;let s=o,c=()=>{n?Ql(()=>{a?.aborted||i()}):Ri.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(Yl(s).map(e=>e.finished.then(Jr))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(Yl(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=ms;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function eu(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=Z(a),s=$l(r,n,i);v.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function tu(e,t=!1,n=!1,r=!1){let[i,a]=v.useState(e&&t?`idle`:void 0),[o,s]=v.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),Y(()=>{if(!e&&o&&i!==`ending`&&n){let e=ql.request(()=>{a(`ending`)});return()=>{ql.cancel(e)}}},[e,o,i,n]),Y(()=>{if(!e||t||i===void 0)return;let n=ql.request(()=>{a(void 0)});return()=>{ql.cancel(n)}},[t,e,i]),Y(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=ql.request(()=>{a(`idle`)});return()=>{ql.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function nu(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...nu(e,t.id,n)])}function ru(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function iu(){return!1}function au(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function ou(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=iu,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=el(c),m=Z(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=Z(()=>a),{escapeKey:y,outsidePress:b}=au(s),x=v.useRef(!1),S=v.useRef(!1),C=v.useRef(!1),w=v.useRef(!1),T=v.useRef(!1),E=v.useRef(``),D=v.useRef(null),O=Vl(),k=Vl(),A=Vl(),j=Z(()=>{k.clear(),d.current.insideReactTree=!1}),M=Z(e=>{let t=d.current.floatingContext?.nodeId;return(p?nu(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),N=Z(t=>Fs(t,e.select(`floatingElement`))||Fs(t,e.select(`domReferenceElement`))),P=Z(t=>{o()&&e.setOpen(!1,bc(Sc,t.nativeEvent))}),F=Z(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=es(t)?t.nativeEvent:t;if(T.current||i.isComposing||!y&&M(`__escapeKeyBubbles`))return;let a=bc(Oc,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!y&&!a.isPropagationAllowed&&t.stopPropagation()}),I=Z(()=>{d.current.insideReactTree=!0,k.start(0,j)}),L=Z(t=>{if(!l||!n||t.button!==0)return;let r=ss(t.nativeEvent);X(e.select(`floatingElement`),r)&&(x.current||(x.current=!0,S.current=!1))}),R=Z(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});v.useEffect(()=>{function e(e){e.open||(w.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),v.useEffect(()=>j,[j]),v.useEffect(()=>{if(!l||!n)return l||(w.current=!1,T.current=!1,E.current=``,D.current=null),j;d.current.__escapeKeyBubbles=y,d.current.__outsidePressBubbles=b;let t=new Bl,i=Hs(u);function a(){A.clear(),T.current=!0}function o(){T.current=!0,A.start(yc?5:0,()=>{T.current=!1})}function s(){C.current=!0,t.start(0,()=>{C.current=!1})}function c(){x.current=!1,S.current=!1}function f(){let e=E.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function v(e){let t=d.current.floatingContext?.nodeId,n=p&&nu(p.nodesRef.current,t).some(t=>Fs(e,t.context?.elements.floating));return N(e)||n}function k(n){if(m(n)){n.type!==`click`&&!N(n)&&(t.clear(),C.current=!1),j();return}if(d.current.insideReactTree){j();return}let r=ss(n),i=`[${gl(`inert`)}]`,a=Wi(r)?r.getRootNode():null,o=Array.from((Ki(a)?a:Hs(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>X(e,r))))return;let c=Wi(r)?r:null;for(;c&&!ra(c);){let e=oa(c);if(ra(e)||!Wi(e))break;c=e}if(!(o.length&&Wi(r)&&!Is(r)&&!X(r,e.select(`floatingElement`))&&o.every(e=>!X(c,e)))){if(Gi(r)&&!(`touches`in n)){let e=ra(r),t=ia(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!v(n)){if(f()===`intentional`){if(n.detail!==0&&!ts(n)&&!w.current)return;if(C.current){t.clear(),C.current=!1;return}}typeof h==`function`&&!h(n)||M(`__outsidePressBubbles`)||(e.setOpen(!1,bc(Tc,n)),j())}}}function P(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!N(t)&&k(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||N(t))return;let r=t.touches[0];r&&(D.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=ss(e);if(!n)return;let r=Ic(n,e.type,()=>{t(e),r()})}function R(e){E.current=`touch`,L(e,I)}function z(e){O.clear(),e.type===`pointerdown`&&(e.button===0&&(w.current=!0),E.current=e.pointerType),(e.type!==`mousedown`||!D.current||D.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?P(e):k(e)})}function B(e){if(e.type===`pointercancel`&&(w.current=!1),!x.current)return;let n=S.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():v(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),C.current=!0,j())))}function ee(e){if(f()!==`sloppy`||!D.current||N(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(k(e),O.clear(),D.current=null)}function V(e){L(e,ee)}function H(e){f()===`sloppy`&&D.current&&!N(e)&&(D.current.dismissOnTouchEnd&&k(e),O.clear(),D.current=null)}function te(e){L(e,H)}let ne=Lc(r&&Lc(Ic(i,`keydown`,F),Ic(i,`compositionstart`,a),Ic(i,`compositionend`,o)),g&&Lc(Ic(i,`click`,z,!0),Ic(i,`pointerdown`,z,!0),Ic(i,`pointerup`,B,!0),Ic(i,`pointercancel`,B,!0),Ic(i,`mousedown`,z,!0),Ic(i,`mouseup`,B,!0),Ic(i,`touchstart`,R,{capture:!0,passive:!0}),Ic(i,`touchmove`,V,{capture:!0,passive:!0}),Ic(i,`touchend`,te,{capture:!0,passive:!0})));return()=>{ne(),t.clear(),c(),C.current=!1}},[d,u,r,g,h,l,n,y,b,F,j,_,M,N,p,e,O,A]);let z=v.useMemo(()=>({onKeyDown:F,onPointerDown:P,onClick:P}),[F,P]),B=v.useMemo(()=>({onKeyDown:F,onPointerDown:R,onMouseDown:R,onClickCapture:I,onMouseDownCapture(e){I(),L(e)},onPointerDownCapture(e){I(),L(e)},onMouseUpCapture:I,onTouchEndCapture:I,onTouchMoveCapture:I}),[F,I,L,R]);return v.useMemo(()=>n?{reference:z,floating:B,trigger:z}:{},[n,z,B])}function su(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),Y(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};Wi(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function cu(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=Z(i),{mounted:c,setMounted:l,transitionStatus:u}=tu(t,!1,!1,o),d=!t&&r;Y(()=>{t&&s(!1)},[t,s]);let f=v.useRef(c),p=v.useRef(!1),m=Gc(),h=()=>{f.current=!1,l(!1),a()};Y(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=Z(()=>{f.current&&(t?(p.current=!0,m()):h())});return eu({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var lu={tabIndex:-1,[cs]:``};function uu(e,t=!1){let n=Yc(),r=$c()!=null,i=Pr(()=>e(n,r)).current;return su({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function du({handle:e,store:t}){return Y(()=>e.attachStore(t),[e,t]),null}function fu(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function pu(e,t){let n=v.useRef(null);return Z(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),fu(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),fu(t))})}function mu(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function hu(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function gu(e,t,n,r={}){let i=n.reason,a=i===Cc,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=hu(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=mu(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?Ri.flushSync(l):l()}function _u(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=pu(e,n),o=Z(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=Z(e=>{a(e),e&&o(e)});return Y(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Y(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function vu(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=v.useRef(null),i=e.useState(`open`);Y(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=bc(xc);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function yu(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=cu({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return Pr(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function bu(e,t){e.useSyncedValues(t),Y(()=>()=>{e.update({activeTriggerProps:Xr,inactiveTriggerProps:Xr,popupProps:Xr})},[e])}function xu(e,t){return t!=null&&!rs(t)?0:typeof e==`function`?e():e}function Su(e,t,n){let r=xu(e,n);return typeof r==`number`?r:r?.[t]}function Cu(e){return typeof e==`function`?e():e}function wu(e,t){return t||e===`click`||e===`mousedown`}function Tu(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Eu=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new Bl;restTimeout=new Bl;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Du=new WeakMap;function Ou(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Du.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Du.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function ku(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Du.get(n);a&&a!==e&&Ou(a),Ou(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Du.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Au(e){let t=e.context.dataRef.current,n=Pr(()=>t.hoverInteractionState??Eu.create()).current;return t.hoverInteractionState||=n,Rl(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ju(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=el(),u=$c(),d=Au(e),f=Vl(),p=Z(()=>wu(c.current.openEvent?.type,d.interactedInside)),m=Z(()=>Tu(c.current.openEvent?.type)),h=Z(()=>{Ou(d)});Y(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),v.useEffect(()=>h,[h]),Y(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&Wi(s)&&o){let e=s,t=o,n=Hs(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??os(e,`[data-rootownerid]`)??n.body;return ku(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),v.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&nu(l.nodesRef.current,u).length>0)}function a(t){let n=Su(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,bc(Cc,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=ss(e);Rs(t)?d.interactedInside=os(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(Ps(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&Wi(o)&&nu(l.nodesRef.current,r,!1).some(e=>X(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,bc(Cc,n)),l.events.emit(`floating.closed`,n)})}let y=o;return Lc(y&&Ic(y,`mouseenter`,g),y&&Ic(y,`mouseleave`,_),y&&Ic(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var Mu={current:null};function Nu(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Mu,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=el(l),y=Au(e),b=v.useRef(!1),x=Hl(i),S=Hl(r),C=Hl(o),w=Hl(n),T=Hl(p),E=Hl(f),D=Z(()=>wu(h.current.openEvent?.type,y.interactedInside)),O=Z(()=>T.current?.()!==!1),k=Z((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!X(t,n);if(!Wi(r))return!1;let a=r;return i.hasMatchingElement(e=>X(e,a))&&(!t||!X(t,a))}),A=Z(()=>{y.handler&&=(Hs(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),j=Z(()=>{Ou(y)});return u&&(y.handleCloseOptions=i?.__options),v.useEffect(()=>A,[A]),v.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===Cc,A(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,y,A]),v.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=Su(S.current,`close`,y.pointerType);r?y.openChangeTimeout.start(r,()=>{e.setOpen(!1,bc(Cc,t)),_?.events.emit(`floating.closed`,t)}):n&&(y.openChangeTimeout.clear(),e.setOpen(!1,bc(Cc,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!Wi(r))return;function i(t){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!rs(y.pointerType))return;let n=Cu(C.current),r=Su(S.current,`open`,y.pointerType),i=ss(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(Wi(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(X(t,i)){c=t;break}}Wi(o)&&Wi(s)&&!e.context.triggerElements.hasElement(o)&&X(o,s)&&(c=s);let l=c!=null&&k(s,c,i),u=e.select(`open`),d=E.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&b.current,p=!l&&Wi(c)&&Wi(s)&&X(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?O()&&e.setOpen(!0,bc(Cc,t,c)):m||(r?y.openChangeTimeout.start(r,()=>{g&&O()&&e.setOpen(!0,bc(Cc,t,c))}):g&&O()&&e.setOpen(!0,bc(Cc,t,c)))}function o(n){if(D()){j();return}A();let r=Hs(e.select(`domReferenceElement`));y.restTimeout.clear(),y.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!Ps(n.relatedTarget,e.context.triggerElements)){if(x.current&&i){e.select(`open`)||y.openChangeTimeout.clear();let a=c.current;y.handler=x.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){j(),A(),w.current&&!D()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,y.handler),y.handler(n)}else y.pointerType===`touch`&&X(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){X(r,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let f=m?Ic(r,`mouseout`,l):void 0;return s?Lc(Ic(r,`mousemove`,i,{once:!0}),Ic(r,`mouseenter`,i),Ic(r,`mouseleave`,o),f):Lc(Ic(r,`mouseenter`,i),Ic(r,`mouseleave`,o),f)},[A,j,h,S,e,n,x,y,u,k,D,a,s,C,c,_,w,d,E,O,m]),v.useMemo(()=>{if(!n)return;function t(e){y.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=k(i,r,t.target);if(a&&!rs(y.pointerType))return;if(o&&s&&y.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=y.handleCloseOptions?.getScope?.()??r.ownerDocument.body;ku(y,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=Cu(C.current);if(o&&!s||c===0||!s&&y.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;y.restTimeout.clear();function l(){if(y.restTimeoutPending=!1,D())return;let t=e.select(`open`);!y.blockMouseMove&&(!t||s)&&O()&&e.setOpen(!0,bc(Cc,n,r))}y.pointerType===`touch`?Ri.flushSync(()=>{l()}):s&&o?l():(y.restTimeoutPending=!0,y.restTimeout.start(c,l))}}},[n,y,D,k,a,e,C,O])}var Pu=.1,Fu=Pu*Pu,Iu=.5;function Lu(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Ru(e,t,n,r,i,a,o,s,c,l){let u=!1;return Lu(e,t,n,r,i,a)&&(u=!u),Lu(e,t,i,a,o,s)&&(u=!u),Lu(e,t,o,s,c,l)&&(u=!u),Lu(e,t,c,l,n,r)&&(u=!u),u}function zu(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Bu(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Vu(e={}){let{blockPointerEvents:t=!1}=e,n=new Bl,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Fu;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=ss(r),g=r.type===`mouseleave`,_=X(u,h),v=X(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&Wi(r.relatedTarget)&&X(u,r.relatedTarget))return;function y(){return!!(s&&nu(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=Bu(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Bu(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Bu(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Bu(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!zu(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?Iu/2:Iu*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Iu+1,o=C||T?S.bottom-Iu:S.top,s=C?T?S.bottom-Iu:S.top:S.bottom-Iu;M=Ru(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Iu/2:Iu*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Iu,o=C||T?S.top+Iu:S.bottom,s=C?T?S.top+Iu:S.bottom:S.top+Iu;M=Ru(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Iu/2:Iu*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Iu+1,o=w||E?S.right-Iu:S.left,s=w?E?S.right-Iu:S.left:S.right-Iu;M=Ru(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Iu/2:Iu*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Iu,o=w||E?S.left+Iu:S.right,s=w?E?S.left+Iu:S.right:S.left+Iu;M=Ru(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function Hu(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Ll({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Xr,inactiveTriggerProps:Xr,popupProps:Xr}}var Uu=e=>e.triggerIdProp??e.activeTriggerId,Wu=e=>e.openProp??e.open,Gu=e=>(e.popupElement?.id??e.floatingId)||void 0;function Ku(e,t){return t!==void 0&&Wu(e)&&Uu(e)===t}function qu(e,t){return Ku(e,t)?!0:t!==void 0&&Wu(e)&&Uu(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var Ju={open:Wu,mounted:e=>e.mounted,transitionStatus:e=>Wu(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Uu,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Gu,isTriggerActive:(e,t)=>t!==void 0&&Uu(e)===t,isOpenedByTrigger:(e,t)=>Ku(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Uu(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>qu(e,t)?Gu(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Yu(e){let t=v.useCallback(t=>e===void 0?Jr:e.subscribeStore(t),[e]),n=v.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,al.useSyncExternalStore)(t,n,()=>e?.serverStore)}var Xu=Xo&&yc;function Zu(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=v.useRef(!1),s=v.useRef(null),c=v.useRef(!0),l=Vl();v.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=Vi(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&Gi(t)&&t===as(Hs(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return Lc(Ic(r,`blur`,i),Xu&&Ic(r,`keydown`,a,!0),Xu&&Ic(r,`pointerdown`,l,!0))},[e,n]),v.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);Wi(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=v.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=ss(n.nativeEvent);if(Wi(a)){if(Xu&&!n.relatedTarget){if(!c.current&&!Ls(a))return}else if(!Bs(a))return}let u=Ps(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,bc(wc,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,bc(wc,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=Wi(r)&&r.hasAttribute(gl(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=as(Hs(t));!r&&n===t||X(a.current.floatingContext?.refs.floating.current,n)||X(t,n)||o||Ps(r??n,e.context.triggerElements)||e.setOpen(!1,bc(wc,i))})}}},[a,r,e,l]);return v.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}function Qu(e){return Yc(e,`base-ui`)}var $u=v.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=wl({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,J.jsxs)(v.Fragment,{children:[l,c&&Ri.createPortal(n,c)]})});$u.displayName=`FloatingPortalLite`;var ed=v.createContext(void 0);ed.displayName=`DirectionContext`;function td(){return v.useContext(ed)?.direction??`ltr`}function nd(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=v.useState(null),d=v.useRef(null),f=el(n),p=v.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=Fo({...e,elements:{...p,...l&&{reference:l}}}),h=v.useCallback(e=>{let t=Wi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=v.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=v.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),y=v.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return Y(()=>{o&&(d.current=o)},[o]),Y(()=>{r.context.dataRef.current.floatingContext=y;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),v.useMemo(()=>({...m,context:y,refs:g,elements:_,rootStore:r}),[m,g,_,y,r])}var rd=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=_a(e,t)||{};if(l==null)return{};let d=Fa(u),f={x:n,y:r},p=Ca(i),m=xa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=ga(D,k,O),j=!c.arrow&&ya(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),id=(e,t)=>{let{name:n,fn:r}=rd(e);return{name:n,fn:r,options:[e,t]}},ad={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},od={sideX:`left`,sideY:`top`},sd=`--available-width`,cd=`--available-height`,ld=`--anchor-width`,ud=`--anchor-height`,dd=`--transform-origin`,fd=sd,pd=cd;function md(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function hd(e,t,n){let{rects:r,placement:i}=e;return{side:md(t,va(i),n),align:ya(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function gd(e){return _d(e,nd)}function _d(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,w=_.side||`flip`,T=_.align||`flip`,E=_.fallbackAxisSide||`end`,D=y?.crossAxis??!1,O=y?.rootBoundary,k=typeof n==`function`?n:void 0,A=Z(k),j=k?A:n,M=Hl(n),N=Hl(g),P=td()===`rtl`,[F,I]=v.useState(null);!g&&F!==null&&I(null);let L=S===`placement`,R=F?va(F):null,z=F&&L?ya(F)||`center`:null,B=R||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":P?`left`:`right`,"inline-start":P?`right`:`left`}[i],ee=z||o,V=ee===`center`?B:`${B}-${ee}`,H=l;typeof H==`number`?H={top:H,right:H,bottom:H,left:H}:H&&={top:H.top||0,right:H.right||0,bottom:H.bottom||0,left:H.left||0};let te=+(i===`bottom`),ne=+(i===`top`),U=+(i===`right`),re=+(i===`left`),ie={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:H},ae=v.useRef(null),oe=Hl(a),W=Hl(s),G=typeof a==`function`?0:a,se=typeof s==`function`?0:s,ce=[];p&&ce.push(p),ce.push(Io(e=>{let t=hd(e,i,P),n=typeof oe.current==`function`?oe.current(t):oe.current,r=typeof W.current==`function`?W.current(t):W.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[G,se,P,i]));let le=T===`none`&&w!==`shift`,ue=!le&&(u||D||w===`shift`),de=w===`none`?null:zo({...ie,padding:{top:H.top+1+te,right:H.right+1+re,bottom:H.bottom+1+ne,left:H.left+1+U},mainAxis:!D&&w===`flip`,crossAxis:T===`flip`&&`alignment`,fallbackAxisSideDirection:E}),K=le?null:Lo({...ie,rootBoundary:O,mainAxis:T!==`none`,crossAxis:ue,limiter:u||D?void 0:Ro(e=>{if(!ae.current)return{};let{width:t,height:n}=ae.current.getBoundingClientRect(),r=Sa(va(e.placement)),i=r===`y`?t:n,a=r===`y`?H.left+H.right:H.top+H.bottom;return{offset:i/2+a/2}})},[ie,u,D,O,H,T]);w===`shift`||T===`shift`||ee===`center`?ce.push(K,de):ce.push(de,K),ce.push(Bo({...ie,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!N.current)return;let i=e.style;i.setProperty(fd,`${t}px`),i.setProperty(pd,`${n}px`);let a=Vi(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(ld,`${u}px`),i.setProperty(ud,`${d}px`)}}),id(e=>({element:ae.current||Hs(e.elements.floating).createElement(`div`),padding:ae.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=va(r),u=ya(r),d=Sa(l)===`y`,f=ae.current,p=typeof a==`function`?a(hd(e,i,P)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return ue&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(dd,d?`${m} ${h}`:`${h} ${m}`),{}}},ad,x),Y(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let fe=v.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:pe,elements:me,x:he,y:ge,middlewareData:_e,update:ve,placement:ye,context:be,isPositioned:xe,floatingStyles:Se}=t({rootContext:h,open:m?g:void 0,placement:V,middleware:ce,strategy:r,whileElementsMounted:m?void 0:(...e)=>Co(...e,fe),nodeId:b,externalTree:C}),{sideX:Ce,sideY:we}=_e.adaptiveOrigin||od,Te=xe?r:`fixed`,Ee=v.useMemo(()=>{let e;return e=xe?x?{position:Te,[Ce]:he,[we]:ge}:{...Se,position:Te}:{position:Te,top:0,left:0},e[fd]=`100vw`,e[pd]=`100vh`,xe||(e.opacity=0),e},[x,Te,Ce,he,we,ge,Se,xe]),De=v.useRef(null);Y(()=>{if(!g)return;let e=M.current,t=typeof e==`function`?e():e,n=(vd(t)?t.current:t)||null;n!==De.current&&(pe.setPositionReference(n),De.current=n)},[g,pe,j,M]),v.useEffect(()=>{if(!g)return;let e=M.current;typeof e!=`function`&&vd(e)&&e.current!==De.current&&(pe.setPositionReference(e.current),De.current=e.current)},[g,pe,j,M]),v.useEffect(()=>{if(m&&g&&me.reference&&me.floating)return Co(me.reference,me.floating,ve,fe)},[m,g,me,ve,fe]);let Oe=va(ye),ke=md(i,Oe,P),Ae=ya(ye)||`center`,je=!!_e.hide?.referenceHidden;Y(()=>{S&&g&&xe&&(Oe!==B||L&&Ae!==ee)&&I(ye)},[S,L,g,xe,ye,Oe,Ae,B,ee]);let Me=v.useMemo(()=>({position:`absolute`,top:_e.arrow?.y,left:_e.arrow?.x}),[_e.arrow]),Ne=_e.arrow?.centerOffset!==0;return v.useMemo(()=>({positionerStyles:Ee,arrowStyles:Me,arrowRef:ae,arrowUncentered:Ne,side:ke,align:Ae,physicalSide:Oe,anchorHidden:je,refs:pe,context:be,isPositioned:xe,update:ve}),[Ee,Me,ae,Ne,ke,Ae,Oe,je,pe,be,xe,ve])}function vd(e){return e!=null&&`current`in e}function yd(e){return e===`starting`?_l:Xr}function bd(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),mi(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},yd(r),i],stateAttributesMapping:js})}var xd=v.createContext(void 0);xd.displayName=`TooltipRootContext`;function Sd(e){let t=v.useContext(xd);if(t===void 0&&!e)throw Error(`Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.`);return t}var Cd=v.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Bl,currentIdRef:{current:null},currentContextRef:{current:null}});Cd.displayName=`FloatingDelayGroupContext`;function wd(e,t){e.current=t.current}function Td(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=v.useRef(n),a=v.useRef(n),o=v.useRef(null),s=v.useRef(null),c=Vl();return Y(()=>{a.current=n,o.current?i.current={open:Su(i.current,`open`),close:Su(n,`close`)}:i.current=n},[n,o,i,a]),(0,J.jsx)(Cd.Provider,{value:v.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Ed(e,t={open:!1}){let{open:n}=t,r=e.useState(`floatingId`),{currentIdRef:i,delayRef:a,timeoutMs:o,initialDelayRef:s,currentContextRef:c,hasProvider:l,timeout:u}=v.useContext(Cd),[d,f]=v.useState(!1),p=v.useRef(n);return Y(()=>{p.current=n},[n]),Y(()=>{function t(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=s.current,u.clear()}if(i.current&&!n&&i.current===r){if(f(!1),o){let n=r;return u.start(o,()=>{e.select(`open`)||i.current&&i.current!==n||t()}),()=>{(p.current||i.current!==n)&&u.clear()}}t()}},[n,r,i,a,o,s,c,u,e]),Y(()=>{if(!n)return;let t=c.current,o=i.current;u.clear(),c.current={onOpenChange:e.setOpen,setIsInstantPhase:f},i.current=r,a.current={open:0,close:Su(s.current,`close`)},o!==null&&o!==r?(f(!0),t?.setIsInstantPhase(!0),t?.onOpenChange(!1,bc(xc))):(f(!1),t?.setIsInstantPhase(!1))},[n,r,e,i,a,s,c,u]),Y(()=>()=>{if(i.current===r){if(c.current=null,!p.current)return;i.current=null,wd(a,s),u.clear()}},[c,i,a,r,s,u]),v.useMemo(()=>({activeIdRef:i,hasProvider:l,delayRef:a,isInstantPhase:d}),[i,l,a,d])}function Dd(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,(!i||c)&&(d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Od(e){return e!=null&&e.clientX!=null}function kd(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=e.useState(`open`),a=e.useState(`floatingElement`),o=e.useState(`domReferenceElement`),s=e.context.dataRef,c=v.useRef(!1),l=v.useRef(null),[u,d]=v.useState(),[f,p]=v.useState([]),m=Z(t=>{e.set(`positionReference`,t)}),h=Z((t,n,i)=>{c.current||(!s.current.openEvent||Od(s.current.openEvent))&&e.set(`positionReference`,Dd(i??o,{x:t,y:n,axis:r,dataRef:s,pointerType:u}))}),g=Z(e=>{i?l.current||(h(e.clientX,e.clientY,e.currentTarget),p([])):h(e.clientX,e.clientY,e.currentTarget)}),_=rs(u)?a:i;v.useEffect(()=>{if(!n){m(o);return}if(!_)return;function e(){l.current?.(),l.current=null}let t=Vi(a);function r(t){let n=ss(t);X(a,n)?e():h(t.clientX,t.clientY)}return!s.current.openEvent||Od(s.current.openEvent)?l.current=Ic(t,`mousemove`,r):m(o),e},[_,n,a,s,o,e,h,m,f]),v.useEffect(()=>()=>{e.set(`positionReference`,null)},[e]),v.useEffect(()=>{n&&!a&&(c.current=!1)},[n,a]),v.useEffect(()=>{!n&&i&&(c.current=!0)},[n,i]);let y=v.useMemo(()=>{function e(e){d(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return v.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var Ad={...Ju,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},jd=class extends Fl{constructor(e,t,n){let r=new Ol;super(Md(e,r,t,n),Nd(r),Ad)}setOpen=(e,t)=>{gu(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,bc(Sc,e))}};function Md(e,t,n,r=!1){return{...Hu(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function Nd(e){return{popupRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Pd=dl(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=uu((e,t)=>new jd({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),y=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),vu(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:x}=yu(h,p),S=p.useState(`isInstantPhase`),C=p.useState(`instantType`),w=p.useState(`lastOpenChangeReason`),T=v.useRef(null);Y(()=>{m&&t&&p.setOpen(!1,bc(jc))},[m,t,p]),Y(()=>{x===`ending`&&w===`none`||x!==`ending`&&S?(C!==`delay`&&(T.current=C),p.set(`instantType`,`delay`)):T.current!==null&&(p.set(`instantType`,T.current),T.current=null)},[x,S,w,C,p]),Y(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),v.useImperativeHandle(o,()=>({unmount:b,close:()=>p.setOpen(!1,bc(Pc))}),[b,p]);let E=h||_||!t&&a!==`none`;return(0,J.jsxs)(xd.Provider,{value:p,children:[l&&(0,J.jsx)(du,{handle:l,store:p}),E&&(0,J.jsx)(Fd,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:y}):f]})});Pd.displayName=`TooltipRoot`;function Fd({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=ou(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=kd(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=v.useMemo(()=>ti(a.reference,i.reference),[a.reference,i.reference]);return bu(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??Xr}),null}var Id=v.createContext(void 0);Id.displayName=`TooltipProviderContext`;function Ld(){return v.useContext(Id)}var Rd=`data-base-ui-tooltip-trigger`;function zd(e){let t=ss(e);return Wi(t)?t:null}var Bd=fl(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=Sd(!0),m=Yu(a)??p;if(!m)throw Error(`Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.`);let h=Qu(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),y=m.useState(`floatingRootContext`),b=v.useRef(null),x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=_u(h,b,m,{payload:o,closeOnClick:l,closeDelay:x}),w=Ld(),{activeIdRef:T,delayRef:E,isInstantPhase:D,hasProvider:O}=Ed(y,{open:_}),k=Au(y);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=Hl(j),N=m.useState(`trackCursorAxis`),P=m.useState(`disableHoverablePopup`),F=v.useRef(!1),I=Vl(),L=v.useRef(void 0);function R(){return O&&T.current!=null?0:c??w??600}function z(e){let t=b.current;if(!t||!e)return!1;let n=os(e,`[${Rd}]`);return n!==null&&n!==t&&X(t,n)}function B(e){let t=z(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let ee=Nu(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!P&&N!==`both`?Vu():null,restMs:R,delay(){return u==null&&O?{close:Su(E.current,`close`)}:{close:x}},triggerElementRef:b,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),V=Zu(y,{enabled:!j}).reference,H=e=>{let t=F.current,n=zd(e),r=B(n),i=b.current,a=i&&n&&X(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`)m.setOpen(!1,bc(Cc,e));else if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&rs(L.current)){let t=()=>{F.current||M.current||m.select(`open`)||m.setOpen(!0,bc(Cc,e,i))},n=R();n===0?(I.clear(),t()):I.start(n,t)}},te=m.useState(`appliedTriggerProps`,C||N!==`none`);return mi(`button`,e,{state:{open:_},ref:[t,S,b],props:[ee,V,te,{onMouseOver(e){H(e.nativeEvent)},onFocus(e){z(zd(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Ns]:j?``:void 0,[Rd]:j?void 0:``},f],stateAttributesMapping:ks})});Bd.displayName=`TooltipTrigger`;var Vd=v.createContext(void 0);Vd.displayName=`TooltipPortalContext`;function Hd(){let e=v.useContext(Vd);if(e===void 0)throw Error(`Base UI: <Tooltip.Portal> is missing.`);return e}var Ud=v.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Sd().useState(`mounted`)||n?(0,J.jsx)(Vd.Provider,{value:n,children:(0,J.jsx)($u,{ref:t,...r})}):null});Ud.displayName=`TooltipPortal`;var Wd=v.createContext(void 0);Wd.displayName=`TooltipPositionerContext`;function Gd(){let e=v.useContext(Wd);if(e===void 0)throw Error(`Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.`);return e}var Kd=v.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=yl,style:g,..._}=e,y=Sd(),b=Hd(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`trackCursorAxis`),w=y.useState(`disableHoverablePopup`),T=y.useState(`floatingRootContext`),E=y.useState(`instantType`),D=y.useState(`transitionStatus`),O=gd({anchor:i,positionMethod:a,floatingRootContext:T,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:b,collisionAvoidance:h,adaptiveOrigin:y.useState(`adaptiveOrigin`)}),k=bd(e,v.useMemo(()=>({open:x,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:C===`none`?E:`tracking-cursor`}),[x,O.side,O.align,O.anchorHidden,C,E]),{styles:O.positionerStyles,transitionStatus:D,props:_,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x||C===`both`||w});return(0,J.jsx)(Wd.Provider,{value:O,children:k})});Kd.displayName=`TooltipPositioner`;var qd=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Sd(),{side:s,align:c}=Gd(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);eu({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),ju(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return mi(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[lu,f,yd(d),a],stateAttributesMapping:Ms})});qd.displayName=`TooltipPopup`;var Jd=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Sd(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Gd();return mi(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:js})});Jd.displayName=`TooltipArrow`;var Yd=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=v.useMemo(()=>({open:t,close:n}),[t,n]);return(0,J.jsx)(Id.Provider,{value:t,children:(0,J.jsx)(Td,{delay:i,timeoutMs:r,children:e.children})})};Yd.displayName=`TooltipProvider`;var Xd=Yd;function Zd({content:e,children:t,align:n,asChild:r,render:i,side:a,className:o,container:s,closeDelay:c,delay:l,...u}){let d=Ii(),f=s??d??void 0,p=i??(r?t:void 0),m=p!==void 0;return(0,J.jsxs)(Pd,{...u,children:[(0,J.jsx)(Bd,{closeDelay:c,delay:l,className:q(!m&&`m-0 inline-flex h-auto min-h-0 items-center border-none bg-transparent p-0 shadow-none`,`cursor-default`,o),render:p,children:r?void 0:t}),(0,J.jsx)(Ud,{container:f,children:(0,J.jsx)(Kd,{align:n,side:a,sideOffset:10,className:`max-w-[var(--available-width)]`,children:(0,J.jsxs)(qd,{className:q(`flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-2.5 py-1.5 text-sm text-kumo-default`,`shadow-md outline outline-kumo-line`,`transition-[transform,scale,opacity] duration-150`,`data-[starting-style]:scale-90 data-[starting-style]:opacity-0`,`data-[ending-style]:scale-90 data-[ending-style]:opacity-0`,`data-[instant]:duration-0`,`kumo-tooltip-popup`),children:[(0,J.jsx)(Jd,{className:q(`flex`,`data-[side=bottom]:top-[-8px]`,`data-[side=left]:right-[-13px] data-[side=left]:rotate-90`,`data-[side=right]:left-[-13px] data-[side=right]:-rotate-90`,`data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180`),children:(0,J.jsx)(Qd,{})}),e]})})})]})}function Qd(e){return(0,J.jsxs)(`svg`,{width:`20`,height:`10`,viewBox:`0 0 20 10`,fill:`none`,...e,children:[(0,J.jsx)(`path`,{d:`M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z`,className:`fill-kumo-base`}),(0,J.jsx)(`path`,{d:`M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z`,className:`fill-kumo-arrow-edge`}),(0,J.jsx)(`path`,{d:`M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z`,className:`fill-kumo-arrow-stroke`})]})}var $d=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,48V208l-80-80Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z`}))]]),ef=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M136,128,56,208V48Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z`}))]]),tf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),nf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M160,48V208L80,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z`}))]]),rf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),af=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),of=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M80,176h96l-48,48ZM128,32,80,80h96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z`}))]]),sf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M236.34,187.09A84,84,0,0,0,172.29,68.9,84,84,0,0,0,19.66,139.09l-6.84,23.26a20,20,0,0,0,24.83,24.83l23.26-6.84a83.94,83.94,0,0,0,22.76,6.74,84.06,84.06,0,0,0,111.42,41.26l23.26,6.84a20,20,0,0,0,24.83-24.83ZM62,155.5a11.88,11.88,0,0,0-3.39.49l-20.72,6.09L44,141.35a12,12,0,0,0-.93-9A60,60,0,1,1,67.7,156.92,12,12,0,0,0,62,155.5Zm150.89,24.8a12,12,0,0,0-.93,9l6.09,20.73L197.36,204a12,12,0,0,0-9.06.93A60,60,0,0,1,111,186.63a83.93,83.93,0,0,0,68.55-91.37,60,60,0,0,1,33.38,85Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M231.66,213.73a8,8,0,0,1-9.93,9.93L194,215.5A72.05,72.05,0,0,1,92.06,175.89h0c1.31.07,2.62.11,3.94.11a72,72,0,0,0,67.93-95.88h0A72,72,0,0,1,223.5,186Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86Zm-16.25,1.47L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M229.93,186.58A78,78,0,0,0,168.16,74.42,78,78,0,1,0,26.07,138.58L18.58,164A14,14,0,0,0,36,181.42l25.46-7.49a78,78,0,0,0,26.39,7.63,78,78,0,0,0,106.77,40.37L220,229.42A14,14,0,0,0,237.42,212ZM62,161.5a6.05,6.05,0,0,0-1.69.24l-27.77,8.17a2,2,0,0,1-2.48-2.48l8.17-27.77a6.05,6.05,0,0,0-.47-4.53,66,66,0,1,1,27.08,27.08A6,6,0,0,0,62,161.5Zm155.71,26.16,8.17,27.77a2,2,0,0,1-2.48,2.48l-27.77-8.17a6.06,6.06,0,0,0-4.53.47,66,66,0,0,1-90-28.4,77.92,77.92,0,0,0,71-94.68,66,66,0,0,1,46.07,96A6.05,6.05,0,0,0,217.74,187.66Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.79,186.39a76,76,0,0,0-61-110.07A76,76,0,1,0,28.21,138.39L20.5,164.6a12,12,0,0,0,14.9,14.9l26.21-7.71a75.93,75.93,0,0,0,27.6,7.9,76,76,0,0,0,105.18,40.1l26.21,7.71a12,12,0,0,0,14.9-14.9ZM60.9,163.66l-27.76,8.17a4,4,0,0,1-5-5l8.17-27.76a4.07,4.07,0,0,0-.31-3A68,68,0,1,1,63.92,164,4.06,4.06,0,0,0,60.9,163.66Zm165.92,55.16a4,4,0,0,1-4,1l-27.76-8.17a4.07,4.07,0,0,0-3,.31A68,68,0,0,1,98,180a76,76,0,0,0,71.5-95.28A68,68,0,0,1,220,184.08a4.07,4.07,0,0,0-.31,3l8.17,27.76A4,4,0,0,1,226.82,218.82Z`}))]]),cf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),lf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z`}))]]),uf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),df=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z`}))]]),ff=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,88H152V32Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z`}))]]),pf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M40.14,46.88A12,12,0,0,0,36,56V224a12,12,0,0,0,24,0V181.72c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2,14.72,0,30.28-4.94,46.38-18.88A12,12,0,0,0,236,176V56a12,12,0,0,0-19.86-9.07c-24.71,21.41-44.53,13.31-74.82-1.68C113.19,31.27,78.17,13.94,40.14,46.88ZM212,170.26c-22.84,17.13-42.1,9.11-70.68-5C118.16,153.76,90.33,140,60,153.87V61.69c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2A63,63,0,0,0,212,78.08Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,56V176c-64,55.43-112-55.43-176,0V56C112,.57,160,111.43,224,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,56V176a8,8,0,0,1-2.76,6c-15.28,13.23-29.89,18-43.82,18-18.91,0-36.57-8.74-53-16.85C105.87,170,82.79,158.61,56,179.77V224a8,8,0,0,1-16,0V56a8,8,0,0,1,2.77-6h0c36-31.18,68.31-15.21,96.79-1.12C167,62.46,190.79,74.2,218.76,50A8,8,0,0,1,232,56Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M44.08,51.37A6,6,0,0,0,42,55.9V224a6,6,0,0,0,12,0V178.78c28.08-22.79,51.88-11,79.34,2.57,16.12,8,33.49,16.58,52,16.58,13.57,0,27.76-4.6,42.56-17.42A6,6,0,0,0,230,176V55.9a6,6,0,0,0-9.93-4.54c-29,25.12-53.28,13.09-81.41-.84C110.77,36.71,79,21.16,44.08,51.37ZM218,173.17c-28.08,22.8-51.88,11-79.34-2.58C113.4,158.08,85.09,144.07,54,164V58.72c28.08-22.8,51.88-11,79.34,2.56C158.6,73.79,186.91,87.8,218,67.91Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M45.39,53.06a4,4,0,0,0-1.39,3V224a4,4,0,0,0,8,0V177.87c29.41-24.39,55.08-11.69,82.23,1.73,16.5,8.17,33.33,16.5,51.13,16.5,13.14,0,26.81-4.55,41.26-17.06a4,4,0,0,0,1.38-3v-120a4,4,0,0,0-6.62-3c-30,26-56,13.07-83.61-.57C109.07,38.28,79.4,23.62,45.39,53.06ZM220,174.17c-29.41,24.4-55.08,11.7-82.23-1.73-26.82-13.27-54.5-27-85.77-4.66V57.92c29.41-24.4,55.08-11.7,82.23,1.73,26.82,13.27,54.5,27,85.77,4.66Z`}))]]),mf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z`}))]]),hf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M248.23,112.31A20,20,0,0,0,232,104H220V88a20,20,0,0,0-20-20H132L105.34,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V208a12,12,0,0,0,12,12H211.1a12,12,0,0,0,11.33-8l28.49-81.47.06-.17A20,20,0,0,0,248.23,112.31ZM92,68l28.8,21.6A12,12,0,0,0,128,92h68v12H69.77a20,20,0,0,0-18.94,13.58L44,137.15V68ZM202.59,196H48.89l23.72-68H226.37Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,88v24H69.77a8,8,0,0,0-7.59,5.47L32,208V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h72A8,8,0,0,1,208,88Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M243.36,111.81A14,14,0,0,0,232,106H214V88a14,14,0,0,0-14-14H130L101.74,52.8a14.06,14.06,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V208a6,6,0,0,0,6,6H211.1a6,6,0,0,0,5.69-4.1l28.49-85.47A14,14,0,0,0,243.36,111.81ZM40,62H93.34a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h72a2,2,0,0,1,2,2v18H69.77a14,14,0,0,0-13.28,9.57L38,171V64A2,2,0,0,1,40,62Zm193.9,58.63L206.78,202H40.33l27.54-82.63a2,2,0,0,1,1.9-1.37H232a2,2,0,0,1,1.9,2.63Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M241.72,113a11.88,11.88,0,0,0-9.73-5H212V88a12,12,0,0,0-12-12H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V208a4,4,0,0,0,4,4H211.09a4,4,0,0,0,3.79-2.74l28.49-85.47A11.86,11.86,0,0,0,241.72,113ZM40,60H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4v20H69.76a12,12,0,0,0-11.38,8.21L36,183.35V64A4,4,0,0,1,40,60Zm195.78,61.26L208.2,204H37.55L66,118.74A4,4,0,0,1,69.76,116H232a4,4,0,0,1,3.79,5.26Z`}))]]),gf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z`}))]]),_f=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.78,69.45A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.09,16.65l32-21.34a20,20,0,0,0,8.9-16.64V140.75l66.67-71.16ZM143.23,127.8A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.24-8.2L49.23,60H206.75Zm105.26,79.72a12,12,0,1,1-17,17L216,209l-15.52,15.51a12,12,0,0,1-17-17L199,192l-15.52-15.52a12,12,0,0,1,17-17L216,175l15.51-15.52a12,12,0,1,1,17,17L233,192Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M227.82,66.76A16,16,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.73-72.32ZM40,56h0Zm106.19,74.59A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.46L40,56H216Zm99.49,79.81a8,8,0,0,1-11.32,11.32L216,203.32l-18.34,18.35a8,8,0,0,1-11.31-11.32L204.69,192l-18.34-18.35a8,8,0,0,1,11.31-11.31L216,180.69l18.34-18.34a8,8,0,0,1,11.32,11.31L227.31,192Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.73,66.85,160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76ZM227.31,192l18.35-18.34a8,8,0,0,0-11.32-11.32L216,180.69l-18.34-18.35a8,8,0,0,0-11.32,11.32L204.69,192l-18.35,18.34a8,8,0,0,0,11.32,11.32L216,203.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.79,50.34A13.83,13.83,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.06L98,138.38V216a14,14,0,0,0,21.76,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.34-73A13.83,13.83,0,0,0,228.79,50.34Zm-11.26,6.94-69.9,74.62A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32a1.89,1.89,0,0,1-.33-2.13A1.91,1.91,0,0,1,40,54H216a1.9,1.9,0,0,1,1.82,1.19A1.87,1.87,0,0,1,217.53,57.28Zm26.71,154.49a6,6,0,1,1-8.48,8.48L216,200.49l-19.75,19.76a6,6,0,0,1-8.49-8.48L207.52,192l-19.76-19.76a6,6,0,0,1,8.49-8.49L216,183.52l19.76-19.76a6,6,0,0,1,8.48,8.49L224.49,192Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.82,66.76A16,16,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.73-72.32ZM40,56h0Zm106.19,74.59A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.46L40,56H216Zm99.49,79.81a8,8,0,0,1-11.32,11.32L216,203.32l-18.34,18.35a8,8,0,0,1-11.31-11.32L204.69,192l-18.34-18.35a8,8,0,0,1,11.31-11.31L216,180.69l18.34-18.34a8,8,0,0,1,11.32,11.31L227.31,192Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227,51.15A11.86,11.86,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.65,10l32-21.33a12,12,0,0,0,5.34-10V137.59l68.86-73.52A11.83,11.83,0,0,0,227,51.15Zm-8,7.5-69.91,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.09-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Zm23.84,154.53a4,4,0,0,1-5.66,5.66L216,197.67l-21.17,21.17a4,4,0,0,1-5.66-5.66L210.34,192l-21.17-21.17a4,4,0,1,1,5.66-5.66L216,186.35l21.17-21.17a4,4,0,1,1,5.66,5.66L221.66,192Z`}))]]),vf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M246.14,113.86l-16-16a20,20,0,0,0-23.06-3.75l-45.2-45.2a20,20,0,0,0-3.74-23.06l-16-16a20,20,0,0,0-28.28,0l-64,64a20,20,0,0,0,0,28.28l16,16a20,20,0,0,0,23,3.79L29.36,181.38a32,32,0,0,0,45.26,45.26L134,167.21a20,20,0,0,0,3.81,22.94l16,16a20,20,0,0,0,28.29,0l64-64a20,20,0,0,0,0-28.29ZM80,98.34,69.64,88,128,29.65,138.34,40ZM57.64,209.67a8,8,0,0,1-11.31-11.32l59.52-59.52,11.31,11.32Zm92.7-60.29-43.72-43.72,39-39,43.72,43.72Zm17.65,37L157.65,176,216,117.66,226.34,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M149.66,45.66l-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,0-11.32l64-64a8,8,0,0,1,11.32,0l16,16A8,8,0,0,1,149.66,45.66Zm88,76.68-16-16a8,8,0,0,0-11.32,0l-64,64a8,8,0,0,0,0,11.32l16,16a8,8,0,0,0,11.32,0l64-64A8,8,0,0,0,237.66,122.34Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M52.69,99.31a16,16,0,0,1,0-22.63l64-64a16,16,0,0,1,22.63,22.63l-64,64a16,16,0,0,1-22.63,0Zm190.63,17.37a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63h0a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.68Zm-35.11-15.8L155.12,47.79a4,4,0,0,0-5.66,0L87.8,109.45a4,4,0,0,0,0,5.66L103,130.34,28.69,204.69a16,16,0,0,0,22.62,22.62L125.66,153l15.23,15.23a4,4,0,0,0,5.66,0l61.66-61.66A4,4,0,0,0,208.21,100.88Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M241.91,118.1l-16-16a14,14,0,0,0-19.55-.23L154.13,49.64a14,14,0,0,0-.23-19.55l-16-16a14,14,0,0,0-19.8,0l-64,64a14,14,0,0,0,0,19.8l16,16a14,14,0,0,0,19.55.23L99.52,124,32.73,190.79a23,23,0,0,0,32.48,32.49L132,156.49l9.87,9.87a14,14,0,0,0,.23,19.55l16,16a14,14,0,0,0,19.8,0l64-64A14,14,0,0,0,241.91,118.1Zm-91.56,39.76-52.21-52.2,47.52-47.52,52.2,52.2ZM78.59,105.41l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16a2,2,0,0,1,0,2.83l-64,64A2,2,0,0,1,78.59,105.41ZM56.73,214.8a11,11,0,0,1-15.52-15.52L108,132.49,123.52,148Zm176.69-85.38-64,64a2,2,0,0,1-2.83,0l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16A2,2,0,0,1,233.42,129.42Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M240.49,119.52l-16-16a12,12,0,0,0-17,0l-1.17,1.17-55-55,1.18-1.17a12,12,0,0,0,0-17l-16-16a12,12,0,0,0-17,0l-64,64a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l1.17-1.18L102.34,124l-68.2,68.21A21,21,0,0,0,63.8,221.87L132,153.66l12.69,12.69-1.18,1.17a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l64-64a12,12,0,0,0,0-17ZM77.17,106.83l-16-16a4,4,0,0,1,0-5.66l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.65l-64,64A4,4,0,0,1,77.17,106.83Zm-19,109.38A13,13,0,1,1,39.8,197.87L108,129.66,126.34,148ZM95.31,105.66l50.35-50.35,55,55-50.35,50.35Zm139.52,25.17-64,64a4,4,0,0,1-5.66,0l-16-16a4,4,0,0,1,0-5.65l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.66Z`}))]]),yf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z`}))]]),bf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),xf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M76,64A12,12,0,0,1,88,52H216a12,12,0,0,1,0,24H88A12,12,0,0,1,76,64Zm140,52H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,112a16,16,0,1,0,16,16A16,16,0,0,0,44,112Zm0-64A16,16,0,1,0,60,64,16,16,0,0,0,44,48Zm0,128a16,16,0,1,0,16,16A16,16,0,0,0,44,176Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,64V192H88V64Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM68,188a12,12,0,1,1,12-12A12,12,0,0,1,68,188Zm0-48a12,12,0,1,1,12-12A12,12,0,0,1,68,140Zm0-48A12,12,0,1,1,80,80,12,12,0,0,1,68,92Zm124,92H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M82,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H88A6,6,0,0,1,82,64Zm134,58H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM44,54A10,10,0,1,0,54,64,10,10,0,0,0,44,54Zm0,128a10,10,0,1,0,10,10A10,10,0,0,0,44,182Zm0-64a10,10,0,1,0,10,10A10,10,0,0,0,44,118Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M84,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H88A4,4,0,0,1,84,64Zm132,60H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM44,120a8,8,0,1,0,8,8A8,8,0,0,0,44,120Zm0-64a8,8,0,1,0,8,8A8,8,0,0,0,44,56Zm0,128a8,8,0,1,0,8,8A8,8,0,0,0,44,184Z`}))]]),Sf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z`}))]]),Cf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212.48,136.49l-82.06,82a60,60,0,0,1-84.85-84.88l98.16-97.89a40,40,0,0,1,56.56,56.59l-.17.16-95.8,92.22a12,12,0,1,1-16.64-17.3l95.71-92.12a16,16,0,0,0-22.7-22.56L62.53,150.57a36,36,0,0,0,50.93,50.91l82.06-82a12,12,0,0,1,17,17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M180.75,104.75,204,128l-82.06,81.94a48,48,0,0,1-67.88-67.88L153.37,41.37a32,32,0,0,1,45.26,45.26Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,50.34a8,8,0,0,0-11.32,0L87.09,143A24,24,0,1,0,121,177l49.32-50.32a8,8,0,1,1,11.42,11.2l-49.37,50.38a40,40,0,1,1-56.62-56.51L143,63.09A24,24,0,1,1,177,97L109.71,165.6a8,8,0,1,1-11.42-11.2L165.6,85.71a8,8,0,0,0,.06-11.37Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208.25,123.76a6,6,0,0,1,0,8.49l-82.06,82a54,54,0,0,1-76.36-76.39L149.1,37.14a38,38,0,1,1,53.77,53.72L103.59,191.54a22,22,0,1,1-31.15-31.09l83.28-84.67a6,6,0,0,1,8.56,8.42L81,168.91a10,10,0,1,0,14.11,14.18L194.35,82.4a26,26,0,1,0-36.74-36.8L58.33,146.28a42,42,0,1,0,59.37,59.44l82.06-82A6,6,0,0,1,208.25,123.76Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M209.66,122.34a8,8,0,0,1,0,11.32l-82.05,82a56,56,0,0,1-79.2-79.21L147.67,35.73a40,40,0,1,1,56.61,56.55L105,193A24,24,0,1,1,71,159L154.3,74.38A8,8,0,1,1,165.7,85.6L82.39,170.31a8,8,0,1,0,11.27,11.36L192.93,81A24,24,0,1,0,159,47L59.76,147.68a40,40,0,1,0,56.53,56.62l82.06-82A8,8,0,0,1,209.66,122.34Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M206.83,125.17a4,4,0,0,1,0,5.66l-82.06,82a52,52,0,0,1-73.54-73.55L150.52,38.55a36,36,0,1,1,50.94,50.9l-99.3,100.69a20,20,0,1,1-28.3-28.27l83.29-84.68a4,4,0,1,1,5.7,5.61L79.54,167.5a12,12,0,1,0,16.95,17L195.78,83.81A28,28,0,1,0,156.2,44.18L56.91,144.87a44,44,0,1,0,62.21,62.26l82-82A4,4,0,0,1,206.83,125.17Z`}))]]),wf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z`}))]]),Tf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Ef=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z`}))]]),Df=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z`}))]]),Of=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,28a12,12,0,0,0-12,12v62l-113.45-71A20,20,0,0,0,44,47.88V208.12A20,20,0,0,0,74.55,225L188,154v62a12,12,0,0,0,24,0V40A12,12,0,0,0,200,28ZM68,200.73V55.27L184.3,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M196.3,134.65,68.19,214.77A8,8,0,0,1,56,208.12V47.88a8,8,0,0,1,12.19-6.65L196.3,121.35A7.83,7.83,0,0,1,196.3,134.65Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,40V216a8,8,0,0,1-16,0V146.77L72.43,221.55A15.95,15.95,0,0,1,48,208.12V47.88A15.95,15.95,0,0,1,72.43,34.45L192,109.23V40a8,8,0,0,1,16,0Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,34a6,6,0,0,0-6,6v72.84L71.37,36.14a14,14,0,0,0-14.21-.37A13.69,13.69,0,0,0,50,47.88V208.12a13.69,13.69,0,0,0,7.16,12.11,14,14,0,0,0,14.21-.37L194,143.17V216a6,6,0,0,0,12,0V40A6,6,0,0,0,200,34Zm-6.88,95.56L65,209.69a2,2,0,0,1-2,.05,1.79,1.79,0,0,1-1-1.62V47.88a1.79,1.79,0,0,1,1-1.62A2.1,2.1,0,0,1,64,46a2,2,0,0,1,1,.31l128.12,80.13a1.82,1.82,0,0,1,0,3.12Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,36a4,4,0,0,0-4,4v76.44L70.31,37.84a12,12,0,0,0-12.18-.32A11.69,11.69,0,0,0,52,47.88V208.12a11.69,11.69,0,0,0,6.13,10.36,12,12,0,0,0,12.18-.32L196,139.56V216a4,4,0,0,0,8,0V40A4,4,0,0,0,200,36Zm-5.82,95.26L66.06,211.38a4,4,0,0,1-4.06.11,3.8,3.8,0,0,1-2-3.37V47.88a3.8,3.8,0,0,1,2-3.37A4,4,0,0,1,64,44a4,4,0,0,1,2.11.62l128.12,80.12a3.83,3.83,0,0,1,0,6.52Z`}))]]),kf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),Af=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z`}))]]),jf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z`}))]]),Mf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0ZM236,91.55v72.9a19.86,19.86,0,0,1-5.86,14.14l-51.55,51.55A19.85,19.85,0,0,1,164.45,236H91.55a19.85,19.85,0,0,1-14.14-5.86L25.86,178.59A19.86,19.86,0,0,1,20,164.45V91.55a19.86,19.86,0,0,1,5.86-14.14L77.41,25.86A19.85,19.85,0,0,1,91.55,20h72.9a19.85,19.85,0,0,1,14.14,5.86l51.55,51.55A19.86,19.86,0,0,1,236,91.55Zm-24,1.66L162.79,44H93.21L44,93.21v69.58L93.21,212h69.58L212,162.79ZM128,156a16,16,0,1,0,16,16A16,16,0,0,0,128,156Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,91.55v72.9a8,8,0,0,1-2.34,5.66l-51.55,51.55a8,8,0,0,1-5.66,2.34H91.55a8,8,0,0,1-5.66-2.34L34.34,170.11A8,8,0,0,1,32,164.45V91.55a8,8,0,0,1,2.34-5.66L85.89,34.34A8,8,0,0,1,91.55,32h72.9a8,8,0,0,1,5.66,2.34l51.55,51.55A8,8,0,0,1,224,91.55Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.31,80.23,175.77,28.69A16.13,16.13,0,0,0,164.45,24H91.55a16.13,16.13,0,0,0-11.32,4.69L28.69,80.23A16.13,16.13,0,0,0,24,91.55v72.9a16.13,16.13,0,0,0,4.69,11.32l51.54,51.54A16.13,16.13,0,0,0,91.55,232h72.9a16.13,16.13,0,0,0,11.32-4.69l51.54-51.54A16.13,16.13,0,0,0,232,164.45V91.55A16.13,16.13,0,0,0,227.31,80.23ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0ZM230,91.55v72.9a13.92,13.92,0,0,1-4.1,9.9L174.35,225.9a13.92,13.92,0,0,1-9.9,4.1H91.55a13.92,13.92,0,0,1-9.9-4.1L30.1,174.35a13.92,13.92,0,0,1-4.1-9.9V91.55a13.92,13.92,0,0,1,4.1-9.9L81.65,30.1a13.92,13.92,0,0,1,9.9-4.1h72.9a13.92,13.92,0,0,1,9.9,4.1L225.9,81.65A13.92,13.92,0,0,1,230,91.55Zm-12,0a2,2,0,0,0-.59-1.42L165.87,38.59a2,2,0,0,0-1.42-.59H91.55a2,2,0,0,0-1.41.59L38.58,90.13A2,2,0,0,0,38,91.55v72.9a2,2,0,0,0,.59,1.42l51.54,51.54a2,2,0,0,0,1.42.59h72.9a2,2,0,0,0,1.41-.59l51.56-51.54a2,2,0,0,0,.58-1.42ZM128,162a10,10,0,1,0,10,10A10,10,0,0,0,128,162Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0ZM228,91.55v72.9a12,12,0,0,1-3.51,8.49l-51.55,51.55a12,12,0,0,1-8.49,3.51H91.55a12,12,0,0,1-8.49-3.51L31.51,172.94A12,12,0,0,1,28,164.45V91.55a12,12,0,0,1,3.51-8.49L83.06,31.51A12,12,0,0,1,91.55,28h72.9a12,12,0,0,1,8.49,3.51l51.55,51.55A12,12,0,0,1,228,91.55Zm-8,0a4,4,0,0,0-1.17-2.83L167.28,37.17A4.06,4.06,0,0,0,164.45,36H91.55a4.06,4.06,0,0,0-2.83,1.17L37.17,88.72A4,4,0,0,0,36,91.55v72.9a4,4,0,0,0,1.17,2.83l51.55,51.55A4.06,4.06,0,0,0,91.55,220h72.9a4.06,4.06,0,0,0,2.83-1.17l51.55-51.55a4,4,0,0,0,1.17-2.83ZM128,164a8,8,0,1,0,8,8A8,8,0,0,0,128,164Z`}))]]),Nf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.47,67.5a12,12,0,0,0-19.26-4.32L172.43,99l-12.68-2.72L157,83.57l35.79-38.78a12,12,0,0,0-4.32-19.26A76.07,76.07,0,0,0,88.41,121.64L30.92,174.18a4.68,4.68,0,0,0-.39.38,36,36,0,0,0,50.91,50.91l.38-.39,52.54-57.49A76.05,76.05,0,0,0,230.47,67.5ZM160,148a51.5,51.5,0,0,1-23.35-5.52,12,12,0,0,0-14.26,2.62L64.31,208.66a12,12,0,0,1-17-17l63.55-58.07a12,12,0,0,0,2.62-14.26A51.5,51.5,0,0,1,108,96a52.06,52.06,0,0,1,52-52h.89L135.17,71.87a12,12,0,0,0-2.91,10.65l5.66,26.35a12,12,0,0,0,9.21,9.21l26.35,5.66a12,12,0,0,0,10.65-2.91L212,95.12c0,.3,0,.59,0,.89A52.06,52.06,0,0,1,160,148Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,96a64,64,0,0,1-94.94,56L73,217A24,24,0,0,1,39,183L104,126.94a64,64,0,0,1,80-90.29L144,80l5.66,26.34L176,112l43.35-40A63.8,63.8,0,0,1,224,96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,96a72,72,0,0,1-100.94,66L79,222.22c-.12.14-.26.29-.39.42a32,32,0,0,1-45.26-45.26c.14-.13.28-.27.43-.39L94,124.94a72.07,72.07,0,0,1,83.54-98.78,8,8,0,0,1,3.93,13.19L144,80l5.66,26.35L176,112l40.65-37.52a8,8,0,0,1,13.19,3.93A72.6,72.6,0,0,1,232,96Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224.91,69.75a6,6,0,0,0-9.63-2.16l-41.07,37.9L154.7,101.3l-4.19-19.51,37.9-41.07a6,6,0,0,0-2.16-9.63,70,70,0,0,0-89.77,94.39l-61.39,53c-.11.09-.21.19-.32.3A30,30,0,0,0,77.2,221.23c.11-.11.21-.21.3-.32l53-61.39a70,70,0,0,0,94.39-89.77ZM160,154a58,58,0,0,1-28-7.22,6,6,0,0,0-7.45,1.33L68.57,212.88a18,18,0,0,1-25.45-25.45l64.76-55.94A6,6,0,0,0,109.2,124a58,58,0,0,1,64-84.53L139.58,75.93a6,6,0,0,0-1.45,5.33l5.65,26.35a6,6,0,0,0,4.61,4.61l26.35,5.65a6,6,0,0,0,5.33-1.45L216.49,82.8A58.06,58.06,0,0,1,160,154Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M223.05,70.5a4,4,0,0,0-6.42-1.44l-41.82,38.6L153,103l-4.68-21.79,38.6-41.82a4,4,0,0,0-1.44-6.43A68,68,0,0,0,98.94,126L36.4,180l-.21.2a28,28,0,0,0,39.6,39.6l.2-.21,54-62.54A68,68,0,0,0,228,96,67.51,67.51,0,0,0,223.05,70.5ZM160,156a60,60,0,0,1-29-7.47,4,4,0,0,0-5,.89L70,214.25A20,20,0,0,1,41.75,186l64.82-56a4,4,0,0,0,.89-5,60,60,0,0,1,69.46-86.59L141.05,77.29a4,4,0,0,0-1,3.55l5.66,26.35a4,4,0,0,0,3.07,3.07l26.35,5.66a4,4,0,0,0,3.55-1l38.87-35.87A60.05,60.05,0,0,1,160,156Z`}))]]),Pf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Ff=(0,v.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),If=v.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=v.useContext(Ff);return v.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&v.createElement(`title`,null,n),s,c.get(a??f))});If.displayName=`IconBase`;var Lf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:$d}));Lf.displayName=`CaretDoubleLeftIcon`;var Rf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:ef}));Rf.displayName=`CaretDoubleRightIcon`;var zf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:tf}));zf.displayName=`CaretDownIcon`;var Bf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:nf}));Bf.displayName=`CaretLeftIcon`;var Vf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:rf}));Vf.displayName=`CaretRightIcon`;var Hf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:af}));Hf.displayName=`CaretUpIcon`;var Uf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:of}));Uf.displayName=`CaretUpDownIcon`;var Wf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:sf}));Wf.displayName=`ChatsCircleIcon`;var Gf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:cf}));Gf.displayName=`CheckIcon`;var Kf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:lf}));Kf.displayName=`ClockCounterClockwiseIcon`;var qf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:uf}));qf.displayName=`CopyIcon`;var Jf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:df}));Jf.displayName=`DatabaseIcon`;var Yf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:ff}));Yf.displayName=`FileIcon`;var Xf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:pf}));Xf.displayName=`FlagIcon`;var Zf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:mf}));Zf.displayName=`FolderIcon`;var Qf=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:hf}));Qf.displayName=`FolderOpenIcon`;var $f=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:gf}));$f.displayName=`FunnelIcon`;var ep=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:_f}));ep.displayName=`FunnelXIcon`;var tp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:vf}));tp.displayName=`GavelIcon`;var np=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:yf}));np.displayName=`GearSixIcon`;var rp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:bf}));rp.displayName=`InfoIcon`;var ip=rp,ap=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:xf}));ap.displayName=`ListBulletsIcon`;var op=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Sf}));op.displayName=`MinusIcon`;var sp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Cf}));sp.displayName=`PaperclipIcon`;var cp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:wf}));cp.displayName=`PlayIcon`;var lp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Tf}));lp.displayName=`QuestionIcon`;var up=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Ef}));up.displayName=`RobotIcon`;var dp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Df}));dp.displayName=`SignOutIcon`;var fp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Of}));fp.displayName=`SkipForwardIcon`;var pp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:kf}));pp.displayName=`SquaresFourIcon`;var mp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Af}));mp.displayName=`TerminalWindowIcon`;var hp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:jf}));hp.displayName=`UserIcon`;var gp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Mf}));gp.displayName=`WarningOctagonIcon`;var _p=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Nf}));_p.displayName=`WrenchIcon`;var vp=v.forwardRef((e,t)=>v.createElement(If,{ref:t,...e,weights:Pf}));vp.displayName=`XIcon`;var yp={shape:{base:{classes:``,description:`Default rectangular button shape`},square:{classes:`items-center justify-center p-0`,description:`Square button for icon-only actions`},circle:{classes:`items-center justify-center p-0 rounded-full`,description:`Circular button for icon-only actions`}},size:{xs:{classes:`h-5 gap-1 rounded-sm px-1.5 text-xs`,description:`Extra small button for compact UIs`},sm:{classes:`h-6.5 gap-1 rounded-md px-2 text-xs`,description:`Small button for secondary actions`},base:{classes:`h-9 gap-1.5 rounded-lg px-3 text-base`,description:`Default button size`},lg:{classes:`h-10 gap-2 rounded-lg px-4 text-base`,description:`Large button for primary CTAs`}},compactSize:{xs:{classes:`size-3.5`},sm:{classes:`size-6.5`},base:{classes:`size-9`},lg:{classes:`size-10`}},variant:{primary:{classes:`relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50`,description:`High-emphasis button for primary actions`},secondary:{classes:`bg-kumo-base !text-kumo-default ring not-disabled:hover:bg-kumo-tint disabled:bg-kumo-base/50 disabled:!text-kumo-default/70 ring-kumo-line data-[state=open]:bg-kumo-base`,description:`Default button style for most actions`},ghost:{classes:`text-kumo-default hover:bg-kumo-tint shadow-none bg-inherit`,description:`Minimal button with no background`},destructive:{classes:`relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50`,description:`Danger button for destructive actions like delete`},"secondary-destructive":{classes:`bg-kumo-base !text-kumo-danger ring not-disabled:hover:!text-kumo-danger not-disabled:hover:ring-kumo-danger/30 disabled:bg-kumo-base/50 disabled:!text-kumo-danger/70 ring-kumo-line data-[state=open]:bg-kumo-base`,description:`Secondary button with destructive text for less prominent dangerous actions`},outline:{classes:`bg-transparent text-kumo-default ring ring-kumo-line transition-colors not-disabled:hover:text-kumo-strong not-disabled:hover:ring-kumo-focus/25`,description:`Bordered button with transparent background`}}},bp={shape:`base`,size:`base`,variant:`secondary`};function xp({variant:e=bp.variant,size:t=bp.size,shape:n=bp.shape}={}){let r=n===`square`||n===`circle`;return q(`group flex w-max shrink-0 items-center font-medium select-none`,`border-0 shadow-xs`,`focus:ring-kumo-focus/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand`,`cursor-pointer`,`disabled:cursor-not-allowed disabled:text-kumo-subtle`,xr(yp.size,t,bp.size).classes,xr(yp.shape,n,bp.shape).classes,r&&xr(yp.compactSize,t,bp.size).classes,xr(yp.variant,e,bp.variant).classes)}var Sp={xs:`pb-px [--kumo-button-text-lift:0.5px]`,sm:`pb-px [--kumo-button-text-lift:0.5px]`,base:`pb-0.5 [--kumo-button-text-lift:1px]`,lg:`pb-0.5 [--kumo-button-text-lift:1px]`},Cp={xs:`pl-1`,sm:`pl-1.5`,base:`pl-2.5`,lg:`pl-3.5`},wp=`[&>svg:first-child]:translate-y-(--kumo-button-text-lift) [&>span.relative>svg:first-child]:translate-y-(--kumo-button-text-lift)`,Tp=(e,t,n,r)=>{let i=v.Children.toArray(r).some(e=>e!==``);if(e===`base`&&i)return q(Sp[t],n!=null&&[Cp[t],wp])},Ep=e=>e?v.isValidElement(e)?e:(0,J.jsx)(e,{}):null,Dp=e=>{if(e===`primary`)return`var(--color-kumo-brand)`;if(e===`destructive`)return`var(--color-kumo-danger)`},Op=e=>{let t=Dp(e);if(t)return{"--kumo-button-emphasis-ring":`color-mix(in oklch, ${t}, black 10%)`,"--kumo-button-emphasis-bg":`color-mix(in oklch, ${t}, white 30%)`,"--kumo-button-emphasis-gradient-start":`color-mix(in oklch, ${t}, white 15%)`,"--kumo-button-emphasis-gradient-end":t}},kp=new Set([`href`,`target`,`rel`,`download`,`hrefLang`,`media`,`ping`,`referrerPolicy`,`linksExternal`]),Ap=e=>{let t={...e};for(let e of Object.keys(t))(e.startsWith(`on`)||kp.has(e))&&delete t[e];return t},jp=(e,t,n)=>{let r=n==null?null:(0,J.jsx)(`span`,{className:`contents`,children:n});return Dp(e)?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{"aria-hidden":`true`,className:`absolute inset-0 rounded-[inherit] bg-linear-to-b from-(--kumo-button-emphasis-gradient-start) to-(--kumo-button-emphasis-gradient-end) shadow-[inset_0_1px_0_0_var(--kumo-button-emphasis-bg)] group-hover:from-(--kumo-button-emphasis-bg)`}),(0,J.jsxs)(`span`,{className:`relative flex items-center gap-1.5`,children:[t,r]})]}):(0,J.jsxs)(J.Fragment,{children:[t,r]})},Mp=e=>{if(typeof e==`string`)return e;if(typeof e==`number`)return String(e)},Np=v.forwardRef(({children:e,className:t,disabled:n,loading:r,shape:i=`base`,size:a=`base`,variant:o=`secondary`,icon:s,style:c,title:l,...u},d)=>{let{type:f,...p}=u,m=Op(o),h=Mp(l),g={...p,...!v.Children.count(e)&&!p[`aria-label`]&&!p[`aria-labelledby`]&&h&&{"aria-label":h}},_=r?(0,J.jsx)(Pi,{size:a===`lg`?16:14}):Ep(s),y=(0,J.jsx)(`button`,{ref:d,"data-kumo-component":`Button`,className:q(xp({variant:o,size:a,shape:i}),Tp(i,a,_,e),n&&`cursor-not-allowed opacity-50`,t),disabled:r||n,style:m?{...m,...c}:c,type:f??`button`,...g,children:jp(o,_,e)});return l&&(n||r)?(0,J.jsx)(Zd,{content:l,render:(0,J.jsx)(`span`,{className:`inline-flex`}),children:y}):l?(0,J.jsx)(Zd,{content:l,render:y}):y});Np.displayName=`Button`;var Pp=v.forwardRef(({children:e,className:t,disabled:n=!1,external:r,href:i,shape:a=`base`,size:o=`base`,variant:s=`ghost`,icon:c,style:l,title:u,...d},f)=>{let p=jr(),m=Op(s),h=r?{target:`_blank`,rel:`noopener noreferrer`}:{};if(n)return(0,J.jsx)(Np,{...Ap(d),className:q(`select-text`,t),"data-kumo-component":`LinkButton`,disabled:!0,icon:c,shape:a,size:o,style:l,title:u,variant:s,children:e});let g=Ep(c),_=(0,J.jsx)(p,{ref:f,"data-kumo-component":`LinkButton`,className:q(xp({variant:s,size:o,shape:a}),Tp(a,o,g,e),`flex items-center no-underline! select-text`,t),href:i,style:m?{...m,...l}:l,to:typeof i==`string`?i:void 0,...h,...d,children:jp(s,g,e)});return u?(0,J.jsx)(Zd,{content:u,render:_}):_});Pp.displayName=`LinkButton`;var Fp=(0,v.createContext)({variant:`default`,size:`sm`}),Ip={default:{accent:`var(--color-kumo-info)`,secondary:`text-inherit ring-kumo-info/50 fill-kumo-info hover:!text-inherit hover:!ring-kumo-info/50 hover:bg-kumo-info/10`,ghost:`text-inherit fill-kumo-info hover:bg-kumo-info/10`},alert:{accent:`var(--color-kumo-warning)`,secondary:`text-inherit ring-kumo-warning/50 fill-kumo-warning hover:!text-inherit hover:!ring-kumo-warning/50 hover:bg-kumo-warning/10`,ghost:`text-inherit fill-kumo-warning hover:bg-kumo-warning/10`},error:{accent:`var(--color-kumo-danger)`,secondary:`text-inherit ring-kumo-danger/50 fill-kumo-danger hover:!text-inherit hover:!ring-kumo-danger/50 hover:bg-kumo-danger/10`,ghost:`text-inherit fill-kumo-danger hover:bg-kumo-danger/10`},secondary:{accent:`var(--color-neutral-700, oklch(37.1% 0 0))`,secondary:`text-inherit ring-kumo-focus/20 fill-kumo-subtle hover:!text-inherit hover:!ring-kumo-focus/20 hover:bg-kumo-contrast/10`,ghost:`text-inherit fill-kumo-subtle hover:bg-kumo-contrast/10`}};function Lp(e){return{"--kumo-button-emphasis-ring":`color-mix(in oklch, ${e}, black 10%)`,"--kumo-button-emphasis-bg":`color-mix(in oklch, ${e}, white 30%)`,"--kumo-button-emphasis-gradient-start":`color-mix(in oklch, ${e}, white 15%)`,"--kumo-button-emphasis-gradient-end":e}}var Rp=(0,v.forwardRef)(function({variant:e=`primary`,className:t,style:n,...r},i){let a=(0,v.useContext)(Fp),o=Ip[a.variant];return(0,J.jsx)(Np,{ref:i,variant:e===`secondary`?`outline`:e,size:a.size,className:q(e!==`primary`&&o[e],t),style:e===`primary`?{...Lp(o.accent),...n}:n,...r})});Rp.displayName=`Banner.Action`;var zp=`flex w-full`,Bp={variant:{default:{classes:`bg-kumo-info-tint text-kumo-info`,iconClasses:`fill-kumo-info`,description:`Informational banner for general messages`},alert:{classes:`bg-kumo-warning-tint text-kumo-warning`,iconClasses:`fill-kumo-warning`,description:`Warning banner for cautionary messages`},error:{classes:`bg-kumo-danger-tint text-kumo-danger`,iconClasses:`fill-kumo-danger`,description:`Error banner for critical issues`},secondary:{classes:`bg-kumo-contrast/5 text-kumo-default/70`,iconClasses:`fill-kumo-interact`,description:`Neutral banner for secondary messages`}},size:{base:{classes:`items-start gap-3 rounded-lg px-4 py-3 text-base`,description:`Default banner size`},sm:{classes:`items-center gap-2 rounded-md px-3 py-2 text-sm`,description:`Compact banner for dialogs and tight spaces`}}},Vp={variant:`default`,size:`base`},Hp={base:{row:`gap-3`,icon:`h-[1.375em]`,description:`text-sm`,action:`sm`},sm:{row:`gap-2`,icon:`h-[1.25em]`,description:`text-sm`,action:`xs`}};function Up({variant:e=Vp.variant,size:t=Vp.size}={}){let n=xr(Bp.variant,e,Vp.variant),r=xr(Bp.size,t,Vp.size);return q(zp,n.classes,r.classes)}var Wp=(0,v.forwardRef)(function({icon:e,title:t,description:n,action:r,children:i,text:a,variant:o=Vp.variant,size:s=Vp.size,className:c,...l},u){let d=xr(Bp.variant,o,Vp.variant),f=Hp[s],p=s===`sm`,m=p&&(0,v.isValidElement)(r)&&r.type===Ai;if(t||n)return(0,J.jsx)(Fp.Provider,{value:{variant:o,size:f.action},children:(0,J.jsxs)(`div`,{ref:u,className:q(Up({variant:o,size:s}),c),...l,children:[e&&(0,J.jsx)(`span`,{className:q(`flex shrink-0 items-center`,f.icon,d.iconClasses),children:e}),(0,J.jsxs)(`div`,{className:q(`flex min-w-0 flex-1 items-center justify-between`,f.row,!t&&`pt-px`),children:[p?(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-1.5`,children:[t&&(0,J.jsxs)(`span`,{className:`leading-snug font-medium`,children:[t,!n&&m&&(0,J.jsx)(`span`,{className:`ml-1.5 [&_[data-kumo-component=Link]]:inline`,children:r})]}),n&&(0,J.jsxs)(`span`,{className:q(f.description,`leading-snug`),children:[n,m&&(0,J.jsx)(`span`,{className:`ml-1.5 [&_[data-kumo-component=Link]]:inline`,children:r})]})]}):(0,J.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[t&&(0,J.jsx)(`p`,{className:`leading-snug font-medium`,children:t}),n&&(0,J.jsx)(`div`,{className:q(f.description,`leading-snug`),children:(0,v.isValidElement)(n)?n:(0,J.jsx)(`p`,{children:n})})]}),!m&&r!=null&&(0,J.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r})]})]})});let h=i??a,g=(0,v.isValidElement)(h)?h:(0,J.jsx)(`p`,{children:h});return(0,J.jsx)(Fp.Provider,{value:{variant:o,size:f.action},children:(0,J.jsxs)(`div`,{ref:u,className:q(Up({variant:o,size:s}),c),...l,children:[e&&(0,J.jsx)(`span`,{className:q(`shrink-0`,d.iconClasses),children:e}),g]})})});Wp.displayName=`Banner`;var Gp=Object.assign(Wp,{Action:Rp}),Kp=(0,v.createContext)({label:{optional:`(optional)`,tooltip:`More information`},layerDialog:{close:`Close`,cancel:`Cancel`}});function qp(){return(0,v.useContext)(Kp)}function Jp(e={}){return q(`m-0 text-base font-medium text-kumo-default`)}function Yp(){return q(`inline-flex items-center gap-1`)}function Xp({children:e,showOptional:t=!1,optionalLabel:n,tooltip:r,tooltipAriaLabel:i,className:a,htmlFor:o,asContent:s=!1}){let{label:c}=qp(),l=n===void 0?c.optional:n,u=i??c.tooltip,d=(0,J.jsxs)(J.Fragment,{children:[e,t&&(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle`,children:l}),r&&(0,J.jsx)(Zd,{content:r,render:(0,J.jsx)(Np,{variant:`ghost`,size:`xs`,shape:`square`,"aria-label":u,children:(0,J.jsx)(ip,{className:`size-4`})})})]});return s?(0,J.jsx)(`span`,{className:q(Yp(),a),children:d}):(0,J.jsx)(`label`,{htmlFor:o,className:q(Jp(),Yp(),a),children:d})}Xp.displayName=`Label`;var Zp=v.createContext(void 0);Zp.displayName=`FieldsetRootContext`;function Qp(e=!1){let t=v.useContext(Zp);if(!t&&!e)throw Error(`Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.`);return t}function $p(e,t){let n=Qu(e);return Y(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}var em=v.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,...o}=e,[s,c]=v.useState(void 0),l=Qp(!0)?.disabled||a,u=mi(`fieldset`,e,{ref:t,state:{disabled:l},props:[{"aria-labelledby":s,disabled:l},o]}),d=v.useMemo(()=>({legendId:s,setLegendId:c,disabled:l}),[s,c,l]);return(0,J.jsx)(Zp.Provider,{value:d,children:u})});em.displayName=`FieldsetRoot`;var tm=v.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{disabled:s,setLegendId:c}=Qp(),l=$p(a,c);return mi(`div`,e,{state:{disabled:s},ref:t,props:[{id:l},o]})});tm.displayName=`FieldsetLegend`;var nm=`data-valid`,rm=`data-invalid`,im={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},am={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},om={valid(e){return e===null?null:e?{[nm]:``}:{[rm]:``}}},sm={invalid:void 0,name:void 0,validityData:{state:im,errors:[],error:``,value:``,initialValue:null},setValidityData:Jr,disabled:void 0,setTouched:Jr,setDirty:Jr,setFilled:Jr,setFocused:Jr,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:am,registerFieldControl:Jr,validation:{getValidationProps:(e,t=Xr)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Jr,getInputControl:()=>null,commit:async()=>{},change:Jr}},cm=v.createContext(sm);cm.displayName=`FieldRootContext`;function lm(e=!0){let t=v.useContext(cm);if(t.setValidityData===Jr&&!e)throw Error(`Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.`);return t}var um=v.createContext({controlId:void 0,registerControlId:Jr,resetControlId:Jr,labelId:void 0,setLabelId:Jr,messageIds:[],setMessageIds:Jr,getDescriptionProps:e=>e});um.displayName=`LabelableContext`;function dm(){return v.useContext(um)}var fm=v.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Jr,validationMode:`onSubmit`,submitCountRef:{current:0}});fm.displayName=`FormContext`;function pm(){return v.useContext(fm)}function mm(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=dm(),c=$p(t,Z(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a){a(e,l);return}if(!l)return;let t=hm(e.currentTarget,l);Gi(t)&&gm(t)}function d(e){os(ss(e.nativeEvent),`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function hm(e,t){let n=e.getRootNode();for(;Ki(n);){let e=n.getElementById(t);if(e)return e;n=n.host.getRootNode()}return Hs(e).getElementById(t)}function gm(e){e.focus({focusVisible:!0})}function _m(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var vm=Object.keys(im);function ym(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}function bm(e,t){let n=null;for(let r of e.keys())if(ym(r,t)){if(!r.validity.valid)return r;n??=r}return n}function xm(e){return{...im,valid:!e,customError:e}}function Sm(e){return e&&e.validationMessage?[e.validationMessage]:[]}function Cm(e){let{elementRef:t,formRef:n}=pm(),{setValidityData:r,validate:i,validityData:a,validationDebounceTime:o,invalid:s,markedDirtyRef:c,state:l,shouldValidateOnChange:u,validationMode:d,registeredFieldIdRef:f}=e,{controlId:p,getDescriptionProps:m}=dm(),h=Vl(),g=v.useRef(null),_=Pr(()=>new Map).current,y=v.useRef(0),b=v.useRef(null),x=v.useCallback((e,t)=>(_.set(e,t),()=>{_.delete(e)}),[_]),S=Z(()=>{let e=bm(_,t.current);return e&&_.get(e)?.controlRef.current||null}),C=Z(async(e,o=!1)=>{y.current+=1;let m=y.current;function v(e,t=s){let r=f.current??p;if(r==null)return;let i=n.current.fields.get(r);if(!i)return;let a=_m(e,t);n.current.fields.set(r,{...i,validityData:a})}function x(t,n){let r=t.valid===!1?n:[];return{value:e,state:t,error:r[0]??``,errors:r,initialValue:a.initialValue}}function S(e,t){let n=e.validity.customError?e.validationMessage:``,r=t.replace(/\r\n?/g,`
20
- `);e.setCustomValidity(r),b.current=[e,r,n]}function C(){let e=b.current;b.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function w(e,t,n){let i=x(e,t);v(i,n),r(i)}function T(e){let t=vm.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of vm)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!c.current&&(t.valid=!0,t.valueMissing=!1),t}function E(){return _.size>0?bm(_,t.current):g.current}let D=E();function O(){return D=E(),D?.willValidate?T(D):xm(!1)}if(o){if(l.valid!==!1||!D)return;if(!D.validity.valueMissing){C();let e=E(),t=e?.validity.customError?Sm(e):[];w(xm(t.length>0),t,!1);return}for(let e of vm)if(e!==`valid`&&e!==`valueMissing`&&e!==`customError`&&D.validity[e])return}h.clear(),C();let k=O(),A=Sm(D),j=u();if(A.length===0||j){let t=Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),r=i(e,t),o;if(typeof r==`object`&&r&&`then`in r){if(k.valid===!1?w(k,A):d!==`onSubmit`&&a.state.customError||(k.valid=null,w(k,A)),o=await r,m!==y.current)return;k=O()}else o=r;A=o?[].concat(o).filter(Boolean):[],A.length>0?(k.valid=!1,k.customError=!0,D?.willValidate&&S(D,A.join(`
21
- `))):A=Sm(D)}w(k,A)}),w=Z((e,t=!1)=>{if(h.clear(),y.current+=1,t)return;let n=u();n&&e!==``&&o?h.start(o,()=>{C(e)}):C(e,!n)}),T=v.useCallback((e,t={})=>ti(m(t),l.valid===!1&&!l.disabled&&!e?{"aria-invalid":!0}:Xr),[m,l.disabled,l.valid]);return v.useMemo(()=>({getValidationProps:T,inputRef:g,registeredInputs:_,registerInput:x,getInputControl:S,commit:C,change:w}),[T,_,x,S,C,w])}var wm=Kr(`error`,`Base UI`),Tm=v.createContext({disabled:!1});Tm.displayName=`FieldItemContext`;function Em(){return v.useContext(Tm)}var Dm=function(e){let t=Qu(),[n,r]=v.useState(t),[i,a]=v.useState(),[o,s]=v.useState([]),c=n===void 0?t:n,l=Pr(()=>new Map),{messageIds:u}=dm(),d=Z((e,t)=>{let n=l.current;t===void 0?n.delete(e):n.set(e,t),r(e=>{if(n.size===0)return e;let t;for(let r of n.values()){if(r===e)return e;t===void 0&&(t=r)}return t})}),f=Z(()=>{l.current.size===0&&r(t)}),p=v.useCallback(e=>{let t=e[`aria-describedby`]?e[`aria-describedby`].split(` `):[];return t.push(...u,...o),{...e,"aria-describedby":Array.from(new Set(t)).join(` `)||void 0}},[u,o]),m=v.useMemo(()=>({controlId:c,registerControlId:d,resetControlId:f,labelId:i,setLabelId:a,messageIds:o,setMessageIds:s,getDescriptionProps:p}),[c,d,f,i,a,o,s,p]);return(0,J.jsx)(um.Provider,{value:m,children:e.children})};Dm.displayName=`LabelableProvider`;function Om(e){let{change:t,commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldName:o,registeredFieldIdRef:s,setValidityData:c,validityData:l}=e,{formRef:u}=pm(),d=v.useRef(null),f=v.useRef(null),p=v.useRef(!1),m=Z(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value});function h(e){return e.value===void 0?m():e.value}let g=Z(()=>{let e=f.current;i.current=!0,n(e?h(e):l.value)});function _(){let e=f.current;e&&e.id&&u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:_m(l,r),validate:g})}function y(e=f.current?.id){e&&u.current.fields.delete(e)}function b(e){if(p.current)return;p.current=!0;let t=h(e);c(e=>e.initialValue===t?e:{...e,initialValue:t})}return Y(()=>{let e=f.current;e&&e.id&&(o(a?void 0:e.name),u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:_m(l,r),validate:g}))},[u,m,r,a,o,g,l]),Y(()=>{let e=u.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[u]),[g,Z((e,n)=>{if(!n){d.current===e&&(d.current=null,t(void 0,!0),y(),f.current=null,o(void 0),s.current=void 0);return}let r=f.current?.id,i=d.current;i&&i!==e&&t(void 0,!0),d.current=e,f.current=n,a||o(n.name),s.current=n.id,r&&r!==n.id&&y(r),b(n),_()})]}var km=v.forwardRef(function(e,t){let{errors:n,validationMode:r,submitCountRef:i}=pm(),{render:a,className:o,validate:s,validationDebounceTime:c=0,validationMode:l=r,name:u,disabled:d=!1,invalid:f,dirty:p,touched:m,actionsRef:h,style:g,..._}=e,y=Qp(!0)?.disabled,b=Z(s||(()=>null)),x=y||d,[S,C]=v.useState(!1),[w,T]=v.useState(!1),[E,D]=v.useState(!1),[O,k]=v.useState(!1),A=v.useRef(void 0),j=p??w,M=m??S,N=v.useRef(j),P=v.useRef(void 0),[F,I]=v.useState(),L=u??F;Y(()=>{p!==void 0&&(N.current=p)},[p]);let R=Z(e=>{p===void 0&&(e&&(N.current=!0),T(e))}),z=Z(e=>{m===void 0&&C(e)}),B=Z(()=>l===`onChange`||l===`onSubmit`&&i.current>0),ee=L&&Object.hasOwn(n,L)?n[L]:null,V=!!(Array.isArray(ee)?ee.length:ee),H=f===!0||V,[te,ne]=v.useState({state:im,error:``,errors:[],value:null,initialValue:null}),U=!H&&(x?null:te.state.valid),re=v.useMemo(()=>({disabled:x,touched:M,dirty:j,valid:U,filled:E,focused:O}),[x,M,j,U,E,O]),ie=Cm({setValidityData:ne,validate:b,validityData:te,validationDebounceTime:c,invalid:H,markedDirtyRef:N,state:re,shouldValidateOnChange:B,validationMode:l,registeredFieldIdRef:P}),[ae,oe]=Om({change:ie.change,commit:ie.commit,invalid:H,markedDirtyRef:N,name:u,setRegisteredFieldName:I,registeredFieldIdRef:P,setValidityData:ne,validityData:te});v.useImperativeHandle(h,()=>({validate:ae}),[ae]);let W=v.useMemo(()=>({invalid:H,name:L,validityData:te,setValidityData:ne,disabled:x,setTouched:z,setDirty:R,setFilled:D,setFocused:k,focusOwnerRef:A,validationMode:l,shouldValidateOnChange:B,state:re,registerFieldControl:oe,validation:ie}),[H,L,te,x,z,R,D,k,l,B,re,oe,ie]),G=mi(`div`,e,{ref:t,state:re,props:_,stateAttributesMapping:om});return(0,J.jsx)(cm.Provider,{value:W,children:G})});km.displayName=`FieldRootInner`;var Am=v.forwardRef(function(e,t){return(0,J.jsx)(Dm,{children:(0,J.jsx)(km,{...e,ref:t})})});Am.displayName=`FieldRoot`;var jm=v.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,nativeLabel:o=!0,...s}=e,c=lm(!1),l=Em(),{labelId:u}=dm(),d={...c.state,disabled:c.disabled||l.disabled},f=v.useRef(null),p=mm({id:u??a,native:o});return v.useEffect(()=>{if(!f.current)return;let e=f.current.tagName===`LABEL`;o?e||wm(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${Li.captureOwnerStack?.()||``}`):e&&wm(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${Li.captureOwnerStack?.()||``}`)},[o]),mi(`label`,e,{ref:[t,f],state:d,props:[p,s],stateAttributesMapping:om})});jm.displayName=`FieldLabel`;function Mm(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=dm(),o=Qu(),s=Pr(()=>Symbol()),c=v.useRef(!1),l=v.useRef(!1),u=Z(()=>{c.current&&i!==Jr&&(c.current=!1,i(s.current,void 0))});return Y(()=>{if(!n||i===Jr){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),Y(()=>u,[u]),(n?r:void 0)??t??o}function Nm(e,t,n,r,i=!0,a){let{registerFieldControl:o}=lm(),s=Pr(()=>Symbol());Y(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),Y(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}function Pm(e,t){let n=v.useRef(e),r=Z(t);Y(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function Fm({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=v.useRef(e!==void 0),[a,o]=v.useState(()=>t),s=i&&e!==void 0?e:a;{v.useEffect(()=>{i!==(e!==void 0)&&wm([`A component is changing the ${i?``:`un`}controlled ${r} state of ${n} to be ${i?`un`:``}controlled.`,`Elements should not switch from uncontrolled to controlled (or vice versa).`,`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",`More info: https://fb.me/react-controlled-components`].join(`
22
- `))},[r,n,e]);let{current:a}=v.useRef(t);v.useEffect(()=>{!i&&Im(a)!==Im(t)&&wm([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
23
- `))},[t])}return[s,v.useCallback(e=>{i||o(e)},[])]}function Im(e){let t=0,n=new WeakMap;try{return JSON.stringify(e,function(e,r){if(!(e===`_owner`&&this!=null&&typeof this==`object`&&`$$typeof`in this)){if(typeof r==`bigint`)return`__bigint__:${r}`;if(typeof r==`object`&&r){let e=n.get(r);if(e!==void 0)return`__object__:${e}`;n.set(r,t),t+=1}return r}})??`__top__:${typeof e}`}catch{return`__unserializable__`}}function Lm(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var Rm=v.createContext(void 0);Rm.displayName=`CheckboxGroupContext`;function zm(){return v.useContext(Rm)}function Bm(e){let{allValues:t=Yr,value:n,onValueChange:r}=e,i=v.useRef(n),a=v.useRef(new Map),[o,s]=v.useState(`mixed`),[c,l]=v.useState(()=>({registry:new Map})),u=n.length===t.length,d=n.length!==t.length&&n.length>0,f=Z(r),p=Z((e,t)=>{let n=c.registry;return n.set(e,(n.get(e)??Yr).concat(t)),l({registry:n}),()=>{let r=(n.get(e)??Yr).filter(e=>e!==t);r.length===0?n.delete(e):n.set(e,r),l({registry:n})}}),m=v.useCallback(()=>({indeterminate:d,checked:u,"aria-controls":t.flatMap(e=>c.registry.get(e)??Yr).join(` `)||void 0,onCheckedChange(e,r){let c=i.current,l=t.filter(e=>a.current.get(e)&&c.includes(e)),u=t.filter(e=>!a.current.get(e)||c.includes(e));if(c.length===u.length||c.length===0){n.length===u.length?f(l,r):f(u,r);return}let d=`mixed`,p=c;o===`mixed`?(d=`on`,p=u):o===`on`&&(d=`off`,p=l),f(p,r),r.isCanceled||s(d)}}),[t,u,c,d,f,o,n.length]),h=v.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let a=n.slice();t?a.push(e):a.splice(a.indexOf(e),1),f(a,r),r.isCanceled||(i.current=a,s(`mixed`))}}),[f,n]);return v.useMemo(()=>({getParentProps:m,getChildProps:h,registerChildId:p,disabledStatesRef:a}),[m,h,p])}var Vm=v.forwardRef(function(e,t){let{allValues:n,className:r,defaultValue:i,disabled:a=!1,id:o,onValueChange:s,render:c,value:l,style:u,...d}=e,{disabled:f,name:p,state:m,validation:h,setFilled:g,setDirty:_,validityData:y}=lm(),{labelId:b,registerControlId:x,getDescriptionProps:S}=dm(),{clearErrors:C,elementRef:w}=pm(),T=f||a,[E,D]=Fm({controlled:l,default:i??Yr,name:`CheckboxGroup`,state:`value`}),O=Z((e,t)=>{s?.(e,t),!t.isCanceled&&D(e)}),k=Bm({allValues:n,value:E,onValueChange:O});Mm({id:null});let A=Qu(o),j=h.getInputControl;Nm(v.useMemo(()=>({get current(){return j()}}),[j]),A,E,Z(()=>{let e=w.current;if(!e)return E;let t=new Set;for(let[n,r]of h.registeredInputs)r.value!==void 0&&n.checked&&ym(n,e)&&t.add(r.value);return E.filter(e=>t.has(e))}),!!p&&!T,p),Y(()=>{g(E.length>0)},[E,g]),Pm(E,()=>{p&&C(p);let e=Array.isArray(y.initialValue)?y.initialValue:Yr;_(!Lm(E,e)),h.change(E)});let M={...m,disabled:T},N=v.useMemo(()=>({allValues:n,value:E,setValue:O,parent:k,disabled:T,validation:h,registerControlId:x}),[n,E,O,k,T,h,x]),P=mi(`div`,e,{state:M,ref:t,props:[{id:o,role:`group`,"aria-labelledby":b},d,S],stateAttributesMapping:om});return(0,J.jsx)(Rm.Provider,{value:N,children:P})});Vm.displayName=`CheckboxGroup`;function Hm(e,t,n,r=!0,i,a){let[o,s]=v.useState(),c=Qu(i?`${i}-label`:void 0),l=!!a?.trim(),u=e??(l?void 0:t)??o;return Y(()=>{let i=e||t||l||!r?void 0:Um(n.current,c);o!==i&&s(i)}),u}function Um(e,t){let n=Wm(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Wm(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Gm(e,t,n){let{setFocused:r,focusOwnerRef:i}=lm(),a=Z(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return Y(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}var Km=v.createContext(void 0);Km.displayName=`CompositeRootContext`;function qm(e=!1){let t=v.useContext(Km);if(t===void 0&&!e)throw Error(`Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.`);return t}function Jm(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(Vi(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Ym(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:v.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Xm(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=v.useRef(null),s=qm(!0),c=a??s!==void 0,{props:l}=Ym({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i});v.useEffect(()=>{if(!o.current)return;let e=Zm(o.current);i?e||wm(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${Li.captureOwnerStack?.()||``}`):e&&wm(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${Li.captureOwnerStack?.()||``}`)},[i]);let u=v.useCallback(()=>{let e=o.current;Zm(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Y(u,[u]),{getButtonProps:v.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return ti({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(di(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Zm(r),s=!i&&Qm(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Jm(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Jm(r,e)))},onKeyUp(e){t||(di(e),a?.(e),e.target===e.currentTarget&&i&&c&&Zm(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Jm(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Z(e=>{o.current=e,u()})}}function Zm(e){return Gi(e)&&e.tagName===`BUTTON`}function Qm(e){return Gi(e)&&e.tagName===`A`&&!!e.href}function $m(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var eh=`data-checked`,th=`data-unchecked`;function nh(e){return{checked(t){return e.indeterminate?{}:t?{[eh]:``}:{[th]:``}},...om}}var rh=v.createContext(void 0);rh.displayName=`CheckboxRootContext`;function ih(){let e=v.useContext(rh);if(e===void 0)throw Error(`Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.`);return e}var ah=`data-parent`,oh=v.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i=!1,"aria-labelledby":a,disabled:o=!1,form:s,id:c,indeterminate:l=!1,inputRef:u,name:d,onCheckedChange:f,parent:p=!1,readOnly:m=!1,render:h,required:g=!1,uncheckedValue:_,value:y,nativeButton:b=!1,style:x,...S}=e,{clearErrors:C}=pm(),{disabled:w,name:T,setDirty:E,setFilled:D,setTouched:O,state:k,validationMode:A,validityData:j,validation:M}=lm(),N=Em(),{labelId:P,registerControlId:F,getDescriptionProps:I}=dm(),L=zm(),R=L?.allValues===void 0?void 0:L.parent,z=R!==void 0,B=w||N.disabled||L?.disabled||o,ee=T??d,V=y??ee,H=Qu(),te=L?.registerControlId!==F,ne=Mm({id:c||void 0,enabled:te}),U=b?ne:H,re={};z&&(p?re=R.getParentProps():V!==void 0&&(re=R.getChildProps(V)));let{checked:ie=n,indeterminate:ae=l,onCheckedChange:oe,...W}=re,G=L?.value,se=v.useRef(null),ce=Gm(B,se),{getButtonProps:le,buttonRef:ue}=Xm({disabled:B,native:b}),de=L?.validation??M,[K,fe]=Fm({controlled:V!==void 0&&G!==void 0&&!p?G.includes(V):ie,default:i,name:`Checkbox`,state:`checked`}),pe=z?!!ie:K,me=z&&ae||l;Nm(se,H,K,void 0,!L&&!B,d);let he=R?.registerChildId,ge=v.useRef(null),_e=de.registerInput,ve=L?V:void 0,ye=v.useCallback(e=>_e(e,{controlRef:se,value:ve}),[_e,ve]),be=Fr(u,ge,p?void 0:ye),xe=Hm(a,P,ge,!b,ne,S[`aria-label`]);Y(()=>{ge.current&&(ge.current.indeterminate=me),L||D(K)},[K,me,L,D]),Pm(K,()=>{L||(C(ee),E(K!==j.initialValue),de.change(K))});let Se=ti({checked:K,disabled:B,form:s,name:p?void 0:ee,id:b?void 0:ne,required:g,ref:be,style:ee?Wc:Uc,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(m){e.preventDefault();return}let t=e.currentTarget.checked,n=bc(xc,e.nativeEvent);if(f?.(t,n),!n.isCanceled&&(oe?.(t,n),!n.isCanceled&&(fe(t),V!==void 0&&L!==void 0&&!p&&!z))){let e=t?[...L.value,V]:L.value.filter(e=>e!==V);L.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){se.current?.focus()}},y===void 0?Xr:{value:(L?K&&y:y)||``},I,e=>de.getValidationProps(B,e));v.useEffect(()=>{if(!R||V===void 0)return;let e=R.disabledStatesRef.current;return e.set(V,B),()=>{e.delete(V)}},[R,B,V]);let Ce=v.useMemo(()=>({...k,checked:pe,disabled:B,readOnly:m,required:g,indeterminate:me}),[k,pe,B,m,g,me]),we=nh(Ce),Te=mi(`span`,e,{state:Ce,ref:[ue,se,t],props:[{id:U,role:`checkbox`,"aria-checked":me?`mixed`:pe,"aria-readonly":m||void 0,"aria-required":g||void 0,"aria-labelledby":xe,[ah]:p?``:void 0,onFocus(){ce(!0)},onBlur(){let e=ge.current;e&&(O(!0),ce(!1),A===`onBlur`&&de.commit(L?G:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=ge.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),Vi(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||$m(t)?.click()})},onClick(e){if(m||B)return;e.preventDefault();let t=ge.current;t&&Jm(t,e)}},S,W,le,I,e=>de.getValidationProps(B,e)],stateAttributesMapping:we}),Ee=Te.props.id;return Y(()=>{if(he&&!p&&V!==void 0&&Ee!==void 0)return he(V,Ee)},[he,p,V,Ee]),(0,J.jsxs)(rh.Provider,{value:Ce,children:[Te,!K&&!L&&ee&&!p&&_!==void 0&&(0,J.jsx)(`input`,{type:`hidden`,form:s,name:ee,value:_,disabled:B}),(0,J.jsx)(`input`,{...Se,suppressHydrationWarning:!0})]})});oh.displayName=`CheckboxRoot`;var sh=v.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=ih(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:d}=tu(c),f=v.useRef(null),p={...s,transitionStatus:u};eu({batch:!0,enabled:!c,open:c,ref:f,onComplete(){c||d(!1)}});let m={...nh(s),...vs},h=a||l,g=mi(`span`,e,{ref:[t,f],state:p,stateAttributesMapping:m,props:o});return h?g:null});sh.displayName=`CheckboxIndicator`;var ch=(0,v.createContext)({controlFirst:void 0,appearance:`default`,orientation:null}),lh=(0,v.forwardRef)(({className:e,checked:t,indeterminate:n,disabled:r,variant:i=`default`,label:a,labelTooltip:o,controlFirst:s=!0,onCheckedChange:c,required:l,name:u,...d},f)=>{{let e=!!a,t=!!d[`aria-label`],n=!!d[`aria-labelledby`];e||t||n||console.warn(`[Kumo Checkbox]: Checkbox must have an accessible name. Provide either:
19
+ After: <Link href="/page">…</Link>`)},[]);let o={"data-kumo-component":`Link`,className:q(Oi({variant:t}),`group/link inline-flex items-center gap-[0.1875em] has-[>[data-kumo-component=Badge]]:rounded-full`)};return wi({render:n??(0,J.jsx)(a,{}),ref:i,props:ti(o,r,{className:e})})});ki.displayName=`Link`;var Ai=Object.assign(ki,{ExternalIcon:Ti}),ji={size:{sm:{value:16,description:`Small loader for inline use`},base:{value:24,description:`Default loader size`},lg:{value:32,description:`Large loader for prominent loading states`}}},Mi={size:`base`};function Ni({size:e=Mi.size}={}){return typeof e==`number`?e:xr(ji.size,e,Mi.size).value}var Pi=({className:e,size:t=Mi.size,"aria-label":n=`Loading`})=>{let r=Ni({size:t});return(0,J.jsxs)(`svg`,{width:r,height:r,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,stroke:`currentColor`,className:e,role:`status`,"aria-label":n,children:[(0,J.jsxs)(`circle`,{cx:`12`,cy:`12`,r:`9.5`,fill:`none`,strokeWidth:`2`,strokeLinecap:`round`,children:[(0,J.jsx)(`animateTransform`,{attributeName:`transform`,type:`rotate`,from:`0 12 12`,to:`360 12 12`,dur:`2s`,repeatCount:`indefinite`}),(0,J.jsx)(`animate`,{attributeName:`stroke-dasharray`,values:`0 150;42 150;42 150`,keyTimes:`0;0.5;1`,dur:`1.5s`,repeatCount:`indefinite`}),(0,J.jsx)(`animate`,{attributeName:`stroke-dashoffset`,values:`0;-16;-59`,keyTimes:`0;0.5;1`,dur:`1.5s`,repeatCount:`indefinite`})]}),(0,J.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9.5`,fill:`none`,opacity:.1,strokeWidth:`2`,strokeLinecap:`round`})]})},Fi=(0,v.createContext)(null);function Ii(){return(0,v.useContext)(Fi)}var Y=typeof document<`u`?v.useLayoutEffect:()=>{},Li={...v},Ri=l(h(),1);function zi(){return typeof window<`u`}function Bi(e){return Ui(e)?(e.nodeName||``).toLowerCase():`#document`}function Vi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){return((Ui(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ui(e){return zi()?e instanceof Node||e instanceof Vi(e).Node:!1}function Wi(e){return zi()?e instanceof Element||e instanceof Vi(e).Element:!1}function Gi(e){return zi()?e instanceof HTMLElement||e instanceof Vi(e).HTMLElement:!1}function Ki(e){return!zi()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Vi(e).ShadowRoot}function qi(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ia(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ji(e){return/^(table|td|th)$/.test(Bi(e))}function Yi(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Xi=/transform|translate|scale|rotate|perspective|filter/,Zi=/paint|layout|strict|content/,Qi=e=>!!e&&e!==`none`,$i;function ea(e){let t=Wi(e)?ia(e):e;return Qi(t.transform)||Qi(t.translate)||Qi(t.scale)||Qi(t.rotate)||Qi(t.perspective)||!na()&&(Qi(t.backdropFilter)||Qi(t.filter))||Xi.test(t.willChange||``)||Zi.test(t.contain||``)}function ta(e){let t=oa(e);for(;Gi(t)&&!ra(t);){if(ea(t))return t;if(Yi(t))return null;t=oa(t)}return null}function na(){return $i??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),$i}function ra(e){return/^(html|body|#document)$/.test(Bi(e))}function ia(e){return Vi(e).getComputedStyle(e)}function aa(e){return Wi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oa(e){if(Bi(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ki(e)&&e.host||Hi(e);return Ki(t)?t.host:t}function sa(e){let t=oa(e);return ra(t)?(e.ownerDocument||e).body:Gi(t)&&qi(t)?t:sa(t)}function ca(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=sa(e),i=r===e.ownerDocument?.body,a=Vi(r);if(i){let e=la(a);return t.concat(a,a.visualViewport||[],qi(r)?r:[],e&&n?ca(e):[])}return t.concat(r,ca(r,[],n))}function la(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ua=Math.min,da=Math.max,fa=Math.round,pa=Math.floor,ma=e=>({x:e,y:e}),ha={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ga(e,t,n){return da(e,ua(t,n))}function _a(e,t){return typeof e==`function`?e(t):e}function va(e){return e.split(`-`)[0]}function ya(e){return e.split(`-`)[1]}function ba(e){return e===`x`?`y`:`x`}function xa(e){return e===`y`?`height`:`width`}function Sa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ca(e){return ba(Sa(e))}function wa(e,t,n){n===void 0&&(n=!1);let r=ya(e),i=Ca(e),a=xa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Na(o)),[o,Na(o)]}function Ta(e){let t=Na(e);return[Ea(e),t,Ea(t)]}function Ea(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Da=[`left`,`right`],Oa=[`right`,`left`],ka=[`top`,`bottom`],Aa=[`bottom`,`top`];function ja(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Oa:Da:t?Da:Oa;case`left`:case`right`:return t?ka:Aa;default:return[]}}function Ma(e,t,n,r){let i=ya(e),a=ja(va(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ea)))),a}function Na(e){let t=va(e);return ha[t]+e.slice(t.length)}function Pa(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Fa(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Pa(e)}function Ia(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function La(e,t,n){let{reference:r,floating:i}=e,a=Sa(t),o=Ca(t),s=xa(o),c=va(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ya(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Ra(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=_a(t,e),p=Fa(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ia(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var za=50,Ba=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Ra},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=La(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<za&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=La(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Va=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=_a(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=va(r),_=Sa(o),v=va(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Na(o)]:Ta(o)),x=p!==`none`;!d&&x&&b.push(...Ma(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=wa(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Sa(t)||T.every(e=>Sa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Sa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Ha=new Set([`left`,`top`]);async function Ua(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=va(n),s=ya(n),c=Sa(n)===`y`,l=Ha.has(o)?-1:1,u=a&&c?-1:1,d=_a(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Wa=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ua(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ga=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_a(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Sa(i),p=ba(f),m=u[p],h=u[f],g=(e,t)=>ga(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ka=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=_a(e,t),u={x:n,y:r},d=Sa(i),f=ba(d),p=u[f],m=u[d],h=_a(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ha.has(va(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},qa=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=_a(e,t),c=await i.detectOverflow(t,s),l=va(n),u=ya(n),d=Sa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=ua(p-c[m],g),y=ua(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*da(c.left,c.right):S=p-2*da(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ja(e){let t=ia(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Gi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=fa(n)!==a||fa(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ya(e){return Wi(e)?e:e.contextElement}function Xa(e){let t=Ya(e);if(!Gi(t))return ma(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ja(t),o=(a?fa(n.width):n.width)/r,s=(a?fa(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Za=ma(0);function Qa(e){let t=Vi(e);return!na()||!t.visualViewport?Za:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $a(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Vi(e)}function eo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ya(e),o=ma(1);t&&(r?Wi(r)&&(o=Xa(r)):o=Xa(e));let s=$a(a,n,r)?Qa(a):ma(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Vi(a),t=Wi(r)?Vi(r):r,n=e,i=la(n);for(;i&&t!==n;){let e=Xa(i),t=i.getBoundingClientRect(),r=ia(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Vi(i),i=la(n)}}return Ia({width:u,height:d,x:c,y:l})}function to(e,t){let n=aa(e).scrollLeft;return t?t.left+n:eo(Hi(e)).left+n}function no(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-to(e,n),y:n.top+t.scrollTop}}function ro(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Hi(r),s=t?Yi(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ma(1),u=ma(0),d=Gi(r);if((d||!a)&&((Bi(r)!==`body`||qi(o))&&(c=aa(r)),d)){let e=eo(r);l=Xa(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?no(o,c):ma(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function io(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ao(e){let t=aa(e),n=e.ownerDocument.body,r=da(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=da(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+to(e),o=-t.scrollTop;return ia(n).direction===`rtl`&&(a+=da(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var oo=25;function so(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Vi(e),a=Hi(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!na()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(to(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=oo&&(s-=o)}return{width:s,height:c,x:l,y:u}}function co(e,t){let n=eo(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Xa(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function lo(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=so(e,n,t);else if(t===`document`)r=ao(Hi(e));else if(Wi(t))r=co(t,n);else{let n=Qa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ia(r)}function uo(e,t){let n=t.get(e);if(n)return n;let r=ca(e,[],!1).filter(e=>Wi(e)&&Bi(e)!==`body`),i=null,a=ia(e).position===`fixed`,o=a?oa(e):e;for(;Wi(o)&&!ra(o);){let e=ia(o),t=ea(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=oa(o)}return t.set(e,r),r}function fo(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Yi(t)?[]:uo(t,this._c):[].concat(n),r],o=lo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=lo(t,a[e],i);s=da(n.top,s),c=ua(n.right,c),l=ua(n.bottom,l),u=da(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function po(e){let{width:t,height:n}=Ja(e);return{width:t,height:n}}function mo(e,t,n){let r=Gi(t),i=Hi(t),a=n===`fixed`,o=eo(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ma(0);if((r||!a)&&((Bi(t)!==`body`||qi(i))&&(s=aa(t)),r)){let e=eo(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=to(i));let l=i&&!r&&!a?no(i,s):ma(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function ho(e){return ia(e).position===`static`}function go(e,t){if(!Gi(e)||ia(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Hi(e)===n&&(n=n.ownerDocument.body),n}function _o(e,t){let n=Vi(e);if(Yi(e))return n;if(!Gi(e)){let t=oa(e);for(;t&&!ra(t);){if(Wi(t)&&!ho(t))return t;t=oa(t)}return n}let r=go(e,t);for(;r&&Ji(r)&&ho(r);)r=go(r,t);return r&&ra(r)&&ho(r)&&!ea(r)?n:r||ta(e)||n}var vo=async function(e){let t=this.getOffsetParent||_o,n=this.getDimensions,r=await n(e.floating);return{reference:mo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yo(e){return ia(e).direction===`rtl`}var bo={convertOffsetParentRelativeRectToViewportRelativeRect:ro,getDocumentElement:Hi,getClippingRect:fo,getOffsetParent:_o,getElementRects:vo,getClientRects:io,getDimensions:po,getScale:Xa,isElement:Wi,isRTL:yo};function xo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function So(e,t,n){let r=null,i,a=Hi(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=pa(d),h=pa(a.clientWidth-(u+f)),g=pa(a.clientHeight-(d+p)),_=pa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:da(0,ua(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!xo(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Vi(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Co(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ya(e),u=i||a?[...l?ca(l):[],...t?ca(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?So(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?eo(e):null;c&&g();function g(){let t=eo(e);h&&!xo(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var wo=Wa,To=Ga,Eo=Va,Do=qa,Oo=Ka,ko=(e,t,n)=>{let r=new Map,i=n??{},a={...bo,...i.platform,_c:r};return Ba(e,t,{...i,platform:a})},Ao=typeof document<`u`?v.useLayoutEffect:function(){};function jo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!jo(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!jo(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Mo(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function No(e,t){let n=Mo(e);return Math.round(t*n)/n}function Po(e){let t=v.useRef(e);return Ao(()=>{t.current=e}),t}function Fo(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);jo(f,r)||p(r);let[m,h]=v.useState(null),[g,_]=v.useState(null),y=v.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=v.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=a||m,S=o||g,C=v.useRef(null),w=v.useRef(null),T=v.useRef(u),E=c!=null,D=Po(c),O=Po(i),k=Po(l),A=v.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),ko(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!jo(T.current,t)&&(T.current=t,Ri.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Ao(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=v.useRef(!1);Ao(()=>(j.current=!0,()=>{j.current=!1}),[]),Ao(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=v.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=v.useMemo(()=>({reference:x,floating:S}),[x,S]),P=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=No(N.floating,u.x),r=No(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Mo(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Io=(e,t)=>{let n=wo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lo=(e,t)=>{let n=To(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ro=(e,t)=>({fn:Oo(e).fn,options:[e,t]}),zo=(e,t)=>{let n=Eo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bo=(e,t)=>{let n=Do(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Vo(){if(typeof navigator>`u`)return{userAgent:``,platform:``,maxTouchPoints:0};{let e=navigator.userAgentData;if(e&&Array.isArray(e.brands))return{userAgent:e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `),platform:e.platform??navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}return{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Ho,platform:Uo,maxTouchPoints:Wo}=Vo(),Go=Ho.toLowerCase(),Ko=Uo.toLowerCase(),qo=/^i(os$|p)/.test(Ko)||Ko===`macintel`&&Wo>1,Jo=`android`,Yo=Ko===Jo||Go.includes(Jo),Xo=!qo&&Ko.startsWith(`mac`);Ko.startsWith(`win`),!Yo&&/^(linux|chrome os)/.test(Ko);var Zo=Xo||qo,Qo=/jsdom|happydom/.test(Go);function $o(e){e.preventDefault(),e.stopPropagation()}function es(e){return`nativeEvent`in e}function ts(e){return e.pointerType===``&&e.isTrusted?!0:Yo&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ns(e){return Qo?!1:!Yo&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Yo||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function rs(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function is(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function as(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function X(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Ki(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function os(e,t){let n=e;for(;n;){if(Wi(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Ki(n)?n.host:null)}return null}function ss(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var cs=`data-base-ui-focusable`,ls=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,us=`ArrowLeft`,ds=`ArrowRight`,fs=`ArrowUp`,ps=`ArrowDown`,ms=`data-starting-style`,hs=`data-ending-style`,gs={[ms]:``},_s={[hs]:``},vs={transitionStatus(e){return e===`starting`?gs:e===`ending`?_s:null}},ys=`data-open`,bs=`data-closed`,xs=`data-anchor-hidden`,Ss=`data-popup-open`,Cs=`data-pressed`,ws={[Ss]:``},Ts={[Ss]:``,[Cs]:``},Es={[ys]:``},Ds={[bs]:``},Os={[xs]:``},ks={open(e){return e?ws:null}},As={open(e){return e?Ts:null}},js={open(e){return e?Es:Ds},anchorHidden(e){return e?Os:null}},Ms={...js,...vs},Ns=`data-trigger-disabled`;function Ps(e,t){if(!Wi(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Ns);for(let[,e]of t.entries())if(X(e,n))return!e.hasAttribute(Ns);return!1}function Fs(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Is(e){return e.matches(`html,body`)}function Ls(e){return Gi(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Rs(e){return os(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ls}`)!=null}function zs(e){return e?e.getAttribute(`role`)===`combobox`&&Ls(e):!1}function Bs(e){if(!e||Qo)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Vs(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Hs(e){return e?.ownerDocument||document}function Us(e,t){return t<0||t>=e.length}function Ws(e,t){return qs(e.current,{disabledIndices:t})}function Gs(e,t){return qs(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ks(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>qs(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:Us(e,u)?-1:u,wrapped:d}}function qs(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Js(e,a,r));return a}function Js(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Xs(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Ys(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Xs(e,t=e?ia(e):null){return!e||!e.isConnected||!t||Ys(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Zs=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Qs(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Ki(n)?n.host:null}function $s(e){for(let t of Array.from(e.children))if(Bi(t)===`summary`)return t;return null}function ec(e,t){let n=$s(t);return!!n&&(e===n||X(n,e))}function tc(e){let t=e?Bi(e):``;return e!=null&&e.matches(Zs)&&(t!==`summary`||e.parentElement!=null&&Bi(e.parentElement)===`details`&&$s(e.parentElement)===e)&&(t!==`details`||$s(e)==null)&&(t!==`input`||e.type!==`hidden`)}function nc(e){if(!tc(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Qs(t)){let n=t!==e,r=Bi(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Bi(t)===`details`&&!t.open&&!ec(e,t)||t.hasAttribute(`hidden`)||!r&&!rc(t,n))return!1}return!0}function rc(e,t){let n=ia(e);return t?n.display!==`none`:Xs(e,n)}function ic(e){let t=e.tabIndex;if(t<0){let t=Bi(e);if(t===`details`||t===`audio`||t===`video`||Gi(e)&&e.isContentEditable)return 0}return t}function ac(e){if(Bi(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function oc(e,t){let n=ac(e);if(!n)return!0;let r=t.find(e=>{let t=ac(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ac(e);return t?.name===n.name&&t.form===n.form})===n}function sc(e){if(Gi(e)&&Bi(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Gi(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function cc(e,t){sc(e).forEach(e=>{tc(e)&&t.push(e),cc(e,t)})}function lc(e,t,n){sc(e).forEach(e=>{Gi(e)&&e.matches(t)&&n.push(e),lc(e,t,n)})}function uc(e){return nc(e)&&ic(e)>=0}function dc(e){let t=[];return cc(e,t),t.filter(nc)}function fc(e){let t=dc(e);return t.filter(e=>ic(e)>=0&&oc(e,t))}function pc(e,t){let n=fc(e),r=n.length;if(r===0)return;let i=as(Hs(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function mc(e){return pc(Hs(e).body,1)||e}function hc(e){return pc(Hs(e).body,-1)||e}function gc(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!X(n,r)}function _c(e){fc(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function vc(e){let t=[];lc(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var yc=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!yc&&Go.includes(`firefox`),!yc&&Go.includes(`chrom`);function bc(e,t,n,r){let i=!1,a=!1,o=r??Xr;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var xc=`none`,Sc=`trigger-press`,Cc=`trigger-hover`,wc=`trigger-focus`,Tc=`outside-press`,Ec=`item-press`,Dc=`focus-out`,Oc=`escape-key`,kc=`list-navigation`,Ac=`cancel-open`,jc=`disabled`,Mc=`missing`,Nc=`initial`,Pc=`imperative-action`,Fc=`window-resize`;function Ic(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Lc(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Rc=Li.useInsertionEffect,zc=Rc&&Rc!==Li.useLayoutEffect?Rc:e=>e();function Z(e){let t=Pr(Bc).current;return t.next=e,zc(t.effect),t.trampoline}function Bc(){let e={next:void 0,callback:Vc,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Vc(){throw Error(`Base UI: Cannot call an event handler while rendering.`)}var Hc={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Uc={...Hc,position:`fixed`,margin:0,top:0,left:0},Wc={...Hc,position:`absolute`};function Gc(){let[,e]=v.useState({});return v.useCallback(()=>{e({})},[])}var Kc=0;function qc(e,t=`mui`){let n=v.useRef(void 0),r=Gc(),i=e??n.current;return v.useEffect(()=>{n.current??(Kc+=1,n.current=`${t}-${Kc}`,e??r())},[e,t,r]),i}var Jc=Li.useId;function Yc(e,t){if(Jc!==void 0){let n=Jc();return e??(t?`${t}-${n}`:n)}return qc(e,t)}function Xc(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Zc=v.createContext(null);Zc.displayName=`FloatingNodeContext`;var Qc=v.createContext(null);Qc.displayName=`FloatingTreeContext`;var $c=()=>v.useContext(Zc)?.id||null,el=e=>{let t=v.useContext(Qc);return e??t},tl=o((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),nl=o(((e,t)=>{t.exports=tl()})),rl=o((e=>{var t=p(),n=nl();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),il=o(((e,t)=>{t.exports=rl()})),al=nl(),ol=il(),sl=[],cl=void 0;function ll(){return cl}function ul(e){sl.push(e)}function dl(e){let t=(t,n)=>{let r=Pr(pl).current,i;try{cl=r;for(let e of sl)e.before(r);i=e(t,n);for(let e of sl)e.after(r);r.didInitialize=!0}finally{cl=void 0}return i};return t.displayName=e.displayName||e.name,t}function fl(e){return v.forwardRef(dl(e))}function pl(){return{didInitialize:!1}}var ml=Zo,hl=v.forwardRef(function(e,t){let[n,r]=v.useState();Y(()=>{ml&&yc&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,J.jsx)(`span`,{...e,ref:t,style:Uc,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});hl.displayName=`FocusGuard`;function gl(e){return`data-base-ui-${e}`}var _l={style:{transition:`none`}},vl={fallbackAxisSide:`none`},yl={fallbackAxisSide:`end`},bl={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},xl=v.createContext(null);xl.displayName=`PortalContext`;var Sl=()=>v.useContext(xl),Cl=gl(`portal`);function wl(e={}){let{ref:t,container:n,componentProps:r=Xr,elementProps:i}=e,a=Yc(),o=Sl()?.portalNode,[s,c]=v.useState(null),[l,u]=v.useState(null),d=Z(e=>{e!==null&&u(e)}),f=v.useRef(null);Y(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(Ui(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=mi(`div`,r,{ref:[t,d],props:[{id:a,[Cl]:``},i]}),m=s&&p?Ri.createPortal(p,s):null;return{node:l,nodeId:v.isValidElement(p)?p.props.id:void 0,subtree:m}}var Tl=v.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=wl({container:o,ref:t,componentProps:e,elementProps:c}),f=v.useRef(null),p=v.useRef(null),m=v.useRef(null),h=v.useRef(null),[g,_]=v.useState(null),y=v.useRef(!1),b=g?.modal,x=g?.open,S=!!g&&!g.modal&&g.open&&!!l;v.useEffect(()=>{if(!l||b)return;function e(e){l&&e.relatedTarget&&gc(e)&&(e.type===`focusin`?y.current&&=(vc(l),!1):(_c(l),y.current=!0))}return Lc(Ic(l,`focusin`,e,!0),Ic(l,`focusout`,e,!0))},[l,b]),Y(()=>{l&&x===!0&&y.current&&(vc(l),y.current=!1)},[x,l]);let C=v.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,J.jsxs)(v.Fragment,{children:[d,(0,J.jsxs)(xl.Provider,{value:C,children:[S&&l&&(0,J.jsx)(hl,{"data-type":`outside`,ref:f,onFocus:e=>{gc(e,l)?m.current?.focus():hc(g?g.domReference:null)?.focus()}}),S&&l&&(0,J.jsx)(`span`,{role:s,"aria-owns":u,style:bl}),l&&Ri.createPortal(a,l),S&&l&&(0,J.jsx)(hl,{"data-type":`outside`,ref:p,onFocus:e=>{gc(e,l)?h.current?.focus():(mc(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,bc(`focus-out`,e.nativeEvent)))}})]})]})});Tl.displayName=`FloatingPortal`;var El;function Dl(e){El??=new WeakMap;let t=El.get(e);return t||(t=new WeakMap,El.set(e,t)),t}var Ol=class{idMap=new Map;add(e,t){{let n=Dl(this),r=n.get(t);if(r!==void 0&&r!==e)throw Error(`Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.`);let i=this.idMap.get(e);i!==void 0&&i!==t&&n.delete(i),n.set(t,e)}this.idMap.set(e,t)}delete(e){{let t=this.idMap.get(e);t!==void 0&&El?.get(this)?.delete(t)}this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},kl=Hr(19)?Ml:Nl;function Al(e,t,n,r,i){return kl(e,t,n,r,i)}function jl(e,t,n,r,i){let a=v.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,al.useSyncExternalStore)(e.subscribe,a,a)}ul({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,al.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ml(e,t,n,r,i){let a=ll();if(!a)return jl(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Nl(e,t,n,r,i){return(0,ol.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Pl=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Al(this,e,t,n,r)}},Fl=class extends Pl{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){v.useDebugValue(e);let n=this;Y(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;{v.useDebugValue(e,e=>Object.keys(e));let t=v.useRef(Object.keys(e)).current,n=Object.keys(e);(t.length!==n.length||t.some((e,t)=>e!==n[t]))&&console.error(`ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.`)}Y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){v.useDebugValue(e);let n=this,r=t!==void 0;Y(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r]);{let t=this.controlledValues??=new Map;t.has(e)||t.set(e,r);let n=t.get(e);n!==void 0&&n!==r&&console.error(`A component is changing the ${n?``:`un`}controlled state of ${e.toString()} to be ${n?`un`:``}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return v.useDebugValue(e),Al(this,this.selectors[e],t,n,r)}useContextCallback(e,t){v.useDebugValue(e);let n=Z(t??Jr);this.context[e]=n}useStateSetter(e){let t=v.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Il={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Ll=class extends Fl{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Xc(),nested:n,triggerElements:i},Il),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&is(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Rl(e){v.useEffect(e,Yr)}var zl=0,Bl=class e{static create(){return new e}currentId=zl;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=zl,t()},e)}isStarted(){return this.currentId!==zl}clear=()=>{this.currentId!==zl&&(clearTimeout(this.currentId),this.currentId=zl)};disposeEffect=()=>this.clear};function Vl(){let e=Pr(Bl.create).current;return Rl(e.disposeEffect),e}function Hl(e){let t=Pr(Ul,e).current;return t.next=e,Y(t.effect),t}function Ul(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Wl=null,Gl=globalThis.requestAnimationFrame,Kl=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;let n=Gl!==requestAnimationFrame&&(Gl=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},ql=class e{static create(){return new e}static request(e){return Kl.request(e)}static cancel(e){return Kl.cancel(e)}currentId=Wl;request(e){this.cancel(),this.currentId=Kl.request(()=>{this.currentId=Wl,e()})}cancel=()=>{this.currentId!==Wl&&(Kl.cancel(this.currentId),this.currentId=Wl)};disposeEffect=()=>this.cancel};function Jl(){let e=Pr(ql.create).current;return Rl(e.disposeEffect),e}function Yl(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}function Xl(e){return e==null?e:`current`in e?e.current:e}var Zl=null;function Ql(e){if(!Zl){let e=[];Zl=e,queueMicrotask(()=>{Zl=null,Ri.flushSync(()=>{for(let t of e)t()})})}Zl.push(e)}function $l(e,t=!1,n=!1){let r=Jl();return Z((i,a=null)=>{r.cancel();let o=Xl(e);if(o==null)return;let s=o,c=()=>{n?Ql(()=>{a?.aborted||i()}):Ri.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(Yl(s).map(e=>e.finished.then(Jr))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(Yl(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=ms;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function eu(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=Z(a),s=$l(r,n,i);v.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function tu(e,t=!1,n=!1,r=!1){let[i,a]=v.useState(e&&t?`idle`:void 0),[o,s]=v.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),Y(()=>{if(!e&&o&&i!==`ending`&&n){let e=ql.request(()=>{a(`ending`)});return()=>{ql.cancel(e)}}},[e,o,i,n]),Y(()=>{if(!e||t||i===void 0)return;let n=ql.request(()=>{a(void 0)});return()=>{ql.cancel(n)}},[t,e,i]),Y(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=ql.request(()=>{a(`idle`)});return()=>{ql.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function nu(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...nu(e,t.id,n)])}function ru(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function iu(){return!1}function au(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function ou(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=iu,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=el(c),m=Z(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=Z(()=>a),{escapeKey:y,outsidePress:b}=au(s),x=v.useRef(!1),S=v.useRef(!1),C=v.useRef(!1),w=v.useRef(!1),T=v.useRef(!1),E=v.useRef(``),D=v.useRef(null),O=Vl(),k=Vl(),A=Vl(),j=Z(()=>{k.clear(),d.current.insideReactTree=!1}),M=Z(e=>{let t=d.current.floatingContext?.nodeId;return(p?nu(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),N=Z(t=>Fs(t,e.select(`floatingElement`))||Fs(t,e.select(`domReferenceElement`))),P=Z(t=>{o()&&e.setOpen(!1,bc(Sc,t.nativeEvent))}),F=Z(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=es(t)?t.nativeEvent:t;if(T.current||i.isComposing||!y&&M(`__escapeKeyBubbles`))return;let a=bc(Oc,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!y&&!a.isPropagationAllowed&&t.stopPropagation()}),I=Z(()=>{d.current.insideReactTree=!0,k.start(0,j)}),L=Z(t=>{if(!l||!n||t.button!==0)return;let r=ss(t.nativeEvent);X(e.select(`floatingElement`),r)&&(x.current||(x.current=!0,S.current=!1))}),R=Z(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});v.useEffect(()=>{function e(e){e.open||(w.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),v.useEffect(()=>j,[j]),v.useEffect(()=>{if(!l||!n)return l||(w.current=!1,T.current=!1,E.current=``,D.current=null),j;d.current.__escapeKeyBubbles=y,d.current.__outsidePressBubbles=b;let t=new Bl,i=Hs(u);function a(){A.clear(),T.current=!0}function o(){T.current=!0,A.start(yc?5:0,()=>{T.current=!1})}function s(){C.current=!0,t.start(0,()=>{C.current=!1})}function c(){x.current=!1,S.current=!1}function f(){let e=E.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function v(e){let t=d.current.floatingContext?.nodeId,n=p&&nu(p.nodesRef.current,t).some(t=>Fs(e,t.context?.elements.floating));return N(e)||n}function k(n){if(m(n)){n.type!==`click`&&!N(n)&&(t.clear(),C.current=!1),j();return}if(d.current.insideReactTree){j();return}let r=ss(n),i=`[${gl(`inert`)}]`,a=Wi(r)?r.getRootNode():null,o=Array.from((Ki(a)?a:Hs(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>X(e,r))))return;let c=Wi(r)?r:null;for(;c&&!ra(c);){let e=oa(c);if(ra(e)||!Wi(e))break;c=e}if(!(o.length&&Wi(r)&&!Is(r)&&!X(r,e.select(`floatingElement`))&&o.every(e=>!X(c,e)))){if(Gi(r)&&!(`touches`in n)){let e=ra(r),t=ia(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!v(n)){if(f()===`intentional`){if(n.detail!==0&&!ts(n)&&!w.current)return;if(C.current){t.clear(),C.current=!1;return}}typeof h==`function`&&!h(n)||M(`__outsidePressBubbles`)||(e.setOpen(!1,bc(Tc,n)),j())}}}function P(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!N(t)&&k(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||N(t))return;let r=t.touches[0];r&&(D.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=ss(e);if(!n)return;let r=Ic(n,e.type,()=>{t(e),r()})}function R(e){E.current=`touch`,L(e,I)}function z(e){O.clear(),e.type===`pointerdown`&&(e.button===0&&(w.current=!0),E.current=e.pointerType),(e.type!==`mousedown`||!D.current||D.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?P(e):k(e)})}function B(e){if(e.type===`pointercancel`&&(w.current=!1),!x.current)return;let n=S.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():v(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),C.current=!0,j())))}function ee(e){if(f()!==`sloppy`||!D.current||N(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(k(e),O.clear(),D.current=null)}function V(e){L(e,ee)}function H(e){f()===`sloppy`&&D.current&&!N(e)&&(D.current.dismissOnTouchEnd&&k(e),O.clear(),D.current=null)}function te(e){L(e,H)}let ne=Lc(r&&Lc(Ic(i,`keydown`,F),Ic(i,`compositionstart`,a),Ic(i,`compositionend`,o)),g&&Lc(Ic(i,`click`,z,!0),Ic(i,`pointerdown`,z,!0),Ic(i,`pointerup`,B,!0),Ic(i,`pointercancel`,B,!0),Ic(i,`mousedown`,z,!0),Ic(i,`mouseup`,B,!0),Ic(i,`touchstart`,R,{capture:!0,passive:!0}),Ic(i,`touchmove`,V,{capture:!0,passive:!0}),Ic(i,`touchend`,te,{capture:!0,passive:!0})));return()=>{ne(),t.clear(),c(),C.current=!1}},[d,u,r,g,h,l,n,y,b,F,j,_,M,N,p,e,O,A]);let z=v.useMemo(()=>({onKeyDown:F,onPointerDown:P,onClick:P}),[F,P]),B=v.useMemo(()=>({onKeyDown:F,onPointerDown:R,onMouseDown:R,onClickCapture:I,onMouseDownCapture(e){I(),L(e)},onPointerDownCapture(e){I(),L(e)},onMouseUpCapture:I,onTouchEndCapture:I,onTouchMoveCapture:I}),[F,I,L,R]);return v.useMemo(()=>n?{reference:z,floating:B,trigger:z}:{},[n,z,B])}function su(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),Y(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};Wi(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function cu(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=Z(i),{mounted:c,setMounted:l,transitionStatus:u}=tu(t,!1,!1,o),d=!t&&r;Y(()=>{t&&s(!1)},[t,s]);let f=v.useRef(c),p=v.useRef(!1),m=Gc(),h=()=>{f.current=!1,l(!1),a()};Y(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=Z(()=>{f.current&&(t?(p.current=!0,m()):h())});return eu({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var lu={tabIndex:-1,[cs]:``};function uu(e,t=!1){let n=Yc(),r=$c()!=null,i=Pr(()=>e(n,r)).current;return su({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function du({handle:e,store:t}){return Y(()=>e.attachStore(t),[e,t]),null}function fu(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function pu(e,t){let n=v.useRef(null);return Z(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),fu(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),fu(t))})}function mu(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function hu(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function gu(e,t,n,r={}){let i=n.reason,a=i===Cc,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=hu(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=mu(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?Ri.flushSync(l):l()}function _u(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=pu(e,n),o=Z(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=Z(e=>{a(e),e&&o(e)});return Y(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Y(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function vu(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=v.useRef(null),i=e.useState(`open`);Y(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=bc(xc);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function yu(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=cu({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return Pr(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function bu(e,t){e.useSyncedValues(t),Y(()=>()=>{e.update({activeTriggerProps:Xr,inactiveTriggerProps:Xr,popupProps:Xr})},[e])}function xu(e,t){return t!=null&&!rs(t)?0:typeof e==`function`?e():e}function Su(e,t,n){let r=xu(e,n);return typeof r==`number`?r:r?.[t]}function Cu(e){return typeof e==`function`?e():e}function wu(e,t){return t||e===`click`||e===`mousedown`}function Tu(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Eu=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new Bl;restTimeout=new Bl;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Du=new WeakMap;function Ou(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Du.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Du.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function ku(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Du.get(n);a&&a!==e&&Ou(a),Ou(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Du.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Au(e){let t=e.context.dataRef.current,n=Pr(()=>t.hoverInteractionState??Eu.create()).current;return t.hoverInteractionState||=n,Rl(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ju(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=el(),u=$c(),d=Au(e),f=Vl(),p=Z(()=>wu(c.current.openEvent?.type,d.interactedInside)),m=Z(()=>Tu(c.current.openEvent?.type)),h=Z(()=>{Ou(d)});Y(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),v.useEffect(()=>h,[h]),Y(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&Wi(s)&&o){let e=s,t=o,n=Hs(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??os(e,`[data-rootownerid]`)??n.body;return ku(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),v.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&nu(l.nodesRef.current,u).length>0)}function a(t){let n=Su(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,bc(Cc,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=ss(e);Rs(t)?d.interactedInside=os(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(Ps(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&Wi(o)&&nu(l.nodesRef.current,r,!1).some(e=>X(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,bc(Cc,n)),l.events.emit(`floating.closed`,n)})}let y=o;return Lc(y&&Ic(y,`mouseenter`,g),y&&Ic(y,`mouseleave`,_),y&&Ic(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var Mu={current:null};function Nu(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Mu,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=el(l),y=Au(e),b=v.useRef(!1),x=Hl(i),S=Hl(r),C=Hl(o),w=Hl(n),T=Hl(p),E=Hl(f),D=Z(()=>wu(h.current.openEvent?.type,y.interactedInside)),O=Z(()=>T.current?.()!==!1),k=Z((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!X(t,n);if(!Wi(r))return!1;let a=r;return i.hasMatchingElement(e=>X(e,a))&&(!t||!X(t,a))}),A=Z(()=>{y.handler&&=(Hs(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),j=Z(()=>{Ou(y)});return u&&(y.handleCloseOptions=i?.__options),v.useEffect(()=>A,[A]),v.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===Cc,A(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,y,A]),v.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=Su(S.current,`close`,y.pointerType);r?y.openChangeTimeout.start(r,()=>{e.setOpen(!1,bc(Cc,t)),_?.events.emit(`floating.closed`,t)}):n&&(y.openChangeTimeout.clear(),e.setOpen(!1,bc(Cc,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!Wi(r))return;function i(t){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!rs(y.pointerType))return;let n=Cu(C.current),r=Su(S.current,`open`,y.pointerType),i=ss(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(Wi(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(X(t,i)){c=t;break}}Wi(o)&&Wi(s)&&!e.context.triggerElements.hasElement(o)&&X(o,s)&&(c=s);let l=c!=null&&k(s,c,i),u=e.select(`open`),d=E.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&b.current,p=!l&&Wi(c)&&Wi(s)&&X(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?O()&&e.setOpen(!0,bc(Cc,t,c)):m||(r?y.openChangeTimeout.start(r,()=>{g&&O()&&e.setOpen(!0,bc(Cc,t,c))}):g&&O()&&e.setOpen(!0,bc(Cc,t,c)))}function o(n){if(D()){j();return}A();let r=Hs(e.select(`domReferenceElement`));y.restTimeout.clear(),y.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!Ps(n.relatedTarget,e.context.triggerElements)){if(x.current&&i){e.select(`open`)||y.openChangeTimeout.clear();let a=c.current;y.handler=x.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){j(),A(),w.current&&!D()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,y.handler),y.handler(n)}else y.pointerType===`touch`&&X(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){X(r,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let f=m?Ic(r,`mouseout`,l):void 0;return s?Lc(Ic(r,`mousemove`,i,{once:!0}),Ic(r,`mouseenter`,i),Ic(r,`mouseleave`,o),f):Lc(Ic(r,`mouseenter`,i),Ic(r,`mouseleave`,o),f)},[A,j,h,S,e,n,x,y,u,k,D,a,s,C,c,_,w,d,E,O,m]),v.useMemo(()=>{if(!n)return;function t(e){y.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=k(i,r,t.target);if(a&&!rs(y.pointerType))return;if(o&&s&&y.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=y.handleCloseOptions?.getScope?.()??r.ownerDocument.body;ku(y,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=Cu(C.current);if(o&&!s||c===0||!s&&y.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;y.restTimeout.clear();function l(){if(y.restTimeoutPending=!1,D())return;let t=e.select(`open`);!y.blockMouseMove&&(!t||s)&&O()&&e.setOpen(!0,bc(Cc,n,r))}y.pointerType===`touch`?Ri.flushSync(()=>{l()}):s&&o?l():(y.restTimeoutPending=!0,y.restTimeout.start(c,l))}}},[n,y,D,k,a,e,C,O])}var Pu=.1,Fu=Pu*Pu,Iu=.5;function Lu(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Ru(e,t,n,r,i,a,o,s,c,l){let u=!1;return Lu(e,t,n,r,i,a)&&(u=!u),Lu(e,t,i,a,o,s)&&(u=!u),Lu(e,t,o,s,c,l)&&(u=!u),Lu(e,t,c,l,n,r)&&(u=!u),u}function zu(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Bu(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Vu(e={}){let{blockPointerEvents:t=!1}=e,n=new Bl,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Fu;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=ss(r),g=r.type===`mouseleave`,_=X(u,h),v=X(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&Wi(r.relatedTarget)&&X(u,r.relatedTarget))return;function y(){return!!(s&&nu(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=Bu(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Bu(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Bu(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Bu(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!zu(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?Iu/2:Iu*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Iu+1,o=C||T?S.bottom-Iu:S.top,s=C?T?S.bottom-Iu:S.top:S.bottom-Iu;M=Ru(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Iu/2:Iu*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Iu,o=C||T?S.top+Iu:S.bottom,s=C?T?S.top+Iu:S.bottom:S.top+Iu;M=Ru(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Iu/2:Iu*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Iu+1,o=w||E?S.right-Iu:S.left,s=w?E?S.right-Iu:S.left:S.right-Iu;M=Ru(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Iu/2:Iu*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Iu,o=w||E?S.left+Iu:S.right,s=w?E?S.left+Iu:S.right:S.left+Iu;M=Ru(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function Hu(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Ll({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Xr,inactiveTriggerProps:Xr,popupProps:Xr}}var Uu=e=>e.triggerIdProp??e.activeTriggerId,Wu=e=>e.openProp??e.open,Gu=e=>(e.popupElement?.id??e.floatingId)||void 0;function Ku(e,t){return t!==void 0&&Wu(e)&&Uu(e)===t}function qu(e,t){return Ku(e,t)?!0:t!==void 0&&Wu(e)&&Uu(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var Ju={open:Wu,mounted:e=>e.mounted,transitionStatus:e=>Wu(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Uu,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Gu,isTriggerActive:(e,t)=>t!==void 0&&Uu(e)===t,isOpenedByTrigger:(e,t)=>Ku(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Uu(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>qu(e,t)?Gu(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Yu(e){let t=v.useCallback(t=>e===void 0?Jr:e.subscribeStore(t),[e]),n=v.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,al.useSyncExternalStore)(t,n,()=>e?.serverStore)}var Xu=Xo&&yc;function Zu(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=v.useRef(!1),s=v.useRef(null),c=v.useRef(!0),l=Vl();v.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=Vi(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&Gi(t)&&t===as(Hs(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return Lc(Ic(r,`blur`,i),Xu&&Ic(r,`keydown`,a,!0),Xu&&Ic(r,`pointerdown`,l,!0))},[e,n]),v.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);Wi(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=v.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=ss(n.nativeEvent);if(Wi(a)){if(Xu&&!n.relatedTarget){if(!c.current&&!Ls(a))return}else if(!Bs(a))return}let u=Ps(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,bc(wc,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,bc(wc,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=Wi(r)&&r.hasAttribute(gl(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=as(Hs(t));!r&&n===t||X(a.current.floatingContext?.refs.floating.current,n)||X(t,n)||o||Ps(r??n,e.context.triggerElements)||e.setOpen(!1,bc(wc,i))})}}},[a,r,e,l]);return v.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}function Qu(e){return Yc(e,`base-ui`)}var $u=v.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=wl({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,J.jsxs)(v.Fragment,{children:[l,c&&Ri.createPortal(n,c)]})});$u.displayName=`FloatingPortalLite`;var ed=v.createContext(void 0);ed.displayName=`DirectionContext`;function td(){return v.useContext(ed)?.direction??`ltr`}function nd(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=v.useState(null),d=v.useRef(null),f=el(n),p=v.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=Fo({...e,elements:{...p,...l&&{reference:l}}}),h=v.useCallback(e=>{let t=Wi(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=v.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=v.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),y=v.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return Y(()=>{o&&(d.current=o)},[o]),Y(()=>{r.context.dataRef.current.floatingContext=y;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),v.useMemo(()=>({...m,context:y,refs:g,elements:_,rootStore:r}),[m,g,_,y,r])}var rd=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=_a(e,t)||{};if(l==null)return{};let d=Fa(u),f={x:n,y:r},p=Ca(i),m=xa(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=ga(D,k,O),j=!c.arrow&&ya(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),id=(e,t)=>{let{name:n,fn:r}=rd(e);return{name:n,fn:r,options:[e,t]}},ad={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},od={sideX:`left`,sideY:`top`},sd=`--available-width`,cd=`--available-height`,ld=`--anchor-width`,ud=`--anchor-height`,dd=`--transform-origin`,fd=sd,pd=cd;function md(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function hd(e,t,n){let{rects:r,placement:i}=e;return{side:md(t,va(i),n),align:ya(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function gd(e){return _d(e,nd)}function _d(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,w=_.side||`flip`,T=_.align||`flip`,E=_.fallbackAxisSide||`end`,D=y?.crossAxis??!1,O=y?.rootBoundary,k=typeof n==`function`?n:void 0,A=Z(k),j=k?A:n,M=Hl(n),N=Hl(g),P=td()===`rtl`,[F,I]=v.useState(null);!g&&F!==null&&I(null);let L=S===`placement`,R=F?va(F):null,z=F&&L?ya(F)||`center`:null,B=R||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":P?`left`:`right`,"inline-start":P?`right`:`left`}[i],ee=z||o,V=ee===`center`?B:`${B}-${ee}`,H=l;typeof H==`number`?H={top:H,right:H,bottom:H,left:H}:H&&={top:H.top||0,right:H.right||0,bottom:H.bottom||0,left:H.left||0};let te=+(i===`bottom`),ne=+(i===`top`),U=+(i===`right`),re=+(i===`left`),ie={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:H},ae=v.useRef(null),oe=Hl(a),W=Hl(s),G=typeof a==`function`?0:a,se=typeof s==`function`?0:s,ce=[];p&&ce.push(p),ce.push(Io(e=>{let t=hd(e,i,P),n=typeof oe.current==`function`?oe.current(t):oe.current,r=typeof W.current==`function`?W.current(t):W.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[G,se,P,i]));let le=T===`none`&&w!==`shift`,ue=!le&&(u||D||w===`shift`),de=w===`none`?null:zo({...ie,padding:{top:H.top+1+te,right:H.right+1+re,bottom:H.bottom+1+ne,left:H.left+1+U},mainAxis:!D&&w===`flip`,crossAxis:T===`flip`&&`alignment`,fallbackAxisSideDirection:E}),K=le?null:Lo({...ie,rootBoundary:O,mainAxis:T!==`none`,crossAxis:ue,limiter:u||D?void 0:Ro(e=>{if(!ae.current)return{};let{width:t,height:n}=ae.current.getBoundingClientRect(),r=Sa(va(e.placement)),i=r===`y`?t:n,a=r===`y`?H.left+H.right:H.top+H.bottom;return{offset:i/2+a/2}})},[ie,u,D,O,H,T]);w===`shift`||T===`shift`||ee===`center`?ce.push(K,de):ce.push(de,K),ce.push(Bo({...ie,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!N.current)return;let i=e.style;i.setProperty(fd,`${t}px`),i.setProperty(pd,`${n}px`);let a=Vi(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(ld,`${u}px`),i.setProperty(ud,`${d}px`)}}),id(e=>({element:ae.current||Hs(e.elements.floating).createElement(`div`),padding:ae.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=va(r),u=ya(r),d=Sa(l)===`y`,f=ae.current,p=typeof a==`function`?a(hd(e,i,P)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return ue&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(dd,d?`${m} ${h}`:`${h} ${m}`),{}}},ad,x),Y(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let fe=v.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:pe,elements:me,x:he,y:ge,middlewareData:_e,update:ve,placement:ye,context:be,isPositioned:xe,floatingStyles:Se}=t({rootContext:h,open:m?g:void 0,placement:V,middleware:ce,strategy:r,whileElementsMounted:m?void 0:(...e)=>Co(...e,fe),nodeId:b,externalTree:C}),{sideX:Ce,sideY:we}=_e.adaptiveOrigin||od,Te=xe?r:`fixed`,Ee=v.useMemo(()=>{let e;return e=xe?x?{position:Te,[Ce]:he,[we]:ge}:{...Se,position:Te}:{position:Te,top:0,left:0},e[fd]=`100vw`,e[pd]=`100vh`,xe||(e.opacity=0),e},[x,Te,Ce,he,we,ge,Se,xe]),De=v.useRef(null);Y(()=>{if(!g)return;let e=M.current,t=typeof e==`function`?e():e,n=(vd(t)?t.current:t)||null;n!==De.current&&(pe.setPositionReference(n),De.current=n)},[g,pe,j,M]),v.useEffect(()=>{if(!g)return;let e=M.current;typeof e!=`function`&&vd(e)&&e.current!==De.current&&(pe.setPositionReference(e.current),De.current=e.current)},[g,pe,j,M]),v.useEffect(()=>{if(m&&g&&me.reference&&me.floating)return Co(me.reference,me.floating,ve,fe)},[m,g,me,ve,fe]);let Oe=va(ye),ke=md(i,Oe,P),Ae=ya(ye)||`center`,je=!!_e.hide?.referenceHidden;Y(()=>{S&&g&&xe&&(Oe!==B||L&&Ae!==ee)&&I(ye)},[S,L,g,xe,ye,Oe,Ae,B,ee]);let Me=v.useMemo(()=>({position:`absolute`,top:_e.arrow?.y,left:_e.arrow?.x}),[_e.arrow]),Ne=_e.arrow?.centerOffset!==0;return v.useMemo(()=>({positionerStyles:Ee,arrowStyles:Me,arrowRef:ae,arrowUncentered:Ne,side:ke,align:Ae,physicalSide:Oe,anchorHidden:je,refs:pe,context:be,isPositioned:xe,update:ve}),[Ee,Me,ae,Ne,ke,Ae,Oe,je,pe,be,xe,ve])}function vd(e){return e!=null&&`current`in e}function yd(e){return e===`starting`?_l:Xr}function bd(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),mi(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},yd(r),i],stateAttributesMapping:js})}var xd=v.createContext(void 0);xd.displayName=`TooltipRootContext`;function Sd(e){let t=v.useContext(xd);if(t===void 0&&!e)throw Error(`Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.`);return t}var Cd=v.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Bl,currentIdRef:{current:null},currentContextRef:{current:null}});Cd.displayName=`FloatingDelayGroupContext`;function wd(e,t){e.current=t.current}function Td(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=v.useRef(n),a=v.useRef(n),o=v.useRef(null),s=v.useRef(null),c=Vl();return Y(()=>{a.current=n,o.current?i.current={open:Su(i.current,`open`),close:Su(n,`close`)}:i.current=n},[n,o,i,a]),(0,J.jsx)(Cd.Provider,{value:v.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Ed(e,t={open:!1}){let{open:n}=t,r=e.useState(`floatingId`),{currentIdRef:i,delayRef:a,timeoutMs:o,initialDelayRef:s,currentContextRef:c,hasProvider:l,timeout:u}=v.useContext(Cd),[d,f]=v.useState(!1),p=v.useRef(n);return Y(()=>{p.current=n},[n]),Y(()=>{function t(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=s.current,u.clear()}if(i.current&&!n&&i.current===r){if(f(!1),o){let n=r;return u.start(o,()=>{e.select(`open`)||i.current&&i.current!==n||t()}),()=>{(p.current||i.current!==n)&&u.clear()}}t()}},[n,r,i,a,o,s,c,u,e]),Y(()=>{if(!n)return;let t=c.current,o=i.current;u.clear(),c.current={onOpenChange:e.setOpen,setIsInstantPhase:f},i.current=r,a.current={open:0,close:Su(s.current,`close`)},o!==null&&o!==r?(f(!0),t?.setIsInstantPhase(!0),t?.onOpenChange(!1,bc(xc))):(f(!1),t?.setIsInstantPhase(!1))},[n,r,e,i,a,s,c,u]),Y(()=>()=>{if(i.current===r){if(c.current=null,!p.current)return;i.current=null,wd(a,s),u.clear()}},[c,i,a,r,s,u]),v.useMemo(()=>({activeIdRef:i,hasProvider:l,delayRef:a,isInstantPhase:d}),[i,l,a,d])}function Dd(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,(!i||c)&&(d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Od(e){return e!=null&&e.clientX!=null}function kd(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=e.useState(`open`),a=e.useState(`floatingElement`),o=e.useState(`domReferenceElement`),s=e.context.dataRef,c=v.useRef(!1),l=v.useRef(null),[u,d]=v.useState(),[f,p]=v.useState([]),m=Z(t=>{e.set(`positionReference`,t)}),h=Z((t,n,i)=>{c.current||(!s.current.openEvent||Od(s.current.openEvent))&&e.set(`positionReference`,Dd(i??o,{x:t,y:n,axis:r,dataRef:s,pointerType:u}))}),g=Z(e=>{i?l.current||(h(e.clientX,e.clientY,e.currentTarget),p([])):h(e.clientX,e.clientY,e.currentTarget)}),_=rs(u)?a:i;v.useEffect(()=>{if(!n){m(o);return}if(!_)return;function e(){l.current?.(),l.current=null}let t=Vi(a);function r(t){let n=ss(t);X(a,n)?e():h(t.clientX,t.clientY)}return!s.current.openEvent||Od(s.current.openEvent)?l.current=Ic(t,`mousemove`,r):m(o),e},[_,n,a,s,o,e,h,m,f]),v.useEffect(()=>()=>{e.set(`positionReference`,null)},[e]),v.useEffect(()=>{n&&!a&&(c.current=!1)},[n,a]),v.useEffect(()=>{!n&&i&&(c.current=!0)},[n,i]);let y=v.useMemo(()=>{function e(e){d(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return v.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}var Ad={...Ju,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},jd=class extends Fl{constructor(e,t,n){let r=new Ol;super(Md(e,r,t,n),Nd(r),Ad)}setOpen=(e,t)=>{gu(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,bc(Sc,e))}};function Md(e,t,n,r=!1){return{...Hu(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function Nd(e){return{popupRef:v.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Pd=dl(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=uu((e,t)=>new jd({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),y=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),vu(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:b,transitionStatus:x}=yu(h,p),S=p.useState(`isInstantPhase`),C=p.useState(`instantType`),w=p.useState(`lastOpenChangeReason`),T=v.useRef(null);Y(()=>{m&&t&&p.setOpen(!1,bc(jc))},[m,t,p]),Y(()=>{x===`ending`&&w===`none`||x!==`ending`&&S?(C!==`delay`&&(T.current=C),p.set(`instantType`,`delay`)):T.current!==null&&(p.set(`instantType`,T.current),T.current=null)},[x,S,w,C,p]),Y(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),v.useImperativeHandle(o,()=>({unmount:b,close:()=>p.setOpen(!1,bc(Pc))}),[b,p]);let E=h||_||!t&&a!==`none`;return(0,J.jsxs)(xd.Provider,{value:p,children:[l&&(0,J.jsx)(du,{handle:l,store:p}),E&&(0,J.jsx)(Fd,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:y}):f]})});Pd.displayName=`TooltipRoot`;function Fd({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=ou(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=kd(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=v.useMemo(()=>ti(a.reference,i.reference),[a.reference,i.reference]);return bu(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??Xr}),null}var Id=v.createContext(void 0);Id.displayName=`TooltipProviderContext`;function Ld(){return v.useContext(Id)}var Rd=`data-base-ui-tooltip-trigger`;function zd(e){let t=ss(e);return Wi(t)?t:null}var Bd=fl(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=Sd(!0),m=Yu(a)??p;if(!m)throw Error(`Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.`);let h=Qu(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),y=m.useState(`floatingRootContext`),b=v.useRef(null),x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=_u(h,b,m,{payload:o,closeOnClick:l,closeDelay:x}),w=Ld(),{activeIdRef:T,delayRef:E,isInstantPhase:D,hasProvider:O}=Ed(y,{open:_}),k=Au(y);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=Hl(j),N=m.useState(`trackCursorAxis`),P=m.useState(`disableHoverablePopup`),F=v.useRef(!1),I=Vl(),L=v.useRef(void 0);function R(){return O&&T.current!=null?0:c??w??600}function z(e){let t=b.current;if(!t||!e)return!1;let n=os(e,`[${Rd}]`);return n!==null&&n!==t&&X(t,n)}function B(e){let t=z(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let ee=Nu(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!P&&N!==`both`?Vu():null,restMs:R,delay(){return u==null&&O?{close:Su(E.current,`close`)}:{close:x}},triggerElementRef:b,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),V=Zu(y,{enabled:!j}).reference,H=e=>{let t=F.current,n=zd(e),r=B(n),i=b.current,a=i&&n&&X(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`)m.setOpen(!1,bc(Cc,e));else if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&rs(L.current)){let t=()=>{F.current||M.current||m.select(`open`)||m.setOpen(!0,bc(Cc,e,i))},n=R();n===0?(I.clear(),t()):I.start(n,t)}},te=m.useState(`appliedTriggerProps`,C||N!==`none`);return mi(`button`,e,{state:{open:_},ref:[t,S,b],props:[ee,V,te,{onMouseOver(e){H(e.nativeEvent)},onFocus(e){z(zd(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Ns]:j?``:void 0,[Rd]:j?void 0:``},f],stateAttributesMapping:ks})});Bd.displayName=`TooltipTrigger`;var Vd=v.createContext(void 0);Vd.displayName=`TooltipPortalContext`;function Hd(){let e=v.useContext(Vd);if(e===void 0)throw Error(`Base UI: <Tooltip.Portal> is missing.`);return e}var Ud=v.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Sd().useState(`mounted`)||n?(0,J.jsx)(Vd.Provider,{value:n,children:(0,J.jsx)($u,{ref:t,...r})}):null});Ud.displayName=`TooltipPortal`;var Wd=v.createContext(void 0);Wd.displayName=`TooltipPositionerContext`;function Gd(){let e=v.useContext(Wd);if(e===void 0)throw Error(`Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.`);return e}var Kd=v.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=yl,style:g,..._}=e,y=Sd(),b=Hd(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`trackCursorAxis`),w=y.useState(`disableHoverablePopup`),T=y.useState(`floatingRootContext`),E=y.useState(`instantType`),D=y.useState(`transitionStatus`),O=gd({anchor:i,positionMethod:a,floatingRootContext:T,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:b,collisionAvoidance:h,adaptiveOrigin:y.useState(`adaptiveOrigin`)}),k=bd(e,v.useMemo(()=>({open:x,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:C===`none`?E:`tracking-cursor`}),[x,O.side,O.align,O.anchorHidden,C,E]),{styles:O.positionerStyles,transitionStatus:D,props:_,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x||C===`both`||w});return(0,J.jsx)(Wd.Provider,{value:O,children:k})});Kd.displayName=`TooltipPositioner`;var qd=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Sd(),{side:s,align:c}=Gd(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);eu({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),ju(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return mi(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[lu,f,yd(d),a],stateAttributesMapping:Ms})});qd.displayName=`TooltipPopup`;var Jd=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Sd(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Gd();return mi(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:js})});Jd.displayName=`TooltipArrow`;var Yd=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=v.useMemo(()=>({open:t,close:n}),[t,n]);return(0,J.jsx)(Id.Provider,{value:t,children:(0,J.jsx)(Td,{delay:i,timeoutMs:r,children:e.children})})};Yd.displayName=`TooltipProvider`;var Xd=Yd;function Zd({content:e,children:t,align:n,asChild:r,render:i,side:a,className:o,container:s,closeDelay:c,delay:l,...u}){let d=Ii(),f=s??d??void 0,p=i??(r?t:void 0),m=p!==void 0;return(0,J.jsxs)(Pd,{...u,children:[(0,J.jsx)(Bd,{closeDelay:c,delay:l,className:q(!m&&`m-0 inline-flex h-auto min-h-0 items-center border-none bg-transparent p-0 shadow-none`,`cursor-default`,o),render:p,children:r?void 0:t}),(0,J.jsx)(Ud,{container:f,children:(0,J.jsx)(Kd,{align:n,side:a,sideOffset:10,className:`max-w-[var(--available-width)]`,children:(0,J.jsxs)(qd,{className:q(`flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-2.5 py-1.5 text-sm text-kumo-default`,`shadow-md outline outline-kumo-line`,`transition-[transform,scale,opacity] duration-150`,`data-[starting-style]:scale-90 data-[starting-style]:opacity-0`,`data-[ending-style]:scale-90 data-[ending-style]:opacity-0`,`data-[instant]:duration-0`,`kumo-tooltip-popup`),children:[(0,J.jsx)(Jd,{className:q(`flex`,`data-[side=bottom]:top-[-8px]`,`data-[side=left]:right-[-13px] data-[side=left]:rotate-90`,`data-[side=right]:left-[-13px] data-[side=right]:-rotate-90`,`data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180`),children:(0,J.jsx)(Qd,{})}),e]})})})]})}function Qd(e){return(0,J.jsxs)(`svg`,{width:`20`,height:`10`,viewBox:`0 0 20 10`,fill:`none`,...e,children:[(0,J.jsx)(`path`,{d:`M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z`,className:`fill-kumo-base`}),(0,J.jsx)(`path`,{d:`M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z`,className:`fill-kumo-arrow-edge`}),(0,J.jsx)(`path`,{d:`M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z`,className:`fill-kumo-arrow-stroke`})]})}var $d=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140,104V64a12,12,0,0,1,24,0V75l35.51-35.52a12,12,0,0,1,17,17L181,92h11a12,12,0,0,1,0,24H152A12,12,0,0,1,140,104Zm-36,36H64a12,12,0,0,0,0,24H75L39.51,199.51a12,12,0,0,0,17,17L92,181v11a12,12,0,0,0,24,0V152A12,12,0,0,0,104,140Zm77,24h11a12,12,0,0,0,0-24H152a12,12,0,0,0-12,12v40a12,12,0,0,0,24,0V181l35.51,35.52a12,12,0,0,0,17-17ZM104,52A12,12,0,0,0,92,64V75L56.49,39.51a12,12,0,0,0-17,17L75,92H64a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V64A12,12,0,0,0,104,52Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,13.66-5.66L172,72.69l30.34-30.35a8,8,0,0,1,11.32,11.32L183.31,84l14.35,14.34A8,8,0,0,1,192,112H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0-5.66,13.66L72.69,172,42.34,202.34a8,8,0,0,0,11.32,11.32L84,183.31l14.34,14.35A8,8,0,0,0,112,192V152A8,8,0,0,0,104,144Zm3.06-87.39a8,8,0,0,0-8.72,1.73L84,72.69,53.66,42.34A8,8,0,0,0,42.34,53.66L72.69,84,58.34,98.34A8,8,0,0,0,64,112h40a8,8,0,0,0,8-8V64A8,8,0,0,0,107.06,56.61ZM183.31,172l14.35-14.34A8,8,0,0,0,192,144H152a8,8,0,0,0-8,8v40a8,8,0,0,0,13.66,5.66L172,183.31l30.34,30.35a8,8,0,0,0,11.32-11.32Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M146,104V64a6,6,0,0,1,12,0V89.51l45.76-45.75a6,6,0,0,1,8.48,8.48L166.48,98H192a6,6,0,0,1,0,12H152A6,6,0,0,1,146,104Zm-42,42H64a6,6,0,0,0,0,12H89.52L43.76,203.76a6,6,0,1,0,8.48,8.48L98,166.48V192a6,6,0,0,0,12,0V152A6,6,0,0,0,104,146Zm62.48,12H192a6,6,0,0,0,0-12H152a6,6,0,0,0-6,6v40a6,6,0,0,0,12,0V166.48l45.76,45.76a6,6,0,0,0,8.48-8.48ZM104,58a6,6,0,0,0-6,6V89.51L52.24,43.76a6,6,0,0,0-8.48,8.48L89.52,98H64a6,6,0,0,0,0,12h40a6,6,0,0,0,6-6V64A6,6,0,0,0,104,58Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M148,104V64a4,4,0,0,1,8,0V94.34l49.17-49.17a4,4,0,1,1,5.66,5.66L161.66,100H192a4,4,0,0,1,0,8H152A4,4,0,0,1,148,104Zm-44,44H64a4,4,0,0,0,0,8H94.34L45.17,205.17a4,4,0,0,0,5.66,5.66L100,161.66V192a4,4,0,0,0,8,0V152A4,4,0,0,0,104,148Zm57.66,8H192a4,4,0,0,0,0-8H152a4,4,0,0,0-4,4v40a4,4,0,0,0,8,0V161.66l49.17,49.17a4,4,0,0,0,5.66-5.66ZM104,60a4,4,0,0,0-4,4V94.34L50.83,45.17a4,4,0,0,0-5.66,5.66L94.34,100H64a4,4,0,0,0,0,8h40a4,4,0,0,0,4-4V64A4,4,0,0,0,104,60Z`}))]]),ef=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M252,124a60.14,60.14,0,0,0-32-53.08,52,52,0,0,0-92-32.11A52,52,0,0,0,36,70.92a60,60,0,0,0,0,106.14,52,52,0,0,0,92,32.13,52,52,0,0,0,92-32.13A60.05,60.05,0,0,0,252,124ZM88,204a28,28,0,0,1-26.85-20.07c1,0,1.89.07,2.85.07h8a12,12,0,0,0,0-24H64A36,36,0,0,1,52,90.05a12,12,0,0,0,8-11.32V72a28,28,0,0,1,56,0v60.18a51.61,51.61,0,0,0-7.2-3.85,12,12,0,1,0-9.6,22A28,28,0,0,1,88,204Zm104-44h-8a12,12,0,0,0,0,24h8c1,0,1.9,0,2.85-.07a28,28,0,1,1-38-33.61,12,12,0,1,0-9.6-22,51.61,51.61,0,0,0-7.2,3.85V72a28,28,0,0,1,56,0v6.73a12,12,0,0,0,8,11.32,36,36,0,0,1-12,70Zm16-44a12,12,0,0,1-12,12,40,40,0,0,1-40-40V84a12,12,0,0,1,24,0v4a16,16,0,0,0,16,16A12,12,0,0,1,208,116ZM100,88a40,40,0,0,1-40,40,12,12,0,0,1,0-24A16,16,0,0,0,76,88V84a12,12,0,0,1,24,0Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M240,124a48,48,0,0,1-32,45.27h0V176a40,40,0,0,1-80,0,40,40,0,0,1-80,0v-6.73h0a48,48,0,0,1,0-90.54V72a40,40,0,0,1,80,0,40,40,0,0,1,80,0v6.73A48,48,0,0,1,240,124Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212,76V72a44,44,0,0,0-74.86-31.31,3.93,3.93,0,0,0-1.14,2.8v88.72a4,4,0,0,0,6.2,3.33A47.67,47.67,0,0,1,167.68,128a8.18,8.18,0,0,1,8.31,7.58,8,8,0,0,1-8,8.42,32,32,0,0,0-32,32v33.88a4,4,0,0,0,1.49,3.12,47.92,47.92,0,0,0,74.21-17.16,4,4,0,0,0-4.49-5.56A68.06,68.06,0,0,1,192,192h-7.73a8.18,8.18,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h8a51.6,51.6,0,0,0,24-5.88v0A52,52,0,0,0,212,76Zm-12,36h-4a36,36,0,0,1-36-36V72a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4a8,8,0,0,1,0,16ZM88,28A44.05,44.05,0,0,0,44,72v4a52,52,0,0,0-4,94.12h0A51.6,51.6,0,0,0,64,176h7.73A8.18,8.18,0,0,1,80,183.47,8,8,0,0,1,72,192H64a67.48,67.48,0,0,1-15.21-1.73,4,4,0,0,0-4.5,5.55A47.93,47.93,0,0,0,118.51,213a4,4,0,0,0,1.49-3.12V176a32,32,0,0,0-32-32,8,8,0,0,1-8-8.42A8.18,8.18,0,0,1,88.32,128a47.67,47.67,0,0,1,25.48,7.54,4,4,0,0,0,6.2-3.33V43.49a4,4,0,0,0-1.14-2.81A43.85,43.85,0,0,0,88,28Zm8,48a36,36,0,0,1-36,36H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,76V72a8,8,0,0,1,16,0Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M246,124a54.13,54.13,0,0,0-32-49.33V72a46,46,0,0,0-86-22.67A46,46,0,0,0,42,72v2.67a54,54,0,0,0,0,98.63V176a46,46,0,0,0,86,22.67A46,46,0,0,0,214,176v-2.7A54.07,54.07,0,0,0,246,124ZM88,210a34,34,0,0,1-34-32.94A53.67,53.67,0,0,0,64,178h8a6,6,0,0,0,0-12H64A42,42,0,0,1,50,84.39a6,6,0,0,0,4-5.66V72a34,34,0,0,1,68,0v73.05A45.89,45.89,0,0,0,88,130a6,6,0,0,0,0,12,34,34,0,0,1,0,68Zm104-44h-8a6,6,0,0,0,0,12h8a53.67,53.67,0,0,0,10-.94A34,34,0,1,1,168,142a6,6,0,0,0,0-12,45.89,45.89,0,0,0-34,15.05V72a34,34,0,0,1,68,0v6.73a6,6,0,0,0,4,5.66A42,42,0,0,1,192,166Zm14-54a6,6,0,0,1-6,6h-4a34,34,0,0,1-34-34V80a6,6,0,0,1,12,0v4a22,22,0,0,0,22,22h4A6,6,0,0,1,206,112ZM60,118H56a6,6,0,0,1,0-12h4A22,22,0,0,0,82,84V80a6,6,0,0,1,12,0v4A34,34,0,0,1,60,118Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M248,124a56.11,56.11,0,0,0-32-50.61V72a48,48,0,0,0-88-26.49A48,48,0,0,0,40,72v1.39a56,56,0,0,0,0,101.2V176a48,48,0,0,0,88,26.49A48,48,0,0,0,216,176v-1.41A56.09,56.09,0,0,0,248,124ZM88,208a32,32,0,0,1-31.81-28.56A55.87,55.87,0,0,0,64,180h8a8,8,0,0,0,0-16H64A40,40,0,0,1,50.67,86.27,8,8,0,0,0,56,78.73V72a32,32,0,0,1,64,0v68.26A47.8,47.8,0,0,0,88,128a8,8,0,0,0,0,16,32,32,0,0,1,0,64Zm104-44h-8a8,8,0,0,0,0,16h8a55.87,55.87,0,0,0,7.81-.56A32,32,0,1,1,168,144a8,8,0,0,0,0-16,47.8,47.8,0,0,0-32,12.26V72a32,32,0,0,1,64,0v6.73a8,8,0,0,0,5.33,7.54A40,40,0,0,1,192,164Zm16-52a8,8,0,0,1-8,8h-4a36,36,0,0,1-36-36V80a8,8,0,0,1,16,0v4a20,20,0,0,0,20,20h4A8,8,0,0,1,208,112ZM60,120H56a8,8,0,0,1,0-16h4A20,20,0,0,0,80,84V80a8,8,0,0,1,16,0v4A36,36,0,0,1,60,120Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M244,124a52.1,52.1,0,0,0-32-48V72a44,44,0,0,0-84-18.3A44,44,0,0,0,44,72v4a52,52,0,0,0,0,96v4a44,44,0,0,0,84,18.3A44,44,0,0,0,212,176v-4A52.07,52.07,0,0,0,244,124ZM88,212a36,36,0,0,1-36-36v-1.41A52.13,52.13,0,0,0,64,176h8a4,4,0,0,0,0-8H64A44,44,0,0,1,49.33,82.5,4,4,0,0,0,52,78.73V72a36,36,0,0,1,72,0v78.75A44,44,0,0,0,88,132a4,4,0,0,0,0,8,36,36,0,0,1,0,72Zm104-44h-8a4,4,0,0,0,0,8h8a52.13,52.13,0,0,0,12-1.41V176a36,36,0,1,1-36-36,4,4,0,0,0,0-8,44,44,0,0,0-36,18.75V72a36,36,0,0,1,72,0v6.73a4,4,0,0,0,2.67,3.77A44,44,0,0,1,192,168Zm12-56a4,4,0,0,1-4,4h-4a32,32,0,0,1-32-32V80a4,4,0,0,1,8,0v4a24,24,0,0,0,24,24h4A4,4,0,0,1,204,112ZM92,84a32,32,0,0,1-32,32H56a4,4,0,0,1,0-8h4A24,24,0,0,0,84,84V80a4,4,0,0,1,8,0Z`}))]]),tf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L137,128ZM57,128l71.52-71.51a12,12,0,0,0-17-17l-80,80a12,12,0,0,0,0,17l80,80a12,12,0,0,0,17-17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,48V208l-80-80Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M203.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,208,208V48A8,8,0,0,0,203.06,40.61ZM192,188.69,131.31,128,192,67.31Zm-66.34,13.65a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L51.31,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,48V208a8,8,0,0,1-13.66,5.66L128,147.31V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,128,48v60.69l66.34-66.35A8,8,0,0,1,208,48Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M204.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L128.49,128ZM48.49,128l75.75-75.76a6,6,0,0,0-8.48-8.48l-80,80a6,6,0,0,0,0,8.48l80,80a6,6,0,1,0,8.48-8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M202.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L125.66,128ZM45.66,128l77.17-77.17a4,4,0,0,0-5.66-5.66l-80,80a4,4,0,0,0,0,5.66l80,80a4,4,0,1,0,5.66-5.66Z`}))]]),nf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M144.49,136.49l-80,80a12,12,0,0,1-17-17L119,128,47.51,56.49a12,12,0,0,1,17-17l80,80A12,12,0,0,1,144.49,136.49Zm80-17-80-80a12,12,0,1,0-17,17L199,128l-71.52,71.51a12,12,0,0,0,17,17l80-80A12,12,0,0,0,224.49,119.51Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M136,128,56,208V48Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M141.66,122.34l-80-80A8,8,0,0,0,48,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,141.66,122.34ZM64,188.69V67.31L124.69,128Zm157.66-55-80,80a8,8,0,0,1-11.32-11.32L204.69,128,130.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,221.66,133.66Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M221.66,133.66l-80,80A8,8,0,0,1,128,208V147.31L61.66,213.66A8,8,0,0,1,48,208V48a8,8,0,0,1,13.66-5.66L128,108.69V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,221.66,133.66Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L127.51,128,51.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,140.24,132.24Zm80-8.48-80-80a6,6,0,0,0-8.48,8.48L207.51,128l-75.75,75.76a6,6,0,1,0,8.48,8.48l80-80A6,6,0,0,0,220.24,123.76Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M138.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L130.34,128,53.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,138.83,130.83Zm80-5.66-80-80a4,4,0,0,0-5.66,5.66L210.34,128l-77.17,77.17a4,4,0,0,0,5.66,5.66l80-80A4,4,0,0,0,218.83,125.17Z`}))]]),rf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),af=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M160,48V208L80,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z`}))]]),of=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),sf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),cf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M80,176h96l-48,48ZM128,32,80,80h96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z`}))]]),lf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M236.34,187.09A84,84,0,0,0,172.29,68.9,84,84,0,0,0,19.66,139.09l-6.84,23.26a20,20,0,0,0,24.83,24.83l23.26-6.84a83.94,83.94,0,0,0,22.76,6.74,84.06,84.06,0,0,0,111.42,41.26l23.26,6.84a20,20,0,0,0,24.83-24.83ZM62,155.5a11.88,11.88,0,0,0-3.39.49l-20.72,6.09L44,141.35a12,12,0,0,0-.93-9A60,60,0,1,1,67.7,156.92,12,12,0,0,0,62,155.5Zm150.89,24.8a12,12,0,0,0-.93,9l6.09,20.73L197.36,204a12,12,0,0,0-9.06.93A60,60,0,0,1,111,186.63a83.93,83.93,0,0,0,68.55-91.37,60,60,0,0,1,33.38,85Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M231.66,213.73a8,8,0,0,1-9.93,9.93L194,215.5A72.05,72.05,0,0,1,92.06,175.89h0c1.31.07,2.62.11,3.94.11a72,72,0,0,0,67.93-95.88h0A72,72,0,0,1,223.5,186Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86Zm-16.25,1.47L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M229.93,186.58A78,78,0,0,0,168.16,74.42,78,78,0,1,0,26.07,138.58L18.58,164A14,14,0,0,0,36,181.42l25.46-7.49a78,78,0,0,0,26.39,7.63,78,78,0,0,0,106.77,40.37L220,229.42A14,14,0,0,0,237.42,212ZM62,161.5a6.05,6.05,0,0,0-1.69.24l-27.77,8.17a2,2,0,0,1-2.48-2.48l8.17-27.77a6.05,6.05,0,0,0-.47-4.53,66,66,0,1,1,27.08,27.08A6,6,0,0,0,62,161.5Zm155.71,26.16,8.17,27.77a2,2,0,0,1-2.48,2.48l-27.77-8.17a6.06,6.06,0,0,0-4.53.47,66,66,0,0,1-90-28.4,77.92,77.92,0,0,0,71-94.68,66,66,0,0,1,46.07,96A6.05,6.05,0,0,0,217.74,187.66Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.07,186.76a80,80,0,0,0-62.5-114.17A80,80,0,1,0,23.93,138.76l-7.27,24.71a16,16,0,0,0,19.87,19.87l24.71-7.27a80.39,80.39,0,0,0,25.18,7.35,80,80,0,0,0,108.34,40.65l24.71,7.27a16,16,0,0,0,19.87-19.86ZM62,159.5a8.28,8.28,0,0,0-2.26.32L32,168l8.17-27.76a8,8,0,0,0-.63-6,64,64,0,1,1,26.26,26.26A8,8,0,0,0,62,159.5Zm153.79,28.73L224,216l-27.76-8.17a8,8,0,0,0-6,.63,64.05,64.05,0,0,1-85.87-24.88A79.93,79.93,0,0,0,174.7,89.71a64,64,0,0,1,41.75,92.48A8,8,0,0,0,215.82,188.23Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.79,186.39a76,76,0,0,0-61-110.07A76,76,0,1,0,28.21,138.39L20.5,164.6a12,12,0,0,0,14.9,14.9l26.21-7.71a75.93,75.93,0,0,0,27.6,7.9,76,76,0,0,0,105.18,40.1l26.21,7.71a12,12,0,0,0,14.9-14.9ZM60.9,163.66l-27.76,8.17a4,4,0,0,1-5-5l8.17-27.76a4.07,4.07,0,0,0-.31-3A68,68,0,1,1,63.92,164,4.06,4.06,0,0,0,60.9,163.66Zm165.92,55.16a4,4,0,0,1-4,1l-27.76-8.17a4.07,4.07,0,0,0-3,.31A68,68,0,0,1,98,180a76,76,0,0,0,71.5-95.28A68,68,0,0,1,220,184.08a4.07,4.07,0,0,0-.31,3l8.17,27.76A4,4,0,0,1,226.82,218.82Z`}))]]),uf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),df=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z`}))]]),ff=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),pf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z`}))]]),mf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,88H152V32Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z`}))]]),hf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M40.14,46.88A12,12,0,0,0,36,56V224a12,12,0,0,0,24,0V181.72c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2,14.72,0,30.28-4.94,46.38-18.88A12,12,0,0,0,236,176V56a12,12,0,0,0-19.86-9.07c-24.71,21.41-44.53,13.31-74.82-1.68C113.19,31.27,78.17,13.94,40.14,46.88ZM212,170.26c-22.84,17.13-42.1,9.11-70.68-5C118.16,153.76,90.33,140,60,153.87V61.69c22.84-17.12,42.1-9.12,70.68,5,16.23,8,34.74,17.2,54.8,17.2A63,63,0,0,0,212,78.08Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,56V176c-64,55.43-112-55.43-176,0V56C112,.57,160,111.43,224,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,56V176a8,8,0,0,1-2.76,6c-15.28,13.23-29.89,18-43.82,18-18.91,0-36.57-8.74-53-16.85C105.87,170,82.79,158.61,56,179.77V224a8,8,0,0,1-16,0V56a8,8,0,0,1,2.77-6h0c36-31.18,68.31-15.21,96.79-1.12C167,62.46,190.79,74.2,218.76,50A8,8,0,0,1,232,56Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M44.08,51.37A6,6,0,0,0,42,55.9V224a6,6,0,0,0,12,0V178.78c28.08-22.79,51.88-11,79.34,2.57,16.12,8,33.49,16.58,52,16.58,13.57,0,27.76-4.6,42.56-17.42A6,6,0,0,0,230,176V55.9a6,6,0,0,0-9.93-4.54c-29,25.12-53.28,13.09-81.41-.84C110.77,36.71,79,21.16,44.08,51.37ZM218,173.17c-28.08,22.8-51.88,11-79.34-2.58C113.4,158.08,85.09,144.07,54,164V58.72c28.08-22.8,51.88-11,79.34,2.56C158.6,73.79,186.91,87.8,218,67.91Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M42.76,50A8,8,0,0,0,40,56V224a8,8,0,0,0,16,0V179.77c26.79-21.16,49.87-9.75,76.45,3.41,16.4,8.11,34.06,16.85,53,16.85,13.93,0,28.54-4.75,43.82-18a8,8,0,0,0,2.76-6V56A8,8,0,0,0,218.76,50c-28,24.23-51.72,12.49-79.21-1.12C111.07,34.76,78.78,18.79,42.76,50ZM216,172.25c-26.79,21.16-49.87,9.74-76.45-3.41-25-12.35-52.81-26.13-83.55-8.4V59.79c26.79-21.16,49.87-9.75,76.45,3.4,25,12.35,52.82,26.13,83.55,8.4Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M45.39,53.06a4,4,0,0,0-1.39,3V224a4,4,0,0,0,8,0V177.87c29.41-24.39,55.08-11.69,82.23,1.73,16.5,8.17,33.33,16.5,51.13,16.5,13.14,0,26.81-4.55,41.26-17.06a4,4,0,0,0,1.38-3v-120a4,4,0,0,0-6.62-3c-30,26-56,13.07-83.61-.57C109.07,38.28,79.4,23.62,45.39,53.06ZM220,174.17c-29.41,24.4-55.08,11.7-82.23-1.73-26.82-13.27-54.5-27-85.77-4.66V57.92c29.41-24.4,55.08-11.7,82.23,1.73,26.82,13.27,54.5,27,85.77,4.66Z`}))]]),gf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z`}))]]),_f=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M248.23,112.31A20,20,0,0,0,232,104H220V88a20,20,0,0,0-20-20H132L105.34,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V208a12,12,0,0,0,12,12H211.1a12,12,0,0,0,11.33-8l28.49-81.47.06-.17A20,20,0,0,0,248.23,112.31ZM92,68l28.8,21.6A12,12,0,0,0,128,92h68v12H69.77a20,20,0,0,0-18.94,13.58L44,137.15V68ZM202.59,196H48.89l23.72-68H226.37Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,88v24H69.77a8,8,0,0,0-7.59,5.47L32,208V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h72A8,8,0,0,1,208,88Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M243.36,111.81A14,14,0,0,0,232,106H214V88a14,14,0,0,0-14-14H130L101.74,52.8a14.06,14.06,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V208a6,6,0,0,0,6,6H211.1a6,6,0,0,0,5.69-4.1l28.49-85.47A14,14,0,0,0,243.36,111.81ZM40,62H93.34a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h72a2,2,0,0,1,2,2v18H69.77a14,14,0,0,0-13.28,9.57L38,171V64A2,2,0,0,1,40,62Zm193.9,58.63L206.78,202H40.33l27.54-82.63a2,2,0,0,1,1.9-1.37H232a2,2,0,0,1,1.9,2.63Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M241.72,113a11.88,11.88,0,0,0-9.73-5H212V88a12,12,0,0,0-12-12H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V208a4,4,0,0,0,4,4H211.09a4,4,0,0,0,3.79-2.74l28.49-85.47A11.86,11.86,0,0,0,241.72,113ZM40,60H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4v20H69.76a12,12,0,0,0-11.38,8.21L36,183.35V64A4,4,0,0,1,40,60Zm195.78,61.26L208.2,204H37.55L66,118.74A4,4,0,0,1,69.76,116H232a4,4,0,0,1,3.79,5.26Z`}))]]),vf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z`}))]]),yf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.78,69.45A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.09,16.65l32-21.34a20,20,0,0,0,8.9-16.64V140.75l66.67-71.16ZM143.23,127.8A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.24-8.2L49.23,60H206.75Zm105.26,79.72a12,12,0,1,1-17,17L216,209l-15.52,15.51a12,12,0,0,1-17-17L199,192l-15.52-15.52a12,12,0,0,1,17-17L216,175l15.51-15.52a12,12,0,1,1,17,17L233,192Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M227.82,66.76A16,16,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.73-72.32ZM40,56h0Zm106.19,74.59A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.46L40,56H216Zm99.49,79.81a8,8,0,0,1-11.32,11.32L216,203.32l-18.34,18.35a8,8,0,0,1-11.31-11.32L204.69,192l-18.34-18.35a8,8,0,0,1,11.31-11.31L216,180.69l18.34-18.34a8,8,0,0,1,11.32,11.31L227.31,192Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.73,66.85,160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76ZM227.31,192l18.35-18.34a8,8,0,0,0-11.32-11.32L216,180.69l-18.34-18.35a8,8,0,0,0-11.32,11.32L204.69,192l-18.35,18.34a8,8,0,0,0,11.32,11.32L216,203.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.79,50.34A13.83,13.83,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.06L98,138.38V216a14,14,0,0,0,21.76,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.34-73A13.83,13.83,0,0,0,228.79,50.34Zm-11.26,6.94-69.9,74.62A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32a1.89,1.89,0,0,1-.33-2.13A1.91,1.91,0,0,1,40,54H216a1.9,1.9,0,0,1,1.82,1.19A1.87,1.87,0,0,1,217.53,57.28Zm26.71,154.49a6,6,0,1,1-8.48,8.48L216,200.49l-19.75,19.76a6,6,0,0,1-8.49-8.48L207.52,192l-19.76-19.76a6,6,0,0,1,8.49-8.49L216,183.52l19.76-19.76a6,6,0,0,1,8.48,8.49L224.49,192Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.82,66.76A16,16,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.73-72.32ZM40,56h0Zm106.19,74.59A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.46L40,56H216Zm99.49,79.81a8,8,0,0,1-11.32,11.32L216,203.32l-18.34,18.35a8,8,0,0,1-11.31-11.32L204.69,192l-18.34-18.35a8,8,0,0,1,11.31-11.31L216,180.69l18.34-18.34a8,8,0,0,1,11.32,11.31L227.31,192Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227,51.15A11.86,11.86,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.65,10l32-21.33a12,12,0,0,0,5.34-10V137.59l68.86-73.52A11.83,11.83,0,0,0,227,51.15Zm-8,7.5-69.91,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.09-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Zm23.84,154.53a4,4,0,0,1-5.66,5.66L216,197.67l-21.17,21.17a4,4,0,0,1-5.66-5.66L210.34,192l-21.17-21.17a4,4,0,1,1,5.66-5.66L216,186.35l21.17-21.17a4,4,0,1,1,5.66,5.66L221.66,192Z`}))]]),bf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M246.14,113.86l-16-16a20,20,0,0,0-23.06-3.75l-45.2-45.2a20,20,0,0,0-3.74-23.06l-16-16a20,20,0,0,0-28.28,0l-64,64a20,20,0,0,0,0,28.28l16,16a20,20,0,0,0,23,3.79L29.36,181.38a32,32,0,0,0,45.26,45.26L134,167.21a20,20,0,0,0,3.81,22.94l16,16a20,20,0,0,0,28.29,0l64-64a20,20,0,0,0,0-28.29ZM80,98.34,69.64,88,128,29.65,138.34,40ZM57.64,209.67a8,8,0,0,1-11.31-11.32l59.52-59.52,11.31,11.32Zm92.7-60.29-43.72-43.72,39-39,43.72,43.72Zm17.65,37L157.65,176,216,117.66,226.34,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M149.66,45.66l-64,64a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,0-11.32l64-64a8,8,0,0,1,11.32,0l16,16A8,8,0,0,1,149.66,45.66Zm88,76.68-16-16a8,8,0,0,0-11.32,0l-64,64a8,8,0,0,0,0,11.32l16,16a8,8,0,0,0,11.32,0l64-64A8,8,0,0,0,237.66,122.34Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M52.69,99.31a16,16,0,0,1,0-22.63l64-64a16,16,0,0,1,22.63,22.63l-64,64a16,16,0,0,1-22.63,0Zm190.63,17.37a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63h0a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.68Zm-35.11-15.8L155.12,47.79a4,4,0,0,0-5.66,0L87.8,109.45a4,4,0,0,0,0,5.66L103,130.34,28.69,204.69a16,16,0,0,0,22.62,22.62L125.66,153l15.23,15.23a4,4,0,0,0,5.66,0l61.66-61.66A4,4,0,0,0,208.21,100.88Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M241.91,118.1l-16-16a14,14,0,0,0-19.55-.23L154.13,49.64a14,14,0,0,0-.23-19.55l-16-16a14,14,0,0,0-19.8,0l-64,64a14,14,0,0,0,0,19.8l16,16a14,14,0,0,0,19.55.23L99.52,124,32.73,190.79a23,23,0,0,0,32.48,32.49L132,156.49l9.87,9.87a14,14,0,0,0,.23,19.55l16,16a14,14,0,0,0,19.8,0l64-64A14,14,0,0,0,241.91,118.1Zm-91.56,39.76-52.21-52.2,47.52-47.52,52.2,52.2ZM78.59,105.41l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16a2,2,0,0,1,0,2.83l-64,64A2,2,0,0,1,78.59,105.41ZM56.73,214.8a11,11,0,0,1-15.52-15.52L108,132.49,123.52,148Zm176.69-85.38-64,64a2,2,0,0,1-2.83,0l-16-16a2,2,0,0,1,0-2.83l64-64a2,2,0,0,1,2.83,0l16,16A2,2,0,0,1,233.42,129.42Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M243.32,116.69l-16-16a16,16,0,0,0-20.84-1.53L156.84,49.52a16,16,0,0,0-1.52-20.84l-16-16a16,16,0,0,0-22.63,0l-64,64a16,16,0,0,0,0,22.63l16,16a16,16,0,0,0,20.83,1.52L96.69,124,31.31,189.38A25,25,0,0,0,66.63,224.7L132,159.32l7.17,7.16a16,16,0,0,0,1.52,20.84l16,16a16,16,0,0,0,22.63,0l64-64A16,16,0,0,0,243.32,116.69ZM80,104,64,88l64-64,16,16ZM55.32,213.38a9,9,0,0,1-12.69,0,9,9,0,0,1,0-12.68L108,135.32,120.69,148ZM101,105.66,145.66,61,195,110.34,150.35,155ZM168,192l-16-16,4-4h0l56-56h0l4-4,16,16Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M240.49,119.52l-16-16a12,12,0,0,0-17,0l-1.17,1.17-55-55,1.18-1.17a12,12,0,0,0,0-17l-16-16a12,12,0,0,0-17,0l-64,64a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l1.17-1.18L102.34,124l-68.2,68.21A21,21,0,0,0,63.8,221.87L132,153.66l12.69,12.69-1.18,1.17a12,12,0,0,0,0,17l16,16a12,12,0,0,0,17,0l64-64a12,12,0,0,0,0-17ZM77.17,106.83l-16-16a4,4,0,0,1,0-5.66l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.65l-64,64A4,4,0,0,1,77.17,106.83Zm-19,109.38A13,13,0,1,1,39.8,197.87L108,129.66,126.34,148ZM95.31,105.66l50.35-50.35,55,55-50.35,50.35Zm139.52,25.17-64,64a4,4,0,0,1-5.66,0l-16-16a4,4,0,0,1,0-5.65l64-64a4,4,0,0,1,5.66,0l16,16a4,4,0,0,1,0,5.66Z`}))]]),xf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z`}))]]),Sf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M236,64a36,36,0,1,0-48,33.94V112a4,4,0,0,1-4,4H96a27.8,27.8,0,0,0-4,.29V97.94a36,36,0,1,0-24,0v60.12a36,36,0,1,0,24,0V144a4,4,0,0,1,4-4h88a28,28,0,0,0,28-28V97.94A36.07,36.07,0,0,0,236,64ZM80,52A12,12,0,1,1,68,64,12,12,0,0,1,80,52Zm0,152a12,12,0,1,1,12-12A12,12,0,0,1,80,204ZM200,76a12,12,0,1,1,12-12A12,12,0,0,1,200,76Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,64a24,24,0,1,1-24-24A24,24,0,0,1,224,64Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230,64a30,30,0,1,0-36,29.4V112a10,10,0,0,1-10,10H96a21.84,21.84,0,0,0-10,2.42v-31a30,30,0,1,0-12,0v69.2a30,30,0,1,0,12,0V144a10,10,0,0,1,10-10h88a22,22,0,0,0,22-22V93.4A30.05,30.05,0,0,0,230,64ZM62,64A18,18,0,1,1,80,82,18,18,0,0,1,62,64ZM98,192a18,18,0,1,1-18-18A18,18,0,0,1,98,192ZM200,82a18,18,0,1,1,18-18A18,18,0,0,1,200,82Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,64a32,32,0,1,0-40,31v17a8,8,0,0,1-8,8H96a23.84,23.84,0,0,0-8,1.38V95a32,32,0,1,0-16,0v66a32,32,0,1,0,16,0V144a8,8,0,0,1,8-8h88a24,24,0,0,0,24-24V95A32.06,32.06,0,0,0,232,64ZM64,64A16,16,0,1,1,80,80,16,16,0,0,1,64,64ZM96,192a16,16,0,1,1-16-16A16,16,0,0,1,96,192ZM200,80a16,16,0,1,1,16-16A16,16,0,0,1,200,80Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228,64a28,28,0,1,0-32,27.71V112a12,12,0,0,1-12,12H96a19.91,19.91,0,0,0-12,4V91.71a28,28,0,1,0-8,0v72.58a28,28,0,1,0,8,0V144a12,12,0,0,1,12-12h88a20,20,0,0,0,20-20V91.71A28,28,0,0,0,228,64ZM60,64A20,20,0,1,1,80,84,20,20,0,0,1,60,64Zm40,128a20,20,0,1,1-20-20A20,20,0,0,1,100,192ZM200,84a20,20,0,1,1,20-20A20,20,0,0,1,200,84Z`}))]]),Cf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184,20H72A20,20,0,0,0,52,40V76a20.1,20.1,0,0,0,8,16l48,36L60,164a20.1,20.1,0,0,0-8,16v36a20,20,0,0,0,20,20H184a20,20,0,0,0,20-20V180.36a20.13,20.13,0,0,0-7.94-16L147.9,128l48.16-36.4a20.13,20.13,0,0,0,7.94-16V40A20,20,0,0,0,184,20Zm-4,24V60H76V44Zm-52,69L89.33,84h77Zm52,99H76V182l52-39,52,39.33Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M192,64V75.64A8,8,0,0,1,188.82,82L128,128,67.2,82.4A8,8,0,0,1,64,76V64Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M184,24H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.59A16.09,16.09,0,0,0,200,75.64V40A16,16,0,0,0,184,24Zm0,16V56H72V40Zm0,176H72V180l56-42,56,42.35Zm-56-98L72,76V72H184v3.64Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.59A16.09,16.09,0,0,0,200,75.64ZM184,40V64H72V40Zm0,176H72V180l56-42,56,42.35Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184,26H72A14,14,0,0,0,58,40V76a14.06,14.06,0,0,0,5.6,11.2L118,128,63.6,168.8A14.06,14.06,0,0,0,58,180v36a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V180.36a14.08,14.08,0,0,0-5.56-11.17L138,128l54.49-41.19A14.08,14.08,0,0,0,198,75.64V40A14,14,0,0,0,184,26ZM72,38H184a2,2,0,0,1,2,2V58H70V40A2,2,0,0,1,72,38ZM186,180.36V216a2,2,0,0,1-2,2H72a2,2,0,0,1-2-2V180a2,2,0,0,1,.8-1.6L128,135.51l57.22,43.25A2,2,0,0,1,186,180.36Zm-.79-103.12L128,120.49,70.8,77.6A2,2,0,0,1,70,76V70H186v5.64A2,2,0,0,1,185.21,77.24Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184,24H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.6A16.05,16.05,0,0,0,200,75.64V40A16,16,0,0,0,184,24Zm0,16V56H72V40Zm0,176H72V180l56-42,56,42.35Zm-56-98L72,76V72H184v3.64Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M184,28H72A12,12,0,0,0,60,40V76a12,12,0,0,0,4.8,9.6L121.33,128,64.8,170.4A12,12,0,0,0,60,180v36a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180.36a12.05,12.05,0,0,0-4.76-9.57L134.63,128l56.61-42.79A12.05,12.05,0,0,0,196,75.64V40A12,12,0,0,0,184,28ZM72,36H184a4,4,0,0,1,4,4V60H68V40A4,4,0,0,1,72,36ZM188,180.36V216a4,4,0,0,1-4,4H72a4,4,0,0,1-4-4V180a4,4,0,0,1,1.6-3.2L128,133l58.42,44.16A4,4,0,0,1,188,180.36ZM186.41,78.83,128,123,69.6,79.2A4,4,0,0,1,68,76V68H188v7.64A4,4,0,0,1,186.41,78.83Z`}))]]),wf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Tf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M76,64A12,12,0,0,1,88,52H216a12,12,0,0,1,0,24H88A12,12,0,0,1,76,64Zm140,52H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H88a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,112a16,16,0,1,0,16,16A16,16,0,0,0,44,112Zm0-64A16,16,0,1,0,60,64,16,16,0,0,0,44,48Zm0,128a16,16,0,1,0,16,16A16,16,0,0,0,44,176Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,64V192H88V64Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,1,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM68,188a12,12,0,1,1,12-12A12,12,0,0,1,68,188Zm0-48a12,12,0,1,1,12-12A12,12,0,0,1,68,140Zm0-48A12,12,0,1,1,80,80,12,12,0,0,1,68,92Zm124,92H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M82,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H88A6,6,0,0,1,82,64Zm134,58H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm0,64H88a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12ZM44,54A10,10,0,1,0,54,64,10,10,0,0,0,44,54Zm0,128a10,10,0,1,0,10,10A10,10,0,0,0,44,182Zm0-64a10,10,0,1,0,10,10A10,10,0,0,0,44,118Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M84,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H88A4,4,0,0,1,84,64Zm132,60H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm0,64H88a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8ZM44,120a8,8,0,1,0,8,8A8,8,0,0,0,44,120Zm0-64a8,8,0,1,0,8,8A8,8,0,0,0,44,56Zm0,128a8,8,0,1,0,8,8A8,8,0,0,0,44,184Z`}))]]),Ef=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z`}))]]),Df=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z`}))]]),Of=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),kf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z`}))]]),Af=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,28a12,12,0,0,0-12,12v62l-113.45-71A20,20,0,0,0,44,47.88V208.12A20,20,0,0,0,74.55,225L188,154v62a12,12,0,0,0,24,0V40A12,12,0,0,0,200,28ZM68,200.73V55.27L184.3,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M196.3,134.65,68.19,214.77A8,8,0,0,1,56,208.12V47.88a8,8,0,0,1,12.19-6.65L196.3,121.35A7.83,7.83,0,0,1,196.3,134.65Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,40V216a8,8,0,0,1-16,0V146.77L72.43,221.55A15.95,15.95,0,0,1,48,208.12V47.88A15.95,15.95,0,0,1,72.43,34.45L192,109.23V40a8,8,0,0,1,16,0Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,34a6,6,0,0,0-6,6v72.84L71.37,36.14a14,14,0,0,0-14.21-.37A13.69,13.69,0,0,0,50,47.88V208.12a13.69,13.69,0,0,0,7.16,12.11,14,14,0,0,0,14.21-.37L194,143.17V216a6,6,0,0,0,12,0V40A6,6,0,0,0,200,34Zm-6.88,95.56L65,209.69a2,2,0,0,1-2,.05,1.79,1.79,0,0,1-1-1.62V47.88a1.79,1.79,0,0,1,1-1.62A2.1,2.1,0,0,1,64,46a2,2,0,0,1,1,.31l128.12,80.13a1.82,1.82,0,0,1,0,3.12Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,32a8,8,0,0,0-8,8v69.23L72.43,34.45A15.95,15.95,0,0,0,48,47.88V208.12a16,16,0,0,0,24.43,13.43L192,146.77V216a8,8,0,0,0,16,0V40A8,8,0,0,0,200,32ZM64,207.93V48.05l127.84,80Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M200,36a4,4,0,0,0-4,4v76.44L70.31,37.84a12,12,0,0,0-12.18-.32A11.69,11.69,0,0,0,52,47.88V208.12a11.69,11.69,0,0,0,6.13,10.36,12,12,0,0,0,12.18-.32L196,139.56V216a4,4,0,0,0,8,0V40A4,4,0,0,0,200,36Zm-5.82,95.26L66.06,211.38a4,4,0,0,1-4.06.11,3.8,3.8,0,0,1-2-3.37V47.88a3.8,3.8,0,0,1,2-3.37A4,4,0,0,1,64,44a4,4,0,0,1,2.11.62l128.12,80.12a3.83,3.83,0,0,1,0,6.52Z`}))]]),jf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),Mf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M72.5,150.63,100.79,128,72.5,105.37a12,12,0,1,1,15-18.74l40,32a12,12,0,0,1,0,18.74l-40,32a12,12,0,0,1-15-18.74ZM144,172h32a12,12,0,0,0,0-24H144a12,12,0,0,0,0,24ZM236,56V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56Zm-24,4H44V196H212Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,56V200a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm-91,94.25-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32a8,8,0,0,1,0,12.5ZM176,168H136a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M126,128a6,6,0,0,1-2.25,4.69l-40,32a6,6,0,0,1-7.5-9.38L110.4,128,76.25,100.69a6,6,0,1,1,7.5-9.38l40,32A6,6,0,0,1,126,128Zm50,26H136a6,6,0,0,0,0,12h40a6,6,0,0,0,0-12Zm54-98V200a14,14,0,0,1-14,14H40a14,14,0,0,1-14-14V56A14,14,0,0,1,40,42H216A14,14,0,0,1,230,56Zm-12,0a2,2,0,0,0-2-2H40a2,2,0,0,0-2,2V200a2,2,0,0,0,2,2H216a2,2,0,0,0,2-2Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M122.5,124.88a4,4,0,0,1,0,6.24l-40,32a4,4,0,0,1-5-6.24L113.6,128,77.5,99.12a4,4,0,0,1,5-6.24ZM176,156H136a4,4,0,0,0,0,8h40a4,4,0,0,0,0-8ZM228,56V200a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V56A12,12,0,0,1,40,44H216A12,12,0,0,1,228,56Zm-8,0a4,4,0,0,0-4-4H40a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H216a4,4,0,0,0,4-4Z`}))]]),Nf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z`}))]]),Pf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z`}))]]),Ff=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0ZM236,91.55v72.9a19.86,19.86,0,0,1-5.86,14.14l-51.55,51.55A19.85,19.85,0,0,1,164.45,236H91.55a19.85,19.85,0,0,1-14.14-5.86L25.86,178.59A19.86,19.86,0,0,1,20,164.45V91.55a19.86,19.86,0,0,1,5.86-14.14L77.41,25.86A19.85,19.85,0,0,1,91.55,20h72.9a19.85,19.85,0,0,1,14.14,5.86l51.55,51.55A19.86,19.86,0,0,1,236,91.55Zm-24,1.66L162.79,44H93.21L44,93.21v69.58L93.21,212h69.58L212,162.79ZM128,156a16,16,0,1,0,16,16A16,16,0,0,0,128,156Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,91.55v72.9a8,8,0,0,1-2.34,5.66l-51.55,51.55a8,8,0,0,1-5.66,2.34H91.55a8,8,0,0,1-5.66-2.34L34.34,170.11A8,8,0,0,1,32,164.45V91.55a8,8,0,0,1,2.34-5.66L85.89,34.34A8,8,0,0,1,91.55,32h72.9a8,8,0,0,1,5.66,2.34l51.55,51.55A8,8,0,0,1,224,91.55Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M227.31,80.23,175.77,28.69A16.13,16.13,0,0,0,164.45,24H91.55a16.13,16.13,0,0,0-11.32,4.69L28.69,80.23A16.13,16.13,0,0,0,24,91.55v72.9a16.13,16.13,0,0,0,4.69,11.32l51.54,51.54A16.13,16.13,0,0,0,91.55,232h72.9a16.13,16.13,0,0,0,11.32-4.69l51.54-51.54A16.13,16.13,0,0,0,232,164.45V91.55A16.13,16.13,0,0,0,227.31,80.23ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0ZM230,91.55v72.9a13.92,13.92,0,0,1-4.1,9.9L174.35,225.9a13.92,13.92,0,0,1-9.9,4.1H91.55a13.92,13.92,0,0,1-9.9-4.1L30.1,174.35a13.92,13.92,0,0,1-4.1-9.9V91.55a13.92,13.92,0,0,1,4.1-9.9L81.65,30.1a13.92,13.92,0,0,1,9.9-4.1h72.9a13.92,13.92,0,0,1,9.9,4.1L225.9,81.65A13.92,13.92,0,0,1,230,91.55Zm-12,0a2,2,0,0,0-.59-1.42L165.87,38.59a2,2,0,0,0-1.42-.59H91.55a2,2,0,0,0-1.41.59L38.58,90.13A2,2,0,0,0,38,91.55v72.9a2,2,0,0,0,.59,1.42l51.54,51.54a2,2,0,0,0,1.42.59h72.9a2,2,0,0,0,1.41-.59l51.56-51.54a2,2,0,0,0,.58-1.42ZM128,162a10,10,0,1,0,10,10A10,10,0,0,0,128,162Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0ZM228,91.55v72.9a12,12,0,0,1-3.51,8.49l-51.55,51.55a12,12,0,0,1-8.49,3.51H91.55a12,12,0,0,1-8.49-3.51L31.51,172.94A12,12,0,0,1,28,164.45V91.55a12,12,0,0,1,3.51-8.49L83.06,31.51A12,12,0,0,1,91.55,28h72.9a12,12,0,0,1,8.49,3.51l51.55,51.55A12,12,0,0,1,228,91.55Zm-8,0a4,4,0,0,0-1.17-2.83L167.28,37.17A4.06,4.06,0,0,0,164.45,36H91.55a4.06,4.06,0,0,0-2.83,1.17L37.17,88.72A4,4,0,0,0,36,91.55v72.9a4,4,0,0,0,1.17,2.83l51.55,51.55A4.06,4.06,0,0,0,91.55,220h72.9a4.06,4.06,0,0,0,2.83-1.17l51.55-51.55a4,4,0,0,0,1.17-2.83ZM128,164a8,8,0,1,0,8,8A8,8,0,0,0,128,164Z`}))]]),If=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M230.47,67.5a12,12,0,0,0-19.26-4.32L172.43,99l-12.68-2.72L157,83.57l35.79-38.78a12,12,0,0,0-4.32-19.26A76.07,76.07,0,0,0,88.41,121.64L30.92,174.18a4.68,4.68,0,0,0-.39.38,36,36,0,0,0,50.91,50.91l.38-.39,52.54-57.49A76.05,76.05,0,0,0,230.47,67.5ZM160,148a51.5,51.5,0,0,1-23.35-5.52,12,12,0,0,0-14.26,2.62L64.31,208.66a12,12,0,0,1-17-17l63.55-58.07a12,12,0,0,0,2.62-14.26A51.5,51.5,0,0,1,108,96a52.06,52.06,0,0,1,52-52h.89L135.17,71.87a12,12,0,0,0-2.91,10.65l5.66,26.35a12,12,0,0,0,9.21,9.21l26.35,5.66a12,12,0,0,0,10.65-2.91L212,95.12c0,.3,0,.59,0,.89A52.06,52.06,0,0,1,160,148Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224,96a64,64,0,0,1-94.94,56L73,217A24,24,0,0,1,39,183L104,126.94a64,64,0,0,1,80-90.29L144,80l5.66,26.34L176,112l43.35-40A63.8,63.8,0,0,1,224,96Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M232,96a72,72,0,0,1-100.94,66L79,222.22c-.12.14-.26.29-.39.42a32,32,0,0,1-45.26-45.26c.14-.13.28-.27.43-.39L94,124.94a72.07,72.07,0,0,1,83.54-98.78,8,8,0,0,1,3.93,13.19L144,80l5.66,26.35L176,112l40.65-37.52a8,8,0,0,1,13.19,3.93A72.6,72.6,0,0,1,232,96Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M224.91,69.75a6,6,0,0,0-9.63-2.16l-41.07,37.9L154.7,101.3l-4.19-19.51,37.9-41.07a6,6,0,0,0-2.16-9.63,70,70,0,0,0-89.77,94.39l-61.39,53c-.11.09-.21.19-.32.3A30,30,0,0,0,77.2,221.23c.11-.11.21-.21.3-.32l53-61.39a70,70,0,0,0,94.39-89.77ZM160,154a58,58,0,0,1-28-7.22,6,6,0,0,0-7.45,1.33L68.57,212.88a18,18,0,0,1-25.45-25.45l64.76-55.94A6,6,0,0,0,109.2,124a58,58,0,0,1,64-84.53L139.58,75.93a6,6,0,0,0-1.45,5.33l5.65,26.35a6,6,0,0,0,4.61,4.61l26.35,5.65a6,6,0,0,0,5.33-1.45L216.49,82.8A58.06,58.06,0,0,1,160,154Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M226.76,69a8,8,0,0,0-12.84-2.88l-40.3,37.19-17.23-3.7-3.7-17.23,37.19-40.3A8,8,0,0,0,187,29.24,72,72,0,0,0,88,96,72.34,72.34,0,0,0,94,124.94L33.79,177c-.15.12-.29.26-.43.39a32,32,0,0,0,45.26,45.26c.13-.13.27-.28.39-.42L131.06,162A72,72,0,0,0,232,96,71.56,71.56,0,0,0,226.76,69ZM160,152a56.14,56.14,0,0,1-27.07-7,8,8,0,0,0-9.92,1.77L67.11,211.51a16,16,0,0,1-22.62-22.62L109.18,133a8,8,0,0,0,1.77-9.93,56,56,0,0,1,58.36-82.31l-31.2,33.81a8,8,0,0,0-1.94,7.1L141.83,108a8,8,0,0,0,6.14,6.14l26.35,5.66a8,8,0,0,0,7.1-1.94l33.81-31.2A56.06,56.06,0,0,1,160,152Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M223.05,70.5a4,4,0,0,0-6.42-1.44l-41.82,38.6L153,103l-4.68-21.79,38.6-41.82a4,4,0,0,0-1.44-6.43A68,68,0,0,0,98.94,126L36.4,180l-.21.2a28,28,0,0,0,39.6,39.6l.2-.21,54-62.54A68,68,0,0,0,228,96,67.51,67.51,0,0,0,223.05,70.5ZM160,156a60,60,0,0,1-29-7.47,4,4,0,0,0-5,.89L70,214.25A20,20,0,0,1,41.75,186l64.82-56a4,4,0,0,0,.89-5,60,60,0,0,1,69.46-86.59L141.05,77.29a4,4,0,0,0-1,3.55l5.66,26.35a4,4,0,0,0,3.07,3.07l26.35,5.66a4,4,0,0,0,3.55-1l38.87-35.87A60.05,60.05,0,0,1,160,156Z`}))]]),Lf=new Map([[`bold`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),v.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,v.createElement(v.Fragment,null,v.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Rf=(0,v.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),zf=v.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=v.useContext(Rf);return v.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&v.createElement(`title`,null,n),s,c.get(a??f))});zf.displayName=`IconBase`;var Bf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:$d}));Bf.displayName=`ArrowsInIcon`;var Vf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:ef}));Vf.displayName=`BrainIcon`;var Hf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:tf}));Hf.displayName=`CaretDoubleLeftIcon`;var Uf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:nf}));Uf.displayName=`CaretDoubleRightIcon`;var Wf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:rf}));Wf.displayName=`CaretDownIcon`;var Gf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:af}));Gf.displayName=`CaretLeftIcon`;var Kf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:of}));Kf.displayName=`CaretRightIcon`;var qf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:sf}));qf.displayName=`CaretUpIcon`;var Jf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:cf}));Jf.displayName=`CaretUpDownIcon`;var Yf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:lf}));Yf.displayName=`ChatsCircleIcon`;var Xf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:uf}));Xf.displayName=`CheckIcon`;var Zf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:df}));Zf.displayName=`ClockCounterClockwiseIcon`;var Qf=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:ff}));Qf.displayName=`CopyIcon`;var $f=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:pf}));$f.displayName=`DatabaseIcon`;var ep=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:mf}));ep.displayName=`FileIcon`;var tp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:hf}));tp.displayName=`FlagIcon`;var np=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:gf}));np.displayName=`FolderIcon`;var rp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:_f}));rp.displayName=`FolderOpenIcon`;var ip=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:vf}));ip.displayName=`FunnelIcon`;var ap=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:yf}));ap.displayName=`FunnelXIcon`;var op=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:bf}));op.displayName=`GavelIcon`;var sp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:xf}));sp.displayName=`GearSixIcon`;var cp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Sf}));cp.displayName=`GitBranchIcon`;var lp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Cf}));lp.displayName=`HourglassHighIcon`;var up=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:wf}));up.displayName=`InfoIcon`;var dp=up,fp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Tf}));fp.displayName=`ListBulletsIcon`;var pp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Ef}));pp.displayName=`MinusIcon`;var mp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Df}));mp.displayName=`PlayIcon`;var hp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Of}));hp.displayName=`QuestionIcon`;var gp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:kf}));gp.displayName=`RobotIcon`;var _p=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Af}));_p.displayName=`SkipForwardIcon`;var vp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:jf}));vp.displayName=`SquaresFourIcon`;var yp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Mf}));yp.displayName=`TerminalWindowIcon`;var bp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Nf}));bp.displayName=`TreeStructureIcon`;var xp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Pf}));xp.displayName=`UserIcon`;var Sp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Ff}));Sp.displayName=`WarningOctagonIcon`;var Cp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:If}));Cp.displayName=`WrenchIcon`;var wp=v.forwardRef((e,t)=>v.createElement(zf,{ref:t,...e,weights:Lf}));wp.displayName=`XIcon`;var Tp={shape:{base:{classes:``,description:`Default rectangular button shape`},square:{classes:`items-center justify-center p-0`,description:`Square button for icon-only actions`},circle:{classes:`items-center justify-center p-0 rounded-full`,description:`Circular button for icon-only actions`}},size:{xs:{classes:`h-5 gap-1 rounded-sm px-1.5 text-xs`,description:`Extra small button for compact UIs`},sm:{classes:`h-6.5 gap-1 rounded-md px-2 text-xs`,description:`Small button for secondary actions`},base:{classes:`h-9 gap-1.5 rounded-lg px-3 text-base`,description:`Default button size`},lg:{classes:`h-10 gap-2 rounded-lg px-4 text-base`,description:`Large button for primary CTAs`}},compactSize:{xs:{classes:`size-3.5`},sm:{classes:`size-6.5`},base:{classes:`size-9`},lg:{classes:`size-10`}},variant:{primary:{classes:`relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50`,description:`High-emphasis button for primary actions`},secondary:{classes:`bg-kumo-base !text-kumo-default ring not-disabled:hover:bg-kumo-tint disabled:bg-kumo-base/50 disabled:!text-kumo-default/70 ring-kumo-line data-[state=open]:bg-kumo-base`,description:`Default button style for most actions`},ghost:{classes:`text-kumo-default hover:bg-kumo-tint shadow-none bg-inherit`,description:`Minimal button with no background`},destructive:{classes:`relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50`,description:`Danger button for destructive actions like delete`},"secondary-destructive":{classes:`bg-kumo-base !text-kumo-danger ring not-disabled:hover:!text-kumo-danger not-disabled:hover:ring-kumo-danger/30 disabled:bg-kumo-base/50 disabled:!text-kumo-danger/70 ring-kumo-line data-[state=open]:bg-kumo-base`,description:`Secondary button with destructive text for less prominent dangerous actions`},outline:{classes:`bg-transparent text-kumo-default ring ring-kumo-line transition-colors not-disabled:hover:text-kumo-strong not-disabled:hover:ring-kumo-focus/25`,description:`Bordered button with transparent background`}}},Ep={shape:`base`,size:`base`,variant:`secondary`};function Dp({variant:e=Ep.variant,size:t=Ep.size,shape:n=Ep.shape}={}){let r=n===`square`||n===`circle`;return q(`group flex w-max shrink-0 items-center font-medium select-none`,`border-0 shadow-xs`,`focus:ring-kumo-focus/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand`,`cursor-pointer`,`disabled:cursor-not-allowed disabled:text-kumo-subtle`,xr(Tp.size,t,Ep.size).classes,xr(Tp.shape,n,Ep.shape).classes,r&&xr(Tp.compactSize,t,Ep.size).classes,xr(Tp.variant,e,Ep.variant).classes)}var Op={xs:`pb-px [--kumo-button-text-lift:0.5px]`,sm:`pb-px [--kumo-button-text-lift:0.5px]`,base:`pb-0.5 [--kumo-button-text-lift:1px]`,lg:`pb-0.5 [--kumo-button-text-lift:1px]`},kp={xs:`pl-1`,sm:`pl-1.5`,base:`pl-2.5`,lg:`pl-3.5`},Ap=`[&>svg:first-child]:translate-y-(--kumo-button-text-lift) [&>span.relative>svg:first-child]:translate-y-(--kumo-button-text-lift)`,jp=(e,t,n,r)=>{let i=v.Children.toArray(r).some(e=>e!==``);if(e===`base`&&i)return q(Op[t],n!=null&&[kp[t],Ap])},Mp=e=>e?v.isValidElement(e)?e:(0,J.jsx)(e,{}):null,Np=e=>{if(e===`primary`)return`var(--color-kumo-brand)`;if(e===`destructive`)return`var(--color-kumo-danger)`},Pp=e=>{let t=Np(e);if(t)return{"--kumo-button-emphasis-ring":`color-mix(in oklch, ${t}, black 10%)`,"--kumo-button-emphasis-bg":`color-mix(in oklch, ${t}, white 30%)`,"--kumo-button-emphasis-gradient-start":`color-mix(in oklch, ${t}, white 15%)`,"--kumo-button-emphasis-gradient-end":t}},Fp=new Set([`href`,`target`,`rel`,`download`,`hrefLang`,`media`,`ping`,`referrerPolicy`,`linksExternal`]),Ip=e=>{let t={...e};for(let e of Object.keys(t))(e.startsWith(`on`)||Fp.has(e))&&delete t[e];return t},Lp=(e,t,n)=>{let r=n==null?null:(0,J.jsx)(`span`,{className:`contents`,children:n});return Np(e)?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{"aria-hidden":`true`,className:`absolute inset-0 rounded-[inherit] bg-linear-to-b from-(--kumo-button-emphasis-gradient-start) to-(--kumo-button-emphasis-gradient-end) shadow-[inset_0_1px_0_0_var(--kumo-button-emphasis-bg)] group-hover:from-(--kumo-button-emphasis-bg)`}),(0,J.jsxs)(`span`,{className:`relative flex items-center gap-1.5`,children:[t,r]})]}):(0,J.jsxs)(J.Fragment,{children:[t,r]})},Rp=e=>{if(typeof e==`string`)return e;if(typeof e==`number`)return String(e)},zp=v.forwardRef(({children:e,className:t,disabled:n,loading:r,shape:i=`base`,size:a=`base`,variant:o=`secondary`,icon:s,style:c,title:l,...u},d)=>{let{type:f,...p}=u,m=Pp(o),h=Rp(l),g={...p,...!v.Children.count(e)&&!p[`aria-label`]&&!p[`aria-labelledby`]&&h&&{"aria-label":h}},_=r?(0,J.jsx)(Pi,{size:a===`lg`?16:14}):Mp(s),y=(0,J.jsx)(`button`,{ref:d,"data-kumo-component":`Button`,className:q(Dp({variant:o,size:a,shape:i}),jp(i,a,_,e),n&&`cursor-not-allowed opacity-50`,t),disabled:r||n,style:m?{...m,...c}:c,type:f??`button`,...g,children:Lp(o,_,e)});return l&&(n||r)?(0,J.jsx)(Zd,{content:l,render:(0,J.jsx)(`span`,{className:`inline-flex`}),children:y}):l?(0,J.jsx)(Zd,{content:l,render:y}):y});zp.displayName=`Button`;var Bp=v.forwardRef(({children:e,className:t,disabled:n=!1,external:r,href:i,shape:a=`base`,size:o=`base`,variant:s=`ghost`,icon:c,style:l,title:u,...d},f)=>{let p=jr(),m=Pp(s),h=r?{target:`_blank`,rel:`noopener noreferrer`}:{};if(n)return(0,J.jsx)(zp,{...Ip(d),className:q(`select-text`,t),"data-kumo-component":`LinkButton`,disabled:!0,icon:c,shape:a,size:o,style:l,title:u,variant:s,children:e});let g=Mp(c),_=(0,J.jsx)(p,{ref:f,"data-kumo-component":`LinkButton`,className:q(Dp({variant:s,size:o,shape:a}),jp(a,o,g,e),`flex items-center no-underline! select-text`,t),href:i,style:m?{...m,...l}:l,to:typeof i==`string`?i:void 0,...h,...d,children:Lp(s,g,e)});return u?(0,J.jsx)(Zd,{content:u,render:_}):_});Bp.displayName=`LinkButton`;var Vp=(0,v.createContext)({variant:`default`,size:`sm`}),Hp={default:{accent:`var(--color-kumo-info)`,secondary:`text-inherit ring-kumo-info/50 fill-kumo-info hover:!text-inherit hover:!ring-kumo-info/50 hover:bg-kumo-info/10`,ghost:`text-inherit fill-kumo-info hover:bg-kumo-info/10`},alert:{accent:`var(--color-kumo-warning)`,secondary:`text-inherit ring-kumo-warning/50 fill-kumo-warning hover:!text-inherit hover:!ring-kumo-warning/50 hover:bg-kumo-warning/10`,ghost:`text-inherit fill-kumo-warning hover:bg-kumo-warning/10`},error:{accent:`var(--color-kumo-danger)`,secondary:`text-inherit ring-kumo-danger/50 fill-kumo-danger hover:!text-inherit hover:!ring-kumo-danger/50 hover:bg-kumo-danger/10`,ghost:`text-inherit fill-kumo-danger hover:bg-kumo-danger/10`},secondary:{accent:`var(--color-neutral-700, oklch(37.1% 0 0))`,secondary:`text-inherit ring-kumo-focus/20 fill-kumo-subtle hover:!text-inherit hover:!ring-kumo-focus/20 hover:bg-kumo-contrast/10`,ghost:`text-inherit fill-kumo-subtle hover:bg-kumo-contrast/10`}};function Up(e){return{"--kumo-button-emphasis-ring":`color-mix(in oklch, ${e}, black 10%)`,"--kumo-button-emphasis-bg":`color-mix(in oklch, ${e}, white 30%)`,"--kumo-button-emphasis-gradient-start":`color-mix(in oklch, ${e}, white 15%)`,"--kumo-button-emphasis-gradient-end":e}}var Wp=(0,v.forwardRef)(function({variant:e=`primary`,className:t,style:n,...r},i){let a=(0,v.useContext)(Vp),o=Hp[a.variant];return(0,J.jsx)(zp,{ref:i,variant:e===`secondary`?`outline`:e,size:a.size,className:q(e!==`primary`&&o[e],t),style:e===`primary`?{...Up(o.accent),...n}:n,...r})});Wp.displayName=`Banner.Action`;var Gp=`flex w-full`,Kp={variant:{default:{classes:`bg-kumo-info-tint text-kumo-info`,iconClasses:`fill-kumo-info`,description:`Informational banner for general messages`},alert:{classes:`bg-kumo-warning-tint text-kumo-warning`,iconClasses:`fill-kumo-warning`,description:`Warning banner for cautionary messages`},error:{classes:`bg-kumo-danger-tint text-kumo-danger`,iconClasses:`fill-kumo-danger`,description:`Error banner for critical issues`},secondary:{classes:`bg-kumo-contrast/5 text-kumo-default/70`,iconClasses:`fill-kumo-interact`,description:`Neutral banner for secondary messages`}},size:{base:{classes:`items-start gap-3 rounded-lg px-4 py-3 text-base`,description:`Default banner size`},sm:{classes:`items-center gap-2 rounded-md px-3 py-2 text-sm`,description:`Compact banner for dialogs and tight spaces`}}},qp={variant:`default`,size:`base`},Jp={base:{row:`gap-3`,icon:`h-[1.375em]`,description:`text-sm`,action:`sm`},sm:{row:`gap-2`,icon:`h-[1.25em]`,description:`text-sm`,action:`xs`}};function Yp({variant:e=qp.variant,size:t=qp.size}={}){let n=xr(Kp.variant,e,qp.variant),r=xr(Kp.size,t,qp.size);return q(Gp,n.classes,r.classes)}var Xp=(0,v.forwardRef)(function({icon:e,title:t,description:n,action:r,children:i,text:a,variant:o=qp.variant,size:s=qp.size,className:c,...l},u){let d=xr(Kp.variant,o,qp.variant),f=Jp[s],p=s===`sm`,m=p&&(0,v.isValidElement)(r)&&r.type===Ai;if(t||n)return(0,J.jsx)(Vp.Provider,{value:{variant:o,size:f.action},children:(0,J.jsxs)(`div`,{ref:u,className:q(Yp({variant:o,size:s}),c),...l,children:[e&&(0,J.jsx)(`span`,{className:q(`flex shrink-0 items-center`,f.icon,d.iconClasses),children:e}),(0,J.jsxs)(`div`,{className:q(`flex min-w-0 flex-1 items-center justify-between`,f.row,!t&&`pt-px`),children:[p?(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-baseline gap-x-1.5`,children:[t&&(0,J.jsxs)(`span`,{className:`leading-snug font-medium`,children:[t,!n&&m&&(0,J.jsx)(`span`,{className:`ml-1.5 [&_[data-kumo-component=Link]]:inline`,children:r})]}),n&&(0,J.jsxs)(`span`,{className:q(f.description,`leading-snug`),children:[n,m&&(0,J.jsx)(`span`,{className:`ml-1.5 [&_[data-kumo-component=Link]]:inline`,children:r})]})]}):(0,J.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[t&&(0,J.jsx)(`p`,{className:`leading-snug font-medium`,children:t}),n&&(0,J.jsx)(`div`,{className:q(f.description,`leading-snug`),children:(0,v.isValidElement)(n)?n:(0,J.jsx)(`p`,{children:n})})]}),!m&&r!=null&&(0,J.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r})]})]})});let h=i??a,g=(0,v.isValidElement)(h)?h:(0,J.jsx)(`p`,{children:h});return(0,J.jsx)(Vp.Provider,{value:{variant:o,size:f.action},children:(0,J.jsxs)(`div`,{ref:u,className:q(Yp({variant:o,size:s}),c),...l,children:[e&&(0,J.jsx)(`span`,{className:q(`shrink-0`,d.iconClasses),children:e}),g]})})});Xp.displayName=`Banner`;var Zp=Object.assign(Xp,{Action:Wp}),Qp=(0,v.createContext)({label:{optional:`(optional)`,tooltip:`More information`},layerDialog:{close:`Close`,cancel:`Cancel`}});function $p(){return(0,v.useContext)(Qp)}function em(e={}){return q(`m-0 text-base font-medium text-kumo-default`)}function tm(){return q(`inline-flex items-center gap-1`)}function nm({children:e,showOptional:t=!1,optionalLabel:n,tooltip:r,tooltipAriaLabel:i,className:a,htmlFor:o,asContent:s=!1}){let{label:c}=$p(),l=n===void 0?c.optional:n,u=i??c.tooltip,d=(0,J.jsxs)(J.Fragment,{children:[e,t&&(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle`,children:l}),r&&(0,J.jsx)(Zd,{content:r,render:(0,J.jsx)(zp,{variant:`ghost`,size:`xs`,shape:`square`,"aria-label":u,children:(0,J.jsx)(dp,{className:`size-4`})})})]});return s?(0,J.jsx)(`span`,{className:q(tm(),a),children:d}):(0,J.jsx)(`label`,{htmlFor:o,className:q(em(),tm(),a),children:d})}nm.displayName=`Label`;var rm=v.createContext(void 0);rm.displayName=`FieldsetRootContext`;function im(e=!1){let t=v.useContext(rm);if(!t&&!e)throw Error(`Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.`);return t}function am(e,t){let n=Qu(e);return Y(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}var om=v.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,...o}=e,[s,c]=v.useState(void 0),l=im(!0)?.disabled||a,u=mi(`fieldset`,e,{ref:t,state:{disabled:l},props:[{"aria-labelledby":s,disabled:l},o]}),d=v.useMemo(()=>({legendId:s,setLegendId:c,disabled:l}),[s,c,l]);return(0,J.jsx)(rm.Provider,{value:d,children:u})});om.displayName=`FieldsetRoot`;var sm=v.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{disabled:s,setLegendId:c}=im(),l=am(a,c);return mi(`div`,e,{state:{disabled:s},ref:t,props:[{id:l},o]})});sm.displayName=`FieldsetLegend`;var cm=`data-valid`,lm=`data-invalid`,um={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},dm={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},fm={valid(e){return e===null?null:e?{[cm]:``}:{[lm]:``}}},pm={invalid:void 0,name:void 0,validityData:{state:um,errors:[],error:``,value:``,initialValue:null},setValidityData:Jr,disabled:void 0,setTouched:Jr,setDirty:Jr,setFilled:Jr,setFocused:Jr,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:dm,registerFieldControl:Jr,validation:{getValidationProps:(e,t=Xr)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Jr,getInputControl:()=>null,commit:async()=>{},change:Jr}},mm=v.createContext(pm);mm.displayName=`FieldRootContext`;function hm(e=!0){let t=v.useContext(mm);if(t.setValidityData===Jr&&!e)throw Error(`Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.`);return t}var gm=v.createContext({controlId:void 0,registerControlId:Jr,resetControlId:Jr,labelId:void 0,setLabelId:Jr,messageIds:[],setMessageIds:Jr,getDescriptionProps:e=>e});gm.displayName=`LabelableContext`;function _m(){return v.useContext(gm)}var vm=v.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Jr,validationMode:`onSubmit`,submitCountRef:{current:0}});vm.displayName=`FormContext`;function ym(){return v.useContext(vm)}function bm(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=_m(),c=am(t,Z(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a){a(e,l);return}if(!l)return;let t=xm(e.currentTarget,l);Gi(t)&&Sm(t)}function d(e){os(ss(e.nativeEvent),`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function xm(e,t){let n=e.getRootNode();for(;Ki(n);){let e=n.getElementById(t);if(e)return e;n=n.host.getRootNode()}return Hs(e).getElementById(t)}function Sm(e){e.focus({focusVisible:!0})}function Cm(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var wm=Object.keys(um);function Tm(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}function Em(e,t){let n=null;for(let r of e.keys())if(Tm(r,t)){if(!r.validity.valid)return r;n??=r}return n}function Dm(e){return{...um,valid:!e,customError:e}}function Om(e){return e&&e.validationMessage?[e.validationMessage]:[]}function km(e){let{elementRef:t,formRef:n}=ym(),{setValidityData:r,validate:i,validityData:a,validationDebounceTime:o,invalid:s,markedDirtyRef:c,state:l,shouldValidateOnChange:u,validationMode:d,registeredFieldIdRef:f}=e,{controlId:p,getDescriptionProps:m}=_m(),h=Vl(),g=v.useRef(null),_=Pr(()=>new Map).current,y=v.useRef(0),b=v.useRef(null),x=v.useCallback((e,t)=>(_.set(e,t),()=>{_.delete(e)}),[_]),S=Z(()=>{let e=Em(_,t.current);return e&&_.get(e)?.controlRef.current||null}),C=Z(async(e,o=!1)=>{y.current+=1;let m=y.current;function v(e,t=s){let r=f.current??p;if(r==null)return;let i=n.current.fields.get(r);if(!i)return;let a=Cm(e,t);n.current.fields.set(r,{...i,validityData:a})}function x(t,n){let r=t.valid===!1?n:[];return{value:e,state:t,error:r[0]??``,errors:r,initialValue:a.initialValue}}function S(e,t){let n=e.validity.customError?e.validationMessage:``,r=t.replace(/\r\n?/g,`
20
+ `);e.setCustomValidity(r),b.current=[e,r,n]}function C(){let e=b.current;b.current=null,e&&(!e[0].willValidate||e[0].validationMessage===e[1])&&e[0].setCustomValidity(e[2])}function w(e,t,n){let i=x(e,t);v(i,n),r(i)}function T(e){let t=wm.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of wm)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!c.current&&(t.valid=!0,t.valueMissing=!1),t}function E(){return _.size>0?Em(_,t.current):g.current}let D=E();function O(){return D=E(),D?.willValidate?T(D):Dm(!1)}if(o){if(l.valid!==!1||!D)return;if(!D.validity.valueMissing){C();let e=E(),t=e?.validity.customError?Om(e):[];w(Dm(t.length>0),t,!1);return}for(let e of wm)if(e!==`valid`&&e!==`valueMissing`&&e!==`customError`&&D.validity[e])return}h.clear(),C();let k=O(),A=Om(D),j=u();if(A.length===0||j){let t=Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),r=i(e,t),o;if(typeof r==`object`&&r&&`then`in r){if(k.valid===!1?w(k,A):d!==`onSubmit`&&a.state.customError||(k.valid=null,w(k,A)),o=await r,m!==y.current)return;k=O()}else o=r;A=o?[].concat(o).filter(Boolean):[],A.length>0?(k.valid=!1,k.customError=!0,D?.willValidate&&S(D,A.join(`
21
+ `))):A=Om(D)}w(k,A)}),w=Z((e,t=!1)=>{if(h.clear(),y.current+=1,t)return;let n=u();n&&e!==``&&o?h.start(o,()=>{C(e)}):C(e,!n)}),T=v.useCallback((e,t={})=>ti(m(t),l.valid===!1&&!l.disabled&&!e?{"aria-invalid":!0}:Xr),[m,l.disabled,l.valid]);return v.useMemo(()=>({getValidationProps:T,inputRef:g,registeredInputs:_,registerInput:x,getInputControl:S,commit:C,change:w}),[T,_,x,S,C,w])}var Am=Kr(`error`,`Base UI`),jm=v.createContext({disabled:!1});jm.displayName=`FieldItemContext`;function Mm(){return v.useContext(jm)}var Nm=function(e){let t=Qu(),[n,r]=v.useState(t),[i,a]=v.useState(),[o,s]=v.useState([]),c=n===void 0?t:n,l=Pr(()=>new Map),{messageIds:u}=_m(),d=Z((e,t)=>{let n=l.current;t===void 0?n.delete(e):n.set(e,t),r(e=>{if(n.size===0)return e;let t;for(let r of n.values()){if(r===e)return e;t===void 0&&(t=r)}return t})}),f=Z(()=>{l.current.size===0&&r(t)}),p=v.useCallback(e=>{let t=e[`aria-describedby`]?e[`aria-describedby`].split(` `):[];return t.push(...u,...o),{...e,"aria-describedby":Array.from(new Set(t)).join(` `)||void 0}},[u,o]),m=v.useMemo(()=>({controlId:c,registerControlId:d,resetControlId:f,labelId:i,setLabelId:a,messageIds:o,setMessageIds:s,getDescriptionProps:p}),[c,d,f,i,a,o,s,p]);return(0,J.jsx)(gm.Provider,{value:m,children:e.children})};Nm.displayName=`LabelableProvider`;function Pm(e){let{change:t,commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldName:o,registeredFieldIdRef:s,setValidityData:c,validityData:l}=e,{formRef:u}=ym(),d=v.useRef(null),f=v.useRef(null),p=v.useRef(!1),m=Z(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value});function h(e){return e.value===void 0?m():e.value}let g=Z(()=>{let e=f.current;i.current=!0,n(e?h(e):l.value)});function _(){let e=f.current;e&&e.id&&u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:Cm(l,r),validate:g})}function y(e=f.current?.id){e&&u.current.fields.delete(e)}function b(e){if(p.current)return;p.current=!0;let t=h(e);c(e=>e.initialValue===t?e:{...e,initialValue:t})}return Y(()=>{let e=f.current;e&&e.id&&(o(a?void 0:e.name),u.current.fields.set(e.id,{getValue:m,name:a??e.name,controlRef:e.controlRef,validityData:Cm(l,r),validate:g}))},[u,m,r,a,o,g,l]),Y(()=>{let e=u.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[u]),[g,Z((e,n)=>{if(!n){d.current===e&&(d.current=null,t(void 0,!0),y(),f.current=null,o(void 0),s.current=void 0);return}let r=f.current?.id,i=d.current;i&&i!==e&&t(void 0,!0),d.current=e,f.current=n,a||o(n.name),s.current=n.id,r&&r!==n.id&&y(r),b(n),_()})]}var Fm=v.forwardRef(function(e,t){let{errors:n,validationMode:r,submitCountRef:i}=ym(),{render:a,className:o,validate:s,validationDebounceTime:c=0,validationMode:l=r,name:u,disabled:d=!1,invalid:f,dirty:p,touched:m,actionsRef:h,style:g,..._}=e,y=im(!0)?.disabled,b=Z(s||(()=>null)),x=y||d,[S,C]=v.useState(!1),[w,T]=v.useState(!1),[E,D]=v.useState(!1),[O,k]=v.useState(!1),A=v.useRef(void 0),j=p??w,M=m??S,N=v.useRef(j),P=v.useRef(void 0),[F,I]=v.useState(),L=u??F;Y(()=>{p!==void 0&&(N.current=p)},[p]);let R=Z(e=>{p===void 0&&(e&&(N.current=!0),T(e))}),z=Z(e=>{m===void 0&&C(e)}),B=Z(()=>l===`onChange`||l===`onSubmit`&&i.current>0),ee=L&&Object.hasOwn(n,L)?n[L]:null,V=!!(Array.isArray(ee)?ee.length:ee),H=f===!0||V,[te,ne]=v.useState({state:um,error:``,errors:[],value:null,initialValue:null}),U=!H&&(x?null:te.state.valid),re=v.useMemo(()=>({disabled:x,touched:M,dirty:j,valid:U,filled:E,focused:O}),[x,M,j,U,E,O]),ie=km({setValidityData:ne,validate:b,validityData:te,validationDebounceTime:c,invalid:H,markedDirtyRef:N,state:re,shouldValidateOnChange:B,validationMode:l,registeredFieldIdRef:P}),[ae,oe]=Pm({change:ie.change,commit:ie.commit,invalid:H,markedDirtyRef:N,name:u,setRegisteredFieldName:I,registeredFieldIdRef:P,setValidityData:ne,validityData:te});v.useImperativeHandle(h,()=>({validate:ae}),[ae]);let W=v.useMemo(()=>({invalid:H,name:L,validityData:te,setValidityData:ne,disabled:x,setTouched:z,setDirty:R,setFilled:D,setFocused:k,focusOwnerRef:A,validationMode:l,shouldValidateOnChange:B,state:re,registerFieldControl:oe,validation:ie}),[H,L,te,x,z,R,D,k,l,B,re,oe,ie]),G=mi(`div`,e,{ref:t,state:re,props:_,stateAttributesMapping:fm});return(0,J.jsx)(mm.Provider,{value:W,children:G})});Fm.displayName=`FieldRootInner`;var Im=v.forwardRef(function(e,t){return(0,J.jsx)(Nm,{children:(0,J.jsx)(Fm,{...e,ref:t})})});Im.displayName=`FieldRoot`;var Lm=v.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,nativeLabel:o=!0,...s}=e,c=hm(!1),l=Mm(),{labelId:u}=_m(),d={...c.state,disabled:c.disabled||l.disabled},f=v.useRef(null),p=bm({id:u??a,native:o});return v.useEffect(()=>{if(!f.current)return;let e=f.current.tagName===`LABEL`;o?e||Am(`<Field.Label> expected a <label> element because the \`nativeLabel\` prop is true. Rendering a non-<label> disables native label association, so \`htmlFor\` will not work. Use a real <label> in the \`render\` prop, or set \`nativeLabel\` to \`false\`.${Li.captureOwnerStack?.()||``}`):e&&Am(`<Field.Label> expected a non-<label> element because the \`nativeLabel\` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the \`render\` prop, or set \`nativeLabel\` to \`true\`.${Li.captureOwnerStack?.()||``}`)},[o]),mi(`label`,e,{ref:[t,f],state:d,props:[p,s],stateAttributesMapping:fm})});Lm.displayName=`FieldLabel`;function Rm(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=_m(),o=Qu(),s=Pr(()=>Symbol()),c=v.useRef(!1),l=v.useRef(!1),u=Z(()=>{c.current&&i!==Jr&&(c.current=!1,i(s.current,void 0))});return Y(()=>{if(!n||i===Jr){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),Y(()=>u,[u]),(n?r:void 0)??t??o}function zm(e,t,n,r,i=!0,a){let{registerFieldControl:o}=hm(),s=Pr(()=>Symbol());Y(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),Y(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}function Bm(e,t){let n=v.useRef(e),r=Z(t);Y(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function Vm({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=v.useRef(e!==void 0),[a,o]=v.useState(()=>t),s=i&&e!==void 0?e:a;{v.useEffect(()=>{i!==(e!==void 0)&&Am([`A component is changing the ${i?``:`un`}controlled ${r} state of ${n} to be ${i?`un`:``}controlled.`,`Elements should not switch from uncontrolled to controlled (or vice versa).`,`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",`More info: https://fb.me/react-controlled-components`].join(`
22
+ `))},[r,n,e]);let{current:a}=v.useRef(t);v.useEffect(()=>{!i&&Hm(a)!==Hm(t)&&Am([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
23
+ `))},[t])}return[s,v.useCallback(e=>{i||o(e)},[])]}function Hm(e){let t=0,n=new WeakMap;try{return JSON.stringify(e,function(e,r){if(!(e===`_owner`&&this!=null&&typeof this==`object`&&`$$typeof`in this)){if(typeof r==`bigint`)return`__bigint__:${r}`;if(typeof r==`object`&&r){let e=n.get(r);if(e!==void 0)return`__object__:${e}`;n.set(r,t),t+=1}return r}})??`__top__:${typeof e}`}catch{return`__unserializable__`}}function Um(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var Wm=v.createContext(void 0);Wm.displayName=`CheckboxGroupContext`;function Gm(){return v.useContext(Wm)}function Km(e){let{allValues:t=Yr,value:n,onValueChange:r}=e,i=v.useRef(n),a=v.useRef(new Map),[o,s]=v.useState(`mixed`),[c,l]=v.useState(()=>({registry:new Map})),u=n.length===t.length,d=n.length!==t.length&&n.length>0,f=Z(r),p=Z((e,t)=>{let n=c.registry;return n.set(e,(n.get(e)??Yr).concat(t)),l({registry:n}),()=>{let r=(n.get(e)??Yr).filter(e=>e!==t);r.length===0?n.delete(e):n.set(e,r),l({registry:n})}}),m=v.useCallback(()=>({indeterminate:d,checked:u,"aria-controls":t.flatMap(e=>c.registry.get(e)??Yr).join(` `)||void 0,onCheckedChange(e,r){let c=i.current,l=t.filter(e=>a.current.get(e)&&c.includes(e)),u=t.filter(e=>!a.current.get(e)||c.includes(e));if(c.length===u.length||c.length===0){n.length===u.length?f(l,r):f(u,r);return}let d=`mixed`,p=c;o===`mixed`?(d=`on`,p=u):o===`on`&&(d=`off`,p=l),f(p,r),r.isCanceled||s(d)}}),[t,u,c,d,f,o,n.length]),h=v.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let a=n.slice();t?a.push(e):a.splice(a.indexOf(e),1),f(a,r),r.isCanceled||(i.current=a,s(`mixed`))}}),[f,n]);return v.useMemo(()=>({getParentProps:m,getChildProps:h,registerChildId:p,disabledStatesRef:a}),[m,h,p])}var qm=v.forwardRef(function(e,t){let{allValues:n,className:r,defaultValue:i,disabled:a=!1,id:o,onValueChange:s,render:c,value:l,style:u,...d}=e,{disabled:f,name:p,state:m,validation:h,setFilled:g,setDirty:_,validityData:y}=hm(),{labelId:b,registerControlId:x,getDescriptionProps:S}=_m(),{clearErrors:C,elementRef:w}=ym(),T=f||a,[E,D]=Vm({controlled:l,default:i??Yr,name:`CheckboxGroup`,state:`value`}),O=Z((e,t)=>{s?.(e,t),!t.isCanceled&&D(e)}),k=Km({allValues:n,value:E,onValueChange:O});Rm({id:null});let A=Qu(o),j=h.getInputControl;zm(v.useMemo(()=>({get current(){return j()}}),[j]),A,E,Z(()=>{let e=w.current;if(!e)return E;let t=new Set;for(let[n,r]of h.registeredInputs)r.value!==void 0&&n.checked&&Tm(n,e)&&t.add(r.value);return E.filter(e=>t.has(e))}),!!p&&!T,p),Y(()=>{g(E.length>0)},[E,g]),Bm(E,()=>{p&&C(p);let e=Array.isArray(y.initialValue)?y.initialValue:Yr;_(!Um(E,e)),h.change(E)});let M={...m,disabled:T},N=v.useMemo(()=>({allValues:n,value:E,setValue:O,parent:k,disabled:T,validation:h,registerControlId:x}),[n,E,O,k,T,h,x]),P=mi(`div`,e,{state:M,ref:t,props:[{id:o,role:`group`,"aria-labelledby":b},d,S],stateAttributesMapping:fm});return(0,J.jsx)(Wm.Provider,{value:N,children:P})});qm.displayName=`CheckboxGroup`;function Jm(e,t,n,r=!0,i,a){let[o,s]=v.useState(),c=Qu(i?`${i}-label`:void 0),l=!!a?.trim(),u=e??(l?void 0:t)??o;return Y(()=>{let i=e||t||l||!r?void 0:Ym(n.current,c);o!==i&&s(i)}),u}function Ym(e,t){let n=Xm(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Xm(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Zm(e,t,n){let{setFocused:r,focusOwnerRef:i}=hm(),a=Z(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return Y(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}var Qm=v.createContext(void 0);Qm.displayName=`CompositeRootContext`;function $m(e=!1){let t=v.useContext(Qm);if(t===void 0&&!e)throw Error(`Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.`);return t}function eh(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(Vi(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function th(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:v.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function nh(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=v.useRef(null),s=$m(!0),c=a??s!==void 0,{props:l}=th({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i});v.useEffect(()=>{if(!o.current)return;let e=rh(o.current);i?e||Am(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${Li.captureOwnerStack?.()||``}`):e&&Am(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${Li.captureOwnerStack?.()||``}`)},[i]);let u=v.useCallback(()=>{let e=o.current;rh(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Y(u,[u]),{getButtonProps:v.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return ti({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(di(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=rh(r),s=!i&&ih(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),eh(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),eh(r,e)))},onKeyUp(e){t||(di(e),a?.(e),e.target===e.currentTarget&&i&&c&&rh(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),eh(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Z(e=>{o.current=e,u()})}}function rh(e){return Gi(e)&&e.tagName===`BUTTON`}function ih(e){return Gi(e)&&e.tagName===`A`&&!!e.href}function ah(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var oh=`data-checked`,sh=`data-unchecked`;function ch(e){return{checked(t){return e.indeterminate?{}:t?{[oh]:``}:{[sh]:``}},...fm}}var lh=v.createContext(void 0);lh.displayName=`CheckboxRootContext`;function uh(){let e=v.useContext(lh);if(e===void 0)throw Error(`Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.`);return e}var dh=`data-parent`,fh=v.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i=!1,"aria-labelledby":a,disabled:o=!1,form:s,id:c,indeterminate:l=!1,inputRef:u,name:d,onCheckedChange:f,parent:p=!1,readOnly:m=!1,render:h,required:g=!1,uncheckedValue:_,value:y,nativeButton:b=!1,style:x,...S}=e,{clearErrors:C}=ym(),{disabled:w,name:T,setDirty:E,setFilled:D,setTouched:O,state:k,validationMode:A,validityData:j,validation:M}=hm(),N=Mm(),{labelId:P,registerControlId:F,getDescriptionProps:I}=_m(),L=Gm(),R=L?.allValues===void 0?void 0:L.parent,z=R!==void 0,B=w||N.disabled||L?.disabled||o,ee=T??d,V=y??ee,H=Qu(),te=L?.registerControlId!==F,ne=Rm({id:c||void 0,enabled:te}),U=b?ne:H,re={};z&&(p?re=R.getParentProps():V!==void 0&&(re=R.getChildProps(V)));let{checked:ie=n,indeterminate:ae=l,onCheckedChange:oe,...W}=re,G=L?.value,se=v.useRef(null),ce=Zm(B,se),{getButtonProps:le,buttonRef:ue}=nh({disabled:B,native:b}),de=L?.validation??M,[K,fe]=Vm({controlled:V!==void 0&&G!==void 0&&!p?G.includes(V):ie,default:i,name:`Checkbox`,state:`checked`}),pe=z?!!ie:K,me=z&&ae||l;zm(se,H,K,void 0,!L&&!B,d);let he=R?.registerChildId,ge=v.useRef(null),_e=de.registerInput,ve=L?V:void 0,ye=v.useCallback(e=>_e(e,{controlRef:se,value:ve}),[_e,ve]),be=Fr(u,ge,p?void 0:ye),xe=Jm(a,P,ge,!b,ne,S[`aria-label`]);Y(()=>{ge.current&&(ge.current.indeterminate=me),L||D(K)},[K,me,L,D]),Bm(K,()=>{L||(C(ee),E(K!==j.initialValue),de.change(K))});let Se=ti({checked:K,disabled:B,form:s,name:p?void 0:ee,id:b?void 0:ne,required:g,ref:be,style:ee?Wc:Uc,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(m){e.preventDefault();return}let t=e.currentTarget.checked,n=bc(xc,e.nativeEvent);if(f?.(t,n),!n.isCanceled&&(oe?.(t,n),!n.isCanceled&&(fe(t),V!==void 0&&L!==void 0&&!p&&!z))){let e=t?[...L.value,V]:L.value.filter(e=>e!==V);L.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){se.current?.focus()}},y===void 0?Xr:{value:(L?K&&y:y)||``},I,e=>de.getValidationProps(B,e));v.useEffect(()=>{if(!R||V===void 0)return;let e=R.disabledStatesRef.current;return e.set(V,B),()=>{e.delete(V)}},[R,B,V]);let Ce=v.useMemo(()=>({...k,checked:pe,disabled:B,readOnly:m,required:g,indeterminate:me}),[k,pe,B,m,g,me]),we=ch(Ce),Te=mi(`span`,e,{state:Ce,ref:[ue,se,t],props:[{id:U,role:`checkbox`,"aria-checked":me?`mixed`:pe,"aria-readonly":m||void 0,"aria-required":g||void 0,"aria-labelledby":xe,[dh]:p?``:void 0,onFocus(){ce(!0)},onBlur(){let e=ge.current;e&&(O(!0),ce(!1),A===`onBlur`&&de.commit(L?G:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=ge.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),Vi(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||ah(t)?.click()})},onClick(e){if(m||B)return;e.preventDefault();let t=ge.current;t&&eh(t,e)}},S,W,le,I,e=>de.getValidationProps(B,e)],stateAttributesMapping:we}),Ee=Te.props.id;return Y(()=>{if(he&&!p&&V!==void 0&&Ee!==void 0)return he(V,Ee)},[he,p,V,Ee]),(0,J.jsxs)(lh.Provider,{value:Ce,children:[Te,!K&&!L&&ee&&!p&&_!==void 0&&(0,J.jsx)(`input`,{type:`hidden`,form:s,name:ee,value:_,disabled:B}),(0,J.jsx)(`input`,{...Se,suppressHydrationWarning:!0})]})});fh.displayName=`CheckboxRoot`;var ph=v.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=uh(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:d}=tu(c),f=v.useRef(null),p={...s,transitionStatus:u};eu({batch:!0,enabled:!c,open:c,ref:f,onComplete(){c||d(!1)}});let m={...ch(s),...vs},h=a||l,g=mi(`span`,e,{ref:[t,f],state:p,stateAttributesMapping:m,props:o});return h?g:null});ph.displayName=`CheckboxIndicator`;var mh=(0,v.createContext)({controlFirst:void 0,appearance:`default`,orientation:null}),hh=(0,v.forwardRef)(({className:e,checked:t,indeterminate:n,disabled:r,variant:i=`default`,label:a,labelTooltip:o,controlFirst:s=!0,onCheckedChange:c,required:l,name:u,...d},f)=>{{let e=!!a,t=!!d[`aria-label`],n=!!d[`aria-labelledby`];e||t||n||console.warn(`[Kumo Checkbox]: Checkbox must have an accessible name. Provide either:
24
24
  - label prop: <Checkbox label='Accept terms' />
25
25
  - aria-label: <Checkbox aria-label='Select item' />
26
26
  - aria-labelledby for custom label association
27
- Note: When used inside Checkbox.Group, label is optional`)}let p=(0,J.jsx)(oh,{ref:f,"data-kumo-component":`Checkbox`,name:u,checked:t,indeterminate:n,disabled:r,onCheckedChange:c,className:q(`relative flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border-0 bg-kumo-base ring after:absolute after:-inset-x-3 after:-inset-y-2 focus:outline-none`,a&&`mt-0.5`,i===`error`?`ring-kumo-danger`:`ring-kumo-hairline`,!r&&`hover:ring-kumo-hairline focus:ring-2 focus:ring-kumo-focus focus-visible:ring-2 focus-visible:ring-kumo-brand`,`data-[checked]:bg-kumo-contrast data-[checked]:ring-kumo-contrast data-[indeterminate]:bg-kumo-contrast data-[indeterminate]:ring-kumo-contrast`,r&&`cursor-not-allowed opacity-50`,e),...d,children:(0,J.jsx)(sh,{keepMounted:!0,className:`flex items-center justify-center text-kumo-inverse data-[unchecked]:invisible`,render:(e,t)=>(0,J.jsx)(`span`,{...e,children:t.indeterminate?(0,J.jsx)(op,{weight:`bold`,size:12}):(0,J.jsx)(Gf,{weight:`bold`,size:12})})})});return a?(0,J.jsx)(Am,{className:`inline-flex`,children:(0,J.jsxs)(jm,{className:q(`!m-0 inline-flex !min-h-0 items-start gap-2 !text-base`,s?`flex-row`:`flex-row-reverse justify-end`,r?`cursor-not-allowed`:`cursor-pointer`),children:[p,(0,J.jsx)(Xp,{showOptional:l===!1,tooltip:o,asContent:!0,children:a})]})}):p});lh.displayName=`Checkbox`;var uh=(0,v.forwardRef)(({className:e,checked:t,indeterminate:n,disabled:r,variant:i=`default`,appearance:a,label:o,description:s,value:c,onCheckedChange:l,name:u},d)=>{let{controlFirst:f,appearance:p,orientation:m}=(0,v.useContext)(ch),h=(a??p)===`card`,g=f??!h,_=h&&p===`card`&&m!==null,y=(0,J.jsx)(sh,{keepMounted:!0,className:`flex items-center justify-center text-kumo-inverse data-[unchecked]:invisible`,render:(e,t)=>(0,J.jsx)(`span`,{...e,children:t.indeterminate?(0,J.jsx)(op,{weight:`bold`,size:12}):(0,J.jsx)(Gf,{weight:`bold`,size:12})})});return h?(0,J.jsxs)(`label`,{"data-kumo-component":`Checkbox`,"data-kumo-part":`item-label`,className:q(`group relative m-0 flex items-start gap-3 bg-kumo-base p-3 has-[[data-checked]]:bg-kumo-tint`,_?q(`border-b border-kumo-line bg-clip-padding last:border-b-0`,m===`horizontal`&&`odd:border-r [&:last-child:nth-child(odd)]:border-r-0 [&:nth-last-child(2):nth-child(odd)]:border-b-0`):`rounded-lg border border-kumo-hairline has-[[data-checked]]:border-kumo-interact`,g&&`flex-row-reverse`,i===`error`&&q(`has-[[data-checked]]:bg-kumo-base`,!_&&`border-kumo-danger has-[[data-checked]]:border-kumo-danger`),r?`cursor-not-allowed opacity-50`:q(`cursor-pointer has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50`,i!==`error`&&`hover:not-has-[[data-disabled]]:not-has-[[data-checked]]:bg-kumo-elevated`),e),children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,J.jsx)(`span`,{className:`text-base font-medium text-kumo-default`,children:o}),s&&(0,J.jsx)(`span`,{className:`text-sm text-kumo-subtle`,children:s})]}),(0,J.jsx)(oh,{ref:d,"data-kumo-component":`Checkbox`,"data-kumo-part":`item`,value:c,name:u,checked:t,indeterminate:n,disabled:r,onCheckedChange:l,className:q(`relative mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border-0 bg-kumo-base ring focus:ring-kumo-focus focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand`,i===`error`?`ring-kumo-danger`:`ring-kumo-line`,!r&&i!==`error`&&`group-hover:ring-kumo-hairline`,`data-[checked]:bg-kumo-contrast data-[checked]:ring-kumo-contrast data-[indeterminate]:bg-kumo-contrast data-[indeterminate]:ring-kumo-contrast`),children:y})]}):(0,J.jsxs)(`label`,{"data-kumo-component":`Checkbox`,"data-kumo-part":`item-label`,className:q(`relative m-0 inline-flex items-start gap-2`,!g&&`flex-row-reverse justify-end`,r?`cursor-not-allowed opacity-50`:`cursor-pointer`,e),children:[(0,J.jsx)(oh,{ref:d,"data-kumo-component":`Checkbox`,"data-kumo-part":`item`,value:c,name:u,checked:t,indeterminate:n,disabled:r,onCheckedChange:l,className:q(`peer relative mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border-0 bg-kumo-base ring after:absolute after:-inset-x-3 after:-inset-y-2`,i===`error`?`ring-kumo-danger`:`ring-kumo-hairline`,!r&&`group-hover:ring-kumo-hairline hover:ring-kumo-hairline focus:ring-2 focus:ring-kumo-focus focus-visible:ring-2 focus-visible:ring-kumo-brand`,`data-[checked]:bg-kumo-contrast data-[checked]:ring-kumo-contrast data-[indeterminate]:bg-kumo-contrast data-[indeterminate]:ring-kumo-contrast`),children:y}),(0,J.jsx)(`span`,{className:`text-base text-kumo-default`,children:o})]})});uh.displayName=`Checkbox.Item`;function dh({children:e,className:t}){return(0,J.jsx)(tm,{className:q(`text-base font-medium text-kumo-default`,t),children:e})}dh.displayName=`Checkbox.Legend`;function fh({legend:e,children:t,error:n,description:r,defaultValue:i,value:a,onValueChange:o,allValues:s,disabled:c,orientation:l=`vertical`,appearance:u=`default`,controlFirst:d,className:f}){return(0,J.jsx)(ch.Provider,{value:{controlFirst:d,appearance:u,orientation:l},children:(0,J.jsx)(Vm,{defaultValue:i,value:a,onValueChange:o,allValues:s,disabled:c,children:(0,J.jsxs)(em,{className:q(`flex flex-col p-0`,u===`card`?`gap-2`:`gap-4`,f),children:[e&&(0,J.jsx)(tm,{className:`text-base font-medium text-kumo-default`,children:e}),(0,J.jsx)(`div`,{className:q(l===`vertical`?u===`card`?`flex flex-col overflow-hidden rounded-lg ring ring-kumo-line`:`flex flex-col gap-2`:u===`card`?`grid grid-cols-2 overflow-hidden rounded-lg bg-kumo-base ring ring-kumo-line`:`flex flex-row flex-wrap gap-2`),children:t}),n&&(0,J.jsx)(`p`,{className:`text-sm text-kumo-danger`,children:n}),r&&(0,J.jsx)(`p`,{className:`text-sm text-kumo-subtle`,children:r})]})})})}var ph=Object.assign(lh,{Item:uh,Group:fh,Legend:dh});ph.displayName=`Checkbox`;function mh(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Yc(),a=$c()!=null;{let e=r.reference;e&&!Wi(e)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`",`instead.`)}let o=Pr(()=>new Ll({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ol,floatingId:i,syncOnly:!1,nested:a})).current;return Y(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Wi(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function hh(e){return Hr(19)?e:e?`true`:void 0}function gh(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function _h(e,t){let n=(t??Vi(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}var vh={...om,...vs},yh=v.forwardRef(function(e,t){let{render:n,id:r,className:i,match:a,style:o,...s}=e,c=Qu(r),{validityData:l,state:u,name:d}=lm(!1),{setMessageIds:f}=dm(),{errors:p}=pm(),m=d&&Object.hasOwn(p,d)?p[d]:null,h=!!(Array.isArray(m)?m.length:m),g=typeof a==`string`,_=!1;_=a===!0?!0:u.disabled?!1:g?!!l.state[a]:h||l.state.valid===!1;let{mounted:y,transitionStatus:b,setMounted:x}=tu(_);Y(()=>{if(_&&c)return f(e=>e.concat(c)),()=>{f(e=>e.filter(e=>e!==c))}},[_,c,f]);let S=v.useRef(null),[C,w]=v.useState(null),[T,E]=v.useState(null),D=l.error;!g&&h?D=m:l.errors.length>1&&(D=l.errors);let O=D;Array.isArray(D)&&(O=D.length>1?(0,J.jsx)(`ul`,{children:D.map(e=>(0,J.jsx)(`li`,{children:e},e))}):D[0]);let k=Array.isArray(D)?JSON.stringify(D):D;_&&k!==T&&(E(k),w(O)),eu({open:_,ref:S,onComplete(){_||x(!1)}});let A={...u,transitionStatus:b},j=mi(`div`,e,{ref:[t,S],state:A,props:[{id:c,children:_?O:C},s],stateAttributesMapping:vh,enabled:y});return y?j:null});yh.displayName=`FieldError`;var bh=v.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=Qu(r),c=lm(!1),l=Em(),{setMessageIds:u}=dm(),d={...c.state,disabled:c.disabled||l.disabled};return Y(()=>{if(s)return u(e=>e.concat(s)),()=>{u(e=>e.filter(e=>e!==s))}},[s,u]),mi(`p`,e,{ref:t,state:d,props:[{id:s},o],stateAttributesMapping:om})});bh.displayName=`FieldDescription`;function xh(e){if(e)return typeof e==`string`?{message:e,match:!0}:e}function Sh({controlFirst:e=!1}={}){return q(`grid gap-2`,`has-[input[type=checkbox]]:grid-cols-[auto_1fr] has-[input[type=checkbox]]:items-center`,`has-[[role=switch]]:grid-cols-[auto_1fr] has-[[role=switch]]:items-center`,e&&[`has-[input[type=checkbox]]:flex has-[input[type=checkbox]]:flex-row-reverse has-[input[type=checkbox]]:flex-wrap has-[input[type=checkbox]]:items-center`,`has-[[role=switch]]:flex has-[[role=switch]]:flex-row-reverse has-[[role=switch]]:flex-wrap has-[[role=switch]]:items-center`,`[&>label]:flex-1`])}function Ch({children:e,label:t,required:n,labelTooltip:r,error:i,description:a,controlFirst:o=!1,hideLabel:s=!1}){let c=n===!1;return(0,J.jsxs)(Am,{className:Sh({controlFirst:o}),children:[!s&&(0,J.jsx)(jm,{className:`m-0 text-base font-medium text-kumo-default select-none`,children:(0,J.jsx)(Xp,{showOptional:c,tooltip:r,asContent:!0,children:t})}),e,i?(0,J.jsx)(yh,{className:q(`text-sm leading-snug text-kumo-danger`,`col-span-full`),match:i.match,children:i.message}):a&&(0,J.jsx)(bh,{className:q(`text-sm leading-snug text-kumo-subtle`,`col-span-full`),children:a})]})}var wh=v.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:y,setFilled:b,validationMode:x,validation:S}=lm(),{clearErrors:C,elementRef:w,submitCountRef:T}=pm(),E=h||s,D=m??a,O={...p,disabled:E},{labelId:k}=dm(),A=Mm({id:i}),j=o!==void 0,M=o==null?void 0:String(o),N=Z(()=>S.inputRef.current?.value);Nm(S.inputRef,A,M,N,!E,a),Y(()=>{let e=M??S.inputRef.current?.value;e!==void 0&&b(e!==``)},[M,l,S.inputRef,b]),Pm(M,()=>{M!==void 0&&(C(D),_(M!==(y.initialValue??``)),S.change(M))});let P=v.useRef(null),F=Gm(E,P),I=Vl();return mi(`input`,e,{ref:[t,P],state:O,props:[{id:A,disabled:E,name:D,ref:S.inputRef,"aria-labelledby":k,autoFocus:u,...j?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=bc(xc,e.nativeEvent);c?.(t,n),!j&&(_(t!==(y.initialValue??``)),b(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(C(D),S.change(t)))},onFocus(){F(!0)},onBlur(e){if(g(!0),F(!1),x===`onBlur`){let t=e.currentTarget.value;S.commit(t),j&&queueMicrotask(()=>{let e=S.inputRef.current?.value;e!==void 0&&e!==t&&e!==(y.initialValue??``)&&S.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){g(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===w.current&&!e.defaultPrevented){let t=e.currentTarget,n=T.current;I.start(0,()=>{T.current===n&&S.commit(t.value)})}else S.commit(t)}}},f,e=>S.getValidationProps(E,e)],stateAttributesMapping:om})});wh.displayName=`FieldControl`;var Th=v.forwardRef(function(e,t){return(0,J.jsx)(wh,{ref:t,...e})});Th.displayName=`Input`;var Eh={size:{xs:{classes:`h-5 gap-1 rounded-sm px-1.5 text-xs`,description:`Extra small input for compact UIs`},sm:{classes:`h-6.5 gap-1 rounded-md px-2 text-xs`,description:`Small input for secondary fields`},base:{classes:`h-9 gap-1.5 rounded-lg px-3 text-base`,description:`Default input size`},lg:{classes:`h-10 gap-2 rounded-lg px-4 text-base`,description:`Large input for prominent fields`}},variant:{default:{classes:`focus:ring-kumo-focus/50 focus:ring-[1.5px]`,description:`Default input appearance`},error:{classes:`!ring-kumo-danger focus:ring-kumo-danger/50 focus:ring-[1.5px]`,description:`Error state for validation failures`}}},Dh={size:`base`,variant:`default`};function Oh({variant:e=Dh.variant,size:t=Dh.size,parentFocusIndicator:n=!1,focusIndicator:r=!1}={}){return q(`border-0 bg-kumo-control text-kumo-default ring ring-kumo-line outline-none focus:outline-none`,`kumo-input-placeholder disabled:text-kumo-disabled`,xr(Eh.size,t,Dh.size).classes,xr(Eh.variant,e,Dh.variant).classes,n&&(e===`error`?`focus-within:ring-[1.5px] focus-within:ring-kumo-danger/50`:`focus-within:ring-[1.5px] focus-within:ring-kumo-focus/50`),r&&(e===`error`?`focus:ring-[1.5px] focus:ring-kumo-danger/50`:`focus:ring-[1.5px] focus:ring-kumo-focus/50`))}var kh=(0,v.forwardRef)((e,t)=>{let{className:n,size:r=`base`,variant:i,label:a,labelTooltip:o,description:s,error:c,passwordManagerIgnore:l=!1,...u}=e;i===`error`&&console.warn('[Kumo Input]: variant="error" is deprecated. Error styling is now automatically applied when the `error` prop is truthy. Simply remove the variant prop and pass an error message instead.');let d=i??(c?`error`:`default`),{required:f}=u;{let e=!!a,t=!!u[`aria-label`],n=!!u[`aria-labelledby`];e||t||n||console.warn(`[Kumo Input]: Input must have an accessible name. Provide either:
27
+ Note: When used inside Checkbox.Group, label is optional`)}let p=(0,J.jsx)(fh,{ref:f,"data-kumo-component":`Checkbox`,name:u,checked:t,indeterminate:n,disabled:r,onCheckedChange:c,className:q(`relative flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border-0 bg-kumo-base ring after:absolute after:-inset-x-3 after:-inset-y-2 focus:outline-none`,a&&`mt-0.5`,i===`error`?`ring-kumo-danger`:`ring-kumo-hairline`,!r&&`hover:ring-kumo-hairline focus:ring-2 focus:ring-kumo-focus focus-visible:ring-2 focus-visible:ring-kumo-brand`,`data-[checked]:bg-kumo-contrast data-[checked]:ring-kumo-contrast data-[indeterminate]:bg-kumo-contrast data-[indeterminate]:ring-kumo-contrast`,r&&`cursor-not-allowed opacity-50`,e),...d,children:(0,J.jsx)(ph,{keepMounted:!0,className:`flex items-center justify-center text-kumo-inverse data-[unchecked]:invisible`,render:(e,t)=>(0,J.jsx)(`span`,{...e,children:t.indeterminate?(0,J.jsx)(pp,{weight:`bold`,size:12}):(0,J.jsx)(Xf,{weight:`bold`,size:12})})})});return a?(0,J.jsx)(Im,{className:`inline-flex`,children:(0,J.jsxs)(Lm,{className:q(`!m-0 inline-flex !min-h-0 items-start gap-2 !text-base`,s?`flex-row`:`flex-row-reverse justify-end`,r?`cursor-not-allowed`:`cursor-pointer`),children:[p,(0,J.jsx)(nm,{showOptional:l===!1,tooltip:o,asContent:!0,children:a})]})}):p});hh.displayName=`Checkbox`;var gh=(0,v.forwardRef)(({className:e,checked:t,indeterminate:n,disabled:r,variant:i=`default`,appearance:a,label:o,description:s,value:c,onCheckedChange:l,name:u},d)=>{let{controlFirst:f,appearance:p,orientation:m}=(0,v.useContext)(mh),h=(a??p)===`card`,g=f??!h,_=h&&p===`card`&&m!==null,y=(0,J.jsx)(ph,{keepMounted:!0,className:`flex items-center justify-center text-kumo-inverse data-[unchecked]:invisible`,render:(e,t)=>(0,J.jsx)(`span`,{...e,children:t.indeterminate?(0,J.jsx)(pp,{weight:`bold`,size:12}):(0,J.jsx)(Xf,{weight:`bold`,size:12})})});return h?(0,J.jsxs)(`label`,{"data-kumo-component":`Checkbox`,"data-kumo-part":`item-label`,className:q(`group relative m-0 flex items-start gap-3 bg-kumo-base p-3 has-[[data-checked]]:bg-kumo-tint`,_?q(`border-b border-kumo-line bg-clip-padding last:border-b-0`,m===`horizontal`&&`odd:border-r [&:last-child:nth-child(odd)]:border-r-0 [&:nth-last-child(2):nth-child(odd)]:border-b-0`):`rounded-lg border border-kumo-hairline has-[[data-checked]]:border-kumo-interact`,g&&`flex-row-reverse`,i===`error`&&q(`has-[[data-checked]]:bg-kumo-base`,!_&&`border-kumo-danger has-[[data-checked]]:border-kumo-danger`),r?`cursor-not-allowed opacity-50`:q(`cursor-pointer has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50`,i!==`error`&&`hover:not-has-[[data-disabled]]:not-has-[[data-checked]]:bg-kumo-elevated`),e),children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,J.jsx)(`span`,{className:`text-base font-medium text-kumo-default`,children:o}),s&&(0,J.jsx)(`span`,{className:`text-sm text-kumo-subtle`,children:s})]}),(0,J.jsx)(fh,{ref:d,"data-kumo-component":`Checkbox`,"data-kumo-part":`item`,value:c,name:u,checked:t,indeterminate:n,disabled:r,onCheckedChange:l,className:q(`relative mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border-0 bg-kumo-base ring focus:ring-kumo-focus focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand`,i===`error`?`ring-kumo-danger`:`ring-kumo-line`,!r&&i!==`error`&&`group-hover:ring-kumo-hairline`,`data-[checked]:bg-kumo-contrast data-[checked]:ring-kumo-contrast data-[indeterminate]:bg-kumo-contrast data-[indeterminate]:ring-kumo-contrast`),children:y})]}):(0,J.jsxs)(`label`,{"data-kumo-component":`Checkbox`,"data-kumo-part":`item-label`,className:q(`relative m-0 inline-flex items-start gap-2`,!g&&`flex-row-reverse justify-end`,r?`cursor-not-allowed opacity-50`:`cursor-pointer`,e),children:[(0,J.jsx)(fh,{ref:d,"data-kumo-component":`Checkbox`,"data-kumo-part":`item`,value:c,name:u,checked:t,indeterminate:n,disabled:r,onCheckedChange:l,className:q(`peer relative mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-sm border-0 bg-kumo-base ring after:absolute after:-inset-x-3 after:-inset-y-2`,i===`error`?`ring-kumo-danger`:`ring-kumo-hairline`,!r&&`group-hover:ring-kumo-hairline hover:ring-kumo-hairline focus:ring-2 focus:ring-kumo-focus focus-visible:ring-2 focus-visible:ring-kumo-brand`,`data-[checked]:bg-kumo-contrast data-[checked]:ring-kumo-contrast data-[indeterminate]:bg-kumo-contrast data-[indeterminate]:ring-kumo-contrast`),children:y}),(0,J.jsx)(`span`,{className:`text-base text-kumo-default`,children:o})]})});gh.displayName=`Checkbox.Item`;function _h({children:e,className:t}){return(0,J.jsx)(sm,{className:q(`text-base font-medium text-kumo-default`,t),children:e})}_h.displayName=`Checkbox.Legend`;function vh({legend:e,children:t,error:n,description:r,defaultValue:i,value:a,onValueChange:o,allValues:s,disabled:c,orientation:l=`vertical`,appearance:u=`default`,controlFirst:d,className:f}){return(0,J.jsx)(mh.Provider,{value:{controlFirst:d,appearance:u,orientation:l},children:(0,J.jsx)(qm,{defaultValue:i,value:a,onValueChange:o,allValues:s,disabled:c,children:(0,J.jsxs)(om,{className:q(`flex flex-col p-0`,u===`card`?`gap-2`:`gap-4`,f),children:[e&&(0,J.jsx)(sm,{className:`text-base font-medium text-kumo-default`,children:e}),(0,J.jsx)(`div`,{className:q(l===`vertical`?u===`card`?`flex flex-col overflow-hidden rounded-lg ring ring-kumo-line`:`flex flex-col gap-2`:u===`card`?`grid grid-cols-2 overflow-hidden rounded-lg bg-kumo-base ring ring-kumo-line`:`flex flex-row flex-wrap gap-2`),children:t}),n&&(0,J.jsx)(`p`,{className:`text-sm text-kumo-danger`,children:n}),r&&(0,J.jsx)(`p`,{className:`text-sm text-kumo-subtle`,children:r})]})})})}var yh=Object.assign(hh,{Item:gh,Group:vh,Legend:_h});yh.displayName=`Checkbox`;function bh(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Yc(),a=$c()!=null;{let e=r.reference;e&&!Wi(e)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`",`instead.`)}let o=Pr(()=>new Ll({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Ol,floatingId:i,syncOnly:!1,nested:a})).current;return Y(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Wi(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function xh(e){return Hr(19)?e:e?`true`:void 0}function Sh(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Ch(e,t){let n=(t??Vi(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}var wh={...fm,...vs},Th=v.forwardRef(function(e,t){let{render:n,id:r,className:i,match:a,style:o,...s}=e,c=Qu(r),{validityData:l,state:u,name:d}=hm(!1),{setMessageIds:f}=_m(),{errors:p}=ym(),m=d&&Object.hasOwn(p,d)?p[d]:null,h=!!(Array.isArray(m)?m.length:m),g=typeof a==`string`,_=!1;_=a===!0?!0:u.disabled?!1:g?!!l.state[a]:h||l.state.valid===!1;let{mounted:y,transitionStatus:b,setMounted:x}=tu(_);Y(()=>{if(_&&c)return f(e=>e.concat(c)),()=>{f(e=>e.filter(e=>e!==c))}},[_,c,f]);let S=v.useRef(null),[C,w]=v.useState(null),[T,E]=v.useState(null),D=l.error;!g&&h?D=m:l.errors.length>1&&(D=l.errors);let O=D;Array.isArray(D)&&(O=D.length>1?(0,J.jsx)(`ul`,{children:D.map(e=>(0,J.jsx)(`li`,{children:e},e))}):D[0]);let k=Array.isArray(D)?JSON.stringify(D):D;_&&k!==T&&(E(k),w(O)),eu({open:_,ref:S,onComplete(){_||x(!1)}});let A={...u,transitionStatus:b},j=mi(`div`,e,{ref:[t,S],state:A,props:[{id:c,children:_?O:C},s],stateAttributesMapping:wh,enabled:y});return y?j:null});Th.displayName=`FieldError`;var Eh=v.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=Qu(r),c=hm(!1),l=Mm(),{setMessageIds:u}=_m(),d={...c.state,disabled:c.disabled||l.disabled};return Y(()=>{if(s)return u(e=>e.concat(s)),()=>{u(e=>e.filter(e=>e!==s))}},[s,u]),mi(`p`,e,{ref:t,state:d,props:[{id:s},o],stateAttributesMapping:fm})});Eh.displayName=`FieldDescription`;function Dh(e){if(e)return typeof e==`string`?{message:e,match:!0}:e}function Oh({controlFirst:e=!1}={}){return q(`grid gap-2`,`has-[input[type=checkbox]]:grid-cols-[auto_1fr] has-[input[type=checkbox]]:items-center`,`has-[[role=switch]]:grid-cols-[auto_1fr] has-[[role=switch]]:items-center`,e&&[`has-[input[type=checkbox]]:flex has-[input[type=checkbox]]:flex-row-reverse has-[input[type=checkbox]]:flex-wrap has-[input[type=checkbox]]:items-center`,`has-[[role=switch]]:flex has-[[role=switch]]:flex-row-reverse has-[[role=switch]]:flex-wrap has-[[role=switch]]:items-center`,`[&>label]:flex-1`])}function kh({children:e,label:t,required:n,labelTooltip:r,error:i,description:a,controlFirst:o=!1,hideLabel:s=!1}){let c=n===!1;return(0,J.jsxs)(Im,{className:Oh({controlFirst:o}),children:[!s&&(0,J.jsx)(Lm,{className:`m-0 text-base font-medium text-kumo-default select-none`,children:(0,J.jsx)(nm,{showOptional:c,tooltip:r,asContent:!0,children:t})}),e,i?(0,J.jsx)(Th,{className:q(`text-sm leading-snug text-kumo-danger`,`col-span-full`),match:i.match,children:i.message}):a&&(0,J.jsx)(Eh,{className:q(`text-sm leading-snug text-kumo-subtle`,`col-span-full`),children:a})]})}var Ah=v.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:y,setFilled:b,validationMode:x,validation:S}=hm(),{clearErrors:C,elementRef:w,submitCountRef:T}=ym(),E=h||s,D=m??a,O={...p,disabled:E},{labelId:k}=_m(),A=Rm({id:i}),j=o!==void 0,M=o==null?void 0:String(o),N=Z(()=>S.inputRef.current?.value);zm(S.inputRef,A,M,N,!E,a),Y(()=>{let e=M??S.inputRef.current?.value;e!==void 0&&b(e!==``)},[M,l,S.inputRef,b]),Bm(M,()=>{M!==void 0&&(C(D),_(M!==(y.initialValue??``)),S.change(M))});let P=v.useRef(null),F=Zm(E,P),I=Vl();return mi(`input`,e,{ref:[t,P],state:O,props:[{id:A,disabled:E,name:D,ref:S.inputRef,"aria-labelledby":k,autoFocus:u,...j?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=bc(xc,e.nativeEvent);c?.(t,n),!j&&(_(t!==(y.initialValue??``)),b(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(C(D),S.change(t)))},onFocus(){F(!0)},onBlur(e){if(g(!0),F(!1),x===`onBlur`){let t=e.currentTarget.value;S.commit(t),j&&queueMicrotask(()=>{let e=S.inputRef.current?.value;e!==void 0&&e!==t&&e!==(y.initialValue??``)&&S.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){g(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===w.current&&!e.defaultPrevented){let t=e.currentTarget,n=T.current;I.start(0,()=>{T.current===n&&S.commit(t.value)})}else S.commit(t)}}},f,e=>S.getValidationProps(E,e)],stateAttributesMapping:fm})});Ah.displayName=`FieldControl`;var jh=v.forwardRef(function(e,t){return(0,J.jsx)(Ah,{ref:t,...e})});jh.displayName=`Input`;var Mh={size:{xs:{classes:`h-5 gap-1 rounded-sm px-1.5 text-xs`,description:`Extra small input for compact UIs`},sm:{classes:`h-6.5 gap-1 rounded-md px-2 text-xs`,description:`Small input for secondary fields`},base:{classes:`h-9 gap-1.5 rounded-lg px-3 text-base`,description:`Default input size`},lg:{classes:`h-10 gap-2 rounded-lg px-4 text-base`,description:`Large input for prominent fields`}},variant:{default:{classes:`focus:ring-kumo-focus/50 focus:ring-[1.5px]`,description:`Default input appearance`},error:{classes:`!ring-kumo-danger focus:ring-kumo-danger/50 focus:ring-[1.5px]`,description:`Error state for validation failures`}}},Nh={size:`base`,variant:`default`};function Ph({variant:e=Nh.variant,size:t=Nh.size,parentFocusIndicator:n=!1,focusIndicator:r=!1}={}){return q(`border-0 bg-kumo-control text-kumo-default ring ring-kumo-line outline-none focus:outline-none`,`kumo-input-placeholder disabled:text-kumo-disabled`,xr(Mh.size,t,Nh.size).classes,xr(Mh.variant,e,Nh.variant).classes,n&&(e===`error`?`focus-within:ring-[1.5px] focus-within:ring-kumo-danger/50`:`focus-within:ring-[1.5px] focus-within:ring-kumo-focus/50`),r&&(e===`error`?`focus:ring-[1.5px] focus:ring-kumo-danger/50`:`focus:ring-[1.5px] focus:ring-kumo-focus/50`))}var Fh=(0,v.forwardRef)((e,t)=>{let{className:n,size:r=`base`,variant:i,label:a,labelTooltip:o,description:s,error:c,passwordManagerIgnore:l=!1,...u}=e;i===`error`&&console.warn('[Kumo Input]: variant="error" is deprecated. Error styling is now automatically applied when the `error` prop is truthy. Simply remove the variant prop and pass an error message instead.');let d=i??(c?`error`:`default`),{required:f}=u;{let e=!!a,t=!!u[`aria-label`],n=!!u[`aria-labelledby`];e||t||n||console.warn(`[Kumo Input]: Input must have an accessible name. Provide either:
28
28
  - label prop: <Input label='Email' />
29
29
  - aria-label: <Input aria-label='Email address' />
30
- - aria-labelledby for custom label association`)}let p=(0,J.jsx)(Th,{ref:t,className:q(Oh({size:r,variant:d,focusIndicator:!0}),l&&`keeper-ignore`,n),...l?{"data-1p-ignore":`true`,"data-bwignore":`true`,"data-form-type":`other`,"data-lpignore":`true`}:{},...u});return a||c||s?(0,J.jsx)(Ch,{label:a,required:f,labelTooltip:o,description:s,error:xh(c),children:p}):p});kh.displayName=`Input`;var Ah={xs:{inputOuter:`px-1.5`,addonOuterStart:`pl-1.5`,addonOuterEnd:`pr-1.5`,addonButtonOuterStart:`pl-1`,addonButtonOuterEnd:`pr-1`,suffixPad:`pr-1.5`,fontSize:`text-xs`,iconSize:10},sm:{inputOuter:`px-2`,addonOuterStart:`pl-1.5`,addonOuterEnd:`pr-1.5`,addonButtonOuterStart:`pl-1`,addonButtonOuterEnd:`pr-1`,suffixPad:`pr-2`,fontSize:`text-xs`,iconSize:13},base:{inputOuter:`px-3`,addonOuterStart:`pl-2`,addonOuterEnd:`pr-2`,addonButtonOuterStart:`pl-1`,addonButtonOuterEnd:`pr-1`,suffixPad:`pr-3`,fontSize:`text-base`,iconSize:18},lg:{inputOuter:`px-4`,addonOuterStart:`pl-2.5`,addonOuterEnd:`pr-2.5`,addonButtonOuterStart:`pl-1.5`,addonButtonOuterEnd:`pr-0.5`,suffixPad:`pr-4`,fontSize:`text-base`,iconSize:20}},jh={xs:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-1 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-1`,sm:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-1.5 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-1.5`,base:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-2 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-2`,lg:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-2.5 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-2.5`},Mh=(0,v.createContext)(null),Nh=(0,v.createContext)(!1);function Ph(e){let t=(0,v.useContext)(Mh);return t||console.warn(`<InputGroup.${e}> must be used within <InputGroup>. Falling back to default values.`),t}function Fh(e){let t=[],n=[];return v.Children.forEach(e,e=>{(0,v.isValidElement)(e)&&e.type?.displayName===`InputGroup.Button`?n.push(e):t.push(e)}),{containerZone:t,individualZone:n}}function Ih(e){let t=!1,n=!1;return v.Children.forEach(e,e=>{if(!(0,v.isValidElement)(e))return;let r=e.type,i=typeof r==`function`||typeof r==`object`?r.displayName:void 0;if(i===`InputGroup.Addon`){n=!0;return}if(i!==`InputGroup.Button`)return;let a=e.props.variant;a!==void 0&&a!==`ghost`&&(t=!0)}),t&&n?`hybrid`:t?`individual`:`container`}var Lh=(0,v.forwardRef)((e,t)=>{let n=Ph(`Input`);n&&(e.size!==void 0&&console.warn("InputGroup.Input: Set `size` on <InputGroup> instead of <InputGroup.Input>."),e.disabled!==void 0&&console.warn("InputGroup.Input: Set `disabled` on <InputGroup> instead of <InputGroup.Input>."),e.label!==void 0&&console.warn("InputGroup.Input: Use the `label` prop on <InputGroup> instead of <InputGroup.Input>."),e.description!==void 0&&console.warn("InputGroup.Input: Use <InputGroup.Suffix> instead of passing `description` to <InputGroup.Input>."));let r=Ah[n?.size??`base`],i=n?.focusMode===`individual`,a=!!n?.error,o=e.id??n?.inputId;return(0,J.jsx)(kh,{ref:t,size:n?.size,disabled:n?.disabled||e.disabled,"aria-invalid":a||e[`aria-invalid`],...e,id:o,className:q(`flex h-full min-w-0 grow items-center rounded-none border-0 bg-transparent font-sans`,r.inputOuter,`text-ellipsis`,i?`relative ring-0 focus:ring-0 border border-kumo-line first:rounded-l-[inherit] last:rounded-r-[inherit] not-first:-ml-px hover:z-1 hover:border-kumo-line focus:z-2 focus:border-kumo-focus/50`:`relative z-1 shadow-none ring-0! outline-none focus:ring-0! focus:outline-none`,e.className)})});Lh.displayName=`InputGroup.Input`;var Rh={xs:`xs`,sm:`xs`,base:`sm`,lg:`base`},zh=(0,v.forwardRef)(({children:e,className:t,variant:n,size:r,disabled:i,tooltip:a,tooltipSide:o=`bottom`,icon:s,...c},l)=>{let u=Ph(`Button`),d=(0,v.useContext)(Nh),f=i??u?.disabled,p=u?.focusMode===`individual`||u?.focusMode===`hybrid`;u&&(n??`ghost`)===`ghost`&&!d&&console.warn(`InputGroup.Button: Ghost buttons should be wrapped in <InputGroup.Addon> for correct spacing.`),u&&r!==void 0&&console.warn("InputGroup.Button: Set `size` on <InputGroup> instead of <InputGroup.Button>.");let m=typeof a==`string`&&!c[`aria-label`]?a:void 0,h=u?Ah[u.size??`base`].iconSize:void 0,g=s&&h&&(typeof s==`function`||typeof s==`object`&&s&&!v.isValidElement(s))?v.createElement(s,{size:h}):s,_=(0,J.jsx)(Np,{ref:l,type:`button`,disabled:f,"aria-label":m,...c,icon:g,variant:n??`ghost`,size:r??(p?u?.size??`sm`:Rh[u?.size??`base`]??`sm`),className:q(`pointer-events-auto`,`shadow-none`,`focus:ring-0`,!p&&`focus-visible:ring-[1.5px] focus-visible:ring-kumo-focus/50`,p&&[`relative h-full! rounded-none border border-kumo-line ring-0 focus-visible:ring-0`,`first:rounded-l-[inherit] last:rounded-r-[inherit]`,`not-first:-ml-px`,`hover:z-1`,`focus:z-2`,`focus-visible:border-kumo-focus/50`,`disabled:bg-kumo-overlay disabled:text-kumo-inactive!`],t),children:e});return a?(0,J.jsx)(Zd,{content:a,side:o,asChild:!0,children:_}):_});zh.displayName=`InputGroup.Button`;var Bh=(0,v.forwardRef)(({align:e=`start`,className:t,children:n},r)=>{let i=Ah[Ph(`Addon`)?.size??`base`],a=!1,o=v.Children.map(n,e=>(0,v.isValidElement)(e)?e.type===zh?(a=!0,e):e.props.size===void 0?(0,v.cloneElement)(e,{size:i.iconSize}):e:e);return(0,J.jsx)(`div`,{ref:r,"data-slot":e===`start`?`input-group-addon-start`:`input-group-addon-end`,className:q(`pointer-events-none relative z-[1] flex shrink-0 items-center gap-1.5`,`text-kumo-subtle`,i.fontSize,`*:pointer-events-auto`,e===`start`?q(`-order-1`,a?i.addonButtonOuterStart:i.addonOuterStart,`pr-0`):q(`order-1`,`pl-0`,a?i.addonButtonOuterEnd:i.addonOuterEnd),t),children:(0,J.jsx)(Nh.Provider,{value:!0,children:o})})});Bh.displayName=`InputGroup.Addon`;var Vh=(0,v.forwardRef)(({className:e,children:t},n)=>{let r=Ah[Ph(`Suffix`)?.size??`base`];return(0,J.jsx)(`div`,{ref:n,"data-slot":`input-group-suffix`,className:q(`pointer-events-none flex min-w-0 grow items-center text-kumo-subtle select-none`,r.fontSize,r.suffixPad,e),children:(0,J.jsx)(`span`,{className:`truncate`,children:t})})});Vh.displayName=`InputGroup.Suffix`;var Hh=(0,v.forwardRef)(({size:e=`base`,children:t,className:n,disabled:r=!1,label:i,description:a,error:o,required:s,labelTooltip:c,...l},u)=>{let d=(0,v.useId)(),f=Ih(t),p=(0,v.useMemo)(()=>({size:e,focusMode:f,disabled:r,error:o,inputId:d}),[e,f,r,o,d]),m=q(`relative w-full cursor-text`,Oh({size:e}),`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,f===`container`?[`overflow-hidden`,`focus-within:ring-[1.5px] focus-within:ring-kumo-focus/50`]:`isolate overflow-visible shadow-none ring-0`,`has-[input[aria-invalid=true]]:ring-kumo-danger`,`px-0`,`flex items-center gap-0`,`has-[[data-slot=input-group-suffix]]:[&_input]:[field-sizing:content]`,`has-[[data-slot=input-group-suffix]]:[&_input]:max-w-full`,`has-[[data-slot=input-group-suffix]]:[&_input]:grow-0`,`has-[[data-slot=input-group-suffix]]:[&_input]:pr-0`,jh[e],`!mb-0`,n),h={"data-slot":`input-group`,"data-focus-mode":f,"data-disabled":r?``:void 0};if(f===`hybrid`){let{containerZone:n,individualZone:r}=Fh(t),f={...p,focusMode:`container`},g=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Mh.Provider,{value:f,children:(0,J.jsxs)(`div`,{"data-slot":`input-group-container-zone`,className:q(Oh({size:e}),`overflow-hidden`,`has-[input[aria-invalid=true]]:ring-kumo-danger`,`px-0`,`flex min-w-0 flex-1 items-center gap-0`,`shadow-none ring-0`,`border border-kumo-line`,`focus-within:border-kumo-focus/50`,`focus-within:z-2`,`not-first:-ml-px`,`rounded-none first:rounded-l-[inherit] last:rounded-r-[inherit]`,jh[e],`has-data-[slot=input-group-suffix]:[&_input]:field-sizing-content`,`has-data-[slot=input-group-suffix]:[&_input]:max-w-full`,`has-data-[slot=input-group-suffix]:[&_input]:grow-0`,`has-data-[slot=input-group-suffix]:[&_input]:pr-0`),children:[i&&(0,J.jsx)(`label`,{htmlFor:d,className:`absolute inset-0 z-0 mb-0! cursor-text`,"aria-hidden":`true`}),n]})}),r]}),_=(0,J.jsx)(Mh.Provider,{value:p,children:(0,J.jsx)(`div`,{ref:u,...h,className:m,...l,children:g})});return i?(0,J.jsx)(Ch,{label:i,description:a,error:o,required:s,labelTooltip:c,children:_}):_}let g=!i&&f===`container`,_=(0,J.jsx)(Mh.Provider,{value:p,children:i?(0,J.jsxs)(`div`,{ref:u,...h,className:m,...l,children:[(0,J.jsx)(`label`,{htmlFor:d,className:`absolute inset-0 z-0 mb-0!`,"aria-hidden":`true`}),t]}):g?(0,J.jsx)(`label`,{ref:u,...h,className:q(m,`mb-0!`),...l,children:t}):(0,J.jsx)(`div`,{ref:u,...h,className:m,...l,children:t})});return i?(0,J.jsx)(Ch,{label:i,description:a,error:o,required:s,labelTooltip:c,children:_}):_});Hh.displayName=`InputGroup`;var Uh=(0,v.forwardRef)((e,t)=>(0,J.jsx)(Bh,{ref:t,align:`start`,...e}));Uh.displayName=`InputGroup.Label`;var Wh=(0,v.forwardRef)((e,t)=>(0,J.jsx)(Vh,{ref:t,...e}));Wh.displayName=`InputGroup.Description`;var Gh=Object.assign(Hh,{Input:Lh,Button:zh,Addon:Bh,Suffix:Vh,Label:Uh,Description:Wh}),Kh={variant:{heading:{classes:`text-lg font-semibold`,description:`Heading text (16px by default, 20px at large size)`},heading1:{classes:`text-3xl font-semibold`,description:`Deprecated large heading for page titles; use heading instead`},heading2:{classes:`text-2xl font-semibold`,description:`Deprecated medium heading for section titles; use heading instead`},heading3:{classes:`text-lg font-semibold`,description:`Deprecated small heading for subsections; use heading instead`},body:{classes:`text-kumo-default`,description:`Default body text`},secondary:{classes:`text-kumo-subtle`,description:`Muted text for secondary information`},success:{classes:`text-kumo-link`,description:`Success state text`},error:{classes:`text-kumo-danger`,description:`Error state text`},mono:{classes:`font-mono`,description:`Monospace text for code`},"mono-secondary":{classes:`font-mono text-kumo-subtle`,description:`Muted monospace text`}},size:{xs:{classes:`text-xs/[inherit]`,description:`Extra small text`},sm:{classes:`text-sm/[inherit]`,description:`Small text`},base:{classes:`text-base/[inherit]`,description:`Default text size`},lg:{classes:`text-lg/[inherit]`,description:`Large text`}}},qh={variant:`body`,size:`base`},Jh=[`heading1`,`heading2`,`heading3`];function Yh(e){return Jh.includes(e)}function Xh(e,t){return e===`heading`?t===`lg`?`text-xl`:``:Yh(e)?``:[`mono`,`mono-secondary`].includes(e)?t===`lg`?Kh.size.base.classes:Kh.size.sm.classes:xr(Kh.size,t,qh.size).classes}function Zh({variant:e=`body`,bold:t=!1,size:n=`base`,truncate:r=!1,children:i,DANGEROUS_className:a,DANGEROUS_style:o,as:s,...c},l){let u=[`body`,`secondary`,`success`,`error`].includes(e),d=(0,v.useMemo)(()=>s||([`mono`,`mono-secondary`].includes(e)||e===`heading`||Yh(e)?`span`:`p`),[e,s]);return(0,J.jsx)(d,{ref:l,className:q(`text-kumo-default`,xr(Kh.variant,e,qh.variant).classes,Xh(e,n),u&&t?`font-medium`:``,r&&`min-w-0 truncate`,a),style:o,...c,children:i})}var Qh=(0,v.forwardRef)(Zh),$h=0;function eg(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame($h);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),Jr;let o=requestAnimationFrame(a);return $h=o,()=>{$h===o&&(cancelAnimationFrame(o),$h=0)}}var tg=`data-base-ui-inert`,ng=new WeakMap,rg=new WeakSet,ig=new WeakMap,ag=0;function og(e){return e?Ki(e)?e.host:og(e.parentNode):null}var sg=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=og(t);return e.contains(n)?n:null}).filter(e=>e!=null),cg=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},lg=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Bi(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function ug(e,t,n,{mark:r=!0}){let i=sg(t,e),a=r?lg(t,cg(i),new Set(i)):[],o=[],s=[];if(n){let e=sg(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);lg(t,cg(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(ng.get(e)||0)+1;ng.set(e,r),o.push(e),r===1&&n&&rg.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(ig.get(e)||0)+1;ig.set(e,t),s.push(e),t===1&&e.setAttribute(tg,``)}),ag+=1,()=>{o.forEach(e=>{let t=(ng.get(e)||0)-1;ng.set(e,t),t||(rg.has(e)||e.removeAttribute(`aria-hidden`),rg.delete(e))}),r&&s.forEach(e=>{let t=(ig.get(e)||0)-1;ig.set(e,t),t||e.removeAttribute(tg)}),--ag,ag||(ng=new WeakMap,rg=new WeakSet,ig=new WeakMap)}}function dg(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=Hs(e[0]).body;return ug(e,i,n,{mark:r})}function fg(e,t){let n=Vi(ss(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(ts(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var pg=20,mg=[];function hg(){mg=mg.filter(e=>e.deref()?.isConnected)}function gg(e){hg(),e&&Bi(e)!==`body`&&(mg.push(new WeakRef(e)),mg.length>pg&&(mg=mg.slice(-20)))}function _g(){return hg(),mg[mg.length-1]?.deref()}function vg(e){return e?uc(e)?e:fc(e)[0]||e:null}function yg(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=dc(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return uc(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function bg(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),y=t.useState(`floatingElement`),{events:b,dataRef:x}=t.context,S=Z(()=>x.current.floatingContext?.nodeId),C=i===!1,w=zs(_)&&C,T=Hl(i),E=Hl(a),D=Hl(o),O=Hl(u),k=Hl(g),A=el(m),j=Sl(),M=v.useRef(!1),N=v.useRef(!1),P=v.useRef(!1),F=v.useRef(null),I=v.useRef(``),L=v.useRef(``),R=v.useRef(null),z=v.useRef(null),B=Fr(R,p,j?.beforeInsideRef),ee=Fr(z,j?.afterInsideRef),V=Vl(),H=Vl(),te=Jl(),ne=j!=null,U=Vs(y),re=Z((e=U)=>e?fc(e):[]),ie=Z(()=>h?.().filter(e=>e!=null)??[]);v.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&X(U,as(Hs(U)))&&re().length===0&&!w&&$o(e)}return Ic(Hs(U),`keydown`,e)},[r,U,c,w,re]),v.useEffect(()=>{if(r||!g)return;let e=Hs(U);function t(){P.current=!1}function n(e){let t=ss(e),n=ie(),r=X(y,t)||X(_,t)||X(j?.portalNode,t)||n.some(e=>e===t||X(e,t));P.current=!r,L.current=e.pointerType||`keyboard`,os(t,`[data-base-ui-click-trigger]`)&&(N.current=!0,H.start(0,()=>{N.current=!1}))}function i(){L.current=`keyboard`}return Lc(Ic(e,`pointerdown`,n,!0),Ic(e,`pointerup`,t,!0),Ic(e,`pointercancel`,t,!0),Ic(e,`keydown`,i,!0),t)},[r,y,_,U,g,j,H,ie]),v.useEffect(()=>{if(r||!l)return;let e=Hs(U);function n(){N.current=!0,H.start(0,()=>{N.current=!1})}function i(e){let t=ss(e);uc(t)&&(F.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=ss(n);c&&r==null&&a!=null&&X(y,a)&&gg(a),queueMicrotask(()=>{let o=S(),l=t.context.triggerElements,u=ie(),p=r?.hasAttribute(gl(`focus-guard`))&&[R.current,z.current,j?.beforeInsideRef.current,j?.afterInsideRef.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,Xl(f),Xl(d)].includes(r),m=!(X(_,r)||X(y,r)||X(r,y)||X(j?.portalNode,r)||u.some(e=>e===r||X(e,r))||l.hasMatchingElement(e=>X(e,r))||p||A&&(nu(A.nodesRef.current,o).find(e=>X(e.context?.elements.floating,r)||X(e.context?.elements.domReference,r))||ru(A.nodesRef.current,o).find(e=>[e.context?.elements.floating,Vs(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&U&&yg(U),s&&i!==_&&!Xs(a)&&as(e)===e.body){if(Gi(U)&&(U.focus(),s===`popup`)){te.request(()=>{U.focus()});return}let e=re(),t=F.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||U;Gi(n)&&n.focus()}x.current.insideReactTree?x.current.insideReactTree=!1:(w||!c)&&r&&m&&!N.current&&(w||r!==_g())&&(M.current=!0,t.setOpen(!1,bc(Dc,n)))})}function o(){P.current||(x.current.insideReactTree=!0,V.start(0,()=>{x.current.insideReactTree=!1}))}let u=Gi(_)?_:null;if(y||u)return Lc(u&&Ic(u,`focusout`,a),u&&Ic(u,`pointerdown`,n),y&&Ic(y,`focusin`,i),y&&Ic(y,`focusout`,a),y&&j&&Ic(y,`focusout`,o,!0))},[r,_,y,U,c,A,j,t,l,s,re,w,S,x,V,H,te,d,f,ie]),v.useEffect(()=>{if(r||!y||!g)return;let e=Array.from(j?.portalNode?.querySelectorAll(`[${gl(`portal`)}]`)||[]),t=(A?ru(A.nodesRef.current,S()):[]).find(e=>zs(e.context?.elements.domReference||null))?.context?.elements.domReference,n=dg([y,...e,R.current,z.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,...ie(),t,Xl(f),Xl(d),w?_:null].filter(e=>e!=null),{ariaHidden:c||w,mark:!1}),i=dg([y,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,y,c,j,w,A,S,d,f,ie]),Y(()=>{if(!g||r||!Gi(U))return;I.current=``,L.current=``;let e=Hs(U),t=as(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||X(U,t))return;let i=null,a=()=>(i??=re(U),i[0]||U),o;o=r===!0||r===null?a():Xl(r),o||=a();let s=X(U,as(e)),c=x.current.openEvent,l=c?.type===`mousedown`&&ts(c);eg(o,{sync:l,preventScroll:o===U,shouldFocus(){if(!k.current)return!1;if(s)return!0;let t=as(e);return!(t!==o&&X(U,t))}})})},[r,g,U,re,T,O,k,x]);let ae=v.useRef(null);Y(()=>{if(r||!U){ae.current=null;return}ae.current&&=(ae.current.cancelled=!0,null);let e=Hs(U),t=as(e),n=O.current==null;gg(t);function i(e){if(e.open||(I.current=fg(e.nativeEvent,L.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(gl(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(M.current=!0),e.reason===`outside-press`){if(e.nested)M.current=!1;else if(ts(e.nativeEvent)||ns(e.nativeEvent))M.current=!1;else{let e=!1;Hs(U).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?M.current=!1:M.current=!0}}}b.on(`openchange`,i);function a(e){let r=E.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&Bi(t)!==`body`?t:null,s=n?o||a:a||o;return s||=_g()||null,typeof i==`boolean`?s:Xl(i)||s||null}return()=>{b.off(`openchange`,i);let t=as(e),n=ie(),r=X(y,t)||n.some(e=>e===t||X(e,t))||A&&nu(A.nodesRef.current,S(),!1).some(e=>X(e.context?.elements.floating,t)),o=E.current,s=I.current,c=a(s),l={cancelled:!1};ae.current=l,queueMicrotask(()=>{ae.current===l&&(ae.current=null);let n=vg(c),i=D.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!M.current&&Gi(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}M.current=!1})}},[r,y,U,E,D,O,b,A,_,S,ie]),Y(()=>{if(!yc||g||!y)return;let e=as(Hs(y));Gi(e)&&Ls(e)&&X(y,e)&&e.blur()},[g,y]),Y(()=>{if(!r&&j)return j.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{j.setFocusManagerState(null)}},[r,j,c,g,t,l,_]),Y(()=>{if(!r&&U)return yg(U),()=>{queueMicrotask(hg)}},[r,U]);let oe=!r&&(!c||!w)&&(ne||c);return(0,J.jsxs)(v.Fragment,{children:[oe&&(0,J.jsx)(hl,{"data-type":`inside`,ref:B,onFocus:e=>{if(c){let e=re();eg(e[e.length-1])}else j?.portalNode&&(M.current=!1,gc(e,j.portalNode)?mc(_)?.focus():Xl(f??j.beforeOutsideRef)?.focus())}}),n,oe&&(0,J.jsx)(hl,{"data-type":`inside`,ref:ee,onFocus:e=>{c?eg(re()[0]):j?.portalNode&&(l&&(M.current=!0),gc(e,j.portalNode)?hc(_)?.focus():Xl(d??j.afterOutsideRef)?.focus())}})]})}function xg(e){let t=v.useRef(``),n=v.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:v.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function Sg(e,t){let{onClick:n,onPointerDown:r}=xg(Z((n,r)=>{(typeof e==`function`?e():e)||t(r||(qo?`touch`:``))}));return v.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function Cg(e){let[t,n]=v.useState(null),r=Sg(e,n);return Pm(e,t=>{t&&!e&&n(null)}),v.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var wg=v.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,J.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});wg.displayName=`InternalBackdrop`;var Tg={},Eg={},Dg=``;function Og(e,t){return qi(e)?e:t}function kg(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Og(t,n)).overflowY)}function Ag(e){if(typeof document>`u`)return!1;let t=Hs(e);return Vi(t).innerWidth-t.documentElement.clientWidth>0}function jg(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Hs(e),n=t.documentElement,r=t.body,i=Og(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Mg(e){let t=Hs(e),n=t.documentElement,r=t.body,i=Og(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Ng(e){let t=Hs(e),n=t.documentElement,r=t.body,i=Vi(n),a=0,o=0,s=!1,c=ql.create();if(yc&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Tg={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Dg=n.style.scrollBehavior,Eg={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Og(n,r);s=jg(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,Tg),Object.assign(r.style,Eg),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Dg)}function d(){u(),c.request(l)}l();let f=Ic(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Pg=new class{lockCount=0;restore=null;timeoutLock=Bl.create();timeoutUnlock=Bl.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Hs(e),n=t.documentElement,r=t.body,i=Vi(n);if(kg(i,n,r)){let t=new i.MutationObserver(()=>{kg(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=qo||!Ag(e);this.restore=a?Mg(e):Ng(e)}};function Fg(e=!0,t=null){Y(()=>{if(e)return Pg.acquire(t)},[e,t])}function Ig(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Sc}=t,l=e.context.dataRef,u=v.useRef(void 0),d=Jl(),f=Vl(),p=v.useMemo(()=>{function t(t,n,r,i){let a=bc(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=rs(e.pointerType,!0)&&ns(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||rs(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=ss(s),p=Ls(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:rs(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return v.useMemo(()=>n?{reference:p}:Xr,[n,p])}function Lg(e){return yc&&e.movementX===0&&e.movementY===0}function Rg(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function zg(e,t){return Rg(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Bg(e,t,n){return Rg(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Vg(e,t,n){return Rg(t,n?e===us:e===ds,e===ps)}function Hg(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:Rg(t,n?e===ds:e===us,e===fs)}function Ug(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:y,id:b,resetOnPointerLeave:x=!0,externalTree:S,nestedReturnFocusRef:C,grid:w}=t,T=w!=null;s&&(c||console.warn("`useListNavigation` looping must be enabled to allow escaping."),d||console.warn("`useListNavigation` must be virtual to allow escaping.")),g===`vertical`&&T&&console.warn("In grid list navigation mode, the `orientation` should",`be either "horizontal" or "both".`);let E=e.useState(`open`),D=e.useState(`floatingElement`),O=e.useState(`domReferenceElement`),k=e.context.dataRef,A=Vs(D),j=zs(O),M=Hl(A),N=$c(),P=el(S),F=v.useRef(f),I=v.useRef(o??-1),L=v.useRef(null),R=v.useRef(!0),z=Z(e=>{i(I.current===-1?null:I.current,e)}),B=v.useRef(!!D),ee=v.useRef(E),V=v.useRef(!1),H=v.useRef(!1),te=v.useRef(null),ne=Hl(h),U=Hl(E),re=Hl(o),ie=Hl(x),ae=Jl(),oe=Jl(),W=Z(()=>{ae.cancel();function e(e){d||(te.current=eg(e,{sync:V.current,preventScroll:!0}))}let t=n.current[I.current],r=H.current;t&&e(t),(V.current?e=>e():e=>ae.request(e))(()=>{let i=n.current[I.current]||t;i&&(t||e(i),de&&(r||!R.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Y(()=>{k.current.orientation=g},[k,g]),Y(()=>{E||(L.current=null),E&&f===`auto`||(F.current=f)},[E,f]),Y(()=>{a&&(E&&D?(I.current=o??-1,F.current&&o!=null&&(H.current=!0,z())):B.current&&(I.current=-1,z()))},[a,E,D,o,z]),Y(()=>{if(a){if(!E)V.current=!1;else if(D){if(r==null){if(V.current=!1,re.current!=null)return;if(B.current&&(I.current=-1,W()),(!ee.current||!B.current)&&F.current&&(L.current!=null||F.current===!0&&L.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>oe.request(e):queueMicrotask)(t),e+=1):(I.current=L.current==null||Bg(L.current,_,u)||l?Ws(n):Gs(n),L.current=null,z())};t()}}else Us(n.current,r)||(I.current=r,W(),H.current=!1)}}},[a,E,D,r,re,l,n,_,u,z,W,oe]),Y(()=>{if(!a||D||!P||d||!B.current)return;let e=P.nodesRef.current,t=e.find(e=>e.id===N)?.context?.elements.floating,n=as(Hs(O??t??null)),r=e.some(e=>e.context&&X(e.context.elements.floating,n));t&&!r&&R.current&&t.focus({preventScroll:!0})},[a,D,O,P,N,d]),Y(()=>{ee.current=E,B.current=!!D});let G=r!=null,se=Z(e=>{if(!U.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(I.current!==t||r!==t)&&(I.current=t,z(e))}),ce=Z(()=>y??P?.nodesRef.current.find(e=>e.id===N)?.context?.dataRef?.current.orientation),le=Z(()=>Ws(n,ne.current)),ue=Z(t=>{if(R.current=!1,V.current=!0,t.which===229||!U.current&&t.currentTarget===M.current)return;if(l&&Hg(t.key,g,u,T)){zg(t.key,ce())||$o(t),e.setOpen(!1,bc(kc,t.nativeEvent));let n=C?.current??O;Gi(n)&&n.focus();return}r!=null&&r!==I.current&&!Us(n.current,r)&&(I.current=r);let i=I.current,a=Ws(n,h),o=Gs(n,h);if(j||(t.key===`Home`&&($o(t),I.current=a,z(t)),t.key===`End`&&($o(t),I.current=o,z(t))),w!=null){let e=w(t,I.current,n,g,c,u,h,a,o);if(e!=null&&e!==I.current&&(I.current=e,z(t)),g===`both`)return}if(zg(t.key,g)){$o(t);let e=as(t.currentTarget.ownerDocument);if(E&&!d&&X(t.currentTarget,e)&&!n.current.some(t=>t!=null&&X(t,e))){I.current=Bg(t.key,g,u)?a:o,z(t),r===I.current&&W();return}let{index:l,wrapped:f}=Ks(n.current,i,{decrement:!Bg(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(V.current=!1),I.current=l,z(t)}}),de=v.useMemo(()=>({onFocus(e){V.current=!0,se(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){Lg(e)||(V.current=!0,H.current=!1,p&&se(e))},onPointerLeave(e){if(!U.current||!R.current||e.pointerType===`touch`)return;V.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ie.current&&(te.current?.(),te.current=null,I.current=-1,z(e),!d)){let e=M.current,t=as(Hs(e));e&&X(e,t)&&e.focus({preventScroll:!0})}}}),[se,U,M,p,n,z,ie,d]),K=v.useMemo(()=>d&&E&&G&&{"aria-activedescendant":`${b}-${r}`},[d,E,G,b,r]),fe=v.useMemo(()=>({...j?{}:K,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&E&&!d){let n=ss(t.nativeEvent);if(n&&!X(M.current,n))return;$o(t);let r=bc(Dc,t.nativeEvent);e.setOpen(!1,r);let i=C?.current??O;!r.isCanceled&&Gi(i)&&i.focus()}else ue(t)},onPointerMove(e){Lg(e)||(R.current=!0)}}),[K,ue,M,j,e,E,d,O,C]),pe=v.useMemo(()=>{function t(t){e.setOpen(!0,bc(kc,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&ts(e.nativeEvent)&&(F.current=!d)}function r(e){F.current=f,f===`auto`&&ns(e.nativeEvent)&&(F.current=!0)}return{onKeyDown(n){let r=e.select(`open`);R.current=!1;let i=n.key.startsWith(`Arrow`),a=Vg(n.key,ce(),u),o=zg(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Ls(n.currentTarget)))return ue(n);if(r||m||!i){if(s){let e=zg(n.key,ce());L.current=l&&e?null:n.key}l?a&&($o(n),r?(I.current=le(),z(n),d&&M.current?.focus()):t(n)):o&&(re.current!=null&&(I.current=re.current),$o(n),!r&&m?t(n):ue(n),r&&z(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(I.current=-1,z(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[ue,f,le,l,z,e,m,g,_,ce,u,re,d,M]),me=v.useMemo(()=>({...K,...pe}),[K,pe]);return v.useMemo(()=>a?{reference:me,floating:fe,item:de,trigger:pe}:{},[a,me,fe,pe,de])}function Wg(e){let t=v.useRef(!0);t.current&&(t.current=!1,e())}var Gg=(e,t)=>Object.is(e,t);function Kg(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function qg(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!Lm(e,t,(e,t)=>Kg(e,t,n)):e!==t}function Jg(e,t,n){return e?e.some(e=>e!==void 0&&Kg(t,e,n)):!1}function Yg(e,t,n){return e?e.findIndex(e=>e!==void 0&&Kg(e,t,n)):-1}function Xg(e,t){if(t!==Gg)return n=>Jg(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function Zg(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(Xg(t,n)):Yg(e,t,n);return i===-1?null:i}function Qg(e,t,n,r,i,a){return Jg(r,t,i)?a!=null&&e>a&&Jg(r,n[a],i)?a:e:e===a?Zg(n,r,i,!0):a}function $g(e,t,n){return e.filter(e=>!Kg(t,e,n))}function e_(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function t_(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function n_(e){return t_(e?.[0])}function r_(e){return n_(e)?e.flatMap(e=>e.items):e}function i_(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(n_(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function a_(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return e_(e)}function o_(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?e_(e.value):e_(e)}function s_(e,t,n){function r(){return a_(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let n=r_(t);if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function c_(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,J.jsx)(v.Fragment,{children:s_(r,t,n)},i)),e),[])}var l_=v.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});l_.displayName=`CompositeListContext`;function u_(){return v.useContext(l_)}function d_(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Z(i),[,o]=v.useState(0),s=Pr(p_).current,c=Pr(f_).current,l=v.useRef(0),u=v.useRef(!0),d=v.useRef(null),f=v.useRef(null),p=Z(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=Z((e,t)=>{c.set(e,t),p()}),h=Z(e=>{c.delete(e),p()}),g=Z(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!g_(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&__(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=h_(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let y=Z(()=>{let[e,t]=m_(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});Y(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Y(()=>{u.current&&y()}),Y(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let b=Z(e=>(s.add(e),()=>{s.delete(e)})),x=v.useMemo(()=>({register:m,unregister:h,subscribeMapChange:b,nextIndexRef:l}),[m,h,b,l]);return(0,J.jsx)(l_.Provider,{value:x,children:t})}function f_(){return new Map}function p_(){return new Set}function m_(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>__(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function h_(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function g_(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function __(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function v_(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=u_(),u=v.useRef(-1),[d,f]=v.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=v.useRef(null),h=v.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return Y(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}function y_(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=Z(s),f=e.useState(`open`),p=Vl(),m=v.useRef(``),h=v.useRef(u??i??-1),g=v.useRef(null),_=Z(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!Xs(n)||n?.matches(`:disabled`)?!1:o==null||!Js(Yr,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&($o(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&($o(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),y=Z(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);X(r,n)||X(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Y(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let b=v.useMemo(()=>({onKeyDown:_,onBlur:y}),[_,y]);return v.useMemo(()=>c?{reference:b,floating:b}:{},[c,b])}function b_(e){return e==null?void 0:`${e}-label`}function x_(e,t){return e??t}var S_=5;function C_(e,t){let n=w_(t);return e.clientX>=n.left-S_&&e.clientX<=n.right+S_&&e.clientY>=n.top-S_&&e.clientY<=n.bottom+S_}function w_(e){let t=e.getBoundingClientRect(),n=Vi(e);if(Qo)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var T_=v.memo(v.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a,selected:o,...s}=e,c=v.useRef(null),{transitionStatus:l,setMounted:u}=tu(o),d=mi(`span`,e,{ref:[t,c],state:{selected:o,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:vs});return eu({batch:!0,enabled:!o,open:o,ref:c,onComplete(){o||u(!1)}}),d}));T_.displayName=`ItemIndicator`;var E_=20;function D_(e,t,n,r){let[i,a]=v.useState(!1);Y(()=>{if(!e||!t||n==null){a(!1);return}let r=Hs(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-E_)},[e,t,n]),Fg(e&&(!t||i),r)}var O_=v.createContext(void 0);O_.displayName=`ToolbarRootContext`;function k_(e){let t=v.useContext(O_);if(t===void 0&&!e)throw Error(`Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.`);return t}function A_(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var j_=`ArrowUp`,M_=`ArrowDown`,N_=`ArrowLeft`,P_=`ArrowRight`,F_=new Set([j_,M_,N_,P_,`Home`,`End`]),I_=[`Shift`,`Control`,`Alt`,`Meta`];function L_(e){return Gi(e)&&e.tagName===`INPUT`}function R_(e){return!!(L_(e)&&e.selectionStart!=null||Gi(e)&&e.tagName===`TEXTAREA`)}function z_(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=B_(e,t,`left`),a=V_(e),o=V_(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=B_(e,t,`top`),r=V_(e),i=V_(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function B_(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function V_(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var H_=`data-composite-item-active`;function U_(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=Yr}=e,[p,m]=v.useState(0),h=r!=null,g=v.useRef(null),_=Fr(g,c),y=v.useRef([]),b=v.useRef(!1),x=v.useRef(null),S=o??p,C=Z((e,t=!1)=>{if(x.current=y.current[e]??null,(s??m)(e),t){let t=y.current[e];z_(g.current,t,a,n)}}),w=Z(e=>{if(e.size===0)return;if(b.current){let e=y.current,t=e.indexOf(x.current);if(t===-1){let t=e[S];!t||Js(e,S,d)?C(W_(e,d)):x.current=t}else t!==S&&C(t);return}b.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)C(i);else if(Js(t,S,d)){let e=qs(t,{disabledIndices:d});Us(t,e)||C(e)}z_(g.current,r,a,n)});Y(()=>{if(d==null||o!=null||!b.current)return;let e=y.current;if(Js(e,S,d)){let t=qs(e,{disabledIndices:d});Us(e,t)||C(t)}},[d,o,S,y,C]);let T=Z((e,t,n)=>i?i(e,t,n,y):n),E=Z(e=>{let o=e.key===`Home`||e.key===`End`;if(!F_.has(e.key)||!l&&o||G_(e,f)||!g.current)return;let s=a===`rtl`,c=s?N_:P_,p=s?P_:N_,m=n===`vertical`?M_:c,_=n===`vertical`?j_:p,v=ss(e.nativeEvent);if(v!=null&&R_(v)&&!A_(v)){let t=v.selectionStart,n=v.selectionEnd,r=v.value;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==m&&t>0)return}let b=S,x=Ws(y,d),w=Gs(y,d);r!=null&&(b=r({disabledIndices:d,elementsRef:y,event:e,highlightedIndex:S,loopFocus:t,maxIndex:w,minIndex:x,onLoop:T,orientation:n,rtl:s}));let E=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,D=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?b=x:e.key===`End`&&(b=w)),b===S&&(E||D)&&(t&&b===w&&E?(b=x,i&&(b=i(e,S,b,y))):t&&b===x&&D?(b=w,i&&(b=i(e,S,b,y))):b=qs(y.current,{startingIndex:b,decrement:D,disabledIndices:d})),b!==S&&!Us(y.current,b)&&(u&&e.stopPropagation(),(h||o||E||D)&&e.preventDefault(),C(b,!0),queueMicrotask(()=>{y.current[b]?.focus()}))});return{props:{ref:_,onFocus(e){let t=g.current,n=ss(e.nativeEvent);t&&n!=null&&R_(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:E},highlightedIndex:S,onHighlightedIndexChange:C,elementsRef:y,onMapChange:w,relayKeyboardEvent:E}}function W_(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!Js(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function G_(e,t){for(let n of I_)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function K_(e){let{render:t,className:n,style:r,refs:i=Yr,props:a=Yr,state:o=Xr,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:y,modifierKeys:b,highlightItemOnHover:x=!1,tag:S=`div`,...C}=e,{props:w,highlightedIndex:T,onHighlightedIndexChange:E,elementsRef:D,onMapChange:O,relayKeyboardEvent:k}=U_({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:td(),disabledIndices:y,modifierKeys:b}),A=mi(S,e,{state:o,ref:i,props:[w,...a,C],stateAttributesMapping:s}),j=v.useMemo(()=>({highlightedIndex:T,onHighlightedIndexChange:E,highlightItemOnHover:x,relayKeyboardEvent:k}),[T,E,x,k]);return(0,J.jsx)(Km.Provider,{value:j,children:(0,J.jsx)(d_,{elementsRef:D,onMapChange:e=>{h?.(e),O(e)},children:A})})}function q_(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=qm(),{ref:i,index:a}=v_(e),o=n===a,s=v.useRef(null),c=Fr(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}var J_=`overflow-hidden rounded-lg bg-kumo-base shadow-xs ring ring-kumo-line`,Y_=`flex w-full flex-col overflow-hidden rounded-lg bg-kumo-elevated text-base ring ring-kumo-hairline`,X_=`-my-2 flex items-center gap-2 bg-kumo-elevated p-4 text-base font-medium text-kumo-subtle`,Z_=`relative flex flex-col gap-2 overflow-hidden rounded-lg bg-kumo-base p-4 pr-3 text-inherit no-underline ring ring-kumo-fill`;function Q_(e={}){return q(J_)}function $_(e){return v.Children.toArray(e).some(e=>(0,v.isValidElement)(e)?e.type===nv||e.type===tv||e.type===v.Fragment&&$_(e.props.children):!1)}var ev=(0,v.forwardRef)(function({children:e,className:t,render:n,...r},i){return wi({defaultTagName:`div`,render:n,ref:i,props:ti({className:q($_(e)?Y_:Q_(),t)},r,{children:e})})});function tv({children:e,className:t,...n}){return(0,J.jsx)(`div`,{className:q(X_,t),...n,children:e})}function nv({children:e,className:t,...n}){return(0,J.jsx)(`div`,{className:q(Z_,t),...n,children:e})}ev.displayName=`LayerCard`,tv.displayName=`LayerCard.Secondary`,nv.displayName=`LayerCard.Primary`;var rv=Object.assign(ev,{Primary:nv,Secondary:tv});function iv(e=2e3){let[t,n]=(0,v.useState)(!1),r=(0,v.useRef)(null),i=(0,v.useRef)(0);return(0,v.useEffect)(()=>()=>{i.current+=1,r.current!==null&&clearTimeout(r.current)},[]),{copied:t,runCopy:(0,v.useCallback)(async(t,a)=>{let o=++i.current;r.current!==null&&(clearTimeout(r.current),r.current=null);try{return await t(()=>i.current===o),i.current===o&&(n(!0),r.current=setTimeout(()=>{i.current===o&&(n(!1),r.current=null)},e),!0)}catch(e){return i.current===o&&(n(!1),a?.(e)),!1}},[e]),reset:(0,v.useCallback)(()=>{i.current+=1,r.current!==null&&(clearTimeout(r.current),r.current=null),n(!1)},[])}}var av=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),ov=(e,t)=>(Math.random()*(t-e)+e).toFixed(2),sv=({minWidth:e=30,maxWidth:t=100,minDuration:n=1.3,maxDuration:r=1.7,minDelay:i=0,maxDelay:a=.5,blockHeight:o,className:s})=>{let{width:c,duration:l,delay:u}=(0,v.useMemo)(()=>({width:av(e,t),duration:ov(n,r),delay:ov(i,a)}),[e,t,n,r,i,a]),d={"--skeleton-width":`${c}%`,"--shimmer-duration":`${l}s`,"--shimmer-delay":`${u}s`},f=(0,J.jsx)(`div`,{className:q(`skeleton-line`,s),style:d});if(o!==void 0){let e=typeof o==`number`?`${o}px`:o;return(0,J.jsx)(`div`,{className:`flex items-center`,style:{height:e},children:f})}return f};function cv(e){let[t,n]=v.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}var lv=v.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return mi(`div`,e,{state:{orientation:i},ref:t,props:[{role:`presentation`},o]})});lv.displayName=`ListboxSeparator`;function uv(e,t){return Math.max(0,e-t)}function dv(e,t){if(t<=0)return 0;let n=gh(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var fv=`base-ui-disable-scrollbar`,pv={className:fv,getElement(e){return(0,J.jsx)(`style`,{nonce:e,href:fv,precedence:`base-ui:low`,children:`.${fv}{scrollbar-width:none}.${fv}::-webkit-scrollbar{display:none}`})}};pv.getElement.displayName=`styleDisableScrollbar.getElement`;var mv=v.createContext(void 0);mv.displayName=`CSPContext`;var hv={disableStyleElements:!1};function gv(){return v.useContext(mv)??hv}var _v=v.createContext(void 0);_v.displayName=`SelectRootContext`;var vv=v.createContext(void 0);vv.displayName=`SelectFloatingContext`;function yv(){let e=v.useContext(_v);if(e===void 0)throw Error(`Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.`);return e}function bv(){let e=v.useContext(vv);if(e===void 0)throw Error(`Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.`);return e}var xv={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,multiple:e=>e.multiple,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,highlightItemOnHover:e=>e.highlightItemOnHover,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:o_(t,r)!==``},hasNullItemLabel:(e,t)=>t?i_(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>Kg(t,e,n)):Kg(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function Sv(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:_,items:y,multiple:b=!1,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C=Gg,highlightItemOnHover:w=!0,children:T}=e,{clearErrors:E}=pm(),{setDirty:D,setTouched:O,setFocused:k,validityData:A,setFilled:j,name:M,disabled:N,validation:P,validationMode:F}=lm(),I=Mm({id:t}),L=N||d,R=M??c,[z,B]=Fm({controlled:n,default:b?r??Yr:r,name:`Select`,state:`value`}),[ee,V]=Fm({controlled:a,default:o,name:`Select`,state:`open`}),H=v.useRef([]),te=v.useRef([]),ne=v.useRef(null),U=v.useRef(null),re=v.useRef(0),ie=v.useRef(null),ae=v.useRef([]),oe=v.useRef(!1),W=v.useRef(null),G=v.useRef(null),se=v.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ce=v.useRef(!1),le=v.useRef(z),{openMethod:ue,triggerProps:de}=Cg(ee),K=Pr(()=>new Fl({id:I,labelId:void 0,modal:m,multiple:b,disabled:L,readOnly:f,required:p,highlightItemOnHover:w,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C,value:z,open:ee,mounted:ee,transitionStatus:void 0,items:y,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:Xr,triggerProps:Xr,itemRoot:{props:Xr,multiple:b,disabled:L,readOnly:f,isItemEqualToValue:C},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Jr,setOpen:Jr,handleScrollArrowVisibility:Jr,onOpenChangeComplete:Jr,listRef:H,popupRef:ne,scrollHandlerRef:U,scrollArrowsMountedCountRef:re,valueRef:ie,valuesRef:ae,labelsRef:te,typingRef:oe,selectionRef:se,firstItemTextRef:W,selectedItemTextRef:G,alignItemWithTriggerActiveRef:ce,initialValueRef:le},xv)).current,[fe,pe]=v.useState(!1),{mounted:me,transitionStatus:he,forceUnmount:ge}=cu({open:ee,ref:ne,preventUnmountOnClose:fe,setPreventUnmountOnClose:pe,onUnmount(){K.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),_?.(!1)}}),_e=K.useState(`activeIndex`),ve=K.useState(`selectedIndex`),ye=K.useState(`triggerElement`),be=K.useState(`positionerElement`),xe=cv(ue),Se=ue??xe,Ce=v.useMemo(()=>b?``:o_(z,S),[b,z,S]),we=v.useMemo(()=>b&&Array.isArray(z)?z.map(e=>o_(e,S)):o_(z,S),[b,z,S]);Nm(Hl(ye),I,z,Z(()=>we),!L,c);let Te=b?Array.isArray(z)&&z.length>0:z!=null&&Ce!==``;Y(()=>{j(Te)},[Te,j]),Y(function(){let e=Zg(ae.current,z,C,b);e===null&&(G.current=null),!ee&&K.set(`selectedIndex`,e)},[b,ee,z,C,K]),Pm(z,()=>{E(R),D(qg(z,A.initialValue,C)),P.change(z)});let Ee=Z((e,t)=>{let n=t,r=hu(n);s?.(e,n),!t.isCanceled&&(e||pe(r()),V(e),e||t.reason!==`focus-out`&&t.reason!==`outside-press`||(O(!0),k(!1),F===`onBlur`&&P.commit(z)))});v.useImperativeHandle(h,()=>({unmount:ge,close:()=>{K.state.open&&Ee(!1,bc(Pc))}}),[ge,Ee,K]);let De=Z((e,t)=>{i?.(e,t),!t.isCanceled&&B(e)}),Oe=Z(e=>{let t=uv(e.scrollHeight,e.clientHeight),n=dv(e.scrollTop,t),r=n>0,i=n<t;K.set(`scrollUpArrowVisible`,r),K.set(`scrollDownArrowVisible`,i)}),ke=mh({open:ee,onOpenChange:Ee,elements:{reference:ye,floating:be}}),Ae=Ig(ke,{enabled:!L,event:`mousedown`}),je=ou(ke),Me=Ug(ke,{enabled:!L,listRef:H,activeIndex:_e,selectedIndex:ve,disabledIndices:Yr,onNavigate(e){(e!==null||ee)&&K.set(`activeIndex`,e)},focusItemOnHover:w}),Ne=y_(ke,{enabled:!L&&(ee||!f&&!b),listRef:te,activeIndex:_e,selectedIndex:ve,disabledIndices:e=>A_(H.current[e]),onMatch(e){ee?K.set(`activeIndex`,e):De(ae.current[e],bc(xc))},onTyping(e){oe.current=e}}),Pe=v.useMemo(()=>ti(Ne.reference,Me.reference,je.reference,Ae.reference,de),[Ae.reference,Ne.reference,Me.reference,je.reference,de]),Fe=v.useMemo(()=>ti(lu,Ne.floating,Me.floating,je.floating),[Ne.floating,Me.floating,je.floating]),Ie=Me.item??Xr,Le=v.useMemo(()=>({props:Ie,multiple:b,disabled:L,readOnly:f,isItemEqualToValue:C}),[Ie,b,L,f,C]);K.useContextCallback(`setValue`,De),K.useContextCallback(`setOpen`,Ee),K.useContextCallback(`handleScrollArrowVisibility`,Oe),K.useContextCallback(`onOpenChangeComplete`,_),Wg(()=>{K.update({popupProps:Fe,triggerProps:Pe,itemRoot:Le})}),K.useSyncedValues({id:I,modal:m,multiple:b,disabled:L,readOnly:f,required:p,highlightItemOnHover:w,value:z,open:ee,mounted:me,transitionStatus:he,popupProps:Fe,triggerProps:Pe,itemRoot:Le,items:y,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C,openMethod:Se});let Re=Fr(g,P.inputRef),ze=b?void 0:R,Be=v.useMemo(()=>!b||!Array.isArray(z)||!R?null:z.map(e=>{let t=o_(e,S);return(0,J.jsx)(`input`,{type:`hidden`,form:l,name:R,value:t,disabled:L},t)}),[b,z,l,R,S,L]);return(0,J.jsxs)(_v.Provider,{value:K,children:[(0,J.jsx)(vv.Provider,{value:ke,children:T}),(0,J.jsx)(`input`,{...P.getValidationProps(L,{onFocus(){K.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||L||f)return;let t=e.currentTarget.value,n=bc(xc,e.nativeEvent);function r(){if(b)return;let e=t.toLowerCase(),r=ae.current.findIndex(t=>o_(t,S).toLowerCase()===e||a_(t,x).toLowerCase()===e);r===-1&&(r=ae.current.findIndex((t,n)=>{let r=te.current[n];return r!=null&&r.toLowerCase()===e}));let i=ae.current[r];i!=null&&De(i,n)}K.set(`forceMount`,!0),queueMicrotask(r)}}),id:I&&ze==null?`${I}-hidden-input`:void 0,form:l,name:ze,autoComplete:u,value:Ce,disabled:L,required:p&&!(b&&Te),readOnly:f,ref:Re,style:R?Wc:Uc,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Be]})}var Cv=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let s=lm(),c=yv(),l=c.useState(`triggerElement`),u=c.useState(`id`),d=mm({id:b_(u),fallbackControlId:l?.id??u,setLabelId(e){let t=typeof e==`function`?e(c.state.labelId):e;c.set(`labelId`,t)}});return mi(`div`,e,{ref:t,state:s.state,props:[d,a],stateAttributesMapping:om})});Cv.displayName=`SelectLabel`;var wv=`data-popup-side`,Tv=400,Ev={...As,...om,popupSide:e=>e?{[wv]:e}:null,value:()=>null},Dv=v.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{setTouched:l,validationMode:u,validation:d,state:f,disabled:p}=lm(),{labelId:m}=dm(),h=yv(),g=h.useState(`readOnly`),_=h.useState(`required`),y=h.useState(`disabled`),b=p||y||a,x=h.useState(`open`),S=h.useState(`mounted`),C=h.useState(`value`),w=h.useState(`triggerProps`),T=h.useState(`positionerElement`),E=h.useState(`listElement`),D=h.useState(`popupSide`),O=h.useState(`id`),k=h.useState(`labelId`),A=h.useState(`hasSelectedValue`),j=S&&T?D:null,M=i??O,N=x_(m,k);Mm({id:i});let P=Hl(T),F=v.useRef(null),I=Gm(b,F),{getButtonProps:L,buttonRef:R}=Xm({disabled:b,native:o}),z=h.useStateSetter(`triggerElement`),B=Vl(),ee=Vl(),V=Vl();v.useEffect(()=>{if(x)return V.start(Tv,()=>{h.context.selectionRef.current.allowUnselectedMouseUp=!0,h.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{V.clear()};h.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ee.clear()},[x,h,ee,V]);let H=ti(w,{id:M,role:`combobox`,"aria-expanded":x,"aria-haspopup":`listbox`,"aria-controls":x?E?.id??Vs(T)?.id:void 0,"aria-labelledby":N,"aria-readonly":g||void 0,"aria-required":_||void 0,tabIndex:b?-1:0,onFocus(e){I(!0),x&&h.context.alignItemWithTriggerActiveRef.current&&h.context.setOpen(!1,bc(xc,e.nativeEvent)),B.start(0,()=>{h.set(`forceMount`,!0)})},onBlur(e){X(T,e.relatedTarget)||(l(!0),I(!1),u===`onBlur`&&d.commit(C))},onMouseDown(e){if(x)return;let t=Hs(e.currentTarget);function n(e){if(!F.current)return;let t=e.target;X(F.current,t)||X(P.current,t)||C_(e,F.current)||h.context.setOpen(!1,bc(Ac,e))}ee.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},c,L),te=d.getValidationProps(b,H);te.role=`combobox`;let ne={...f,open:x,disabled:b,value:C,readOnly:g,popupSide:j,placeholder:!A};return mi(`button`,e,{ref:[t,F,R,z],state:ne,stateAttributesMapping:Ev,props:te})});Dv.displayName=`SelectTrigger`;var Ov={value:()=>null},kv=v.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=yv(),l=c.useState(`value`),u=c.useState(`items`),d=c.useState(`itemToStringLabel`),f=c.useState(`hasSelectedValue`),p=!f&&a!=null&&i==null,m=c.useState(`hasNullItemLabel`,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(p&&!m?a:Array.isArray(l)?c_(l,u,d):s_(l,u,d)),mi(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:Ov})});kv.displayName=`SelectValue`;var Av=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return mi(`span`,e,{state:{open:yv().useState(`open`)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:ks})});Av.displayName=`SelectIcon`;var jv=v.forwardRef(function(e,t){let n=yv(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,J.jsx)(Tl,{ref:t,...e}):null});jv.displayName=`SelectPortal`;var Mv=v.createContext(void 0);Mv.displayName=`SelectPositionerContext`;function Nv(){let e=v.useContext(Mv);if(!e)throw Error(`Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.`);return e}function Pv(e,t){e&&Object.assign(e.style,t)}var Fv={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Iv={position:`fixed`},Lv=v.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=vl,style:_,...y}=e,b=yv(),x=bv(),S=b.useState(`open`),C=b.useState(`mounted`),w=b.useState(`modal`),T=b.useState(`value`),E=b.useState(`openMethod`),D=b.useState(`positionerElement`),O=b.useState(`triggerElement`),k=b.useState(`isItemEqualToValue`),A=b.useState(`transitionStatus`),j=v.useRef(null),M=v.useRef(null),[N,P]=v.useState(h),F=C&&N&&E!==`touch`;!C&&N!==h&&P(h),v.useImperativeHandle(b.context.alignItemWithTriggerActiveRef,()=>F),D_((F||w)&&S,E===`touch`,D,O);let I=gd({anchor:n,floatingRootContext:x,positionMethod:a,mounted:C,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??F,collisionAvoidance:g,keepMounted:!0}),L=F?`none`:I.side,R=F?Iv:I.positionerStyles,z={open:S,side:L,align:I.align,anchorHidden:I.anchorHidden};Y(()=>{b.set(`popupSide`,I.side)},[b,I.side]);let B=bd(e,z,{styles:R,transitionStatus:A,props:y,refs:[t,b.useStateSetter(`positionerElement`)],hidden:!C,inert:!S}),ee=v.useRef(0),V=Z(e=>{if(b.context.valuesRef.current.length===0)return;let t=ee.current;ee.current=e.size;let n=bc(xc);if(t!==0&&!b.state.multiple&&T!==null&&Yg(b.context.valuesRef.current,T,k)===-1){let e=b.context.initialValueRef.current,t=e!=null&&Yg(b.context.valuesRef.current,e,k)!==-1?e:null;b.context.setValue(t,n),t===null&&(b.set(`selectedIndex`,null),b.context.selectedItemTextRef.current=null)}if(t!==0&&b.state.multiple&&Array.isArray(T)){let e=T.filter(e=>Yg(b.context.valuesRef.current,e,k)!==-1);e.length!==T.length&&(b.context.setValue(e,n),e.length===0&&(b.set(`selectedIndex`,null),b.context.selectedItemTextRef.current=null))}if(S&&F){b.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Pv(D,e),Pv(b.context.popupRef.current,e)}}),H=v.useMemo(()=>({...I,side:L,alignItemWithTriggerActive:F,setControlledAlignItemWithTrigger:P,scrollUpArrowRef:j,scrollDownArrowRef:M}),[I,L,F,P]);return(0,J.jsx)(d_,{elementsRef:b.context.listRef,labelsRef:b.context.labelsRef,onMapChange:V,children:(0,J.jsxs)(Mv.Provider,{value:H,children:[C&&w&&(0,J.jsx)(wg,{inert:hh(!S),cutout:O}),B]})})});Lv.displayName=`SelectPositioner`;var Rv=`--transform-origin`,zv={...js,...vs},Bv=v.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,s=yv(),c=s.useState(`multiple`),l=s.useState(`readOnly`),u=s.useState(`highlightItemOnHover`),d=bv(),{side:f,align:p,alignItemWithTriggerActive:m,isPositioned:h,setControlledAlignItemWithTrigger:g}=Nv(),_=k_(!0)!=null,y=td(),{nonce:b,disableStyleElements:x}=gv(),S=s.useState(`id`),C=s.useState(`open`),w=s.useState(`openMethod`),T=s.useState(`mounted`),E=s.useState(`popupProps`),D=s.useState(`transitionStatus`),O=s.useState(`triggerElement`),k=s.useState(`positionerElement`),A=s.useState(`listElement`),j=v.useRef(!1),M=v.useRef(!1),N=v.useRef({}),P=Jl(),F=Z(e=>{if(!k||!s.context.popupRef.current||!M.current)return;let t=k.style.top===`0px`,n=k.style.bottom===`0px`;if(j.current||!m||!t&&!n){s.context.handleScrollArrowVisibility(e);return}let r=Uv(k),i=Wv(k.getBoundingClientRect().height,`y`,r),a=Hs(k),o=Vi(k),c=o.getComputedStyle(k),l=parseFloat(c.marginTop),u=parseFloat(c.marginBottom),d=Vv(o.getComputedStyle(s.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=Hv(e),g=null,_=e=>{k.style.height=`${e}px`},v=t?h-p:p,y=Math.min(i+v,f);if(v<=1){let n=gh(v,0,f-i);n>0&&_(i+n),e.scrollTop=t?h:0,f-(i+n)<=1&&(j.current=!0),s.context.handleScrollArrowVisibility(e);return}f-y>1?g=t?1/0:0:n&&p<h&&(g=p-(v-(i+v-f)));let b=Math.ceil(y);if(b!==0&&_(b),g!=null){let t=gh(g,0,Hv(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}b>=f-1&&(j.current=!0),s.context.handleScrollArrowVisibility(e)});v.useImperativeHandle(s.context.scrollHandlerRef,()=>F,[F]),eu({open:C,ref:s.context.popupRef,onComplete(){C&&s.context.onOpenChangeComplete(!0)}});let I={open:C,transitionStatus:D,side:f,align:p};Y(()=>{k&&s.context.popupRef.current&&!Object.keys(N.current).length&&(N.current={top:k.style.top||`0`,left:k.style.left||`0`,right:k.style.right,height:k.style.height,bottom:k.style.bottom,minHeight:k.style.minHeight,maxHeight:k.style.maxHeight,marginTop:k.style.marginTop,marginBottom:k.style.marginBottom})},[s,k]),Y(()=>{C||m||(M.current=!1,j.current=!1,Pv(k,N.current))},[C,m,k]),Y(()=>{let e=s.context.popupRef.current;if(!C||!O||!k||!e||m&&!h||s.state.transitionStatus===`ending`)return;if(M.current=!0,e.style.removeProperty(Rv),!m){P.request(()=>s.context.handleScrollArrowVisibility(A||e));return}let t=qv(e);try{let t=s.context.selectedItemTextRef.current;t?.isConnected||(t=!s.select(`hasSelectedValue`)&&s.context.firstItemTextRef.current?.isConnected?s.context.firstItemTextRef.current:null);let n=s.context.valueRef.current,r=Vi(k),i=r.getComputedStyle(k),a=r.getComputedStyle(e),o=Hs(O),c=Uv(O),l=Gv(O.getBoundingClientRect(),c),d=Gv(k.getBoundingClientRect(),c),f=l.height,p=A||e,m=p.scrollHeight,h=parseFloat(a.borderBottomWidth),_=parseFloat(i.marginTop)||10,v=parseFloat(i.marginBottom)||10,b=parseFloat(i.minHeight)||100,x=Vv(a),S=o.documentElement.clientHeight-_-v,C=o.documentElement.clientWidth,w=S-l.bottom+f,T,E=y===`rtl`?l.right-d.width:l.left,D=0;if(t&&n){let e=Gv(n.getBoundingClientRect(),c);T=Gv(t.getBoundingClientRect(),c),E=d.left+(y===`rtl`?e.right-T.right:e.left-T.left);let r=e.top-l.top+e.height/2;D=T.top-d.top+T.height/2-r}let M=w+D+v+h,P=Math.min(S,M),F=S-_-v,I=M-P,L=C-5;k.style.left=`${gh(E,5,L-d.width)}px`,k.style.height=`${P}px`,k.style.maxHeight=`none`,k.style.marginTop=`${_}px`,k.style.marginBottom=`${v}px`,e.style.height=`100%`;let R=Hv(p),z=I>=R-1;z&&(P=Math.min(S,d.height)-(I-R));let B=l.top<20||l.bottom>S-20||Math.ceil(P)+1<Math.min(m,b),ee=(r.visualViewport?.scale??1)!==1&&yc;if(B||ee){Pv(k,N.current),g(!1);return}let V=Math.max(b,P);if(z){let e=Math.max(0,S-M);k.style.top=d.height>=F?`0`:`${e}px`,k.style.height=`${P}px`,p.scrollTop=Hv(p)}else k.style.bottom=`0`,p.scrollTop=I;if(T){let t=d.top,n=d.height,r=T.top+T.height/2,i=gh(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(Rv,`50% ${i}%`)}(V===S||P>=x)&&(j.current=!0),s.context.handleScrollArrowVisibility(p),u&&s.state.selectedIndex===null&&s.state.activeIndex===null&&s.context.listRef.current[0]!=null&&s.set(`activeIndex`,0)}finally{t()}},[s,C,k,O,m,g,P,A,u,y,h]),v.useEffect(()=>{if(!m||!k||!C)return;let e=Vi(k);function t(e){s.context.setOpen(!1,bc(Fc,e))}return Ic(e,`resize`,t)},[s,m,k,C]);let L={...A?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":c||void 0,"aria-readonly":l||void 0,id:`${S}-list`},onKeyDown(e){_&&F_.has(e.key)&&e.stopPropagation()},onScroll(e){A||F(e.currentTarget)},...m&&{style:A?{height:`100%`}:Fv},className:!A&&m?pv.className:void 0},R=mi(`div`,e,{ref:[t,s.context.popupRef],state:I,stateAttributesMapping:zv,props:[E,L,yd(D),o]});return(0,J.jsxs)(v.Fragment,{children:[!x&&pv.getElement(b),(0,J.jsx)(bg,{context:d,modal:!1,disabled:!T,openInteractionType:w,returnFocus:a,restoreFocus:!0,children:R})]})});Bv.displayName=`SelectPopup`;function Vv(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function Hv(e){return uv(e.scrollHeight,e.clientHeight)}function Uv(e){return bo.getScale(e)}function Wv(e,t,n){return e/n[t]}function Gv(e,t){return Ia({x:Wv(e.x,`x`,t),y:Wv(e.y,`y`,t),width:Wv(e.width,`x`,t),height:Wv(e.height,`y`,t)})}var Kv=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function qv(e){let{style:t}=e,n={};for(let[e,r]of Kv)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Kv){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var Jv=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=yv(),s=o.useState(`multiple`),c=o.useState(`readOnly`),{alignItemWithTriggerActive:l}=Nv(),u=o.useState(`hasScrollArrows`),d=o.useState(`openMethod`),f={id:`${o.useState(`id`)}-list`,role:`listbox`,"aria-multiselectable":s||void 0,"aria-readonly":c||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...l&&{style:Fv},className:u&&d!==`touch`?pv.className:void 0};return mi(`div`,e,{ref:[t,o.useStateSetter(`listElement`)],props:[f,a]})});Jv.displayName=`SelectList`;var Yv=v.createContext(void 0);Yv.displayName=`SelectItemContext`;function Xv(){let e=v.useContext(Yv);if(!e)throw Error(`Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.`);return e}var Zv=v.memo(v.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=v.useRef(null),d=v_({guess:!0,label:o,textRef:u}),f=yv(),{props:p,multiple:m,disabled:h,readOnly:g,isItemEqualToValue:_}=f.useState(`itemRoot`),y=h||s,b=f.useState(`isActive`,d.index),x=f.useState(`open`),S=f.useState(`isSelected`,a),C=f.useState(`isSelectedByFocus`,d.index),w=d.index,T=v.useRef(null);Y(()=>{let e=f.context.valuesRef.current;return e[w]=a,()=>{delete e[w]}},[w,a,f]),Y(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=Qg(w,a,f.context.valuesRef.current,e,_,t),r=n===w,w===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&Kg(a,e,_),r&&(n=w)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[w,m,_,f,a]);let E=v.useRef(`mouse`),D=v.useRef(!1),{getButtonProps:O,buttonRef:k}=Xm({disabled:y,focusableWhenDisabled:!0,native:c,composite:!0}),A={disabled:y,selected:S,highlighted:b};function j(e){if(h||g)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=S?$g(n,a,_):[...n,a];f.context.setValue(r,bc(Ec,e))}else f.context.setValue(a,bc(Ec,e)),f.context.setOpen(!1,bc(Ec,e))}function M(){f.context.selectionRef.current.dragY=0}let N={role:`option`,"aria-selected":S,tabIndex:x&&b?0:-1,onKeyDown(e){f.set(`activeIndex`,w),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=E.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&ts(e.nativeEvent)&&(n!==void 0||b),i=t&&!r&&!D.current;D.current=!1,!(y||i)&&j(e.nativeEvent)},onPointerEnter(e){E.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=f.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){E.current=e.pointerType,D.current=!0,M()},onMouseUp(){if(M(),y||E.current===`touch`||D.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&S,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!S;e||t||(D.current=!0,T.current?.click(),D.current=!1)}},P=mi(`div`,e,{ref:[k,t,d.ref,T],state:A,props:[p,N,l,O]}),F=v.useMemo(()=>({selected:S,index:w,textRef:u,selectedByFocus:C}),[S,w,u,C]);return(0,J.jsx)(Yv.Provider,{value:F,children:P})}));Zv.displayName=`SelectItem`;var Qv=v.forwardRef(function(e,t){let{selected:n}=Xv();return e.keepMounted||n?(0,J.jsx)(T_,{...e,selected:n,ref:t}):null});Qv.displayName=`SelectItemIndicator`;var $v=v.memo(v.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=Xv(),a=yv(),{render:o,className:s,style:c,...l}=e;return mi(`div`,e,{ref:[v.useCallback(e=>{e&&(n===0&&(a.context.firstItemTextRef.current=e),i&&(a.context.selectedItemTextRef.current=e))},[a,n,i]),t,r],props:l})}));$v.displayName=`SelectItemText`;var ey=v.createContext(void 0);ey.displayName=`SelectGroupContext`;function ty(){let e=v.useContext(ey);if(e===void 0)throw Error(`Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.`);return e}var ny=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=v.useState(),c=v.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=mi(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,J.jsx)(ey.Provider,{value:c,children:l})});ny.displayName=`SelectGroup`;var ry=v.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=ty(),c=Qu(a);return Y(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),mi(`div`,e,{ref:t,props:[{id:c,"aria-hidden":!0},o]})});ry.displayName=`SelectGroupLabel`;var iy=lv;Eh.size;var ay={size:`base`};function oy({size:e=ay.size}={}){return q(xp({size:e}),`bg-kumo-control disabled:bg-kumo-control/50 data-[state=open]:bg-kumo-control`,`justify-between font-normal`,`focus:opacity-100 focus:ring-kumo-focus/50 focus-visible:ring-inset *:in-focus:opacity-100`)}var sy={xs:{iconSize:12,className:`text-kumo-subtle`},sm:{iconSize:14,className:`text-kumo-subtle`},base:{iconSize:16,className:`text-kumo-subtle`},lg:{iconSize:18,className:`text-kumo-subtle`}};function cy(e){if(typeof e!=`object`||!e||Array.isArray(e)||`$$typeof`in e||e instanceof Promise)return!1;let t=e;return`label`in t&&t.label!==void 0}function ly(e){return Array.isArray(e)?e:Object.entries(e).map(([e,t])=>({value:e,label:cy(t)?t.label:t}))}function uy(e){let t=ly(e),n=new Map;if(!Array.isArray(e))for(let[t,r]of Object.entries(e))cy(r)&&n.set(t,{disabled:r.disabled});return t.filter(e=>e.value!==null).map((e,t)=>{let r=typeof e.value==`string`?e.value:`option-${t}`,i=typeof e.value==`string`?n.get(e.value):void 0;return(0,J.jsx)(fy,{value:e.value,disabled:i?.disabled,children:e.label},r)})}function dy({children:e,className:t,render:n,renderValue:r,label:i,hideLabel:a,placeholder:o,loading:s,size:c=ay.size,labelTooltip:l,description:u,error:d,required:f,container:p,side:m=`bottom`,sideOffset:h=4,align:g=`start`,alignOffset:_,alignItemWithTrigger:y=!1,anchor:b,arrowPadding:x,positionMethod:S,collisionAvoidance:C,collisionBoundary:w,collisionPadding:T,sticky:E,disableAnchorTracking:D,...O}){let k=(0,v.useId)(),A=Ii(),j=p??A??void 0,M=O,N=M[`aria-label`],P=M[`aria-labelledby`],F=typeof i==`string`?i:o;a!==void 0&&console.warn('[Kumo Select]: `hideLabel` is deprecated. For hidden labels, use `aria-label` instead of `label` + `hideLabel={true}`.\n Migration:\n - For visible labels: <Select label="Country" /> (hideLabel no longer needed)\n - For hidden labels: <Select aria-label="Select a country" /> (remove label and hideLabel)');let I=i&&a!==!0,L=I?void 0:P??(i?k:void 0),R=N??(L?void 0:F),z=O.items?ly(O.items):void 0,B=e||(O.items?uy(O.items):null),ee=r?e=>{let t=o==null?null:(0,J.jsx)(`span`,{className:`text-kumo-placeholder`,children:o});return e==null||e===``?t:r(e)??t}:void 0,{items:V,...H}=O,te=i?(0,J.jsx)(Cv,{className:`m-0 text-base font-medium text-kumo-default select-none`,children:(0,J.jsx)(Xp,{showOptional:f===!1,tooltip:a?void 0:l,asContent:!0,children:i})}):null,ne=(0,J.jsxs)(Dv,{"data-kumo-component":`Select`,"data-kumo-part":`trigger`,render:n,className:q(oy({size:c}),O.disabled&&`cursor-not-allowed opacity-50`,d&&`!ring-kumo-danger focus:ring-[1.5px] focus:ring-kumo-danger/50`,t),"aria-label":R,"aria-labelledby":L,children:[s?(0,J.jsx)(sv,{className:`w-32`}):(0,J.jsx)(kv,{placeholder:o,className:`min-w-0 truncate data-[placeholder]:text-kumo-placeholder`,children:ee}),(0,J.jsx)(Av,{className:q(`flex shrink-0 items-center`,sy[c].className),children:(0,J.jsx)(Uf,{size:sy[c].iconSize,className:`fill-current`})})]}),U=(0,J.jsxs)(Sv,{...H,items:z,disabled:s||O.disabled,required:f,children:[te,ne,(0,J.jsx)(jv,{container:j,children:(0,J.jsx)(Lv,{side:m,sideOffset:h,align:g,alignOffset:_,alignItemWithTrigger:y,anchor:b,arrowPadding:x,positionMethod:S,collisionAvoidance:C,collisionBoundary:w,collisionPadding:T,sticky:E,disableAnchorTracking:D,children:(0,J.jsx)(Bv,{className:q(`flex flex-col`,`max-h-[var(--available-height)] bg-kumo-base text-kumo-default`,`rounded-lg shadow-lg ring ring-kumo-line`,`max-w-(--available-width) min-w-(--anchor-width) py-1.5`),children:(0,J.jsx)(Jv,{className:q(`min-h-0 flex-1 scroll-pt-2 scroll-pb-2 overflow-y-auto overscroll-none`),children:B})})})})]});if(I)return(0,J.jsx)(Ch,{label:i,required:f,labelTooltip:l,description:u,error:d?typeof d==`string`?{message:d,match:!0}:d:void 0,hideLabel:!0,children:U});let re=d?typeof d==`string`?{message:d,match:!0}:d:void 0;return(0,J.jsxs)(`div`,{className:`grid gap-2`,children:[i&&(0,J.jsx)(`span`,{id:k,className:`sr-only`,children:i}),U,re?(0,J.jsx)(`span`,{className:`text-sm text-kumo-danger`,children:re.message}):u&&(0,J.jsx)(`span`,{className:`text-sm leading-snug text-kumo-subtle`,children:u})]})}function fy({children:e,value:t,disabled:n,className:r}){return(0,J.jsxs)(Zv,{"data-kumo-component":`Select`,"data-kumo-part":`option`,value:t,disabled:n,className:q(`group mx-1.5 flex cursor-pointer items-center justify-between gap-2 rounded px-2 py-1.5 text-base outline-none`,`focus-visible:z-50 focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset`,`data-highlighted:bg-kumo-tint`,`data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,r),children:[(0,J.jsx)($v,{children:e}),(0,J.jsx)(Qv,{children:(0,J.jsx)(Gf,{})})]})}var py=(0,v.forwardRef)(({children:e,className:t},n)=>(0,J.jsx)(ny,{ref:n,className:q(t),children:e}));py.displayName=`Select.Group`;var my=(0,v.forwardRef)(({children:e,className:t},n)=>(0,J.jsx)(ry,{ref:n,className:q(`px-3.5 py-1.5 text-sm font-semibold text-kumo-subtle`,t),children:e}));my.displayName=`Select.GroupLabel`;var hy=(0,v.forwardRef)(({className:e},t)=>(0,J.jsx)(iy,{ref:t,className:q(`my-1 h-px bg-kumo-hairline`,e)}));hy.displayName=`Select.Separator`,dy.Option=fy,dy.Group=py,dy.GroupLabel=my,dy.Separator=hy,dy.Option.displayName=`Select.Option`;var gy=[25,50,100,250],_y=(e,t,n)=>Math.min(Math.max(e,t),n),vy={navigation:`Pagination`,firstPage:`First page`,previousPage:`Previous page`,nextPage:`Next page`,lastPage:`Last page`,pageNumber:`Page number`,pageSize:`Page size`},yy={controls:`full`},by=(0,v.createContext)(null);function xy(){let e=(0,v.useContext)(by);if(!e)throw Error(`Pagination compound components must be used within a Pagination component`);return e}function Sy({children:e,className:t}){let{page:n,perPage:r,totalCount:i,pageShowingRange:a}=xy(),o=e?e({page:n,perPage:r,totalCount:i,pageShowingRange:a}):i&&i>0?(0,J.jsxs)(J.Fragment,{children:[`Showing `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:a}),` of`,` `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:i})]}):null;return(0,J.jsx)(`div`,{"data-slot":`pagination-info`,className:q(`text-sm text-kumo-subtle`,t),children:o})}Sy.displayName=`Pagination.Info`;function Cy({value:e,onChange:t,options:n=gy,label:r=`Per page:`,className:i}){let{labels:a}=xy();return(0,J.jsxs)(`div`,{"data-slot":`pagination-page-size`,className:q(`flex items-center gap-2`,i),children:[r&&(0,J.jsx)(`span`,{className:`text-sm text-kumo-subtle`,children:r}),(0,J.jsx)(dy,{"aria-label":a.pageSize,value:e,onValueChange:e=>t(e),children:n.map(e=>(0,J.jsx)(dy.Option,{value:e,children:e},e))})]})}Cy.displayName=`Pagination.PageSize`;function wy({controls:e=yy.controls,pageSelector:t=`input`,className:n}){let{page:r,totalCount:i,hasNextPage:a,maxPage:o,setPage:s,editingPage:c,setEditingPage:l,labels:u}=xy(),d=i!=null,f=e===`full`&&!(!d&&a!==void 0),p=d?r===o:a!==!0;return(0,J.jsx)(`div`,{"data-slot":`pagination-controls`,className:q(`flex grow flex-col items-end`,n),children:(0,J.jsx)(`nav`,{"aria-label":u.navigation,children:(0,J.jsxs)(Gh,{children:[f&&(0,J.jsx)(Gh.Button,{variant:`secondary`,"aria-label":u.firstPage,disabled:r<=1,onClick:()=>{s(1),l(1)},children:(0,J.jsx)(Lf,{size:16})}),(0,J.jsx)(Gh.Button,{variant:`secondary`,"aria-label":u.previousPage,disabled:r<=1,onClick:()=>{let e=Math.max(r-1,1);s(e),l(e)},children:(0,J.jsx)(Bf,{size:16})}),f&&(t===`dropdown`?(0,J.jsx)(dy,{"aria-label":u.pageNumber,className:`rounded-none ring-kumo-hairline`,value:r,onValueChange:e=>{let t=e;s(t),l(t)},children:Array.from({length:o},(e,t)=>t+1).map(e=>(0,J.jsx)(dy.Option,{value:e,children:e},e))}):(0,J.jsx)(Gh.Input,{style:{width:50},className:`text-center`,"aria-label":u.pageNumber,value:c,onValueChange:e=>{l(Number(e))},onBlur:()=>{let e=_y(c,1,o);s(e),l(e)},onKeyDown:e=>{if(e.key===`Enter`){let e=_y(c,1,o);s(e),l(e)}},autoComplete:`off`,"data-1p-ignore":!0,"data-lpignore":`true`,"data-form-type":`other`})),(0,J.jsx)(Gh.Button,{variant:`secondary`,"aria-label":u.nextPage,disabled:p,onClick:()=>{let e=d?Math.min(r+1,o):r+1;s(e),l(e)},children:(0,J.jsx)(Vf,{size:16})}),f&&(0,J.jsx)(Gh.Button,{variant:`secondary`,"aria-label":u.lastPage,disabled:r===o,onClick:()=>{s(o),l(o)},children:(0,J.jsx)(Rf,{size:16})})]})})})}wy.displayName=`Pagination.Controls`;function Ty({className:e}){return(0,J.jsx)(`div`,{"data-slot":`pagination-separator`,className:q(`mx-2 h-6 border-l border-kumo-hairline`,e)})}Ty.displayName=`Pagination.Separator`;function Ey(e){let{page:t=1,perPage:n,totalCount:r,hasNextPage:i,setPage:a,children:o,className:s,labels:c}=e,l=`text`in e?e.text:void 0,u=`controls`in e?e.controls??yy.controls:yy.controls,[d,f]=(0,v.useState)(1),p=(0,v.useMemo)(()=>({...vy,...c}),[c]);(0,v.useEffect)(()=>{f(t)},[t]);let m=(0,v.useMemo)(()=>{let e=t*(n??1)-(n??0)+1,i=Math.min(t*(n??0),r??0);return Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),`${e}-${i}`},[t,n,r]),h={page:t,perPage:n,totalCount:r,hasNextPage:i,maxPage:(0,v.useMemo)(()=>Math.ceil((r??1)/(n??1)),[r,n]),pageShowingRange:m,setPage:a,editingPage:d,setEditingPage:f,labels:p};return o?(0,J.jsx)(by.Provider,{value:h,children:(0,J.jsx)(`div`,{"data-slot":`pagination`,className:q(`flex w-full items-center gap-2`,s),children:o})}):(0,J.jsx)(by.Provider,{value:h,children:(0,J.jsxs)(`div`,{"data-slot":`pagination`,className:q(`flex w-full items-center gap-2`,s),children:[(0,J.jsx)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,"data-slot":`pagination-info`,className:`grow text-sm text-kumo-subtle`,children:l?l({page:t,perPage:n,totalCount:r,pageShowingRange:m}):r&&r>0?(0,J.jsxs)(J.Fragment,{children:[`Showing `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:m}),` of`,` `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:r})]}):null}),(0,J.jsx)(wy,{controls:u})]})})}Ey.displayName=`Pagination`;var Dy=Object.assign(Ey,{Info:Sy,PageSize:Cy,Controls:wy,Separator:Ty});function Oy(e){let t=ia(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Gi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(fa(n)!==a||fa(r)!==o)&&(n=a,r=o),{width:n,height:r}}var ky=()=>()=>{},Ay=()=>!0,jy=()=>!1;function My(){return(0,al.useSyncExternalStore)(ky,Ay,jy)}function Ny(){let[e,t]=v.useState(!1);return v.useEffect(()=>{t(!0)},[]),e}var Py=Hr(18)?My:Ny;function Fy(){return!Py()}function Iy(e){let{script:t}=e,{nonce:n}=gv();return Fy()?(0,J.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Ly=v.createContext(void 0);Ly.displayName=`TabsRootContext`;function Ry(){let e=v.useContext(Ly);if(e===void 0)throw Error(`Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.`);return e}var zy=`data-activation-direction`,By={tabActivationDirection:e=>({[zy]:e})},Vy=v.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:s,style:c,...l}=e,u=e.defaultValue!==void 0,d=v.useRef([]),[f,p]=v.useState(()=>new Map),[m,h]=Fm({controlled:s,default:r,name:`Tabs`,state:`value`}),g=s!==void 0,[_,y]=v.useState(()=>new Map),b=v.useRef(void 0),x=v.useCallback(e=>Hy(_,e),[_]),[S,C]=v.useState(()=>({previousValue:m,tabActivationDirection:`none`})),{previousValue:w,tabActivationDirection:T}=S,E=T,D=!1;w!==m&&(E=Uy(w,m,a,_),D=w!=null&&m!=null&&x(m)==null);let O=D?w:m,k=w!==O||T!==E;Y(()=>{k&&C({previousValue:O,tabActivationDirection:E})},[O,k,E]);let A=Z((e,t)=>{t.activationDirection=Uy(m,e,a,_),i?.(e,t),!t.isCanceled&&h(()=>e)}),j=Z((e,t)=>{i?.(e,bc(t,void 0,void 0,{activationDirection:`none`}))}),M=Z((e,t)=>(p(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{p(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),N=v.useCallback(e=>f.get(e),[f]),P=v.useCallback(e=>{for(let t of _.values())if(e===t.value)return t.id},[_]),F=v.useMemo(()=>({getTabElementBySelectedValue:x,getTabIdByPanelValue:P,getTabPanelIdByValue:N,onValueChange:A,orientation:a,registerMountedTabPanel:M,setTabMap:y,tabActivationDirection:E,value:m}),[x,P,N,A,a,M,y,E,m]),I=v.useMemo(()=>{for(let e of _.values())if(e.value===m)return e},[_,m]),L=v.useMemo(()=>{for(let e of _.values())if(!e.disabled)return e.value},[_]),R=v.useRef(!u),z=v.useRef(r),B=v.useRef(u),ee=v.useRef(!1);Y(()=>{if(g)return;function e(e,t){h(()=>e),C({previousValue:e,tabActivationDirection:`none`}),j(e,t),R.current=!1}if(_.size===0){ee.current&&m!==null&&!b.current?.isConnected&&e(null,Mc);return}ee.current=!0,b.current=_.keys().next().value;let t=I?.disabled,n=I==null&&m!==null;if(!t&&m===z.current&&(B.current=!1),B.current&&t&&m===z.current)return;let r=R.current;if(t||n){let n=L??null;if(m===n){R.current=!1;return}let i=Mc;r?i=Nc:t&&(i=jc),e(n,i)}else r&&I!=null&&(j(m,Nc),R.current=!1)},[L,g,j,I,h,_,m]);let V=mi(`div`,e,{state:{orientation:a,tabActivationDirection:E},ref:t,props:l,stateAttributesMapping:By});return(0,J.jsx)(Ly.Provider,{value:F,children:(0,J.jsx)(d_,{elementsRef:d,children:V})})});Vy.displayName=`TabsRoot`;function Hy(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function Uy(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=Hy(r,e),c=Hy(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var Wy=v.createContext(void 0);Wy.displayName=`TabsListContext`;function Gy(){let e=v.useContext(Wy);if(e===void 0)throw Error(`Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.`);return e}var Ky=v.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,onValueChange:f,orientation:p,tabActivationDirection:m}=Ry(),{activateOnFocus:h,registerTabResizeObserverElement:g,tabsListElement:_}=Gy(),{highlightedIndex:y,onHighlightedIndexChange:b}=qm(),x=Qu(o),{compositeProps:S,compositeRef:C,index:w}=q_({metadata:v.useMemo(()=>({disabled:r,id:x,value:a}),[r,x,a])}),T=a===u,E=v.useRef(!1),D=v.useRef(null),O=Z(e=>{D.current?.(),D.current=e?g(e):null});Y(()=>{if(E.current){E.current=!1;return}if(!(T&&w>-1&&y!==w))return;let e=_;if(e!=null){let t=as(Hs(e));if(t&&X(e,t))return}r||b(w)},[T,w,y,b,r,_]);let{getButtonProps:k,buttonRef:A}=Xm({disabled:r,native:s,focusableWhenDisabled:!0}),j=d(a),M=v.useRef(!1),N=v.useRef(!1);function P(e){f(a,bc(xc,e.nativeEvent,void 0,{activationDirection:`none`}))}function F(e){T||r||P(e)}function I(e){T||r||h&&(!M.current||N.current)&&P(e)}function L(e){if(T||r)return;M.current=!0,N.current=e.button===0;let t=Hs(e.currentTarget);function n(){M.current=!1,N.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return mi(`button`,e,{state:{disabled:r,active:T,orientation:p,tabActivationDirection:m},ref:[t,A,C,O],props:[S,{role:`tab`,"aria-controls":j,"aria-selected":T,id:x,onClick:F,onFocus:I,onPointerDown:L,[H_]:T?``:void 0,onKeyDownCapture(){E.current=!0}},l,k],stateAttributesMapping:By})});Ky.displayName=`TabsTab`;var qy=`--active-tab-left`,Jy=`--active-tab-right`,Yy=`--active-tab-top`,Xy=`--active-tab-bottom`,Zy=`--active-tab-width`,Qy=`--active-tab-height`,$y,eb={...By,activeTabPosition:()=>null,activeTabSize:()=>null},tb=2,nb=v.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=Ry(),{tabsListElement:d,registerIndicatorUpdateListener:f}=Gy(),p=Gc();v.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,y=0,b=0,x=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){x=!0;let{width:t,height:n}=Oy(e),{width:r,height:i}=Oy(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1,l=rb(e,d);m=l.left,g=l.top;let u=(a.left-o.left)/s+d.scrollLeft-d.clientLeft,f=(a.top-o.top)/c+d.scrollTop-d.clientTop,p=ab(e);Math.abs(u-p.x-m)<=tb&&Math.abs(f-p.y-g)<=tb&&(m=u,g=f),y=t,b=n,h=d.scrollWidth-m-y,_=d.scrollHeight-g-b}}let S=x?{left:m,right:h,top:g,bottom:_}:null,C=x?{width:y,height:b}:null,w=x?{[qy]:`${m}px`,[Jy]:`${h}px`,[Yy]:`${g}px`,[Xy]:`${_}px`,[Zy]:`${y}px`,[Qy]:`${b}px`}:void 0,T=mi(`span`,e,{state:{orientation:c,activeTabPosition:S,activeTabSize:C,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:w,hidden:!(x&&y>0&&b>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:eb});return u==null?null:(0,J.jsxs)(v.Fragment,{children:[T,i&&($y||=(0,J.jsx)(Iy,{script:``}))]})});nb.displayName=`TabsIndicator`;function rb(e,t){let n=ib(e),r=ib(t),i=n.left-r.left-t.clientLeft,a=n.top-r.top-t.clientTop,o=oa(e);for(;Gi(o)&&o!==t&&!ra(o);)i-=o.scrollLeft,a-=o.scrollTop,o=oa(o);return{left:i,top:a}}function ib(e){let t=0,n=0,r=e;for(;r!=null;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;e!=null&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function ab(e){let t=Vi(e).getComputedStyle(e),{x:n,y:r}=_h(e,t),i=n,a=r,{translate:o}=t;if(o&&o!==`none`){let t=o.split(` `);i+=ob(t[0],e.offsetWidth),a+=ob(t[1],e.offsetHeight)}return{x:i,y:a}}function ob(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:0}var sb=v.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{orientation:c,setTabMap:l,tabActivationDirection:u}=Ry(),[d,f]=v.useState(0),[p,m]=v.useState(null),h=v.useRef(new Set),g=v.useRef(new Set),_=v.useRef(null);Y(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{h.current.forEach(e=>{e()})});return _.current=e,p&&e.observe(p),g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),_.current=null}},[p]);let y=Z(e=>(h.current.add(e),()=>{h.current.delete(e)})),b=Z(e=>(g.current.add(e),_.current?.observe(e),()=>{g.current.delete(e),_.current?.unobserve(e)})),x={orientation:c,tabActivationDirection:u},S={"aria-orientation":c===`vertical`?`vertical`:void 0,role:`tablist`},C=v.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:b,tabsListElement:p}),[n,y,b,p]);return(0,J.jsx)(Wy.Provider,{value:C,children:(0,J.jsx)(K_,{render:a,className:r,style:o,state:x,refs:[t,m],props:[S,s],stateAttributesMapping:By,highlightedIndex:d,enableHomeAndEndKeys:!0,loopFocus:i,orientation:c,onHighlightedIndexChange:f,onMapChange:l,disabledIndices:Yr})})});sb.displayName=`TabsList`;var cb={variant:`segmented`,size:`base`},lb={scrollStart:`Scroll tabs left`,scrollEnd:`Scroll tabs right`};function ub({tabs:e,value:t,selectedValue:n,onValueChange:r,activateOnFocus:i,className:a,listClassName:o,indicatorClassName:s,labels:c,variant:l=cb.variant,size:u=cb.size}){let d=e??[];if(d.length===0)return null;let f=d[0]?.value,p=t!==void 0,m={value:p?t:void 0,defaultValue:p?void 0:n??f},h=l===`segmented`,g=l===`underline`,_=u===`sm`,v={...lb,...c},{ref:y,isOverflowing:b,canScrollStart:x,canScrollEnd:S}=hb(!0,d.map(e=>e.value).join(`|`)),C=mb(y,b);return(0,J.jsxs)(Vy,{...m,className:q(`relative isolate min-w-0 font-medium`,h&&(_?`rounded-md`:`rounded-lg`)+` ring ring-kumo-hairline/70`,a),onValueChange:e=>{r?.(String(e))},children:[h&&(0,J.jsx)(`div`,{className:q(`absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-kumo-recessed`,_?`h-6.5`:`h-9`)}),(0,J.jsxs)(sb,{ref:y,activateOnFocus:i,"data-overflowing":b?``:void 0,"data-overflow-start":x?``:void 0,"data-overflow-end":S?``:void 0,...C(),className:q(`kumo-tabs-list relative flex min-w-0 shrink scroll-px-(--scroll-fade-width) items-stretch overflow-x-auto overflow-y-hidden [--scroll-fade-width:3rem]`,h&&`rounded-lg bg-kumo-recessed px-0.5`,h&&(_?`h-6.5 rounded-md`:`h-9`),b&&`cursor-grab active:cursor-grabbing`,g&&`gap-4 border-b border-kumo-hairline pb-2`,g&&(_?`h-6.5`:`h-7.5`),o),children:[d.map(e=>(0,J.jsx)(Ky,{"data-kumo-component":`Tabs`,"data-kumo-part":`tab`,value:e.value,render:e.render,nativeButton:e.nativeButton,onClick:e=>{e.currentTarget.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`})},className:q(`relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus:ring-kumo-focus/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand`,b?`cursor-grab active:cursor-grabbing`:`cursor-pointer`,_?`text-xs`:`text-base`,h&&`my-0.5 text-kumo-subtle hover:text-kumo-default focus-visible:ring-inset aria-selected:text-kumo-default`,h&&(_?`rounded-sm px-2`:`rounded-md px-2.5`),g&&`text-kumo-subtle hover:bg-kumo-tint hover:text-kumo-default aria-selected:font-medium aria-selected:text-kumo-default aria-selected:hover:bg-kumo-tint`,g&&(_?`px-1.5 py-2.5`:`px-2 py-3`),e.className),children:e.label},e.value)),(0,J.jsx)(nb,{render:e=>(0,J.jsx)(`div`,{...e,className:q(`absolute left-0 z-1`,`w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200`,h&&q(`top-(--active-tab-top) h-(--active-tab-height) bg-kumo-base shadow-sm ring ring-kumo-line`,_?`rounded`:`rounded-md`),g&&`bottom-0 h-0.5 bg-kumo-brand`,s)})})]}),h&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(db,{side:`start`,visible:x,variant:l,size:u,label:v.scrollStart,onClick:()=>fb(y,`start`)}),(0,J.jsx)(db,{side:`end`,visible:S,variant:l,size:u,label:v.scrollEnd,onClick:()=>fb(y,`end`)})]})]})}function db({side:e,visible:t,variant:n,size:r,label:i,onClick:a}){let o=e===`start`,s=n===`segmented`;return(0,J.jsx)(`button`,{type:`button`,"data-kumo-component":`Tabs`,"data-kumo-part":`overflow-control`,"data-side":e,"aria-label":i,"aria-hidden":!t,tabIndex:t?0:-1,onClick:a,className:q(`absolute inset-y-0 z-3 flex items-center border-0 bg-transparent p-0 transition-opacity duration-150 focus:outline-none focus-visible:[&>span]:ring-2 focus-visible:[&>span]:ring-kumo-brand`,o?`left-0 justify-start bg-linear-to-r`:`right-0 justify-end bg-linear-to-l`,t?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0`,s?`from-kumo-recessed via-kumo-recessed/95 to-transparent`:`from-kumo-base via-kumo-base/95 to-transparent`,s&&(r===`sm`?`w-8 rounded-md`:`w-10 rounded-lg`),!s&&`w-8`),children:(0,J.jsx)(`span`,{className:q(`flex items-center justify-center text-kumo-subtle transition-colors hover:text-kumo-default`,r===`sm`?`size-5`:`size-6`,s?r===`sm`?`rounded-sm`:`rounded-md`:`rounded`,o?`ml-1`:`mr-1`),children:(0,J.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,className:`size-3.5`,"aria-hidden":`true`,children:(0,J.jsx)(`path`,{d:o?`M9.25 4.25L5.75 8L9.25 11.75`:`M6.75 4.25L10.25 8L6.75 11.75`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`})})})})}function fb(e,t){let n=e.current;if(!n)return;let r=Array.from(n.querySelectorAll(`[data-kumo-part="tab"]`)),i=pb(n.clientWidth,r);n.scrollBy({left:t===`start`?-i:i,behavior:`smooth`})}function pb(e,t){let n=0;for(let r of t){let t=r.offsetWidth;if(n+t>e)return n||e;n+=t}return Math.max(80,Math.floor(e*.8))}function mb(e,t){let n=(0,v.useRef)(null),r=(0,v.useRef)(!1);return()=>({onPointerDownCapture:i=>{let a=e.current;a&&t&&i.pointerType===`mouse`&&i.button===0&&(n.current={pointerId:i.pointerId,startX:i.clientX,scrollLeft:a.scrollLeft,dragging:!1},r.current=!1)},onPointerMoveCapture:i=>{let a=e.current,o=n.current;if(!a||!t||!o||o.pointerId!==i.pointerId)return;let s=i.clientX-o.startX;if(!o.dragging){if(Math.abs(s)<=3)return;o.dragging=!0,r.current=!0,a.setPointerCapture(i.pointerId)}i.preventDefault(),a.scrollLeft=o.scrollLeft-s},onPointerUpCapture:t=>{let i=e.current,a=n.current;i&&a&&a.pointerId===t.pointerId&&(n.current=null,i.hasPointerCapture(t.pointerId)&&i.releasePointerCapture(t.pointerId),r.current&&window.setTimeout(()=>{r.current=!1},0))},onPointerCancelCapture:t=>{let r=e.current,i=n.current;r&&i&&i.pointerId===t.pointerId&&(n.current=null,r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId))},onClickCapture:e=>{r.current&&=(e.preventDefault(),e.stopPropagation(),!1)}})}function hb(e,t){let n=(0,v.useRef)(null),[r,i]=(0,v.useState)({isOverflowing:!1,canScrollStart:!1,canScrollEnd:!1});return(0,v.useLayoutEffect)(()=>{if(!e)return;let t=n.current;t&&i(e=>gb(t,e))},[e,t]),(0,v.useEffect)(()=>{if(!e)return;let t=n.current;if(!t)return;let r=()=>{i(e=>gb(t,e))},a=new ResizeObserver(r);a.observe(t);let o=new MutationObserver(r);return o.observe(t,{childList:!0,characterData:!0,subtree:!0}),t.addEventListener(`scroll`,r,{passive:!0}),r(),()=>{a.disconnect(),o.disconnect(),t.removeEventListener(`scroll`,r)}},[e]),{ref:n,...r}}function gb(e,t){let n=Math.max(0,e.scrollWidth-e.clientWidth),r=Math.min(Math.max(0,e.scrollLeft),n),i={isOverflowing:n>1,canScrollStart:r>1,canScrollEnd:n-r>1};return t.isOverflowing===i.isOverflowing&&t.canScrollStart===i.canScrollStart&&t.canScrollEnd===i.canScrollEnd?t:i}var _b={layout:{auto:{classes:``,description:`Auto table layout - columns resize based on content`},fixed:{classes:`table-fixed`,description:`Fixed table layout - columns have equal width, controlled via colgroup`}},variant:{default:{classes:`even:bg-kumo-elevated [--kumo-table-row-bg:var(--color-kumo-base)] even:[--kumo-table-row-bg:var(--color-kumo-elevated)]`,description:`Default row variant`},selected:{classes:`bg-kumo-tint [--kumo-table-row-bg:var(--color-kumo-tint)]`,description:`Selected row variant`}},sticky:{left:{classes:`sticky left-0`,description:`Pin column to the left edge of the scroll container`},right:{classes:`sticky right-0`,description:`Pin column to the right edge of the scroll container`}}},vb=(e,t)=>{let n=xr(_b.sticky,e,`left`).classes,r=t===`head`?`z-2`:`z-1`,i=e===`right`?`before:-left-6`:`before:-right-6`,a=`before:pointer-events-none before:absolute before:inset-y-0 before:w-6`;return t===`cell`?q(n,r,`bg-(--kumo-table-row-bg)`,a,i,e===`right`?`before:bg-gradient-to-r before:from-transparent before:to-(--kumo-table-row-bg)`:`before:bg-gradient-to-l before:from-transparent before:to-(--kumo-table-row-bg)`):q(n,r,`bg-kumo-base group-data-[compact]/header:bg-kumo-elevated`,a,i,e===`right`?`before:bg-gradient-to-r before:from-transparent before:to-kumo-base group-data-[compact]/header:before:to-kumo-elevated`:`before:bg-gradient-to-l before:from-transparent before:to-kumo-base group-data-[compact]/header:before:to-kumo-elevated`)},yb={layout:`auto`,variant:`default`},bb=(0,v.forwardRef)(({layout:e=`auto`,...t},n)=>{let r=q(`isolate w-full`,xr(_b.layout,e,yb.layout).classes,`[&_td]:p-3`,`[&_th]:border-b [&_th]:border-kumo-fill [&_th]:p-3 [&_th]:text-base [&_th]:font-semibold`,`[&_th]:bg-kumo-base`,`text-left text-base text-kumo-default`,t.className);return(0,J.jsx)(`table`,{ref:n,...t,className:r})}),xb=(0,v.forwardRef)(({variant:e=`default`,sticky:t,...n},r)=>{let i=e===`compact`,a=q(`group/header`,i&&`text-xs text-kumo-strong [&_th]:bg-kumo-elevated [&_th]:py-2`,t&&`[&_th]:sticky [&_th]:top-0 [&_th]:z-1`,n.className);return(0,J.jsx)(`thead`,{ref:r,...n,className:a,...i&&{"data-compact":``}})}),Sb=(0,v.forwardRef)(({sticky:e,...t},n)=>{let r=q(`group relative`,e&&vb(e,`head`),t.className);return(0,J.jsx)(`th`,{ref:n,...t,className:r})}),Cb=(0,v.forwardRef)(({variant:e=yb.variant,...t},n)=>{let r=q(xr(_b.variant,e,yb.variant).classes,t.className);return(0,J.jsx)(`tr`,{ref:n,...t,className:r})}),wb=(0,v.forwardRef)((e,t)=>(0,J.jsx)(`tbody`,{ref:t,...e})),Tb=(0,v.forwardRef)(({sticky:e,...t},n)=>{let r=q(e&&vb(e,`cell`),t.className);return(0,J.jsx)(`td`,{ref:n,...t,className:r})}),Eb=(0,v.forwardRef)((e,t)=>(0,J.jsx)(`tfoot`,{ref:t,...e})),Db=(0,v.forwardRef)((e,t)=>(0,J.jsx)(`button`,{ref:t,...e,type:`button`,"aria-label":`Resize column`,className:q(`invisible h-full group-hover:visible`,`w-[10px]`,`flex items-center justify-center`,`cursor-col-resize touch-none select-none`,`absolute top-0 right-0`,`m-0 bg-kumo-base p-0`,`focus-visible:ring-2 focus-visible:ring-kumo-brand`),children:(0,J.jsx)(`span`,{className:`h-5 w-[2px] rounded bg-kumo-hairline`})})),Ob=(0,v.forwardRef)(({checked:e,indeterminate:t,onCheckedChange:n,onValueChange:r,label:i,disabled:a,...o},s)=>(0,J.jsx)(Tb,{ref:s,...o,className:q(`w-10 leading-none`,o.className),children:(0,J.jsx)(ph,{checked:e,indeterminate:t,onCheckedChange:(e,t)=>{n?.(e,t),r?.(e)},"aria-label":i??`Select row`,disabled:a,className:`relative before:absolute before:-inset-3 before:content-['']`})})),kb=(0,v.forwardRef)(({checked:e,indeterminate:t,onCheckedChange:n,onValueChange:r,label:i,disabled:a,...o},s)=>(0,J.jsx)(Sb,{ref:s,...o,className:q(`w-10 leading-none`,o.className),children:(0,J.jsx)(ph,{checked:e,indeterminate:t,onCheckedChange:(e,t)=>{n?.(e,t),r?.(e)},"aria-label":i??`Select all rows`,disabled:a,className:`relative before:absolute before:-inset-3 before:content-['']`})}));bb.displayName=`Table`,wb.displayName=`Table.Body`,Sb.displayName=`Table.Head`,Cb.displayName=`Table.Row`,Tb.displayName=`Table.Cell`,Eb.displayName=`Table.Footer`,xb.displayName=`Table.Header`,Db.displayName=`Table.ResizeHandle`,Ob.displayName=`Table.CheckCell`,kb.displayName=`Table.CheckHead`;var Q=Object.assign(bb,{Header:xb,Head:Sb,Row:Cb,Body:wb,Cell:Tb,CheckCell:Ob,CheckHead:kb,Footer:Eb,ResizeHandle:Db}),Ab={size:{sm:{classes:`text-sm h-10 gap-0.5`,description:`Compact breadcrumbs for dense UIs`},base:{classes:`text-base h-12 gap-1`,description:`Default breadcrumbs size`}}},jb={size:`base`};function Mb({size:e=jb.size}={}){return q(`group mr-4 flex min-w-0 grow items-center overflow-hidden whitespace-nowrap`,xr(Ab.size,e,jb.size).classes)}var Nb=({href:e,icon:t,children:n})=>{let r=jr();return(0,J.jsxs)(r,{"data-kumo-component":`Breadcrumbs`,"data-kumo-part":`link`,to:e,className:`flex shrink-0 items-center gap-1 whitespace-nowrap text-kumo-subtle no-underline`,children:[!!t&&(0,J.jsx)(`span`,{className:`flex shrink-0 items-center`,children:t}),(0,J.jsx)(`span`,{children:n})]})};function Pb({children:e,icon:t,loading:n}){return n?(0,J.jsxs)(`div`,{className:`flex w-[125px] min-w-0 items-center gap-1`,children:[t&&(0,J.jsx)(`span`,{className:`flex shrink-0 items-center`,children:t}),(0,J.jsx)(sv,{})]}):(0,J.jsxs)(`div`,{className:`flex max-w-full min-w-0 items-center gap-1 font-medium`,"aria-current":`page`,children:[t&&(0,J.jsx)(`span`,{className:`flex shrink-0 items-center`,children:t}),(0,J.jsx)(`span`,{className:`truncate`,children:e})]})}function Fb(){return(0,J.jsx)(`span`,{className:`flex shrink-0 items-center text-kumo-inactive`,"aria-hidden":`true`,children:(0,J.jsx)(`svg`,{width:`24`,height:`24`,fill:`none`,viewBox:`0 0 24 24`,children:(0,J.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,d:`M10.75 8.75L14.25 12L10.75 15.25`})})})}function Ib(){return(0,J.jsx)(`span`,{className:`flex shrink-0 items-center text-kumo-subtle`,"aria-hidden":!0,children:`...`})}function Lb({text:e}){let{copied:t,runCopy:n}=iv();return(0,J.jsx)(Np,{variant:`ghost`,shape:`square`,size:`sm`,className:`opacity-0 transition-[opacity] group-hover:opacity-100`,onClick:async()=>{e&&await n(()=>navigator.clipboard.writeText(e),e=>console.error(`Failed to copy deeplink:`,e))},title:`Click to copy`,"aria-label":`Copy`,children:t?(0,J.jsx)(Gf,{weight:`bold`,className:`text-kumo-success`}):(0,J.jsx)(qf,{weight:`regular`})})}function Rb({children:e,size:t=`base`,className:n}){let r=v.Children.toArray(e),i=Bb(r);return(0,J.jsxs)(`nav`,{className:q(Mb({size:t}),n),"aria-label":`breadcrumb`,children:[(0,J.jsx)(`div`,{className:`contents sm:hidden`,children:i}),(0,J.jsx)(`div`,{className:`hidden sm:contents`,children:r})]})}function zb(e,t){return(0,v.isValidElement)(e)&&e.type===t}function Bb(e){let t=e.filter(e=>zb(e,Nb)||zb(e,Pb));if(t.length<=2)return e;let[n,r]=t.slice(-2),i=[(0,J.jsx)(Ib,{},`kumo-breadcrumb-mobile-ellipsis`),(0,J.jsx)(Fb,{},`kumo-breadcrumb-mobile-separator-leading`),(0,v.cloneElement)(n,{key:`kumo-breadcrumb-mobile-parent`}),(0,J.jsx)(Fb,{},`kumo-breadcrumb-mobile-separator-trailing`),(0,v.cloneElement)(r,{key:`kumo-breadcrumb-mobile-current`})],a=e.filter(e=>!zb(e,Nb)&&!zb(e,Pb)&&!zb(e,Fb));return[...i,...a]}Rb.Link=Nb,Rb.Current=Pb,Rb.Separator=Fb,Rb.Clipboard=Lb;var Vb={size:{sm:{classes:`px-6 py-8 gap-4`,description:`Compact empty state for smaller containers`},base:{classes:`px-10 py-16 gap-6`,description:`Default empty state size`},lg:{classes:`px-12 py-20 gap-8`,description:`Large empty state for prominent placement`}}},Hb={size:`base`};function Ub({size:e=Hb.size}={}){return q(`flex w-full flex-col items-center rounded-xl border border-kumo-fill bg-kumo-control text-kumo-default`,xr(Vb.size,e,Hb.size).classes)}function Wb({icon:e,title:t,description:n,commandLine:r,contents:i,size:a=`base`,className:o}){let{copied:s,runCopy:c}=iv(1e3),l=(0,v.useCallback)(async()=>{r&&await c(()=>navigator.clipboard.writeText(r),e=>console.warn(`Clipboard copy failed`,e))},[r,c]);return(0,J.jsxs)(`div`,{className:q(Ub({size:a}),o),children:[e,(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-2.5`,children:[n?(0,J.jsx)(Qh,{variant:`heading`,size:`lg`,as:`h2`,children:t}):(0,J.jsx)(Qh,{variant:`secondary`,size:`base`,as:`h2`,children:t}),n&&(0,J.jsx)(Qh,{variant:`secondary`,size:`base`,DANGEROUS_className:`max-w-140 text-center text-balance leading-normal`,children:n})]}),r&&(0,J.jsxs)(`div`,{className:q(`relative inline-flex h-10 max-w-8/10 transform-gpu items-center gap-2 rounded-lg border border-white bg-kumo-overlay pr-2 pl-3 font-mono shadow-xs ring ring-kumo-line`),children:[(0,J.jsxs)(`span`,{className:`inline-flex min-w-0 items-baseline gap-2`,children:[(0,J.jsx)(`span`,{className:`text-kumo-subtle select-none`,children:`$`}),(0,J.jsx)(`span`,{className:`no-scrollbar overflow-scroll text-base whitespace-nowrap`,children:r})]}),(0,J.jsx)(Np,{className:`text-kumo-subtle`,size:`sm`,variant:`ghost`,shape:`square`,"aria-label":`Copy command`,onClick:l,children:s?(0,J.jsx)(Gf,{size:16,className:`animate-bounce-in text-kumo-success`}):(0,J.jsx)(qf,{size:16})})]}),i]})}var Gb=v.createContext(void 0);Gb.displayName=`ScrollAreaRootContext`;function Kb(){let e=v.useContext(Gb);if(e===void 0)throw Error(`Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>.`);return e}function qb(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=`${t}${n===`x`?`Inline`:`Block`}`,a=parseFloat(r[`${i}Start`]);return n===`x`&&t===`margin`?a*2:a+parseFloat(r[`${i}End`])}var Jb=`data-has-overflow-x`,Yb=`data-has-overflow-y`,Xb=`data-overflow-x-start`,Zb=`data-overflow-x-end`,Qb=`data-overflow-y-start`,$b=`data-overflow-y-end`,ex=e=>t=>t?{[e]:``}:null,tx={hasOverflowX:ex(Jb),hasOverflowY:ex(Yb),overflowXStart:ex(Xb),overflowXEnd:ex(Zb),overflowYStart:ex(Qb),overflowYEnd:ex($b),cornerHidden:()=>null},nx=`--scroll-area-corner-height`,rx=`--scroll-area-corner-width`,ix=`data-orientation`,ax={x:0,y:0},ox={width:0,height:0},sx={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},cx={x:!0,y:!0,corner:!0},lx=v.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,{xStart:s,xEnd:c,yStart:l,yEnd:u}=ux(i),d=Qu(),f=Vl(),p=Vl(),{nonce:m,disableStyleElements:h}=gv(),[g,_]=v.useState(!1),[y,b]=v.useState(!1),[x,S]=v.useState(!1),[C,w]=v.useState(!1),[T,E]=v.useState(!1),[D,O]=v.useState(ox),[k,A]=v.useState(ox),[j,M]=v.useState(sx),[N,P]=v.useState(cx),F=v.useRef(null),I=v.useRef(null),L=v.useRef(null),R=v.useRef(null),z=v.useRef(null),B=v.useRef(null),ee=v.useRef(null),V=v.useRef(null),H=v.useRef(0),te=v.useRef(0),ne=v.useRef(0),U=v.useRef(0),re=v.useRef(`vertical`),ie=v.useRef(ax),ae=v.useRef(null);function oe(e){let t=e?S:b,n=e?f:p;t(!0),n.start(500,()=>{t(!1)})}let W=Z(e=>{let t=e.x-ie.current.x,n=e.y-ie.current.y;ie.current=e,n!==0&&oe(!0),t!==0&&oe(!1)}),G=Z(()=>{let e=I.current;e&&ae.current===null&&(ae.current=e.style.scrollSnapType,e.style.scrollSnapType=`none`)}),se=Z(e=>{if(e.button!==0||V.current!==null&&(re.current===`vertical`?z.current:B.current)?.hasPointerCapture(V.current))return;V.current=e.pointerId,H.current=e.clientY,te.current=e.clientX,re.current=e.currentTarget.getAttribute(ix);let t=I.current;t&&(ne.current=t.scrollTop,U.current=t.scrollLeft,G()),(re.current===`vertical`?z.current:B.current)?.setPointerCapture(e.pointerId)}),ce=Z(e=>{if(e.pointerId!==V.current)return;V.current=null,(re.current===`vertical`?S:b)(!1),ae.current!==null&&(I.current&&(I.current.style.scrollSnapType=ae.current),ae.current=null);let t=re.current===`vertical`?z.current:B.current;t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)}),le=Z(e=>{if(e.pointerId!==V.current)return;if(e.buttons%2==0){ce(e);return}let t=I.current;if(!t)return;let n=re.current===`vertical`,r=n?z.current:B.current,i=n?L.current:R.current;if(!r||!i)return;let a=n?`y`:`x`,o=qb(i,`padding`,a),s=qb(r,`margin`,a),c=n?r.offsetHeight:r.offsetWidth,l=(n?i.offsetHeight:i.offsetWidth)-c-o-s,u=n?e.clientY-H.current:e.clientX-te.current,d=l<=0?0:u/l,f=n?t.scrollHeight:t.scrollWidth,p=n?t.clientHeight:t.clientWidth,m=(n?ne.current:U.current)+d*(f-p);n?t.scrollTop=m:t.scrollLeft=m,e.preventDefault(),oe(n)});function ue(e){w(e.pointerType===`touch`)}function de(e){if(ue(e),e.pointerType!==`touch`){let t=X(F.current,e.target);_(t)}}let K=v.useMemo(()=>({scrolling:y||x,hasOverflowX:!N.x,hasOverflowY:!N.y,overflowXStart:j.xStart,overflowXEnd:j.xEnd,overflowYStart:j.yStart,overflowYEnd:j.yEnd,cornerHidden:N.corner}),[y,x,N.x,N.y,N.corner,j]),fe={role:`presentation`,onPointerEnter:de,onPointerMove:de,onPointerDown:ue,onPointerLeave(){_(!1)},style:{position:`relative`,[nx]:`${D.height}px`,[rx]:`${D.width}px`}},pe=mi(`div`,e,{state:K,ref:[t,F],props:[fe,o],stateAttributesMapping:tx}),me=v.useMemo(()=>({handlePointerDown:se,handlePointerMove:le,handlePointerUp:ce,handleScroll:W,disableViewportSnap:G,cornerSize:D,setCornerSize:O,thumbSize:k,setThumbSize:A,hasMeasuredScrollbar:T,setHasMeasuredScrollbar:E,touchModality:C,cornerRef:ee,scrollingX:y,scrollingY:x,hovering:g,setHovering:_,viewportRef:I,scrollbarYRef:L,scrollbarXRef:R,thumbYRef:z,thumbXRef:B,rootId:d,hiddenState:N,setHiddenState:P,overflowEdges:j,setOverflowEdges:M,viewportState:K,overflowEdgeThreshold:{xStart:s,xEnd:c,yStart:l,yEnd:u}}),[se,le,ce,W,G,D,k,T,C,y,x,g,d,N,j,K,s,c,l,u]);return(0,J.jsxs)(Gb.Provider,{value:me,children:[!h&&pv.getElement(m),pe]})});lx.displayName=`ScrollAreaRoot`;function ux(e){let t=typeof e==`number`?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var dx=v.createContext(void 0);dx.displayName=`ScrollAreaViewportContext`;function fx(){let e=v.useContext(dx);if(e===void 0)throw Error(`Base UI: ScrollAreaViewportContext missing. ScrollAreaViewport parts must be placed within <ScrollArea.Viewport>.`);return e}var px=`--scroll-area-overflow-x-start`,mx=`--scroll-area-overflow-x-end`,hx=`--scroll-area-overflow-y-start`,gx=`--scroll-area-overflow-y-end`,_x=`--scroll-area-thumb-height`,vx=`--scroll-area-thumb-width`,yx=[px,mx,hx,gx],bx=!1;function xx(){bx||yc||(typeof CSS<`u`&&`registerProperty`in CSS&&yx.forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),bx=!0)}var Sx=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:p,setThumbSize:m,rootId:h,setHiddenState:g,hiddenState:_,setHasMeasuredScrollbar:y,handleScroll:b,touchModality:x,setHovering:S,setOverflowEdges:C,overflowEdgeThreshold:w,viewportState:T}=Kb(),E=td(),D=v.useRef(!0),O=v.useRef([NaN,NaN,NaN,NaN]),k=Vl(),A=Vl(),j=Z(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let h=e.scrollHeight,_=e.scrollWidth,v=e.clientHeight,b=e.clientWidth,x=e.scrollTop,S=e.scrollLeft,T=O.current,D=Number.isNaN(T[0]);if(T[0]=v,T[1]=h,T[2]=b,T[3]=_,D&&y(!0),h===0||_===0)return;let k=Cx(e),A=k.y,j=k.x,M=b/_,N=v/h,P=Math.max(0,_-b),F=Math.max(0,h-v),I=0,L=0;j||(I=dv(E===`rtl`?-S:S,P),L=P-I);let R=A?0:dv(x,F),z=A?0:F-R,B=j?0:b,ee=A?0:v,V=0,H=0;!j&&!A&&(V=t?.offsetWidth||0,H=n?.offsetHeight||0);let te=f.width===0&&f.height===0,ne=te?V:0,U=te?H:0,re=qb(n,`padding`,`x`),ie=qb(t,`padding`,`y`),ae=qb(i,`margin`,`x`),oe=qb(r,`margin`,`y`),W=B-re-ae,G=ee-ie-oe,se=n?Math.min(n.offsetWidth-ne,W):W,ce=t?Math.min(t.offsetHeight-U,G):G,le=Math.max(16,se*M),ue=Math.max(16,ce*N);if(m(e=>wx(e,{width:le,height:ue})),t&&r){let e=Tx(r,_x,x,F,h,ue,t.offsetHeight-ue-ie-oe);r.style.transform=`translate3d(0,${e}px,0)`}if(n&&i){let e=n.offsetWidth-le-re-ae,t=Tx(i,vx,E===`rtl`?-S:S,P,_,le,e);i.style.transform=`translate3d(${E===`rtl`?-t:t}px,0,0)`}let de=[I,L,R,z];yx.forEach((t,n)=>{e.style.setProperty(t,`${de[n]}px`)}),a&&p(e=>wx(e,{width:V,height:H})),g(e=>wx(e,k));let K={xStart:!j&&I>w.xStart,xEnd:!j&&L>w.xEnd,yStart:!A&&R>w.yStart,yEnd:!A&&z>w.yEnd};C(e=>wx(e,K))});Y(()=>{xx()},[]),Y(()=>{queueMicrotask(j)},[j,_,E,w.xStart,w.xEnd,w.yStart,w.yEnd]),Y(()=>{o.current?.matches(`:hover`)&&S(!0)},[o,S]),Y(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=O.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}j()});return n.observe(e),A.start(0,()=>{let t=Yl(e,{subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished.then(Jr))).then(j).catch(()=>{})}),()=>{n.disconnect(),A.clear()}},[j,o,A]);function M(){D.current=!1}let N={...h&&{"data-id":`${h}-viewport`},tabIndex:_.x&&_.y?-1:0,className:pv.className,style:{overflow:`scroll`},onScroll(){o.current&&(j(),(x||!D.current)&&b({x:o.current.scrollLeft,y:o.current.scrollTop}),k.start(100,()=>{D.current=!0}))},onWheel:M,onPointerMove:M,onPointerEnter:M,onKeyDown:M},P=mi(`div`,e,{ref:[t,o],state:T,props:[N,a],stateAttributesMapping:tx}),F=v.useMemo(()=>({computeThumbPosition:j}),[j]);return(0,J.jsx)(dx.Provider,{value:F,children:P})});Sx.displayName=`ScrollAreaViewport`;function Cx(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function wx(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function Tx(e,t,n,r,i,a,o){let s=gh(n,0,r),c=n-s,l=Math.max(16,a*i/(i+Math.abs(c)));return e.style.setProperty(t,c?`${l}px`:``),(r?s/r*o:0)+(c>0?a-l:0)}var Ex=v.createContext(void 0);Ex.displayName=`ScrollAreaScrollbarContext`;function Dx(){let e=v.useContext(Ex);if(e===void 0)throw Error(`Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>.`);return e}var Ox=v.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,scrollbarYRef:f,scrollbarXRef:p,viewportRef:m,thumbYRef:h,thumbXRef:g,handlePointerDown:_,handlePointerUp:y,handleScroll:b,disableViewportSnap:x,rootId:S,thumbSize:C,hasMeasuredScrollbar:w,viewportState:T}=Kb(),E=i===`vertical`,D={...T,hovering:c,scrolling:E?u:l,orientation:i},O=td(),k=!w&&!a,A=E?d.y:d.x,j=a||!A;v.useEffect(()=>{if(!j)return;let e=m.current,t=E?f.current:p.current;if(!t)return;function n(t){if(!e||t.ctrlKey)return;let n=!E,r=n?`scrollLeft`:`scrollTop`,i=n?t.deltaX:t.deltaY;if(i===0)return;let a=n?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,o=n&&O===`rtl`?-a:0,s=n&&O===`rtl`?0:a,c=e[r];c<=o&&i<0||c>=s&&i>0||(t.preventDefault(),e[r]=Math.min(s,Math.max(o,c+i)),b({x:e.scrollLeft,y:e.scrollTop}))}return Ic(t,`wheel`,n,{passive:!1})},[O,b,E,p,f,j,m]);let M={...S&&{"data-id":`${S}-scrollbar`},"aria-hidden":!0,onPointerDown(e){if(e.button!==0)return;let t=ss(e.nativeEvent),n=E?h.current:g.current;if(n&&X(n,t))return;let r=m.current;if(!r)return;let i=E?f.current:p.current;if(!n||!i)return;let a=E?`y`:`x`,o=qb(n,`margin`,a),s=qb(i,`padding`,a),c=E?n.offsetHeight:n.offsetWidth,l=i.getBoundingClientRect(),u=E?e.clientY-l.top-c/2-s+o/2:e.clientX-l.left-c/2-s+o/2,d=E?r.scrollHeight:r.scrollWidth,v=E?r.clientHeight:r.clientWidth,y=(E?i.offsetHeight:i.offsetWidth)-c-s-o;if(y<=0)return;let S=u/y,C=d-v;x(),E?r.scrollTop=S*C:r.scrollLeft=O===`rtl`?-(1-S)*C:S*C,b({x:r.scrollLeft,y:r.scrollTop}),_(e)},onMouseDown(e){e.preventDefault()},onPointerUp:y,onPointerCancel:y,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:k?`hidden`:void 0,...E?{top:0,bottom:`var(${nx})`,insetInlineEnd:0,[_x]:`${C.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${rx})`,bottom:0,[vx]:`${C.width}px`}}},N=mi(`div`,e,{ref:[t,E?f:p],state:D,props:[M,s],stateAttributesMapping:tx});return j?(0,J.jsx)(Ex.Provider,{value:i,children:N}):null});Ox.displayName=`ScrollAreaScrollbar`;var kx=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{computeThumbPosition:o}=fx(),{hasMeasuredScrollbar:s,viewportState:c}=Kb(),l=v.useRef(null),u=v.useRef(s);return Y(()=>{if(typeof ResizeObserver>`u`)return;let e=!1,t=new ResizeObserver(()=>{!e&&(e=!0,!u.current)||o()});return l.current&&t.observe(l.current),()=>{t.disconnect()}},[o]),mi(`div`,e,{ref:[t,l],state:c,stateAttributesMapping:tx,props:[{role:`presentation`,style:{minWidth:`fit-content`}},a]})});kx.displayName=`ScrollAreaContent`;var Ax=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,scrollingX:d,scrollingY:f,hasMeasuredScrollbar:p}=Kb(),m=Dx(),h=m===`vertical`;return mi(`div`,e,{ref:[t,h?o:s],state:{scrolling:h?f:d,orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp:u,onPointerCancel:u,style:{visibility:p?void 0:`hidden`,...h?{height:`var(--scroll-area-thumb-height)`}:{width:`var(--scroll-area-thumb-width)`}}},a]})});Ax.displayName=`ScrollAreaThumb`;var jx={variant:`sidebar`,collapsible:`icon`,side:`left`},Mx=`16.25rem`,Nx=`57px`,Px=`cubic-bezier(0.77, 0, 0.175, 1)`,Fx=250,Ix=50,Lx=768,Rx=`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function zx(e,t,n,r=!0){let i=r&&n!==void 0,a=(0,v.useRef)(n),o=(0,v.useRef)(t),s=(0,v.useRef)(e),c=(0,v.useRef)(r),l=(0,v.useRef)(void 0),u=(0,v.useRef)(void 0);a.current=n,o.current=t;let d=(0,v.useCallback)(()=>{let e=l.current;e!==void 0&&(l.current=void 0,clearTimeout(u.current),a.current?.(e))},[]);return(0,v.useEffect)(()=>{let t=s.current!==e,n=c.current;if(s.current=e,c.current=r,!i)l.current=void 0,clearTimeout(u.current);else if(n&&t){if(l.current=e,o.current===0||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)d();else return u.current=setTimeout(d,o.current+Ix),()=>clearTimeout(u.current)}},[r,d,i,e]),d}function Bx(e=Lx){let t=`(max-width: ${e-1}px)`,n=(0,v.useCallback)(e=>{let n=window.matchMedia(t);return n.addEventListener(`change`,e),()=>n.removeEventListener(`change`,e)},[t]),r=(0,v.useCallback)(()=>window.matchMedia(t).matches,[t]),i=(0,v.useCallback)(()=>!1,[]);return(0,v.useSyncExternalStore)(n,r,i)}var Vx=(0,v.createContext)(null);function Hx(){let e=(0,v.useContext)(Vx);if(!e)throw Error(`useSidebar must be used within a Sidebar.Provider`);return e}var Ux=256,Wx=200,Gx=480;function Kx({defaultOpen:e=!0,open:t,onOpenChange:n,onOpenChangeComplete:r,variant:i=jx.variant,side:a=jx.side,collapsible:o=jx.collapsible,resizable:s=!1,defaultWidth:c=Ux,minWidth:l=Wx,maxWidth:u=Gx,onWidthChange:d,contained:f=!1,peekable:p=!1,animationDuration:m=Fx,mobileBreakpoint:h,children:g,className:_,style:y}){let b=Bx(h),[x,S]=(0,v.useState)(!1),[C,w]=(0,v.useState)(c),[T,E]=(0,v.useState)(!1),[D,O]=(0,v.useState)(!1),k=b&&t!==void 0?t:x,A=(0,v.useCallback)(e=>{S(e),b&&t!==void 0&&n?.(e)},[b,t,n]),j=(0,v.useCallback)(e=>{let t=Math.min(u,Math.max(l,e));w(t),d?.(t)},[l,u,d]),[M,N]=(0,v.useState)(e),P=t??M,F=(0,v.useCallback)(e=>{let t=typeof e==`function`?e(P):e;n?.(t),N(t)},[n,P]),I=(0,v.useCallback)(()=>{b?A(!k):(O(!1),F(e=>!e))},[b,k,A,F]),L=(0,v.useCallback)(()=>{p&&!P&&!b&&O(!0)},[p,P,b]),R=(0,v.useCallback)(()=>{O(!1)},[]),z=D?`peeking`:P?`expanded`:`collapsed`,B=s?`${C}px`:Mx,ee=(0,v.useRef)(new Map),V=(0,v.useCallback)((e,t)=>{let n=ee.current;t?n.set(e,t):n.delete(e)},[]),H=(0,v.useCallback)((e,t={})=>{let{align:n=`auto`,behavior:r=`auto`}=t,i=ee.current.get(e);if(!i)return;let a=i.closest(`[data-sidebar="viewport"]`);if(!a)return;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect(),c=a.offsetHeight>0&&s.height>0?s.height/a.offsetHeight:1,l=(o.top-s.top)/c+a.scrollTop,u;if(n===`center`)u=l-(a.clientHeight-i.offsetHeight)/2;else if(n===`end`)u=l-(a.clientHeight-i.offsetHeight);else if(n===`auto`){let e=l+i.offsetHeight,t=a.scrollTop+a.clientHeight;if(l<a.scrollTop)u=l;else if(e>t)u=e-a.clientHeight;else return}else u=l;let d=Math.max(0,Math.min(u,a.scrollHeight-a.clientHeight)),f=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;a.scrollTo({top:d,behavior:f?`auto`:r})},[]),te=(0,v.useCallback)((e,t={})=>{let n=ee.current.get(e);if(!n)return;let r=n.closest(`[data-sidebar="viewport"]`);if(!r)return;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();i.top>=a.top&&i.bottom<=a.bottom||H(e,t)},[H]),ne=(0,v.useMemo)(()=>({state:z,open:P,setOpen:F,openMobile:k,setOpenMobile:A,isMobile:b,toggleSidebar:I,variant:i,side:a,collapsible:o,width:C,resizable:s,minWidth:l,maxWidth:u,isResizing:T,setIsResizing:E,setWidth:j,isPeeking:D,peekable:p,startPeek:L,stopPeek:R,contained:f,animationDuration:m,registerItem:V,scrollToItem:H,scrollItemIntoView:te}),[z,P,k,b,C,T,D]),U=zx(P,m,r,!b),re=zx(k,m,r,b),ie=b?re:U,ae=b?`transform`:`width`,oe=(0,v.useCallback)(e=>{let t=e.target;t.closest(`[data-sidebar-wrapper]`)===e.currentTarget&&t.dataset.sidebar===`sidebar`&&e.propertyName===ae&&ie()},[ie,ae]);return(0,J.jsx)(Vx.Provider,{value:ne,children:(0,J.jsx)(`div`,{"data-sidebar-wrapper":``,"data-state":z,"data-side":a,onTransitionEnd:oe,style:{"--sidebar-width":B,"--sidebar-width-icon":Nx,"--sidebar-animation-duration":`${m}ms`,"--sidebar-easing":Px,...y},className:q(`group/sidebar-wrapper relative isolate flex w-full [--sidebar-active-bg:var(--color-kumo-tint)] [--sidebar-bg:var(--color-kumo-base)]`,!f&&!b&&`min-h-svh`,`has-data-[variant=inset]:bg-kumo-recessed`,T&&`select-none`,_),children:g})})}Kx.displayName=`Sidebar.Provider`;var qx=(0,v.forwardRef)(({className:e,contentClassName:t,children:n,fullScreenOnMobile:r=!1,...i},a)=>{let{state:o,open:s,isMobile:c,openMobile:l,setOpenMobile:u,side:d,variant:f,collapsible:p,isResizing:m,resizable:h,width:g,isPeeking:_,startPeek:y,stopPeek:b,contained:x}=Hx(),S=(0,v.useCallback)(e=>{e&&(l?e.removeAttribute(`inert`):e.setAttribute(`inert`,``))},[l]),C=(0,v.useCallback)(e=>{S(e),typeof a==`function`?a(e):a&&(a.current=e)},[a,S]),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(!1),D=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(!c||!l)return;let e=e=>{e.key===`Escape`&&(E.current=!0,u(!1))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[c,l,u]),(0,v.useEffect)(()=>{c&&(l?(w.current=document.activeElement,E.current=!1,requestAnimationFrame(()=>{(T.current?.querySelector(Rx)??T.current)?.focus()})):E.current&&w.current instanceof HTMLElement&&(w.current.focus(),E.current=!1,w.current=null))},[c,l]);let O=(0,v.useCallback)(e=>{!e.currentTarget.contains(e.relatedTarget)&&!D.current&&b()},[b]),k=(0,v.useCallback)(()=>{D.current=!0,y()},[y]),A=(0,v.useCallback)(()=>{D.current=!1,b()},[b]);if(p===`none`)return(0,J.jsx)(`aside`,{ref:a,"data-state":`expanded`,"data-side":d,"data-variant":f,"data-sidebar":`sidebar`,style:{width:`var(--sidebar-width)`,minWidth:`var(--sidebar-width)`,maxWidth:`var(--sidebar-width)`},className:q(`relative flex h-full shrink-0 grow-0 flex-col overflow-hidden bg-(--sidebar-bg) text-kumo-default`,f===`sidebar`&&(d===`left`?`border-r border-kumo-line`:`border-l border-kumo-line`),f===`floating`&&`m-2 rounded-lg border border-kumo-line shadow-lg`,e),...i,children:n});if(c)return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{"data-sidebar-backdrop":``,className:q(x?`absolute inset-0 z-40 bg-kumo-recessed`:`fixed inset-0 z-40 bg-kumo-recessed`,`transition-opacity duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,l&&!r?`opacity-80`:`pointer-events-none opacity-0`),onClick:()=>{E.current=!0,u(!1)},"aria-hidden":`true`}),(0,J.jsx)(`nav`,{ref:e=>{C(e),T.current=e},tabIndex:-1,"aria-label":`Navigation`,"aria-hidden":!l,"data-state":l?`expanded`:`collapsed`,"data-side":d,"data-variant":f,"data-collapsible":p,"data-sidebar":`sidebar`,"data-mobile":`true`,className:q(`group/sidebar inset-y-0 z-50 flex flex-col overflow-hidden`,x?`absolute`:`fixed`,r?`w-full`:`w-(--sidebar-width)`,`bg-(--sidebar-bg) text-kumo-default`,!r&&`border-r border-kumo-line`,`transition-transform duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,d===`left`&&`left-0`,d===`right`&&`right-0`,d===`left`&&(l?`translate-x-0`:`-translate-x-full`),d===`right`&&(l?`translate-x-0`:`translate-x-full`),e),...i,children:n})]});let j=p===`icon`?`var(--sidebar-width-icon)`:`0px`,M=h?`${g}px`:`var(--sidebar-width)`,N=s?M:j,P=s||_?M:j,F=f===`sidebar`?d===`left`?`border-r border-kumo-line`:`border-l border-kumo-line`:f===`floating`?`border border-kumo-line`:``;return(0,J.jsx)(`aside`,{ref:a,"data-state":o,"data-side":d,"data-variant":f,"data-collapsible":p,"data-sidebar":`sidebar`,style:{width:N},className:q(`group/sidebar relative h-full shrink-0 grow-0`,`overflow-visible`,`transition-[width] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,m&&`transition-none!`,f===`floating`&&`m-2 rounded-lg shadow-lg`,e),...i,children:(0,J.jsx)(Xd,{children:(()=>{let e=v.Children.toArray(n),r=e.filter(e=>v.isValidElement(e)&&e.type?.displayName===`Sidebar.Footer`),i=e.filter(e=>!v.isValidElement(e)||e.type?.displayName!==`Sidebar.Footer`);return(0,J.jsxs)(`div`,{"data-sidebar":`content-container`,style:{width:P},className:q(`flex h-full flex-col`,`min-w-0 overflow-hidden whitespace-nowrap`,`bg-(--sidebar-bg) text-kumo-default`,F,`transition-[width] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,m&&`transition-none!`,!s&&q(x?`absolute`:`fixed`,`inset-y-0 z-40`,d===`left`&&`left-0`,d===`right`&&`right-0`),s&&`relative`,t),children:[(0,J.jsx)(`div`,{"data-sidebar":`peek-zone`,className:`flex min-h-0 flex-1 flex-col`,onMouseEnter:k,onMouseLeave:A,onFocus:y,onBlur:O,children:i}),r]})})()})})});qx.displayName=`Sidebar`;var Jx=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`header`,className:q(`flex h-[58px] shrink-0 items-center gap-1 border-b border-kumo-line`,`overflow-hidden px-3`,e),...t}));Jx.displayName=`Sidebar.Header`;var Yx=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsxs)(lx,{ref:r,"data-sidebar":`content`,className:q(`relative min-w-0 flex-1 overflow-hidden`,e),...n,children:[(0,J.jsx)(Sx,{tabIndex:-1,"data-sidebar":`viewport`,className:q(`h-full px-[11px] py-3 group-not-data-[state=collapsed]/sidebar:px-3.5`,`transition-[padding] duration-(--sidebar-animation-duration)`,`overflow-x-hidden!`,`[mask-image:linear-gradient(to_bottom,transparent_0,black_min(24px,var(--scroll-area-overflow-y-start,24px)),black_calc(100%-min(24px,var(--scroll-area-overflow-y-end,24px))),transparent_100%)]`),children:(0,J.jsx)(kx,{className:`flex min-w-0! flex-col`,children:t})}),(0,J.jsx)(Ox,{orientation:`vertical`,className:q(`flex w-1.5 touch-none p-px select-none`,`opacity-0 transition-opacity duration-150`,`data-[hovering]:opacity-100 data-[scrolling]:opacity-100`,`group-data-[state=collapsed]/sidebar:hidden`),children:(0,J.jsx)(Ax,{className:`flex-1 rounded-full bg-kumo-line`})})]}));Yx.displayName=`Sidebar.Content`;var Xx=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`footer`,className:q(`flex h-12 shrink-0 items-center gap-4 overflow-hidden border-t border-kumo-line whitespace-nowrap`,`px-[11px] group-not-data-[state=collapsed]/sidebar:px-4`,`bg-(--sidebar-bg)`,`w-(--sidebar-width)`,`transition-[width,padding] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,`sticky bottom-0`,`bg-clip-padding group-data-[state=collapsed]/sidebar:w-(--sidebar-width-icon)`,`group-data-[state=collapsed]/sidebar:border-r group-data-[state=collapsed]/sidebar:border-kumo-line`,e),...t}));Xx.displayName=`Sidebar.Footer`;var Zx=[[`w-28`,`w-40`,`w-24`],[`w-24`,`w-36`,`w-32`]],Qx=(0,v.forwardRef)(({className:e,label:t=`Loading`,...n},r)=>(0,J.jsx)(`div`,{ref:r,"data-sidebar":`loading`,role:`status`,"aria-label":t,className:q(`flex min-h-0 w-full flex-1 flex-col gap-4 px-2 py-3`,e),...n,children:Zx.map((e,t)=>(0,J.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,J.jsx)(sv,{className:`mb-1 ml-2 h-2 w-16 rounded-full group-data-[state=collapsed]/sidebar:hidden`}),e.map((e,t)=>(0,J.jsxs)(`div`,{className:`flex min-h-8.5 items-center gap-3 rounded-lg px-3 group-data-[state=collapsed]/sidebar:justify-center group-data-[state=collapsed]/sidebar:px-0`,children:[(0,J.jsx)(sv,{className:`size-4.5 shrink-0 rounded-md`}),(0,J.jsx)(sv,{className:q(`h-2.5 rounded-full group-data-[state=collapsed]/sidebar:hidden`,e)})]},t))]},t))}));Qx.displayName=`Sidebar.Loading`;var $x=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsx)(`div`,{ref:r,"data-sidebar":`group`,className:q(`flex min-w-0 flex-col gap-y-px`,e),...n,children:t}));$x.displayName=`Sidebar.Group`;var eS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsx)(`div`,{ref:r,"data-sidebar":`group-label`,className:q(`grid overflow-hidden`,`transition-[grid-template-rows,margin,border-color] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`group-data-[mobile=true]/sidebar:transition-none`,`my-3 grid-rows-[0fr] border-b border-kumo-line`,`[[data-sidebar=group]:first-child_&]:my-0 [[data-sidebar=group]:first-child_&]:border-transparent`,`group-not-data-[state=collapsed]/sidebar:my-0 group-not-data-[state=collapsed]/sidebar:grid-rows-[1fr] group-not-data-[state=collapsed]/sidebar:border-transparent`,`group-data-[mobile=true]/sidebar:my-0 group-data-[mobile=true]/sidebar:grid-rows-[1fr] group-data-[mobile=true]/sidebar:border-transparent`,e),...n,children:(0,J.jsx)(`div`,{className:`min-h-0 min-w-0`,children:(0,J.jsx)(`div`,{className:q(`mt-4 mb-2 truncate px-3 text-sm font-medium text-kumo-subtle`,`[[data-sidebar=group]:first-child_&]:mt-2`),children:t})})}));eS.displayName=`Sidebar.GroupLabel`;var tS=(0,v.createContext)(!1),nS=(0,v.createContext)(!1),rS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`ul`,{ref:n,"data-sidebar":`menu`,className:q(`m-0 flex min-w-0 list-none flex-col items-stretch gap-y-px p-0`,e),...t}));rS.displayName=`Sidebar.Menu`;var iS=(0,v.forwardRef)(({className:e,children:t,itemId:n,...r},i)=>{let{registerItem:a}=Hx(),o=(0,v.useCallback)(e=>{n&&a(n,e),typeof i==`function`?i(e):i&&(i.current=e)},[n,i,a]);return(0,J.jsx)(tS.Provider,{value:!0,children:(0,J.jsx)(`li`,{ref:o,"data-sidebar":`menu-item`,"data-sidebar-item-id":n,className:q(`relative group-data-[state=collapsed]/sidebar:overflow-hidden`,e),...r,children:t})})});iS.displayName=`Sidebar.MenuItem`;var aS=(0,v.forwardRef)(({className:e,icon:t,active:n=!1,size:r=`base`,href:i,target:a,tooltip:o,itemId:s,children:c,...l},u)=>{let{state:d,peekable:f,registerItem:p}=Hx(),m=jr(),h=(0,v.useContext)(tS),g=(0,v.useCallback)(e=>{s&&!h&&p(s,e)},[s,h,p]),_=(0,v.useCallback)(e=>{s&&h&&p(s,e),typeof u==`function`?u(e):u&&(u.current=e)},[s,h,u,p]),y=t?v.isValidElement(t)?t:(0,J.jsx)(t,{className:q(`shrink-0 opacity-40`,r===`base`?`size-4`:`size-3.5`)}):null,b=(0,J.jsxs)(`div`,{className:q(`flex min-w-0 flex-1 items-center gap-3`,`translate-x-[-3px] group-not-data-[state=collapsed]/sidebar:translate-x-0`,`transition-transform duration-(--sidebar-animation-duration)`),children:[y,(0,J.jsx)(`span`,{className:q(`flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-left`),children:v.Children.map(c,e=>typeof e==`string`||typeof e==`number`?(0,J.jsx)(`span`,{className:`truncate`,children:e}):e)})]}),x=q(`group/menu-button relative flex w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg outline-none`,`before:absolute before:inset-x-0 before:-inset-y-px`,r===`base`&&`min-h-8.5 px-3 py-0 text-sm font-medium`,r===`sm`&&`min-h-7 px-2 py-0 text-sm`,`text-kumo-default`,`transition-[color,box-shadow,outline] duration-(--sidebar-animation-duration)`,!n&&`hover:bg-(--sidebar-active-bg)`,n&&`bg-(--sidebar-active-bg)`,`has-[[data-active]]:bg-transparent has-[[data-active]]:hover:bg-(--sidebar-active-bg)`,`focus:outline-none focus-visible:bg-(--sidebar-active-bg) focus-visible:text-kumo-strong`,e),S,C=h?s:void 0;S=i?(0,J.jsx)(m,{ref:_,...l,className:q(x,`no-underline!`),href:i,to:i,target:a,"data-active":n||void 0,"data-sidebar":`menu-button`,"data-sidebar-item-id":C,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-button-link`,"data-size":r,children:b}):(0,J.jsx)(`button`,{ref:_,type:`button`,className:x,"data-active":n||void 0,"data-sidebar":`menu-button`,"data-sidebar-item-id":C,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-button`,"data-size":r,...l,children:b});let w=d===`collapsed`&&!f;return o&&(S=(0,J.jsx)(Zd,{content:o,disabled:!w,side:`right`,render:S})),h?S:(0,J.jsx)(`li`,{ref:g,"data-sidebar":`menu-item`,"data-sidebar-item-id":s,className:`relative group-data-[state=collapsed]/sidebar:overflow-hidden`,children:S})});aS.displayName=`Sidebar.MenuButton`;var oS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`span`,{ref:n,"data-sidebar":`menu-badge`,className:q(`inline-flex shrink-0 items-center rounded-full border border-dashed border-kumo-line`,`px-1.5 py-0.5 text-[11px]/none font-medium text-kumo-strong select-none`,`group-data-[state=collapsed]/sidebar:hidden`,e),...t}));oS.displayName=`Sidebar.MenuBadge`;var sS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsxs)(`ul`,{ref:r,"data-sidebar":`menu-sub`,className:q(`relative m-0 flex min-w-0 list-none flex-col gap-y-px overflow-hidden p-0 pr-0 pl-7`,e),...n,children:[(0,J.jsx)(`li`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-y-px left-[19px] z-10 block w-px bg-kumo-line`}),t]}));sS.displayName=`Sidebar.MenuSub`;var cS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsx)(nS.Provider,{value:!0,children:(0,J.jsx)(`li`,{ref:r,"data-sidebar":`menu-sub-item`,className:q(`relative`,e),...n,children:t})}));cS.displayName=`Sidebar.MenuSubItem`;var lS=(0,v.forwardRef)(({className:e,active:t=!1,href:n,target:r,children:i,...a},o)=>{let s=jr(),c=(0,v.useContext)(nS),l=q(`group/menu-button relative flex min-h-8.5 w-full min-w-0 cursor-pointer items-center gap-2 rounded-lg px-3 py-0 text-sm font-medium outline-none`,`before:absolute before:inset-x-0 before:-inset-y-px`,`text-kumo-default transition-[color] duration-150`,!t&&`hover:bg-(--sidebar-active-bg)`,t&&`bg-(--sidebar-active-bg)`,`focus:outline-none focus-visible:bg-(--sidebar-active-bg) focus-visible:text-kumo-strong`,e),u=(0,J.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-left`,children:v.Children.map(i,e=>typeof e==`string`||typeof e==`number`?(0,J.jsx)(`span`,{className:`truncate`,children:e}):e)}),d;return d=n?(0,J.jsx)(s,{ref:o,...a,className:q(l,`no-underline!`),href:n,to:n,target:r,"data-active":t||void 0,"data-sidebar":`menu-sub-button`,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-sub-button-link`,children:u}):(0,J.jsx)(`button`,{ref:o,type:`button`,className:l,"data-active":t||void 0,"data-sidebar":`menu-sub-button`,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-sub-button`,...a,children:u}),c?d:(0,J.jsx)(`li`,{"data-sidebar":`menu-sub-item`,className:`relative`,children:d})});lS.displayName=`Sidebar.MenuSubButton`;var uS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`separator`,className:q(`my-3 px-2`,e),...t,children:(0,J.jsx)(`div`,{className:`border-b border-kumo-line`})}));uS.displayName=`Sidebar.Separator`;function dS({className:e}){let{open:t}=Hx();return(0,J.jsxs)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,focusable:`false`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:q(`shrink-0`,e),children:[(0,J.jsx)(`path`,{d:`M21.25 6.72v10.56a2.97 2.97 0 0 1-2.97 2.97H5.72a2.97 2.97 0 0 1-2.97-2.97V6.72a2.97 2.97 0 0 1 2.97-2.97h12.56a2.97 2.97 0 0 1 2.97 2.97`}),(0,J.jsx)(`path`,{d:`M6.25 7.25v9.5`,className:q(`transition-transform duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,t?`translate-x-px`:`translate-x-[10.5px]`)})]})}dS.displayName=`Sidebar.PanelIcon`;var fS=(0,v.forwardRef)(({className:e,children:t,onClick:n,...r},i)=>{let{open:a,toggleSidebar:o}=Hx();return(0,J.jsx)(`button`,{ref:i,type:`button`,"data-sidebar":`trigger`,"data-kumo-component":`Sidebar`,"data-kumo-part":`trigger`,"aria-expanded":a,"aria-label":a?`Collapse sidebar`:`Expand sidebar`,className:q(`flex size-8.5 shrink-0 cursor-pointer items-center justify-center rounded-lg`,`text-kumo-subtle hover:bg-(--sidebar-active-bg) hover:text-kumo-default`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset`,e),onClick:e=>{n?.(e),o()},...r,children:t??(0,J.jsx)(dS,{})})});fS.displayName=`Sidebar.Trigger`;var pS=(0,v.forwardRef)(({className:e,onClick:t,...n},r)=>{let{setOpenMobile:i}=Hx();return(0,J.jsx)(Np,{ref:r,variant:`ghost`,shape:`square`,size:`sm`,"data-sidebar":`close`,"data-kumo-component":`Sidebar`,"data-kumo-part":`close`,"aria-label":`Close navigation`,className:q(`shrink-0`,e),onClick:e=>{t?.(e),i(!1)},...n,children:(0,J.jsx)(vp,{size:18})})});pS.displayName=`Sidebar.Close`;var mS=(0,v.forwardRef)(({className:e,...t},n)=>{let{toggleSidebar:r}=Hx();return(0,J.jsx)(`button`,{ref:n,type:`button`,"data-sidebar":`rail`,"data-kumo-component":`Sidebar`,"data-kumo-part":`rail`,"aria-label":`Toggle sidebar`,tabIndex:-1,className:q(`absolute inset-y-0 z-1 hidden w-4 -translate-x-1/2 cursor-pointer transition-all`,`after:absolute after:inset-y-0 after:left-1/2 after:w-0.5`,`hover:after:bg-kumo-brand/20`,`group-data-[side=left]/sidebar-wrapper:right-0`,`group-data-[side=right]/sidebar-wrapper:left-0`,`sm:flex`,e),onClick:r,...t})});mS.displayName=`Sidebar.Rail`;var hS=(0,v.forwardRef)(({className:e,...t},n)=>{let{side:r,resizable:i,setIsResizing:a,setWidth:o,setOpen:s,open:c,minWidth:l,width:u,maxWidth:d}=Hx(),f=(0,v.useRef)(0),p=(0,v.useRef)(0),m=(0,v.useRef)(!1);return i?(0,J.jsx)(`button`,{ref:n,type:`button`,"aria-label":`Resize sidebar`,tabIndex:0,"data-sidebar":`resize-handle`,className:q(`absolute inset-y-0 z-2 hidden w-3 cursor-col-resize sm:block`,`after:absolute after:inset-y-0 after:w-0.5`,`after:bg-transparent after:transition-colors`,`hover:after:bg-kumo-hairline focus-visible:after:bg-kumo-hairline active:after:bg-kumo-hairline`,`focus:outline-none`,r===`left`&&`right-0 after:right-0`,r===`right`&&`left-0 after:left-0`,e),onPointerDown:e=>{e.preventDefault(),a(!0),f.current=e.clientX,m.current=!c;let t=e.currentTarget.closest(`[data-sidebar-wrapper]`)?.querySelector(`[data-sidebar='sidebar']`);p.current=t?.getBoundingClientRect().width??0;let n=()=>{a(!1),document.removeEventListener(`pointermove`,i),document.removeEventListener(`pointerup`,u)},i=e=>{let t=r===`left`?e.clientX-f.current:f.current-e.clientX,n=p.current+t;m.current?n>=l&&(m.current=!1,s(!0),o(n)):n<l?(s(!1),m.current=!0):o(n)},u=()=>{n()};document.addEventListener(`pointermove`,i),document.addEventListener(`pointerup`,u)},onKeyDown:e=>{let t=r===`left`?`ArrowRight`:`ArrowLeft`,n=r===`left`?`ArrowLeft`:`ArrowRight`;if(e.key===t)e.preventDefault(),c?o(Math.min(u+10,d)):(s(!0),o(l));else if(e.key===n){e.preventDefault();let t=u-10;t<l?s(!1):o(t)}else e.key===`Home`?(e.preventDefault(),s(!1)):e.key===`End`&&(e.preventDefault(),s(!0),o(d))},...t}):null});hS.displayName=`Sidebar.ResizeHandle`;var gS=(e,{isMobile:t,openMobile:n,state:r})=>e&&(t?n:r!==`collapsed`),_S=(0,v.createContext)({contentId:``,isOpen:!0,isCollapsible:!1,autoScrollOnOpen:!1,toggle:()=>{},completeOpenChange:()=>{}}),vS=(0,v.forwardRef)(({defaultOpen:e=!1,open:t,onOpenChange:n,onOpenChangeComplete:r,autoScrollOnOpen:i=!1,className:a,children:o,...s},c)=>{let l=Hx(),{animationDuration:u}=l,[d,f]=(0,v.useState)(e),p=t??d,m=gS(p,l),h=(0,v.useId)(),g=(0,v.useRef)(!1),_=(0,v.useCallback)(()=>{let e=!p;f(e),n?.(e),g.current=!1},[p,n]),y=zx(m,u,r),b=(0,v.useMemo)(()=>({contentId:h,isOpen:p,isCollapsible:!0,autoScrollOnOpen:i,toggle:_,completeOpenChange:y}),[h,p,i,_,y]),x=(0,v.useCallback)(e=>{!p&&e.target.matches(`:focus-visible`)&&(g.current=!0,f(!0),n?.(!0))},[p,n]),S=(0,v.useCallback)(e=>{g.current&&!e.currentTarget.contains(e.relatedTarget)&&!e.currentTarget.querySelector(`[data-active]`)&&(g.current=!1,f(!1),n?.(!1))},[n]);return(0,J.jsx)(_S.Provider,{value:b,children:(0,J.jsx)(`div`,{ref:c,"data-open":p||void 0,className:q(`min-w-0`,a),onFocus:x,onBlur:S,...s,children:o})})});vS.displayName=`Sidebar.Collapsible`;function yS({render:e}){let{contentId:t,isOpen:n,toggle:r}=(0,v.useContext)(_S);return v.cloneElement(e,{"aria-expanded":n,"aria-controls":t,"data-open":n||void 0,onClick:t=>{let n=e.props.onClick;n?.(t),r()}})}yS.displayName=`Sidebar.CollapsibleTrigger`;var bS=(0,v.forwardRef)(({className:e,children:t,onTransitionEnd:n,...r},i)=>{let{contentId:a,isOpen:o,autoScrollOnOpen:s,completeOpenChange:c}=(0,v.useContext)(_S),l=Hx(),{animationDuration:u}=l,d=(0,v.useRef)(null),f=gS(o,l);(0,v.useEffect)(()=>{if(!f||!s)return;let e=window.setTimeout(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;d.current?.scrollIntoView({block:`nearest`,behavior:e?`auto`:`smooth`})},u);return()=>window.clearTimeout(e)},[f,s,u]);let p=(0,v.useCallback)(e=>{e&&(f?e.removeAttribute(`inert`):e.setAttribute(`inert`,``))},[f]),m=(0,v.useCallback)(e=>{d.current=e,p(e),typeof i==`function`?i(e):i&&(i.current=e)},[i,p]),h=(0,v.useCallback)(e=>{n?.(e),e.target===e.currentTarget&&e.propertyName===`grid-template-rows`&&c()},[c,n]);return(0,J.jsx)(`div`,{ref:m,id:a,role:`region`,"aria-hidden":!f,onTransitionEnd:h,className:q(`grid`,`transition-[grid-template-rows] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,f?`grid-rows-[1fr]`:`grid-rows-[0fr]`,e),...r,children:(0,J.jsx)(`div`,{className:`overflow-hidden`,children:t})})});bS.displayName=`Sidebar.CollapsibleContent`;function xS({className:e}){let{isOpen:t,isCollapsible:n}=(0,v.useContext)(_S);return(0,J.jsx)(Vf,{size:12,weight:`bold`,className:q(`ml-auto shrink-0 opacity-40 transition-[transform,rotate,opacity] duration-200 group-hover/menu-button:opacity-100`,n&&t&&`rotate-90`,`group-data-[state=collapsed]/sidebar:hidden`,e)})}xS.displayName=`Sidebar.MenuChevron`;var SS=(0,v.createContext)(``),CS=(0,v.forwardRef)(({activeKey:e,direction:t=`left`,className:n,children:r,...i},a)=>{let o=v.Children.toArray(r).findIndex(t=>v.isValidElement(t)&&t.props.value===e),s=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,c=o>0?`-${o*100}%`:`0%`;return(0,J.jsx)(SS.Provider,{value:e,children:(0,J.jsx)(`div`,{ref:a,"data-sidebar":`sliding-views`,className:q(`flex min-h-0 max-w-(--sidebar-width) flex-1 overflow-hidden`,n),...i,children:(0,J.jsx)(`div`,{className:`flex min-h-0 w-full shrink-0`,style:{transform:`translateX(${c})`,transition:s?`none`:`transform var(--sidebar-animation-duration) var(--sidebar-easing)`},children:r})})})});CS.displayName=`Sidebar.SlidingViews`;var wS=(0,v.forwardRef)(({value:e,className:t,children:n,...r},i)=>{let a=(0,v.useContext)(SS)===e,o=(0,v.useCallback)(e=>{e&&(a?e.removeAttribute(`inert`):e.setAttribute(`inert`,``))},[a]),s=(0,v.useCallback)(e=>{o(e),typeof i==`function`?i(e):i&&(i.current=e)},[i,o]);return(0,J.jsx)(`div`,{ref:s,"data-sidebar":`sliding-view`,"data-value":e,"aria-hidden":!a,className:q(`flex min-h-0 w-full shrink-0 flex-col`,!a&&`pointer-events-none`,t),...r,children:n})});wS.displayName=`Sidebar.SlidingView`;var TS=Object.assign(qx,{Provider:Kx,Header:Jx,Content:Yx,Footer:Xx,Loading:Qx,Group:$x,GroupLabel:eS,Menu:rS,MenuItem:iS,MenuButton:aS,MenuBadge:oS,MenuSub:sS,MenuSubItem:cS,MenuSubButton:lS,Separator:uS,Trigger:fS,Close:pS,Rail:mS,ResizeHandle:hS,MenuChevron:xS,Collapsible:vS,CollapsibleTrigger:yS,CollapsibleContent:bS,SlidingViews:CS,SlidingView:wS}),ES=_(),DS=q(`text-[13px] [&_td]:px-3 [&_td]:py-1.5 [&_tbody_tr]:border-t [&_tbody_tr]:border-kumo-hairline`,`[&_th]:px-3 [&_th]:py-1.5 [&_th]:text-xs [&_th]:font-medium [&_th]:whitespace-nowrap [&_th]:text-kumo-subtle`),OS=`[&_td]:whitespace-nowrap`;function kS({children:e,className:t}){return(0,J.jsx)(rv,{className:q(`data-table overflow-x-auto p-0`,t),children:(0,J.jsx)(Q,{className:q(DS,OS),children:e})})}function AS({children:e,wrap:t=!1}){return(0,J.jsx)(`div`,{className:`nested overflow-x-auto rounded-md border border-kumo-hairline bg-kumo-base`,children:(0,J.jsx)(Q,{className:q(DS,!t&&OS),children:e})})}function jS({colSpan:e,children:t}){return(0,J.jsx)(Q.Row,{children:(0,J.jsx)(Q.Cell,{colSpan:e,className:`text-kumo-subtle`,children:t})})}var MS=`table-link cursor-pointer text-left font-medium text-kumo-link hover:underline focus-visible:outline-2 focus-visible:outline-kumo-brand rounded-sm`,NS=`font-mono text-xs`;function PS({message:e,title:t}){return(0,J.jsx)(Gp,{variant:`error`,size:`sm`,role:`alert`,title:t,description:e})}function FS(e){let t={name:``,path:``,children:new Map};for(let n of e){let e=n.path.split(`/`).filter(Boolean),r=t;e.forEach((t,i)=>{let a=i===e.length-1,o=e.slice(0,i+1).join(`/`),s=r.children.get(t);s||(s={name:t,path:o},r.children.set(t,s)),!a||n.kind===`directory`?s.children??=new Map:s.size=n.size,r=s})}return t}function IS(e){return[...e.children?.values()??[]].sort((e,t)=>Number(!e.children)-Number(!t.children)||e.name.localeCompare(t.name,void 0,{numeric:!0}))}function LS(e){return e===void 0?``:e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}var RS=40;function zS({entries:e,rootLabel:t,readFile:n,selected:r,onSelect:i,emptyMessage:a=`No files.`}){let o=(0,v.useMemo)(()=>FS(e),[e]),s=e.filter(e=>e.kind!==`directory`).length,[c,l]=(0,v.useState)(),u=r??c,d=i??l,[f,p]=(0,v.useState)(()=>new Set(s<RS?[]:e.flatMap(e=>{let t=e.path.split(`/`);return t.length>2?[t.slice(0,2).join(`/`)]:[]}))),m=e=>p(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n});if(!e.length)return(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:a});let h=(e,t)=>{let n=!!e.children,r=n&&!f.has(e.path),i=n?r?Qf:Zf:Yf;return(0,J.jsxs)(`li`,{children:[(0,J.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded px-1.5 py-0.5 text-left font-mono text-xs hover:bg-kumo-tint ${e.path===u?`bg-kumo-tint font-semibold text-kumo-strong`:`text-kumo-default`}`,style:{paddingLeft:`${t*.9+.375}rem`},title:e.path,"aria-expanded":n?r:void 0,"aria-current":e.path===u?`true`:void 0,onClick:()=>n?m(e.path):d(e.path),children:[n?(0,J.jsx)(Vf,{"aria-hidden":!0,className:`size-3 shrink-0 text-kumo-subtle transition-transform ${r?`rotate-90`:``}`}):(0,J.jsx)(`span`,{className:`size-3 shrink-0`}),(0,J.jsx)(i,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-kumo-subtle`}),(0,J.jsx)(`span`,{className:`truncate`,children:e.name}),!n&&e.size!==void 0?(0,J.jsx)(`span`,{className:`ml-auto shrink-0 pl-2 text-[11px] font-normal text-kumo-subtle tabular-nums`,children:LS(e.size)}):null]}),r?(0,J.jsx)(`ul`,{children:IS(e).map(e=>h(e,t+1))}):null]},e.path)},g=e.find(e=>e.path===u);return(0,J.jsxs)(`div`,{className:`file-explorer grid min-w-0 overflow-hidden rounded-lg border border-kumo-line bg-kumo-base md:grid-cols-[minmax(14rem,18rem)_1fr]`,children:[(0,J.jsxs)(`div`,{className:`max-h-[28rem] overflow-auto border-b border-kumo-line p-1.5 md:border-r md:border-b-0`,children:[(0,J.jsxs)(`p`,{className:`flex items-center justify-between px-1.5 pb-1 text-[11px] font-medium text-kumo-subtle`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono`,children:t??`Files`}),(0,J.jsxs)(`span`,{className:`tabular-nums`,children:[s,` `,s===1?`file`:`files`]})]}),(0,J.jsx)(`ul`,{"aria-label":t??`Files`,children:IS(o).map(e=>h(e,0))})]}),(0,J.jsx)(VS,{path:g?g.path:void 0,size:g?.size,readFile:n})]})}var BS=262144;function VS({path:e,size:t,readFile:n}){let[r,i]=(0,v.useState)({});if((0,v.useEffect)(()=>{if(!e||!n)return;let t=!0,r;return n(e).then(async e=>{let t=e.headers.get(`content-type`)??``,n=new Uint8Array(await e.arrayBuffer());if(t.startsWith(`image/`))return r=URL.createObjectURL(new Blob([n],{type:t})),{kind:`image`,url:r};let i=n.subarray(0,BS);return i.subarray(0,8e3).includes(0)?{kind:`binary`}:{kind:`text`,text:new TextDecoder().decode(i),truncated:n.byteLength>BS}}).then(n=>{t&&i({path:e,preview:n})}).catch(n=>{t&&i({path:e,error:n instanceof Error?n.message:`Unable to read file`})}),()=>{t=!1,r&&URL.revokeObjectURL(r)}},[e,n]),!e)return(0,J.jsx)(`div`,{className:`flex min-h-32 items-center justify-center p-4 text-[13px] text-kumo-subtle`,children:`Select a file to preview it.`});let a=r.path===e?r:{};return(0,J.jsxs)(`section`,{"aria-label":`Preview of ${e}`,className:`flex min-w-0 flex-col`,children:[(0,J.jsxs)(`header`,{className:`flex items-center gap-2 border-b border-kumo-line px-3 py-1.5`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono text-xs text-kumo-strong`,title:e,children:e}),(0,J.jsx)(`span`,{className:`ml-auto shrink-0 text-[11px] text-kumo-subtle tabular-nums`,children:LS(t)})]}),(0,J.jsx)(`div`,{className:`max-h-[28rem] min-h-32 overflow-auto`,children:n?a.error?(0,J.jsx)(`div`,{className:`p-3`,children:(0,J.jsx)(PS,{message:a.error})}):a.preview?a.preview.kind===`image`?(0,J.jsx)(`img`,{src:a.preview.url,alt:e,className:`max-w-full p-3`}):a.preview.kind===`binary`?(0,J.jsx)(`p`,{className:`p-3 text-[13px] text-kumo-subtle`,children:`Binary file; no preview.`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`pre`,{className:`p-3 font-mono text-xs leading-relaxed whitespace-pre text-kumo-default`,children:a.preview.text}),a.preview.truncated?(0,J.jsxs)(`p`,{className:`px-3 pb-3 text-xs text-kumo-subtle`,children:[`Showing the first `,LS(BS),`.`]}):null]}):(0,J.jsx)(`p`,{className:`p-3 text-[13px] text-kumo-subtle`,children:`Loading…`}):(0,J.jsx)(`p`,{className:`p-3 text-[13px] text-kumo-subtle`,children:`File contents are not available here.`})})]})}function HS({api:e,datasetId:t,mount:n,evaluatorOnly:r}){let[i,a]=(0,v.useState)({}),[o,s]=Sn();(0,v.useEffect)(()=>{let n=!0;return e.listDatasetFiles(t).then(e=>{n&&a({id:t,listing:e})}).catch(e=>{n&&a({id:t,error:e instanceof Error?e.message:`Unable to list files`})}),()=>{n=!1}},[e,t]);let c=(0,v.useCallback)(n=>e.getDatasetFile(t,n),[e,t]),l=i.id===t?i:{},u=n===`.`?`workspace/`:`workspace/${n}/`;return(0,J.jsxs)(`section`,{className:`flex flex-col gap-2`,"aria-label":`Dataset files`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:`Files`}),l.error?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`The file list is not available here.`}):l.listing?l.listing.kind===`computed`?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Its files are computed when a run starts; open a run's workspace to see them.`}):(0,J.jsx)(zS,{entries:l.listing.files.map(e=>({...e,kind:`file`})),rootLabel:u,readFile:e.readOnly&&r?void 0:c,selected:o.get(`file`)??void 0,onSelect:e=>{let t=new URLSearchParams(o);t.set(`file`,e),s(t,{replace:!0})},emptyMessage:`This dataset has no files; it only provides a value.`}):(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Loading files…`})]})}function US({items:e}){return(0,J.jsx)(`dl`,{className:`grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1 text-[13px]`,children:e.map(([e,t])=>(0,J.jsxs)(`div`,{className:`contents`,children:[(0,J.jsx)(`dt`,{className:`text-kumo-subtle`,children:e}),(0,J.jsx)(`dd`,{className:`min-w-0 break-words text-kumo-default`,children:t})]},e))})}function WS({message:e,description:t}){return(0,J.jsx)(Wb,{size:`sm`,title:e,description:t,className:`py-12`})}function GS(e){return e.agent.id??KS(e)}function KS(e){return e?.agent.name??e?.agent.id??e?.agent.kind??`adapter`}function qS(e){let t=new Map,n=e=>{let n=GS({agent:e}),r=t.get(n)??{key:n,agent:e,scenarios:[],judging:[]};return t.set(n,r),r};for(let t of e)n(t.agent).scenarios.push(t),t.judgeAgent&&n(t.judgeAgent).judging.push(t);return[...t.values()].sort((e,t)=>e.key.localeCompare(t.key))}function JS(e){let t=new Map,n=(e,n)=>{let r=`${e.kind}\0${e.name}\0${e.definedAt??``}`,i=t.get(r)??{key:``,scorer:e,uses:[]};i.uses.push(n),t.set(r,i)};for(let t of e){for(let e of t.scorers)n(e,{scenario:t,placement:`final`});for(let[e,r]of(t.transcript??[]).entries())r.kind===`checkpoint`&&n(r.scorer,{scenario:t,placement:`checkpoint`,step:e})}let r=[...t.values()],i=new Map;for(let e of r)i.set(e.scorer.name,(i.get(e.scorer.name)??0)+1);for(let e of r)e.key=i.get(e.scorer.name)===1?e.scorer.name:`${e.scorer.name}@${e.scorer.definedAt??e.scorer.kind}`;return r.sort((e,t)=>e.key.localeCompare(t.key))}function YS(e){let t=new Map;for(let n of e)for(let e of n.datasets??[]){let r=t.get(e.id)??{dataset:e,scenarios:[]};r.scenarios.push(n),t.set(e.id,r)}return[...t.values()].sort((e,t)=>e.dataset.id.localeCompare(t.dataset.id))}function XS(e){let t=new Map;for(let n of e){let e=t.get(n.evalId);(!e||e.startedAt<n.startedAt)&&t.set(n.evalId,n)}return t}var ZS=encodeURIComponent,QS=`/runs`,$S=e=>`/runs/${ZS(e)}`,eC=e=>`${QS}?batch=${ZS(e)}`,tC=e=>`${$S(e)}/workspace`,nC=(e,t)=>`${$S(e)}/attachments${t?`?file=${ZS(t)}`:``}`,rC=(e,t)=>`/library/${e}${t===void 0?``:`/${ZS(t)}`}`,iC=e=>rC(`agents`,e),aC=e=>rC(`judges`,e),oC=e=>rC(`scenarios`,e),sC=e=>rC(`datasets`,e);function cC({run:e,view:t}){let n=[{label:`Runs`,href:QS},{label:`Run ${e.id.slice(0,8)}`,href:$S(e.id)},...t?[{label:t}]:[]];return(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(Rb,{size:`sm`,className:`hierarchy-breadcrumbs`,children:n.map((e,t)=>(0,J.jsxs)(v.Fragment,{children:[t?(0,J.jsx)(Rb.Separator,{}):null,t===n.length-1||!e.href?(0,J.jsx)(Rb.Current,{children:e.label}):(0,J.jsx)(Rb.Link,{href:e.href,children:e.label})]},t))})})}function lC({title:e,subtitle:t,status:n,actions:r}){return(0,J.jsxs)(`div`,{className:`flex flex-wrap items-start gap-3`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,J.jsxs)(`h2`,{className:`flex items-center gap-2 text-lg font-semibold text-kumo-strong`,children:[e,n]}),t?(0,J.jsx)(`p`,{className:`truncate font-mono text-xs text-kumo-subtle`,children:t}):null]}),r?(0,J.jsx)(`div`,{className:`flex items-center gap-2`,children:r}):null]})}function uC(e){if(e===null||typeof e==`string`||typeof e==`boolean`||typeof e==`number`&&Number.isFinite(e))return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(uC).join(`,`)}]`;if(typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype)return`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${uC(e[t])}`).join(`,`)}}`;throw Error(`Matrix parameters must be finite JSON values`)}function dC(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function fC(e){let t=[...new Set(e.flatMap(e=>Object.keys(e.parameters??{})))].sort(),n=[],r=[];for(let i of t)new Set(e.map(e=>Object.hasOwn(e.parameters??{},i)?uC(e.parameters[i]):void 0)).size===1&&e.length>1?r.push([i,e[0].parameters[i]]):n.push(i);return{columns:n.slice(0,3),overflow:n.slice(3),constant:r}}function pC({entries:e}){return e.length?(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.map(([e,t])=>(0,J.jsxs)(`span`,{className:`${NS} max-w-[20rem] truncate rounded border border-kumo-hairline px-1 text-[11px]`,title:`${e}=${dC(t)}`,children:[(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[e,`=`]}),dC(t)]},e))}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}function mC({run:e,keys:t}){let n=t.flatMap(t=>Object.hasOwn(e.parameters??{},t)?[`${t}=${dC(e.parameters[t])}`]:[]);return n.length?(0,J.jsx)(`span`,{className:`${NS} block max-w-[16rem] truncate text-xs`,title:n.join(`
31
- `),children:n.join(` · `)}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}function hC({run:e,name:t}){let n=Object.hasOwn(e.parameters??{},t),r=n?dC(e.parameters?.[t]):`—`;return(0,J.jsx)(`span`,{className:`${NS} block max-w-[10rem] truncate`,title:n?r:`Not set on this run`,children:r})}function gC(e,t=Date.now()){let n=Math.round((t-Date.parse(e))/1e3);return Number.isFinite(n)?n<45?`just now`:n<3600?`${Math.round(n/60)} min ago`:n<86400?`${Math.round(n/3600)} h ago`:n<604800?`${Math.round(n/86400)} d ago`:new Date(e).toLocaleDateString():e}function _C(e){return e===void 0?`—`:Number.isInteger(e)?String(e):e.toFixed(2)}function vC(e){if(e!==void 0)return e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/6e4)}m ${Math.round(e%6e4/1e3)}s`}function yC(e,t){if(t===`ms`)return vC(e);let n=Math.abs(e)>=1e4?new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:1}).format(e):Number.isInteger(e)?e.toLocaleString(`en`):e.toFixed(e<10?2:1);return t&&t!==`tokens`?`${n} ${t}`:n}function bC({run:e}){return(0,J.jsx)(`span`,{className:`tabular-nums`,children:_C(e.score)})}function xC({run:e}){let t=vC(e.durationMs);return(0,J.jsxs)(`span`,{className:`flex flex-col tabular-nums`,title:new Date(e.startedAt).toLocaleString(),children:[(0,J.jsx)(`span`,{children:gC(e.startedAt)}),t?(0,J.jsxs)(`span`,{className:`text-xs text-kumo-subtle`,children:[`took `,t]}):null]})}var SC={className:`row-link cursor-pointer hover:bg-kumo-tint`,onClick(e){if(e.target.closest(`a, button, input, select, label, textarea`)||window.getSelection()?.toString())return;let t=e.currentTarget.querySelector(`a[data-row-link]`);t&&(e.metaKey||e.ctrlKey||e.button===1?window.open(t.href,`_blank`,`noopener`):t.click())}},CC={passed:`bg-kumo-success`,failed:`bg-kumo-danger`,errored:`bg-kumo-warning`,running:`bg-kumo-info animate-pulse`,cancelled:`bg-kumo-neutral-450`,"not-run":`border border-dashed border-kumo-line bg-transparent`},wC={passed:`bg-kumo-success-tint`,failed:`bg-kumo-danger-tint`,errored:`bg-kumo-warning-tint`,running:`bg-kumo-info-tint`,cancelled:`bg-kumo-tint`,"not-run":``},TC={passed:`passed`,failed:`failed`,errored:`errored`,running:`running`,cancelled:`cancelled`,"not-run":`not run`},EC={failed:0,errored:1,running:2,cancelled:3,"not-run":4,passed:5};function DC(e){return e===void 0?`text-kumo-subtle`:e>=.9?`bg-kumo-success-tint`:e>=.5?`bg-kumo-warning-tint`:`bg-kumo-danger-tint`}var OC={agents:`Agents`,judges:`Judges`,scenarios:`Scenarios`,datasets:`Datasets`};function kC({section:e,current:t}){return(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsxs)(Rb,{size:`sm`,className:`hierarchy-breadcrumbs`,children:[(0,J.jsx)(Rb.Current,{children:`Library`}),(0,J.jsx)(Rb.Separator,{}),t?(0,J.jsx)(Rb.Link,{href:rC(e),children:OC[e]}):(0,J.jsx)(Rb.Current,{children:OC[e]}),t?(0,J.jsx)(Rb.Separator,{}):null,t?(0,J.jsx)(Rb.Current,{children:t}):null]})})}function AC({at:e}){return e?(0,J.jsx)(`span`,{className:`${NS} text-kumo-subtle`,title:`Where this is defined`,children:e}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}function jC({children:e}){return(0,J.jsx)(`span`,{className:`rounded border border-kumo-line px-1.5 py-0.5 text-xs`,children:e})}function MC({title:e,children:t}){return(0,J.jsxs)(rv,{className:`flex max-w-3xl flex-col gap-3 p-4`,children:[e?(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:e}):null,t]})}function NC({scenarios:e,runs:t,note:n}){let r=XS(t);return(0,J.jsxs)(`section`,{"aria-label":`Used by`,className:`flex flex-col gap-2`,children:[(0,J.jsxs)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:[`Used by`,` `,(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle tabular-nums`,children:e.length}),n?(0,J.jsx)(`span`,{className:`ml-2 text-xs font-normal text-kumo-subtle`,children:n}):null]}),(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Scenario`}),(0,J.jsx)(Q.Head,{children:`Suite`}),(0,J.jsx)(Q.Head,{children:`How`}),(0,J.jsx)(Q.Head,{children:`Latest run`})]})}),(0,J.jsxs)(Q.Body,{children:[e.map(({scenario:e,note:t},n)=>{let i=r.get(e.id);return(0,J.jsxs)(Q.Row,{...SC,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(gn,{to:oC(e.id),"data-row-link":!0,className:MS,children:e.name??e.id})}),(0,J.jsx)(Q.Cell,{children:e.suiteId??`—`}),(0,J.jsx)(Q.Cell,{className:`text-kumo-subtle`,children:t??`—`}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(PC,{run:i})})]},`${e.id}-${n}`)}),e.length?null:(0,J.jsx)(jS,{colSpan:4,children:`No scenario uses it.`})]})]})]})}function PC({run:e}){return e?(0,J.jsxs)(gn,{to:$S(e.id),className:`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs ${wC[e.status]}`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-2 rounded-full ${CC[e.status]}`}),TC[e.status],(0,J.jsx)(`span`,{className:`tabular-nums text-kumo-subtle`,children:_C(e.score)})]}):(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:`not run`})}function FC(e){return(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.runtimes.map(e=>(0,J.jsxs)(jC,{children:[e.name,` `,(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[`(`,e.kind,`)`]})]},e.name))})}function IC({catalog:e}){let t=qS(e);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`agents`}),t.length?(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Agent`}),(0,J.jsx)(Q.Head,{children:`Kind`}),(0,J.jsx)(Q.Head,{children:`Runtimes`}),(0,J.jsx)(Q.Head,{children:`Scenarios`}),(0,J.jsx)(Q.Head,{children:`Defined in`})]})}),(0,J.jsx)(Q.Body,{children:t.map(({key:e,agent:t,scenarios:n,judging:r})=>(0,J.jsxs)(Q.Row,{...SC,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex flex-col`,children:[(0,J.jsx)(gn,{to:iC(e),"data-row-link":!0,className:MS,children:t.name??e}),t.name?(0,J.jsx)(`span`,{className:`${NS} text-kumo-subtle`,children:e}):null]})}),(0,J.jsx)(Q.Cell,{children:t.kind}),(0,J.jsx)(Q.Cell,{children:FC(t)}),(0,J.jsxs)(Q.Cell,{className:`tabular-nums`,children:[n.length,r.length?(0,J.jsxs)(`span`,{className:`ml-1 text-xs text-kumo-subtle`,children:[`+ judges `,r.length]}):null]}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(AC,{at:t.definedAt})})]},e))})]}):(0,J.jsx)(WS,{message:`No agents yet. Define one with defineAgent in agents/.`})]})}function LC({catalog:e,runs:t,agentKey:n}){let r=qS(e).find(e=>e.key===n);if(!r)return(0,J.jsx)(WS,{message:`Agent not found: ${n}`});let{agent:i,scenarios:a,judging:o}=r;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`agents`,current:i.name??n}),(0,J.jsx)(lC,{title:i.name??n,subtitle:n}),(0,J.jsx)(MC,{children:(0,J.jsx)(US,{items:[[`ID`,(0,J.jsx)(`span`,{className:NS,children:i.id??`—`},`id`)],[`Kind`,i.kind],...i.version?[[`Version`,i.version]]:[],[`Runtimes`,FC(i)],[`Defined in`,(0,J.jsx)(AC,{at:i.definedAt},`at`)]]})}),(0,J.jsx)(NC,{runs:t,scenarios:[...a.map(e=>({scenario:e,note:`agent under test`})),...o.map(e=>({scenario:e,note:`judge agent`}))]})]})}function RC({scorer:e}){return(0,J.jsx)(Or,{variant:e.kind===`judge`?`beta`:`neutral`,children:e.kind===`judge`?`LLM judge`:`predicate`})}function zC(e){return e.kind===`judge`?`its verdict`:e.passAt===void 0?`only 1`:`≥ ${e.passAt}`}function BC(e){return e.placement===`final`?`final scoring`:`checkpoint after step ${(e.step??0)+1}`}function VC({catalog:e}){let t=JS(e);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`judges`}),t.length?(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Judge`}),(0,J.jsx)(Q.Head,{children:`Kind`}),(0,J.jsx)(Q.Head,{children:`Passes at`}),(0,J.jsx)(Q.Head,{children:`Scenarios`}),(0,J.jsx)(Q.Head,{children:`Defined in`})]})}),(0,J.jsx)(Q.Body,{children:t.map(({key:e,scorer:t,uses:n})=>(0,J.jsxs)(Q.Row,{...SC,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(gn,{to:aC(e),"data-row-link":!0,className:MS,children:t.name})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(RC,{scorer:t})}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:zC(t)}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:new Set(n.map(e=>e.scenario.id)).size}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(AC,{at:t.definedAt})})]},e))})]}):(0,J.jsx)(WS,{message:`No judges yet. Add predicates or judges in judges/.`})]})}function HC({catalog:e,runs:t,judgeKey:n}){let r=JS(e).find(e=>e.key===n);if(!r)return(0,J.jsx)(WS,{message:`Judge not found: ${n}`});let{scorer:i,uses:a}=r;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`judges`,current:i.name}),(0,J.jsx)(lC,{title:i.name,status:(0,J.jsx)(RC,{scorer:i})}),(0,J.jsxs)(MC,{children:[(0,J.jsx)(US,{items:[[`Kind`,i.kind===`judge`?`LLM judge: the scenario’s judge agent grades the run against the rubric`:`Predicate: a function scores the run from 0 to 1`],[`Passes at`,zC(i)],[`Partial runs`,i.supportsPartial?`Also scores runs that stopped early or failed`:`Only scores runs that ran to the end`],[`Defined in`,(0,J.jsx)(AC,{at:i.definedAt},`at`)]]}),i.rubric?(0,J.jsxs)(`figure`,{className:`flex flex-col gap-1`,children:[(0,J.jsx)(`figcaption`,{className:`text-xs font-medium text-kumo-subtle`,children:`Rubric`}),(0,J.jsx)(`blockquote`,{className:`rounded-md border-l-2 border-kumo-brand bg-kumo-elevated px-3 py-2 text-[13px] whitespace-pre-wrap`,children:i.rubric})]}):null]}),(0,J.jsx)(NC,{runs:t,scenarios:a.map(e=>({scenario:e.scenario,note:BC(e)}))})]})}function UC(e){if(e.source===`computed`)return e.hooks?.onRun?`built by onLoad, adapted per run by onRun`:`built by onLoad`;let t=[];return e.files&&t.push(`directory`in e.files?`files from ${e.files.directory}/`:`${e.files.paths.length} inline files`),e.value&&t.push(`file`in e.value?`value from ${e.value.file}`:`an inline value`),t.join(` and `)||`—`}function WC({catalog:e}){let t=YS(e);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`datasets`}),t.length?(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Dataset`}),(0,J.jsx)(Q.Head,{children:`Kind`}),(0,J.jsx)(Q.Head,{children:`Visible to`}),(0,J.jsx)(Q.Head,{children:`Contents`}),(0,J.jsx)(Q.Head,{children:`Scenarios`}),(0,J.jsx)(Q.Head,{children:`Defined in`})]})}),(0,J.jsx)(Q.Body,{children:t.map(({dataset:e,scenarios:t})=>(0,J.jsxs)(Q.Row,{...SC,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex flex-col`,children:[(0,J.jsx)(gn,{to:sC(e.id),"data-row-link":!0,className:MS,children:e.name??e.id}),e.name?(0,J.jsx)(`span`,{className:`${NS} text-kumo-subtle`,children:e.id}):null]})}),(0,J.jsx)(Q.Cell,{children:e.source}),(0,J.jsx)(Q.Cell,{children:e.visibility===`candidate`?`agent and scorers`:`scorers only`}),(0,J.jsx)(Q.Cell,{className:`max-w-[20rem] truncate`,children:UC(e)}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.length}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(AC,{at:e.definedAt})})]},e.id))})]}):(0,J.jsx)(WS,{message:`No scenario uses a dataset yet. Define one with defineDataset in datasets/.`})]})}function GC({api:e,catalog:t,runs:n,datasetId:r}){let i=YS(t).find(e=>e.dataset.id===r);if(!i)return(0,J.jsx)(WS,{message:`Dataset not found: ${r}`});let{dataset:a,scenarios:o}=i,s=a.files,c=a.value;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`datasets`,current:a.name??a.id}),(0,J.jsx)(lC,{title:a.name??a.id,subtitle:a.id,status:(0,J.jsx)(Or,{variant:`neutral`,children:a.source})}),(0,J.jsx)(MC,{children:(0,J.jsx)(US,{items:[[`Kind`,a.source===`computed`?`Computed: onLoad builds it once per process and caches it`:`Static: declared in the definition`],...a.hooks?[[`Hooks`,(0,J.jsxs)(`span`,{className:`flex gap-1`,children:[(0,J.jsx)(jC,{children:`onLoad · once per process`}),a.hooks.onRun?(0,J.jsx)(jC,{children:`onRun · once per run`}):null]},`hooks`)]]:[],[`Visible to`,a.visibility===`candidate`?`The agent (in its workspace and context.data) and the scorers`:`Only the scorers; the agent never sees it`],[`Mounted at`,(0,J.jsx)(`span`,{className:NS,children:a.mount===`.`?`workspace root`:`${a.mount}/`},`mount`)],[`Defined in`,(0,J.jsx)(AC,{at:a.definedAt},`at`)]]})}),s||c?(0,J.jsx)(MC,{title:`Contents`,children:(0,J.jsx)(US,{items:[...s?[[`Files`,`directory`in s?(0,J.jsxs)(`span`,{children:[(0,J.jsxs)(`span`,{className:NS,children:[s.directory,`/`]}),`, copied into each run's workspace`]},`files`):`${s.paths.length} declared inline, written into each run's workspace`]]:[],...c?[[`Value`,`file`in c?(0,J.jsx)(`span`,{className:NS,children:c.file},`value`):(0,J.jsx)(`span`,{children:c.shape.type===`array`?`array of ${c.shape.items} items`:c.shape.type===`object`?(0,J.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1`,children:[`object with`,c.shape.keys.map(e=>(0,J.jsx)(jC,{children:(0,J.jsx)(`span`,{className:NS,children:e})},e))]}):c.shape.type},`value`)]]:[]]})}):null,(0,J.jsx)(HS,{api:e,datasetId:a.id,mount:a.mount,evaluatorOnly:a.visibility===`evaluator`}),(0,J.jsx)(NC,{runs:n,scenarios:o.map(e=>({scenario:e}))})]})}function KC({api:e,runId:t,attachments:n}){let[r,i]=Sn(),a=(0,v.useCallback)(n=>e.getAttachment(t,n),[e,t]),o=n.filter(e=>e.truncatedFrom);return(0,J.jsxs)(`section`,{className:`attachments flex flex-col gap-2`,children:[o.length?(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,children:[o.map(e=>`${e.name} keeps its last ${LS(e.size)} of ${LS(e.truncatedFrom)}`).join(`; `),`.`]}):null,(0,J.jsx)(zS,{entries:n.map(e=>({path:e.name,kind:`file`,size:e.size})),rootLabel:`attachments/`,readFile:a,selected:r.get(`file`)??void 0,onSelect:e=>{let t=new URLSearchParams(r);t.set(`file`,e),i(t,{replace:!0})},emptyMessage:`Nothing was attached to this run.`})]})}function qC({artifact:e}){return(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{className:`${NS} break-all`,children:e.path}),(0,J.jsx)(Q.Cell,{children:e.kind}),(0,J.jsx)(Q.Cell,{className:`whitespace-nowrap tabular-nums`,children:e.size===void 0?`—`:`${e.size} B`})]})}function JC({label:e,noun:t,page:n,pageSize:r,total:i,onPage:a}){if(i<=r)return null;let o=n*r+1,s=Math.min((n+1)*r,i);return(0,J.jsx)(`nav`,{className:`pager flex items-center justify-end`,"aria-label":e,children:(0,J.jsxs)(Dy,{page:n+1,setPage:e=>a(e-1),perPage:r,totalCount:i,children:[(0,J.jsx)(Dy.Info,{children:()=>(0,J.jsxs)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:[t,` `,o,`–`,s,` of `,i]})}),(0,J.jsx)(Dy.Controls,{})]})})}function YC(e,t,n){let r=t.trim().toLowerCase();return r?e.flatMap(e=>{if(e.label.toLowerCase().includes(r))return[e];let t=e.values.filter(t=>t.label.toLowerCase().includes(r)||n.getAll(e.key).includes(t.key));return t.length?[{...e,values:t}]:[]}):[...e]}var XC=(e,...t)=>!e||t.some(t=>t.includes(e));function ZC({facets:e,search:t,archivedCount:n=0,onToggleFacet:r,onField:i,onClear:a}){let[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(``),u=c.trim().toLowerCase(),d=YC(e,c,t).filter(e=>e.values.length>1||t.has(e.key)),f=XC(u,`date`,`from`,`to`,`started`),p=n>0&&XC(u,`archived`,`removed`),m=[...t.keys()].filter(e=>e!==`q`).length,h=QC(e,t);return(0,J.jsxs)(`section`,{"aria-label":`Run filters`,className:`runs-filter-panel rounded-lg border border-kumo-line bg-kumo-base`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 px-3 py-1.5`,children:[(0,J.jsxs)(`button`,{type:`button`,"aria-expanded":o,className:`flex shrink-0 cursor-pointer items-center gap-1.5 text-[13px] font-semibold text-kumo-strong select-none`,onClick:()=>s(e=>!e),children:[(0,J.jsx)(Vf,{"aria-hidden":!0,className:`size-3 text-kumo-subtle transition-transform ${o?`rotate-90`:``}`}),(0,J.jsx)($f,{"aria-hidden":!0,className:`size-3.5 text-kumo-subtle`}),`Filters`,m?` (${m} active)`:``]}),h.map(e=>(0,J.jsxs)(`button`,{type:`button`,className:`active-filter inline-flex max-w-[16rem] cursor-pointer items-center gap-1 rounded-full border border-kumo-line bg-kumo-elevated px-2 py-0.5 text-xs`,title:`Remove ${e.label}: ${e.choice}`,onClick:()=>e.facet?r(e.field,e.value):i(e.field,``),children:[(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[e.label,`:`]}),(0,J.jsx)(`span`,{className:`truncate`,children:e.choice}),(0,J.jsx)(vp,{"aria-hidden":!0,className:`size-3 shrink-0 text-kumo-subtle`})]},`${e.field}=${e.value}`)),(0,J.jsx)(Np,{size:`xs`,variant:`ghost`,shape:`square`,className:`clear-filters ml-auto shrink-0`,icon:(0,J.jsx)(ep,{}),"aria-label":`Clear filters`,title:`Clear filters`,disabled:!m,onClick:a})]}),o?(0,J.jsxs)(`div`,{className:`flex max-h-[min(32rem,60vh)] flex-col gap-3 overflow-y-auto border-t border-kumo-hairline px-3 py-3`,children:[(0,J.jsx)(kh,{type:`search`,size:`xs`,"aria-label":`Search filters`,placeholder:`Search filters`,value:c,className:`max-w-xs`,onChange:e=>l(e.target.value)}),(0,J.jsxs)(`div`,{className:`grid grid-cols-[repeat(auto-fill,minmax(12rem,1fr))] gap-x-6 gap-y-4`,children:[d.map(e=>(0,J.jsx)(ew,{facet:e,checked:t.getAll(e.key),searching:u.length>0,onToggle:t=>r(e.key,t)},e.key)),f?(0,J.jsxs)(`fieldset`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,J.jsx)(`legend`,{className:`mb-1 text-xs font-medium text-kumo-subtle`,children:`Started`}),(0,J.jsx)(kh,{type:`date`,size:`xs`,label:`From`,value:t.get(`from`)??``,onChange:e=>i(`from`,e.target.value)}),(0,J.jsx)(kh,{type:`date`,size:`xs`,label:`To`,value:t.get(`to`)??``,onChange:e=>i(`to`,e.target.value)})]}):null,p?(0,J.jsxs)(`fieldset`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,J.jsx)(`legend`,{className:`mb-1 text-xs font-medium text-kumo-subtle`,children:`Archived`}),(0,J.jsx)(ph,{className:`runs-choice min-w-0`,checked:t.get(`archived`)===`show`,onCheckedChange:e=>i(`archived`,e?`show`:``),label:(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline justify-between gap-2 text-[13px]`,children:[(0,J.jsx)(`span`,{children:`Show archived`}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:n})]})})]}):null]}),!d.length&&!f&&!p?(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,children:[`No filters match “`,c,`”.`]}):null]}):null]})}function QC(e,t){let n={from:`From`,to:`To`,archived:`Archived`,batch:`Batch`};return[...t.entries()].flatMap(([t,r])=>{if(t===`q`)return[];let i=e.find(e=>e.key===t);if(i){let e=i.values.find(e=>e.key===r);return[{field:t,value:r,label:i.label,choice:e?.label??r,facet:!0}]}return[{field:t,value:r,label:n[t]??t,choice:t===`batch`?r.slice(0,8):r,facet:!1}]})}function $C(e,t,n,r=``){let i=e.length>8,a=r.trim().toLowerCase(),o=a?e.filter(e=>e.label.toLowerCase().includes(a)||t.includes(e.key)):[...e];if(!i)return{choices:o,hidden:0};let s=o.sort((e,n)=>Number(t.includes(n.key))-Number(t.includes(e.key))||n.count-e.count||e.label.localeCompare(n.label,void 0,{numeric:!0}));if(n)return{choices:s,hidden:0};let c=[...s.filter(e=>t.includes(e.key)),...s.filter(e=>!t.includes(e.key)).slice(0,6)];return{choices:c,hidden:s.length-c.length}}function ew({facet:e,checked:t,searching:n,onToggle:r}){let[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(``),{choices:c,hidden:l}=$C(e.values,t,i||n,i?o:``);return(0,J.jsxs)(`fieldset`,{className:`facet-group flex min-w-0 flex-col gap-1`,children:[(0,J.jsxs)(`legend`,{className:`mb-1 flex w-full items-baseline justify-between gap-2 text-xs font-medium text-kumo-subtle`,children:[(0,J.jsx)(`span`,{className:`truncate`,children:e.label}),(0,J.jsx)(`span`,{className:`tabular-nums`,children:e.values.length})]}),i&&e.values.length>8?(0,J.jsx)(kh,{type:`search`,size:`xs`,"aria-label":`Search ${e.label}`,placeholder:`Search ${e.values.length} values`,value:o,onChange:e=>s(e.target.value)}):null,(0,J.jsxs)(`div`,{className:`flex max-h-56 flex-col gap-1 overflow-y-auto`,children:[c.map(e=>(0,J.jsx)(ph,{className:`runs-choice min-w-0`,checked:t.includes(e.key),onCheckedChange:()=>r(e.key),label:(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline justify-between gap-2 text-[13px]`,title:e.label,children:[(0,J.jsx)(`span`,{className:`truncate`,children:e.label}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:e.count})]})},e.key)),c.length?null:(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:`No matches.`})]}),l>0||i?(0,J.jsx)(`button`,{type:`button`,className:`facet-more self-start text-xs text-kumo-link hover:underline`,onClick:()=>{a(e=>!e),s(``)},children:i?`Show fewer`:`Show all ${e.values.length}`}):null]})}var tw=`@missing`,nw=e=>`p.${e}`;function rw(e,t,n){let r=e.get(t);r?r.count++:e.set(t,{key:t,label:n,count:1})}function iw(e){return[{key:`eval`,label:`Scenario`},{key:`matrix`,label:`Matrix`},{key:`status`,label:`Status`},...[...new Set(e.flatMap(e=>Object.keys(e.parameters??{})))].sort().map(e=>({key:nw(e),label:e}))].map(({key:t,label:n})=>{let r=new Map;for(let n of e){let e=t===`eval`?n.evalId:t===`matrix`?n.matrixId:t===`status`?n.status:n.parameters?.[t.slice(2)],i=t===`eval`||t===`status`||(t===`matrix`?n.matrixId!==void 0:Object.hasOwn(n.parameters??{},t.slice(2)));rw(r,i?uC(e):tw,i?String(typeof e==`string`?e:JSON.stringify(e)):`Missing`)}return{key:t,label:n,values:[...r.values()].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}))}})}function aw(e,t={}){let n=new URLSearchParams;n.append(`eval`,uC(e));for(let[e,r]of Object.entries(t))r!=null&&n.append(nw(e),uC(r));return`/runs?${n}`}function ow(e,t){let n=[...t.keys()].filter(e=>[`eval`,`matrix`,`status`].includes(e)||e.startsWith(`p.`)),r=t.get(`from`),i=t.get(`to`),a=t.get(`batch`);return e.filter(e=>a&&e.batch?.id!==a||r&&e.startedAt.slice(0,10)<r||i&&e.startedAt.slice(0,10)>i?!1:n.every(n=>{let r=t.getAll(n),i=n===`eval`||n===`status`||(n===`matrix`?e.matrixId!==void 0:Object.hasOwn(e.parameters??{},n.slice(2))),a=n===`eval`?e.evalId:n===`matrix`?e.matrixId:n===`status`?e.status:e.parameters?.[n.slice(2)],o=i?uC(a):tw;return r.includes(o)}))}function sw({label:e,placeholder:t,value:n,count:r,onChange:i}){return(0,J.jsxs)(`div`,{className:`search-field flex min-w-0 flex-wrap items-center gap-3`,children:[(0,J.jsx)(kh,{type:`search`,size:`sm`,"aria-label":e,placeholder:t,value:n,className:`w-full sm:w-80`,onChange:e=>i(e.target.value)}),(0,J.jsx)(`span`,{className:`search-count text-xs text-kumo-subtle tabular-nums`,children:r})]})}function cw(e,t){let[n,r]=(0,v.useState)(()=>new URLSearchParams),i=e??n,a=t??r,o=i.get(`q`)??``,[s,c]=(0,v.useState)(o);return(0,v.useEffect)(()=>c(o),[o]),(0,v.useEffect)(()=>{if(s===o)return;let e=setTimeout(()=>{let e=new URLSearchParams(i);s?e.set(`q`,s):e.delete(`q`),a(e)},250);return()=>clearTimeout(e)},[s,o,i,a]),{activeSearch:i,query:s,setQuery:c,setField:(e,t)=>{let n=new URLSearchParams(i);t?n.set(e,t):n.delete(e),a(n)},toggleFacet:(e,t)=>{let n=new URLSearchParams(i),r=n.getAll(e);n.delete(e);for(let i of r.filter(e=>e!==t))n.append(e,i);r.includes(t)||n.append(e,t),a(n)},clearFilters:()=>a(new URLSearchParams)}}function lw(e,t){let[n,r]=(0,v.useState)({}),i=t?`${t.id}:${t.status}:${t.completedAt??``}`:``;return(0,v.useEffect)(()=>{if(!t)return;let n=!0;return e.getRun(t.id).then(e=>{n&&r({signature:i,detail:e})}).catch(e=>{n&&r({signature:i,error:e instanceof Error?e.message:`Unable to load the run`})}),()=>{n=!1}},[e,i]),n.signature?.startsWith(`${t?.id}:`)?n:{}}function uw(e,t,n,r){let i=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length?e.filter(e=>{let t=r.find(t=>t.id===e.evalId),a=n.find(t=>t.id===e.suiteId),o=Object.entries(e.parameters??{}).flatMap(([e,t])=>[e,dC(t)]),s=[e.id,e.batch?.id,e.evalId,t?.name,e.suiteId,a?.name,e.matrixId,t?.agent.name,t?.agent.kind,e.status,e.score,e.startedAt,e.source?.commit,e.source?.ref,e.source?.dirty?`dirty`:void 0,...o].map(dC).join(` `).toLowerCase();return i.every(e=>s.includes(e))}):[...e]}function dw({runs:e,catalog:t,suites:n,search:r,onSearchChange:i}){let a=cw(r,i),{activeSearch:o,query:s}=a,c=o.get(`archived`)===`show`,l=e.filter(e=>e.archived).length,u=(0,v.useMemo)(()=>c?e:e.filter(e=>!e.archived),[e,c]),d=(0,v.useMemo)(()=>iw(u),[u]),f=(0,v.useMemo)(()=>uw(ow(u,o),s,n,t),[u,o,s,n,t]);return{...a,listed:u,facets:d,filteredRuns:f,archivedCount:l}}function fw({selection:e,facets:t=e.facets,label:n,count:r}){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(sw,{label:n,placeholder:`Scenario, parameter, agent, commit or status`,value:e.query,count:r,onChange:e.setQuery}),(0,J.jsx)(ZC,{facets:t,search:e.activeSearch,archivedCount:e.archivedCount,onToggleFacet:e.toggleFacet,onField:e.setField,onClear:e.clearFilters})]})}function pw(e,t){let[n,r]=(0,v.useState)(e);return{sort:n,toggleSort:e=>{r(t=>t.key===e?{key:e,direction:t.direction===`asc`?`desc`:`asc`}:{key:e,direction:`asc`}),t?.()}}}function mw({label:e,sortKey:t,sort:n,onSort:r,sticky:i}){let a=n.key===t,o=a?n.direction===`asc`?`ascending`:`descending`:void 0,s=a?n.direction===`asc`?Hf:zf:Uf;return(0,J.jsx)(Q.Head,{"aria-sort":o,sticky:i,children:(0,J.jsxs)(`button`,{type:`button`,className:`table-sort inline-flex items-center gap-1 whitespace-nowrap rounded font-medium hover:text-kumo-strong focus-visible:outline-2 focus-visible:outline-kumo-brand`,onClick:()=>r(t),children:[e,(0,J.jsx)(s,{"aria-hidden":!0,className:a?`size-3`:`size-3 text-kumo-inactive`})]})})}function hw(e,t,n){return(0,v.useMemo)(()=>{let r=[...e];return r.sort((e,r)=>{let i=n(e,t.key),a=n(r,t.key),o=typeof i==`number`&&typeof a==`number`?i-a:String(i??``).localeCompare(String(a??``),void 0,{numeric:!0,sensitivity:`base`});return t.direction===`asc`?o:-o}),r},[e,t,n])}var gw={passed:`success`,failed:`error`,errored:`warning`,error:`warning`};function _w({status:e}){return(0,J.jsx)(`span`,{className:`inline-flex`,"data-status":e,children:(0,J.jsx)(Or,{appearance:`dot`,variant:gw[e]??`neutral`,children:e})})}var vw=50,yw=6;function bw({runs:e,suites:t,catalog:n,search:r,onSearchChange:i,workspaces:a=!1}){let o=dw({runs:e,catalog:n,suites:t,search:r,onSearchChange:i}),{listed:s,filteredRuns:c,clearFilters:l}=o,u=fC(c),[d,f]=(0,v.useState)(0),{sort:p,toggleSort:m}=pw({key:`started`,direction:`desc`},()=>f(0)),h=e=>n.find(t=>t.id===e.evalId),g=e=>t.find(t=>t.id===e.suiteId)?.name,_=hw(c,p,(e,t)=>xw(e,t,h(e),g(e))),y=Math.max(1,Math.ceil(_.length/vw)),b=Math.min(d,y-1),x=_.slice(b*vw,(b+1)*vw),S=yw+u.columns.length+ +!!u.overflow.length,C=(e,t,n)=>(0,J.jsx)(mw,{label:e,sortKey:t,sort:p,onSort:m,sticky:n});return e.length?(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[a?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Each run worked in its own workspace; open one to browse the files the agent left.`}):null,(0,J.jsx)(fw,{selection:o,label:a?`Filter workspaces`:`Filter runs`,count:`${_.length} of ${s.length} runs`}),u.constant.length?(0,J.jsxs)(`p`,{className:`constant-parameters flex flex-wrap items-center gap-1 text-[13px] text-kumo-subtle`,role:`note`,children:[`Same on every run shown:`,(0,J.jsx)(pC,{entries:u.constant})]}):null,(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[C(`Run`,`run`,`left`),C(`Status`,`status`),C(`Scenario`,`eval`),C(`Score`,`score`),C(`Started`,`started`),C(`Commit`,`commit`),u.columns.map(e=>(0,J.jsx)(mw,{label:e,sortKey:`param:${e}`,sort:p,onSort:m},e)),u.overflow.length?(0,J.jsx)(Q.Head,{children:`Other parameters`}):null]})}),(0,J.jsxs)(Q.Body,{children:[x.map(e=>(0,J.jsx)(Sw,{run:e,evaluation:h(e),suiteName:g(e),layout:u,href:a?tC(e.id):$S(e.id),onBatch:e=>o.setField(`batch`,e)},e.id)),_.length?null:(0,J.jsx)(jS,{colSpan:S,children:(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[`No matching runs.`,(0,J.jsx)(Np,{size:`xs`,variant:`ghost`,onClick:l,children:`Clear filters`})]})})]})]}),(0,J.jsx)(JC,{label:`Run pages`,noun:`Runs`,page:b,pageSize:vw,total:_.length,onPage:f})]}):(0,J.jsx)(WS,{message:`No runs yet. Open a scenario or suite to start one.`})}function xw(e,t,n,r){if(t.startsWith(`param:`)){let n=e.parameters?.[t.slice(6)];return n===void 0?void 0:typeof n==`number`?n:dC(n)}return{run:e.id,suite:r??e.suiteId,eval:n?.name??e.evalId,agent:n?.agent.name??n?.agent.kind??`Unnamed agent`,status:e.status,score:e.score,runtime:e.durationMs,started:e.startedAt,commit:e.source?.commit}[t]}function Sw({run:e,evaluation:t,suiteName:n,layout:r,href:i,onBatch:a}){let o=t?.name??e.evalId,s=n??e.suiteId;return(0,J.jsxs)(Q.Row,{...SC,children:[(0,J.jsxs)(Q.Cell,{sticky:`left`,className:`whitespace-nowrap`,children:[(0,J.jsx)(gn,{to:i,"data-row-link":!0,className:`${MS} ${NS}`,title:e.id,children:e.id.slice(0,8)}),e.batch?(0,J.jsxs)(`button`,{type:`button`,className:`batch-label ml-2 rounded border border-kumo-line px-1 text-[11px] text-kumo-subtle tabular-nums hover:text-kumo-default`,title:`Run ${e.batch.index+1} of ${e.batch.size} launched together; show them all`,onClick:()=>a(e.batch.id),children:[e.batch.index+1,`/`,e.batch.size]}):null]}),(0,J.jsx)(Q.Cell,{title:e.interrupted?`Its process stopped before the run finished`:void 0,children:(0,J.jsx)(_w,{status:e.status})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex max-w-[14rem] flex-col`,children:[(0,J.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,J.jsx)(gn,{to:oC(e.evalId),className:`${MS} truncate font-medium`,title:o,children:o}),e.archived?(0,J.jsx)(`span`,{className:`shrink-0 rounded border border-kumo-line px-1 text-[11px] text-kumo-subtle`,title:`This scenario is no longer in the project (evalkit tidy)`,children:`archived`}):null]}),s?(0,J.jsx)(`span`,{className:`truncate text-xs text-kumo-subtle`,title:s,children:s}):null]})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(bC,{run:e})}),(0,J.jsx)(Q.Cell,{className:`whitespace-nowrap`,children:(0,J.jsx)(xC,{run:e})}),(0,J.jsx)(Q.Cell,{className:`whitespace-nowrap`,children:(0,J.jsx)(Cw,{source:e.source})}),r.columns.map(t=>(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(hC,{run:e,name:t})},t)),r.overflow.length?(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(mC,{run:e,keys:r.overflow})}):null]})}function Cw({source:e}){return e?(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,title:[e.commit,e.ref&&`on ${e.ref}`,e.dirty&&`with uncommitted changes`].filter(Boolean).join(` `),children:[(0,J.jsx)(`span`,{className:NS,children:e.commit.slice(0,7)}),e.dirty?(0,J.jsx)(`span`,{className:`rounded border border-kumo-line px-1 text-[11px] text-kumo-subtle`,children:`dirty`}):null]}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}function ww(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Tw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ew=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dw={};function Ow(e,t){return((t||Dw).jsx?Ew:Tw).test(e)}var kw=/[ \t\n\f\r]/g;function Aw(e){return typeof e==`object`?e.type===`text`&&jw(e.value):jw(e)}function jw(e){return e.replace(kw,``)===``}var Mw=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Mw.prototype.normal={},Mw.prototype.property={},Mw.prototype.space=void 0;function Nw(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Mw(n,r,t)}function Pw(e){return e.toLowerCase()}var Fw=class{constructor(e,t){this.attribute=t,this.property=e}};Fw.prototype.attribute=``,Fw.prototype.booleanish=!1,Fw.prototype.boolean=!1,Fw.prototype.commaOrSpaceSeparated=!1,Fw.prototype.commaSeparated=!1,Fw.prototype.defined=!1,Fw.prototype.mustUseProperty=!1,Fw.prototype.number=!1,Fw.prototype.overloadedBoolean=!1,Fw.prototype.property=``,Fw.prototype.spaceSeparated=!1,Fw.prototype.space=void 0;var Iw=s({boolean:()=>Rw,booleanish:()=>zw,commaOrSpaceSeparated:()=>Uw,commaSeparated:()=>Hw,number:()=>$,overloadedBoolean:()=>Bw,spaceSeparated:()=>Vw}),Lw=0,Rw=Ww(),zw=Ww(),Bw=Ww(),$=Ww(),Vw=Ww(),Hw=Ww(),Uw=Ww();function Ww(){return 2**++Lw}var Gw=Object.keys(Iw),Kw=class extends Fw{constructor(e,t,n,r){let i=-1;if(super(e,t),qw(this,`space`,r),typeof n==`number`)for(;++i<Gw.length;){let e=Gw[i];qw(this,Gw[i],(n&Iw[e])===Iw[e])}}};Kw.prototype.defined=!0;function qw(e,t,n){n&&(e[t]=n)}function Jw(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Kw(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Pw(r)]=r,n[Pw(a.attribute)]=r}return new Mw(t,n,e.space)}var Yw=Jw({properties:{ariaActiveDescendant:null,ariaAtomic:zw,ariaAutoComplete:null,ariaBusy:zw,ariaChecked:zw,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Vw,ariaCurrent:null,ariaDescribedBy:Vw,ariaDetails:null,ariaDisabled:zw,ariaDropEffect:Vw,ariaErrorMessage:null,ariaExpanded:zw,ariaFlowTo:Vw,ariaGrabbed:zw,ariaHasPopup:null,ariaHidden:zw,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vw,ariaLevel:$,ariaLive:null,ariaModal:zw,ariaMultiLine:zw,ariaMultiSelectable:zw,ariaOrientation:null,ariaOwns:Vw,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:zw,ariaReadOnly:zw,ariaRelevant:null,ariaRequired:zw,ariaRoleDescription:Vw,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:zw,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Xw(e,t){return t in e?e[t]:t}function Zw(e,t){return Xw(e,t.toLowerCase())}var Qw=Jw({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Hw,acceptCharset:Vw,accessKey:Vw,action:null,allow:null,allowFullScreen:Rw,allowPaymentRequest:Rw,allowUserMedia:Rw,alpha:Rw,alt:null,as:null,async:Rw,autoCapitalize:null,autoComplete:Vw,autoFocus:Rw,autoPlay:Rw,blocking:Vw,capture:null,charSet:null,checked:Rw,cite:null,className:Vw,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:zw,controls:Rw,controlsList:Vw,coords:$|Hw,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Rw,defer:Rw,dir:null,dirName:null,disabled:Rw,download:Bw,draggable:zw,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Rw,formTarget:null,headers:Vw,height:$,hidden:Bw,high:$,href:null,hrefLang:null,htmlFor:Vw,httpEquiv:Vw,id:null,imageSizes:null,imageSrcSet:null,inert:Rw,inputMode:null,integrity:null,is:null,isMap:Rw,itemId:null,itemProp:Vw,itemRef:Vw,itemScope:Rw,itemType:Vw,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Rw,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:Rw,muted:Rw,name:null,nonce:null,noModule:Rw,noValidate:Rw,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:Rw,optimum:$,pattern:null,ping:Vw,placeholder:null,playsInline:Rw,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Rw,referrerPolicy:null,rel:Vw,required:Rw,reversed:Rw,rows:$,rowSpan:$,sandbox:Vw,scope:null,scoped:Rw,seamless:Rw,selected:Rw,shadowRootClonable:Rw,shadowRootCustomElementRegistry:Rw,shadowRootDelegatesFocus:Rw,shadowRootMode:null,shadowRootSerializable:Rw,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:zw,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:Rw,useMap:null,value:zw,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Vw,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Rw,declare:Rw,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:Rw,noHref:Rw,noShade:Rw,noWrap:Rw,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:zw,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Rw,disablePictureInPicture:Rw,disableRemotePlayback:Rw,exportParts:Hw,part:Vw,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:Zw}),$w=Jw({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`,maskType:`mask-type`,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:Uw,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:Vw,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:Rw,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:Hw,g2:Hw,glyphName:Hw,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:Uw,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Vw,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Uw,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Uw,rev:Uw,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Uw,requiredFeatures:Uw,requiredFonts:Uw,requiredFormats:Uw,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:Uw,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Uw,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Uw,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Xw}),eT=Jw({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()}}),tT=Jw({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Zw}),nT=Jw({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),rT={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`},iT=/[A-Z]/g,aT=/-[a-z]/g,oT=/^data[-\w.:]+$/i;function sT(e,t){let n=Pw(t),r=t,i=Fw;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&oT.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(aT,lT);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!aT.test(e)){let n=e.replace(iT,cT);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Kw}return new i(r,t)}function cT(e){return`-`+e.toLowerCase()}function lT(e){return e.charAt(1).toUpperCase()}var uT=Nw([Yw,Qw,eT,tT,nT],`html`),dT=Nw([Yw,$w,eT,tT,nT],`svg`);function fT(e){return e.join(` `).trim()}var pT=/\/\*(?:[^*]|\*(?!\/))*\*\//g,mT=/\n/g,hT=/^\s*/,gT=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,_T=/^:\s*/,vT=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,yT=/^[;\s]*/,bT=`
32
- `,xT=`/`,ST=`*`,CT=``,wT=`comment`,TT=`declaration`;function ET(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(mT);t&&(n+=t.length);var i=e.lastIndexOf(bT);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(hT)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(xT==e.charAt(0)&&ST==e.charAt(1)){for(var n=2;CT!=e.charAt(n)&&(ST!=e.charAt(n)||xT!=e.charAt(n+1));)++n;if(n+=2,CT===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:wT,comment:o})}}function f(){var e=a(),t=c(gT);if(t){if(d(),!c(_T))return s(`property missing ':'`);var n=c(vT),r=e({type:TT,property:t[0].replace(pT,CT).trim(),value:n?n[0].replace(pT,CT).trim():CT});return c(yT),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function DT(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=ET(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var OT=AT(`end`),kT=AT(`start`);function AT(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function jT(e){let t=kT(e),n=OT(e);if(t&&n)return{start:t,end:n}}function MT(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?PT(e.position):`start`in e||`end`in e?PT(e):`line`in e||`column`in e?NT(e):``}function NT(e){return FT(e&&e.line)+`:`+FT(e&&e.column)}function PT(e){return NT(e&&e.start)+`-`+NT(e&&e.end)}function FT(e){return e&&typeof e==`number`?e:1}var IT=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=MT(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};IT.prototype.file=``,IT.prototype.name=``,IT.prototype.reason=``,IT.prototype.message=``,IT.prototype.stack=``,IT.prototype.column=void 0,IT.prototype.line=void 0,IT.prototype.ancestors=void 0,IT.prototype.cause=void 0,IT.prototype.fatal=void 0,IT.prototype.place=void 0,IT.prototype.ruleId=void 0,IT.prototype.source=void 0;var LT={}.hasOwnProperty,RT=new Map,zT=/[A-Z]/g,BT=/-([a-z])/g,VT=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),HT=new Set([`td`,`th`]),UT=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function WT(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=tE(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=eE(n,t.jsx,t.jsxs)}let 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`?dT:uT,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=GT(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function GT(e,t,n){if(t.type===`element`)return KT(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return qT(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return YT(e,t,n);if(t.type===`mdxjsEsm`)return JT(e,t);if(t.type===`root`)return XT(e,t,n);if(t.type===`text`)return ZT(e,t)}function KT(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=dT,e.schema=i),e.ancestors.push(t);let a=sE(e,t.tagName,!1),o=nE(e,t),s=iE(e,t);return VT.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!Aw(e)})),QT(e,o,a,t),$T(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function qT(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}cE(e,t.position)}function JT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);cE(e,t.position)}function YT(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=dT,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:sE(e,t.name,!0),o=rE(e,t),s=iE(e,t);return QT(e,o,a,t),$T(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function XT(e,t,n){let r={};return $T(r,iE(e,t)),e.create(t,e.Fragment,r,n)}function ZT(e,t){return t.value}function QT(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function $T(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function eE(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function tE(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=kT(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function nE(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&LT.call(t.properties,i)){let a=aE(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&HT.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function rE(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else cE(e,t.position)}else{let{name:i}=r,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else cE(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function iE(e,t){let n=[],r=-1,i=e.passKeys?new Map:RT;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=GT(e,a,o);s!==void 0&&n.push(s)}return n}function aE(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=sT(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?ww(n):fT(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:lE(n):oE(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?rT[r.property]||r.property:r.attribute,n]}function oE(e,t){let n={};try{DT(t,function(t,r){if(t&&r){let i=t;i.slice(0,2)!==`--`&&(i=i.toLowerCase(),e.stylePropertyNameCase===`dom`&&(i.slice(0,4)===`-ms-`&&(i=i.slice(1)),i=i.replace(BT,fE))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new IT("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=UT+`#cannot-parse-style-attribute`,r}return n}function sE(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Ow(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Ow(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return LT.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);cE(e)}function cE(e,t){let n=new IT("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=UT+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function lE(e){let t={},n;for(n in e)LT.call(e,n)&&(t[uE(n)]=e[n]);return t}function uE(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(zT,dE);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function dE(e){return`-`+e.toLowerCase()}function fE(e,t){return t.toUpperCase()}var pE={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`]},mE={};function hE(e,t){let n=t||mE;return gE(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function gE(e,t,n){if(vE(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 _E(e.children,t,n)}return Array.isArray(e)?_E(e,t,n):``}function _E(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=gE(e[i],t,n);return r.join(``)}function vE(e){return!!(e&&typeof e==`object`)}var yE=document.createElement(`i`);function bE(e){let t=`&`+e+`;`;yE.innerHTML=t;let n=yE.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function xE(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+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);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function SE(e,t){return e.length>0?(xE(e,e.length,0,t),e):t}var CE={}.hasOwnProperty;function wE(e){let t={},n=-1;for(;++n<e.length;)TE(t,e[n]);return t}function TE(e,t){let n;for(n in t){let r=(CE.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){CE.call(r,a)||(r[a]=[]);let e=i[a];EE(r[a],Array.isArray(e)?e:e?[e]:[])}}}function EE(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);xE(e,0,0,r)}function DE(e,t){let 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 OE(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var kE=VE(/[A-Za-z]/),AE=VE(/[\dA-Za-z]/),jE=VE(/[#-'*+\--9=?A-Z^-~]/);function ME(e){return e!==null&&(e<32||e===127)}var NE=VE(/\d/),PE=VE(/[\dA-Fa-f]/),FE=VE(/[!-/:-@[-`{-~]/);function IE(e){return e!==null&&e<-2}function LE(e){return e!==null&&(e<0||e===32)}function RE(e){return e===-2||e===-1||e===32}var zE=VE(/\p{P}|\p{S}/u),BE=VE(/\s/);function VE(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function HE(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&AE(e.charCodeAt(n+1))&&AE(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function UE(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return RE(r)?(e.enter(n),s(r)):t(r)}function s(r){return RE(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function WE(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&RE(t)?(e.enter(r),c(t)):l(t)}function c(t){return RE(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var GE={tokenize:KE};function KE(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),UE(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return IE(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var qE=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){JE(this,e,t,n,!1)}addBefore(e,t,n){JE(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function JE(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var YE={tokenize:ZE},XE={tokenize:QE};function ZE(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new qE;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(XE,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(XE,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return IE(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new qE;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function QE(e,t,n){return UE(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function $E(e){if(e===null||LE(e)||BE(e))return 1;if(zE(e))return 2}function eD(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var tD={name:`attention`,resolveAll:nD,tokenize:rD};function nD(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};iD(o,-a),iD(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=SE(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=SE(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=SE(r,eD(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=SE(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=SE(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),xE(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function rD(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$E(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=$E(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function iD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var aD={name:`autolink`,tokenize:oD};function oD(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return kE(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||AE(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||AE(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||ME(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):jE(t)?(e.consume(t),l):n(t)}function u(e){return AE(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||AE(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var sD={partial:!0,tokenize:cD};function cD(e,t,n){return r;function r(t){return RE(t)?UE(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||IE(e)?t(e):n(e)}}var lD={continuation:{tokenize:dD},exit:fD,name:`blockQuote`,tokenize:uD};function uD(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return RE(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function dD(e,t,n){let r=this;return i;function i(t){return RE(t)?UE(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(lD,t,n)(r)}}function fD(e){e.exit(`blockQuote`)}var pD={name:`characterEscape`,tokenize:mD};function mD(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return FE(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var hD={name:`characterReference`,tokenize:gD};function gD(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=AE,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=PE,u):(e.enter(`characterReferenceValue`),a=7,o=NE,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===AE&&!bE(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var _D={partial:!0,tokenize:vD};function vD(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var yD={concrete:!0,name:`codeFenced`,tokenize:bD};function bD(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),RE(t)?UE(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||IE(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(_D,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||IE(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):RE(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),UE(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||IE(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||IE(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&RE(t)?UE(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||IE(t)?e.check(_D,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||IE(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),RE(t)?UE(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),RE(t)?UE(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||IE(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var xD={name:`codeIndented`,tokenize:CD},SD={partial:!0,tokenize:wD};function CD(e,t,n){return r;function r(t){return e.enter(`codeIndented`),WE(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):IE(t)?e.attempt(SD,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||IE(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function wD(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):IE(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):WE(e,t,a,`linePrefix`,4,4)(o)}function a(e){return IE(e)?i(e):n(e)}}var TD={name:`codeText`,previous:DD,resolve:ED,tokenize:OD};function ED(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 DD(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function OD(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):IE(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||IE(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var kD=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&AD(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),AD(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),AD(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);AD(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);AD(this.left,t.reverse())}}}};function AD(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 jD(e){let t={},n=-1,r,i,a,o,s,c,l,u=new kD(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,MD(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return xE(e,0,1/0,u.slice(0)),!l}function MD(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var ND={resolve:FD,tokenize:ID},PD={partial:!0,tokenize:LD};function FD(e){return jD(e),e}function ID(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):IE(t)?e.check(PD,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function LD(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),UE(e,a,`linePrefix`)}function a(i){if(i===null||IE(i))return n(i);let 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(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function RD(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||ME(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||IE(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||LE(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||ME(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function zD(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):IE(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||IE(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!RE(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function BD(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):IE(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),UE(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||IE(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function VD(e,t){let n;return r;function r(i){return IE(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):RE(i)?UE(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var HD={name:`definition`,tokenize:WD},UD={partial:!0,tokenize:GD};function WD(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return zD.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=OE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return LE(t)?VD(e,l)(t):l(t)}function l(t){return RD(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(UD,d,d)(t)}function d(t){return RE(t)?UE(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||IE(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function GD(e,t,n){return r;function r(t){return LE(t)?VD(e,i)(t):n(t)}function i(t){return BD(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return RE(t)?UE(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||IE(e)?t(e):n(e)}}var KD={name:`hardBreakEscape`,tokenize:qD};function qD(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return IE(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var JD={name:`headingAtx`,resolve:YD,tokenize:XD};function YD(e,t){let n=e.length-2,r=3;if(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){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};xE(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function XD(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||LE(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||IE(n)?(e.exit(`atxHeading`),t(n)):RE(n)?UE(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||LE(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ZD=`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`.split(`.`),QD=[`pre`,`script`,`style`,`textarea`],$D={concrete:!0,name:`htmlFlow`,resolveTo:tO,tokenize:nO},eO={partial:!0,tokenize:rO};function tO(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 nO(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):kE(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):kE(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return kE(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||LE(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&QD.includes(l)?(i=1,r.interrupt?t(s):O(s)):ZD.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||AE(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return RE(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||kE(t)?(e.consume(t),b):RE(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||AE(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):RE(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):RE(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||IE(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||LE(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||RE(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||IE(t)?O(t):RE(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):IE(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(eO,R,k)(t)):t===null||IE(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(_D,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||IE(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return QD.includes(n)?(e.consume(t),L):O(t)}return kE(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||IE(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function rO(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(sD,t,n)}}var iO={name:`htmlText`,tokenize:aO};function aO(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):kE(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):kE(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):IE(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):IE(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):IE(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):IE(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return kE(t)?(e.consume(t),S):n(t)}function S(t){return t===45||AE(t)?(e.consume(t),S):C(t)}function C(t){return IE(t)?(o=C,N(t)):RE(t)?(e.consume(t),C):M(t)}function w(t){return t===45||AE(t)?(e.consume(t),w):t===47||t===62||LE(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||kE(t)?(e.consume(t),E):IE(t)?(o=T,N(t)):RE(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||AE(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):IE(t)?(o=D,N(t)):RE(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):IE(t)?(o=O,N(t)):RE(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):IE(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||LE(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||LE(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return RE(t)?UE(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var oO={name:`labelEnd`,resolveAll:uO,resolveTo:dO,tokenize:fO},sO={tokenize:pO},cO={tokenize:mO},lO={tokenize:hO};function uO(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&xE(e,0,e.length,n),e}function dO(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=SE(o,e.slice(i+1,i+r+3)),o=SE(o,[[`enter`,l,t]]),o=SE(o,eD(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=SE(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=SE(o,e.slice(a+1)),o=SE(o,[[`exit`,s,t]]),xE(e,i,e.length,o),e}function fO(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(OE(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(sO,u,o?u:d)(t):t===91?e.attempt(cO,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(lO,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function pO(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return LE(t)?VD(e,a)(t):a(t)}function a(t){return t===41?u(t):RD(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return LE(t)?VD(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?BD(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return LE(t)?VD(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function mO(e,t,n){let r=this;return i;function i(t){return zD.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(OE(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function hO(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var gO={name:`labelStartImage`,resolveAll:oO.resolveAll,tokenize:_O};function _O(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var vO={name:`labelStartLink`,resolveAll:oO.resolveAll,tokenize:yO};function yO(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var bO={name:`lineEnding`,tokenize:xO};function xO(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),UE(e,t,`linePrefix`)}}var SO={name:`thematicBreak`,tokenize:CO};function CO(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||IE(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),RE(t)?UE(e,s,`whitespace`)(t):s(t))}}var wO={continuation:{tokenize:OO},exit:AO,name:`list`,tokenize:DO},TO={partial:!0,tokenize:jO},EO={partial:!0,tokenize:kO};function DO(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:NE(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(SO,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return NE(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(sD,r.interrupt?n:u,e.attempt(TO,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return RE(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function OO(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(sD,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,UE(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!RE(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(EO,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,UE(e,e.attempt(wO,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function kO(e,t,n){let r=this;return UE(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function AO(e){e.exit(this.containerState.type)}function jO(e,t,n){let r=this;return UE(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!RE(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var MO={name:`setextUnderline`,resolveTo:NO,tokenize:PO};function NO(e,t){let n=new qE,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function PO(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),RE(t)?UE(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||IE(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var FO={tokenize:IO};function IO(e){let t=this,n=e.attempt(sD,r,e.attempt(this.parser.constructs.flowInitial,i,UE(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ND,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var LO={resolveAll:VO()},RO=BO(`string`),zO=BO(`text`);function BO(e){return{resolveAll:VO(e===`text`?HO:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function VO(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function HO(e,t){let n=new qE,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var UO=s({attentionMarkers:()=>ZO,contentInitial:()=>GO,disable:()=>QO,document:()=>WO,flow:()=>qO,flowInitial:()=>KO,insideSpan:()=>XO,string:()=>JO,text:()=>YO}),WO={42:wO,43:wO,45:wO,48:wO,49:wO,50:wO,51:wO,52:wO,53:wO,54:wO,55:wO,56:wO,57:wO,62:lD},GO={91:HD},KO={[-2]:xD,[-1]:xD,32:xD},qO={35:JD,42:SO,45:[MO,SO],60:$D,61:MO,95:SO,96:yD,126:yD},JO={38:hD,92:pD},YO={[-5]:bO,[-4]:bO,[-3]:bO,33:gO,38:hD,42:tD,60:[aD,iO],91:vO,92:[KD,pD],93:oO,95:tD,96:TD},XO={null:[tD,LO]},ZO={null:[42,95]},QO={null:[]};function $O(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=SE(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=eD(a,l.events,l),l.events):[]}function f(e,t){return tk(p(e),t)}function p(e){return ek(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){IE(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&xE(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ek(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function tk(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
30
+ - aria-labelledby for custom label association`)}let p=(0,J.jsx)(jh,{ref:t,className:q(Ph({size:r,variant:d,focusIndicator:!0}),l&&`keeper-ignore`,n),...l?{"data-1p-ignore":`true`,"data-bwignore":`true`,"data-form-type":`other`,"data-lpignore":`true`}:{},...u});return a||c||s?(0,J.jsx)(kh,{label:a,required:f,labelTooltip:o,description:s,error:Dh(c),children:p}):p});Fh.displayName=`Input`;var Ih={xs:{inputOuter:`px-1.5`,addonOuterStart:`pl-1.5`,addonOuterEnd:`pr-1.5`,addonButtonOuterStart:`pl-1`,addonButtonOuterEnd:`pr-1`,suffixPad:`pr-1.5`,fontSize:`text-xs`,iconSize:10},sm:{inputOuter:`px-2`,addonOuterStart:`pl-1.5`,addonOuterEnd:`pr-1.5`,addonButtonOuterStart:`pl-1`,addonButtonOuterEnd:`pr-1`,suffixPad:`pr-2`,fontSize:`text-xs`,iconSize:13},base:{inputOuter:`px-3`,addonOuterStart:`pl-2`,addonOuterEnd:`pr-2`,addonButtonOuterStart:`pl-1`,addonButtonOuterEnd:`pr-1`,suffixPad:`pr-3`,fontSize:`text-base`,iconSize:18},lg:{inputOuter:`px-4`,addonOuterStart:`pl-2.5`,addonOuterEnd:`pr-2.5`,addonButtonOuterStart:`pl-1.5`,addonButtonOuterEnd:`pr-0.5`,suffixPad:`pr-4`,fontSize:`text-base`,iconSize:20}},Lh={xs:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-1 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-1`,sm:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-1.5 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-1.5`,base:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-2 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-2`,lg:`has-[[data-slot=input-group-addon-start]]:[&_input]:pl-2.5 has-[[data-slot=input-group-addon-end]]:[&_input]:pr-2.5`},Rh=(0,v.createContext)(null),zh=(0,v.createContext)(!1);function Bh(e){let t=(0,v.useContext)(Rh);return t||console.warn(`<InputGroup.${e}> must be used within <InputGroup>. Falling back to default values.`),t}function Vh(e){let t=[],n=[];return v.Children.forEach(e,e=>{(0,v.isValidElement)(e)&&e.type?.displayName===`InputGroup.Button`?n.push(e):t.push(e)}),{containerZone:t,individualZone:n}}function Hh(e){let t=!1,n=!1;return v.Children.forEach(e,e=>{if(!(0,v.isValidElement)(e))return;let r=e.type,i=typeof r==`function`||typeof r==`object`?r.displayName:void 0;if(i===`InputGroup.Addon`){n=!0;return}if(i!==`InputGroup.Button`)return;let a=e.props.variant;a!==void 0&&a!==`ghost`&&(t=!0)}),t&&n?`hybrid`:t?`individual`:`container`}var Uh=(0,v.forwardRef)((e,t)=>{let n=Bh(`Input`);n&&(e.size!==void 0&&console.warn("InputGroup.Input: Set `size` on <InputGroup> instead of <InputGroup.Input>."),e.disabled!==void 0&&console.warn("InputGroup.Input: Set `disabled` on <InputGroup> instead of <InputGroup.Input>."),e.label!==void 0&&console.warn("InputGroup.Input: Use the `label` prop on <InputGroup> instead of <InputGroup.Input>."),e.description!==void 0&&console.warn("InputGroup.Input: Use <InputGroup.Suffix> instead of passing `description` to <InputGroup.Input>."));let r=Ih[n?.size??`base`],i=n?.focusMode===`individual`,a=!!n?.error,o=e.id??n?.inputId;return(0,J.jsx)(Fh,{ref:t,size:n?.size,disabled:n?.disabled||e.disabled,"aria-invalid":a||e[`aria-invalid`],...e,id:o,className:q(`flex h-full min-w-0 grow items-center rounded-none border-0 bg-transparent font-sans`,r.inputOuter,`text-ellipsis`,i?`relative ring-0 focus:ring-0 border border-kumo-line first:rounded-l-[inherit] last:rounded-r-[inherit] not-first:-ml-px hover:z-1 hover:border-kumo-line focus:z-2 focus:border-kumo-focus/50`:`relative z-1 shadow-none ring-0! outline-none focus:ring-0! focus:outline-none`,e.className)})});Uh.displayName=`InputGroup.Input`;var Wh={xs:`xs`,sm:`xs`,base:`sm`,lg:`base`},Gh=(0,v.forwardRef)(({children:e,className:t,variant:n,size:r,disabled:i,tooltip:a,tooltipSide:o=`bottom`,icon:s,...c},l)=>{let u=Bh(`Button`),d=(0,v.useContext)(zh),f=i??u?.disabled,p=u?.focusMode===`individual`||u?.focusMode===`hybrid`;u&&(n??`ghost`)===`ghost`&&!d&&console.warn(`InputGroup.Button: Ghost buttons should be wrapped in <InputGroup.Addon> for correct spacing.`),u&&r!==void 0&&console.warn("InputGroup.Button: Set `size` on <InputGroup> instead of <InputGroup.Button>.");let m=typeof a==`string`&&!c[`aria-label`]?a:void 0,h=u?Ih[u.size??`base`].iconSize:void 0,g=s&&h&&(typeof s==`function`||typeof s==`object`&&s&&!v.isValidElement(s))?v.createElement(s,{size:h}):s,_=(0,J.jsx)(zp,{ref:l,type:`button`,disabled:f,"aria-label":m,...c,icon:g,variant:n??`ghost`,size:r??(p?u?.size??`sm`:Wh[u?.size??`base`]??`sm`),className:q(`pointer-events-auto`,`shadow-none`,`focus:ring-0`,!p&&`focus-visible:ring-[1.5px] focus-visible:ring-kumo-focus/50`,p&&[`relative h-full! rounded-none border border-kumo-line ring-0 focus-visible:ring-0`,`first:rounded-l-[inherit] last:rounded-r-[inherit]`,`not-first:-ml-px`,`hover:z-1`,`focus:z-2`,`focus-visible:border-kumo-focus/50`,`disabled:bg-kumo-overlay disabled:text-kumo-inactive!`],t),children:e});return a?(0,J.jsx)(Zd,{content:a,side:o,asChild:!0,children:_}):_});Gh.displayName=`InputGroup.Button`;var Kh=(0,v.forwardRef)(({align:e=`start`,className:t,children:n},r)=>{let i=Ih[Bh(`Addon`)?.size??`base`],a=!1,o=v.Children.map(n,e=>(0,v.isValidElement)(e)?e.type===Gh?(a=!0,e):e.props.size===void 0?(0,v.cloneElement)(e,{size:i.iconSize}):e:e);return(0,J.jsx)(`div`,{ref:r,"data-slot":e===`start`?`input-group-addon-start`:`input-group-addon-end`,className:q(`pointer-events-none relative z-[1] flex shrink-0 items-center gap-1.5`,`text-kumo-subtle`,i.fontSize,`*:pointer-events-auto`,e===`start`?q(`-order-1`,a?i.addonButtonOuterStart:i.addonOuterStart,`pr-0`):q(`order-1`,`pl-0`,a?i.addonButtonOuterEnd:i.addonOuterEnd),t),children:(0,J.jsx)(zh.Provider,{value:!0,children:o})})});Kh.displayName=`InputGroup.Addon`;var qh=(0,v.forwardRef)(({className:e,children:t},n)=>{let r=Ih[Bh(`Suffix`)?.size??`base`];return(0,J.jsx)(`div`,{ref:n,"data-slot":`input-group-suffix`,className:q(`pointer-events-none flex min-w-0 grow items-center text-kumo-subtle select-none`,r.fontSize,r.suffixPad,e),children:(0,J.jsx)(`span`,{className:`truncate`,children:t})})});qh.displayName=`InputGroup.Suffix`;var Jh=(0,v.forwardRef)(({size:e=`base`,children:t,className:n,disabled:r=!1,label:i,description:a,error:o,required:s,labelTooltip:c,...l},u)=>{let d=(0,v.useId)(),f=Hh(t),p=(0,v.useMemo)(()=>({size:e,focusMode:f,disabled:r,error:o,inputId:d}),[e,f,r,o,d]),m=q(`relative w-full cursor-text`,Ph({size:e}),`data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,f===`container`?[`overflow-hidden`,`focus-within:ring-[1.5px] focus-within:ring-kumo-focus/50`]:`isolate overflow-visible shadow-none ring-0`,`has-[input[aria-invalid=true]]:ring-kumo-danger`,`px-0`,`flex items-center gap-0`,`has-[[data-slot=input-group-suffix]]:[&_input]:[field-sizing:content]`,`has-[[data-slot=input-group-suffix]]:[&_input]:max-w-full`,`has-[[data-slot=input-group-suffix]]:[&_input]:grow-0`,`has-[[data-slot=input-group-suffix]]:[&_input]:pr-0`,Lh[e],`!mb-0`,n),h={"data-slot":`input-group`,"data-focus-mode":f,"data-disabled":r?``:void 0};if(f===`hybrid`){let{containerZone:n,individualZone:r}=Vh(t),f={...p,focusMode:`container`},g=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Rh.Provider,{value:f,children:(0,J.jsxs)(`div`,{"data-slot":`input-group-container-zone`,className:q(Ph({size:e}),`overflow-hidden`,`has-[input[aria-invalid=true]]:ring-kumo-danger`,`px-0`,`flex min-w-0 flex-1 items-center gap-0`,`shadow-none ring-0`,`border border-kumo-line`,`focus-within:border-kumo-focus/50`,`focus-within:z-2`,`not-first:-ml-px`,`rounded-none first:rounded-l-[inherit] last:rounded-r-[inherit]`,Lh[e],`has-data-[slot=input-group-suffix]:[&_input]:field-sizing-content`,`has-data-[slot=input-group-suffix]:[&_input]:max-w-full`,`has-data-[slot=input-group-suffix]:[&_input]:grow-0`,`has-data-[slot=input-group-suffix]:[&_input]:pr-0`),children:[i&&(0,J.jsx)(`label`,{htmlFor:d,className:`absolute inset-0 z-0 mb-0! cursor-text`,"aria-hidden":`true`}),n]})}),r]}),_=(0,J.jsx)(Rh.Provider,{value:p,children:(0,J.jsx)(`div`,{ref:u,...h,className:m,...l,children:g})});return i?(0,J.jsx)(kh,{label:i,description:a,error:o,required:s,labelTooltip:c,children:_}):_}let g=!i&&f===`container`,_=(0,J.jsx)(Rh.Provider,{value:p,children:i?(0,J.jsxs)(`div`,{ref:u,...h,className:m,...l,children:[(0,J.jsx)(`label`,{htmlFor:d,className:`absolute inset-0 z-0 mb-0!`,"aria-hidden":`true`}),t]}):g?(0,J.jsx)(`label`,{ref:u,...h,className:q(m,`mb-0!`),...l,children:t}):(0,J.jsx)(`div`,{ref:u,...h,className:m,...l,children:t})});return i?(0,J.jsx)(kh,{label:i,description:a,error:o,required:s,labelTooltip:c,children:_}):_});Jh.displayName=`InputGroup`;var Yh=(0,v.forwardRef)((e,t)=>(0,J.jsx)(Kh,{ref:t,align:`start`,...e}));Yh.displayName=`InputGroup.Label`;var Xh=(0,v.forwardRef)((e,t)=>(0,J.jsx)(qh,{ref:t,...e}));Xh.displayName=`InputGroup.Description`;var Zh=Object.assign(Jh,{Input:Uh,Button:Gh,Addon:Kh,Suffix:qh,Label:Yh,Description:Xh}),Qh={variant:{heading:{classes:`text-lg font-semibold`,description:`Heading text (16px by default, 20px at large size)`},heading1:{classes:`text-3xl font-semibold`,description:`Deprecated large heading for page titles; use heading instead`},heading2:{classes:`text-2xl font-semibold`,description:`Deprecated medium heading for section titles; use heading instead`},heading3:{classes:`text-lg font-semibold`,description:`Deprecated small heading for subsections; use heading instead`},body:{classes:`text-kumo-default`,description:`Default body text`},secondary:{classes:`text-kumo-subtle`,description:`Muted text for secondary information`},success:{classes:`text-kumo-link`,description:`Success state text`},error:{classes:`text-kumo-danger`,description:`Error state text`},mono:{classes:`font-mono`,description:`Monospace text for code`},"mono-secondary":{classes:`font-mono text-kumo-subtle`,description:`Muted monospace text`}},size:{xs:{classes:`text-xs/[inherit]`,description:`Extra small text`},sm:{classes:`text-sm/[inherit]`,description:`Small text`},base:{classes:`text-base/[inherit]`,description:`Default text size`},lg:{classes:`text-lg/[inherit]`,description:`Large text`}}},$h={variant:`body`,size:`base`},eg=[`heading1`,`heading2`,`heading3`];function tg(e){return eg.includes(e)}function ng(e,t){return e===`heading`?t===`lg`?`text-xl`:``:tg(e)?``:[`mono`,`mono-secondary`].includes(e)?t===`lg`?Qh.size.base.classes:Qh.size.sm.classes:xr(Qh.size,t,$h.size).classes}function rg({variant:e=`body`,bold:t=!1,size:n=`base`,truncate:r=!1,children:i,DANGEROUS_className:a,DANGEROUS_style:o,as:s,...c},l){let u=[`body`,`secondary`,`success`,`error`].includes(e),d=(0,v.useMemo)(()=>s||([`mono`,`mono-secondary`].includes(e)||e===`heading`||tg(e)?`span`:`p`),[e,s]);return(0,J.jsx)(d,{ref:l,className:q(`text-kumo-default`,xr(Qh.variant,e,$h.variant).classes,ng(e,n),u&&t?`font-medium`:``,r&&`min-w-0 truncate`,a),style:o,...c,children:i})}var ig=(0,v.forwardRef)(rg),ag=0;function og(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(ag);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),Jr;let o=requestAnimationFrame(a);return ag=o,()=>{ag===o&&(cancelAnimationFrame(o),ag=0)}}var sg=`data-base-ui-inert`,cg=new WeakMap,lg=new WeakSet,ug=new WeakMap,dg=0;function fg(e){return e?Ki(e)?e.host:fg(e.parentNode):null}var pg=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=fg(t);return e.contains(n)?n:null}).filter(e=>e!=null),mg=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},hg=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Bi(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function gg(e,t,n,{mark:r=!0}){let i=pg(t,e),a=r?hg(t,mg(i),new Set(i)):[],o=[],s=[];if(n){let e=pg(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);hg(t,mg(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(cg.get(e)||0)+1;cg.set(e,r),o.push(e),r===1&&n&&lg.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(ug.get(e)||0)+1;ug.set(e,t),s.push(e),t===1&&e.setAttribute(sg,``)}),dg+=1,()=>{o.forEach(e=>{let t=(cg.get(e)||0)-1;cg.set(e,t),t||(lg.has(e)||e.removeAttribute(`aria-hidden`),lg.delete(e))}),r&&s.forEach(e=>{let t=(ug.get(e)||0)-1;ug.set(e,t),t||e.removeAttribute(sg)}),--dg,dg||(cg=new WeakMap,lg=new WeakSet,ug=new WeakMap)}}function _g(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=Hs(e[0]).body;return gg(e,i,n,{mark:r})}function vg(e,t){let n=Vi(ss(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(ts(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var yg=20,bg=[];function xg(){bg=bg.filter(e=>e.deref()?.isConnected)}function Sg(e){xg(),e&&Bi(e)!==`body`&&(bg.push(new WeakRef(e)),bg.length>yg&&(bg=bg.slice(-20)))}function Cg(){return xg(),bg[bg.length-1]?.deref()}function wg(e){return e?uc(e)?e:fc(e)[0]||e:null}function Tg(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=dc(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return uc(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Eg(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),y=t.useState(`floatingElement`),{events:b,dataRef:x}=t.context,S=Z(()=>x.current.floatingContext?.nodeId),C=i===!1,w=zs(_)&&C,T=Hl(i),E=Hl(a),D=Hl(o),O=Hl(u),k=Hl(g),A=el(m),j=Sl(),M=v.useRef(!1),N=v.useRef(!1),P=v.useRef(!1),F=v.useRef(null),I=v.useRef(``),L=v.useRef(``),R=v.useRef(null),z=v.useRef(null),B=Fr(R,p,j?.beforeInsideRef),ee=Fr(z,j?.afterInsideRef),V=Vl(),H=Vl(),te=Jl(),ne=j!=null,U=Vs(y),re=Z((e=U)=>e?fc(e):[]),ie=Z(()=>h?.().filter(e=>e!=null)??[]);v.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&X(U,as(Hs(U)))&&re().length===0&&!w&&$o(e)}return Ic(Hs(U),`keydown`,e)},[r,U,c,w,re]),v.useEffect(()=>{if(r||!g)return;let e=Hs(U);function t(){P.current=!1}function n(e){let t=ss(e),n=ie(),r=X(y,t)||X(_,t)||X(j?.portalNode,t)||n.some(e=>e===t||X(e,t));P.current=!r,L.current=e.pointerType||`keyboard`,os(t,`[data-base-ui-click-trigger]`)&&(N.current=!0,H.start(0,()=>{N.current=!1}))}function i(){L.current=`keyboard`}return Lc(Ic(e,`pointerdown`,n,!0),Ic(e,`pointerup`,t,!0),Ic(e,`pointercancel`,t,!0),Ic(e,`keydown`,i,!0),t)},[r,y,_,U,g,j,H,ie]),v.useEffect(()=>{if(r||!l)return;let e=Hs(U);function n(){N.current=!0,H.start(0,()=>{N.current=!1})}function i(e){let t=ss(e);uc(t)&&(F.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=ss(n);c&&r==null&&a!=null&&X(y,a)&&Sg(a),queueMicrotask(()=>{let o=S(),l=t.context.triggerElements,u=ie(),p=r?.hasAttribute(gl(`focus-guard`))&&[R.current,z.current,j?.beforeInsideRef.current,j?.afterInsideRef.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,Xl(f),Xl(d)].includes(r),m=!(X(_,r)||X(y,r)||X(r,y)||X(j?.portalNode,r)||u.some(e=>e===r||X(e,r))||l.hasMatchingElement(e=>X(e,r))||p||A&&(nu(A.nodesRef.current,o).find(e=>X(e.context?.elements.floating,r)||X(e.context?.elements.domReference,r))||ru(A.nodesRef.current,o).find(e=>[e.context?.elements.floating,Vs(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&U&&Tg(U),s&&i!==_&&!Xs(a)&&as(e)===e.body){if(Gi(U)&&(U.focus(),s===`popup`)){te.request(()=>{U.focus()});return}let e=re(),t=F.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||U;Gi(n)&&n.focus()}x.current.insideReactTree?x.current.insideReactTree=!1:(w||!c)&&r&&m&&!N.current&&(w||r!==Cg())&&(M.current=!0,t.setOpen(!1,bc(Dc,n)))})}function o(){P.current||(x.current.insideReactTree=!0,V.start(0,()=>{x.current.insideReactTree=!1}))}let u=Gi(_)?_:null;if(y||u)return Lc(u&&Ic(u,`focusout`,a),u&&Ic(u,`pointerdown`,n),y&&Ic(y,`focusin`,i),y&&Ic(y,`focusout`,a),y&&j&&Ic(y,`focusout`,o,!0))},[r,_,y,U,c,A,j,t,l,s,re,w,S,x,V,H,te,d,f,ie]),v.useEffect(()=>{if(r||!y||!g)return;let e=Array.from(j?.portalNode?.querySelectorAll(`[${gl(`portal`)}]`)||[]),t=(A?ru(A.nodesRef.current,S()):[]).find(e=>zs(e.context?.elements.domReference||null))?.context?.elements.domReference,n=_g([y,...e,R.current,z.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,...ie(),t,Xl(f),Xl(d),w?_:null].filter(e=>e!=null),{ariaHidden:c||w,mark:!1}),i=_g([y,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,y,c,j,w,A,S,d,f,ie]),Y(()=>{if(!g||r||!Gi(U))return;I.current=``,L.current=``;let e=Hs(U),t=as(e);queueMicrotask(()=>{let n=T.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||X(U,t))return;let i=null,a=()=>(i??=re(U),i[0]||U),o;o=r===!0||r===null?a():Xl(r),o||=a();let s=X(U,as(e)),c=x.current.openEvent,l=c?.type===`mousedown`&&ts(c);og(o,{sync:l,preventScroll:o===U,shouldFocus(){if(!k.current)return!1;if(s)return!0;let t=as(e);return!(t!==o&&X(U,t))}})})},[r,g,U,re,T,O,k,x]);let ae=v.useRef(null);Y(()=>{if(r||!U){ae.current=null;return}ae.current&&=(ae.current.cancelled=!0,null);let e=Hs(U),t=as(e),n=O.current==null;Sg(t);function i(e){if(e.open||(I.current=vg(e.nativeEvent,L.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(gl(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(M.current=!0),e.reason===`outside-press`){if(e.nested)M.current=!1;else if(ts(e.nativeEvent)||ns(e.nativeEvent))M.current=!1;else{let e=!1;Hs(U).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?M.current=!1:M.current=!0}}}b.on(`openchange`,i);function a(e){let r=E.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&Bi(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Cg()||null,typeof i==`boolean`?s:Xl(i)||s||null}return()=>{b.off(`openchange`,i);let t=as(e),n=ie(),r=X(y,t)||n.some(e=>e===t||X(e,t))||A&&nu(A.nodesRef.current,S(),!1).some(e=>X(e.context?.elements.floating,t)),o=E.current,s=I.current,c=a(s),l={cancelled:!1};ae.current=l,queueMicrotask(()=>{ae.current===l&&(ae.current=null);let n=wg(c),i=D.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!M.current&&Gi(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}M.current=!1})}},[r,y,U,E,D,O,b,A,_,S,ie]),Y(()=>{if(!yc||g||!y)return;let e=as(Hs(y));Gi(e)&&Ls(e)&&X(y,e)&&e.blur()},[g,y]),Y(()=>{if(!r&&j)return j.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{j.setFocusManagerState(null)}},[r,j,c,g,t,l,_]),Y(()=>{if(!r&&U)return Tg(U),()=>{queueMicrotask(xg)}},[r,U]);let oe=!r&&(!c||!w)&&(ne||c);return(0,J.jsxs)(v.Fragment,{children:[oe&&(0,J.jsx)(hl,{"data-type":`inside`,ref:B,onFocus:e=>{if(c){let e=re();og(e[e.length-1])}else j?.portalNode&&(M.current=!1,gc(e,j.portalNode)?mc(_)?.focus():Xl(f??j.beforeOutsideRef)?.focus())}}),n,oe&&(0,J.jsx)(hl,{"data-type":`inside`,ref:ee,onFocus:e=>{c?og(re()[0]):j?.portalNode&&(l&&(M.current=!0),gc(e,j.portalNode)?hc(_)?.focus():Xl(d??j.afterOutsideRef)?.focus())}})]})}function Dg(e){let t=v.useRef(``),n=v.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:v.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function Og(e,t){let{onClick:n,onPointerDown:r}=Dg(Z((n,r)=>{(typeof e==`function`?e():e)||t(r||(qo?`touch`:``))}));return v.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function kg(e){let[t,n]=v.useState(null),r=Og(e,n);return Bm(e,t=>{t&&!e&&n(null)}),v.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var Ag=v.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,J.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});Ag.displayName=`InternalBackdrop`;var jg={},Mg={},Ng=``;function Pg(e,t){return qi(e)?e:t}function Fg(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Pg(t,n)).overflowY)}function Ig(e){if(typeof document>`u`)return!1;let t=Hs(e);return Vi(t).innerWidth-t.documentElement.clientWidth>0}function Lg(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Hs(e),n=t.documentElement,r=t.body,i=Pg(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Rg(e){let t=Hs(e),n=t.documentElement,r=t.body,i=Pg(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function zg(e){let t=Hs(e),n=t.documentElement,r=t.body,i=Vi(n),a=0,o=0,s=!1,c=ql.create();if(yc&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,jg={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Ng=n.style.scrollBehavior,Mg={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Pg(n,r);s=Lg(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,jg),Object.assign(r.style,Mg),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Ng)}function d(){u(),c.request(l)}l();let f=Ic(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Bg=new class{lockCount=0;restore=null;timeoutLock=Bl.create();timeoutUnlock=Bl.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Hs(e),n=t.documentElement,r=t.body,i=Vi(n);if(Fg(i,n,r)){let t=new i.MutationObserver(()=>{Fg(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=qo||!Ig(e);this.restore=a?Rg(e):zg(e)}};function Vg(e=!0,t=null){Y(()=>{if(e)return Bg.acquire(t)},[e,t])}function Hg(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Sc}=t,l=e.context.dataRef,u=v.useRef(void 0),d=Jl(),f=Vl(),p=v.useMemo(()=>{function t(t,n,r,i){let a=bc(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=rs(e.pointerType,!0)&&ns(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||rs(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=ss(s),p=Ls(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:rs(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return v.useMemo(()=>n?{reference:p}:Xr,[n,p])}function Ug(e){return yc&&e.movementX===0&&e.movementY===0}function Wg(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Gg(e,t){return Wg(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Kg(e,t,n){return Wg(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function qg(e,t,n){return Wg(t,n?e===us:e===ds,e===ps)}function Jg(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:Wg(t,n?e===ds:e===us,e===fs)}function Yg(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:y,id:b,resetOnPointerLeave:x=!0,externalTree:S,nestedReturnFocusRef:C,grid:w}=t,T=w!=null;s&&(c||console.warn("`useListNavigation` looping must be enabled to allow escaping."),d||console.warn("`useListNavigation` must be virtual to allow escaping.")),g===`vertical`&&T&&console.warn("In grid list navigation mode, the `orientation` should",`be either "horizontal" or "both".`);let E=e.useState(`open`),D=e.useState(`floatingElement`),O=e.useState(`domReferenceElement`),k=e.context.dataRef,A=Vs(D),j=zs(O),M=Hl(A),N=$c(),P=el(S),F=v.useRef(f),I=v.useRef(o??-1),L=v.useRef(null),R=v.useRef(!0),z=Z(e=>{i(I.current===-1?null:I.current,e)}),B=v.useRef(!!D),ee=v.useRef(E),V=v.useRef(!1),H=v.useRef(!1),te=v.useRef(null),ne=Hl(h),U=Hl(E),re=Hl(o),ie=Hl(x),ae=Jl(),oe=Jl(),W=Z(()=>{ae.cancel();function e(e){d||(te.current=og(e,{sync:V.current,preventScroll:!0}))}let t=n.current[I.current],r=H.current;t&&e(t),(V.current?e=>e():e=>ae.request(e))(()=>{let i=n.current[I.current]||t;i&&(t||e(i),de&&(r||!R.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Y(()=>{k.current.orientation=g},[k,g]),Y(()=>{E||(L.current=null),E&&f===`auto`||(F.current=f)},[E,f]),Y(()=>{a&&(E&&D?(I.current=o??-1,F.current&&o!=null&&(H.current=!0,z())):B.current&&(I.current=-1,z()))},[a,E,D,o,z]),Y(()=>{if(a){if(!E)V.current=!1;else if(D){if(r==null){if(V.current=!1,re.current!=null)return;if(B.current&&(I.current=-1,W()),(!ee.current||!B.current)&&F.current&&(L.current!=null||F.current===!0&&L.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>oe.request(e):queueMicrotask)(t),e+=1):(I.current=L.current==null||Kg(L.current,_,u)||l?Ws(n):Gs(n),L.current=null,z())};t()}}else Us(n.current,r)||(I.current=r,W(),H.current=!1)}}},[a,E,D,r,re,l,n,_,u,z,W,oe]),Y(()=>{if(!a||D||!P||d||!B.current)return;let e=P.nodesRef.current,t=e.find(e=>e.id===N)?.context?.elements.floating,n=as(Hs(O??t??null)),r=e.some(e=>e.context&&X(e.context.elements.floating,n));t&&!r&&R.current&&t.focus({preventScroll:!0})},[a,D,O,P,N,d]),Y(()=>{ee.current=E,B.current=!!D});let G=r!=null,se=Z(e=>{if(!U.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(I.current!==t||r!==t)&&(I.current=t,z(e))}),ce=Z(()=>y??P?.nodesRef.current.find(e=>e.id===N)?.context?.dataRef?.current.orientation),le=Z(()=>Ws(n,ne.current)),ue=Z(t=>{if(R.current=!1,V.current=!0,t.which===229||!U.current&&t.currentTarget===M.current)return;if(l&&Jg(t.key,g,u,T)){Gg(t.key,ce())||$o(t),e.setOpen(!1,bc(kc,t.nativeEvent));let n=C?.current??O;Gi(n)&&n.focus();return}r!=null&&r!==I.current&&!Us(n.current,r)&&(I.current=r);let i=I.current,a=Ws(n,h),o=Gs(n,h);if(j||(t.key===`Home`&&($o(t),I.current=a,z(t)),t.key===`End`&&($o(t),I.current=o,z(t))),w!=null){let e=w(t,I.current,n,g,c,u,h,a,o);if(e!=null&&e!==I.current&&(I.current=e,z(t)),g===`both`)return}if(Gg(t.key,g)){$o(t);let e=as(t.currentTarget.ownerDocument);if(E&&!d&&X(t.currentTarget,e)&&!n.current.some(t=>t!=null&&X(t,e))){I.current=Kg(t.key,g,u)?a:o,z(t),r===I.current&&W();return}let{index:l,wrapped:f}=Ks(n.current,i,{decrement:!Kg(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(V.current=!1),I.current=l,z(t)}}),de=v.useMemo(()=>({onFocus(e){V.current=!0,se(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){Ug(e)||(V.current=!0,H.current=!1,p&&se(e))},onPointerLeave(e){if(!U.current||!R.current||e.pointerType===`touch`)return;V.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&ie.current&&(te.current?.(),te.current=null,I.current=-1,z(e),!d)){let e=M.current,t=as(Hs(e));e&&X(e,t)&&e.focus({preventScroll:!0})}}}),[se,U,M,p,n,z,ie,d]),K=v.useMemo(()=>d&&E&&G&&{"aria-activedescendant":`${b}-${r}`},[d,E,G,b,r]),fe=v.useMemo(()=>({...j?{}:K,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&E&&!d){let n=ss(t.nativeEvent);if(n&&!X(M.current,n))return;$o(t);let r=bc(Dc,t.nativeEvent);e.setOpen(!1,r);let i=C?.current??O;!r.isCanceled&&Gi(i)&&i.focus()}else ue(t)},onPointerMove(e){Ug(e)||(R.current=!0)}}),[K,ue,M,j,e,E,d,O,C]),pe=v.useMemo(()=>{function t(t){e.setOpen(!0,bc(kc,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&ts(e.nativeEvent)&&(F.current=!d)}function r(e){F.current=f,f===`auto`&&ns(e.nativeEvent)&&(F.current=!0)}return{onKeyDown(n){let r=e.select(`open`);R.current=!1;let i=n.key.startsWith(`Arrow`),a=qg(n.key,ce(),u),o=Gg(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Ls(n.currentTarget)))return ue(n);if(r||m||!i){if(s){let e=Gg(n.key,ce());L.current=l&&e?null:n.key}l?a&&($o(n),r?(I.current=le(),z(n),d&&M.current?.focus()):t(n)):o&&(re.current!=null&&(I.current=re.current),$o(n),!r&&m?t(n):ue(n),r&&z(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(I.current=-1,z(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[ue,f,le,l,z,e,m,g,_,ce,u,re,d,M]),me=v.useMemo(()=>({...K,...pe}),[K,pe]);return v.useMemo(()=>a?{reference:me,floating:fe,item:de,trigger:pe}:{},[a,me,fe,pe,de])}function Xg(e){let t=v.useRef(!0);t.current&&(t.current=!1,e())}var Zg=(e,t)=>Object.is(e,t);function Qg(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function $g(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!Um(e,t,(e,t)=>Qg(e,t,n)):e!==t}function e_(e,t,n){return e?e.some(e=>e!==void 0&&Qg(t,e,n)):!1}function t_(e,t,n){return e?e.findIndex(e=>e!==void 0&&Qg(e,t,n)):-1}function n_(e,t){if(t!==Zg)return n=>e_(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function r_(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(n_(t,n)):t_(e,t,n);return i===-1?null:i}function i_(e,t,n,r,i,a){return e_(r,t,i)?a!=null&&e>a&&e_(r,n[a],i)?a:e:e===a?r_(n,r,i,!0):a}function a_(e,t,n){return e.filter(e=>!Qg(t,e,n))}function o_(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function s_(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function c_(e){return s_(e?.[0])}function l_(e){return c_(e)?e.flatMap(e=>e.items):e}function u_(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(c_(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function d_(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return o_(e)}function f_(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?o_(e.value):o_(e)}function p_(e,t,n){function r(){return d_(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let n=l_(t);if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function m_(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,J.jsx)(v.Fragment,{children:p_(r,t,n)},i)),e),[])}var h_=v.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});h_.displayName=`CompositeListContext`;function g_(){return v.useContext(h_)}function __(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Z(i),[,o]=v.useState(0),s=Pr(y_).current,c=Pr(v_).current,l=v.useRef(0),u=v.useRef(!0),d=v.useRef(null),f=v.useRef(null),p=Z(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=Z((e,t)=>{c.set(e,t),p()}),h=Z(e=>{c.delete(e),p()}),g=Z(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!S_(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&C_(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=x_(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let y=Z(()=>{let[e,t]=b_(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});Y(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Y(()=>{u.current&&y()}),Y(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let b=Z(e=>(s.add(e),()=>{s.delete(e)})),x=v.useMemo(()=>({register:m,unregister:h,subscribeMapChange:b,nextIndexRef:l}),[m,h,b,l]);return(0,J.jsx)(h_.Provider,{value:x,children:t})}function v_(){return new Map}function y_(){return new Set}function b_(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>C_(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function x_(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function S_(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function C_(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function w_(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=g_(),u=v.useRef(-1),[d,f]=v.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=v.useRef(null),h=v.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return Y(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}function T_(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=Z(s),f=e.useState(`open`),p=Vl(),m=v.useRef(``),h=v.useRef(u??i??-1),g=v.useRef(null),_=Z(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!Xs(n)||n?.matches(`:disabled`)?!1:o==null||!Js(Yr,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&($o(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&($o(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),y=Z(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);X(r,n)||X(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Y(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let b=v.useMemo(()=>({onKeyDown:_,onBlur:y}),[_,y]);return v.useMemo(()=>c?{reference:b,floating:b}:{},[c,b])}function E_(e){return e==null?void 0:`${e}-label`}function D_(e,t){return e??t}var O_=5;function k_(e,t){let n=A_(t);return e.clientX>=n.left-O_&&e.clientX<=n.right+O_&&e.clientY>=n.top-O_&&e.clientY<=n.bottom+O_}function A_(e){let t=e.getBoundingClientRect(),n=Vi(e);if(Qo)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var j_=v.memo(v.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a,selected:o,...s}=e,c=v.useRef(null),{transitionStatus:l,setMounted:u}=tu(o),d=mi(`span`,e,{ref:[t,c],state:{selected:o,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:vs});return eu({batch:!0,enabled:!o,open:o,ref:c,onComplete(){o||u(!1)}}),d}));j_.displayName=`ItemIndicator`;var M_=20;function N_(e,t,n,r){let[i,a]=v.useState(!1);Y(()=>{if(!e||!t||n==null){a(!1);return}let r=Hs(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-M_)},[e,t,n]),Vg(e&&(!t||i),r)}var P_=v.createContext(void 0);P_.displayName=`ToolbarRootContext`;function F_(e){let t=v.useContext(P_);if(t===void 0&&!e)throw Error(`Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.`);return t}function I_(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var L_=`ArrowUp`,R_=`ArrowDown`,z_=`ArrowLeft`,B_=`ArrowRight`,V_=new Set([L_,R_,z_,B_,`Home`,`End`]),H_=[`Shift`,`Control`,`Alt`,`Meta`];function U_(e){return Gi(e)&&e.tagName===`INPUT`}function W_(e){return!!(U_(e)&&e.selectionStart!=null||Gi(e)&&e.tagName===`TEXTAREA`)}function G_(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=K_(e,t,`left`),a=q_(e),o=q_(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=K_(e,t,`top`),r=q_(e),i=q_(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function K_(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function q_(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var J_=`data-composite-item-active`;function Y_(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=Yr}=e,[p,m]=v.useState(0),h=r!=null,g=v.useRef(null),_=Fr(g,c),y=v.useRef([]),b=v.useRef(!1),x=v.useRef(null),S=o??p,C=Z((e,t=!1)=>{if(x.current=y.current[e]??null,(s??m)(e),t){let t=y.current[e];G_(g.current,t,a,n)}}),w=Z(e=>{if(e.size===0)return;if(b.current){let e=y.current,t=e.indexOf(x.current);if(t===-1){let t=e[S];!t||Js(e,S,d)?C(X_(e,d)):x.current=t}else t!==S&&C(t);return}b.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)C(i);else if(Js(t,S,d)){let e=qs(t,{disabledIndices:d});Us(t,e)||C(e)}G_(g.current,r,a,n)});Y(()=>{if(d==null||o!=null||!b.current)return;let e=y.current;if(Js(e,S,d)){let t=qs(e,{disabledIndices:d});Us(e,t)||C(t)}},[d,o,S,y,C]);let T=Z((e,t,n)=>i?i(e,t,n,y):n),E=Z(e=>{let o=e.key===`Home`||e.key===`End`;if(!V_.has(e.key)||!l&&o||Z_(e,f)||!g.current)return;let s=a===`rtl`,c=s?z_:B_,p=s?B_:z_,m=n===`vertical`?R_:c,_=n===`vertical`?L_:p,v=ss(e.nativeEvent);if(v!=null&&W_(v)&&!I_(v)){let t=v.selectionStart,n=v.selectionEnd,r=v.value;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==m&&t>0)return}let b=S,x=Ws(y,d),w=Gs(y,d);r!=null&&(b=r({disabledIndices:d,elementsRef:y,event:e,highlightedIndex:S,loopFocus:t,maxIndex:w,minIndex:x,onLoop:T,orientation:n,rtl:s}));let E=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,D=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?b=x:e.key===`End`&&(b=w)),b===S&&(E||D)&&(t&&b===w&&E?(b=x,i&&(b=i(e,S,b,y))):t&&b===x&&D?(b=w,i&&(b=i(e,S,b,y))):b=qs(y.current,{startingIndex:b,decrement:D,disabledIndices:d})),b!==S&&!Us(y.current,b)&&(u&&e.stopPropagation(),(h||o||E||D)&&e.preventDefault(),C(b,!0),queueMicrotask(()=>{y.current[b]?.focus()}))});return{props:{ref:_,onFocus(e){let t=g.current,n=ss(e.nativeEvent);t&&n!=null&&W_(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:E},highlightedIndex:S,onHighlightedIndexChange:C,elementsRef:y,onMapChange:w,relayKeyboardEvent:E}}function X_(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!Js(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function Z_(e,t){for(let n of H_)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Q_(e){let{render:t,className:n,style:r,refs:i=Yr,props:a=Yr,state:o=Xr,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:y,modifierKeys:b,highlightItemOnHover:x=!1,tag:S=`div`,...C}=e,{props:w,highlightedIndex:T,onHighlightedIndexChange:E,elementsRef:D,onMapChange:O,relayKeyboardEvent:k}=Y_({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:td(),disabledIndices:y,modifierKeys:b}),A=mi(S,e,{state:o,ref:i,props:[w,...a,C],stateAttributesMapping:s}),j=v.useMemo(()=>({highlightedIndex:T,onHighlightedIndexChange:E,highlightItemOnHover:x,relayKeyboardEvent:k}),[T,E,x,k]);return(0,J.jsx)(Qm.Provider,{value:j,children:(0,J.jsx)(__,{elementsRef:D,onMapChange:e=>{h?.(e),O(e)},children:A})})}function $_(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=$m(),{ref:i,index:a}=w_(e),o=n===a,s=v.useRef(null),c=Fr(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}var ev=`overflow-hidden rounded-lg bg-kumo-base shadow-xs ring ring-kumo-line`,tv=`flex w-full flex-col overflow-hidden rounded-lg bg-kumo-elevated text-base ring ring-kumo-hairline`,nv=`-my-2 flex items-center gap-2 bg-kumo-elevated p-4 text-base font-medium text-kumo-subtle`,rv=`relative flex flex-col gap-2 overflow-hidden rounded-lg bg-kumo-base p-4 pr-3 text-inherit no-underline ring ring-kumo-fill`;function iv(e={}){return q(ev)}function av(e){return v.Children.toArray(e).some(e=>(0,v.isValidElement)(e)?e.type===cv||e.type===sv||e.type===v.Fragment&&av(e.props.children):!1)}var ov=(0,v.forwardRef)(function({children:e,className:t,render:n,...r},i){return wi({defaultTagName:`div`,render:n,ref:i,props:ti({className:q(av(e)?tv:iv(),t)},r,{children:e})})});function sv({children:e,className:t,...n}){return(0,J.jsx)(`div`,{className:q(nv,t),...n,children:e})}function cv({children:e,className:t,...n}){return(0,J.jsx)(`div`,{className:q(rv,t),...n,children:e})}ov.displayName=`LayerCard`,sv.displayName=`LayerCard.Secondary`,cv.displayName=`LayerCard.Primary`;var lv=Object.assign(ov,{Primary:cv,Secondary:sv});function uv(e=2e3){let[t,n]=(0,v.useState)(!1),r=(0,v.useRef)(null),i=(0,v.useRef)(0);return(0,v.useEffect)(()=>()=>{i.current+=1,r.current!==null&&clearTimeout(r.current)},[]),{copied:t,runCopy:(0,v.useCallback)(async(t,a)=>{let o=++i.current;r.current!==null&&(clearTimeout(r.current),r.current=null);try{return await t(()=>i.current===o),i.current===o&&(n(!0),r.current=setTimeout(()=>{i.current===o&&(n(!1),r.current=null)},e),!0)}catch(e){return i.current===o&&(n(!1),a?.(e)),!1}},[e]),reset:(0,v.useCallback)(()=>{i.current+=1,r.current!==null&&(clearTimeout(r.current),r.current=null),n(!1)},[])}}var dv=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),fv=(e,t)=>(Math.random()*(t-e)+e).toFixed(2),pv=({minWidth:e=30,maxWidth:t=100,minDuration:n=1.3,maxDuration:r=1.7,minDelay:i=0,maxDelay:a=.5,blockHeight:o,className:s})=>{let{width:c,duration:l,delay:u}=(0,v.useMemo)(()=>({width:dv(e,t),duration:fv(n,r),delay:fv(i,a)}),[e,t,n,r,i,a]),d={"--skeleton-width":`${c}%`,"--shimmer-duration":`${l}s`,"--shimmer-delay":`${u}s`},f=(0,J.jsx)(`div`,{className:q(`skeleton-line`,s),style:d});if(o!==void 0){let e=typeof o==`number`?`${o}px`:o;return(0,J.jsx)(`div`,{className:`flex items-center`,style:{height:e},children:f})}return f};function mv(e){let[t,n]=v.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}var hv=v.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return mi(`div`,e,{state:{orientation:i},ref:t,props:[{role:`presentation`},o]})});hv.displayName=`ListboxSeparator`;function gv(e,t){return Math.max(0,e-t)}function _v(e,t){if(t<=0)return 0;let n=Sh(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var vv=`base-ui-disable-scrollbar`,yv={className:vv,getElement(e){return(0,J.jsx)(`style`,{nonce:e,href:vv,precedence:`base-ui:low`,children:`.${vv}{scrollbar-width:none}.${vv}::-webkit-scrollbar{display:none}`})}};yv.getElement.displayName=`styleDisableScrollbar.getElement`;var bv=v.createContext(void 0);bv.displayName=`CSPContext`;var xv={disableStyleElements:!1};function Sv(){return v.useContext(bv)??xv}var Cv=v.createContext(void 0);Cv.displayName=`SelectRootContext`;var wv=v.createContext(void 0);wv.displayName=`SelectFloatingContext`;function Tv(){let e=v.useContext(Cv);if(e===void 0)throw Error(`Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.`);return e}function Ev(){let e=v.useContext(wv);if(e===void 0)throw Error(`Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.`);return e}var Dv={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,multiple:e=>e.multiple,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,highlightItemOnHover:e=>e.highlightItemOnHover,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:f_(t,r)!==``},hasNullItemLabel:(e,t)=>t?u_(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>Qg(t,e,n)):Qg(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function Ov(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:_,items:y,multiple:b=!1,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C=Zg,highlightItemOnHover:w=!0,children:T}=e,{clearErrors:E}=ym(),{setDirty:D,setTouched:O,setFocused:k,validityData:A,setFilled:j,name:M,disabled:N,validation:P,validationMode:F}=hm(),I=Rm({id:t}),L=N||d,R=M??c,[z,B]=Vm({controlled:n,default:b?r??Yr:r,name:`Select`,state:`value`}),[ee,V]=Vm({controlled:a,default:o,name:`Select`,state:`open`}),H=v.useRef([]),te=v.useRef([]),ne=v.useRef(null),U=v.useRef(null),re=v.useRef(0),ie=v.useRef(null),ae=v.useRef([]),oe=v.useRef(!1),W=v.useRef(null),G=v.useRef(null),se=v.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ce=v.useRef(!1),le=v.useRef(z),{openMethod:ue,triggerProps:de}=kg(ee),K=Pr(()=>new Fl({id:I,labelId:void 0,modal:m,multiple:b,disabled:L,readOnly:f,required:p,highlightItemOnHover:w,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C,value:z,open:ee,mounted:ee,transitionStatus:void 0,items:y,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:Xr,triggerProps:Xr,itemRoot:{props:Xr,multiple:b,disabled:L,readOnly:f,isItemEqualToValue:C},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:Jr,setOpen:Jr,handleScrollArrowVisibility:Jr,onOpenChangeComplete:Jr,listRef:H,popupRef:ne,scrollHandlerRef:U,scrollArrowsMountedCountRef:re,valueRef:ie,valuesRef:ae,labelsRef:te,typingRef:oe,selectionRef:se,firstItemTextRef:W,selectedItemTextRef:G,alignItemWithTriggerActiveRef:ce,initialValueRef:le},Dv)).current,[fe,pe]=v.useState(!1),{mounted:me,transitionStatus:he,forceUnmount:ge}=cu({open:ee,ref:ne,preventUnmountOnClose:fe,setPreventUnmountOnClose:pe,onUnmount(){K.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),_?.(!1)}}),_e=K.useState(`activeIndex`),ve=K.useState(`selectedIndex`),ye=K.useState(`triggerElement`),be=K.useState(`positionerElement`),xe=mv(ue),Se=ue??xe,Ce=v.useMemo(()=>b?``:f_(z,S),[b,z,S]),we=v.useMemo(()=>b&&Array.isArray(z)?z.map(e=>f_(e,S)):f_(z,S),[b,z,S]);zm(Hl(ye),I,z,Z(()=>we),!L,c);let Te=b?Array.isArray(z)&&z.length>0:z!=null&&Ce!==``;Y(()=>{j(Te)},[Te,j]),Y(function(){let e=r_(ae.current,z,C,b);e===null&&(G.current=null),!ee&&K.set(`selectedIndex`,e)},[b,ee,z,C,K]),Bm(z,()=>{E(R),D($g(z,A.initialValue,C)),P.change(z)});let Ee=Z((e,t)=>{let n=t,r=hu(n);s?.(e,n),!t.isCanceled&&(e||pe(r()),V(e),e||t.reason!==`focus-out`&&t.reason!==`outside-press`||(O(!0),k(!1),F===`onBlur`&&P.commit(z)))});v.useImperativeHandle(h,()=>({unmount:ge,close:()=>{K.state.open&&Ee(!1,bc(Pc))}}),[ge,Ee,K]);let De=Z((e,t)=>{i?.(e,t),!t.isCanceled&&B(e)}),Oe=Z(e=>{let t=gv(e.scrollHeight,e.clientHeight),n=_v(e.scrollTop,t),r=n>0,i=n<t;K.set(`scrollUpArrowVisible`,r),K.set(`scrollDownArrowVisible`,i)}),ke=bh({open:ee,onOpenChange:Ee,elements:{reference:ye,floating:be}}),Ae=Hg(ke,{enabled:!L,event:`mousedown`}),je=ou(ke),Me=Yg(ke,{enabled:!L,listRef:H,activeIndex:_e,selectedIndex:ve,disabledIndices:Yr,onNavigate(e){(e!==null||ee)&&K.set(`activeIndex`,e)},focusItemOnHover:w}),Ne=T_(ke,{enabled:!L&&(ee||!f&&!b),listRef:te,activeIndex:_e,selectedIndex:ve,disabledIndices:e=>I_(H.current[e]),onMatch(e){ee?K.set(`activeIndex`,e):De(ae.current[e],bc(xc))},onTyping(e){oe.current=e}}),Pe=v.useMemo(()=>ti(Ne.reference,Me.reference,je.reference,Ae.reference,de),[Ae.reference,Ne.reference,Me.reference,je.reference,de]),Fe=v.useMemo(()=>ti(lu,Ne.floating,Me.floating,je.floating),[Ne.floating,Me.floating,je.floating]),Ie=Me.item??Xr,Le=v.useMemo(()=>({props:Ie,multiple:b,disabled:L,readOnly:f,isItemEqualToValue:C}),[Ie,b,L,f,C]);K.useContextCallback(`setValue`,De),K.useContextCallback(`setOpen`,Ee),K.useContextCallback(`handleScrollArrowVisibility`,Oe),K.useContextCallback(`onOpenChangeComplete`,_),Xg(()=>{K.update({popupProps:Fe,triggerProps:Pe,itemRoot:Le})}),K.useSyncedValues({id:I,modal:m,multiple:b,disabled:L,readOnly:f,required:p,highlightItemOnHover:w,value:z,open:ee,mounted:me,transitionStatus:he,popupProps:Fe,triggerProps:Pe,itemRoot:Le,items:y,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C,openMethod:Se});let Re=Fr(g,P.inputRef),ze=b?void 0:R,Be=v.useMemo(()=>!b||!Array.isArray(z)||!R?null:z.map(e=>{let t=f_(e,S);return(0,J.jsx)(`input`,{type:`hidden`,form:l,name:R,value:t,disabled:L},t)}),[b,z,l,R,S,L]);return(0,J.jsxs)(Cv.Provider,{value:K,children:[(0,J.jsx)(wv.Provider,{value:ke,children:T}),(0,J.jsx)(`input`,{...P.getValidationProps(L,{onFocus(){K.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||L||f)return;let t=e.currentTarget.value,n=bc(xc,e.nativeEvent);function r(){if(b)return;let e=t.toLowerCase(),r=ae.current.findIndex(t=>f_(t,S).toLowerCase()===e||d_(t,x).toLowerCase()===e);r===-1&&(r=ae.current.findIndex((t,n)=>{let r=te.current[n];return r!=null&&r.toLowerCase()===e}));let i=ae.current[r];i!=null&&De(i,n)}K.set(`forceMount`,!0),queueMicrotask(r)}}),id:I&&ze==null?`${I}-hidden-input`:void 0,form:l,name:ze,autoComplete:u,value:Ce,disabled:L,required:p&&!(b&&Te),readOnly:f,ref:Re,style:R?Wc:Uc,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Be]})}var kv=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let s=hm(),c=Tv(),l=c.useState(`triggerElement`),u=c.useState(`id`),d=bm({id:E_(u),fallbackControlId:l?.id??u,setLabelId(e){let t=typeof e==`function`?e(c.state.labelId):e;c.set(`labelId`,t)}});return mi(`div`,e,{ref:t,state:s.state,props:[d,a],stateAttributesMapping:fm})});kv.displayName=`SelectLabel`;var Av=`data-popup-side`,jv=400,Mv={...As,...fm,popupSide:e=>e?{[Av]:e}:null,value:()=>null},Nv=v.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{setTouched:l,validationMode:u,validation:d,state:f,disabled:p}=hm(),{labelId:m}=_m(),h=Tv(),g=h.useState(`readOnly`),_=h.useState(`required`),y=h.useState(`disabled`),b=p||y||a,x=h.useState(`open`),S=h.useState(`mounted`),C=h.useState(`value`),w=h.useState(`triggerProps`),T=h.useState(`positionerElement`),E=h.useState(`listElement`),D=h.useState(`popupSide`),O=h.useState(`id`),k=h.useState(`labelId`),A=h.useState(`hasSelectedValue`),j=S&&T?D:null,M=i??O,N=D_(m,k);Rm({id:i});let P=Hl(T),F=v.useRef(null),I=Zm(b,F),{getButtonProps:L,buttonRef:R}=nh({disabled:b,native:o}),z=h.useStateSetter(`triggerElement`),B=Vl(),ee=Vl(),V=Vl();v.useEffect(()=>{if(x)return V.start(jv,()=>{h.context.selectionRef.current.allowUnselectedMouseUp=!0,h.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{V.clear()};h.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ee.clear()},[x,h,ee,V]);let H=ti(w,{id:M,role:`combobox`,"aria-expanded":x,"aria-haspopup":`listbox`,"aria-controls":x?E?.id??Vs(T)?.id:void 0,"aria-labelledby":N,"aria-readonly":g||void 0,"aria-required":_||void 0,tabIndex:b?-1:0,onFocus(e){I(!0),x&&h.context.alignItemWithTriggerActiveRef.current&&h.context.setOpen(!1,bc(xc,e.nativeEvent)),B.start(0,()=>{h.set(`forceMount`,!0)})},onBlur(e){X(T,e.relatedTarget)||(l(!0),I(!1),u===`onBlur`&&d.commit(C))},onMouseDown(e){if(x)return;let t=Hs(e.currentTarget);function n(e){if(!F.current)return;let t=e.target;X(F.current,t)||X(P.current,t)||k_(e,F.current)||h.context.setOpen(!1,bc(Ac,e))}ee.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},c,L),te=d.getValidationProps(b,H);te.role=`combobox`;let ne={...f,open:x,disabled:b,value:C,readOnly:g,popupSide:j,placeholder:!A};return mi(`button`,e,{ref:[t,F,R,z],state:ne,stateAttributesMapping:Mv,props:te})});Nv.displayName=`SelectTrigger`;var Pv={value:()=>null},Fv=v.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=Tv(),l=c.useState(`value`),u=c.useState(`items`),d=c.useState(`itemToStringLabel`),f=c.useState(`hasSelectedValue`),p=!f&&a!=null&&i==null,m=c.useState(`hasNullItemLabel`,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(p&&!m?a:Array.isArray(l)?m_(l,u,d):p_(l,u,d)),mi(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:Pv})});Fv.displayName=`SelectValue`;var Iv=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return mi(`span`,e,{state:{open:Tv().useState(`open`)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:ks})});Iv.displayName=`SelectIcon`;var Lv=v.forwardRef(function(e,t){let n=Tv(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,J.jsx)(Tl,{ref:t,...e}):null});Lv.displayName=`SelectPortal`;var Rv=v.createContext(void 0);Rv.displayName=`SelectPositionerContext`;function zv(){let e=v.useContext(Rv);if(!e)throw Error(`Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.`);return e}function Bv(e,t){e&&Object.assign(e.style,t)}var Vv={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Hv={position:`fixed`},Uv=v.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=vl,style:_,...y}=e,b=Tv(),x=Ev(),S=b.useState(`open`),C=b.useState(`mounted`),w=b.useState(`modal`),T=b.useState(`value`),E=b.useState(`openMethod`),D=b.useState(`positionerElement`),O=b.useState(`triggerElement`),k=b.useState(`isItemEqualToValue`),A=b.useState(`transitionStatus`),j=v.useRef(null),M=v.useRef(null),[N,P]=v.useState(h),F=C&&N&&E!==`touch`;!C&&N!==h&&P(h),v.useImperativeHandle(b.context.alignItemWithTriggerActiveRef,()=>F),N_((F||w)&&S,E===`touch`,D,O);let I=gd({anchor:n,floatingRootContext:x,positionMethod:a,mounted:C,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??F,collisionAvoidance:g,keepMounted:!0}),L=F?`none`:I.side,R=F?Hv:I.positionerStyles,z={open:S,side:L,align:I.align,anchorHidden:I.anchorHidden};Y(()=>{b.set(`popupSide`,I.side)},[b,I.side]);let B=bd(e,z,{styles:R,transitionStatus:A,props:y,refs:[t,b.useStateSetter(`positionerElement`)],hidden:!C,inert:!S}),ee=v.useRef(0),V=Z(e=>{if(b.context.valuesRef.current.length===0)return;let t=ee.current;ee.current=e.size;let n=bc(xc);if(t!==0&&!b.state.multiple&&T!==null&&t_(b.context.valuesRef.current,T,k)===-1){let e=b.context.initialValueRef.current,t=e!=null&&t_(b.context.valuesRef.current,e,k)!==-1?e:null;b.context.setValue(t,n),t===null&&(b.set(`selectedIndex`,null),b.context.selectedItemTextRef.current=null)}if(t!==0&&b.state.multiple&&Array.isArray(T)){let e=T.filter(e=>t_(b.context.valuesRef.current,e,k)!==-1);e.length!==T.length&&(b.context.setValue(e,n),e.length===0&&(b.set(`selectedIndex`,null),b.context.selectedItemTextRef.current=null))}if(S&&F){b.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Bv(D,e),Bv(b.context.popupRef.current,e)}}),H=v.useMemo(()=>({...I,side:L,alignItemWithTriggerActive:F,setControlledAlignItemWithTrigger:P,scrollUpArrowRef:j,scrollDownArrowRef:M}),[I,L,F,P]);return(0,J.jsx)(__,{elementsRef:b.context.listRef,labelsRef:b.context.labelsRef,onMapChange:V,children:(0,J.jsxs)(Rv.Provider,{value:H,children:[C&&w&&(0,J.jsx)(Ag,{inert:xh(!S),cutout:O}),B]})})});Uv.displayName=`SelectPositioner`;var Wv=`--transform-origin`,Gv={...js,...vs},Kv=v.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,s=Tv(),c=s.useState(`multiple`),l=s.useState(`readOnly`),u=s.useState(`highlightItemOnHover`),d=Ev(),{side:f,align:p,alignItemWithTriggerActive:m,isPositioned:h,setControlledAlignItemWithTrigger:g}=zv(),_=F_(!0)!=null,y=td(),{nonce:b,disableStyleElements:x}=Sv(),S=s.useState(`id`),C=s.useState(`open`),w=s.useState(`openMethod`),T=s.useState(`mounted`),E=s.useState(`popupProps`),D=s.useState(`transitionStatus`),O=s.useState(`triggerElement`),k=s.useState(`positionerElement`),A=s.useState(`listElement`),j=v.useRef(!1),M=v.useRef(!1),N=v.useRef({}),P=Jl(),F=Z(e=>{if(!k||!s.context.popupRef.current||!M.current)return;let t=k.style.top===`0px`,n=k.style.bottom===`0px`;if(j.current||!m||!t&&!n){s.context.handleScrollArrowVisibility(e);return}let r=Yv(k),i=Xv(k.getBoundingClientRect().height,`y`,r),a=Hs(k),o=Vi(k),c=o.getComputedStyle(k),l=parseFloat(c.marginTop),u=parseFloat(c.marginBottom),d=qv(o.getComputedStyle(s.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=Jv(e),g=null,_=e=>{k.style.height=`${e}px`},v=t?h-p:p,y=Math.min(i+v,f);if(v<=1){let n=Sh(v,0,f-i);n>0&&_(i+n),e.scrollTop=t?h:0,f-(i+n)<=1&&(j.current=!0),s.context.handleScrollArrowVisibility(e);return}f-y>1?g=t?1/0:0:n&&p<h&&(g=p-(v-(i+v-f)));let b=Math.ceil(y);if(b!==0&&_(b),g!=null){let t=Sh(g,0,Jv(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}b>=f-1&&(j.current=!0),s.context.handleScrollArrowVisibility(e)});v.useImperativeHandle(s.context.scrollHandlerRef,()=>F,[F]),eu({open:C,ref:s.context.popupRef,onComplete(){C&&s.context.onOpenChangeComplete(!0)}});let I={open:C,transitionStatus:D,side:f,align:p};Y(()=>{k&&s.context.popupRef.current&&!Object.keys(N.current).length&&(N.current={top:k.style.top||`0`,left:k.style.left||`0`,right:k.style.right,height:k.style.height,bottom:k.style.bottom,minHeight:k.style.minHeight,maxHeight:k.style.maxHeight,marginTop:k.style.marginTop,marginBottom:k.style.marginBottom})},[s,k]),Y(()=>{C||m||(M.current=!1,j.current=!1,Bv(k,N.current))},[C,m,k]),Y(()=>{let e=s.context.popupRef.current;if(!C||!O||!k||!e||m&&!h||s.state.transitionStatus===`ending`)return;if(M.current=!0,e.style.removeProperty(Wv),!m){P.request(()=>s.context.handleScrollArrowVisibility(A||e));return}let t=$v(e);try{let t=s.context.selectedItemTextRef.current;t?.isConnected||(t=!s.select(`hasSelectedValue`)&&s.context.firstItemTextRef.current?.isConnected?s.context.firstItemTextRef.current:null);let n=s.context.valueRef.current,r=Vi(k),i=r.getComputedStyle(k),a=r.getComputedStyle(e),o=Hs(O),c=Yv(O),l=Zv(O.getBoundingClientRect(),c),d=Zv(k.getBoundingClientRect(),c),f=l.height,p=A||e,m=p.scrollHeight,h=parseFloat(a.borderBottomWidth),_=parseFloat(i.marginTop)||10,v=parseFloat(i.marginBottom)||10,b=parseFloat(i.minHeight)||100,x=qv(a),S=o.documentElement.clientHeight-_-v,C=o.documentElement.clientWidth,w=S-l.bottom+f,T,E=y===`rtl`?l.right-d.width:l.left,D=0;if(t&&n){let e=Zv(n.getBoundingClientRect(),c);T=Zv(t.getBoundingClientRect(),c),E=d.left+(y===`rtl`?e.right-T.right:e.left-T.left);let r=e.top-l.top+e.height/2;D=T.top-d.top+T.height/2-r}let M=w+D+v+h,P=Math.min(S,M),F=S-_-v,I=M-P,L=C-5;k.style.left=`${Sh(E,5,L-d.width)}px`,k.style.height=`${P}px`,k.style.maxHeight=`none`,k.style.marginTop=`${_}px`,k.style.marginBottom=`${v}px`,e.style.height=`100%`;let R=Jv(p),z=I>=R-1;z&&(P=Math.min(S,d.height)-(I-R));let B=l.top<20||l.bottom>S-20||Math.ceil(P)+1<Math.min(m,b),ee=(r.visualViewport?.scale??1)!==1&&yc;if(B||ee){Bv(k,N.current),g(!1);return}let V=Math.max(b,P);if(z){let e=Math.max(0,S-M);k.style.top=d.height>=F?`0`:`${e}px`,k.style.height=`${P}px`,p.scrollTop=Jv(p)}else k.style.bottom=`0`,p.scrollTop=I;if(T){let t=d.top,n=d.height,r=T.top+T.height/2,i=Sh(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(Wv,`50% ${i}%`)}(V===S||P>=x)&&(j.current=!0),s.context.handleScrollArrowVisibility(p),u&&s.state.selectedIndex===null&&s.state.activeIndex===null&&s.context.listRef.current[0]!=null&&s.set(`activeIndex`,0)}finally{t()}},[s,C,k,O,m,g,P,A,u,y,h]),v.useEffect(()=>{if(!m||!k||!C)return;let e=Vi(k);function t(e){s.context.setOpen(!1,bc(Fc,e))}return Ic(e,`resize`,t)},[s,m,k,C]);let L={...A?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":c||void 0,"aria-readonly":l||void 0,id:`${S}-list`},onKeyDown(e){_&&V_.has(e.key)&&e.stopPropagation()},onScroll(e){A||F(e.currentTarget)},...m&&{style:A?{height:`100%`}:Vv},className:!A&&m?yv.className:void 0},R=mi(`div`,e,{ref:[t,s.context.popupRef],state:I,stateAttributesMapping:Gv,props:[E,L,yd(D),o]});return(0,J.jsxs)(v.Fragment,{children:[!x&&yv.getElement(b),(0,J.jsx)(Eg,{context:d,modal:!1,disabled:!T,openInteractionType:w,returnFocus:a,restoreFocus:!0,children:R})]})});Kv.displayName=`SelectPopup`;function qv(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function Jv(e){return gv(e.scrollHeight,e.clientHeight)}function Yv(e){return bo.getScale(e)}function Xv(e,t,n){return e/n[t]}function Zv(e,t){return Ia({x:Xv(e.x,`x`,t),y:Xv(e.y,`y`,t),width:Xv(e.width,`x`,t),height:Xv(e.height,`y`,t)})}var Qv=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function $v(e){let{style:t}=e,n={};for(let[e,r]of Qv)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Qv){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var ey=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Tv(),s=o.useState(`multiple`),c=o.useState(`readOnly`),{alignItemWithTriggerActive:l}=zv(),u=o.useState(`hasScrollArrows`),d=o.useState(`openMethod`),f={id:`${o.useState(`id`)}-list`,role:`listbox`,"aria-multiselectable":s||void 0,"aria-readonly":c||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...l&&{style:Vv},className:u&&d!==`touch`?yv.className:void 0};return mi(`div`,e,{ref:[t,o.useStateSetter(`listElement`)],props:[f,a]})});ey.displayName=`SelectList`;var ty=v.createContext(void 0);ty.displayName=`SelectItemContext`;function ny(){let e=v.useContext(ty);if(!e)throw Error(`Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.`);return e}var ry=v.memo(v.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=v.useRef(null),d=w_({guess:!0,label:o,textRef:u}),f=Tv(),{props:p,multiple:m,disabled:h,readOnly:g,isItemEqualToValue:_}=f.useState(`itemRoot`),y=h||s,b=f.useState(`isActive`,d.index),x=f.useState(`open`),S=f.useState(`isSelected`,a),C=f.useState(`isSelectedByFocus`,d.index),w=d.index,T=v.useRef(null);Y(()=>{let e=f.context.valuesRef.current;return e[w]=a,()=>{delete e[w]}},[w,a,f]),Y(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=i_(w,a,f.context.valuesRef.current,e,_,t),r=n===w,w===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&Qg(a,e,_),r&&(n=w)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[w,m,_,f,a]);let E=v.useRef(`mouse`),D=v.useRef(!1),{getButtonProps:O,buttonRef:k}=nh({disabled:y,focusableWhenDisabled:!0,native:c,composite:!0}),A={disabled:y,selected:S,highlighted:b};function j(e){if(h||g)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=S?a_(n,a,_):[...n,a];f.context.setValue(r,bc(Ec,e))}else f.context.setValue(a,bc(Ec,e)),f.context.setOpen(!1,bc(Ec,e))}function M(){f.context.selectionRef.current.dragY=0}let N={role:`option`,"aria-selected":S,tabIndex:x&&b?0:-1,onKeyDown(e){f.set(`activeIndex`,w),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=E.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&ts(e.nativeEvent)&&(n!==void 0||b),i=t&&!r&&!D.current;D.current=!1,!(y||i)&&j(e.nativeEvent)},onPointerEnter(e){E.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=f.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){E.current=e.pointerType,D.current=!0,M()},onMouseUp(){if(M(),y||E.current===`touch`||D.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&S,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!S;e||t||(D.current=!0,T.current?.click(),D.current=!1)}},P=mi(`div`,e,{ref:[k,t,d.ref,T],state:A,props:[p,N,l,O]}),F=v.useMemo(()=>({selected:S,index:w,textRef:u,selectedByFocus:C}),[S,w,u,C]);return(0,J.jsx)(ty.Provider,{value:F,children:P})}));ry.displayName=`SelectItem`;var iy=v.forwardRef(function(e,t){let{selected:n}=ny();return e.keepMounted||n?(0,J.jsx)(j_,{...e,selected:n,ref:t}):null});iy.displayName=`SelectItemIndicator`;var ay=v.memo(v.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=ny(),a=Tv(),{render:o,className:s,style:c,...l}=e;return mi(`div`,e,{ref:[v.useCallback(e=>{e&&(n===0&&(a.context.firstItemTextRef.current=e),i&&(a.context.selectedItemTextRef.current=e))},[a,n,i]),t,r],props:l})}));ay.displayName=`SelectItemText`;var oy=v.createContext(void 0);oy.displayName=`SelectGroupContext`;function sy(){let e=v.useContext(oy);if(e===void 0)throw Error(`Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.`);return e}var cy=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=v.useState(),c=v.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=mi(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,J.jsx)(oy.Provider,{value:c,children:l})});cy.displayName=`SelectGroup`;var ly=v.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=sy(),c=Qu(a);return Y(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),mi(`div`,e,{ref:t,props:[{id:c,"aria-hidden":!0},o]})});ly.displayName=`SelectGroupLabel`;var uy=hv;Mh.size;var dy={size:`base`};function fy({size:e=dy.size}={}){return q(Dp({size:e}),`bg-kumo-control disabled:bg-kumo-control/50 data-[state=open]:bg-kumo-control`,`justify-between font-normal`,`focus:opacity-100 focus:ring-kumo-focus/50 focus-visible:ring-inset *:in-focus:opacity-100`)}var py={xs:{iconSize:12,className:`text-kumo-subtle`},sm:{iconSize:14,className:`text-kumo-subtle`},base:{iconSize:16,className:`text-kumo-subtle`},lg:{iconSize:18,className:`text-kumo-subtle`}};function my(e){if(typeof e!=`object`||!e||Array.isArray(e)||`$$typeof`in e||e instanceof Promise)return!1;let t=e;return`label`in t&&t.label!==void 0}function hy(e){return Array.isArray(e)?e:Object.entries(e).map(([e,t])=>({value:e,label:my(t)?t.label:t}))}function gy(e){let t=hy(e),n=new Map;if(!Array.isArray(e))for(let[t,r]of Object.entries(e))my(r)&&n.set(t,{disabled:r.disabled});return t.filter(e=>e.value!==null).map((e,t)=>{let r=typeof e.value==`string`?e.value:`option-${t}`,i=typeof e.value==`string`?n.get(e.value):void 0;return(0,J.jsx)(vy,{value:e.value,disabled:i?.disabled,children:e.label},r)})}function _y({children:e,className:t,render:n,renderValue:r,label:i,hideLabel:a,placeholder:o,loading:s,size:c=dy.size,labelTooltip:l,description:u,error:d,required:f,container:p,side:m=`bottom`,sideOffset:h=4,align:g=`start`,alignOffset:_,alignItemWithTrigger:y=!1,anchor:b,arrowPadding:x,positionMethod:S,collisionAvoidance:C,collisionBoundary:w,collisionPadding:T,sticky:E,disableAnchorTracking:D,...O}){let k=(0,v.useId)(),A=Ii(),j=p??A??void 0,M=O,N=M[`aria-label`],P=M[`aria-labelledby`],F=typeof i==`string`?i:o;a!==void 0&&console.warn('[Kumo Select]: `hideLabel` is deprecated. For hidden labels, use `aria-label` instead of `label` + `hideLabel={true}`.\n Migration:\n - For visible labels: <Select label="Country" /> (hideLabel no longer needed)\n - For hidden labels: <Select aria-label="Select a country" /> (remove label and hideLabel)');let I=i&&a!==!0,L=I?void 0:P??(i?k:void 0),R=N??(L?void 0:F),z=O.items?hy(O.items):void 0,B=e||(O.items?gy(O.items):null),ee=r?e=>{let t=o==null?null:(0,J.jsx)(`span`,{className:`text-kumo-placeholder`,children:o});return e==null||e===``?t:r(e)??t}:void 0,{items:V,...H}=O,te=i?(0,J.jsx)(kv,{className:`m-0 text-base font-medium text-kumo-default select-none`,children:(0,J.jsx)(nm,{showOptional:f===!1,tooltip:a?void 0:l,asContent:!0,children:i})}):null,ne=(0,J.jsxs)(Nv,{"data-kumo-component":`Select`,"data-kumo-part":`trigger`,render:n,className:q(fy({size:c}),O.disabled&&`cursor-not-allowed opacity-50`,d&&`!ring-kumo-danger focus:ring-[1.5px] focus:ring-kumo-danger/50`,t),"aria-label":R,"aria-labelledby":L,children:[s?(0,J.jsx)(pv,{className:`w-32`}):(0,J.jsx)(Fv,{placeholder:o,className:`min-w-0 truncate data-[placeholder]:text-kumo-placeholder`,children:ee}),(0,J.jsx)(Iv,{className:q(`flex shrink-0 items-center`,py[c].className),children:(0,J.jsx)(Jf,{size:py[c].iconSize,className:`fill-current`})})]}),U=(0,J.jsxs)(Ov,{...H,items:z,disabled:s||O.disabled,required:f,children:[te,ne,(0,J.jsx)(Lv,{container:j,children:(0,J.jsx)(Uv,{side:m,sideOffset:h,align:g,alignOffset:_,alignItemWithTrigger:y,anchor:b,arrowPadding:x,positionMethod:S,collisionAvoidance:C,collisionBoundary:w,collisionPadding:T,sticky:E,disableAnchorTracking:D,children:(0,J.jsx)(Kv,{className:q(`flex flex-col`,`max-h-[var(--available-height)] bg-kumo-base text-kumo-default`,`rounded-lg shadow-lg ring ring-kumo-line`,`max-w-(--available-width) min-w-(--anchor-width) py-1.5`),children:(0,J.jsx)(ey,{className:q(`min-h-0 flex-1 scroll-pt-2 scroll-pb-2 overflow-y-auto overscroll-none`),children:B})})})})]});if(I)return(0,J.jsx)(kh,{label:i,required:f,labelTooltip:l,description:u,error:d?typeof d==`string`?{message:d,match:!0}:d:void 0,hideLabel:!0,children:U});let re=d?typeof d==`string`?{message:d,match:!0}:d:void 0;return(0,J.jsxs)(`div`,{className:`grid gap-2`,children:[i&&(0,J.jsx)(`span`,{id:k,className:`sr-only`,children:i}),U,re?(0,J.jsx)(`span`,{className:`text-sm text-kumo-danger`,children:re.message}):u&&(0,J.jsx)(`span`,{className:`text-sm leading-snug text-kumo-subtle`,children:u})]})}function vy({children:e,value:t,disabled:n,className:r}){return(0,J.jsxs)(ry,{"data-kumo-component":`Select`,"data-kumo-part":`option`,value:t,disabled:n,className:q(`group mx-1.5 flex cursor-pointer items-center justify-between gap-2 rounded px-2 py-1.5 text-base outline-none`,`focus-visible:z-50 focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset`,`data-highlighted:bg-kumo-tint`,`data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,r),children:[(0,J.jsx)(ay,{children:e}),(0,J.jsx)(iy,{children:(0,J.jsx)(Xf,{})})]})}var yy=(0,v.forwardRef)(({children:e,className:t},n)=>(0,J.jsx)(cy,{ref:n,className:q(t),children:e}));yy.displayName=`Select.Group`;var by=(0,v.forwardRef)(({children:e,className:t},n)=>(0,J.jsx)(ly,{ref:n,className:q(`px-3.5 py-1.5 text-sm font-semibold text-kumo-subtle`,t),children:e}));by.displayName=`Select.GroupLabel`;var xy=(0,v.forwardRef)(({className:e},t)=>(0,J.jsx)(uy,{ref:t,className:q(`my-1 h-px bg-kumo-hairline`,e)}));xy.displayName=`Select.Separator`,_y.Option=vy,_y.Group=yy,_y.GroupLabel=by,_y.Separator=xy,_y.Option.displayName=`Select.Option`;var Sy=[25,50,100,250],Cy=(e,t,n)=>Math.min(Math.max(e,t),n),wy={navigation:`Pagination`,firstPage:`First page`,previousPage:`Previous page`,nextPage:`Next page`,lastPage:`Last page`,pageNumber:`Page number`,pageSize:`Page size`},Ty={controls:`full`},Ey=(0,v.createContext)(null);function Dy(){let e=(0,v.useContext)(Ey);if(!e)throw Error(`Pagination compound components must be used within a Pagination component`);return e}function Oy({children:e,className:t}){let{page:n,perPage:r,totalCount:i,pageShowingRange:a}=Dy(),o=e?e({page:n,perPage:r,totalCount:i,pageShowingRange:a}):i&&i>0?(0,J.jsxs)(J.Fragment,{children:[`Showing `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:a}),` of`,` `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:i})]}):null;return(0,J.jsx)(`div`,{"data-slot":`pagination-info`,className:q(`text-sm text-kumo-subtle`,t),children:o})}Oy.displayName=`Pagination.Info`;function ky({value:e,onChange:t,options:n=Sy,label:r=`Per page:`,className:i}){let{labels:a}=Dy();return(0,J.jsxs)(`div`,{"data-slot":`pagination-page-size`,className:q(`flex items-center gap-2`,i),children:[r&&(0,J.jsx)(`span`,{className:`text-sm text-kumo-subtle`,children:r}),(0,J.jsx)(_y,{"aria-label":a.pageSize,value:e,onValueChange:e=>t(e),children:n.map(e=>(0,J.jsx)(_y.Option,{value:e,children:e},e))})]})}ky.displayName=`Pagination.PageSize`;function Ay({controls:e=Ty.controls,pageSelector:t=`input`,className:n}){let{page:r,totalCount:i,hasNextPage:a,maxPage:o,setPage:s,editingPage:c,setEditingPage:l,labels:u}=Dy(),d=i!=null,f=e===`full`&&!(!d&&a!==void 0),p=d?r===o:a!==!0;return(0,J.jsx)(`div`,{"data-slot":`pagination-controls`,className:q(`flex grow flex-col items-end`,n),children:(0,J.jsx)(`nav`,{"aria-label":u.navigation,children:(0,J.jsxs)(Zh,{children:[f&&(0,J.jsx)(Zh.Button,{variant:`secondary`,"aria-label":u.firstPage,disabled:r<=1,onClick:()=>{s(1),l(1)},children:(0,J.jsx)(Hf,{size:16})}),(0,J.jsx)(Zh.Button,{variant:`secondary`,"aria-label":u.previousPage,disabled:r<=1,onClick:()=>{let e=Math.max(r-1,1);s(e),l(e)},children:(0,J.jsx)(Gf,{size:16})}),f&&(t===`dropdown`?(0,J.jsx)(_y,{"aria-label":u.pageNumber,className:`rounded-none ring-kumo-hairline`,value:r,onValueChange:e=>{let t=e;s(t),l(t)},children:Array.from({length:o},(e,t)=>t+1).map(e=>(0,J.jsx)(_y.Option,{value:e,children:e},e))}):(0,J.jsx)(Zh.Input,{style:{width:50},className:`text-center`,"aria-label":u.pageNumber,value:c,onValueChange:e=>{l(Number(e))},onBlur:()=>{let e=Cy(c,1,o);s(e),l(e)},onKeyDown:e=>{if(e.key===`Enter`){let e=Cy(c,1,o);s(e),l(e)}},autoComplete:`off`,"data-1p-ignore":!0,"data-lpignore":`true`,"data-form-type":`other`})),(0,J.jsx)(Zh.Button,{variant:`secondary`,"aria-label":u.nextPage,disabled:p,onClick:()=>{let e=d?Math.min(r+1,o):r+1;s(e),l(e)},children:(0,J.jsx)(Kf,{size:16})}),f&&(0,J.jsx)(Zh.Button,{variant:`secondary`,"aria-label":u.lastPage,disabled:r===o,onClick:()=>{s(o),l(o)},children:(0,J.jsx)(Uf,{size:16})})]})})})}Ay.displayName=`Pagination.Controls`;function jy({className:e}){return(0,J.jsx)(`div`,{"data-slot":`pagination-separator`,className:q(`mx-2 h-6 border-l border-kumo-hairline`,e)})}jy.displayName=`Pagination.Separator`;function My(e){let{page:t=1,perPage:n,totalCount:r,hasNextPage:i,setPage:a,children:o,className:s,labels:c}=e,l=`text`in e?e.text:void 0,u=`controls`in e?e.controls??Ty.controls:Ty.controls,[d,f]=(0,v.useState)(1),p=(0,v.useMemo)(()=>({...wy,...c}),[c]);(0,v.useEffect)(()=>{f(t)},[t]);let m=(0,v.useMemo)(()=>{let e=t*(n??1)-(n??0)+1,i=Math.min(t*(n??0),r??0);return Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),`${e}-${i}`},[t,n,r]),h={page:t,perPage:n,totalCount:r,hasNextPage:i,maxPage:(0,v.useMemo)(()=>Math.ceil((r??1)/(n??1)),[r,n]),pageShowingRange:m,setPage:a,editingPage:d,setEditingPage:f,labels:p};return o?(0,J.jsx)(Ey.Provider,{value:h,children:(0,J.jsx)(`div`,{"data-slot":`pagination`,className:q(`flex w-full items-center gap-2`,s),children:o})}):(0,J.jsx)(Ey.Provider,{value:h,children:(0,J.jsxs)(`div`,{"data-slot":`pagination`,className:q(`flex w-full items-center gap-2`,s),children:[(0,J.jsx)(`div`,{"aria-live":`polite`,"aria-atomic":`true`,"data-slot":`pagination-info`,className:`grow text-sm text-kumo-subtle`,children:l?l({page:t,perPage:n,totalCount:r,pageShowingRange:m}):r&&r>0?(0,J.jsxs)(J.Fragment,{children:[`Showing `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:m}),` of`,` `,(0,J.jsx)(`span`,{className:`tabular-nums`,children:r})]}):null}),(0,J.jsx)(Ay,{controls:u})]})})}My.displayName=`Pagination`;var Ny=Object.assign(My,{Info:Oy,PageSize:ky,Controls:Ay,Separator:jy});function Py(e){let t=ia(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Gi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(fa(n)!==a||fa(r)!==o)&&(n=a,r=o),{width:n,height:r}}var Fy=()=>()=>{},Iy=()=>!0,Ly=()=>!1;function Ry(){return(0,al.useSyncExternalStore)(Fy,Iy,Ly)}function zy(){let[e,t]=v.useState(!1);return v.useEffect(()=>{t(!0)},[]),e}var By=Hr(18)?Ry:zy;function Vy(){return!By()}function Hy(e){let{script:t}=e,{nonce:n}=Sv();return Vy()?(0,J.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Uy=v.createContext(void 0);Uy.displayName=`TabsRootContext`;function Wy(){let e=v.useContext(Uy);if(e===void 0)throw Error(`Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.`);return e}var Gy=`data-activation-direction`,Ky={tabActivationDirection:e=>({[Gy]:e})},qy=v.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:s,style:c,...l}=e,u=e.defaultValue!==void 0,d=v.useRef([]),[f,p]=v.useState(()=>new Map),[m,h]=Vm({controlled:s,default:r,name:`Tabs`,state:`value`}),g=s!==void 0,[_,y]=v.useState(()=>new Map),b=v.useRef(void 0),x=v.useCallback(e=>Jy(_,e),[_]),[S,C]=v.useState(()=>({previousValue:m,tabActivationDirection:`none`})),{previousValue:w,tabActivationDirection:T}=S,E=T,D=!1;w!==m&&(E=Yy(w,m,a,_),D=w!=null&&m!=null&&x(m)==null);let O=D?w:m,k=w!==O||T!==E;Y(()=>{k&&C({previousValue:O,tabActivationDirection:E})},[O,k,E]);let A=Z((e,t)=>{t.activationDirection=Yy(m,e,a,_),i?.(e,t),!t.isCanceled&&h(()=>e)}),j=Z((e,t)=>{i?.(e,bc(t,void 0,void 0,{activationDirection:`none`}))}),M=Z((e,t)=>(p(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{p(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),N=v.useCallback(e=>f.get(e),[f]),P=v.useCallback(e=>{for(let t of _.values())if(e===t.value)return t.id},[_]),F=v.useMemo(()=>({getTabElementBySelectedValue:x,getTabIdByPanelValue:P,getTabPanelIdByValue:N,onValueChange:A,orientation:a,registerMountedTabPanel:M,setTabMap:y,tabActivationDirection:E,value:m}),[x,P,N,A,a,M,y,E,m]),I=v.useMemo(()=>{for(let e of _.values())if(e.value===m)return e},[_,m]),L=v.useMemo(()=>{for(let e of _.values())if(!e.disabled)return e.value},[_]),R=v.useRef(!u),z=v.useRef(r),B=v.useRef(u),ee=v.useRef(!1);Y(()=>{if(g)return;function e(e,t){h(()=>e),C({previousValue:e,tabActivationDirection:`none`}),j(e,t),R.current=!1}if(_.size===0){ee.current&&m!==null&&!b.current?.isConnected&&e(null,Mc);return}ee.current=!0,b.current=_.keys().next().value;let t=I?.disabled,n=I==null&&m!==null;if(!t&&m===z.current&&(B.current=!1),B.current&&t&&m===z.current)return;let r=R.current;if(t||n){let n=L??null;if(m===n){R.current=!1;return}let i=Mc;r?i=Nc:t&&(i=jc),e(n,i)}else r&&I!=null&&(j(m,Nc),R.current=!1)},[L,g,j,I,h,_,m]);let V=mi(`div`,e,{state:{orientation:a,tabActivationDirection:E},ref:t,props:l,stateAttributesMapping:Ky});return(0,J.jsx)(Uy.Provider,{value:F,children:(0,J.jsx)(__,{elementsRef:d,children:V})})});qy.displayName=`TabsRoot`;function Jy(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function Yy(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=Jy(r,e),c=Jy(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var Xy=v.createContext(void 0);Xy.displayName=`TabsListContext`;function Zy(){let e=v.useContext(Xy);if(e===void 0)throw Error(`Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.`);return e}var Qy=v.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,onValueChange:f,orientation:p,tabActivationDirection:m}=Wy(),{activateOnFocus:h,registerTabResizeObserverElement:g,tabsListElement:_}=Zy(),{highlightedIndex:y,onHighlightedIndexChange:b}=$m(),x=Qu(o),{compositeProps:S,compositeRef:C,index:w}=$_({metadata:v.useMemo(()=>({disabled:r,id:x,value:a}),[r,x,a])}),T=a===u,E=v.useRef(!1),D=v.useRef(null),O=Z(e=>{D.current?.(),D.current=e?g(e):null});Y(()=>{if(E.current){E.current=!1;return}if(!(T&&w>-1&&y!==w))return;let e=_;if(e!=null){let t=as(Hs(e));if(t&&X(e,t))return}r||b(w)},[T,w,y,b,r,_]);let{getButtonProps:k,buttonRef:A}=nh({disabled:r,native:s,focusableWhenDisabled:!0}),j=d(a),M=v.useRef(!1),N=v.useRef(!1);function P(e){f(a,bc(xc,e.nativeEvent,void 0,{activationDirection:`none`}))}function F(e){T||r||P(e)}function I(e){T||r||h&&(!M.current||N.current)&&P(e)}function L(e){if(T||r)return;M.current=!0,N.current=e.button===0;let t=Hs(e.currentTarget);function n(){M.current=!1,N.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return mi(`button`,e,{state:{disabled:r,active:T,orientation:p,tabActivationDirection:m},ref:[t,A,C,O],props:[S,{role:`tab`,"aria-controls":j,"aria-selected":T,id:x,onClick:F,onFocus:I,onPointerDown:L,[J_]:T?``:void 0,onKeyDownCapture(){E.current=!0}},l,k],stateAttributesMapping:Ky})});Qy.displayName=`TabsTab`;var $y=`--active-tab-left`,eb=`--active-tab-right`,tb=`--active-tab-top`,nb=`--active-tab-bottom`,rb=`--active-tab-width`,ib=`--active-tab-height`,ab,ob={...Ky,activeTabPosition:()=>null,activeTabSize:()=>null},sb=2,cb=v.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=Wy(),{tabsListElement:d,registerIndicatorUpdateListener:f}=Zy(),p=Gc();v.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,y=0,b=0,x=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){x=!0;let{width:t,height:n}=Py(e),{width:r,height:i}=Py(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1,l=lb(e,d);m=l.left,g=l.top;let u=(a.left-o.left)/s+d.scrollLeft-d.clientLeft,f=(a.top-o.top)/c+d.scrollTop-d.clientTop,p=db(e);Math.abs(u-p.x-m)<=sb&&Math.abs(f-p.y-g)<=sb&&(m=u,g=f),y=t,b=n,h=d.scrollWidth-m-y,_=d.scrollHeight-g-b}}let S=x?{left:m,right:h,top:g,bottom:_}:null,C=x?{width:y,height:b}:null,w=x?{[$y]:`${m}px`,[eb]:`${h}px`,[tb]:`${g}px`,[nb]:`${_}px`,[rb]:`${y}px`,[ib]:`${b}px`}:void 0,T=mi(`span`,e,{state:{orientation:c,activeTabPosition:S,activeTabSize:C,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:w,hidden:!(x&&y>0&&b>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:ob});return u==null?null:(0,J.jsxs)(v.Fragment,{children:[T,i&&(ab||=(0,J.jsx)(Hy,{script:``}))]})});cb.displayName=`TabsIndicator`;function lb(e,t){let n=ub(e),r=ub(t),i=n.left-r.left-t.clientLeft,a=n.top-r.top-t.clientTop,o=oa(e);for(;Gi(o)&&o!==t&&!ra(o);)i-=o.scrollLeft,a-=o.scrollTop,o=oa(o);return{left:i,top:a}}function ub(e){let t=0,n=0,r=e;for(;r!=null;){t+=r.offsetLeft,n+=r.offsetTop;let e=r.offsetParent;e!=null&&(t+=e.clientLeft,n+=e.clientTop),r=e}return{left:t,top:n}}function db(e){let t=Vi(e).getComputedStyle(e),{x:n,y:r}=Ch(e,t),i=n,a=r,{translate:o}=t;if(o&&o!==`none`){let t=o.split(` `);i+=fb(t[0],e.offsetWidth),a+=fb(t[1],e.offsetHeight)}return{x:i,y:a}}function fb(e,t){if(!e)return 0;let n=parseFloat(e);return Number.isFinite(n)?e.endsWith(`%`)?n/100*t:n:0}var pb=v.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{orientation:c,setTabMap:l,tabActivationDirection:u}=Wy(),[d,f]=v.useState(0),[p,m]=v.useState(null),h=v.useRef(new Set),g=v.useRef(new Set),_=v.useRef(null);Y(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{h.current.forEach(e=>{e()})});return _.current=e,p&&e.observe(p),g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),_.current=null}},[p]);let y=Z(e=>(h.current.add(e),()=>{h.current.delete(e)})),b=Z(e=>(g.current.add(e),_.current?.observe(e),()=>{g.current.delete(e),_.current?.unobserve(e)})),x={orientation:c,tabActivationDirection:u},S={"aria-orientation":c===`vertical`?`vertical`:void 0,role:`tablist`},C=v.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:y,registerTabResizeObserverElement:b,tabsListElement:p}),[n,y,b,p]);return(0,J.jsx)(Xy.Provider,{value:C,children:(0,J.jsx)(Q_,{render:a,className:r,style:o,state:x,refs:[t,m],props:[S,s],stateAttributesMapping:Ky,highlightedIndex:d,enableHomeAndEndKeys:!0,loopFocus:i,orientation:c,onHighlightedIndexChange:f,onMapChange:l,disabledIndices:Yr})})});pb.displayName=`TabsList`;var mb={variant:`segmented`,size:`base`},hb={scrollStart:`Scroll tabs left`,scrollEnd:`Scroll tabs right`};function gb({tabs:e,value:t,selectedValue:n,onValueChange:r,activateOnFocus:i,className:a,listClassName:o,indicatorClassName:s,labels:c,variant:l=mb.variant,size:u=mb.size}){let d=e??[];if(d.length===0)return null;let f=d[0]?.value,p=t!==void 0,m={value:p?t:void 0,defaultValue:p?void 0:n??f},h=l===`segmented`,g=l===`underline`,_=u===`sm`,v={...hb,...c},{ref:y,isOverflowing:b,canScrollStart:x,canScrollEnd:S}=xb(!0,d.map(e=>e.value).join(`|`)),C=bb(y,b);return(0,J.jsxs)(qy,{...m,className:q(`relative isolate min-w-0 font-medium`,h&&(_?`rounded-md`:`rounded-lg`)+` ring ring-kumo-hairline/70`,a),onValueChange:e=>{r?.(String(e))},children:[h&&(0,J.jsx)(`div`,{className:q(`absolute inset-x-0 top-1/2 z-0 -translate-y-1/2 rounded-lg bg-kumo-recessed`,_?`h-6.5`:`h-9`)}),(0,J.jsxs)(pb,{ref:y,activateOnFocus:i,"data-overflowing":b?``:void 0,"data-overflow-start":x?``:void 0,"data-overflow-end":S?``:void 0,...C(),className:q(`kumo-tabs-list relative flex min-w-0 shrink scroll-px-(--scroll-fade-width) items-stretch overflow-x-auto overflow-y-hidden [--scroll-fade-width:3rem]`,h&&`rounded-lg bg-kumo-recessed px-0.5`,h&&(_?`h-6.5 rounded-md`:`h-9`),b&&`cursor-grab active:cursor-grabbing`,g&&`gap-4 border-b border-kumo-hairline pb-2`,g&&(_?`h-6.5`:`h-7.5`),o),children:[d.map(e=>(0,J.jsx)(Qy,{"data-kumo-component":`Tabs`,"data-kumo-part":`tab`,value:e.value,render:e.render,nativeButton:e.nativeButton,onClick:e=>{e.currentTarget.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`})},className:q(`relative z-2 flex items-center rounded bg-transparent whitespace-nowrap focus:ring-kumo-focus/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand`,b?`cursor-grab active:cursor-grabbing`:`cursor-pointer`,_?`text-xs`:`text-base`,h&&`my-0.5 text-kumo-subtle hover:text-kumo-default focus-visible:ring-inset aria-selected:text-kumo-default`,h&&(_?`rounded-sm px-2`:`rounded-md px-2.5`),g&&`text-kumo-subtle hover:bg-kumo-tint hover:text-kumo-default aria-selected:font-medium aria-selected:text-kumo-default aria-selected:hover:bg-kumo-tint`,g&&(_?`px-1.5 py-2.5`:`px-2 py-3`),e.className),children:e.label},e.value)),(0,J.jsx)(cb,{render:e=>(0,J.jsx)(`div`,{...e,className:q(`absolute left-0 z-1`,`w-(--active-tab-width) translate-x-(--active-tab-left) transition-all duration-200`,h&&q(`top-(--active-tab-top) h-(--active-tab-height) bg-kumo-base shadow-sm ring ring-kumo-line`,_?`rounded`:`rounded-md`),g&&`bottom-0 h-0.5 bg-kumo-brand`,s)})})]}),h&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(_b,{side:`start`,visible:x,variant:l,size:u,label:v.scrollStart,onClick:()=>vb(y,`start`)}),(0,J.jsx)(_b,{side:`end`,visible:S,variant:l,size:u,label:v.scrollEnd,onClick:()=>vb(y,`end`)})]})]})}function _b({side:e,visible:t,variant:n,size:r,label:i,onClick:a}){let o=e===`start`,s=n===`segmented`;return(0,J.jsx)(`button`,{type:`button`,"data-kumo-component":`Tabs`,"data-kumo-part":`overflow-control`,"data-side":e,"aria-label":i,"aria-hidden":!t,tabIndex:t?0:-1,onClick:a,className:q(`absolute inset-y-0 z-3 flex items-center border-0 bg-transparent p-0 transition-opacity duration-150 focus:outline-none focus-visible:[&>span]:ring-2 focus-visible:[&>span]:ring-kumo-brand`,o?`left-0 justify-start bg-linear-to-r`:`right-0 justify-end bg-linear-to-l`,t?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0`,s?`from-kumo-recessed via-kumo-recessed/95 to-transparent`:`from-kumo-base via-kumo-base/95 to-transparent`,s&&(r===`sm`?`w-8 rounded-md`:`w-10 rounded-lg`),!s&&`w-8`),children:(0,J.jsx)(`span`,{className:q(`flex items-center justify-center text-kumo-subtle transition-colors hover:text-kumo-default`,r===`sm`?`size-5`:`size-6`,s?r===`sm`?`rounded-sm`:`rounded-md`:`rounded`,o?`ml-1`:`mr-1`),children:(0,J.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,className:`size-3.5`,"aria-hidden":`true`,children:(0,J.jsx)(`path`,{d:o?`M9.25 4.25L5.75 8L9.25 11.75`:`M6.75 4.25L10.25 8L6.75 11.75`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`})})})})}function vb(e,t){let n=e.current;if(!n)return;let r=Array.from(n.querySelectorAll(`[data-kumo-part="tab"]`)),i=yb(n.clientWidth,r);n.scrollBy({left:t===`start`?-i:i,behavior:`smooth`})}function yb(e,t){let n=0;for(let r of t){let t=r.offsetWidth;if(n+t>e)return n||e;n+=t}return Math.max(80,Math.floor(e*.8))}function bb(e,t){let n=(0,v.useRef)(null),r=(0,v.useRef)(!1);return()=>({onPointerDownCapture:i=>{let a=e.current;a&&t&&i.pointerType===`mouse`&&i.button===0&&(n.current={pointerId:i.pointerId,startX:i.clientX,scrollLeft:a.scrollLeft,dragging:!1},r.current=!1)},onPointerMoveCapture:i=>{let a=e.current,o=n.current;if(!a||!t||!o||o.pointerId!==i.pointerId)return;let s=i.clientX-o.startX;if(!o.dragging){if(Math.abs(s)<=3)return;o.dragging=!0,r.current=!0,a.setPointerCapture(i.pointerId)}i.preventDefault(),a.scrollLeft=o.scrollLeft-s},onPointerUpCapture:t=>{let i=e.current,a=n.current;i&&a&&a.pointerId===t.pointerId&&(n.current=null,i.hasPointerCapture(t.pointerId)&&i.releasePointerCapture(t.pointerId),r.current&&window.setTimeout(()=>{r.current=!1},0))},onPointerCancelCapture:t=>{let r=e.current,i=n.current;r&&i&&i.pointerId===t.pointerId&&(n.current=null,r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId))},onClickCapture:e=>{r.current&&=(e.preventDefault(),e.stopPropagation(),!1)}})}function xb(e,t){let n=(0,v.useRef)(null),[r,i]=(0,v.useState)({isOverflowing:!1,canScrollStart:!1,canScrollEnd:!1});return(0,v.useLayoutEffect)(()=>{if(!e)return;let t=n.current;t&&i(e=>Sb(t,e))},[e,t]),(0,v.useEffect)(()=>{if(!e)return;let t=n.current;if(!t)return;let r=()=>{i(e=>Sb(t,e))},a=new ResizeObserver(r);a.observe(t);let o=new MutationObserver(r);return o.observe(t,{childList:!0,characterData:!0,subtree:!0}),t.addEventListener(`scroll`,r,{passive:!0}),r(),()=>{a.disconnect(),o.disconnect(),t.removeEventListener(`scroll`,r)}},[e]),{ref:n,...r}}function Sb(e,t){let n=Math.max(0,e.scrollWidth-e.clientWidth),r=Math.min(Math.max(0,e.scrollLeft),n),i={isOverflowing:n>1,canScrollStart:r>1,canScrollEnd:n-r>1};return t.isOverflowing===i.isOverflowing&&t.canScrollStart===i.canScrollStart&&t.canScrollEnd===i.canScrollEnd?t:i}var Cb={layout:{auto:{classes:``,description:`Auto table layout - columns resize based on content`},fixed:{classes:`table-fixed`,description:`Fixed table layout - columns have equal width, controlled via colgroup`}},variant:{default:{classes:`even:bg-kumo-elevated [--kumo-table-row-bg:var(--color-kumo-base)] even:[--kumo-table-row-bg:var(--color-kumo-elevated)]`,description:`Default row variant`},selected:{classes:`bg-kumo-tint [--kumo-table-row-bg:var(--color-kumo-tint)]`,description:`Selected row variant`}},sticky:{left:{classes:`sticky left-0`,description:`Pin column to the left edge of the scroll container`},right:{classes:`sticky right-0`,description:`Pin column to the right edge of the scroll container`}}},wb=(e,t)=>{let n=xr(Cb.sticky,e,`left`).classes,r=t===`head`?`z-2`:`z-1`,i=e===`right`?`before:-left-6`:`before:-right-6`,a=`before:pointer-events-none before:absolute before:inset-y-0 before:w-6`;return t===`cell`?q(n,r,`bg-(--kumo-table-row-bg)`,a,i,e===`right`?`before:bg-gradient-to-r before:from-transparent before:to-(--kumo-table-row-bg)`:`before:bg-gradient-to-l before:from-transparent before:to-(--kumo-table-row-bg)`):q(n,r,`bg-kumo-base group-data-[compact]/header:bg-kumo-elevated`,a,i,e===`right`?`before:bg-gradient-to-r before:from-transparent before:to-kumo-base group-data-[compact]/header:before:to-kumo-elevated`:`before:bg-gradient-to-l before:from-transparent before:to-kumo-base group-data-[compact]/header:before:to-kumo-elevated`)},Tb={layout:`auto`,variant:`default`},Eb=(0,v.forwardRef)(({layout:e=`auto`,...t},n)=>{let r=q(`isolate w-full`,xr(Cb.layout,e,Tb.layout).classes,`[&_td]:p-3`,`[&_th]:border-b [&_th]:border-kumo-fill [&_th]:p-3 [&_th]:text-base [&_th]:font-semibold`,`[&_th]:bg-kumo-base`,`text-left text-base text-kumo-default`,t.className);return(0,J.jsx)(`table`,{ref:n,...t,className:r})}),Db=(0,v.forwardRef)(({variant:e=`default`,sticky:t,...n},r)=>{let i=e===`compact`,a=q(`group/header`,i&&`text-xs text-kumo-strong [&_th]:bg-kumo-elevated [&_th]:py-2`,t&&`[&_th]:sticky [&_th]:top-0 [&_th]:z-1`,n.className);return(0,J.jsx)(`thead`,{ref:r,...n,className:a,...i&&{"data-compact":``}})}),Ob=(0,v.forwardRef)(({sticky:e,...t},n)=>{let r=q(`group relative`,e&&wb(e,`head`),t.className);return(0,J.jsx)(`th`,{ref:n,...t,className:r})}),kb=(0,v.forwardRef)(({variant:e=Tb.variant,...t},n)=>{let r=q(xr(Cb.variant,e,Tb.variant).classes,t.className);return(0,J.jsx)(`tr`,{ref:n,...t,className:r})}),Ab=(0,v.forwardRef)((e,t)=>(0,J.jsx)(`tbody`,{ref:t,...e})),jb=(0,v.forwardRef)(({sticky:e,...t},n)=>{let r=q(e&&wb(e,`cell`),t.className);return(0,J.jsx)(`td`,{ref:n,...t,className:r})}),Mb=(0,v.forwardRef)((e,t)=>(0,J.jsx)(`tfoot`,{ref:t,...e})),Nb=(0,v.forwardRef)((e,t)=>(0,J.jsx)(`button`,{ref:t,...e,type:`button`,"aria-label":`Resize column`,className:q(`invisible h-full group-hover:visible`,`w-[10px]`,`flex items-center justify-center`,`cursor-col-resize touch-none select-none`,`absolute top-0 right-0`,`m-0 bg-kumo-base p-0`,`focus-visible:ring-2 focus-visible:ring-kumo-brand`),children:(0,J.jsx)(`span`,{className:`h-5 w-[2px] rounded bg-kumo-hairline`})})),Pb=(0,v.forwardRef)(({checked:e,indeterminate:t,onCheckedChange:n,onValueChange:r,label:i,disabled:a,...o},s)=>(0,J.jsx)(jb,{ref:s,...o,className:q(`w-10 leading-none`,o.className),children:(0,J.jsx)(yh,{checked:e,indeterminate:t,onCheckedChange:(e,t)=>{n?.(e,t),r?.(e)},"aria-label":i??`Select row`,disabled:a,className:`relative before:absolute before:-inset-3 before:content-['']`})})),Fb=(0,v.forwardRef)(({checked:e,indeterminate:t,onCheckedChange:n,onValueChange:r,label:i,disabled:a,...o},s)=>(0,J.jsx)(Ob,{ref:s,...o,className:q(`w-10 leading-none`,o.className),children:(0,J.jsx)(yh,{checked:e,indeterminate:t,onCheckedChange:(e,t)=>{n?.(e,t),r?.(e)},"aria-label":i??`Select all rows`,disabled:a,className:`relative before:absolute before:-inset-3 before:content-['']`})}));Eb.displayName=`Table`,Ab.displayName=`Table.Body`,Ob.displayName=`Table.Head`,kb.displayName=`Table.Row`,jb.displayName=`Table.Cell`,Mb.displayName=`Table.Footer`,Db.displayName=`Table.Header`,Nb.displayName=`Table.ResizeHandle`,Pb.displayName=`Table.CheckCell`,Fb.displayName=`Table.CheckHead`;var Q=Object.assign(Eb,{Header:Db,Head:Ob,Row:kb,Body:Ab,Cell:jb,CheckCell:Pb,CheckHead:Fb,Footer:Mb,ResizeHandle:Nb}),Ib={size:{sm:{classes:`text-sm h-10 gap-0.5`,description:`Compact breadcrumbs for dense UIs`},base:{classes:`text-base h-12 gap-1`,description:`Default breadcrumbs size`}}},Lb={size:`base`};function Rb({size:e=Lb.size}={}){return q(`group mr-4 flex min-w-0 grow items-center overflow-hidden whitespace-nowrap`,xr(Ib.size,e,Lb.size).classes)}var zb=({href:e,icon:t,children:n})=>{let r=jr();return(0,J.jsxs)(r,{"data-kumo-component":`Breadcrumbs`,"data-kumo-part":`link`,to:e,className:`flex shrink-0 items-center gap-1 whitespace-nowrap text-kumo-subtle no-underline`,children:[!!t&&(0,J.jsx)(`span`,{className:`flex shrink-0 items-center`,children:t}),(0,J.jsx)(`span`,{children:n})]})};function Bb({children:e,icon:t,loading:n}){return n?(0,J.jsxs)(`div`,{className:`flex w-[125px] min-w-0 items-center gap-1`,children:[t&&(0,J.jsx)(`span`,{className:`flex shrink-0 items-center`,children:t}),(0,J.jsx)(pv,{})]}):(0,J.jsxs)(`div`,{className:`flex max-w-full min-w-0 items-center gap-1 font-medium`,"aria-current":`page`,children:[t&&(0,J.jsx)(`span`,{className:`flex shrink-0 items-center`,children:t}),(0,J.jsx)(`span`,{className:`truncate`,children:e})]})}function Vb(){return(0,J.jsx)(`span`,{className:`flex shrink-0 items-center text-kumo-inactive`,"aria-hidden":`true`,children:(0,J.jsx)(`svg`,{width:`24`,height:`24`,fill:`none`,viewBox:`0 0 24 24`,children:(0,J.jsx)(`path`,{stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,d:`M10.75 8.75L14.25 12L10.75 15.25`})})})}function Hb(){return(0,J.jsx)(`span`,{className:`flex shrink-0 items-center text-kumo-subtle`,"aria-hidden":!0,children:`...`})}function Ub({text:e}){let{copied:t,runCopy:n}=uv();return(0,J.jsx)(zp,{variant:`ghost`,shape:`square`,size:`sm`,className:`opacity-0 transition-[opacity] group-hover:opacity-100`,onClick:async()=>{e&&await n(()=>navigator.clipboard.writeText(e),e=>console.error(`Failed to copy deeplink:`,e))},title:`Click to copy`,"aria-label":`Copy`,children:t?(0,J.jsx)(Xf,{weight:`bold`,className:`text-kumo-success`}):(0,J.jsx)(Qf,{weight:`regular`})})}function Wb({children:e,size:t=`base`,className:n}){let r=v.Children.toArray(e),i=Kb(r);return(0,J.jsxs)(`nav`,{className:q(Rb({size:t}),n),"aria-label":`breadcrumb`,children:[(0,J.jsx)(`div`,{className:`contents sm:hidden`,children:i}),(0,J.jsx)(`div`,{className:`hidden sm:contents`,children:r})]})}function Gb(e,t){return(0,v.isValidElement)(e)&&e.type===t}function Kb(e){let t=e.filter(e=>Gb(e,zb)||Gb(e,Bb));if(t.length<=2)return e;let[n,r]=t.slice(-2),i=[(0,J.jsx)(Hb,{},`kumo-breadcrumb-mobile-ellipsis`),(0,J.jsx)(Vb,{},`kumo-breadcrumb-mobile-separator-leading`),(0,v.cloneElement)(n,{key:`kumo-breadcrumb-mobile-parent`}),(0,J.jsx)(Vb,{},`kumo-breadcrumb-mobile-separator-trailing`),(0,v.cloneElement)(r,{key:`kumo-breadcrumb-mobile-current`})],a=e.filter(e=>!Gb(e,zb)&&!Gb(e,Bb)&&!Gb(e,Vb));return[...i,...a]}Wb.Link=zb,Wb.Current=Bb,Wb.Separator=Vb,Wb.Clipboard=Ub;var qb={size:{sm:{classes:`px-6 py-8 gap-4`,description:`Compact empty state for smaller containers`},base:{classes:`px-10 py-16 gap-6`,description:`Default empty state size`},lg:{classes:`px-12 py-20 gap-8`,description:`Large empty state for prominent placement`}}},Jb={size:`base`};function Yb({size:e=Jb.size}={}){return q(`flex w-full flex-col items-center rounded-xl border border-kumo-fill bg-kumo-control text-kumo-default`,xr(qb.size,e,Jb.size).classes)}function Xb({icon:e,title:t,description:n,commandLine:r,contents:i,size:a=`base`,className:o}){let{copied:s,runCopy:c}=uv(1e3),l=(0,v.useCallback)(async()=>{r&&await c(()=>navigator.clipboard.writeText(r),e=>console.warn(`Clipboard copy failed`,e))},[r,c]);return(0,J.jsxs)(`div`,{className:q(Yb({size:a}),o),children:[e,(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-2.5`,children:[n?(0,J.jsx)(ig,{variant:`heading`,size:`lg`,as:`h2`,children:t}):(0,J.jsx)(ig,{variant:`secondary`,size:`base`,as:`h2`,children:t}),n&&(0,J.jsx)(ig,{variant:`secondary`,size:`base`,DANGEROUS_className:`max-w-140 text-center text-balance leading-normal`,children:n})]}),r&&(0,J.jsxs)(`div`,{className:q(`relative inline-flex h-10 max-w-8/10 transform-gpu items-center gap-2 rounded-lg border border-white bg-kumo-overlay pr-2 pl-3 font-mono shadow-xs ring ring-kumo-line`),children:[(0,J.jsxs)(`span`,{className:`inline-flex min-w-0 items-baseline gap-2`,children:[(0,J.jsx)(`span`,{className:`text-kumo-subtle select-none`,children:`$`}),(0,J.jsx)(`span`,{className:`no-scrollbar overflow-scroll text-base whitespace-nowrap`,children:r})]}),(0,J.jsx)(zp,{className:`text-kumo-subtle`,size:`sm`,variant:`ghost`,shape:`square`,"aria-label":`Copy command`,onClick:l,children:s?(0,J.jsx)(Xf,{size:16,className:`animate-bounce-in text-kumo-success`}):(0,J.jsx)(Qf,{size:16})})]}),i]})}var Zb=v.createContext(void 0);Zb.displayName=`ScrollAreaRootContext`;function Qb(){let e=v.useContext(Zb);if(e===void 0)throw Error(`Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>.`);return e}function $b(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=`${t}${n===`x`?`Inline`:`Block`}`,a=parseFloat(r[`${i}Start`]);return n===`x`&&t===`margin`?a*2:a+parseFloat(r[`${i}End`])}var ex=`data-has-overflow-x`,tx=`data-has-overflow-y`,nx=`data-overflow-x-start`,rx=`data-overflow-x-end`,ix=`data-overflow-y-start`,ax=`data-overflow-y-end`,ox=e=>t=>t?{[e]:``}:null,sx={hasOverflowX:ox(ex),hasOverflowY:ox(tx),overflowXStart:ox(nx),overflowXEnd:ox(rx),overflowYStart:ox(ix),overflowYEnd:ox(ax),cornerHidden:()=>null},cx=`--scroll-area-corner-height`,lx=`--scroll-area-corner-width`,ux=`data-orientation`,dx={x:0,y:0},fx={width:0,height:0},px={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},mx={x:!0,y:!0,corner:!0},hx=v.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,{xStart:s,xEnd:c,yStart:l,yEnd:u}=gx(i),d=Qu(),f=Vl(),p=Vl(),{nonce:m,disableStyleElements:h}=Sv(),[g,_]=v.useState(!1),[y,b]=v.useState(!1),[x,S]=v.useState(!1),[C,w]=v.useState(!1),[T,E]=v.useState(!1),[D,O]=v.useState(fx),[k,A]=v.useState(fx),[j,M]=v.useState(px),[N,P]=v.useState(mx),F=v.useRef(null),I=v.useRef(null),L=v.useRef(null),R=v.useRef(null),z=v.useRef(null),B=v.useRef(null),ee=v.useRef(null),V=v.useRef(null),H=v.useRef(0),te=v.useRef(0),ne=v.useRef(0),U=v.useRef(0),re=v.useRef(`vertical`),ie=v.useRef(dx),ae=v.useRef(null);function oe(e){let t=e?S:b,n=e?f:p;t(!0),n.start(500,()=>{t(!1)})}let W=Z(e=>{let t=e.x-ie.current.x,n=e.y-ie.current.y;ie.current=e,n!==0&&oe(!0),t!==0&&oe(!1)}),G=Z(()=>{let e=I.current;e&&ae.current===null&&(ae.current=e.style.scrollSnapType,e.style.scrollSnapType=`none`)}),se=Z(e=>{if(e.button!==0||V.current!==null&&(re.current===`vertical`?z.current:B.current)?.hasPointerCapture(V.current))return;V.current=e.pointerId,H.current=e.clientY,te.current=e.clientX,re.current=e.currentTarget.getAttribute(ux);let t=I.current;t&&(ne.current=t.scrollTop,U.current=t.scrollLeft,G()),(re.current===`vertical`?z.current:B.current)?.setPointerCapture(e.pointerId)}),ce=Z(e=>{if(e.pointerId!==V.current)return;V.current=null,(re.current===`vertical`?S:b)(!1),ae.current!==null&&(I.current&&(I.current.style.scrollSnapType=ae.current),ae.current=null);let t=re.current===`vertical`?z.current:B.current;t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)}),le=Z(e=>{if(e.pointerId!==V.current)return;if(e.buttons%2==0){ce(e);return}let t=I.current;if(!t)return;let n=re.current===`vertical`,r=n?z.current:B.current,i=n?L.current:R.current;if(!r||!i)return;let a=n?`y`:`x`,o=$b(i,`padding`,a),s=$b(r,`margin`,a),c=n?r.offsetHeight:r.offsetWidth,l=(n?i.offsetHeight:i.offsetWidth)-c-o-s,u=n?e.clientY-H.current:e.clientX-te.current,d=l<=0?0:u/l,f=n?t.scrollHeight:t.scrollWidth,p=n?t.clientHeight:t.clientWidth,m=(n?ne.current:U.current)+d*(f-p);n?t.scrollTop=m:t.scrollLeft=m,e.preventDefault(),oe(n)});function ue(e){w(e.pointerType===`touch`)}function de(e){if(ue(e),e.pointerType!==`touch`){let t=X(F.current,e.target);_(t)}}let K=v.useMemo(()=>({scrolling:y||x,hasOverflowX:!N.x,hasOverflowY:!N.y,overflowXStart:j.xStart,overflowXEnd:j.xEnd,overflowYStart:j.yStart,overflowYEnd:j.yEnd,cornerHidden:N.corner}),[y,x,N.x,N.y,N.corner,j]),fe={role:`presentation`,onPointerEnter:de,onPointerMove:de,onPointerDown:ue,onPointerLeave(){_(!1)},style:{position:`relative`,[cx]:`${D.height}px`,[lx]:`${D.width}px`}},pe=mi(`div`,e,{state:K,ref:[t,F],props:[fe,o],stateAttributesMapping:sx}),me=v.useMemo(()=>({handlePointerDown:se,handlePointerMove:le,handlePointerUp:ce,handleScroll:W,disableViewportSnap:G,cornerSize:D,setCornerSize:O,thumbSize:k,setThumbSize:A,hasMeasuredScrollbar:T,setHasMeasuredScrollbar:E,touchModality:C,cornerRef:ee,scrollingX:y,scrollingY:x,hovering:g,setHovering:_,viewportRef:I,scrollbarYRef:L,scrollbarXRef:R,thumbYRef:z,thumbXRef:B,rootId:d,hiddenState:N,setHiddenState:P,overflowEdges:j,setOverflowEdges:M,viewportState:K,overflowEdgeThreshold:{xStart:s,xEnd:c,yStart:l,yEnd:u}}),[se,le,ce,W,G,D,k,T,C,y,x,g,d,N,j,K,s,c,l,u]);return(0,J.jsxs)(Zb.Provider,{value:me,children:[!h&&yv.getElement(m),pe]})});hx.displayName=`ScrollAreaRoot`;function gx(e){let t=typeof e==`number`?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var _x=v.createContext(void 0);_x.displayName=`ScrollAreaViewportContext`;function vx(){let e=v.useContext(_x);if(e===void 0)throw Error(`Base UI: ScrollAreaViewportContext missing. ScrollAreaViewport parts must be placed within <ScrollArea.Viewport>.`);return e}var yx=`--scroll-area-overflow-x-start`,bx=`--scroll-area-overflow-x-end`,xx=`--scroll-area-overflow-y-start`,Sx=`--scroll-area-overflow-y-end`,Cx=`--scroll-area-thumb-height`,wx=`--scroll-area-thumb-width`,Tx=[yx,bx,xx,Sx],Ex=!1;function Dx(){Ex||yc||(typeof CSS<`u`&&`registerProperty`in CSS&&Tx.forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),Ex=!0)}var Ox=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:p,setThumbSize:m,rootId:h,setHiddenState:g,hiddenState:_,setHasMeasuredScrollbar:y,handleScroll:b,touchModality:x,setHovering:S,setOverflowEdges:C,overflowEdgeThreshold:w,viewportState:T}=Qb(),E=td(),D=v.useRef(!0),O=v.useRef([NaN,NaN,NaN,NaN]),k=Vl(),A=Vl(),j=Z(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let h=e.scrollHeight,_=e.scrollWidth,v=e.clientHeight,b=e.clientWidth,x=e.scrollTop,S=e.scrollLeft,T=O.current,D=Number.isNaN(T[0]);if(T[0]=v,T[1]=h,T[2]=b,T[3]=_,D&&y(!0),h===0||_===0)return;let k=kx(e),A=k.y,j=k.x,M=b/_,N=v/h,P=Math.max(0,_-b),F=Math.max(0,h-v),I=0,L=0;j||(I=_v(E===`rtl`?-S:S,P),L=P-I);let R=A?0:_v(x,F),z=A?0:F-R,B=j?0:b,ee=A?0:v,V=0,H=0;!j&&!A&&(V=t?.offsetWidth||0,H=n?.offsetHeight||0);let te=f.width===0&&f.height===0,ne=te?V:0,U=te?H:0,re=$b(n,`padding`,`x`),ie=$b(t,`padding`,`y`),ae=$b(i,`margin`,`x`),oe=$b(r,`margin`,`y`),W=B-re-ae,G=ee-ie-oe,se=n?Math.min(n.offsetWidth-ne,W):W,ce=t?Math.min(t.offsetHeight-U,G):G,le=Math.max(16,se*M),ue=Math.max(16,ce*N);if(m(e=>Ax(e,{width:le,height:ue})),t&&r){let e=jx(r,Cx,x,F,h,ue,t.offsetHeight-ue-ie-oe);r.style.transform=`translate3d(0,${e}px,0)`}if(n&&i){let e=n.offsetWidth-le-re-ae,t=jx(i,wx,E===`rtl`?-S:S,P,_,le,e);i.style.transform=`translate3d(${E===`rtl`?-t:t}px,0,0)`}let de=[I,L,R,z];Tx.forEach((t,n)=>{e.style.setProperty(t,`${de[n]}px`)}),a&&p(e=>Ax(e,{width:V,height:H})),g(e=>Ax(e,k));let K={xStart:!j&&I>w.xStart,xEnd:!j&&L>w.xEnd,yStart:!A&&R>w.yStart,yEnd:!A&&z>w.yEnd};C(e=>Ax(e,K))});Y(()=>{Dx()},[]),Y(()=>{queueMicrotask(j)},[j,_,E,w.xStart,w.xEnd,w.yStart,w.yEnd]),Y(()=>{o.current?.matches(`:hover`)&&S(!0)},[o,S]),Y(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=O.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}j()});return n.observe(e),A.start(0,()=>{let t=Yl(e,{subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished.then(Jr))).then(j).catch(()=>{})}),()=>{n.disconnect(),A.clear()}},[j,o,A]);function M(){D.current=!1}let N={...h&&{"data-id":`${h}-viewport`},tabIndex:_.x&&_.y?-1:0,className:yv.className,style:{overflow:`scroll`},onScroll(){o.current&&(j(),(x||!D.current)&&b({x:o.current.scrollLeft,y:o.current.scrollTop}),k.start(100,()=>{D.current=!0}))},onWheel:M,onPointerMove:M,onPointerEnter:M,onKeyDown:M},P=mi(`div`,e,{ref:[t,o],state:T,props:[N,a],stateAttributesMapping:sx}),F=v.useMemo(()=>({computeThumbPosition:j}),[j]);return(0,J.jsx)(_x.Provider,{value:F,children:P})});Ox.displayName=`ScrollAreaViewport`;function kx(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Ax(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function jx(e,t,n,r,i,a,o){let s=Sh(n,0,r),c=n-s,l=Math.max(16,a*i/(i+Math.abs(c)));return e.style.setProperty(t,c?`${l}px`:``),(r?s/r*o:0)+(c>0?a-l:0)}var Mx=v.createContext(void 0);Mx.displayName=`ScrollAreaScrollbarContext`;function Nx(){let e=v.useContext(Mx);if(e===void 0)throw Error(`Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>.`);return e}var Px=v.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,scrollbarYRef:f,scrollbarXRef:p,viewportRef:m,thumbYRef:h,thumbXRef:g,handlePointerDown:_,handlePointerUp:y,handleScroll:b,disableViewportSnap:x,rootId:S,thumbSize:C,hasMeasuredScrollbar:w,viewportState:T}=Qb(),E=i===`vertical`,D={...T,hovering:c,scrolling:E?u:l,orientation:i},O=td(),k=!w&&!a,A=E?d.y:d.x,j=a||!A;v.useEffect(()=>{if(!j)return;let e=m.current,t=E?f.current:p.current;if(!t)return;function n(t){if(!e||t.ctrlKey)return;let n=!E,r=n?`scrollLeft`:`scrollTop`,i=n?t.deltaX:t.deltaY;if(i===0)return;let a=n?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,o=n&&O===`rtl`?-a:0,s=n&&O===`rtl`?0:a,c=e[r];c<=o&&i<0||c>=s&&i>0||(t.preventDefault(),e[r]=Math.min(s,Math.max(o,c+i)),b({x:e.scrollLeft,y:e.scrollTop}))}return Ic(t,`wheel`,n,{passive:!1})},[O,b,E,p,f,j,m]);let M={...S&&{"data-id":`${S}-scrollbar`},"aria-hidden":!0,onPointerDown(e){if(e.button!==0)return;let t=ss(e.nativeEvent),n=E?h.current:g.current;if(n&&X(n,t))return;let r=m.current;if(!r)return;let i=E?f.current:p.current;if(!n||!i)return;let a=E?`y`:`x`,o=$b(n,`margin`,a),s=$b(i,`padding`,a),c=E?n.offsetHeight:n.offsetWidth,l=i.getBoundingClientRect(),u=E?e.clientY-l.top-c/2-s+o/2:e.clientX-l.left-c/2-s+o/2,d=E?r.scrollHeight:r.scrollWidth,v=E?r.clientHeight:r.clientWidth,y=(E?i.offsetHeight:i.offsetWidth)-c-s-o;if(y<=0)return;let S=u/y,C=d-v;x(),E?r.scrollTop=S*C:r.scrollLeft=O===`rtl`?-(1-S)*C:S*C,b({x:r.scrollLeft,y:r.scrollTop}),_(e)},onMouseDown(e){e.preventDefault()},onPointerUp:y,onPointerCancel:y,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:k?`hidden`:void 0,...E?{top:0,bottom:`var(${cx})`,insetInlineEnd:0,[Cx]:`${C.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(${lx})`,bottom:0,[wx]:`${C.width}px`}}},N=mi(`div`,e,{ref:[t,E?f:p],state:D,props:[M,s],stateAttributesMapping:sx});return j?(0,J.jsx)(Mx.Provider,{value:i,children:N}):null});Px.displayName=`ScrollAreaScrollbar`;var Fx=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{computeThumbPosition:o}=vx(),{hasMeasuredScrollbar:s,viewportState:c}=Qb(),l=v.useRef(null),u=v.useRef(s);return Y(()=>{if(typeof ResizeObserver>`u`)return;let e=!1,t=new ResizeObserver(()=>{!e&&(e=!0,!u.current)||o()});return l.current&&t.observe(l.current),()=>{t.disconnect()}},[o]),mi(`div`,e,{ref:[t,l],state:c,stateAttributesMapping:sx,props:[{role:`presentation`,style:{minWidth:`fit-content`}},a]})});Fx.displayName=`ScrollAreaContent`;var Ix=v.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,scrollingX:d,scrollingY:f,hasMeasuredScrollbar:p}=Qb(),m=Nx(),h=m===`vertical`;return mi(`div`,e,{ref:[t,h?o:s],state:{scrolling:h?f:d,orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp:u,onPointerCancel:u,style:{visibility:p?void 0:`hidden`,...h?{height:`var(--scroll-area-thumb-height)`}:{width:`var(--scroll-area-thumb-width)`}}},a]})});Ix.displayName=`ScrollAreaThumb`;var Lx={variant:`sidebar`,collapsible:`icon`,side:`left`},Rx=`16.25rem`,zx=`57px`,Bx=`cubic-bezier(0.77, 0, 0.175, 1)`,Vx=250,Hx=50,Ux=768,Wx=`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function Gx(e,t,n,r=!0){let i=r&&n!==void 0,a=(0,v.useRef)(n),o=(0,v.useRef)(t),s=(0,v.useRef)(e),c=(0,v.useRef)(r),l=(0,v.useRef)(void 0),u=(0,v.useRef)(void 0);a.current=n,o.current=t;let d=(0,v.useCallback)(()=>{let e=l.current;e!==void 0&&(l.current=void 0,clearTimeout(u.current),a.current?.(e))},[]);return(0,v.useEffect)(()=>{let t=s.current!==e,n=c.current;if(s.current=e,c.current=r,!i)l.current=void 0,clearTimeout(u.current);else if(n&&t){if(l.current=e,o.current===0||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)d();else return u.current=setTimeout(d,o.current+Hx),()=>clearTimeout(u.current)}},[r,d,i,e]),d}function Kx(e=Ux){let t=`(max-width: ${e-1}px)`,n=(0,v.useCallback)(e=>{let n=window.matchMedia(t);return n.addEventListener(`change`,e),()=>n.removeEventListener(`change`,e)},[t]),r=(0,v.useCallback)(()=>window.matchMedia(t).matches,[t]),i=(0,v.useCallback)(()=>!1,[]);return(0,v.useSyncExternalStore)(n,r,i)}var qx=(0,v.createContext)(null);function Jx(){let e=(0,v.useContext)(qx);if(!e)throw Error(`useSidebar must be used within a Sidebar.Provider`);return e}var Yx=256,Xx=200,Zx=480;function Qx({defaultOpen:e=!0,open:t,onOpenChange:n,onOpenChangeComplete:r,variant:i=Lx.variant,side:a=Lx.side,collapsible:o=Lx.collapsible,resizable:s=!1,defaultWidth:c=Yx,minWidth:l=Xx,maxWidth:u=Zx,onWidthChange:d,contained:f=!1,peekable:p=!1,animationDuration:m=Vx,mobileBreakpoint:h,children:g,className:_,style:y}){let b=Kx(h),[x,S]=(0,v.useState)(!1),[C,w]=(0,v.useState)(c),[T,E]=(0,v.useState)(!1),[D,O]=(0,v.useState)(!1),k=b&&t!==void 0?t:x,A=(0,v.useCallback)(e=>{S(e),b&&t!==void 0&&n?.(e)},[b,t,n]),j=(0,v.useCallback)(e=>{let t=Math.min(u,Math.max(l,e));w(t),d?.(t)},[l,u,d]),[M,N]=(0,v.useState)(e),P=t??M,F=(0,v.useCallback)(e=>{let t=typeof e==`function`?e(P):e;n?.(t),N(t)},[n,P]),I=(0,v.useCallback)(()=>{b?A(!k):(O(!1),F(e=>!e))},[b,k,A,F]),L=(0,v.useCallback)(()=>{p&&!P&&!b&&O(!0)},[p,P,b]),R=(0,v.useCallback)(()=>{O(!1)},[]),z=D?`peeking`:P?`expanded`:`collapsed`,B=s?`${C}px`:Rx,ee=(0,v.useRef)(new Map),V=(0,v.useCallback)((e,t)=>{let n=ee.current;t?n.set(e,t):n.delete(e)},[]),H=(0,v.useCallback)((e,t={})=>{let{align:n=`auto`,behavior:r=`auto`}=t,i=ee.current.get(e);if(!i)return;let a=i.closest(`[data-sidebar="viewport"]`);if(!a)return;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect(),c=a.offsetHeight>0&&s.height>0?s.height/a.offsetHeight:1,l=(o.top-s.top)/c+a.scrollTop,u;if(n===`center`)u=l-(a.clientHeight-i.offsetHeight)/2;else if(n===`end`)u=l-(a.clientHeight-i.offsetHeight);else if(n===`auto`){let e=l+i.offsetHeight,t=a.scrollTop+a.clientHeight;if(l<a.scrollTop)u=l;else if(e>t)u=e-a.clientHeight;else return}else u=l;let d=Math.max(0,Math.min(u,a.scrollHeight-a.clientHeight)),f=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;a.scrollTo({top:d,behavior:f?`auto`:r})},[]),te=(0,v.useCallback)((e,t={})=>{let n=ee.current.get(e);if(!n)return;let r=n.closest(`[data-sidebar="viewport"]`);if(!r)return;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();i.top>=a.top&&i.bottom<=a.bottom||H(e,t)},[H]),ne=(0,v.useMemo)(()=>({state:z,open:P,setOpen:F,openMobile:k,setOpenMobile:A,isMobile:b,toggleSidebar:I,variant:i,side:a,collapsible:o,width:C,resizable:s,minWidth:l,maxWidth:u,isResizing:T,setIsResizing:E,setWidth:j,isPeeking:D,peekable:p,startPeek:L,stopPeek:R,contained:f,animationDuration:m,registerItem:V,scrollToItem:H,scrollItemIntoView:te}),[z,P,k,b,C,T,D]),U=Gx(P,m,r,!b),re=Gx(k,m,r,b),ie=b?re:U,ae=b?`transform`:`width`,oe=(0,v.useCallback)(e=>{let t=e.target;t.closest(`[data-sidebar-wrapper]`)===e.currentTarget&&t.dataset.sidebar===`sidebar`&&e.propertyName===ae&&ie()},[ie,ae]);return(0,J.jsx)(qx.Provider,{value:ne,children:(0,J.jsx)(`div`,{"data-sidebar-wrapper":``,"data-state":z,"data-side":a,onTransitionEnd:oe,style:{"--sidebar-width":B,"--sidebar-width-icon":zx,"--sidebar-animation-duration":`${m}ms`,"--sidebar-easing":Bx,...y},className:q(`group/sidebar-wrapper relative isolate flex w-full [--sidebar-active-bg:var(--color-kumo-tint)] [--sidebar-bg:var(--color-kumo-base)]`,!f&&!b&&`min-h-svh`,`has-data-[variant=inset]:bg-kumo-recessed`,T&&`select-none`,_),children:g})})}Qx.displayName=`Sidebar.Provider`;var $x=(0,v.forwardRef)(({className:e,contentClassName:t,children:n,fullScreenOnMobile:r=!1,...i},a)=>{let{state:o,open:s,isMobile:c,openMobile:l,setOpenMobile:u,side:d,variant:f,collapsible:p,isResizing:m,resizable:h,width:g,isPeeking:_,startPeek:y,stopPeek:b,contained:x}=Jx(),S=(0,v.useCallback)(e=>{e&&(l?e.removeAttribute(`inert`):e.setAttribute(`inert`,``))},[l]),C=(0,v.useCallback)(e=>{S(e),typeof a==`function`?a(e):a&&(a.current=e)},[a,S]),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(!1),D=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(!c||!l)return;let e=e=>{e.key===`Escape`&&(E.current=!0,u(!1))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[c,l,u]),(0,v.useEffect)(()=>{c&&(l?(w.current=document.activeElement,E.current=!1,requestAnimationFrame(()=>{(T.current?.querySelector(Wx)??T.current)?.focus()})):E.current&&w.current instanceof HTMLElement&&(w.current.focus(),E.current=!1,w.current=null))},[c,l]);let O=(0,v.useCallback)(e=>{!e.currentTarget.contains(e.relatedTarget)&&!D.current&&b()},[b]),k=(0,v.useCallback)(()=>{D.current=!0,y()},[y]),A=(0,v.useCallback)(()=>{D.current=!1,b()},[b]);if(p===`none`)return(0,J.jsx)(`aside`,{ref:a,"data-state":`expanded`,"data-side":d,"data-variant":f,"data-sidebar":`sidebar`,style:{width:`var(--sidebar-width)`,minWidth:`var(--sidebar-width)`,maxWidth:`var(--sidebar-width)`},className:q(`relative flex h-full shrink-0 grow-0 flex-col overflow-hidden bg-(--sidebar-bg) text-kumo-default`,f===`sidebar`&&(d===`left`?`border-r border-kumo-line`:`border-l border-kumo-line`),f===`floating`&&`m-2 rounded-lg border border-kumo-line shadow-lg`,e),...i,children:n});if(c)return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`div`,{"data-sidebar-backdrop":``,className:q(x?`absolute inset-0 z-40 bg-kumo-recessed`:`fixed inset-0 z-40 bg-kumo-recessed`,`transition-opacity duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,l&&!r?`opacity-80`:`pointer-events-none opacity-0`),onClick:()=>{E.current=!0,u(!1)},"aria-hidden":`true`}),(0,J.jsx)(`nav`,{ref:e=>{C(e),T.current=e},tabIndex:-1,"aria-label":`Navigation`,"aria-hidden":!l,"data-state":l?`expanded`:`collapsed`,"data-side":d,"data-variant":f,"data-collapsible":p,"data-sidebar":`sidebar`,"data-mobile":`true`,className:q(`group/sidebar inset-y-0 z-50 flex flex-col overflow-hidden`,x?`absolute`:`fixed`,r?`w-full`:`w-(--sidebar-width)`,`bg-(--sidebar-bg) text-kumo-default`,!r&&`border-r border-kumo-line`,`transition-transform duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,d===`left`&&`left-0`,d===`right`&&`right-0`,d===`left`&&(l?`translate-x-0`:`-translate-x-full`),d===`right`&&(l?`translate-x-0`:`translate-x-full`),e),...i,children:n})]});let j=p===`icon`?`var(--sidebar-width-icon)`:`0px`,M=h?`${g}px`:`var(--sidebar-width)`,N=s?M:j,P=s||_?M:j,F=f===`sidebar`?d===`left`?`border-r border-kumo-line`:`border-l border-kumo-line`:f===`floating`?`border border-kumo-line`:``;return(0,J.jsx)(`aside`,{ref:a,"data-state":o,"data-side":d,"data-variant":f,"data-collapsible":p,"data-sidebar":`sidebar`,style:{width:N},className:q(`group/sidebar relative h-full shrink-0 grow-0`,`overflow-visible`,`transition-[width] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,m&&`transition-none!`,f===`floating`&&`m-2 rounded-lg shadow-lg`,e),...i,children:(0,J.jsx)(Xd,{children:(()=>{let e=v.Children.toArray(n),r=e.filter(e=>v.isValidElement(e)&&e.type?.displayName===`Sidebar.Footer`),i=e.filter(e=>!v.isValidElement(e)||e.type?.displayName!==`Sidebar.Footer`);return(0,J.jsxs)(`div`,{"data-sidebar":`content-container`,style:{width:P},className:q(`flex h-full flex-col`,`min-w-0 overflow-hidden whitespace-nowrap`,`bg-(--sidebar-bg) text-kumo-default`,F,`transition-[width] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,m&&`transition-none!`,!s&&q(x?`absolute`:`fixed`,`inset-y-0 z-40`,d===`left`&&`left-0`,d===`right`&&`right-0`),s&&`relative`,t),children:[(0,J.jsx)(`div`,{"data-sidebar":`peek-zone`,className:`flex min-h-0 flex-1 flex-col`,onMouseEnter:k,onMouseLeave:A,onFocus:y,onBlur:O,children:i}),r]})})()})})});$x.displayName=`Sidebar`;var eS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`header`,className:q(`flex h-[58px] shrink-0 items-center gap-1 border-b border-kumo-line`,`overflow-hidden px-3`,e),...t}));eS.displayName=`Sidebar.Header`;var tS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsxs)(hx,{ref:r,"data-sidebar":`content`,className:q(`relative min-w-0 flex-1 overflow-hidden`,e),...n,children:[(0,J.jsx)(Ox,{tabIndex:-1,"data-sidebar":`viewport`,className:q(`h-full px-[11px] py-3 group-not-data-[state=collapsed]/sidebar:px-3.5`,`transition-[padding] duration-(--sidebar-animation-duration)`,`overflow-x-hidden!`,`[mask-image:linear-gradient(to_bottom,transparent_0,black_min(24px,var(--scroll-area-overflow-y-start,24px)),black_calc(100%-min(24px,var(--scroll-area-overflow-y-end,24px))),transparent_100%)]`),children:(0,J.jsx)(Fx,{className:`flex min-w-0! flex-col`,children:t})}),(0,J.jsx)(Px,{orientation:`vertical`,className:q(`flex w-1.5 touch-none p-px select-none`,`opacity-0 transition-opacity duration-150`,`data-[hovering]:opacity-100 data-[scrolling]:opacity-100`,`group-data-[state=collapsed]/sidebar:hidden`),children:(0,J.jsx)(Ix,{className:`flex-1 rounded-full bg-kumo-line`})})]}));tS.displayName=`Sidebar.Content`;var nS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`footer`,className:q(`flex h-12 shrink-0 items-center gap-4 overflow-hidden border-t border-kumo-line whitespace-nowrap`,`px-[11px] group-not-data-[state=collapsed]/sidebar:px-4`,`bg-(--sidebar-bg)`,`w-(--sidebar-width)`,`transition-[width,padding] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,`sticky bottom-0`,`bg-clip-padding group-data-[state=collapsed]/sidebar:w-(--sidebar-width-icon)`,`group-data-[state=collapsed]/sidebar:border-r group-data-[state=collapsed]/sidebar:border-kumo-line`,e),...t}));nS.displayName=`Sidebar.Footer`;var rS=[[`w-28`,`w-40`,`w-24`],[`w-24`,`w-36`,`w-32`]],iS=(0,v.forwardRef)(({className:e,label:t=`Loading`,...n},r)=>(0,J.jsx)(`div`,{ref:r,"data-sidebar":`loading`,role:`status`,"aria-label":t,className:q(`flex min-h-0 w-full flex-1 flex-col gap-4 px-2 py-3`,e),...n,children:rS.map((e,t)=>(0,J.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,J.jsx)(pv,{className:`mb-1 ml-2 h-2 w-16 rounded-full group-data-[state=collapsed]/sidebar:hidden`}),e.map((e,t)=>(0,J.jsxs)(`div`,{className:`flex min-h-8.5 items-center gap-3 rounded-lg px-3 group-data-[state=collapsed]/sidebar:justify-center group-data-[state=collapsed]/sidebar:px-0`,children:[(0,J.jsx)(pv,{className:`size-4.5 shrink-0 rounded-md`}),(0,J.jsx)(pv,{className:q(`h-2.5 rounded-full group-data-[state=collapsed]/sidebar:hidden`,e)})]},t))]},t))}));iS.displayName=`Sidebar.Loading`;var aS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsx)(`div`,{ref:r,"data-sidebar":`group`,className:q(`flex min-w-0 flex-col gap-y-px`,e),...n,children:t}));aS.displayName=`Sidebar.Group`;var oS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsx)(`div`,{ref:r,"data-sidebar":`group-label`,className:q(`grid overflow-hidden`,`transition-[grid-template-rows,margin,border-color] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`group-data-[mobile=true]/sidebar:transition-none`,`my-3 grid-rows-[0fr] border-b border-kumo-line`,`[[data-sidebar=group]:first-child_&]:my-0 [[data-sidebar=group]:first-child_&]:border-transparent`,`group-not-data-[state=collapsed]/sidebar:my-0 group-not-data-[state=collapsed]/sidebar:grid-rows-[1fr] group-not-data-[state=collapsed]/sidebar:border-transparent`,`group-data-[mobile=true]/sidebar:my-0 group-data-[mobile=true]/sidebar:grid-rows-[1fr] group-data-[mobile=true]/sidebar:border-transparent`,e),...n,children:(0,J.jsx)(`div`,{className:`min-h-0 min-w-0`,children:(0,J.jsx)(`div`,{className:q(`mt-4 mb-2 truncate px-3 text-sm font-medium text-kumo-subtle`,`[[data-sidebar=group]:first-child_&]:mt-2`),children:t})})}));oS.displayName=`Sidebar.GroupLabel`;var sS=(0,v.createContext)(!1),cS=(0,v.createContext)(!1),lS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`ul`,{ref:n,"data-sidebar":`menu`,className:q(`m-0 flex min-w-0 list-none flex-col items-stretch gap-y-px p-0`,e),...t}));lS.displayName=`Sidebar.Menu`;var uS=(0,v.forwardRef)(({className:e,children:t,itemId:n,...r},i)=>{let{registerItem:a}=Jx(),o=(0,v.useCallback)(e=>{n&&a(n,e),typeof i==`function`?i(e):i&&(i.current=e)},[n,i,a]);return(0,J.jsx)(sS.Provider,{value:!0,children:(0,J.jsx)(`li`,{ref:o,"data-sidebar":`menu-item`,"data-sidebar-item-id":n,className:q(`relative group-data-[state=collapsed]/sidebar:overflow-hidden`,e),...r,children:t})})});uS.displayName=`Sidebar.MenuItem`;var dS=(0,v.forwardRef)(({className:e,icon:t,active:n=!1,size:r=`base`,href:i,target:a,tooltip:o,itemId:s,children:c,...l},u)=>{let{state:d,peekable:f,registerItem:p}=Jx(),m=jr(),h=(0,v.useContext)(sS),g=(0,v.useCallback)(e=>{s&&!h&&p(s,e)},[s,h,p]),_=(0,v.useCallback)(e=>{s&&h&&p(s,e),typeof u==`function`?u(e):u&&(u.current=e)},[s,h,u,p]),y=t?v.isValidElement(t)?t:(0,J.jsx)(t,{className:q(`shrink-0 opacity-40`,r===`base`?`size-4`:`size-3.5`)}):null,b=(0,J.jsxs)(`div`,{className:q(`flex min-w-0 flex-1 items-center gap-3`,`translate-x-[-3px] group-not-data-[state=collapsed]/sidebar:translate-x-0`,`transition-transform duration-(--sidebar-animation-duration)`),children:[y,(0,J.jsx)(`span`,{className:q(`flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-left`),children:v.Children.map(c,e=>typeof e==`string`||typeof e==`number`?(0,J.jsx)(`span`,{className:`truncate`,children:e}):e)})]}),x=q(`group/menu-button relative flex w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg outline-none`,`before:absolute before:inset-x-0 before:-inset-y-px`,r===`base`&&`min-h-8.5 px-3 py-0 text-sm font-medium`,r===`sm`&&`min-h-7 px-2 py-0 text-sm`,`text-kumo-default`,`transition-[color,box-shadow,outline] duration-(--sidebar-animation-duration)`,!n&&`hover:bg-(--sidebar-active-bg)`,n&&`bg-(--sidebar-active-bg)`,`has-[[data-active]]:bg-transparent has-[[data-active]]:hover:bg-(--sidebar-active-bg)`,`focus:outline-none focus-visible:bg-(--sidebar-active-bg) focus-visible:text-kumo-strong`,e),S,C=h?s:void 0;S=i?(0,J.jsx)(m,{ref:_,...l,className:q(x,`no-underline!`),href:i,to:i,target:a,"data-active":n||void 0,"data-sidebar":`menu-button`,"data-sidebar-item-id":C,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-button-link`,"data-size":r,children:b}):(0,J.jsx)(`button`,{ref:_,type:`button`,className:x,"data-active":n||void 0,"data-sidebar":`menu-button`,"data-sidebar-item-id":C,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-button`,"data-size":r,...l,children:b});let w=d===`collapsed`&&!f;return o&&(S=(0,J.jsx)(Zd,{content:o,disabled:!w,side:`right`,render:S})),h?S:(0,J.jsx)(`li`,{ref:g,"data-sidebar":`menu-item`,"data-sidebar-item-id":s,className:`relative group-data-[state=collapsed]/sidebar:overflow-hidden`,children:S})});dS.displayName=`Sidebar.MenuButton`;var fS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`span`,{ref:n,"data-sidebar":`menu-badge`,className:q(`inline-flex shrink-0 items-center rounded-full border border-dashed border-kumo-line`,`px-1.5 py-0.5 text-[11px]/none font-medium text-kumo-strong select-none`,`group-data-[state=collapsed]/sidebar:hidden`,e),...t}));fS.displayName=`Sidebar.MenuBadge`;var pS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsxs)(`ul`,{ref:r,"data-sidebar":`menu-sub`,className:q(`relative m-0 flex min-w-0 list-none flex-col gap-y-px overflow-hidden p-0 pr-0 pl-7`,e),...n,children:[(0,J.jsx)(`li`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-y-px left-[19px] z-10 block w-px bg-kumo-line`}),t]}));pS.displayName=`Sidebar.MenuSub`;var mS=(0,v.forwardRef)(({className:e,children:t,...n},r)=>(0,J.jsx)(cS.Provider,{value:!0,children:(0,J.jsx)(`li`,{ref:r,"data-sidebar":`menu-sub-item`,className:q(`relative`,e),...n,children:t})}));mS.displayName=`Sidebar.MenuSubItem`;var hS=(0,v.forwardRef)(({className:e,active:t=!1,href:n,target:r,children:i,...a},o)=>{let s=jr(),c=(0,v.useContext)(cS),l=q(`group/menu-button relative flex min-h-8.5 w-full min-w-0 cursor-pointer items-center gap-2 rounded-lg px-3 py-0 text-sm font-medium outline-none`,`before:absolute before:inset-x-0 before:-inset-y-px`,`text-kumo-default transition-[color] duration-150`,!t&&`hover:bg-(--sidebar-active-bg)`,t&&`bg-(--sidebar-active-bg)`,`focus:outline-none focus-visible:bg-(--sidebar-active-bg) focus-visible:text-kumo-strong`,e),u=(0,J.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-left`,children:v.Children.map(i,e=>typeof e==`string`||typeof e==`number`?(0,J.jsx)(`span`,{className:`truncate`,children:e}):e)}),d;return d=n?(0,J.jsx)(s,{ref:o,...a,className:q(l,`no-underline!`),href:n,to:n,target:r,"data-active":t||void 0,"data-sidebar":`menu-sub-button`,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-sub-button-link`,children:u}):(0,J.jsx)(`button`,{ref:o,type:`button`,className:l,"data-active":t||void 0,"data-sidebar":`menu-sub-button`,"data-kumo-component":`Sidebar`,"data-kumo-part":`menu-sub-button`,...a,children:u}),c?d:(0,J.jsx)(`li`,{"data-sidebar":`menu-sub-item`,className:`relative`,children:d})});hS.displayName=`Sidebar.MenuSubButton`;var gS=(0,v.forwardRef)(({className:e,...t},n)=>(0,J.jsx)(`div`,{ref:n,"data-sidebar":`separator`,className:q(`my-3 px-2`,e),...t,children:(0,J.jsx)(`div`,{className:`border-b border-kumo-line`})}));gS.displayName=`Sidebar.Separator`;function _S({className:e}){let{open:t}=Jx();return(0,J.jsxs)(`svg`,{width:`18`,height:`18`,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,focusable:`false`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:q(`shrink-0`,e),children:[(0,J.jsx)(`path`,{d:`M21.25 6.72v10.56a2.97 2.97 0 0 1-2.97 2.97H5.72a2.97 2.97 0 0 1-2.97-2.97V6.72a2.97 2.97 0 0 1 2.97-2.97h12.56a2.97 2.97 0 0 1 2.97 2.97`}),(0,J.jsx)(`path`,{d:`M6.25 7.25v9.5`,className:q(`transition-transform duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,t?`translate-x-px`:`translate-x-[10.5px]`)})]})}_S.displayName=`Sidebar.PanelIcon`;var vS=(0,v.forwardRef)(({className:e,children:t,onClick:n,...r},i)=>{let{open:a,toggleSidebar:o}=Jx();return(0,J.jsx)(`button`,{ref:i,type:`button`,"data-sidebar":`trigger`,"data-kumo-component":`Sidebar`,"data-kumo-part":`trigger`,"aria-expanded":a,"aria-label":a?`Collapse sidebar`:`Expand sidebar`,className:q(`flex size-8.5 shrink-0 cursor-pointer items-center justify-center rounded-lg`,`text-kumo-subtle hover:bg-(--sidebar-active-bg) hover:text-kumo-default`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset`,e),onClick:e=>{n?.(e),o()},...r,children:t??(0,J.jsx)(_S,{})})});vS.displayName=`Sidebar.Trigger`;var yS=(0,v.forwardRef)(({className:e,onClick:t,...n},r)=>{let{setOpenMobile:i}=Jx();return(0,J.jsx)(zp,{ref:r,variant:`ghost`,shape:`square`,size:`sm`,"data-sidebar":`close`,"data-kumo-component":`Sidebar`,"data-kumo-part":`close`,"aria-label":`Close navigation`,className:q(`shrink-0`,e),onClick:e=>{t?.(e),i(!1)},...n,children:(0,J.jsx)(wp,{size:18})})});yS.displayName=`Sidebar.Close`;var bS=(0,v.forwardRef)(({className:e,...t},n)=>{let{toggleSidebar:r}=Jx();return(0,J.jsx)(`button`,{ref:n,type:`button`,"data-sidebar":`rail`,"data-kumo-component":`Sidebar`,"data-kumo-part":`rail`,"aria-label":`Toggle sidebar`,tabIndex:-1,className:q(`absolute inset-y-0 z-1 hidden w-4 -translate-x-1/2 cursor-pointer transition-all`,`after:absolute after:inset-y-0 after:left-1/2 after:w-0.5`,`hover:after:bg-kumo-brand/20`,`group-data-[side=left]/sidebar-wrapper:right-0`,`group-data-[side=right]/sidebar-wrapper:left-0`,`sm:flex`,e),onClick:r,...t})});bS.displayName=`Sidebar.Rail`;var xS=(0,v.forwardRef)(({className:e,...t},n)=>{let{side:r,resizable:i,setIsResizing:a,setWidth:o,setOpen:s,open:c,minWidth:l,width:u,maxWidth:d}=Jx(),f=(0,v.useRef)(0),p=(0,v.useRef)(0),m=(0,v.useRef)(!1);return i?(0,J.jsx)(`button`,{ref:n,type:`button`,"aria-label":`Resize sidebar`,tabIndex:0,"data-sidebar":`resize-handle`,className:q(`absolute inset-y-0 z-2 hidden w-3 cursor-col-resize sm:block`,`after:absolute after:inset-y-0 after:w-0.5`,`after:bg-transparent after:transition-colors`,`hover:after:bg-kumo-hairline focus-visible:after:bg-kumo-hairline active:after:bg-kumo-hairline`,`focus:outline-none`,r===`left`&&`right-0 after:right-0`,r===`right`&&`left-0 after:left-0`,e),onPointerDown:e=>{e.preventDefault(),a(!0),f.current=e.clientX,m.current=!c;let t=e.currentTarget.closest(`[data-sidebar-wrapper]`)?.querySelector(`[data-sidebar='sidebar']`);p.current=t?.getBoundingClientRect().width??0;let n=()=>{a(!1),document.removeEventListener(`pointermove`,i),document.removeEventListener(`pointerup`,u)},i=e=>{let t=r===`left`?e.clientX-f.current:f.current-e.clientX,n=p.current+t;m.current?n>=l&&(m.current=!1,s(!0),o(n)):n<l?(s(!1),m.current=!0):o(n)},u=()=>{n()};document.addEventListener(`pointermove`,i),document.addEventListener(`pointerup`,u)},onKeyDown:e=>{let t=r===`left`?`ArrowRight`:`ArrowLeft`,n=r===`left`?`ArrowLeft`:`ArrowRight`;if(e.key===t)e.preventDefault(),c?o(Math.min(u+10,d)):(s(!0),o(l));else if(e.key===n){e.preventDefault();let t=u-10;t<l?s(!1):o(t)}else e.key===`Home`?(e.preventDefault(),s(!1)):e.key===`End`&&(e.preventDefault(),s(!0),o(d))},...t}):null});xS.displayName=`Sidebar.ResizeHandle`;var SS=(e,{isMobile:t,openMobile:n,state:r})=>e&&(t?n:r!==`collapsed`),CS=(0,v.createContext)({contentId:``,isOpen:!0,isCollapsible:!1,autoScrollOnOpen:!1,toggle:()=>{},completeOpenChange:()=>{}}),wS=(0,v.forwardRef)(({defaultOpen:e=!1,open:t,onOpenChange:n,onOpenChangeComplete:r,autoScrollOnOpen:i=!1,className:a,children:o,...s},c)=>{let l=Jx(),{animationDuration:u}=l,[d,f]=(0,v.useState)(e),p=t??d,m=SS(p,l),h=(0,v.useId)(),g=(0,v.useRef)(!1),_=(0,v.useCallback)(()=>{let e=!p;f(e),n?.(e),g.current=!1},[p,n]),y=Gx(m,u,r),b=(0,v.useMemo)(()=>({contentId:h,isOpen:p,isCollapsible:!0,autoScrollOnOpen:i,toggle:_,completeOpenChange:y}),[h,p,i,_,y]),x=(0,v.useCallback)(e=>{!p&&e.target.matches(`:focus-visible`)&&(g.current=!0,f(!0),n?.(!0))},[p,n]),S=(0,v.useCallback)(e=>{g.current&&!e.currentTarget.contains(e.relatedTarget)&&!e.currentTarget.querySelector(`[data-active]`)&&(g.current=!1,f(!1),n?.(!1))},[n]);return(0,J.jsx)(CS.Provider,{value:b,children:(0,J.jsx)(`div`,{ref:c,"data-open":p||void 0,className:q(`min-w-0`,a),onFocus:x,onBlur:S,...s,children:o})})});wS.displayName=`Sidebar.Collapsible`;function TS({render:e}){let{contentId:t,isOpen:n,toggle:r}=(0,v.useContext)(CS);return v.cloneElement(e,{"aria-expanded":n,"aria-controls":t,"data-open":n||void 0,onClick:t=>{let n=e.props.onClick;n?.(t),r()}})}TS.displayName=`Sidebar.CollapsibleTrigger`;var ES=(0,v.forwardRef)(({className:e,children:t,onTransitionEnd:n,...r},i)=>{let{contentId:a,isOpen:o,autoScrollOnOpen:s,completeOpenChange:c}=(0,v.useContext)(CS),l=Jx(),{animationDuration:u}=l,d=(0,v.useRef)(null),f=SS(o,l);(0,v.useEffect)(()=>{if(!f||!s)return;let e=window.setTimeout(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;d.current?.scrollIntoView({block:`nearest`,behavior:e?`auto`:`smooth`})},u);return()=>window.clearTimeout(e)},[f,s,u]);let p=(0,v.useCallback)(e=>{e&&(f?e.removeAttribute(`inert`):e.setAttribute(`inert`,``))},[f]),m=(0,v.useCallback)(e=>{d.current=e,p(e),typeof i==`function`?i(e):i&&(i.current=e)},[i,p]),h=(0,v.useCallback)(e=>{n?.(e),e.target===e.currentTarget&&e.propertyName===`grid-template-rows`&&c()},[c,n]);return(0,J.jsx)(`div`,{ref:m,id:a,role:`region`,"aria-hidden":!f,onTransitionEnd:h,className:q(`grid`,`transition-[grid-template-rows] duration-(--sidebar-animation-duration) ease-(--sidebar-easing)`,`motion-reduce:transition-none`,f?`grid-rows-[1fr]`:`grid-rows-[0fr]`,e),...r,children:(0,J.jsx)(`div`,{className:`overflow-hidden`,children:t})})});ES.displayName=`Sidebar.CollapsibleContent`;function DS({className:e}){let{isOpen:t,isCollapsible:n}=(0,v.useContext)(CS);return(0,J.jsx)(Kf,{size:12,weight:`bold`,className:q(`ml-auto shrink-0 opacity-40 transition-[transform,rotate,opacity] duration-200 group-hover/menu-button:opacity-100`,n&&t&&`rotate-90`,`group-data-[state=collapsed]/sidebar:hidden`,e)})}DS.displayName=`Sidebar.MenuChevron`;var OS=(0,v.createContext)(``),kS=(0,v.forwardRef)(({activeKey:e,direction:t=`left`,className:n,children:r,...i},a)=>{let o=v.Children.toArray(r).findIndex(t=>v.isValidElement(t)&&t.props.value===e),s=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,c=o>0?`-${o*100}%`:`0%`;return(0,J.jsx)(OS.Provider,{value:e,children:(0,J.jsx)(`div`,{ref:a,"data-sidebar":`sliding-views`,className:q(`flex min-h-0 max-w-(--sidebar-width) flex-1 overflow-hidden`,n),...i,children:(0,J.jsx)(`div`,{className:`flex min-h-0 w-full shrink-0`,style:{transform:`translateX(${c})`,transition:s?`none`:`transform var(--sidebar-animation-duration) var(--sidebar-easing)`},children:r})})})});kS.displayName=`Sidebar.SlidingViews`;var AS=(0,v.forwardRef)(({value:e,className:t,children:n,...r},i)=>{let a=(0,v.useContext)(OS)===e,o=(0,v.useCallback)(e=>{e&&(a?e.removeAttribute(`inert`):e.setAttribute(`inert`,``))},[a]),s=(0,v.useCallback)(e=>{o(e),typeof i==`function`?i(e):i&&(i.current=e)},[i,o]);return(0,J.jsx)(`div`,{ref:s,"data-sidebar":`sliding-view`,"data-value":e,"aria-hidden":!a,className:q(`flex min-h-0 w-full shrink-0 flex-col`,!a&&`pointer-events-none`,t),...r,children:n})});AS.displayName=`Sidebar.SlidingView`;var jS=Object.assign($x,{Provider:Qx,Header:eS,Content:tS,Footer:nS,Loading:iS,Group:aS,GroupLabel:oS,Menu:lS,MenuItem:uS,MenuButton:dS,MenuBadge:fS,MenuSub:pS,MenuSubItem:mS,MenuSubButton:hS,Separator:gS,Trigger:vS,Close:yS,Rail:bS,ResizeHandle:xS,MenuChevron:DS,Collapsible:wS,CollapsibleTrigger:TS,CollapsibleContent:ES,SlidingViews:kS,SlidingView:AS}),MS=_(),NS=q(`text-[13px] [&_td]:px-3 [&_td]:py-1.5 [&_tbody_tr]:border-t [&_tbody_tr]:border-kumo-hairline`,`[&_th]:px-3 [&_th]:py-1.5 [&_th]:text-xs [&_th]:font-medium [&_th]:whitespace-nowrap [&_th]:text-kumo-subtle`),PS=`[&_td]:whitespace-nowrap`;function FS({children:e,className:t}){return(0,J.jsx)(lv,{className:q(`data-table overflow-x-auto p-0`,t),children:(0,J.jsx)(Q,{className:q(NS,PS),children:e})})}function IS({children:e,wrap:t=!1}){return(0,J.jsx)(`div`,{className:`nested overflow-x-auto rounded-md border border-kumo-hairline bg-kumo-base`,children:(0,J.jsx)(Q,{className:q(NS,!t&&PS),children:e})})}function LS({colSpan:e,children:t}){return(0,J.jsx)(Q.Row,{children:(0,J.jsx)(Q.Cell,{colSpan:e,className:`text-kumo-subtle`,children:t})})}var RS=`table-link cursor-pointer text-left font-medium text-kumo-link hover:underline focus-visible:outline-2 focus-visible:outline-kumo-brand rounded-sm`,zS=`font-mono text-xs`;function BS({message:e,title:t}){return(0,J.jsx)(Zp,{variant:`error`,size:`sm`,role:`alert`,title:t,description:e})}function VS(e){let t={name:``,path:``,children:new Map};for(let n of e){let e=n.path.split(`/`).filter(Boolean),r=t;e.forEach((t,i)=>{let a=i===e.length-1,o=e.slice(0,i+1).join(`/`),s=r.children.get(t);s||(s={name:t,path:o},r.children.set(t,s)),!a||n.kind===`directory`?s.children??=new Map:s.size=n.size,r=s})}return t}function HS(e){return[...e.children?.values()??[]].sort((e,t)=>Number(!e.children)-Number(!t.children)||e.name.localeCompare(t.name,void 0,{numeric:!0}))}function US(e){return e===void 0?``:e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}var WS=40;function GS({entries:e,rootLabel:t,readFile:n,selected:r,onSelect:i,emptyMessage:a=`No files.`}){let o=(0,v.useMemo)(()=>VS(e),[e]),s=e.filter(e=>e.kind!==`directory`).length,[c,l]=(0,v.useState)(),u=r??c,d=i??l,[f,p]=(0,v.useState)(()=>new Set(s<WS?[]:e.flatMap(e=>{let t=e.path.split(`/`);return t.length>2?[t.slice(0,2).join(`/`)]:[]}))),m=e=>p(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n});if(!e.length)return(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:a});let h=(e,t)=>{let n=!!e.children,r=n&&!f.has(e.path),i=n?r?rp:np:ep;return(0,J.jsxs)(`li`,{children:[(0,J.jsxs)(`button`,{type:`button`,className:`flex w-full items-center gap-1.5 rounded px-1.5 py-0.5 text-left font-mono text-xs hover:bg-kumo-tint ${e.path===u?`bg-kumo-tint font-semibold text-kumo-strong`:`text-kumo-default`}`,style:{paddingLeft:`${t*.9+.375}rem`},title:e.path,"aria-expanded":n?r:void 0,"aria-current":e.path===u?`true`:void 0,onClick:()=>n?m(e.path):d(e.path),children:[n?(0,J.jsx)(Kf,{"aria-hidden":!0,className:`size-3 shrink-0 text-kumo-subtle transition-transform ${r?`rotate-90`:``}`}):(0,J.jsx)(`span`,{className:`size-3 shrink-0`}),(0,J.jsx)(i,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-kumo-subtle`}),(0,J.jsx)(`span`,{className:`truncate`,children:e.name}),!n&&e.size!==void 0?(0,J.jsx)(`span`,{className:`ml-auto shrink-0 pl-2 text-[11px] font-normal text-kumo-subtle tabular-nums`,children:US(e.size)}):null]}),r?(0,J.jsx)(`ul`,{children:HS(e).map(e=>h(e,t+1))}):null]},e.path)},g=e.find(e=>e.path===u);return(0,J.jsxs)(`div`,{className:`file-explorer grid min-w-0 overflow-hidden rounded-lg border border-kumo-line bg-kumo-base md:grid-cols-[minmax(14rem,18rem)_1fr]`,children:[(0,J.jsxs)(`div`,{className:`max-h-[calc(100vh-9rem)] overflow-auto border-b border-kumo-line p-1.5 md:border-r md:border-b-0`,children:[(0,J.jsxs)(`p`,{className:`flex items-center justify-between px-1.5 pb-1 text-[11px] font-medium text-kumo-subtle`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono`,children:t??`Files`}),(0,J.jsxs)(`span`,{className:`tabular-nums`,children:[s,` `,s===1?`file`:`files`]})]}),(0,J.jsx)(`ul`,{"aria-label":t??`Files`,children:HS(o).map(e=>h(e,0))})]}),(0,J.jsx)(qS,{path:g?g.path:void 0,size:g?.size,readFile:n})]})}var KS=262144;function qS({path:e,size:t,readFile:n}){let[r,i]=(0,v.useState)({});if((0,v.useEffect)(()=>{if(!e||!n)return;let t=!0,r;return n(e).then(async e=>{let t=e.headers.get(`content-type`)??``,n=new Uint8Array(await e.arrayBuffer());if(t.startsWith(`image/`))return r=URL.createObjectURL(new Blob([n],{type:t})),{kind:`image`,url:r};let i=n.subarray(0,KS);return i.subarray(0,8e3).includes(0)?{kind:`binary`}:{kind:`text`,text:new TextDecoder().decode(i),truncated:n.byteLength>KS}}).then(n=>{t&&i({path:e,preview:n})}).catch(n=>{t&&i({path:e,error:n instanceof Error?n.message:`Unable to read file`})}),()=>{t=!1,r&&URL.revokeObjectURL(r)}},[e,n]),!e)return(0,J.jsx)(`div`,{className:`flex min-h-32 items-center justify-center p-4 text-[13px] text-kumo-subtle`,children:`Select a file to preview it.`});let a=r.path===e?r:{};return(0,J.jsxs)(`section`,{"aria-label":`Preview of ${e}`,className:`flex min-w-0 flex-col`,children:[(0,J.jsxs)(`header`,{className:`flex items-center gap-2 border-b border-kumo-line px-3 py-1.5`,children:[(0,J.jsx)(`span`,{className:`truncate font-mono text-xs text-kumo-strong`,title:e,children:e}),(0,J.jsx)(`span`,{className:`ml-auto shrink-0 text-[11px] text-kumo-subtle tabular-nums`,children:US(t)})]}),(0,J.jsx)(`div`,{className:`max-h-[calc(100vh-9rem)] min-h-32 overflow-auto`,children:n?a.error?(0,J.jsx)(`div`,{className:`p-3`,children:(0,J.jsx)(BS,{message:a.error})}):a.preview?a.preview.kind===`image`?(0,J.jsx)(`img`,{src:a.preview.url,alt:e,className:`max-w-full p-3`}):a.preview.kind===`binary`?(0,J.jsx)(`p`,{className:`p-3 text-[13px] text-kumo-subtle`,children:`Binary file; no preview.`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`pre`,{className:`p-3 font-mono text-xs leading-relaxed whitespace-pre text-kumo-default`,children:a.preview.text}),a.preview.truncated?(0,J.jsxs)(`p`,{className:`px-3 pb-3 text-xs text-kumo-subtle`,children:[`Showing the first `,US(KS),`.`]}):null]}):(0,J.jsx)(`p`,{className:`p-3 text-[13px] text-kumo-subtle`,children:`Loading…`}):(0,J.jsx)(`p`,{className:`p-3 text-[13px] text-kumo-subtle`,children:`File contents are not available here.`})})]})}function JS({api:e,datasetId:t,mount:n,evaluatorOnly:r}){let[i,a]=(0,v.useState)({}),[o,s]=Sn();(0,v.useEffect)(()=>{let n=!0;return e.listDatasetFiles(t).then(e=>{n&&a({id:t,listing:e})}).catch(e=>{n&&a({id:t,error:e instanceof Error?e.message:`Unable to list files`})}),()=>{n=!1}},[e,t]);let c=(0,v.useCallback)(n=>e.getDatasetFile(t,n),[e,t]),l=i.id===t?i:{},u=n===`.`?`workspace/`:`workspace/${n}/`;return(0,J.jsxs)(`section`,{className:`flex flex-col gap-2`,"aria-label":`Dataset files`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:`Files`}),l.error?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`The file list is not available here.`}):l.listing?l.listing.kind===`computed`?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Its files are computed when a run starts; open a run's workspace to see them.`}):(0,J.jsx)(GS,{entries:l.listing.files.map(e=>({...e,kind:`file`})),rootLabel:u,readFile:e.readOnly&&r?void 0:c,selected:o.get(`file`)??void 0,onSelect:e=>{let t=new URLSearchParams(o);t.set(`file`,e),s(t,{replace:!0})},emptyMessage:`This dataset has no files; it only provides a value.`}):(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Loading files…`})]})}function YS({items:e}){return(0,J.jsx)(`dl`,{className:`grid grid-cols-[max-content_minmax(0,1fr)] gap-x-4 gap-y-1 text-[13px]`,children:e.map(([e,t])=>(0,J.jsxs)(`div`,{className:`contents`,children:[(0,J.jsx)(`dt`,{className:`text-kumo-subtle`,children:e}),(0,J.jsx)(`dd`,{className:`min-w-0 break-words text-kumo-default`,children:t})]},e))})}function XS({message:e,description:t}){return(0,J.jsx)(Xb,{size:`sm`,title:e,description:t,className:`py-12`})}function ZS(e){return e.agent.id??QS(e)}function QS(e){return e?.agent.name??e?.agent.id??e?.agent.kind??`adapter`}function $S(e){let t=new Map,n=e=>{let n=ZS({agent:e}),r=t.get(n)??{key:n,agent:e,scenarios:[],judging:[]};return t.set(n,r),r};for(let t of e){n(t.agent).scenarios.push(t);let e=new Map;for(let n of nC(t))n.agent&&e.set(ZS({agent:n.agent}),n.agent);for(let r of e.values())n(r).judging.push(t)}return[...t.values()].sort((e,t)=>e.key.localeCompare(t.key))}function eC(e,t,n){let r=e?.transcript?.[t];return r?.kind===`checkpoint`&&r.scorer.name===n?r.scorer:void 0}function tC(e){let t=new Map,n=(e,n)=>{let r=e.rubric??e.description??e.definedAt??``,i=`${e.kind}\0${e.name}\0${r}`,a=t.get(i)??{key:``,scorer:e,uses:[]};a.uses.push(n),t.set(i,a)};for(let t of e){for(let e of t.scorers)n(e,{scenario:t,placement:`final`});for(let[e,r]of(t.transcript??[]).entries())r.kind===`checkpoint`&&n(r.scorer,{scenario:t,placement:`checkpoint`,step:e})}let r=[...t.values()],i=new Map;for(let e of r)i.set(e.scorer.name,(i.get(e.scorer.name)??0)+1);for(let e of r)e.key=i.get(e.scorer.name)===1?e.scorer.name:`${e.scorer.name}@${e.scorer.definedAt??e.scorer.kind}`;return r.sort((e,t)=>e.key.localeCompare(t.key))}function nC(e){return[...(e.transcript??[]).flatMap(e=>e.kind===`checkpoint`?[e.scorer]:[]),...e.scorers]}function rC(e,t,n,r=10){let i=new Set(t.filter(e=>e.placement===`final`).map(e=>e.scenario.id));return e.filter(e=>e.status!==`running`&&i.has(e.evalId)).flatMap(e=>{let t=e.scorers?.find(e=>e.name===n);return t?[{run:e,scorer:t}]:[]}).sort((e,t)=>t.run.startedAt.localeCompare(e.run.startedAt)).slice(0,r)}function iC(e,t,n=10){let r=[...e].filter(e=>e.status!==`running`).sort((e,t)=>t.startedAt.localeCompare(e.startedAt)).flatMap(e=>{let n=e.scorers?.find(e=>e.name===t);return n&&!n.skipped&&n.passed!==void 0?[n]:[]}).slice(0,n);return{passed:r.filter(e=>e.passed).length,total:r.length}}function aC(e){let t=new Map;for(let n of e)for(let e of n.datasets??[]){let r=t.get(e.id)??{dataset:e,scenarios:[]};r.scenarios.push(n),t.set(e.id,r)}return[...t.values()].sort((e,t)=>e.dataset.id.localeCompare(t.dataset.id))}function oC(e){let t=new Map;for(let n of e){let e=t.get(n.evalId);(!e||e.startedAt<n.startedAt)&&t.set(n.evalId,n)}return t}var sC={passed:`bg-kumo-success`,failed:`bg-kumo-danger`,errored:`bg-kumo-warning`,limited:`bg-kumo-badge-purple`,running:`bg-kumo-info animate-pulse`,cancelled:`bg-kumo-neutral-450`,"not-run":`border border-dashed border-kumo-line bg-transparent`},cC={passed:`bg-kumo-success-tint`,failed:`bg-kumo-danger-tint`,errored:`bg-kumo-warning-tint`,limited:`bg-kumo-badge-purple/15`,running:`bg-kumo-info-tint`,cancelled:`bg-kumo-tint`,"not-run":``},lC={passed:`passed`,failed:`failed`,errored:`errored`,limited:`limited`,running:`running`,cancelled:`cancelled`,"not-run":`not run`},uC={failed:0,errored:1,limited:2,running:3,cancelled:4,"not-run":5,passed:6};function dC(e){return e===void 0?`text-kumo-subtle`:e>=.9?`bg-kumo-success-tint`:e>=.5?`bg-kumo-warning-tint`:`bg-kumo-danger-tint`}var fC={passed:`success`,failed:`error`,error:`warning`},pC=e=>e in sC;function mC({status:e}){return(0,J.jsx)(`span`,{className:`inline-flex`,"data-status":e,children:pC(e)?(0,J.jsxs)(Or,{appearance:`dot`,variant:`beta`,children:[(0,J.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.75 shrink-0 rounded-full ${sC[e]}`}),e]}):(0,J.jsx)(Or,{appearance:`dot`,variant:fC[e]??`neutral`,children:e})})}var hC=e=>`value`in e?e.value:0;function gC(e,t){let n=e??1;if(t?.kind===`choices`){let e=t.choices.filter(e=>e.value>=n).map(e=>e.key);return e.length?e.length===t.choices.length?`any choice`:e.length===1?`only ${e[0]}`:`${e.slice(0,-1).join(`, `)} or ${e.at(-1)}`:`no choice passes`}return n===1?`only 1`:`≥ ${n}`}function _C(e){let t=e.input+(e.cacheWrite??0)+e.output;return t===0&&e.total!==void 0?Math.max(0,e.total-(e.cacheRead??0)):t}function vC(e){return e.cacheRead??0}function yC(e,t){if(!e)return t;if(!t)return e;let n={input:e.input+t.input,output:e.output+t.output};for(let r of[`cacheRead`,`cacheWrite`,`reasoning`,`total`])(e[r]!==void 0||t[r]!==void 0)&&(n[r]=(e[r]??0)+(t[r]??0));return n}var bC=encodeURIComponent,xC=`/runs`,SC=e=>`/runs/${bC(e)}`,CC=e=>`${xC}?batch=${bC(e)}`,wC=(e,t)=>t===`run`?SC(e):`${SC(e)}/${t}`,TC=e=>wC(e,`workspace`),EC=(e,t)=>`${wC(e,`logs`)}${t?`?file=${bC(t)}`:``}`,DC=(e,t)=>`/library/${e}${t===void 0?``:`/${bC(t)}`}`,OC=e=>DC(`agents`,e),kC=e=>DC(`judges`,e),AC=e=>DC(`scenarios`,e),jC=e=>DC(`datasets`,e),MC=(0,v.createContext)({attachments:[]});function NC(e){if(e===null||typeof e==`string`||typeof e==`boolean`||typeof e==`number`&&Number.isFinite(e))return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(NC).join(`,`)}]`;if(typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype)return`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${NC(e[t])}`).join(`,`)}}`;throw Error(`Matrix parameters must be finite JSON values`)}function PC(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function FC(e){let t=[...new Set(e.flatMap(e=>Object.keys(e.parameters??{})))].sort(),n=[],r=[];for(let i of t)new Set(e.map(e=>Object.hasOwn(e.parameters??{},i)?NC(e.parameters[i]):void 0)).size===1&&e.length>1?r.push([i,e[0].parameters[i]]):n.push(i);return{columns:n.slice(0,3),overflow:n.slice(3),constant:r}}function IC({entries:e}){return e.length?(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.map(([e,t])=>(0,J.jsxs)(`span`,{className:`${zS} max-w-[20rem] truncate rounded border border-kumo-hairline px-1 text-[11px]`,title:`${e}=${PC(t)}`,children:[(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[e,`=`]}),PC(t)]},e))}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}function LC({run:e,keys:t}){let n=t.flatMap(t=>Object.hasOwn(e.parameters??{},t)?[`${t}=${PC(e.parameters[t])}`]:[]);return n.length?(0,J.jsx)(`span`,{className:`${zS} block max-w-[16rem] truncate text-xs`,title:n.join(`
31
+ `),children:n.join(` · `)}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}function RC({run:e,name:t}){let n=Object.hasOwn(e.parameters??{},t),r=n?PC(e.parameters?.[t]):`—`;return(0,J.jsx)(`span`,{className:`${zS} block max-w-[10rem] truncate`,title:n?r:`Not set on this run`,children:r})}function zC(e,t=Date.now()){let n=Math.round((t-Date.parse(e))/1e3);return Number.isFinite(n)?n<45?`just now`:n<3600?`${Math.round(n/60)} min ago`:n<86400?`${Math.round(n/3600)} h ago`:n<604800?`${Math.round(n/86400)} d ago`:new Date(e).toLocaleDateString():e}function BC(e){return e===void 0?`—`:Number.isInteger(e)?String(e):e.toFixed(2)}function VC(e){if(e!==void 0)return e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/6e4)}m ${Math.round(e%6e4/1e3)}s`}function HC(e,t){if(t===`ms`)return VC(e);let n=Math.abs(e)>=1e4?new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:1}).format(e):Number.isInteger(e)?e.toLocaleString(`en`):e.toFixed(e<10?2:1);return t&&t!==`tokens`?`${n} ${t}`:n}function UC({run:e}){return(0,J.jsx)(`span`,{className:`tabular-nums`,children:BC(e.score)})}function WC({run:e}){let t=VC(e.durationMs);return(0,J.jsxs)(`span`,{className:`flex flex-col tabular-nums`,title:new Date(e.startedAt).toLocaleString(),children:[(0,J.jsx)(`span`,{children:zC(e.startedAt)}),t?(0,J.jsxs)(`span`,{className:`text-xs text-kumo-subtle`,children:[`took `,t]}):null]})}var GC=new Set([`message`,`context`,`settings`,`compaction`,`context_edit`,`branch_summary`,`turn`,`tool_status`,`usage`,`checkpoint`,`agent_link`,`custom`]);function KC(e){return GC.has(e.type)}function qC(e){let t=new Map,n=null;for(let r of e.records)KC(r)?(t.set(r.id,r),n=r.id):r.type===`leaf`&&(n=r.targetId);let r=[],i=new Set;for(let e=n;e!==null&&!i.has(e);){i.add(e);let n=t.get(e);if(!n)break;r.push(n),e=n.parentId}return r.reverse()}function JC(e){return typeof e==`string`?e:e.flatMap(e=>e.type===`text`?[e.text]:[]).join(`
32
+ `)}function YC(e){return e.details&&`result`in e.details?e.details.result:JC(e.content)}function XC(e){if(e)return e.provider===`unknown`?e.id:`${e.provider}/${e.id}`}var ZC=e=>typeof e==`string`?e:void 0,QC=e=>typeof e==`number`&&Number.isFinite(e)?e:void 0;function $C(e){if(typeof e==`object`&&e){let t=e;return{name:ZC(t.name),message:ZC(t.message)??JSON.stringify(e),stack:ZC(t.stack)}}return{message:String(e)}}var ew=new Set([`run-started`,`run-completed`,`transcript-step-started`,`transcript-step-completed`]),tw=new Set([`turn`,`usage`,`tool_status`,`settings`,`context`,`context_edit`]);function nw(e,t){let n=e?.records??[],r=e?qC(e):[],i=new Set(r.map(e=>e.id)),a=new Map(n.map((e,t)=>[e.id,t])),o=new Map,s=null;for(let e of n)i.has(e.id)&&(s=e.id),o.set(e.id,s);let c=new Map;for(let e of t){let t=e.at===null||!a.has(e.at)?e.at===null?null:r.at(-1)?.id??null:o.get(e.at)??null;c.set(t,[...c.get(t)??[],e])}let l=[],u=e=>{for(let t of c.get(e)??[])l.push({kind:`event`,event:t})};u(null);for(let e of r)l.push({kind:`record`,record:e}),u(e.id);return l}function rw(e,t=[],n={},r=new Set){let i=nw(e,t),a=[...e?.records.map(e=>Date.parse(e.time))??[],...t.map(e=>Date.parse(e.timestamp))].filter(e=>!Number.isNaN(e)),o=a.length?Math.min(...a):0,s=e=>{let t=Date.parse(e);return Number.isNaN(t)?0:Math.max(0,t-o)},c=[],l=[],u=new Map,d=new Map,f=new Map,p=new Map,m,h=()=>l.at(-1)?.items??c,g=e=>{let t=l.at(-1);t&&m!==void 0&&(t.latencyMs=Math.max(t.latencyMs??0,e-m))},_=e=>{let t=s(e.time);if(e.type===`message`){if(e.role===`user`){l.push({steps:0,items:[]}),m=t,h().push({type:`user`,at:t,text:JC(e.content),scripted:e.origin?.kind===`synthetic`&&e.origin.name===`evalkit`});return}if(g(t),e.role===`assistant`){v(e,t);return}if(e.role===`tool`){let n=f.get(e.toolCallId),r=YC(e);if(n&&!n.result){n.result={value:r,durationMs:t-n.at,isError:e.isError===!0};return}h().push({type:`tool`,at:t,id:e.toolCallId,name:e.toolName??`tool`,result:{value:r,durationMs:0,isError:e.isError===!0}});return}h().push({type:`message`,at:t,role:e.role,content:JC(e.content)})}else switch(g(t),e.type){case`compaction`:h().push({type:`compaction`,at:t,...e.summary?{summary:e.summary}:{},...e.tokensBefore===void 0?{}:{tokensBefore:e.tokensBefore}});return;case`branch_summary`:h().push({type:`branch`,at:t,summary:e.summary});return;case`agent_link`:{let i=n[e.transcriptId];h().push({type:`subagent`,at:t,transcriptId:e.transcriptId,relation:e.relation,...e.agent?.name?{name:e.agent.name}:{},...e.content?{content:JC(e.content)}:{},...i&&!r.has(e.transcriptId)?{view:rw(i,[],n,new Set([...r,e.transcriptId]))}:{}});return}default:if(e.type===`usage`&&!e.cumulative){let t=l.at(-1);t&&(t.usage=yC(t.usage,e.usage))}if(tw.has(e.type))return;h().push({type:`unknown`,at:t,label:e.type===`custom`?`${e.namespace} · ${e.name}`:e.type,record:e})}},v=(e,t)=>{let n=l.at(-1);n&&(n.steps+=1,n.usage=yC(n.usage,e.usage));for(let n of e.content)if(n.type===`reasoning`){let e=n.text??n.summary?.join(`
33
+ `)??``;(e||n.redacted)&&h().push({type:`reasoning`,at:t,text:e,redacted:n.redacted===!0})}let r=JC(e.content);(r||e.error)&&h().push({type:`assistant`,at:t,text:r,...e.model?{model:XC(e.model)}:{},...e.error?{error:e.error.message}:{}});for(let n of e.content)if(n.type===`tool_call`){let e={type:`tool`,at:t,id:n.id,name:n.name,arguments:n.arguments??n.input};f.set(n.id,e),h().push(e)}},y=e=>{if(ew.has(e.kind))return;let t=s(e.timestamp);switch(e.kind){case`checkpoint-started`:{let n={type:`checkpoint`,at:t,step:e.step,name:e.name,state:`running`};p.set(e.step,n),h().push(n);return}case`checkpoint-completed`:case`checkpoint-error`:{let n=p.get(e.step);if(!n)return;n.durationMs=t-n.at,e.kind===`checkpoint-error`?(n.state=`error`,n.error=$C(e.error)):n.state=e.status===`passed`||e.status===`failed`||e.status===`skipped`?e.status:`error`;return}case`transcript-step-skipped`:h().push({type:`skipped-step`,at:t,step:e.step});return;case`limit-reached`:h().push({type:`limit`,at:t,limit:e.limit,value:e.value,used:e.used});return;case`scorer-started`:d.set(e.scorer,t);return;case`scorer-completed`:case`scorer-failed`:{let n=d.get(e.scorer);u.set(e.scorer,{name:e.scorer,value:e.kind===`scorer-completed`?QC(e.value):void 0,skipped:e.kind===`scorer-completed`&&e.skipped===!0,...e.kind===`scorer-failed`?{error:$C(e.error)}:{},...n===void 0?{}:{durationMs:t-n}});return}case`error`:h().push({type:`error`,at:t,error:$C(e.error)});return}};for(let e of i)e.kind===`record`?_(e.record):y(e.event);return{preamble:c,turns:l,scorers:[...u.values()],...a.length?{durationMs:Math.max(...a)-o}:{}}}function iw(e){if(e<1)return`<1ms`;if(e<1e3)return`${Math.round(e)}ms`;if(e<6e4)return`${(e/1e3).toFixed(e<1e4?2:1)}s`;let t=Math.floor(e/6e4),n=Math.round(e%6e4/1e3);return`${t}m ${String(n).padStart(2,`0`)}s`}function aw(e){let t=[e.input||e.cacheWrite?`${(e.input+(e.cacheWrite??0)).toLocaleString()} in`:void 0,e.output?`${e.output.toLocaleString()} out`:void 0,vC(e)?`${vC(e).toLocaleString()} cached`:void 0].filter(Boolean),n=`${_C(e).toLocaleString()} tokens`;return t.length?`${n} (${t.join(` · `)})`:n}function ow(e,t){return gC(e,t)}function sw(e){return e.value===void 0?`—`:e.choice?`${e.choice} (${cw(e.value)})`:cw(e.value)}var cw=e=>Number.isInteger(e)?String(e):e.toFixed(2).replace(/0$/,``);function lw(e){return e.error?`error`:e.skipped?`skipped`:e.passed===!0?`passed`:e.passed===!1?`failed`:`not scored`}function uw(e,t){let n=lw(e);return e.value===void 0?n:`${e.choice?`Answered ${e.choice} (${cw(e.value)})`:cw(e.value)}${e.passAt===void 0?``:`, passes at ${ow(e.passAt,t)}`} → ${n}`}function dw(e){let t=e.reduce((e,t)=>e+(t.weight??1),0);return`weighted mean (${e.map(e=>`${e.weight??1}×${cw(hC(e))}`).join(` + `)}) / ${cw(t)}`}function fw({result:e,scorer:t}){let n=e.judge,r=n?.usage?_C(n.usage):void 0,i=[n?.model,r===void 0?void 0:`${r.toLocaleString()} tokens`,e.durationMs===void 0?void 0:VC(e.durationMs),n?.attempts&&n.attempts>1?`asked twice: its first answer was not in the format asked for`:void 0].filter(Boolean);return(0,J.jsxs)(`div`,{className:`verdict-panel flex min-w-0 flex-col gap-2 text-[13px]`,children:[e.error?(0,J.jsx)(`p`,{className:`text-kumo-danger`,children:e.error.message}):e.skipped?(0,J.jsxs)(`p`,{className:`text-kumo-subtle`,children:[`Skipped`,e.explanation?`: ${e.explanation}`:``]}):(0,J.jsxs)(`p`,{className:`verdict font-semibold text-kumo-strong`,children:[uw(e,t?.answer),e.criteria?.length?(0,J.jsxs)(`span`,{className:`font-normal text-kumo-subtle`,children:[` `,`· `,dw(e.criteria)]}):null]}),e.explanation&&!e.skipped?(0,J.jsx)(`p`,{className:`whitespace-pre-wrap text-kumo-default`,children:e.explanation}):null,e.criteria?.length?(0,J.jsx)(gw,{criteria:e.criteria,answer:t?.answer}):null,i.length?(0,J.jsxs)(`p`,{className:`text-xs text-kumo-subtle`,children:[n?.agent?`${n.agent.name??n.agent.id} · `:``,i.join(` · `)]}):null,(0,J.jsx)(pw,{result:e}),(0,J.jsx)(_w,{result:e})]})}function pw({result:e}){let{runId:t,attachments:n}=(0,v.useContext)(MC);if(!t)return null;let r=e.attachments??[],i=e.passed===!1||e.error?n.map(e=>e.name).filter(e=>!r.includes(e)):[];if(!r.length&&!i.length)return null;let a=e=>(0,J.jsx)(gn,{to:EC(t,e),className:`${RS} font-mono text-xs`,children:e},e);return(0,J.jsxs)(`p`,{className:`verdict-files flex flex-wrap items-baseline gap-x-2 gap-y-1 text-xs text-kumo-subtle`,children:[r.length?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{children:`Attached by this check:`}),r.map(a)]}):null,i.length?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{children:r.length?`Run files:`:`Run files that may explain it:`}),i.map(a)]}):null]})}function mw(e){return`value`in e?e.value===1?`passed`:e.value===0?`failed`:`partial`:`not reached`}var hw={passed:`bg-kumo-success`,failed:`bg-kumo-danger`,partial:`bg-kumo-warning`,"not reached":`border border-kumo-subtle bg-transparent`};function gw({criteria:e,answer:t}){let n=t?.kind===`criteria`?t.criteria:[];return(0,J.jsx)(`ul`,{className:`criteria flex flex-col divide-y divide-kumo-hairline rounded-md border border-kumo-hairline`,children:e.map(e=>{let t=mw(e),r=n.find(t=>t.name===e.name)?.description,i=`evidence`in e?e.evidence:void 0,a=(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-2`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`inline-block size-2 shrink-0 translate-y-[-1px] rounded-full ${hw[t]}`}),(0,J.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,J.jsx)(`span`,{className:`text-kumo-strong`,children:e.name}),r?(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[` · `,r]}):null,e.explanation?(0,J.jsx)(`span`,{className:`block whitespace-pre-wrap text-kumo-default`,children:e.explanation}):null]}),(0,J.jsxs)(`span`,{className:`shrink-0 text-xs text-kumo-subtle tabular-nums`,children:[t===`not reached`?`not reached`:cw(hC(e)),(e.weight??1)===1?``:` · weight ${e.weight}`]})]});return(0,J.jsx)(`li`,{className:`criterion px-3 py-1.5 ${t===`not reached`?`text-kumo-subtle`:``}`,"data-state":t,children:i===void 0?a:(0,J.jsxs)(`details`,{open:t===`failed`,children:[(0,J.jsxs)(`summary`,{className:`flex cursor-pointer list-none items-baseline gap-2`,children:[a,(0,J.jsx)(`span`,{className:`shrink-0 text-xs text-kumo-link`,children:`evidence`})]}),(0,J.jsx)(`div`,{className:`mt-1.5`,children:(0,J.jsx)(bw,{value:i})})]})},e.name)})})}function _w({result:e}){let t=e.judge,n=[...t?.prompt?[{value:`prompt`,label:`Prompt it saw`,body:(0,J.jsx)(yw,{value:t.prompt})}]:[],...t?.reply===void 0?[]:[{value:`reply`,label:`Its reply`,body:(0,J.jsx)(yw,{value:t.reply})}],...t?.transcript?.records.length?[{value:`conversation`,label:`Judge conversation`,body:(0,J.jsx)(Sw,{transcript:t.transcript})}]:[],...e.evidence===void 0?[]:[{value:`evidence`,label:`Evidence`,body:(0,J.jsx)(bw,{value:e.evidence})}]],[r,i]=(0,v.useState)(n[0]?.value);if(!n.length)return null;let a=n.find(e=>e.value===r)??n[0];return(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[n.length>1?(0,J.jsx)(gb,{variant:`segmented`,size:`sm`,value:a.value,onValueChange:e=>i(String(e)),tabs:n.map(({value:e,label:t})=>({value:e,label:t}))}):(0,J.jsx)(`p`,{className:`text-xs font-medium text-kumo-subtle`,children:a.label}),a.body]})}var vw=`max-h-80 overflow-auto rounded-md border border-kumo-hairline bg-kumo-elevated px-3 py-2 font-mono text-xs whitespace-pre-wrap break-words`;function yw({value:e}){return(0,J.jsx)(`pre`,{className:vw,children:typeof e==`string`?e:JSON.stringify(e,null,2)})}function bw({value:e}){let[t,n]=(0,v.useState)(typeof e==`object`&&e?`tree`:`json`);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[typeof e==`object`&&e?(0,J.jsx)(`div`,{className:`self-end`,children:(0,J.jsx)(gb,{variant:`segmented`,size:`sm`,value:t,onValueChange:e=>n(e),tabs:[{value:`tree`,label:`Tree`},{value:`json`,label:`JSON`}]})}):null,t===`json`?(0,J.jsx)(yw,{value:e}):(0,J.jsx)(`div`,{className:`${vw} evidence-tree whitespace-normal`,children:(0,J.jsx)(xw,{value:e,depth:0})})]})}function xw({name:e,value:t,depth:n}){let r=e===void 0?null:(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[e,`: `]});if(typeof t!=`object`||!t)return(0,J.jsxs)(`div`,{className:`whitespace-pre-wrap`,children:[r,(0,J.jsx)(`span`,{className:`text-kumo-strong`,children:JSON.stringify(t)})]});let i=Array.isArray(t)?t.map((e,t)=>[String(t),e]):Object.entries(t),a=Array.isArray(t)?`array · ${i.length} ${i.length===1?`item`:`items`}`:`object · ${i.length} ${i.length===1?`key`:`keys`}`;return(0,J.jsxs)(`details`,{open:n<2,children:[(0,J.jsxs)(`summary`,{className:`cursor-pointer select-none`,children:[r,(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:a})]}),(0,J.jsx)(`div`,{className:`ml-4 border-l border-kumo-hairline pl-2`,children:i.map(([e,t])=>(0,J.jsx)(xw,{name:e,value:t,depth:n+1},e))})]})}function Sw({transcript:e}){let t=rw(e),n=[...t.preamble,...t.turns.flatMap(e=>e.items)].map(e=>{switch(e.type){case`user`:return`user: ${e.text}`;case`assistant`:return`assistant${e.model?` (${e.model})`:``}: ${e.text}`;case`reasoning`:return`reasoning: ${e.text}`;case`tool`:return`tool call ${e.name} ${Cw(e.arguments??{})}${e.result?`\n→ ${Cw(e.result.value)}`:``}`;case`message`:return`${e.role}: ${e.content}`;default:return}}).filter(e=>e!==void 0);return(0,J.jsx)(`ol`,{className:`flex flex-col gap-1.5 text-xs`,children:n.map((e,t)=>(0,J.jsx)(`li`,{className:`${vw} max-h-48`,children:e},t))})}var Cw=e=>typeof e==`string`?e:JSON.stringify(e);function ww({run:e}){let t=[{label:`Runs`,href:xC},{label:`Run ${e.id.slice(0,8)}`,href:SC(e.id)}];return(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(Wb,{size:`sm`,className:`hierarchy-breadcrumbs`,children:t.map((e,n)=>(0,J.jsxs)(v.Fragment,{children:[n?(0,J.jsx)(Wb.Separator,{}):null,n===t.length-1||!e.href?(0,J.jsx)(Wb.Current,{children:e.label}):(0,J.jsx)(Wb.Link,{href:e.href,children:e.label})]},n))})})}function Tw({title:e,subtitle:t,status:n,actions:r}){return(0,J.jsxs)(`div`,{className:`flex flex-wrap items-start gap-3`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,J.jsxs)(`h2`,{className:`flex items-center gap-2 text-lg font-semibold text-kumo-strong`,children:[e,n]}),t?(0,J.jsx)(`p`,{className:`truncate font-mono text-xs text-kumo-subtle`,children:t}):null]}),r?(0,J.jsx)(`div`,{className:`flex items-center gap-2`,children:r}):null]})}var Ew={className:`row-link cursor-pointer hover:bg-kumo-tint`,onClick(e){if(e.target.closest(`a, button, input, select, label, textarea`)||window.getSelection()?.toString())return;let t=e.currentTarget.querySelector(`a[data-row-link]`);t&&(e.metaKey||e.ctrlKey||e.button===1?window.open(t.href,`_blank`,`noopener`):t.click())}},Dw={agents:`Agents`,judges:`Judges`,scenarios:`Scenarios`,datasets:`Datasets`};function Ow({section:e,current:t}){return(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsxs)(Wb,{size:`sm`,className:`hierarchy-breadcrumbs`,children:[(0,J.jsx)(Wb.Current,{children:`Library`}),(0,J.jsx)(Wb.Separator,{}),t?(0,J.jsx)(Wb.Link,{href:DC(e),children:Dw[e]}):(0,J.jsx)(Wb.Current,{children:Dw[e]}),t?(0,J.jsx)(Wb.Separator,{}):null,t?(0,J.jsx)(Wb.Current,{children:t}):null]})})}function kw({at:e}){return e?(0,J.jsx)(`span`,{className:`${zS} text-kumo-subtle`,title:`Where this is defined`,children:e}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}function Aw({children:e}){return(0,J.jsx)(`span`,{className:`rounded border border-kumo-line px-1.5 py-0.5 text-xs`,children:e})}function jw({title:e,children:t}){return(0,J.jsxs)(lv,{className:`flex max-w-3xl flex-col gap-3 p-4`,children:[e?(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:e}):null,t]})}function Mw({scenarios:e,runs:t,note:n}){let r=oC(t);return(0,J.jsxs)(`section`,{"aria-label":`Used by`,className:`flex flex-col gap-2`,children:[(0,J.jsxs)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:[`Used by`,` `,(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle tabular-nums`,children:e.length}),n?(0,J.jsx)(`span`,{className:`ml-2 text-xs font-normal text-kumo-subtle`,children:n}):null]}),(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Scenario`}),(0,J.jsx)(Q.Head,{children:`Suite`}),(0,J.jsx)(Q.Head,{children:`How`}),(0,J.jsx)(Q.Head,{children:`Latest run`})]})}),(0,J.jsxs)(Q.Body,{children:[e.map(({scenario:e,note:t},n)=>{let i=r.get(e.id);return(0,J.jsxs)(Q.Row,{...Ew,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(gn,{to:AC(e.id),"data-row-link":!0,className:RS,children:e.name??e.id})}),(0,J.jsx)(Q.Cell,{children:e.suiteId??`—`}),(0,J.jsx)(Q.Cell,{className:`text-kumo-subtle`,children:t??`—`}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(Nw,{run:i})})]},`${e.id}-${n}`)}),e.length?null:(0,J.jsx)(LS,{colSpan:4,children:`No scenario uses it.`})]})]})]})}function Nw({run:e}){return e?(0,J.jsxs)(gn,{to:SC(e.id),className:`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs ${cC[e.status]}`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-2 rounded-full ${sC[e.status]}`}),lC[e.status],(0,J.jsx)(`span`,{className:`tabular-nums text-kumo-subtle`,children:BC(e.score)})]}):(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:`not run`})}function Pw(e){return(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.runtimes.map(e=>(0,J.jsxs)(Aw,{children:[e.name,` `,(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[`(`,e.kind,`)`]})]},e.name))})}function Fw({catalog:e}){let t=$S(e);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`agents`}),t.length?(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Agent`}),(0,J.jsx)(Q.Head,{children:`Kind`}),(0,J.jsx)(Q.Head,{children:`Runtimes`}),(0,J.jsx)(Q.Head,{children:`Scenarios`}),(0,J.jsx)(Q.Head,{children:`Defined in`})]})}),(0,J.jsx)(Q.Body,{children:t.map(({key:e,agent:t,scenarios:n,judging:r})=>(0,J.jsxs)(Q.Row,{...Ew,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex flex-col`,children:[(0,J.jsx)(gn,{to:OC(e),"data-row-link":!0,className:RS,children:t.name??e}),t.name?(0,J.jsx)(`span`,{className:`${zS} text-kumo-subtle`,children:e}):null]})}),(0,J.jsx)(Q.Cell,{children:t.kind}),(0,J.jsx)(Q.Cell,{children:Pw(t)}),(0,J.jsxs)(Q.Cell,{className:`tabular-nums`,children:[n.length,r.length?(0,J.jsxs)(`span`,{className:`ml-1 text-xs text-kumo-subtle`,children:[`+ judges `,r.length]}):null]}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(kw,{at:t.definedAt})})]},e))})]}):(0,J.jsx)(XS,{message:`No agents yet. Define one with defineAgent in agents/.`})]})}function Iw({catalog:e,runs:t,agentKey:n}){let r=$S(e).find(e=>e.key===n);if(!r)return(0,J.jsx)(XS,{message:`Agent not found: ${n}`});let{agent:i,scenarios:a,judging:o}=r;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`agents`,current:i.name??n}),(0,J.jsx)(Tw,{title:i.name??n,subtitle:n}),(0,J.jsx)(jw,{children:(0,J.jsx)(YS,{items:[[`ID`,(0,J.jsx)(`span`,{className:zS,children:i.id??`—`},`id`)],[`Kind`,i.kind],...i.version?[[`Version`,i.version]]:[],[`Runtimes`,Pw(i)],[`Defined in`,(0,J.jsx)(kw,{at:i.definedAt},`at`)]]})}),(0,J.jsx)(Mw,{runs:t,scenarios:[...a.map(e=>({scenario:e,note:`agent under test`})),...o.map(e=>({scenario:e,note:`judge agent`}))]})]})}function Lw({scorer:e}){return(0,J.jsx)(Or,{variant:e.kind===`judge`?`beta`:`neutral`,children:e.kind===`judge`?`LLM judge`:`predicate`})}function Rw(e){return e.placement===`final`?`final scoring`:`checkpoint after step ${(e.step??0)+1}`}var zw=e=>e.name??e.id??e.kind;function Bw({passed:e,total:t}){if(!t)return(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`});let n=e/t;return(0,J.jsxs)(`span`,{className:`pass-bar inline-flex items-center gap-2 tabular-nums`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`inline-block h-1.5 w-20 overflow-hidden rounded-full bg-kumo-fill`,children:(0,J.jsx)(`span`,{className:`block h-full ${n>=.5?`bg-kumo-success`:`bg-kumo-danger`}`,style:{width:`${n*100}%`}})}),e,`/`,t]})}function Vw(e){return e.find(({scorer:e})=>e.model)?.scorer.model}function Hw({catalog:e,runs:t}){let n=tC(e);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`judges`}),n.length?(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Judge`}),(0,J.jsx)(Q.Head,{children:`Kind`}),(0,J.jsx)(Q.Head,{children:`Passes at`}),(0,J.jsx)(Q.Head,{children:`Model`}),(0,J.jsx)(Q.Head,{children:`Last 10 runs`}),(0,J.jsx)(Q.Head,{children:`Scenarios`})]})}),(0,J.jsx)(Q.Body,{children:n.map(({key:e,scorer:n,uses:r})=>{let i=rC(t,r,n.name),a=Vw(i);return(0,J.jsxs)(Q.Row,{...Ew,children:[(0,J.jsxs)(Q.Cell,{className:`max-w-md whitespace-normal`,children:[(0,J.jsx)(gn,{to:kC(e),"data-row-link":!0,className:RS,children:n.name}),(0,J.jsx)(`span`,{className:`block text-xs text-kumo-subtle`,children:n.description??(0,J.jsxs)(`span`,{className:`italic`,children:[`No description. Add `,`{ description }`,` to say what it checks.`]})})]}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(Lw,{scorer:n})}),(0,J.jsx)(Q.Cell,{children:ow(n.passAt,n.answer)}),(0,J.jsx)(Q.Cell,{className:zS,children:a??(n.agent?zw(n.agent):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`}))}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(Bw,{passed:i.filter(({scorer:e})=>e.passed).length,total:i.filter(({scorer:e})=>e.passed!==void 0).length})}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:new Set(r.map(e=>e.scenario.id)).size})]},e)})})]}):(0,J.jsx)(XS,{message:`No judges yet. Add predicates or judges in judges/.`})]})}function Uw({scorer:e}){let t=e.answer;return t?.kind===`choices`?(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Choice`}),(0,J.jsx)(Q.Head,{children:`Means`}),(0,J.jsx)(Q.Head,{children:`Value`}),(0,J.jsx)(Q.Head,{children:`Result`})]})}),(0,J.jsx)(Q.Body,{children:t.choices.map(t=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{className:`font-semibold`,children:t.key}),(0,J.jsx)(Q.Cell,{className:`whitespace-normal`,children:t.label}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.value}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(mC,{status:t.value>=(e.passAt??1)?`passed`:`failed`})})]},t.key))})]}):t?.kind===`criteria`?(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Criterion`}),(0,J.jsx)(Q.Head,{children:`Weight`}),(0,J.jsx)(Q.Head,{children:`Means`})]})}),(0,J.jsx)(Q.Body,{children:t.criteria.map(e=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:e.name}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:e.weight}),(0,J.jsx)(Q.Cell,{className:`whitespace-normal text-kumo-subtle`,children:e.description??`—`})]},e.name))})]}):null}function Ww(e){switch(e.answer?.kind){case`choices`:return`one of ${e.answer.choices.map(e=>e.key).join(`, `)}, and why. EvalKit checks the answer and asks once more if it is not one of them`;case`criteria`:return`a value from 0 to 1 per criterion; the score is their weighted mean`;default:return`a value from 0 to 1 and why, as JSON. EvalKit checks it and asks once more if it cannot read it`}}function Gw({api:e,scorer:t,verdicts:n}){let[r,i]=(0,v.useState)(`template`),[a,o]=(0,v.useState)(),s=n.find(({scorer:e})=>!e.skipped)?.run;return(0,v.useEffect)(()=>{if(r!==`run`||!s||!e)return;let n=!0;return e.getRun(s.id).then(e=>{if(!n)return;let r=e.scores.find(e=>e.name===t.name);o(r?.judge?.prompt??`This run did not record its prompt.`)}),()=>{n=!1}},[e,s,r,t.name]),t.prompt?(0,J.jsxs)(`figure`,{className:`judge-prompt flex min-w-0 flex-col gap-1`,children:[(0,J.jsxs)(`figcaption`,{className:`flex flex-wrap items-center justify-between gap-2 text-xs font-medium text-kumo-subtle`,children:[(0,J.jsx)(`span`,{children:`Prompt EvalKit sends · built from the rubric, inputs and answer format`}),s&&e?(0,J.jsx)(gb,{variant:`segmented`,size:`sm`,value:r,onValueChange:e=>i(e),tabs:[{value:`template`,label:`Template`},{value:`run`,label:`With run ${s.id.slice(0,8)}`}]}):null]}),(0,J.jsx)(`pre`,{className:`max-h-[28rem] overflow-auto rounded-md border border-kumo-hairline bg-kumo-elevated px-3 py-2 font-mono text-xs whitespace-pre-wrap`,children:r===`run`?a??`Loading…`:t.prompt}),(0,J.jsx)(`p`,{className:`text-xs text-kumo-subtle`,children:`The judge agent receives this prompt and decides how to call its model. Placeholders are filled from each run.`})]}):null}function Kw({api:e,catalog:t,runs:n,judgeKey:r}){let i=tC(t).find(e=>e.key===r);if(!i)return(0,J.jsx)(XS,{message:`Judge not found: ${r}`});let{scorer:a,uses:o}=i,s=rC(n,o,a.name),c=a.kind===`judge`;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`judges`,current:a.name}),(0,J.jsx)(Tw,{title:a.name,status:(0,J.jsx)(Lw,{scorer:a})}),a.description?(0,J.jsx)(`p`,{className:`judge-description max-w-3xl text-sm text-kumo-default`,children:a.description}):null,(0,J.jsxs)(`div`,{className:c?`grid gap-5 xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]`:`max-w-3xl`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,J.jsx)(jw,{children:(0,J.jsx)(YS,{items:[...c?[[`Judge agent`,a.agent?(0,J.jsxs)(`span`,{children:[zw(a.agent),Vw(s)?(0,J.jsxs)(`span`,{className:`${zS} text-kumo-subtle`,children:[` `,`· `,Vw(s)]}):null]},`agent`):`none: set judge in evalkit.config.ts`],[`It sees`,(0,J.jsx)(`span`,{className:zS,children:(a.inputs??[]).join(` · `)},`inputs`)],[`It answers`,Ww(a)]]:[[`Kind`,`Predicate: a function scores the run from 0 to 1`]],[`Passes at`,ow(a.passAt,a.answer)],[`Partial runs`,a.supportsPartial?`Also scores runs that stopped early or failed`:`Only scores runs that ran to the end`],[`Defined in`,(0,J.jsx)(kw,{at:a.definedAt},`at`)]]})}),(0,J.jsx)(Uw,{scorer:a})]}),c?(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[a.rubric?(0,J.jsxs)(`figure`,{className:`flex flex-col gap-1`,children:[(0,J.jsx)(`figcaption`,{className:`text-xs font-medium text-kumo-subtle`,children:`Rubric`}),(0,J.jsx)(`blockquote`,{className:`rounded-md border-l-2 border-kumo-brand bg-kumo-elevated px-3 py-2 text-[13px] whitespace-pre-wrap`,children:a.rubric})]}):null,(0,J.jsx)(Gw,{api:e,scorer:a,verdicts:s})]}):null]}),(0,J.jsxs)(`section`,{"aria-label":`Recent verdicts`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`Recent verdicts`}),s.length?(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Run`}),(0,J.jsx)(Q.Head,{children:`Scenario`}),(0,J.jsx)(Q.Head,{children:`Value`}),(0,J.jsx)(Q.Head,{children:`Result`}),(0,J.jsx)(Q.Head,{children:`Why`})]})}),(0,J.jsx)(Q.Body,{children:s.map(({run:e,scorer:t})=>(0,J.jsxs)(Q.Row,{...Ew,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(gn,{to:SC(e.id),"data-row-link":!0,className:`${RS} ${zS}`,children:e.id.slice(0,8)})}),(0,J.jsx)(Q.Cell,{children:e.evalId}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:sw(t)}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(mC,{status:t.errored?`error`:t.skipped?`skipped`:t.passed?`passed`:`failed`})}),(0,J.jsx)(Q.Cell,{className:`max-w-lg truncate text-kumo-subtle`,title:t.explanation,children:t.explanation??`—`})]},e.id))})]}):(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,children:[`No finished runs have recorded this `,c?`judge`:`scorer`,` `,`yet.`]})]}),(0,J.jsx)(Mw,{runs:n,scenarios:o.map(e=>({scenario:e.scenario,note:Rw(e)}))})]})}function qw(e){if(e.source===`computed`)return e.hooks?.onRun?`built by onLoad, adapted per run by onRun`:`built by onLoad`;let t=[];return e.files&&t.push(`directory`in e.files?`files from ${e.files.directory}/`:`${e.files.paths.length} inline files`),e.value&&t.push(`file`in e.value?`value from ${e.value.file}`:`an inline value`),t.join(` and `)||`—`}function Jw({catalog:e}){let t=aC(e);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`datasets`}),t.length?(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Dataset`}),(0,J.jsx)(Q.Head,{children:`Kind`}),(0,J.jsx)(Q.Head,{children:`Visible to`}),(0,J.jsx)(Q.Head,{children:`Contents`}),(0,J.jsx)(Q.Head,{children:`Scenarios`}),(0,J.jsx)(Q.Head,{children:`Defined in`})]})}),(0,J.jsx)(Q.Body,{children:t.map(({dataset:e,scenarios:t})=>(0,J.jsxs)(Q.Row,{...Ew,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex flex-col`,children:[(0,J.jsx)(gn,{to:jC(e.id),"data-row-link":!0,className:RS,children:e.name??e.id}),e.name?(0,J.jsx)(`span`,{className:`${zS} text-kumo-subtle`,children:e.id}):null]})}),(0,J.jsx)(Q.Cell,{children:e.source}),(0,J.jsx)(Q.Cell,{children:e.visibility===`candidate`?`agent and scorers`:`scorers only`}),(0,J.jsx)(Q.Cell,{className:`max-w-[20rem] truncate`,children:qw(e)}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.length}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(kw,{at:e.definedAt})})]},e.id))})]}):(0,J.jsx)(XS,{message:`No scenario uses a dataset yet. Define one with defineDataset in datasets/.`})]})}function Yw({api:e,catalog:t,runs:n,datasetId:r}){let i=aC(t).find(e=>e.dataset.id===r);if(!i)return(0,J.jsx)(XS,{message:`Dataset not found: ${r}`});let{dataset:a,scenarios:o}=i,s=a.files,c=a.value;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`datasets`,current:a.name??a.id}),(0,J.jsx)(Tw,{title:a.name??a.id,subtitle:a.id,status:(0,J.jsx)(Or,{variant:`neutral`,children:a.source})}),(0,J.jsx)(jw,{children:(0,J.jsx)(YS,{items:[[`Kind`,a.source===`computed`?`Computed: onLoad builds it once per process and caches it`:`Static: declared in the definition`],...a.hooks?[[`Hooks`,(0,J.jsxs)(`span`,{className:`flex gap-1`,children:[(0,J.jsx)(Aw,{children:`onLoad · once per process`}),a.hooks.onRun?(0,J.jsx)(Aw,{children:`onRun · once per run`}):null]},`hooks`)]]:[],[`Visible to`,a.visibility===`candidate`?`The agent (in its workspace and context.data) and the scorers`:`Only the scorers; the agent never sees it`],[`Mounted at`,(0,J.jsx)(`span`,{className:zS,children:a.mount===`.`?`workspace root`:`${a.mount}/`},`mount`)],[`Defined in`,(0,J.jsx)(kw,{at:a.definedAt},`at`)]]})}),s||c?(0,J.jsx)(jw,{title:`Contents`,children:(0,J.jsx)(YS,{items:[...s?[[`Files`,`directory`in s?(0,J.jsxs)(`span`,{children:[(0,J.jsxs)(`span`,{className:zS,children:[s.directory,`/`]}),`, copied into each run's workspace`]},`files`):`${s.paths.length} declared inline, written into each run's workspace`]]:[],...c?[[`Value`,`file`in c?(0,J.jsx)(`span`,{className:zS,children:c.file},`value`):(0,J.jsx)(`span`,{children:c.shape.type===`array`?`array of ${c.shape.items} items`:c.shape.type===`object`?(0,J.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1`,children:[`object with`,c.shape.keys.map(e=>(0,J.jsx)(Aw,{children:(0,J.jsx)(`span`,{className:zS,children:e})},e))]}):c.shape.type},`value`)]]:[]]})}):null,(0,J.jsx)(JS,{api:e,datasetId:a.id,mount:a.mount,evaluatorOnly:a.visibility===`evaluator`}),(0,J.jsx)(Mw,{runs:n,scenarios:o.map(e=>({scenario:e}))})]})}function Xw({api:e,runId:t,attachments:n}){let[r,i]=Sn(),a=(0,v.useCallback)(n=>e.getAttachment(t,n),[e,t]),o=n.filter(e=>e.truncatedFrom);return(0,J.jsxs)(`section`,{className:`attachments flex flex-col gap-2`,children:[o.length?(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,children:[o.map(e=>`${e.name} keeps its last ${US(e.size)} of ${US(e.truncatedFrom)}`).join(`; `),`.`]}):null,(0,J.jsx)(GS,{entries:n.map(e=>({path:e.name,kind:`file`,size:e.size})),rootLabel:`attachments/`,readFile:a,selected:r.get(`file`)??void 0,onSelect:e=>{let t=new URLSearchParams(r);t.set(`file`,e),i(t,{replace:!0})},emptyMessage:`Nothing was attached to this run.`})]})}function Zw({label:e,noun:t,page:n,pageSize:r,total:i,onPage:a}){if(i<=r)return null;let o=n*r+1,s=Math.min((n+1)*r,i);return(0,J.jsx)(`nav`,{className:`pager flex items-center justify-end`,"aria-label":e,children:(0,J.jsxs)(Ny,{page:n+1,setPage:e=>a(e-1),perPage:r,totalCount:i,children:[(0,J.jsx)(Ny.Info,{children:()=>(0,J.jsxs)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:[t,` `,o,`–`,s,` of `,i]})}),(0,J.jsx)(Ny.Controls,{})]})})}function Qw(e,t,n){let r=t.trim().toLowerCase();return r?e.flatMap(e=>{if(e.label.toLowerCase().includes(r))return[e];let t=e.values.filter(t=>t.label.toLowerCase().includes(r)||n.getAll(e.key).includes(t.key));return t.length?[{...e,values:t}]:[]}):[...e]}var $w=(e,...t)=>!e||t.some(t=>t.includes(e));function eT({facets:e,search:t,archivedCount:n=0,onToggleFacet:r,onField:i,onClear:a}){let[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(``),u=c.trim().toLowerCase(),d=Qw(e,c,t).filter(e=>e.values.length>1||t.has(e.key)),f=$w(u,`date`,`from`,`to`,`started`),p=n>0&&$w(u,`archived`,`removed`),m=[...t.keys()].filter(e=>e!==`q`).length,h=tT(e,t);return(0,J.jsxs)(`section`,{"aria-label":`Run filters`,className:`runs-filter-panel rounded-lg border border-kumo-line bg-kumo-base`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 px-3 py-1.5`,children:[(0,J.jsxs)(`button`,{type:`button`,"aria-expanded":o,className:`flex shrink-0 cursor-pointer items-center gap-1.5 text-[13px] font-semibold text-kumo-strong select-none`,onClick:()=>s(e=>!e),children:[(0,J.jsx)(Kf,{"aria-hidden":!0,className:`size-3 text-kumo-subtle transition-transform ${o?`rotate-90`:``}`}),(0,J.jsx)(ip,{"aria-hidden":!0,className:`size-3.5 text-kumo-subtle`}),`Filters`,m?` (${m} active)`:``]}),h.map(e=>(0,J.jsxs)(`button`,{type:`button`,className:`active-filter inline-flex max-w-[16rem] cursor-pointer items-center gap-1 rounded-full border border-kumo-line bg-kumo-elevated px-2 py-0.5 text-xs`,title:`Remove ${e.label}: ${e.choice}`,onClick:()=>e.facet?r(e.field,e.value):i(e.field,``),children:[(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[e.label,`:`]}),(0,J.jsx)(`span`,{className:`truncate`,children:e.choice}),(0,J.jsx)(wp,{"aria-hidden":!0,className:`size-3 shrink-0 text-kumo-subtle`})]},`${e.field}=${e.value}`)),(0,J.jsx)(zp,{size:`xs`,variant:`ghost`,shape:`square`,className:`clear-filters ml-auto shrink-0`,icon:(0,J.jsx)(ap,{}),"aria-label":`Clear filters`,title:`Clear filters`,disabled:!m,onClick:a})]}),o?(0,J.jsxs)(`div`,{className:`flex max-h-[min(32rem,60vh)] flex-col gap-3 overflow-y-auto border-t border-kumo-hairline px-3 py-3`,children:[(0,J.jsx)(Fh,{type:`search`,size:`xs`,"aria-label":`Search filters`,placeholder:`Search filters`,value:c,className:`max-w-xs`,onChange:e=>l(e.target.value)}),(0,J.jsxs)(`div`,{className:`grid grid-cols-[repeat(auto-fill,minmax(12rem,1fr))] gap-x-6 gap-y-4`,children:[d.map(e=>(0,J.jsx)(rT,{facet:e,checked:t.getAll(e.key),searching:u.length>0,onToggle:t=>r(e.key,t)},e.key)),f?(0,J.jsxs)(`fieldset`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,J.jsx)(`legend`,{className:`mb-1 text-xs font-medium text-kumo-subtle`,children:`Started`}),(0,J.jsx)(Fh,{type:`date`,size:`xs`,label:`From`,value:t.get(`from`)??``,onChange:e=>i(`from`,e.target.value)}),(0,J.jsx)(Fh,{type:`date`,size:`xs`,label:`To`,value:t.get(`to`)??``,onChange:e=>i(`to`,e.target.value)})]}):null,p?(0,J.jsxs)(`fieldset`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,J.jsx)(`legend`,{className:`mb-1 text-xs font-medium text-kumo-subtle`,children:`Archived`}),(0,J.jsx)(yh,{className:`runs-choice min-w-0`,checked:t.get(`archived`)===`show`,onCheckedChange:e=>i(`archived`,e?`show`:``),label:(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline justify-between gap-2 text-[13px]`,children:[(0,J.jsx)(`span`,{children:`Show archived`}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:n})]})})]}):null]}),!d.length&&!f&&!p?(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,children:[`No filters match “`,c,`”.`]}):null]}):null]})}function tT(e,t){let n={from:`From`,to:`To`,archived:`Archived`,batch:`Batch`};return[...t.entries()].flatMap(([t,r])=>{if(t===`q`)return[];let i=e.find(e=>e.key===t);if(i){let e=i.values.find(e=>e.key===r);return[{field:t,value:r,label:i.label,choice:e?.label??r,facet:!0}]}return[{field:t,value:r,label:n[t]??t,choice:t===`batch`?r.slice(0,8):r,facet:!1}]})}function nT(e,t,n,r=``){let i=e.length>8,a=r.trim().toLowerCase(),o=a?e.filter(e=>e.label.toLowerCase().includes(a)||t.includes(e.key)):[...e];if(!i)return{choices:o,hidden:0};let s=o.sort((e,n)=>Number(t.includes(n.key))-Number(t.includes(e.key))||n.count-e.count||e.label.localeCompare(n.label,void 0,{numeric:!0}));if(n)return{choices:s,hidden:0};let c=[...s.filter(e=>t.includes(e.key)),...s.filter(e=>!t.includes(e.key)).slice(0,6)];return{choices:c,hidden:s.length-c.length}}function rT({facet:e,checked:t,searching:n,onToggle:r}){let[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(``),{choices:c,hidden:l}=nT(e.values,t,i||n,i?o:``);return(0,J.jsxs)(`fieldset`,{className:`facet-group flex min-w-0 flex-col gap-1`,children:[(0,J.jsxs)(`legend`,{className:`mb-1 flex w-full items-baseline justify-between gap-2 text-xs font-medium text-kumo-subtle`,children:[(0,J.jsx)(`span`,{className:`truncate`,children:e.label}),(0,J.jsx)(`span`,{className:`tabular-nums`,children:e.values.length})]}),i&&e.values.length>8?(0,J.jsx)(Fh,{type:`search`,size:`xs`,"aria-label":`Search ${e.label}`,placeholder:`Search ${e.values.length} values`,value:o,onChange:e=>s(e.target.value)}):null,(0,J.jsxs)(`div`,{className:`flex max-h-56 flex-col gap-1 overflow-y-auto`,children:[c.map(e=>(0,J.jsx)(yh,{className:`runs-choice min-w-0`,checked:t.includes(e.key),onCheckedChange:()=>r(e.key),label:(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline justify-between gap-2 text-[13px]`,title:e.label,children:[(0,J.jsx)(`span`,{className:`truncate`,children:e.label}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:e.count})]})},e.key)),c.length?null:(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:`No matches.`})]}),l>0||i?(0,J.jsx)(`button`,{type:`button`,className:`facet-more self-start text-xs text-kumo-link hover:underline`,onClick:()=>{a(e=>!e),s(``)},children:i?`Show fewer`:`Show all ${e.values.length}`}):null]})}var iT=`@missing`,aT=e=>`p.${e}`;function oT(e,t,n){let r=e.get(t);r?r.count++:e.set(t,{key:t,label:n,count:1})}function sT(e){return[{key:`eval`,label:`Scenario`},{key:`matrix`,label:`Matrix`},{key:`status`,label:`Status`},...[...new Set(e.flatMap(e=>Object.keys(e.parameters??{})))].sort().map(e=>({key:aT(e),label:e}))].map(({key:t,label:n})=>{let r=new Map;for(let n of e){let e=t===`eval`?n.evalId:t===`matrix`?n.matrixId:t===`status`?n.status:n.parameters?.[t.slice(2)],i=t===`eval`||t===`status`||(t===`matrix`?n.matrixId!==void 0:Object.hasOwn(n.parameters??{},t.slice(2)));oT(r,i?NC(e):iT,i?String(typeof e==`string`?e:JSON.stringify(e)):`Missing`)}return{key:t,label:n,values:[...r.values()].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}))}})}function cT(e,t={}){let n=new URLSearchParams;n.append(`eval`,NC(e));for(let[e,r]of Object.entries(t))r!=null&&n.append(aT(e),NC(r));return`/runs?${n}`}function lT(e,t){let n=[...t.keys()].filter(e=>[`eval`,`matrix`,`status`].includes(e)||e.startsWith(`p.`)),r=t.get(`from`),i=t.get(`to`),a=t.get(`batch`);return e.filter(e=>a&&e.batch?.id!==a||r&&e.startedAt.slice(0,10)<r||i&&e.startedAt.slice(0,10)>i?!1:n.every(n=>{let r=t.getAll(n),i=n===`eval`||n===`status`||(n===`matrix`?e.matrixId!==void 0:Object.hasOwn(e.parameters??{},n.slice(2))),a=n===`eval`?e.evalId:n===`matrix`?e.matrixId:n===`status`?e.status:e.parameters?.[n.slice(2)],o=i?NC(a):iT;return r.includes(o)}))}function uT({label:e,placeholder:t,value:n,count:r,onChange:i}){return(0,J.jsxs)(`div`,{className:`search-field flex min-w-0 flex-wrap items-center gap-3`,children:[(0,J.jsx)(Fh,{type:`search`,size:`sm`,"aria-label":e,placeholder:t,value:n,className:`w-full sm:w-80`,onChange:e=>i(e.target.value)}),(0,J.jsx)(`span`,{className:`search-count text-xs text-kumo-subtle tabular-nums`,children:r})]})}function dT(e,t){let[n,r]=(0,v.useState)(()=>new URLSearchParams),i=e??n,a=t??r,o=i.get(`q`)??``,[s,c]=(0,v.useState)(o);return(0,v.useEffect)(()=>c(o),[o]),(0,v.useEffect)(()=>{if(s===o)return;let e=setTimeout(()=>{let e=new URLSearchParams(i);s?e.set(`q`,s):e.delete(`q`),a(e)},250);return()=>clearTimeout(e)},[s,o,i,a]),{activeSearch:i,query:s,setQuery:c,setField:(e,t)=>{let n=new URLSearchParams(i);t?n.set(e,t):n.delete(e),a(n)},toggleFacet:(e,t)=>{let n=new URLSearchParams(i),r=n.getAll(e);n.delete(e);for(let i of r.filter(e=>e!==t))n.append(e,i);r.includes(t)||n.append(e,t),a(n)},clearFilters:()=>a(new URLSearchParams)}}function fT(e,t){let[n,r]=(0,v.useState)({}),i=t?`${t.id}:${t.status}:${t.completedAt??``}`:``;return(0,v.useEffect)(()=>{if(!t)return;let n=!0;return e.getRun(t.id).then(e=>{n&&r({signature:i,detail:e})}).catch(e=>{n&&r({signature:i,error:e instanceof Error?e.message:`Unable to load the run`})}),()=>{n=!1}},[e,i]),n.signature?.startsWith(`${t?.id}:`)?n:{}}function pT(e,t,n,r){let i=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length?e.filter(e=>{let t=r.find(t=>t.id===e.evalId),a=n.find(t=>t.id===e.suiteId),o=Object.entries(e.parameters??{}).flatMap(([e,t])=>[e,PC(t)]),s=[e.id,e.batch?.id,e.evalId,t?.name,e.suiteId,a?.name,e.matrixId,t?.agent.name,t?.agent.kind,e.status,e.score,e.startedAt,e.source?.commit,e.source?.ref,e.source?.dirty?`dirty`:void 0,...o].map(PC).join(` `).toLowerCase();return i.every(e=>s.includes(e))}):[...e]}function mT({runs:e,catalog:t,suites:n,search:r,onSearchChange:i}){let a=dT(r,i),{activeSearch:o,query:s}=a,c=o.get(`archived`)===`show`,l=e.filter(e=>e.archived).length,u=(0,v.useMemo)(()=>c?e:e.filter(e=>!e.archived),[e,c]),d=(0,v.useMemo)(()=>sT(u),[u]),f=(0,v.useMemo)(()=>pT(lT(u,o),s,n,t),[u,o,s,n,t]);return{...a,listed:u,facets:d,filteredRuns:f,archivedCount:l}}function hT({selection:e,facets:t=e.facets,label:n,count:r}){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(uT,{label:n,placeholder:`Scenario, parameter, agent, commit or status`,value:e.query,count:r,onChange:e.setQuery}),(0,J.jsx)(eT,{facets:t,search:e.activeSearch,archivedCount:e.archivedCount,onToggleFacet:e.toggleFacet,onField:e.setField,onClear:e.clearFilters})]})}function gT(e,t){let[n,r]=(0,v.useState)(e);return{sort:n,toggleSort:e=>{r(t=>t.key===e?{key:e,direction:t.direction===`asc`?`desc`:`asc`}:{key:e,direction:`asc`}),t?.()}}}function _T({label:e,sortKey:t,sort:n,onSort:r,sticky:i}){let a=n.key===t,o=a?n.direction===`asc`?`ascending`:`descending`:void 0,s=a?n.direction===`asc`?qf:Wf:Jf;return(0,J.jsx)(Q.Head,{"aria-sort":o,sticky:i,children:(0,J.jsxs)(`button`,{type:`button`,className:`table-sort inline-flex items-center gap-1 whitespace-nowrap rounded font-medium hover:text-kumo-strong focus-visible:outline-2 focus-visible:outline-kumo-brand`,onClick:()=>r(t),children:[e,(0,J.jsx)(s,{"aria-hidden":!0,className:a?`size-3`:`size-3 text-kumo-inactive`})]})})}function vT(e,t,n){return(0,v.useMemo)(()=>{let r=[...e];return r.sort((e,r)=>{let i=n(e,t.key),a=n(r,t.key),o=typeof i==`number`&&typeof a==`number`?i-a:String(i??``).localeCompare(String(a??``),void 0,{numeric:!0,sensitivity:`base`});return t.direction===`asc`?o:-o}),r},[e,t,n])}var yT=50,bT=6;function xT({runs:e,suites:t,catalog:n,search:r,onSearchChange:i,workspaces:a=!1}){let o=mT({runs:e,catalog:n,suites:t,search:r,onSearchChange:i}),{listed:s,filteredRuns:c,clearFilters:l}=o,u=FC(c),[d,f]=(0,v.useState)(0),{sort:p,toggleSort:m}=gT({key:`started`,direction:`desc`},()=>f(0)),h=e=>n.find(t=>t.id===e.evalId),g=e=>t.find(t=>t.id===e.suiteId)?.name,_=vT(c,p,(e,t)=>ST(e,t,h(e),g(e))),y=Math.max(1,Math.ceil(_.length/yT)),b=Math.min(d,y-1),x=_.slice(b*yT,(b+1)*yT),S=bT+u.columns.length+ +!!u.overflow.length,C=(e,t,n)=>(0,J.jsx)(_T,{label:e,sortKey:t,sort:p,onSort:m,sticky:n});return e.length?(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[a?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Each run worked in its own workspace; open one to browse the files the agent left.`}):null,(0,J.jsx)(hT,{selection:o,label:a?`Filter workspaces`:`Filter runs`,count:`${_.length} of ${s.length} runs`}),u.constant.length?(0,J.jsxs)(`p`,{className:`constant-parameters flex flex-wrap items-center gap-1 text-[13px] text-kumo-subtle`,role:`note`,children:[`Same on every run shown:`,(0,J.jsx)(IC,{entries:u.constant})]}):null,(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[C(`Run`,`run`,`left`),C(`Status`,`status`),C(`Scenario`,`eval`),C(`Score`,`score`),C(`Started`,`started`),C(`Commit`,`commit`),u.columns.map(e=>(0,J.jsx)(_T,{label:e,sortKey:`param:${e}`,sort:p,onSort:m},e)),u.overflow.length?(0,J.jsx)(Q.Head,{children:`Other parameters`}):null]})}),(0,J.jsxs)(Q.Body,{children:[x.map(e=>(0,J.jsx)(CT,{run:e,evaluation:h(e),suiteName:g(e),layout:u,href:a?TC(e.id):SC(e.id),onBatch:e=>o.setField(`batch`,e)},e.id)),_.length?null:(0,J.jsx)(LS,{colSpan:S,children:(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[`No matching runs.`,(0,J.jsx)(zp,{size:`xs`,variant:`ghost`,onClick:l,children:`Clear filters`})]})})]})]}),(0,J.jsx)(Zw,{label:`Run pages`,noun:`Runs`,page:b,pageSize:yT,total:_.length,onPage:f})]}):(0,J.jsx)(XS,{message:`No runs yet. Open a scenario or suite to start one.`})}function ST(e,t,n,r){if(t.startsWith(`param:`)){let n=e.parameters?.[t.slice(6)];return n===void 0?void 0:typeof n==`number`?n:PC(n)}return{run:e.id,suite:r??e.suiteId,eval:n?.name??e.evalId,agent:n?.agent.name??n?.agent.kind??`Unnamed agent`,status:e.status,score:e.score,runtime:e.durationMs,started:e.startedAt,commit:e.source?.commit}[t]}function CT({run:e,evaluation:t,suiteName:n,layout:r,href:i,onBatch:a}){let o=t?.name??e.evalId,s=n??e.suiteId;return(0,J.jsxs)(Q.Row,{...Ew,children:[(0,J.jsxs)(Q.Cell,{sticky:`left`,className:`whitespace-nowrap`,children:[(0,J.jsx)(gn,{to:i,"data-row-link":!0,className:`${RS} ${zS}`,title:e.id,children:e.id.slice(0,8)}),e.batch?(0,J.jsxs)(`button`,{type:`button`,className:`batch-label ml-2 rounded border border-kumo-line px-1 text-[11px] text-kumo-subtle tabular-nums hover:text-kumo-default`,title:`Run ${e.batch.index+1} of ${e.batch.size} launched together; show them all`,onClick:()=>a(e.batch.id),children:[e.batch.index+1,`/`,e.batch.size]}):null]}),(0,J.jsx)(Q.Cell,{title:e.interrupted?`Its process stopped before the run finished`:void 0,children:(0,J.jsx)(mC,{status:e.status})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex max-w-[14rem] flex-col`,children:[(0,J.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,J.jsx)(gn,{to:AC(e.evalId),className:`${RS} truncate font-medium`,title:o,children:o}),e.archived?(0,J.jsx)(`span`,{className:`shrink-0 rounded border border-kumo-line px-1 text-[11px] text-kumo-subtle`,title:`This scenario is no longer in the project (evalkit tidy)`,children:`archived`}):null]}),s?(0,J.jsx)(`span`,{className:`truncate text-xs text-kumo-subtle`,title:s,children:s}):null]})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(UC,{run:e})}),(0,J.jsx)(Q.Cell,{className:`whitespace-nowrap`,children:(0,J.jsx)(WC,{run:e})}),(0,J.jsx)(Q.Cell,{className:`whitespace-nowrap`,children:(0,J.jsx)(wT,{source:e.source})}),r.columns.map(t=>(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(RC,{run:e,name:t})},t)),r.overflow.length?(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(LC,{run:e,keys:r.overflow})}):null]})}function wT({source:e}){return e?(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,title:[e.commit,e.ref&&`on ${e.ref}`,e.dirty&&`with uncommitted changes`].filter(Boolean).join(` `),children:[(0,J.jsx)(`span`,{className:zS,children:e.commit.slice(0,7)}),e.dirty?(0,J.jsx)(`span`,{className:`rounded border border-kumo-line px-1 text-[11px] text-kumo-subtle`,children:`dirty`}):null]}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`})}var TT=e=>`step-${e+1}`,ET=e=>`score:${e}`;function DT(){let[e,t]=Sn();return[e.get(`verdict`)??void 0,e=>t(t=>{let n=new URLSearchParams(t);return n.set(`verdict`,e),n},{replace:!0})]}var OT={error:0,failed:1,"not scored":2,passed:3,skipped:4};function kT(e,t){return[...(e.checkpoints??[]).map(e=>({key:TT(e.step),where:`Step ${e.step+1}`,kind:e.kind,result:{...e,...e.status===`skipped`?{skipped:!0}:{}},scorer:eC(t,e.step,e.name)})),...e.scores.map(e=>({key:ET(e.name),where:`Final`,kind:e.kind,result:e,scorer:t?.scorers.find(t=>t.name===e.name)}))].map((e,t)=>({entry:e,index:t})).sort((e,t)=>(OT[lw(e.entry.result)]??2)-(OT[lw(t.entry.result)]??2)||e.index-t.index).map(({entry:e})=>e)}var AT=e=>e.passed===!1||!!e.error;function jT({detail:e,scenario:t}){let n=kT(e,t),[r]=DT();return!n.length&&!e.skippedScorers?.length?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`This scenario has no scorers or checkpoints.`}):(0,J.jsxs)(`ol`,{className:`verdicts flex flex-col gap-2`,children:[n.map(e=>(0,J.jsx)(MT,{entry:e,focused:r===e.key},e.key)),(e.skippedScorers??[]).map(e=>(0,J.jsxs)(`li`,{className:`flex items-center gap-2 rounded-md border border-dashed border-kumo-line px-3 py-2 text-[13px] text-kumo-subtle`,children:[(0,J.jsx)(`span`,{className:`text-xs`,children:`Final`}),(0,J.jsx)(`span`,{className:`text-kumo-default`,children:e}),(0,J.jsx)(`span`,{className:`ml-auto text-xs`,children:`not run: the run stopped early`})]},`not-run-${e}`))]})}function MT({entry:e,focused:t}){let{result:n,scorer:r}=e,[i,a]=(0,v.useState)(AT(n)||t),o=(0,v.useRef)(null);(0,v.useEffect)(()=>{t&&(a(!0),o.current?.scrollIntoView({block:`nearest`,behavior:`smooth`}))},[t]);let s=lw(n),c=e.kind===`judge`?`LLM judge`:e.kind===`expect-tool-call`?`tool call`:e.kind;return(0,J.jsxs)(`li`,{ref:o,id:`verdict-${e.key}`,"data-verdict":e.key,"data-status":s,className:`verdict-card rounded-md border bg-kumo-base ${t?`border-kumo-brand`:`border-kumo-line`}`,children:[(0,J.jsxs)(`button`,{type:`button`,className:`verdict-toggle flex w-full items-start gap-2 px-3 py-2 text-left`,"aria-expanded":i,"aria-label":`${i?`Hide`:`Show`} why ${n.name} ${s}`,onClick:()=>a(!i),children:[(0,J.jsx)(Kf,{"aria-hidden":!0,className:`mt-1 shrink-0 text-kumo-subtle transition-transform ${i?`rotate-90`:``}`}),(0,J.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,J.jsxs)(`span`,{className:`block text-xs text-kumo-subtle`,children:[e.where,c?` · ${c}`:``]}),(0,J.jsx)(`span`,{className:`block text-[13px] font-medium text-kumo-strong`,children:n.name}),r?.description?(0,J.jsx)(`span`,{className:`block text-xs text-kumo-subtle`,children:r.description}):null]}),(0,J.jsxs)(`span`,{className:`flex shrink-0 flex-col items-end gap-0.5`,children:[(0,J.jsx)(mC,{status:s}),!n.error&&!n.skipped&&n.value!==void 0?(0,J.jsxs)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:[sw(n),n.passAt===void 0?``:` · passes at ${ow(n.passAt,r?.answer)}`]}):null]})]}),i?(0,J.jsx)(`div`,{className:`border-t border-kumo-hairline px-3 py-2`,children:(0,J.jsx)(fw,{result:n,scorer:r})}):null]})}function NT(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var PT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,FT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,IT={};function LT(e,t){return((t||IT).jsx?FT:PT).test(e)}var RT=/[ \t\n\f\r]/g;function zT(e){return typeof e==`object`?e.type===`text`&&BT(e.value):BT(e)}function BT(e){return e.replace(RT,``)===``}var VT=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};VT.prototype.normal={},VT.prototype.property={},VT.prototype.space=void 0;function HT(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new VT(n,r,t)}function UT(e){return e.toLowerCase()}var WT=class{constructor(e,t){this.attribute=t,this.property=e}};WT.prototype.attribute=``,WT.prototype.booleanish=!1,WT.prototype.boolean=!1,WT.prototype.commaOrSpaceSeparated=!1,WT.prototype.commaSeparated=!1,WT.prototype.defined=!1,WT.prototype.mustUseProperty=!1,WT.prototype.number=!1,WT.prototype.overloadedBoolean=!1,WT.prototype.property=``,WT.prototype.spaceSeparated=!1,WT.prototype.space=void 0;var GT=s({boolean:()=>qT,booleanish:()=>JT,commaOrSpaceSeparated:()=>QT,commaSeparated:()=>ZT,number:()=>$,overloadedBoolean:()=>YT,spaceSeparated:()=>XT}),KT=0,qT=$T(),JT=$T(),YT=$T(),$=$T(),XT=$T(),ZT=$T(),QT=$T();function $T(){return 2**++KT}var eE=Object.keys(GT),tE=class extends WT{constructor(e,t,n,r){let i=-1;if(super(e,t),nE(this,`space`,r),typeof n==`number`)for(;++i<eE.length;){let e=eE[i];nE(this,eE[i],(n&GT[e])===GT[e])}}};tE.prototype.defined=!0;function nE(e,t,n){n&&(e[t]=n)}function rE(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new tE(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[UT(r)]=r,n[UT(a.attribute)]=r}return new VT(t,n,e.space)}var iE=rE({properties:{ariaActiveDescendant:null,ariaAtomic:JT,ariaAutoComplete:null,ariaBusy:JT,ariaChecked:JT,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:XT,ariaCurrent:null,ariaDescribedBy:XT,ariaDetails:null,ariaDisabled:JT,ariaDropEffect:XT,ariaErrorMessage:null,ariaExpanded:JT,ariaFlowTo:XT,ariaGrabbed:JT,ariaHasPopup:null,ariaHidden:JT,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:XT,ariaLevel:$,ariaLive:null,ariaModal:JT,ariaMultiLine:JT,ariaMultiSelectable:JT,ariaOrientation:null,ariaOwns:XT,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:JT,ariaReadOnly:JT,ariaRelevant:null,ariaRequired:JT,ariaRoleDescription:XT,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:JT,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function aE(e,t){return t in e?e[t]:t}function oE(e,t){return aE(e,t.toLowerCase())}var sE=rE({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ZT,acceptCharset:XT,accessKey:XT,action:null,allow:null,allowFullScreen:qT,allowPaymentRequest:qT,allowUserMedia:qT,alpha:qT,alt:null,as:null,async:qT,autoCapitalize:null,autoComplete:XT,autoFocus:qT,autoPlay:qT,blocking:XT,capture:null,charSet:null,checked:qT,cite:null,className:XT,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:JT,controls:qT,controlsList:XT,coords:$|ZT,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qT,defer:qT,dir:null,dirName:null,disabled:qT,download:YT,draggable:JT,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:qT,formTarget:null,headers:XT,height:$,hidden:YT,high:$,href:null,hrefLang:null,htmlFor:XT,httpEquiv:XT,id:null,imageSizes:null,imageSrcSet:null,inert:qT,inputMode:null,integrity:null,is:null,isMap:qT,itemId:null,itemProp:XT,itemRef:XT,itemScope:qT,itemType:XT,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qT,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:qT,muted:qT,name:null,nonce:null,noModule:qT,noValidate:qT,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:qT,optimum:$,pattern:null,ping:XT,placeholder:null,playsInline:qT,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:qT,referrerPolicy:null,rel:XT,required:qT,reversed:qT,rows:$,rowSpan:$,sandbox:XT,scope:null,scoped:qT,seamless:qT,selected:qT,shadowRootClonable:qT,shadowRootCustomElementRegistry:qT,shadowRootDelegatesFocus:qT,shadowRootMode:null,shadowRootSerializable:qT,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:JT,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:qT,useMap:null,value:JT,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:XT,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:qT,declare:qT,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:qT,noHref:qT,noShade:qT,noWrap:qT,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:JT,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:qT,disablePictureInPicture:qT,disableRemotePlayback:qT,exportParts:ZT,part:XT,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:oE}),cE=rE({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`,maskType:`mask-type`,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:QT,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:XT,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:qT,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:ZT,g2:ZT,glyphName:ZT,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:QT,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:XT,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:QT,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:QT,rev:QT,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:QT,requiredFeatures:QT,requiredFonts:QT,requiredFormats:QT,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:QT,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:QT,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:QT,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:aE}),lE=rE({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()}}),uE=rE({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:oE}),dE=rE({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),fE={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`},pE=/[A-Z]/g,mE=/-[a-z]/g,hE=/^data[-\w.:]+$/i;function gE(e,t){let n=UT(t),r=t,i=WT;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&hE.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(mE,vE);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!mE.test(e)){let n=e.replace(pE,_E);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=tE}return new i(r,t)}function _E(e){return`-`+e.toLowerCase()}function vE(e){return e.charAt(1).toUpperCase()}var yE=HT([iE,sE,lE,uE,dE],`html`),bE=HT([iE,cE,lE,uE,dE],`svg`);function xE(e){return e.join(` `).trim()}var SE=/\/\*(?:[^*]|\*(?!\/))*\*\//g,CE=/\n/g,wE=/^\s*/,TE=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,EE=/^:\s*/,DE=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,OE=/^[;\s]*/,kE=`
34
+ `,AE=`/`,jE=`*`,ME=``,NE=`comment`,PE=`declaration`;function FE(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(CE);t&&(n+=t.length);var i=e.lastIndexOf(kE);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(wE)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(AE==e.charAt(0)&&jE==e.charAt(1)){for(var n=2;ME!=e.charAt(n)&&(jE!=e.charAt(n)||AE!=e.charAt(n+1));)++n;if(n+=2,ME===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:NE,comment:o})}}function f(){var e=a(),t=c(TE);if(t){if(d(),!c(EE))return s(`property missing ':'`);var n=c(DE),r=e({type:PE,property:t[0].replace(SE,ME).trim(),value:n?n[0].replace(SE,ME).trim():ME});return c(OE),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function IE(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=FE(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var LE=zE(`end`),RE=zE(`start`);function zE(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function BE(e){let t=RE(e),n=LE(e);if(t&&n)return{start:t,end:n}}function VE(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?UE(e.position):`start`in e||`end`in e?UE(e):`line`in e||`column`in e?HE(e):``}function HE(e){return WE(e&&e.line)+`:`+WE(e&&e.column)}function UE(e){return HE(e&&e.start)+`-`+HE(e&&e.end)}function WE(e){return e&&typeof e==`number`?e:1}var GE=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=VE(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};GE.prototype.file=``,GE.prototype.name=``,GE.prototype.reason=``,GE.prototype.message=``,GE.prototype.stack=``,GE.prototype.column=void 0,GE.prototype.line=void 0,GE.prototype.ancestors=void 0,GE.prototype.cause=void 0,GE.prototype.fatal=void 0,GE.prototype.place=void 0,GE.prototype.ruleId=void 0,GE.prototype.source=void 0;var KE={}.hasOwnProperty,qE=new Map,JE=/[A-Z]/g,YE=/-([a-z])/g,XE=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),ZE=new Set([`td`,`th`]),QE=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function $E(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=uD(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=lD(n,t.jsx,t.jsxs)}let 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`?bE:yE,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=eD(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function eD(e,t,n){if(t.type===`element`)return tD(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return nD(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return iD(e,t,n);if(t.type===`mdxjsEsm`)return rD(e,t);if(t.type===`root`)return aD(e,t,n);if(t.type===`text`)return oD(e,t)}function tD(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=bE,e.schema=i),e.ancestors.push(t);let a=gD(e,t.tagName,!1),o=dD(e,t),s=pD(e,t);return XE.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!zT(e)})),sD(e,o,a,t),cD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function nD(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}_D(e,t.position)}function rD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_D(e,t.position)}function iD(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=bE,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:gD(e,t.name,!0),o=fD(e,t),s=pD(e,t);return sD(e,o,a,t),cD(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function aD(e,t,n){let r={};return cD(r,pD(e,t)),e.create(t,e.Fragment,r,n)}function oD(e,t){return t.value}function sD(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function cD(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function lD(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function uD(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=RE(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function dD(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&KE.call(t.properties,i)){let a=mD(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&ZE.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function fD(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else _D(e,t.position)}else{let{name:i}=r,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else _D(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function pD(e,t){let n=[],r=-1,i=e.passKeys?new Map:qE;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=eD(e,a,o);s!==void 0&&n.push(s)}return n}function mD(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=gE(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?NT(n):xE(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:vD(n):hD(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?fE[r.property]||r.property:r.attribute,n]}function hD(e,t){let n={};try{IE(t,function(t,r){if(t&&r){let i=t;i.slice(0,2)!==`--`&&(i=i.toLowerCase(),e.stylePropertyNameCase===`dom`&&(i.slice(0,4)===`-ms-`&&(i=i.slice(1)),i=i.replace(YE,xD))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new GE("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=QE+`#cannot-parse-style-attribute`,r}return n}function gD(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=LT(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=LT(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return KE.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);_D(e)}function _D(e,t){let n=new GE("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=QE+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function vD(e){let t={},n;for(n in e)KE.call(e,n)&&(t[yD(n)]=e[n]);return t}function yD(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(JE,bD);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function bD(e){return`-`+e.toLowerCase()}function xD(e,t){return t.toUpperCase()}var SD={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`]},CD={};function wD(e,t){let n=t||CD;return TD(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function TD(e,t,n){if(DD(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 ED(e.children,t,n)}return Array.isArray(e)?ED(e,t,n):``}function ED(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=TD(e[i],t,n);return r.join(``)}function DD(e){return!!(e&&typeof e==`object`)}var OD=document.createElement(`i`);function kD(e){let t=`&`+e+`;`;OD.innerHTML=t;let n=OD.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function AD(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+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);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function jD(e,t){return e.length>0?(AD(e,e.length,0,t),e):t}var MD={}.hasOwnProperty;function ND(e){let t={},n=-1;for(;++n<e.length;)PD(t,e[n]);return t}function PD(e,t){let n;for(n in t){let r=(MD.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){MD.call(r,a)||(r[a]=[]);let e=i[a];FD(r[a],Array.isArray(e)?e:e?[e]:[])}}}function FD(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);AD(e,0,0,r)}function ID(e,t){let 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 LD(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var RD=XD(/[A-Za-z]/),zD=XD(/[\dA-Za-z]/),BD=XD(/[#-'*+\--9=?A-Z^-~]/);function VD(e){return e!==null&&(e<32||e===127)}var HD=XD(/\d/),UD=XD(/[\dA-Fa-f]/),WD=XD(/[!-/:-@[-`{-~]/);function GD(e){return e!==null&&e<-2}function KD(e){return e!==null&&(e<0||e===32)}function qD(e){return e===-2||e===-1||e===32}var JD=XD(/\p{P}|\p{S}/u),YD=XD(/\s/);function XD(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ZD(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&zD(e.charCodeAt(n+1))&&zD(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function QD(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return qD(r)?(e.enter(n),s(r)):t(r)}function s(r){return qD(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function $D(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&qD(t)?(e.enter(r),c(t)):l(t)}function c(t){return qD(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var eO={tokenize:tO};function tO(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),QD(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return GD(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var nO=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){rO(this,e,t,n,!1)}addBefore(e,t,n){rO(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function rO(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var iO={tokenize:oO},aO={tokenize:sO};function oO(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new nO;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(aO,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(aO,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return GD(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new nO;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function sO(e,t,n){return QD(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function cO(e){if(e===null||KD(e)||YD(e))return 1;if(JD(e))return 2}function lO(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var uO={name:`attention`,resolveAll:dO,tokenize:fO};function dO(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};pO(o,-a),pO(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=jD(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=jD(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=jD(r,lO(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=jD(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=jD(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),AD(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function fO(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=cO(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=cO(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function pO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var mO={name:`autolink`,tokenize:hO};function hO(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return RD(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||zD(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||zD(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||VD(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):BD(t)?(e.consume(t),l):n(t)}function u(e){return zD(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||zD(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var gO={partial:!0,tokenize:_O};function _O(e,t,n){return r;function r(t){return qD(t)?QD(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||GD(e)?t(e):n(e)}}var vO={continuation:{tokenize:bO},exit:xO,name:`blockQuote`,tokenize:yO};function yO(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return qD(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function bO(e,t,n){let r=this;return i;function i(t){return qD(t)?QD(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(vO,t,n)(r)}}function xO(e){e.exit(`blockQuote`)}var SO={name:`characterEscape`,tokenize:CO};function CO(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return WD(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var wO={name:`characterReference`,tokenize:TO};function TO(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=zD,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=UD,u):(e.enter(`characterReferenceValue`),a=7,o=HD,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===zD&&!kD(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var EO={partial:!0,tokenize:DO};function DO(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var OO={concrete:!0,name:`codeFenced`,tokenize:kO};function kO(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),qD(t)?QD(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||GD(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(EO,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||GD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):qD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),QD(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||GD(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||GD(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&qD(t)?QD(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||GD(t)?e.check(EO,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||GD(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),qD(t)?QD(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),qD(t)?QD(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||GD(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var AO={name:`codeIndented`,tokenize:MO},jO={partial:!0,tokenize:NO};function MO(e,t,n){return r;function r(t){return e.enter(`codeIndented`),$D(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):GD(t)?e.attempt(jO,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||GD(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function NO(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):GD(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):$D(e,t,a,`linePrefix`,4,4)(o)}function a(e){return GD(e)?i(e):n(e)}}var PO={name:`codeText`,previous:IO,resolve:FO,tokenize:LO};function FO(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 IO(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function LO(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):GD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||GD(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var RO=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&zO(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),zO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),zO(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);zO(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);zO(this.left,t.reverse())}}}};function zO(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 BO(e){let t={},n=-1,r,i,a,o,s,c,l,u=new RO(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,VO(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return AD(e,0,1/0,u.slice(0)),!l}function VO(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var HO={resolve:WO,tokenize:GO},UO={partial:!0,tokenize:KO};function WO(e){return BO(e),e}function GO(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):GD(t)?e.check(UO,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function KO(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),QD(e,a,`linePrefix`)}function a(i){if(i===null||GD(i))return n(i);let 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(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function qO(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||VD(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||GD(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||KD(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||VD(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function JO(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):GD(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||GD(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!qD(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function YO(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):GD(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),QD(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||GD(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function XO(e,t){let n;return r;function r(i){return GD(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):qD(i)?QD(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var ZO={name:`definition`,tokenize:$O},QO={partial:!0,tokenize:ek};function $O(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return JO.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=LD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return KD(t)?XO(e,l)(t):l(t)}function l(t){return qO(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(QO,d,d)(t)}function d(t){return qD(t)?QD(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||GD(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function ek(e,t,n){return r;function r(t){return KD(t)?XO(e,i)(t):n(t)}function i(t){return YO(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return qD(t)?QD(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||GD(e)?t(e):n(e)}}var tk={name:`hardBreakEscape`,tokenize:nk};function nk(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return GD(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var rk={name:`headingAtx`,resolve:ik,tokenize:ak};function ik(e,t){let n=e.length-2,r=3;if(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){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};AD(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function ak(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||KD(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||GD(n)?(e.exit(`atxHeading`),t(n)):qD(n)?QD(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||KD(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var ok=`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`.split(`.`),sk=[`pre`,`script`,`style`,`textarea`],ck={concrete:!0,name:`htmlFlow`,resolveTo:uk,tokenize:dk},lk={partial:!0,tokenize:fk};function uk(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 dk(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):RD(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):RD(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return RD(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||KD(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&sk.includes(l)?(i=1,r.interrupt?t(s):O(s)):ok.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||zD(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return qD(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||RD(t)?(e.consume(t),b):qD(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||zD(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):qD(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):qD(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||GD(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||KD(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||qD(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||GD(t)?O(t):qD(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):GD(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(lk,R,k)(t)):t===null||GD(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(EO,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||GD(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return sk.includes(n)?(e.consume(t),L):O(t)}return RD(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||GD(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function fk(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(gO,t,n)}}var pk={name:`htmlText`,tokenize:mk};function mk(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):RD(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):RD(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):GD(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):GD(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):GD(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):GD(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return RD(t)?(e.consume(t),S):n(t)}function S(t){return t===45||zD(t)?(e.consume(t),S):C(t)}function C(t){return GD(t)?(o=C,N(t)):qD(t)?(e.consume(t),C):M(t)}function w(t){return t===45||zD(t)?(e.consume(t),w):t===47||t===62||KD(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||RD(t)?(e.consume(t),E):GD(t)?(o=T,N(t)):qD(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||zD(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):GD(t)?(o=D,N(t)):qD(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):GD(t)?(o=O,N(t)):qD(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):GD(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||KD(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||KD(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return qD(t)?QD(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var hk={name:`labelEnd`,resolveAll:yk,resolveTo:bk,tokenize:xk},gk={tokenize:Sk},_k={tokenize:Ck},vk={tokenize:wk};function yk(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&AD(e,0,e.length,n),e}function bk(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=jD(o,e.slice(i+1,i+r+3)),o=jD(o,[[`enter`,l,t]]),o=jD(o,lO(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=jD(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=jD(o,e.slice(a+1)),o=jD(o,[[`exit`,s,t]]),AD(e,i,e.length,o),e}function xk(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(LD(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(gk,u,o?u:d)(t):t===91?e.attempt(_k,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(vk,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Sk(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return KD(t)?XO(e,a)(t):a(t)}function a(t){return t===41?u(t):qO(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return KD(t)?XO(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?YO(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return KD(t)?XO(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Ck(e,t,n){let r=this;return i;function i(t){return JO.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(LD(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function wk(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Tk={name:`labelStartImage`,resolveAll:hk.resolveAll,tokenize:Ek};function Ek(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Dk={name:`labelStartLink`,resolveAll:hk.resolveAll,tokenize:Ok};function Ok(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var kk={name:`lineEnding`,tokenize:Ak};function Ak(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),QD(e,t,`linePrefix`)}}var jk={name:`thematicBreak`,tokenize:Mk};function Mk(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||GD(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),qD(t)?QD(e,s,`whitespace`)(t):s(t))}}var Nk={continuation:{tokenize:Lk},exit:zk,name:`list`,tokenize:Ik},Pk={partial:!0,tokenize:Bk},Fk={partial:!0,tokenize:Rk};function Ik(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:HD(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(jk,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return HD(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(gO,r.interrupt?n:u,e.attempt(Pk,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return qD(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Lk(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(gO,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,QD(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!qD(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Fk,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,QD(e,e.attempt(Nk,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Rk(e,t,n){let r=this;return QD(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function zk(e){e.exit(this.containerState.type)}function Bk(e,t,n){let r=this;return QD(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!qD(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Vk={name:`setextUnderline`,resolveTo:Hk,tokenize:Uk};function Hk(e,t){let n=new nO,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function Uk(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),qD(t)?QD(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||GD(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Wk={tokenize:Gk};function Gk(e){let t=this,n=e.attempt(gO,r,e.attempt(this.parser.constructs.flowInitial,i,QD(e,e.attempt(this.parser.constructs.flow,i,e.attempt(HO,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Kk={resolveAll:Xk()},qk=Yk(`string`),Jk=Yk(`text`);function Yk(e){return{resolveAll:Xk(e===`text`?Zk:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Xk(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Zk(e,t){let n=new nO,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Qk=s({attentionMarkers:()=>oA,contentInitial:()=>eA,disable:()=>sA,document:()=>$k,flow:()=>nA,flowInitial:()=>tA,insideSpan:()=>aA,string:()=>rA,text:()=>iA}),$k={42:Nk,43:Nk,45:Nk,48:Nk,49:Nk,50:Nk,51:Nk,52:Nk,53:Nk,54:Nk,55:Nk,56:Nk,57:Nk,62:vO},eA={91:ZO},tA={[-2]:AO,[-1]:AO,32:AO},nA={35:rk,42:jk,45:[Vk,jk],60:ck,61:Vk,95:jk,96:OO,126:OO},rA={38:wO,92:SO},iA={[-5]:kk,[-4]:kk,[-3]:kk,33:Tk,38:wO,42:uO,60:[mO,pk],91:Dk,92:[tk,SO],93:hk,95:uO,96:PO},aA={null:[uO,Kk]},oA={null:[42,95]},sA={null:[]};function cA(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=jD(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=lO(a,l.events,l),l.events):[]}function f(e,t){return uA(p(e),t)}function p(e){return lA(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){GD(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&AD(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function lA(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function uA(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
33
35
  `;break;case-3:o=`\r
34
- `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function nk(e){let t={constructs:wE([UO,...(e||{}).extensions||[]]),content:n(GE),defined:[],document:n(YE),flow:n(FO),lazy:{},string:n(RO),text:n(zO)};return t;function n(e){return n;function n(n){return $O(t,e,n)}}}function rk(e){for(;!jD(e););return e}var ik=/[\0\t\n\r]/g;function ak(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){ik.lastIndex=c;let n=ik.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var ok=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sk(e){return e.replace(ok,ck)}function ck(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return DE(n.slice(t?2:1),t?16:10)}return bE(n)||e}var lk={}.hasOwnProperty;function uk(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),dk(n)(rk(nk(n).document().write(ak()(e,t,!0))))}function dk(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(le),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(W),blockQuote:a(U),characterEscape:T,characterReference:T,codeFenced:a(re),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(re,o),codeText:a(ie,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ae),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(oe),hardBreakEscape:a(G),hardBreakTrailing:a(G),htmlFlow:a(se,o),htmlFlowData:T,htmlText:a(se,o),htmlTextData:T,image:a(ce),label:o,link:a(le),listItem:a(de),listItemValue:f,listOrdered:a(ue,d),listUnordered:a(ue),paragraph:a(K),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(W),strong:a(fe),thematicBreak:a(me)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ne,autolinkProtocol:te,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:V,characterReference:H,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};pk(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];lk.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||hk).call(a,void 0,e[0])}for(r.position={start:fk(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:fk(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:fk(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||hk).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+MT({start:e.start,end:e.end})+`): it’s not open`);n.position.end=fk(e.end)}function u(){return hE(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=OE(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=pe(),n.position={start:fk(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=fk(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=fk(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=sk(t),n.identifier=OE(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=OE(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ee(e){this.data.characterReferenceType=e.type}function V(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=DE(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=bE(t);let i=this.stack[this.stack.length-1];i.value+=r}function H(e){let t=this.stack.pop();t.position.end=fk(e.end)}function te(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ne(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function U(){return{type:`blockquote`,children:[]}}function re(){return{type:`code`,lang:null,meta:null,value:``}}function ie(){return{type:`inlineCode`,value:``}}function ae(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function oe(){return{type:`emphasis`,children:[]}}function W(){return{type:`heading`,depth:0,children:[]}}function G(){return{type:`break`}}function se(){return{type:`html`,value:``}}function ce(){return{type:`image`,title:null,url:``,alt:null}}function le(){return{type:`link`,title:null,url:``,children:[]}}function ue(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function de(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function K(){return{type:`paragraph`,children:[]}}function fe(){return{type:`strong`,children:[]}}function pe(){return{type:`text`,value:``}}function me(){return{type:`thematicBreak`}}}function fk(e){return{line:e.line,column:e.column,offset:e.offset}}function pk(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?pk(e,r):mk(e,r)}}function mk(e,t){let n;for(n in t)if(lk.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function hk(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+MT({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+MT({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+MT({start:t.start,end:t.end})+`) is still open`)}function gk(e){let t=this;t.parser=n;function n(n){return uk(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function _k(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function vk(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
35
- `}]}function yk(e,t){let n=t.value?t.value+`
36
- `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function bk(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xk(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sk(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=HE(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Ck(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wk(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Tk(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Ek(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Tk(e,t);let i={src:HE(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Dk(e,t){let n={src:HE(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ok(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function kk(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Tk(e,t);let i={href:HE(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ak(e,t){let n={href:HE(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function jk(e,t,n){let r=e.all(t),i=n?Mk(n):Nk(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
36
+ `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function dA(e){let t={constructs:ND([Qk,...(e||{}).extensions||[]]),content:n(eO),defined:[],document:n(iO),flow:n(Wk),lazy:{},string:n(qk),text:n(Jk)};return t;function n(e){return n;function n(n){return cA(t,e,n)}}}function fA(e){for(;!BO(e););return e}var pA=/[\0\t\n\r]/g;function mA(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){pA.lastIndex=c;let n=pA.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var hA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gA(e){return e.replace(hA,_A)}function _A(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return ID(n.slice(t?2:1),t?16:10)}return kD(n)||e}var vA={}.hasOwnProperty;function yA(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),bA(n)(fA(dA(n).document().write(mA()(e,t,!0))))}function bA(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(le),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(W),blockQuote:a(U),characterEscape:T,characterReference:T,codeFenced:a(re),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(re,o),codeText:a(ie,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ae),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(oe),hardBreakEscape:a(G),hardBreakTrailing:a(G),htmlFlow:a(se,o),htmlFlowData:T,htmlText:a(se,o),htmlTextData:T,image:a(ce),label:o,link:a(le),listItem:a(de),listItemValue:f,listOrdered:a(ue,d),listUnordered:a(ue),paragraph:a(K),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(W),strong:a(fe),thematicBreak:a(me)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ne,autolinkProtocol:te,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:V,characterReference:H,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};SA(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];vA.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||wA).call(a,void 0,e[0])}for(r.position={start:xA(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:xA(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:xA(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||wA).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+VE({start:e.start,end:e.end})+`): it’s not open`);n.position.end=xA(e.end)}function u(){return wD(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=LD(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=pe(),n.position={start:xA(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=xA(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=xA(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=gA(t),n.identifier=LD(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=LD(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ee(e){this.data.characterReferenceType=e.type}function V(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=ID(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=kD(t);let i=this.stack[this.stack.length-1];i.value+=r}function H(e){let t=this.stack.pop();t.position.end=xA(e.end)}function te(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ne(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function U(){return{type:`blockquote`,children:[]}}function re(){return{type:`code`,lang:null,meta:null,value:``}}function ie(){return{type:`inlineCode`,value:``}}function ae(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function oe(){return{type:`emphasis`,children:[]}}function W(){return{type:`heading`,depth:0,children:[]}}function G(){return{type:`break`}}function se(){return{type:`html`,value:``}}function ce(){return{type:`image`,title:null,url:``,alt:null}}function le(){return{type:`link`,title:null,url:``,children:[]}}function ue(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function de(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function K(){return{type:`paragraph`,children:[]}}function fe(){return{type:`strong`,children:[]}}function pe(){return{type:`text`,value:``}}function me(){return{type:`thematicBreak`}}}function xA(e){return{line:e.line,column:e.column,offset:e.offset}}function SA(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?SA(e,r):CA(e,r)}}function CA(e,t){let n;for(n in t)if(vA.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function wA(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+VE({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+VE({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+VE({start:t.start,end:t.end})+`) is still open`)}function TA(e){let t=this;t.parser=n;function n(n){return yA(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function EA(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function DA(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
37
+ `}]}function OA(e,t){let n=t.value?t.value+`
38
+ `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function kA(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function AA(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jA(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=ZD(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function MA(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function NA(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function PA(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function FA(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return PA(e,t);let i={src:ZD(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function IA(e,t){let n={src:ZD(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function LA(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function RA(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return PA(e,t);let i={href:ZD(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function zA(e,t){let n={href:ZD(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function BA(e,t,n){let r=e.all(t),i=n?VA(n):HA(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
37
39
  `}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
38
- `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Mk(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Nk(n[r])}return t}function Nk(e){return e.spread??e.children.length>1}function Pk(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Fk(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ik(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Lk(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rk(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=kT(t.children[1]),o=OT(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function zk(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Bk(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Vk=9,Hk=32;function Uk(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Wk(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Wk(t.slice(i),i>0,!1)),a.join(``)}function Wk(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Vk||t===Hk;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Vk||t===Hk;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Gk(e,t){let n={type:`text`,value:Uk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Kk(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var qk={blockquote:_k,break:vk,code:yk,delete:bk,emphasis:xk,footnoteReference:Sk,heading:Ck,html:wk,imageReference:Ek,image:Dk,inlineCode:Ok,linkReference:kk,link:Ak,listItem:jk,list:Pk,paragraph:Fk,root:Ik,strong:Lk,table:Rk,tableCell:Bk,tableRow:zk,text:Gk,thematicBreak:Kk,toml:Jk,yaml:Jk,definition:Jk,footnoteDefinition:Jk};function Jk(){}var{defineProperty:Yk}=Object,Xk=typeof self==`object`?self:globalThis,Zk=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Xk[e](t)},Qk=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Yk(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Xk[e]==`function`?Zk(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(Zk(a,o),i)};return r},$k=e=>Qk(new Map,e)(0),eA=``,{toString:tA}={},{keys:nA,is:rA}=Object,iA=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=tA.call(e).slice(8,-1);switch(n){case`Array`:return[1,eA];case`Object`:return[2,eA];case`Date`:return[3,eA];case`RegExp`:return[4,eA];case`Map`:return[5,eA];case`Set`:return[6,eA];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},aA=([e,t])=>e===0&&(t===`function`||t===`symbol`),oA=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=iA(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&rA(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of nA(o))(e||!aA(iA(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?eA:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(aA(iA(n))||aA(iA(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!aA(iA(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},sA=(e,{json:t,lossy:n}={})=>{let r=[];return oA(!(t||n),!!t,new Map,r)(e),r},cA=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?$k(sA(e,t)):structuredClone(e):(e,t)=>$k(sA(e,t));function lA(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function uA(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function dA(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||lA,r=e.options.footnoteBackLabel||uA,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=HE(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...cA(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
40
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function VA(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=HA(n[r])}return t}function HA(e){return e.spread??e.children.length>1}function UA(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function WA(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function GA(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function KA(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qA(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=RE(t.children[1]),o=LE(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function JA(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function YA(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var XA=9,ZA=32;function QA(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push($A(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push($A(t.slice(i),i>0,!1)),a.join(``)}function $A(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===XA||t===ZA;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===XA||t===ZA;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function ej(e,t){let n={type:`text`,value:QA(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function tj(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var nj={blockquote:EA,break:DA,code:OA,delete:kA,emphasis:AA,footnoteReference:jA,heading:MA,html:NA,imageReference:FA,image:IA,inlineCode:LA,linkReference:RA,link:zA,listItem:BA,list:UA,paragraph:WA,root:GA,strong:KA,table:qA,tableCell:YA,tableRow:JA,text:ej,thematicBreak:tj,toml:rj,yaml:rj,definition:rj,footnoteDefinition:rj};function rj(){}var{defineProperty:ij}=Object,aj=typeof self==`object`?self:globalThis,oj=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new aj[e](t)},sj=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?ij(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof aj[e]==`function`?oj(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(oj(a,o),i)};return r},cj=e=>sj(new Map,e)(0),lj=``,{toString:uj}={},{keys:dj,is:fj}=Object,pj=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=uj.call(e).slice(8,-1);switch(n){case`Array`:return[1,lj];case`Object`:return[2,lj];case`Date`:return[3,lj];case`RegExp`:return[4,lj];case`Map`:return[5,lj];case`Set`:return[6,lj];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},mj=([e,t])=>e===0&&(t===`function`||t===`symbol`),hj=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=pj(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&fj(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of dj(o))(e||!mj(pj(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?lj:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(mj(pj(n))||mj(pj(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!mj(pj(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},gj=(e,{json:t,lossy:n}={})=>{let r=[];return hj(!(t||n),!!t,new Map,r)(e),r},_j=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?cj(gj(e,t)):structuredClone(e):(e,t)=>cj(gj(e,t));function vj(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function yj(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function bj(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||vj,r=e.options.footnoteBackLabel||yj,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=ZD(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{..._j(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
39
41
  `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
40
- `}]}}var fA=(function(e){if(e==null)return _A;if(typeof e==`function`)return gA(e);if(typeof e==`object`)return Array.isArray(e)?pA(e):mA(e);if(typeof e==`string`)return hA(e);throw Error(`Expected function, string, or object as test`)});function pA(e){let t=[],n=-1;for(;++n<e.length;)t[n]=fA(e[n]);return gA(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function mA(e){let t=e;return gA(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function hA(e){return gA(t);function t(t){return t&&t.type===e}}function gA(e){return t;function t(t,n,r){return!!(vA(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function _A(){return!0}function vA(e){return typeof e==`object`&&!!e&&`type`in e}function yA(e){return e}var bA=[];function xA(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=fA(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+yA(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=bA,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=SA(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function SA(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?bA:[e]}function CA(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),xA(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var wA={}.hasOwnProperty,TA={};function EA(e,t){let n=t||TA,r=new Map,i=new Map,a={all:s,applyData:OA,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...qk,...n.handlers},one:o,options:n,patch:DA,wrap:AA};return CA(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(wA.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=cA(n);return r.children=a.all(e),r}return cA(e)}return(a.options.unknownHandler||kA)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=jA(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=jA(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function DA(e,t){e.position&&(t.position=jT(e))}function OA(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,cA(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function kA(e,t){let n=t.data||{},r=`value`in t&&!(wA.call(n,`hProperties`)||wA.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 AA(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
42
+ `}]}}var xj=(function(e){if(e==null)return Ej;if(typeof e==`function`)return Tj(e);if(typeof e==`object`)return Array.isArray(e)?Sj(e):Cj(e);if(typeof e==`string`)return wj(e);throw Error(`Expected function, string, or object as test`)});function Sj(e){let t=[],n=-1;for(;++n<e.length;)t[n]=xj(e[n]);return Tj(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Cj(e){let t=e;return Tj(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function wj(e){return Tj(t);function t(t){return t&&t.type===e}}function Tj(e){return t;function t(t,n,r){return!!(Dj(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Ej(){return!0}function Dj(e){return typeof e==`object`&&!!e&&`type`in e}function Oj(e){return e}var kj=[];function Aj(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=xj(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+Oj(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=kj,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=jj(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function jj(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?kj:[e]}function Mj(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Aj(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Nj={}.hasOwnProperty,Pj={};function Fj(e,t){let n=t||Pj,r=new Map,i=new Map,a={all:s,applyData:Lj,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nj,...n.handlers},one:o,options:n,patch:Ij,wrap:zj};return Mj(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(Nj.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=_j(n);return r.children=a.all(e),r}return _j(e)}return(a.options.unknownHandler||Rj)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=Bj(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Bj(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Ij(e,t){e.position&&(t.position=BE(e))}function Lj(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,_j(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Rj(e,t){let n=t.data||{},r=`value`in t&&!(Nj.call(n,`hProperties`)||Nj.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 zj(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
41
43
  `});++r<e.length;)r&&n.push({type:`text`,value:`
42
44
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
43
- `}),n}function jA(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function MA(e,t){let n=EA(e,t),r=n.one(e,void 0),i=dA(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
44
- `},i)),a}function NA(e,t){return e&&`run`in e?async function(n,r){let i=MA(n,{file:r,...t});await e.run(i,r)}:function(n,r){return MA(n,{file:r,...e||t})}}function PA(e){if(e)throw e}var FA=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function IA(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function LA(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?RA(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function RA(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var zA={basename:BA,dirname:VA,extname:HA,join:UA,sep:`/`};function BA(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);KA(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function VA(e){if(KA(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function HA(e){KA(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function UA(...e){let t=-1,n;for(;++t<e.length;)KA(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:WA(n)}function WA(e){KA(e);let t=e.codePointAt(0)===47,n=GA(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function GA(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function KA(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var qA={cwd:JA};function JA(){return`/`}function YA(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function XA(e){if(typeof e==`string`)e=new URL(e);else if(!YA(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return ZA(e)}function ZA(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var QA=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],$A=class{constructor(e){let t;t=e?YA(e)?{path:e}:typeof e==`string`||rj(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:qA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<QA.length;){let e=QA[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)QA.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?zA.basename(this.path):void 0}set basename(e){tj(e,`basename`),ej(e,`basename`),this.path=zA.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?zA.dirname(this.path):void 0}set dirname(e){nj(this.basename,`dirname`),this.path=zA.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?zA.extname(this.path):void 0}set extname(e){if(ej(e,`extname`),nj(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=zA.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){YA(e)&&(e=XA(e)),tj(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?zA.basename(this.path,this.extname):void 0}set stem(e){tj(e,`stem`),ej(e,`stem`),this.path=zA.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new IT(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function ej(e,t){if(e&&e.includes(zA.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+zA.sep+"`")}function tj(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nj(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function rj(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var ij=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),aj=l(FA(),1),oj={}.hasOwnProperty,sj=new class e extends ij{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=LA()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,aj.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(uj(`data`,this.frozen),this.namespace[e]=t,this):oj.call(this.namespace,e)&&this.namespace[e]||void 0:e?(uj(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=pj(e),n=this.parser||this.Parser;return cj(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),cj(`process`,this.parser||this.Parser),lj(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=pj(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);hj(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),cj(`processSync`,this.parser||this.Parser),lj(`processSync`,this.compiler||this.Compiler),this.process(e,r),fj(`processSync`,`process`,t),n;function r(e,r){t=!0,PA(e),n=r}}run(e,t,n){dj(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=pj(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),fj(`runSync`,`run`,n),r;function i(e,t){PA(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=pj(t),r=this.compiler||this.Compiler;return lj(`stringify`,r),dj(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(uj(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,aj.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];IA(o)&&IA(r)&&(r=(0,aj.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function cj(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function lj(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function uj(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dj(e){if(!IA(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function fj(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function pj(e){return mj(e)?e:new $A(e)}function mj(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function hj(e){return typeof e==`string`||gj(e)}function gj(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var _j=[],vj={allowDangerousHtml:!0},yj=/^(https?|ircs?|mailto|xmpp)$/i,bj=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function xj(e){let t=Sj(e),n=Cj(e);return wj(t.runSync(t.parse(n),n),e)}function Sj(e){let t=e.rehypePlugins||_j,n=e.remarkPlugins||_j,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vj}:vj;return sj().use(gk).use(n).use(NA,r).use(t)}function Cj(e){let t=e.children||``,n=new $A;return typeof t==`string`?n.value=t:``+t,n}function wj(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Tj;for(let e of bj)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return CA(e,l),WT(e,{Fragment:J.Fragment,components:i,ignoreInvalidStyle:!0,jsx:J.jsx,jsxs:J.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in pE)if(Object.hasOwn(pE,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=pE[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Tj(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||yj.test(e.slice(0,t))?e:``}function Ej(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Dj(e){return e}var Oj=[],kj=`skip`;function Aj(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=fA(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+Dj(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=Oj;if(s&&r&&(o=jj(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=jj(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function jj(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Oj:[e]}function Mj(e,t,n){let r=fA((n||{}).ignore||[]),i=Nj(t),a=-1;for(;++a<i.length;)Aj(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return kj}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function Nj(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([Pj(e[0]),Fj(e[1])])}return t}function Pj(e){return typeof e==`string`?new RegExp(Ej(e),`g`):e}function Fj(e){return typeof e==`function`?e:function(){return e}}function Ij(e){Mj(e,[/\r?\n|\r/g,Lj])}function Lj(){return{type:`break`}}function Rj(){return function(e){Ij(e)}}function zj(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Bj=`phrasing`,Vj=[`autolink`,`link`,`image`,`label`];function Hj(){return{transforms:[Xj],enter:{literalAutolink:Wj,literalAutolinkEmail:Gj,literalAutolinkHttp:Gj,literalAutolinkWww:Gj},exit:{literalAutolink:Yj,literalAutolinkEmail:Jj,literalAutolinkHttp:Kj,literalAutolinkWww:qj}}}function Uj(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Bj,notInConstruct:Vj},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Bj,notInConstruct:Vj},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Bj,notInConstruct:Vj}]}}function Wj(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Gj(e){this.config.enter.autolinkProtocol.call(this,e)}function Kj(e){this.config.exit.autolinkProtocol.call(this,e)}function qj(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Jj(e){this.config.exit.autolinkEmail.call(this,e)}function Yj(e){this.exit(e)}function Xj(e){Mj(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Zj],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Qj]],{ignore:[`link`,`linkReference`]})}function Zj(e,t,n,r,i){let a=``;if(!tM(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!$j(n)))return!1;let o=eM(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Qj(e,t,n,r){return!tM(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function $j(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function eM(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=zj(e,`(`),a=zj(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function tM(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||BE(n)||zE(n))&&(!t||n!==47)}dM.peek=uM;function nM(){this.buffer()}function rM(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function iM(){this.buffer()}function aM(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function oM(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=OE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sM(e){this.exit(e)}function cM(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=OE(this.sliceSerialize(e)).toLowerCase(),n.label=t}function lM(e){this.exit(e)}function uM(){return`[`}function dM(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function fM(){return{enter:{gfmFootnoteCallString:nM,gfmFootnoteCall:rM,gfmFootnoteDefinitionLabelString:iM,gfmFootnoteDefinition:aM},exit:{gfmFootnoteCallString:oM,gfmFootnoteCall:sM,gfmFootnoteDefinitionLabelString:cM,gfmFootnoteDefinition:lM}}}function pM(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:dM},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
45
- `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?hM:mM))),s(),o}}function mM(e,t,n){return t===0?e:hM(e,t,n)}function hM(e,t,n){return(n?``:` `)+e}var gM=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];xM.attention=SM,xM.peek=CM;function _M(){return{canContainEols:[`delete`],enter:{strikethrough:yM},exit:{strikethrough:bM}}}function vM(){return{handlers:{delete:xM},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:gM}]}}function yM(e){this.enter({type:`delete`,children:[],position:void 0},e)}function bM(e){this.exit(e)}function xM(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function SM(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function CM(){return`~`}function wM(e){return e.length}function TM(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||wM,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=EM(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=DM(r[d]);else{let e=DM(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
46
- `)}function EM(e){return e==null?``:String(e)}function DM(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var OM=fA([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function kM(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),AM);return i(),o}function AM(e,t,n){return`>`+(n?``:` `)+e}function jM(e,t){return MM(e,t.inConstruct,!0)&&!MM(e,t.notInConstruct,!1)}function MM(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function NM(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
47
- `&&!e.before&&!e.after&&jM(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
48
- `}function PM(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function FM(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function IM(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function LM(e,t,n,r){let i=IM(n),a=e.value||``;if(FM(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,RM);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(PM(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
45
+ `}),n}function Bj(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Vj(e,t){let n=Fj(e,t),r=n.one(e,void 0),i=bj(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
46
+ `},i)),a}function Hj(e,t){return e&&`run`in e?async function(n,r){let i=Vj(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Vj(n,{file:r,...e||t})}}function Uj(e){if(e)throw e}var Wj=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Gj(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kj(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?qj(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function qj(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Jj={basename:Yj,dirname:Xj,extname:Zj,join:Qj,sep:`/`};function Yj(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);tM(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Xj(e){if(tM(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Zj(e){tM(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Qj(...e){let t=-1,n;for(;++t<e.length;)tM(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:$j(n)}function $j(e){tM(e);let t=e.codePointAt(0)===47,n=eM(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function eM(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function tM(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var nM={cwd:rM};function rM(){return`/`}function iM(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function aM(e){if(typeof e==`string`)e=new URL(e);else if(!iM(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return oM(e)}function oM(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var sM=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],cM=class{constructor(e){let t;t=e?iM(e)?{path:e}:typeof e==`string`||fM(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:nM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<sM.length;){let e=sM[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)sM.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Jj.basename(this.path):void 0}set basename(e){uM(e,`basename`),lM(e,`basename`),this.path=Jj.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Jj.dirname(this.path):void 0}set dirname(e){dM(this.basename,`dirname`),this.path=Jj.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Jj.extname(this.path):void 0}set extname(e){if(lM(e,`extname`),dM(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Jj.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){iM(e)&&(e=aM(e)),uM(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Jj.basename(this.path,this.extname):void 0}set stem(e){uM(e,`stem`),lM(e,`stem`),this.path=Jj.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new GE(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function lM(e,t){if(e&&e.includes(Jj.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Jj.sep+"`")}function uM(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function dM(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function fM(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var pM=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),mM=l(Wj(),1),hM={}.hasOwnProperty,gM=new class e extends pM{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Kj()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,mM.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(yM(`data`,this.frozen),this.namespace[e]=t,this):hM.call(this.namespace,e)&&this.namespace[e]||void 0:e?(yM(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=SM(e),n=this.parser||this.Parser;return _M(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),_M(`process`,this.parser||this.Parser),vM(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=SM(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);wM(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),_M(`processSync`,this.parser||this.Parser),vM(`processSync`,this.compiler||this.Compiler),this.process(e,r),xM(`processSync`,`process`,t),n;function r(e,r){t=!0,Uj(e),n=r}}run(e,t,n){bM(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=SM(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),xM(`runSync`,`run`,n),r;function i(e,t){Uj(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=SM(t),r=this.compiler||this.Compiler;return vM(`stringify`,r),bM(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(yM(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,mM.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Gj(o)&&Gj(r)&&(r=(0,mM.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function _M(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function vM(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function yM(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bM(e){if(!Gj(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function xM(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function SM(e){return CM(e)?e:new cM(e)}function CM(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function wM(e){return typeof e==`string`||TM(e)}function TM(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var EM=[],DM={allowDangerousHtml:!0},OM=/^(https?|ircs?|mailto|xmpp)$/i,kM=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function AM(e){let t=jM(e),n=MM(e);return NM(t.runSync(t.parse(n),n),e)}function jM(e){let t=e.rehypePlugins||EM,n=e.remarkPlugins||EM,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...DM}:DM;return gM().use(TA).use(n).use(Hj,r).use(t)}function MM(e){let t=e.children||``,n=new cM;return typeof t==`string`?n.value=t:``+t,n}function NM(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||PM;for(let e of kM)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return Mj(e,l),$E(e,{Fragment:J.Fragment,components:i,ignoreInvalidStyle:!0,jsx:J.jsx,jsxs:J.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in SD)if(Object.hasOwn(SD,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=SD[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function PM(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||OM.test(e.slice(0,t))?e:``}function FM(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function IM(e){return e}var LM=[],RM=`skip`;function zM(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=xj(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+IM(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=LM;if(s&&r&&(o=BM(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=t.children[e],i=d(n,e,r)();if(i[0]===!1)return i;e=typeof i[1]==`number`?i[1]:e+u}}}if(c&&r){let r=BM(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function BM(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?LM:[e]}function VM(e,t,n){let r=xj((n||{}).ignore||[]),i=HM(t),a=-1;for(;++a<i.length;)zM(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return RM}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i===!1)o.lastIndex=n+1;else{if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function HM(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([UM(e[0]),WM(e[1])])}return t}function UM(e){return typeof e==`string`?new RegExp(FM(e),`g`):e}function WM(e){return typeof e==`function`?e:function(){return e}}function GM(e){VM(e,[/\r?\n|\r/g,KM])}function KM(){return{type:`break`}}function qM(){return function(e){GM(e)}}function JM(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var YM=`phrasing`,XM=[`autolink`,`link`,`image`,`label`];function ZM(){return{transforms:[aN],enter:{literalAutolink:$M,literalAutolinkEmail:eN,literalAutolinkHttp:eN,literalAutolinkWww:eN},exit:{literalAutolink:iN,literalAutolinkEmail:rN,literalAutolinkHttp:tN,literalAutolinkWww:nN}}}function QM(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:YM,notInConstruct:XM},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:YM,notInConstruct:XM},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:YM,notInConstruct:XM}]}}function $M(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function eN(e){this.config.enter.autolinkProtocol.call(this,e)}function tN(e){this.config.exit.autolinkProtocol.call(this,e)}function nN(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function rN(e){this.config.exit.autolinkEmail.call(this,e)}function iN(e){this.exit(e)}function aN(e){VM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,oN],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,sN]],{ignore:[`link`,`linkReference`]})}function oN(e,t,n,r,i){let a=``;if(!uN(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!cN(n)))return!1;let o=lN(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function sN(e,t,n,r){return!uN(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function cN(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function lN(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=JM(e,`(`),a=JM(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function uN(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||YD(n)||JD(n))&&(!t||n!==47)}bN.peek=yN;function dN(){this.buffer()}function fN(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function pN(){this.buffer()}function mN(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function hN(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=LD(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gN(e){this.exit(e)}function _N(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=LD(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vN(e){this.exit(e)}function yN(){return`[`}function bN(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function xN(){return{enter:{gfmFootnoteCallString:dN,gfmFootnoteCall:fN,gfmFootnoteDefinitionLabelString:pN,gfmFootnoteDefinition:mN},exit:{gfmFootnoteCallString:hN,gfmFootnoteCall:gN,gfmFootnoteDefinitionLabelString:_N,gfmFootnoteDefinition:vN}}}function SN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:bN},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
47
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?wN:CN))),s(),o}}function CN(e,t,n){return t===0?e:wN(e,t,n)}function wN(e,t,n){return(n?``:` `)+e}var TN=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];AN.attention=jN,AN.peek=MN;function EN(){return{canContainEols:[`delete`],enter:{strikethrough:ON},exit:{strikethrough:kN}}}function DN(){return{handlers:{delete:AN},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:TN}]}}function ON(e){this.enter({type:`delete`,children:[],position:void 0},e)}function kN(e){this.exit(e)}function AN(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function jN(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function MN(){return`~`}function NN(e){return e.length}function PN(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||NN,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=FN(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=IN(r[d]);else{let e=IN(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
48
+ `)}function FN(e){return e==null?``:String(e)}function IN(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var LN=xj([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function RN(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),zN);return i(),o}function zN(e,t,n){return`>`+(n?``:` `)+e}function BN(e,t){return VN(e,t.inConstruct,!0)&&!VN(e,t.notInConstruct,!1)}function VN(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function HN(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
49
+ `&&!e.before&&!e.after&&BN(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
50
+ `}function UN(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function WN(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function GN(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function KN(e,t,n,r){let i=GN(n),a=e.value||``;if(WN(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,qN);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(UN(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
49
51
  `,encode:["`"],...o.current()})),t()}return u+=o.move(`
50
52
  `),a&&(u+=o.move(a+`
51
- `)),u+=o.move(s),c(),u}function RM(e,t,n){return(n?``:` `)+e}function zM(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function BM(e,t,n,r){let i=zM(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
52
- `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function VM(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}HM.attention=UM,HM.peek=WM;function HM(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function UM(e,t){return{construct:`emphasis`,markers:VM(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function WM(e,t,n){return n.options.emphasis||`*`}function GM(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function KM(e,t){let n=!1;return CA(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&hE(e)&&(t.options.setext||n))}function qM(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(KM(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
53
+ `)),u+=o.move(s),c(),u}function qN(e,t,n){return(n?``:` `)+e}function JN(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function YN(e,t,n,r){let i=JN(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
54
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function XN(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}ZN.attention=QN,ZN.peek=$N;function ZN(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function QN(e,t){return{construct:`emphasis`,markers:XN(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function $N(e,t,n){return n.options.emphasis||`*`}function eP(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function tP(e,t){let n=!1;return Mj(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&wD(e)&&(t.options.setext||n))}function nP(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(tP(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
53
55
  `,after:`
54
56
  `});return r(),t(),o+`
55
57
  `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
56
58
  `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
57
- `,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=GM(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}JM.peek=YM;function JM(e){return e.value||``}function YM(){return`<`}XM.peek=ZM;function XM(e,t,n,r){let i=zM(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function ZM(){return`!`}QM.peek=$M;function QM(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function $M(){return`!`}eN.peek=tN;function eN(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function tN(){return"`"}function nN(e,t){let n=hE(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))}rN.peek=iN;function rN(e,t,n,r){let i=zM(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(nN(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function iN(e,t,n){return nN(e,n)?`<`:`[`}aN.peek=oN;function aN(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function oN(){return`[`}function sN(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function cN(e){let t=sN(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function lN(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function uN(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dN(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?lN(n):sN(n),s=e.ordered?o===`.`?`)`:`.`:cN(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.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||(c=!0),uN(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function fN(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function pN(e,t,n,r){let i=fN(n),a=n.bulletCurrent||sN(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function mN(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function hN(e,t,n,r){if(!e.children.some(function(e){return OM(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function gN(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_N.attention=vN,_N.peek=yN;function _N(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function vN(e,t){return{construct:`strong`,markers:gN(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function yN(e,t,n){return n.options.strong||`*`}function bN(e,t,n,r){return n.safe(e.value,r)}function xN(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function SN(e,t,n){let r=(uN(n)+(n.options.ruleSpaces?` `:``)).repeat(xN(n));return n.options.ruleSpaces?r.slice(0,-1):r}var CN={blockquote:kM,break:NM,code:LM,definition:BM,emphasis:HM,hardBreak:NM,heading:qM,html:JM,image:XM,imageReference:QM,inlineCode:eN,link:rN,linkReference:aN,list:dN,listItem:pN,paragraph:mN,root:hN,strong:_N,text:bN,thematicBreak:SN};function wN(){return{enter:{table:TN,tableData:kN,tableHeader:kN,tableRow:DN},exit:{codeText:AN,table:EN,tableData:ON,tableHeader:ON,tableRow:ON}}}function TN(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function EN(e){this.exit(e),this.data.inTable=void 0}function DN(e){this.enter({type:`tableRow`,children:[]},e)}function ON(e){this.exit(e)}function kN(e){this.enter({type:`tableCell`,children:[]},e)}function AN(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,jN));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function jN(e,t){return t===`|`?t:e}function MN(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
59
+ `,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=eP(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}rP.peek=iP;function rP(e){return e.value||``}function iP(){return`<`}aP.peek=oP;function aP(e,t,n,r){let i=JN(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function oP(){return`!`}sP.peek=cP;function sP(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function cP(){return`!`}lP.peek=uP;function lP(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function uP(){return"`"}function dP(e,t){let n=wD(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))}fP.peek=pP;function fP(e,t,n,r){let i=JN(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(dP(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function pP(e,t,n){return dP(e,n)?`<`:`[`}mP.peek=hP;function mP(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function hP(){return`[`}function gP(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function _P(e){let t=gP(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function vP(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function yP(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bP(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?vP(n):gP(n),s=e.ordered?o===`.`?`)`:`.`:_P(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.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||(c=!0),yP(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function xP(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function SP(e,t,n,r){let i=xP(n),a=n.bulletCurrent||gP(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function CP(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function wP(e,t,n,r){if(!e.children.some(function(e){return LN(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function TP(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}EP.attention=DP,EP.peek=OP;function EP(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function DP(e,t){return{construct:`strong`,markers:TP(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function OP(e,t,n){return n.options.strong||`*`}function kP(e,t,n,r){return n.safe(e.value,r)}function AP(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function jP(e,t,n){let r=(yP(n)+(n.options.ruleSpaces?` `:``)).repeat(AP(n));return n.options.ruleSpaces?r.slice(0,-1):r}var MP={blockquote:RN,break:HN,code:KN,definition:YN,emphasis:ZN,hardBreak:HN,heading:nP,html:rP,image:aP,imageReference:sP,inlineCode:lP,link:fP,linkReference:mP,list:bP,listItem:SP,paragraph:CP,root:wP,strong:EP,text:kP,thematicBreak:jP};function NP(){return{enter:{table:PP,tableData:RP,tableHeader:RP,tableRow:IP},exit:{codeText:zP,table:FP,tableData:LP,tableHeader:LP,tableRow:LP}}}function PP(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function FP(e){this.exit(e),this.data.inTable=void 0}function IP(e){this.enter({type:`tableRow`,children:[]},e)}function LP(e){this.exit(e)}function RP(e){this.enter({type:`tableCell`,children:[]},e)}function zP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,BP));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function BP(e,t){return t===`|`?t:e}function VP(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
58
60
  `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
59
- `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return TM(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=CN.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function NN(){return{exit:{taskListCheckValueChecked:FN,taskListCheckValueUnchecked:FN,paragraph:IN}}}function PN(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:LN}}}function FN(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function IN(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function LN(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=CN.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function RN(){return[Hj(),fM(),_M(),wN(),NN()]}function zN(e){return{extensions:[Uj(),pM(e),vM(),MN(e),PN()]}}var BN={tokenize:eP,partial:!0},VN={tokenize:tP,partial:!0},HN={tokenize:nP,partial:!0},UN={tokenize:rP,partial:!0},WN={tokenize:iP,partial:!0},GN={name:`wwwAutolink`,tokenize:QN,previous:aP},KN={name:`protocolAutolink`,tokenize:$N,previous:oP},qN={name:`emailAutolink`,tokenize:ZN,previous:sP},JN={};function YN(){return{text:JN}}for(var XN=48;XN<123;)JN[XN]=qN,XN++,XN===58?XN=65:XN===91&&(XN=97);JN[43]=qN,JN[45]=qN,JN[46]=qN,JN[95]=qN,JN[72]=[qN,KN],JN[104]=[qN,KN],JN[87]=[qN,GN],JN[119]=[qN,GN];function ZN(e,t,n){let r=this,i,a;return o;function o(t){return!cP(t)||!sP.call(r,r.previous)||lP(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return cP(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(WN,u,l)(t):t===45||t===95||AE(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&kE(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function QN(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!aP.call(r,r.previous)||lP(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(BN,e.attempt(VN,e.attempt(HN,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function $N(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&oP.call(r,r.previous)&&!lP(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(kE(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||ME(t)||LE(t)||BE(t)||zE(t)?n(t):e.attempt(VN,e.attempt(HN,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function eP(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function tP(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(UN,c,s)(t):t===null||LE(t)||BE(t)||t!==45&&zE(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function nP(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(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(UN,t,a)(o):o===null||LE(o)||BE(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function rP(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||LE(o)||BE(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||LE(e)||BE(e)?t(e):r(e)}function a(e){return kE(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):kE(t)?(e.consume(t),o):n(t)}}function iP(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return AE(e)?n(e):t(e)}}function aP(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||LE(e)}function oP(e){return!kE(e)}function sP(e){return!(e===47||cP(e))}function cP(e){return e===43||e===45||e===46||e===95||AE(e)}function lP(e){let t=e.length,n=!1;for(;t--;){let 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}var uP={tokenize:vP,partial:!0};function dP(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:hP,continuation:{tokenize:gP},exit:_P}},text:{91:{name:`gfmFootnoteCall`,tokenize:mP},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:fP,resolveTo:pP}}}}function fP(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=OE(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function pP(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`;let 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++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function mP(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||LE(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(OE(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return LE(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function hP(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||LE(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=OE(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return LE(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),UE(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function gP(e,t,n){return e.check(sD,t,e.attempt(uP,t,n))}function _P(e){e.exit(`gfmFootnoteDefinition`)}function vP(e,t,n){let r=this;return UE(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function yP(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&xE(o,o.length,0,eD(s,e.slice(r+1,n),t)),xE(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),xE(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=$E(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=$E(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var bP=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){xP(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function xP(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function SP(e,t){let n=!1,r=[];for(;t<e.length;){let 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`){let e=r.length-1;r[e]=r[e]===`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 CP(){return{flow:{null:{name:`table`,tokenize:wP,resolveAll:TP}}}}function wP(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):IE(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):RE(t)?UE(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||LE(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,RE(t)?UE(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return RE(t)?UE(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||IE(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return RE(t)?UE(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||IE(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||IE(n)?(e.exit(`tableRow`),t(n)):RE(n)?UE(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||LE(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function TP(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new bP;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(DP(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=EP(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=EP(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=EP(f,t,o,i,n,d)):(o[0]=o[1],d=EP(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&DP(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=SP(t.events,n))}return e}function EP(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},OP(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=OP(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=OP(t.events,n[2]),a=OP(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},OP(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function DP(e,t,n,r,i){let a=[],o=OP(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function OP(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var kP={name:`tasklistCheck`,tokenize:jP};function AP(){return{text:{91:kP}}}function jP(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return LE(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return IE(r)?t(r):RE(r)?e.check({tokenize:MP},t,n)(r):n(r)}}function MP(e,t,n){return UE(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function NP(e){return wE([YN(),dP(),yP(e),CP(),AP()])}var PP={};function FP(e){let t=this,n=e||PP,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(NP(n)),a.push(RN()),o.push(zN(n))}var IP=q(`markdown min-w-0 text-[13px] leading-relaxed break-words text-kumo-default`,`[&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,`[&_p]:my-2`,`[&_h1]:mt-4 [&_h1]:mb-2 [&_h1]:text-[15px] [&_h1]:font-semibold [&_h1]:text-kumo-strong`,`[&_h2]:mt-4 [&_h2]:mb-2 [&_h2]:text-[14px] [&_h2]:font-semibold [&_h2]:text-kumo-strong`,`[&_h3]:mt-3 [&_h3]:mb-1 [&_h3]:text-[13px] [&_h3]:font-semibold [&_h3]:text-kumo-strong`,`[&_h4]:mt-3 [&_h4]:mb-1 [&_h4]:font-semibold [&_h5]:font-semibold [&_h6]:font-semibold`,`[&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5`,`[&_li]:my-0.5 [&_li>p]:my-0.5 [&_li::marker]:text-kumo-subtle`,`[&_li:has(>input)]:list-none [&_li>input]:mr-1.5 [&_li>input]:align-middle`,`[&_blockquote]:my-2 [&_blockquote]:border-l-2 [&_blockquote]:border-kumo-line [&_blockquote]:pl-3 [&_blockquote]:text-kumo-subtle`,`[&_hr]:my-3 [&_hr]:border-kumo-hairline`,`[&_a]:text-kumo-link [&_a]:underline [&_a]:underline-offset-2`,`[&_strong]:font-semibold [&_strong]:text-kumo-strong`,`[&_code]:rounded [&_code]:bg-kumo-elevated [&_code]:px-1 [&_code]:py-px [&_code]:font-mono [&_code]:text-[12px]`,`[&_pre]:my-2 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-kumo-elevated [&_pre]:px-3 [&_pre]:py-2 [&_pre]:leading-normal`,`[&_pre_code]:bg-transparent [&_pre_code]:p-0`,`[&_table]:my-2 [&_table]:block [&_table]:max-w-full [&_table]:overflow-x-auto [&_table]:border-collapse [&_table]:text-[12px]`,`[&_th]:border [&_th]:border-kumo-hairline [&_th]:bg-kumo-elevated [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-medium`,`[&_td]:border [&_td]:border-kumo-hairline [&_td]:px-2 [&_td]:py-1 [&_td]:align-top`),LP=[FP,Rj];function RP(e){return/[`*_#>|[\]~]|^\s*([-+]|\d+\.)\s/m.test(e)}var zP={a:({href:e,title:t,children:n})=>(0,J.jsx)(`a`,{href:e,title:t,target:`_blank`,rel:`noopener noreferrer nofollow`,children:n}),img:({src:e,alt:t})=>typeof e==`string`&&e?(0,J.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer nofollow`,children:t?`Image: ${t}`:`Image`}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:t?`Image: ${t}`:`Image`})};function BP({children:e,className:t}){return(0,J.jsx)(`div`,{className:q(IP,t),children:(0,J.jsx)(xj,{remarkPlugins:LP,components:zP,children:e})})}var VP=[`command`,`cmd`,`script`],HP=[`cwd`,`workdir`,`directory`,`dir`];function UP(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function WP(e){if(typeof e==`string`&&e.trim())return e;if(Array.isArray(e)&&e.length&&e.every(e=>typeof e==`string`))return e.map(e=>/^[\w./=:@%+-]+$/.test(e)?e:`'${e.replace(/'/g,`'\\''`)}'`).join(` `)}function GP(e){if(!Array.isArray(e))return;let t=e.map(e=>UP(e)).filter(e=>e?.type===`text`&&typeof e.text==`string`).map(e=>e.text);return t.length?t.join(`
60
- `):void 0}function KP(e,t){for(let n of t)if(typeof e[n]==`number`)return e[n]}function qP(e,t){let n=UP(e);if(!n)return;let r=VP.find(e=>WP(n[e]));if(!r)return;let i=HP.find(e=>typeof n[e]==`string`),a={command:WP(n[r]),...i?{cwd:n[i]}:{},failed:!1,options:Object.entries(n).filter(([e])=>e!==r&&e!==i)};if(!t)return a;let o=t.value,s=UP(o);if(typeof o==`string`)return{...a,output:o};if(!s)return a;let c=(typeof s.output==`string`?s.output:void 0)??(typeof s.stdout==`string`?s.stdout:void 0)??GP(s.content)??(typeof s.text==`string`?s.text:void 0),l=typeof s.stderr==`string`&&s.stderr?s.stderr:void 0,u=KP(s,[`exitCode`,`exit_code`,`code`,`status`]);return{...a,...c===void 0?{}:{output:c},...l?{stderr:l}:{},...u===void 0?{}:{exitCode:u},failed:s.isError===!0||s.is_error===!0||u!==void 0&&u!==0}}function JP(e){if(e)return e.inputTokens!==void 0||e.outputTokens!==void 0?(e.inputTokens??0)+(e.outputTokens??0):e.totalTokens}var YP=e=>typeof e==`string`?e:void 0,XP=e=>typeof e==`number`&&Number.isFinite(e)?e:void 0;function ZP(e){if(typeof e==`object`&&e){let t=e;return{name:YP(t.name),message:YP(t.message)??JSON.stringify(e),stack:YP(t.stack)}}return{message:String(e)}}function QP(e){if(typeof e!=`object`||!e)return;let t=e,n={inputTokens:XP(t.inputTokens),outputTokens:XP(t.outputTokens),cachedInputTokens:XP(t.cachedInputTokens),totalTokens:XP(t.totalTokens)};return Object.values(n).some(e=>e!==void 0)?n:void 0}var $P=new Set([`run-started`,`run-completed`,`started`,`transcript-step-completed`]);function eF(e){let t=e.map(e=>Date.parse(e.timestamp)),n=t.find(e=>!Number.isNaN(e))??0,r=e=>{let r=t[e];return Number.isNaN(r)?0:Math.max(0,r-n)},i=[],a=[],o=new Map,s=new Map,c=new Map,l=new Map,u,d=!1,f=()=>a.at(-1)?.items??i,p=()=>(a.push({items:[]}),d=!1,a.at(-1));e.forEach((e,t)=>{let n=r(t);if(!$P.has(e.kind))switch(e.kind){case`transcript-step-started`:{let t=YP(e.message);if(t===void 0)return;p().items.push({type:`user`,at:n,text:t}),d=!0;return}case`turn-started`:{let t=XP(e.turn),n=d?a.at(-1):p();n.turn=t,d=!1;return}case`turn-completed`:{let t=a.at(-1);if(!t)return;t.turn??=XP(e.turn),t.latencyMs=XP(e.latencyMs),t.usage=QP(e.usage);return}case`message`:{d=!1;let t=YP(e.role)??`unknown`;if(t===`user`){let t=typeof e.content==`string`?e.content:void 0,r=a.at(-1)?.items.find(e=>e.type===`user`);if(t!==void 0&&r?.type===`user`&&r.text===t)return;f().push({type:`user`,at:n,text:t??JSON.stringify(e.content)});return}if(t===`assistant`){u=e.content,f().push({type:`assistant`,at:n,content:e.content});return}f().push({type:`message`,at:n,role:t,content:e.content});return}case`tool-call`:{d=!1;let r=YP(e.id)??`call-${t}`,i={type:`tool`,at:n,id:r,name:YP(e.name)??`tool`,arguments:e.arguments};c.set(r,i),f().push(i);return}case`tool-result`:{let r=c.get(YP(e.id)??``);if(r&&!r.result){r.result={value:e.result,durationMs:n-r.at};return}f().push({type:`tool`,at:n,id:YP(e.id)??`result-${t}`,name:YP(e.name)??`tool`,result:{value:e.result,durationMs:0}});return}case`checkpoint-started`:{let r=XP(e.step)??t,i={type:`checkpoint`,at:n,step:r,name:YP(e.name)??`step ${r+1}`,state:`running`};l.set(r,i),f().push(i);return}case`checkpoint-completed`:case`checkpoint-error`:{let t=XP(e.step)??-1,r=l.get(t);if(!r)return;if(r.durationMs=n-r.at,e.kind===`checkpoint-error`)r.state=`error`,r.error=ZP(e.error);else{let t=YP(e.status);r.state=t===`passed`||t===`failed`||t===`skipped`?t:`error`}return}case`transcript-step-skipped`:f().push({type:`skipped-step`,at:n,step:XP(e.step)??-1});return;case`scorer-started`:s.set(YP(e.scorer)??`scorer`,n);return;case`scorer-completed`:case`scorer-failed`:{let t=YP(e.scorer)??`scorer`,r=s.get(t);o.set(t,{name:t,value:XP(e.value),skipped:e.skipped===!0,error:e.kind===`scorer-failed`?ZP(e.error):void 0,durationMs:r===void 0?void 0:n-r});return}case`completed`:if(e.output===void 0||JSON.stringify(e.output)===JSON.stringify(u))return;f().push({type:`output`,at:n,output:e.output});return;case`error`:f().push({type:`error`,at:n,source:e.source,error:ZP(e.error)});return;default:f().push({type:`unknown`,at:n,event:e})}});let m=e.length?r(e.length-1):void 0;return{preamble:i,turns:a,scorers:[...o.values()],durationMs:m}}function tF(e){if(e<1)return`<1ms`;if(e<1e3)return`${Math.round(e)}ms`;if(e<6e4)return`${(e/1e3).toFixed(e<1e4?2:1)}s`;let t=Math.floor(e/6e4),n=Math.round(e%6e4/1e3);return`${t}m ${String(n).padStart(2,`0`)}s`}function nF(e){let t=JP(e),n=[e.inputTokens===void 0?void 0:`${e.inputTokens.toLocaleString()} in`,e.outputTokens===void 0?void 0:`${e.outputTokens.toLocaleString()} out`,e.cachedInputTokens?`${e.cachedInputTokens.toLocaleString()} cached`:void 0].filter(Boolean),r=t===void 0?``:`${t.toLocaleString()} tokens`;return n.length?`${r}${r?` `:``}(${n.join(` · `)})`:r}function rF({events:e}){let[t,n]=(0,v.useState)(`conversation`),r=eF(e);return(0,J.jsxs)(`section`,{className:`trajectory flex min-w-0 flex-col gap-3`,children:[(0,J.jsxs)(`header`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`Trajectory`}),(0,J.jsx)(ub,{variant:`segmented`,size:`sm`,value:t,onValueChange:e=>n(e),tabs:[{value:`conversation`,label:`Conversation`},{value:`events`,label:`All events (${e.length})`}]})]}),t===`events`?(0,J.jsx)(uF,{events:e}):(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[r.preamble.length?(0,J.jsx)(aF,{items:r.preamble}):null,r.turns.map((e,t)=>(0,J.jsx)(iF,{turn:e,index:t},t)),e.length?(0,J.jsx)(lF,{durationMs:r.durationMs,scorers:r.scorers}):(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`No events recorded.`})]})]})}function iF({turn:e,index:t}){let n=[e.latencyMs===void 0?void 0:tF(e.latencyMs),e.usage?nF(e.usage):void 0].filter(Boolean);return(0,J.jsxs)(`section`,{className:`turn border-t border-kumo-line pt-3 pb-4 first:border-t-0 first:pt-0`,"aria-label":`Turn ${e.turn??t+1}`,children:[(0,J.jsxs)(`header`,{className:`mb-2 flex items-baseline justify-between gap-3 text-xs`,children:[(0,J.jsxs)(`h4`,{className:`font-medium text-kumo-strong`,children:[`Turn `,e.turn??t+1]}),n.length?(0,J.jsx)(`span`,{className:`text-kumo-subtle tabular-nums`,children:n.join(` · `)}):null]}),(0,J.jsx)(aF,{items:e.items})]})}function aF({items:e}){return(0,J.jsx)(`ol`,{className:`relative flex flex-col gap-3 before:absolute before:top-2 before:bottom-2 before:left-[11px] before:w-px before:bg-kumo-line`,children:e.map((e,t)=>(0,J.jsx)(`li`,{className:`trajectory-item item-${e.type}`,children:(0,J.jsx)(sF,{item:e})},t))})}function oF({icon:e,tone:t=`default`,label:n,at:r,children:i}){return(0,J.jsxs)(`div`,{className:`grid grid-cols-[24px_minmax(0,1fr)] gap-x-3`,children:[(0,J.jsx)(`span`,{className:q(`relative z-10 flex size-6 items-center justify-center rounded-full border border-kumo-line bg-kumo-base text-[13px]`,t===`danger`&&`border-kumo-danger text-kumo-danger`,t===`muted`?`text-kumo-subtle`:`text-kumo-default`),"aria-hidden":!0,children:e}),(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5 pt-0.5`,children:[(0,J.jsxs)(`div`,{className:`flex min-h-5 items-baseline gap-2 text-xs`,children:[(0,J.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-1`,children:n}),r===void 0?null:(0,J.jsxs)(`time`,{className:`shrink-0 font-mono text-[11px] text-kumo-subtle tabular-nums`,children:[`+`,tF(r)]})]}),i]})]})}function sF({item:e}){switch(e.type){case`user`:return(0,J.jsx)(oF,{icon:(0,J.jsx)(hp,{}),label:(0,J.jsx)(dF,{children:`User`}),at:e.at,children:(0,J.jsx)(xF,{className:`rounded-lg bg-kumo-elevated px-3 py-2`,children:e.text})});case`assistant`:return(0,J.jsx)(oF,{icon:(0,J.jsx)(up,{}),label:(0,J.jsx)(dF,{children:`Assistant`}),at:e.at,children:(0,J.jsx)(vF,{value:e.content,markdown:!0})});case`message`:return(0,J.jsx)(oF,{icon:(0,J.jsx)(np,{}),tone:`muted`,label:(0,J.jsxs)(dF,{children:[e.role,` message`]}),at:e.at,children:(0,J.jsx)(vF,{value:e.content})});case`tool`:return(0,J.jsx)(cF,{item:e});case`checkpoint`:return(0,J.jsx)(oF,{icon:(0,J.jsx)(Xf,{}),tone:e.state===`error`?`danger`:`default`,label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(dF,{children:`Checkpoint`}),(0,J.jsx)(`span`,{className:`text-[13px] text-kumo-default`,children:e.name}),(0,J.jsx)(_w,{status:e.state}),e.durationMs===void 0?null:(0,J.jsx)(fF,{children:tF(e.durationMs)})]}),at:e.at,children:e.error?(0,J.jsx)(mF,{error:e.error}):null});case`skipped-step`:return(0,J.jsx)(oF,{icon:(0,J.jsx)(fp,{}),tone:`muted`,label:(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[`Step `,e.step+1,` skipped after a failed checkpoint`]}),at:e.at});case`error`:return(0,J.jsx)(oF,{icon:(0,J.jsx)(gp,{}),tone:`danger`,label:(0,J.jsx)(`span`,{className:`font-semibold text-kumo-danger`,children:e.source===`aut`?`Agent error`:`Runner error`}),at:e.at,children:(0,J.jsx)(mF,{error:e.error})});case`output`:return(0,J.jsx)(oF,{icon:(0,J.jsx)(dp,{}),label:(0,J.jsx)(dF,{children:`Final output`}),at:e.at,children:(0,J.jsx)(vF,{value:e.output})});case`unknown`:{let{source:t,kind:n,timestamp:r,...i}=e.event;return(0,J.jsx)(oF,{icon:(0,J.jsx)(lp,{}),tone:`muted`,label:(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[t,` · `,(0,J.jsx)(`span`,{className:`font-mono`,children:n})]}),at:e.at,children:Object.keys(i).length?(0,J.jsx)(CF,{value:i}):null})}}}function cF({item:e}){let t=qP(e.arguments,e.result);if(t)return(0,J.jsx)(hF,{item:e,shell:t});let n=wF(e.arguments);return(0,J.jsxs)(`details`,{className:`tool-call group`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md select-none focus-visible:outline-2 focus-visible:outline-kumo-brand [&::-webkit-details-marker]:hidden`,children:(0,J.jsx)(oF,{icon:(0,J.jsx)(_p,{}),label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Vf,{"aria-hidden":!0,className:`self-center text-kumo-subtle transition-transform group-open:rotate-90`}),(0,J.jsx)(`span`,{className:`font-mono text-[13px] font-medium text-kumo-strong`,children:e.name}),n?(0,J.jsx)(`span`,{className:`min-w-0 truncate font-mono text-kumo-subtle`,children:n}):null,e.result?(0,J.jsx)(fF,{children:tF(e.result.durationMs)}):(0,J.jsx)(`span`,{className:`text-kumo-warning`,children:`no result`})]}),at:e.at,children:e.result?(0,J.jsxs)(`span`,{className:`line-clamp-2 font-mono text-xs break-words text-kumo-subtle group-open:hidden`,children:[`→ `,wF(e.result.value,240)]}):null})}),(0,J.jsxs)(`div`,{className:`mt-2 ml-9 flex flex-col gap-2`,children:[e.arguments===void 0?null:(0,J.jsx)(pF,{label:`Arguments`,children:(0,J.jsx)(CF,{value:e.arguments})}),e.result?(0,J.jsx)(pF,{label:`Result`,children:(0,J.jsx)(CF,{value:e.result.value})}):null]})]})}function lF({durationMs:e,scorers:t}){let n=t.filter(e=>e.error).length,r=[e===void 0?void 0:`Finished in ${tF(e)}`,t.length?`${t.length} final ${t.length===1?`scorer`:`scorers`} ran${n?`, ${n} errored`:``}`:void 0].filter(Boolean);return r.length?(0,J.jsx)(`p`,{className:`border-t border-kumo-line pt-3 text-xs text-kumo-subtle tabular-nums`,children:r.join(` · `)}):null}function uF({events:e}){let t=Date.parse(e[0]?.timestamp??``);return(0,J.jsx)(`ol`,{className:`raw-events flex flex-col divide-y divide-kumo-line rounded-lg border border-kumo-line text-xs`,children:e.map((e,n)=>{let{source:r,kind:i,timestamp:a,...o}=e,s=Date.parse(a)-t,c=Object.keys(o).length?JSON.stringify(o):``;return(0,J.jsx)(`li`,{children:(0,J.jsxs)(`details`,{className:`group`,children:[(0,J.jsxs)(`summary`,{className:`grid cursor-pointer list-none grid-cols-[2rem_4rem_3rem_13rem_minmax(0,1fr)] items-baseline gap-x-3 px-3 py-1.5 select-none hover:bg-kumo-elevated [&::-webkit-details-marker]:hidden`,children:[(0,J.jsx)(`span`,{className:`text-right font-mono text-kumo-subtle tabular-nums`,children:n+1}),(0,J.jsx)(`span`,{className:`font-mono text-kumo-subtle tabular-nums`,children:Number.isNaN(s)?``:`+${tF(s)}`}),(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:r}),(0,J.jsx)(`span`,{className:`font-mono text-kumo-strong`,children:i}),(0,J.jsx)(`span`,{className:`truncate font-mono text-kumo-subtle`,children:c})]}),(0,J.jsx)(`div`,{className:`px-3 pb-2`,children:(0,J.jsx)(CF,{value:e})})]})},`${a}-${n}`)})})}function dF({children:e}){return(0,J.jsx)(`span`,{className:`font-semibold text-kumo-strong first-letter:uppercase`,children:e})}function fF({children:e}){return(0,J.jsx)(`span`,{className:`text-kumo-subtle tabular-nums`,children:e})}function pF({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:e}),t]})}function mF({error:e}){return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-danger`,children:[e.name&&e.name!==`Error`?`${e.name}: `:``,e.message]}),e.stack?(0,J.jsxs)(`details`,{className:`text-xs`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer text-kumo-subtle select-none`,children:`Stack trace`}),(0,J.jsx)(`pre`,{className:`mt-1 overflow-x-auto rounded-md bg-kumo-elevated px-3 py-2 font-mono text-[11px]`,children:e.stack})]}):null]})}function hF({item:e,shell:t}){let n=e.result!==void 0&&t.output===void 0&&t.stderr===void 0;return(0,J.jsxs)(oF,{icon:(0,J.jsx)(mp,{}),tone:t.failed?`danger`:`default`,label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`font-mono text-[13px] font-medium text-kumo-strong`,children:e.name}),t.exitCode===void 0?null:(0,J.jsxs)(`span`,{className:q(`rounded px-1.5 font-mono text-xs tabular-nums`,t.failed?`bg-kumo-danger-tint text-kumo-danger`:`text-kumo-subtle`),children:[`exit `,t.exitCode]}),t.exitCode===void 0&&t.failed?(0,J.jsx)(`span`,{className:`rounded bg-kumo-danger-tint px-1.5 text-xs text-kumo-danger`,children:`error`}):null,e.result?(0,J.jsx)(fF,{children:tF(e.result.durationMs)}):(0,J.jsx)(`span`,{className:`text-kumo-warning`,children:`no result`}),t.options.length?(0,J.jsx)(fF,{children:t.options.map(([e,t])=>`${e} ${wF(t,40)}`).join(` · `)}):null]}),at:e.at,children:[(0,J.jsxs)(`figure`,{"aria-label":`Shell command: ${t.command}`,className:`terminal flex max-w-[100ch] flex-col overflow-hidden rounded-md bg-[#17171c] font-mono text-xs leading-relaxed text-[#e4e4e7] shadow-sm ring-1 ring-black/10`,children:[t.cwd?(0,J.jsx)(`figcaption`,{className:`border-b border-white/10 px-3 py-1 text-[11px] text-[#9a9aa3]`,children:t.cwd}):null,(0,J.jsxs)(`pre`,{className:`px-3 py-2 break-words whitespace-pre-wrap`,children:[(0,J.jsxs)(`span`,{"aria-hidden":!0,className:`text-[#86efac] select-none`,children:[`$`,` `]}),t.command]}),t.output?(0,J.jsx)(_F,{text:t.output}):null,t.stderr?(0,J.jsx)(_F,{text:t.stderr,className:`text-[#fca5a5]`}):null]}),n?(0,J.jsx)(CF,{value:e.result.value}):null]})}var gF=12;function _F({text:e,className:t}){let n=e.replace(/\n$/,``).split(`
61
- `),r=n.length>16,[i,a]=(0,v.useState)(!1),o=n.length-gF;return(0,J.jsxs)(`div`,{className:`border-t border-white/10`,children:[r?(0,J.jsx)(`button`,{type:`button`,"aria-expanded":i,onClick:()=>a(!i),className:`w-full border-b border-white/10 px-3 py-1 text-left text-[11px] text-[#9a9aa3] hover:bg-white/5 hover:text-[#e4e4e7] focus-visible:outline-2 focus-visible:outline-kumo-brand`,children:i?`Hide the first ${o} lines`:`Show ${o} earlier lines`}):null,(0,J.jsx)(`pre`,{className:q(`max-h-[32rem] overflow-auto px-3 py-2 break-words whitespace-pre-wrap text-[#c4c4cc]`,t),children:r&&!i?n.slice(-12).join(`
62
- `):e})]})}function vF({value:e,markdown:t=!1}){return typeof e==`string`?t&&RP(e)?(0,J.jsx)(SF,{children:e}):(0,J.jsx)(xF,{children:e}):(0,J.jsx)(CF,{value:e})}var yF=1200,bF=16;function xF({children:e,className:t}){let n=e.length>yF||e.split(`
63
- `).length>bF,[r,i]=(0,v.useState)(!1);return(0,J.jsxs)(`div`,{className:q(`flex max-w-[75ch] flex-col items-start gap-1`,t),children:[(0,J.jsx)(`p`,{className:q(`text-[13px] leading-relaxed break-words whitespace-pre-wrap text-kumo-default`,n&&!r&&`line-clamp-[12]`),children:e}),n?(0,J.jsx)(Np,{size:`xs`,variant:`ghost`,onClick:()=>i(!r),children:r?`Show less`:`Show all ${e.split(`
64
- `).length} lines`}):null]})}function SF({children:e}){let t=e.split(`
65
- `).length,n=e.length>yF||t>bF,[r,i]=(0,v.useState)(!1),[a,o]=(0,v.useState)(!1);return(0,J.jsxs)(`div`,{className:`flex max-w-[75ch] min-w-0 flex-col items-start gap-1`,children:[(0,J.jsx)(`div`,{className:q(`w-full min-w-0`,n&&!r&&`max-h-72 overflow-hidden [mask-image:linear-gradient(to_bottom,black_75%,transparent)]`),children:a?(0,J.jsx)(`p`,{className:`text-[13px] leading-relaxed break-words whitespace-pre-wrap text-kumo-default`,children:e}):(0,J.jsx)(BP,{children:e})}),(0,J.jsxs)(`div`,{className:`flex gap-1`,children:[n?(0,J.jsx)(Np,{size:`xs`,variant:`ghost`,onClick:()=>i(!r),children:r?`Show less`:`Show all ${t} lines`}):null,(0,J.jsx)(Np,{size:`xs`,variant:`ghost`,"aria-pressed":a,onClick:()=>o(!a),children:a?`Rendered`:`Source`})]})]})}function CF({value:e}){let t=typeof e==`string`?e:JSON.stringify(e,null,2);return(0,J.jsx)(`pre`,{className:`max-h-96 overflow-auto rounded-md bg-kumo-elevated px-3 py-2 font-mono text-xs break-words whitespace-pre-wrap text-kumo-default`,children:t})}function wF(e,t=120){if(e===void 0)return``;let n=typeof e==`object`&&e&&!Array.isArray(e)?Object.entries(e).map(([e,t])=>`${e}: ${JSON.stringify(t)}`).join(`, `):typeof e==`string`?e:JSON.stringify(e);return n.length>t?`${n.slice(0,t-1)}…`:n}function TF({api:e,catalog:t,run:n,detail:r}){let[i,a]=(0,v.useState)([]),[o,s]=(0,v.useState)(),[c,l]=(0,v.useState)([]),u=`${n.id}:${n.status}`;(0,v.useEffect)(()=>{let t=!0;return s(void 0),a([]),l([]),Promise.all([e.getRunEvents(n.id),e.listArtifacts(n.id)]).then(([e,n])=>{t&&(a(e),l(n))}).catch(e=>{t&&s(e instanceof Error?e.message:`Unable to load the run`)}),()=>{t=!1}},[e,u]);let d=t.find(e=>e.id===n.evalId),f=Object.entries(n.parameters??{}),p=AF(r?.manifest);return(0,J.jsxs)(`section`,{className:`run-inspector grid gap-5 xl:grid-cols-[minmax(0,1fr)_minmax(320px,400px)]`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[o?(0,J.jsx)(PS,{title:`Unable to load the run`,message:o}):null,(0,J.jsx)(rF,{events:i})]}),(0,J.jsxs)(`aside`,{className:`run-overview flex min-w-0 flex-col gap-4`,children:[(0,J.jsx)(US,{items:[[`Scenario`,(0,J.jsx)(gn,{to:oC(n.evalId),className:MS,children:d?.name??n.evalId},`scenario`)],[`Agent`,d?KS(d):n.agent??`—`],[`Score`,n.score??`—`],...n.batch?[[`Batch`,(0,J.jsxs)(gn,{to:eC(n.batch.id),className:MS,title:`Show every run of this batch`,children:[`Run `,n.batch.index+1,` of `,n.batch.size]},`batch`)]]:[],...f.length?[[`Parameters`,(0,J.jsx)(`span`,{className:NS,children:f.map(([e,t])=>`${e}=${JSON.stringify(t)}`).join(` `)},`parameters`)]]:[],[`Started`,new Date(n.startedAt).toLocaleString()],[`Runtime`,n.durationMs===void 0?`—`:vC(n.durationMs)],[`Commit`,(0,J.jsx)(Cw,{source:n.source},`commit`)]]}),r?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(EF,{title:`Final scoring`,children:[(0,J.jsx)(kF,{scores:r.scores}),r.skippedScorers?.length?(0,J.jsxs)(`p`,{className:`text-xs text-kumo-subtle`,children:[`Skipped final scorers: `,r.skippedScorers.join(`, `)]}):null]}),r.metrics?.length?(0,J.jsx)(EF,{title:`Metrics`,children:(0,J.jsx)(US,{items:r.metrics.map(e=>[e.name,e.error?(0,J.jsx)(`span`,{className:`text-kumo-danger`,children:e.error.message},e.name):(0,J.jsx)(`span`,{className:`tabular-nums`,children:e.value===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`not measured`}):yC(e.value,e.unit)},e.name)])})}):null,r.checkpoints?.length?(0,J.jsx)(EF,{title:`Checkpoints`,children:(0,J.jsx)(DF,{checkpoints:r.checkpoints})}):null,r.attachments?.length?(0,J.jsx)(EF,{title:`Attachments`,children:(0,J.jsx)(`ul`,{className:`flex flex-col gap-1 text-[13px]`,children:r.attachments.map(e=>(0,J.jsxs)(`li`,{className:`flex items-baseline justify-between gap-3`,children:[(0,J.jsx)(gn,{to:nC(n.id,e.name),className:`${MS} ${NS} min-w-0 truncate`,title:e.name,children:e.name}),(0,J.jsx)(`span`,{className:`shrink-0 text-xs text-kumo-subtle tabular-nums`,children:e.truncatedFrom?`last ${LS(e.size)} of ${LS(e.truncatedFrom)}`:LS(e.size)})]},e.name))})}):null,p.length?(0,J.jsx)(EF,{title:`Datasets`,children:(0,J.jsx)(US,{items:p.map(e=>[e.id,(0,J.jsxs)(`span`,{title:e.digest,children:[e.visibility,` · `,e.source,` ·`,` `,(0,J.jsx)(`span`,{className:NS,children:e.digest.replace(`sha256:`,``).slice(0,12)})]},e.id)])})}):null,c.length?(0,J.jsx)(EF,{title:`Artifacts`,children:(0,J.jsxs)(AS,{wrap:!0,children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Path`}),(0,J.jsx)(Q.Head,{children:`Kind`}),(0,J.jsx)(Q.Head,{children:`Size`})]})}),(0,J.jsx)(Q.Body,{children:c.map(e=>(0,J.jsx)(qC,{artifact:e},e.path))})]})}):null,(0,J.jsxs)(`details`,{className:`raw-details text-xs`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer font-medium text-kumo-subtle select-none`,children:`Raw run report`}),(0,J.jsx)(`pre`,{className:`mt-2 overflow-x-auto rounded-md bg-kumo-elevated px-3 py-2 font-mono`,children:JSON.stringify({manifest:r.manifest,summary:r.summary},null,2)})]})]}):null]})]})}function EF({title:e,children:t}){return(0,J.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:e}),t]})}function DF({checkpoints:e}){return(0,J.jsxs)(AS,{wrap:!0,children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Step`}),(0,J.jsx)(Q.Head,{children:`Rule`}),(0,J.jsx)(Q.Head,{children:`Value`}),(0,J.jsx)(Q.Head,{children:`Result`})]})}),(0,J.jsx)(Q.Body,{children:e.map(e=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:e.step+1}),(0,J.jsxs)(Q.Cell,{children:[(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[e.kind,`:`]}),` `,e.name,e.matchedToolCall?` (event ${e.matchedToolCall.eventIndex+1})`:``]}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:e.value??`—`}),(0,J.jsxs)(Q.Cell,{children:[(0,J.jsx)(_w,{status:e.status}),e.error?(0,J.jsx)(`p`,{className:`mt-1 text-xs text-kumo-danger`,children:e.error.message}):null]})]},`${e.step}-${e.name}`))})]})}function OF(e){return e.error?`error`:e.skipped?`skipped`:e.passed===!0?`passed`:e.passed===!1?`failed`:`not scored`}function kF({scores:e}){return(0,J.jsxs)(AS,{wrap:!0,children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Scorer`}),(0,J.jsx)(Q.Head,{children:`Value`}),(0,J.jsx)(Q.Head,{children:`Result`})]})}),(0,J.jsxs)(Q.Body,{children:[e.map(e=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsxs)(Q.Cell,{children:[e.kind?(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[e.kind,`: `]}):null,e.name]}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:e.value??`—`}),(0,J.jsxs)(Q.Cell,{children:[(0,J.jsx)(_w,{status:OF(e)}),e.skipped&&e.explanation?(0,J.jsx)(`p`,{className:`mt-1 text-xs text-kumo-subtle`,children:e.explanation}):null,e.error?(0,J.jsx)(`p`,{className:`mt-1 text-xs text-kumo-danger`,children:e.error.message}):null]})]},e.name)),e.length?null:(0,J.jsx)(Q.Row,{children:(0,J.jsx)(Q.Cell,{colSpan:3,className:`text-kumo-subtle`,children:`No final scorers.`})})]})]})}function AF(e){let t=e?.datasets;return Array.isArray(t)?t.filter(e=>typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.digest==`string`):[]}function jF({api:e,runId:t}){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(),[o,s]=Sn();(0,v.useEffect)(()=>{let n=!0;return r(void 0),a(void 0),e.listWorkspace(t).then(e=>{n&&r(e)}).catch(e=>{n&&a(e instanceof Error?e.message:`Unable to load workspace`)}),()=>{n=!1}},[e,t]);let c=(0,v.useCallback)(n=>e.getWorkspaceFile(t,n),[e,t]);return(0,J.jsxs)(`section`,{className:`workspace-inspector flex flex-col gap-2`,children:[i?(0,J.jsx)(PS,{message:i}):null,!n&&!i?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Loading workspace…`}):null,n?(0,J.jsx)(zS,{entries:n,rootLabel:`workspace/`,readFile:c,selected:o.get(`file`)??void 0,onSelect:e=>{let t=new URLSearchParams(o);t.set(`file`,e),s(t,{replace:!0})},emptyMessage:`The workspace is empty.`}):null]})}var MF={workspace:`Candidate workspace`,attachments:`Attachments`};function NF({api:e,catalog:t,runs:n,runId:r,view:i=`run`}){let a=tt(),o=n.find(e=>e.id===r),{detail:s,error:c}=lw(e,o);if(!o)return n.some(e=>e.batch?.id===r)?(0,J.jsx)(Tt,{to:eC(r),replace:!0}):(0,J.jsx)(WS,{message:n.length?`Run not found: ${r}`:`Loading run…`});let l=s?.attachments?.length??0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(cC,{run:o,...i===`run`?{}:{view:i===`workspace`?`Workspace`:`Attachments`}}),(0,J.jsx)(lC,{title:i===`run`?`Run ${o.id.slice(0,8)}`:MF[i],subtitle:o.id,status:i===`run`?(0,J.jsx)(`span`,{title:o.interrupted?`Its process stopped before the run finished`:void 0,children:(0,J.jsx)(_w,{status:o.status})}):void 0,actions:i===`run`?(0,J.jsxs)(`div`,{className:`flex gap-2`,children:[l?(0,J.jsxs)(Np,{size:`sm`,variant:`secondary`,icon:(0,J.jsx)(sp,{}),className:`open-attachments`,onClick:()=>a(nC(o.id)),children:[`Attachments`,` `,(0,J.jsx)(`span`,{className:`text-kumo-subtle tabular-nums`,children:l})]}):null,(0,J.jsx)(Np,{size:`sm`,variant:`secondary`,icon:(0,J.jsx)(Qf,{}),className:`open-workspace`,onClick:()=>a(tC(o.id)),children:`Candidate workspace`})]}):void 0}),c?(0,J.jsx)(PS,{title:`Unable to load the run`,message:c}):null,i===`workspace`?(0,J.jsx)(jF,{api:e,runId:o.id}):i===`attachments`?s?(0,J.jsx)(KC,{api:e,runId:o.id,attachments:s.attachments??[]}):c?null:(0,J.jsx)(`output`,{className:`text-[13px] text-kumo-subtle`,children:`Loading…`}):(0,J.jsx)(TF,{api:e,catalog:t,run:o,detail:s})]})}var PF=[`agent time`,`tokens`,`tool calls`];function FF(e){let t=new Map;for(let n of e)for(let e of n.metrics??[])e.value!==void 0&&!t.has(e.name)&&t.set(e.name,{name:e.name,...e.unit?{unit:e.unit}:{},...e.better?{better:e.better}:{}});let n=e=>{let t=PF.indexOf(e);return t===-1?PF.length:t};return[...t.values()].sort((e,t)=>n(e.name)-n(t.name)||e.name.localeCompare(t.name))}function IF(e){let t=new Map;for(let n of e)for(let e of n.metrics??[]){if(e.value===void 0)continue;let n=t.get(e.name)??{sum:0,runs:0};n.sum+=e.value,n.runs+=1,t.set(e.name,n)}return Object.fromEntries([...t].map(([e,{sum:t,runs:n}])=>[e,{mean:t/n,runs:n}]))}function LF(e,t,n){let r=(n,r)=>r?.suiteId??e.find(e=>e.id===n)?.suiteId??t.find(e=>e.evalIds.includes(n))?.id,i=new Map;for(let e of n){if(e.archived)continue;let t=RF(e.evalId,e.parameters??{});i.set(t,[...i.get(t)??[],e])}let a=[...i].map(([t,n])=>{let i=n.sort((e,t)=>t.startedAt.localeCompare(e.startedAt)).slice(0,10),a=i[0],o=i.filter(e=>[`passed`,`failed`,`errored`].includes(e.status)),s=o.filter(e=>e.score!==void 0);return{key:t,evalId:a.evalId,scenario:e.find(e=>e.id===a.evalId),suiteId:r(a.evalId,a),parameters:a.parameters??{},runs:i,outcome:a.status,metrics:IF(o),finished:o.length,...s.length?{meanScore:s.reduce((e,t)=>e+t.score,0)/s.length}:{},...o.length?{passRate:o.filter(e=>e.status===`passed`).length/o.length}:{}}});for(let t of e)a.some(e=>e.evalId===t.id)||a.push({key:RF(t.id,{}),evalId:t.id,scenario:t,suiteId:r(t.id),parameters:{},runs:[],outcome:`not-run`,metrics:{},finished:0});return a}function RF(e,t){return`${e}\0${uC(t)}`}function zF({api:e,catalog:t,suites:n,runs:r}){let[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(!0),{sort:c,toggleSort:l}=pw({key:``,direction:`asc`}),[u,d]=(0,v.useState)(),f=(0,v.useMemo)(()=>LF(t,n,r),[t,n,r]),p=(0,v.useMemo)(()=>FF(r.filter(e=>!e.archived)),[r]);if(!f.length)return(0,J.jsx)(WS,{message:`No scenarios yet. Add one in scenarios/.`});let m=i.trim().toLowerCase().split(/\s+/).filter(Boolean),h=f.filter(e=>{let t=[e.evalId,e.scenario?.name,e.suiteId,TC[e.outcome],...Object.entries(e.parameters).map(([e,t])=>`${e}=${JSON.stringify(t)}`)].join(` `).toLowerCase();return m.every(e=>t.includes(e))}).sort((e,t)=>HF(e,t,c)||(o?EC[e.outcome]-EC[t.outcome]:0)||(e.scenario?.name??e.evalId).localeCompare(t.scenario?.name??t.evalId)||e.key.localeCompare(t.key)),g=new Map;for(let e of h){let t=e.suiteId??``;g.set(t,[...g.get(t)??[],e])}let _=UF(h,p),y=(e,t)=>(0,J.jsx)(mw,{label:e,sortKey:t,sort:c,onSort:l}),b=e=>n.find(t=>t.id===e)?.name??e,x=t=>{t.scenario&&(d(void 0),e.runEval(t.scenario.path,Object.keys(t.parameters).length?t.parameters:void 0).catch(e=>d(e instanceof Error?e.message:`Unable to start scenario`)))};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(qF,{rows:f}),u?(0,J.jsx)(PS,{message:u}):null,(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,J.jsx)(sw,{label:`Filter scoreboard`,placeholder:`Scenario, suite, parameter or outcome`,value:i,count:`${h.length} of ${f.length}`,onChange:a}),(0,J.jsxs)(`label`,{className:`flex items-center gap-1.5 text-[13px] text-kumo-subtle`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),`Failures first`]})]}),(0,J.jsxs)(kS,{className:`scoreboard`,children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Scenario`}),(0,J.jsx)(Q.Head,{children:`Latest`}),y(`Score`,`score`),y(`Mean score`,`meanScore`),(0,J.jsxs)(Q.Head,{children:[`Last `,10,` runs`]}),y(`Pass rate`,`passRate`),p.map(e=>(0,J.jsx)(v.Fragment,{children:y(`Mean ${e.name}`,`metric:${e.name}`)},e.name)),(0,J.jsx)(Q.Head,{className:`text-right`,children:e.readOnly?null:`Run`})]})}),(0,J.jsx)(Q.Body,{children:[...g].map(([t,n])=>(0,J.jsxs)(v.Fragment,{children:[g.size>1||t?(0,J.jsx)(Q.Row,{className:`bg-kumo-elevated`,children:(0,J.jsx)(Q.Cell,{colSpan:7+p.length,children:(0,J.jsxs)(`span`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(`span`,{className:`text-xs font-semibold text-kumo-strong`,children:t?b(t):`No suite`}),(0,J.jsx)(JF,{rows:n})]})})}):null,n.map(t=>(0,J.jsx)(BF,{row:t,columns:p,ranges:_,onRun:e.readOnly||!t.scenario?void 0:()=>x(t)},t.key))]},t))})]})]})}function BF({row:e,columns:t,ranges:n,onRun:r}){let i=e.runs[0],a=Object.entries(e.parameters);return(0,J.jsxs)(Q.Row,{"data-outcome":e.outcome,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex max-w-[22rem] flex-col gap-0.5`,children:[(0,J.jsx)(gn,{to:oC(e.evalId),className:`${MS} truncate`,title:e.scenario?.name??e.evalId,children:e.scenario?.name??e.evalId}),a.length?(0,J.jsx)(pC,{entries:a}):null]})}),(0,J.jsx)(Q.Cell,{children:i?(0,J.jsxs)(gn,{to:$S(i.id),className:`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs font-medium ${wC[e.outcome]}`,title:`Latest run ${i.id.slice(0,8)}, ${new Date(i.startedAt).toLocaleString()}`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-2 rounded-full ${CC[e.outcome]}`}),TC[e.outcome],(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle`,children:gC(i.startedAt)})]}):(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:`not run`})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(`span`,{className:`inline-block min-w-10 rounded px-1.5 py-0.5 text-center tabular-nums ${i?wC[e.outcome]:``}`,children:_C(i?.score)})}),(0,J.jsx)(Q.Cell,{children:e.meanScore===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`}):(0,J.jsx)(`span`,{className:`inline-block min-w-10 rounded px-1.5 py-0.5 text-center tabular-nums ${DC(e.meanScore)}`,title:`Mean over the last 10 runs`,children:_C(e.meanScore)})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(GF,{runs:e.runs})}),(0,J.jsx)(Q.Cell,{children:e.passRate===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`}):(0,J.jsxs)(`span`,{className:`inline-block min-w-12 rounded px-1.5 py-0.5 text-center tabular-nums ${DC(e.passRate)}`,children:[Math.round(e.passRate*100),`%`]})}),t.map(t=>{let r=e.metrics[t.name];return(0,J.jsx)(Q.Cell,{className:`text-right`,children:r===void 0?(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,title:e.finished?`None of the last ${e.finished} finished runs measured ${t.name}`:`No finished runs`,children:e.finished?`not measured`:`—`}):(0,J.jsxs)(`span`,{className:`inline-flex flex-col items-end`,children:[(0,J.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 tabular-nums ${WF(r.mean,t,n.get(t.name))}`,title:`Mean ${t.name} over the ${r.runs} of the last ${e.finished} finished runs that measured it`,children:yC(r.mean,t.unit)}),r.runs<e.finished?(0,J.jsxs)(`span`,{className:`text-[11px] text-kumo-subtle tabular-nums`,children:[r.runs,` of `,e.finished,` runs`]}):null]})},t.name)}),(0,J.jsx)(Q.Cell,{className:`text-right`,children:r?(0,J.jsx)(Np,{size:`xs`,variant:`secondary`,shape:`square`,"aria-label":`Run ${e.scenario?.name??e.evalId}`,title:`Run again`,icon:(0,J.jsx)(cp,{weight:`fill`}),onClick:r}):null})]})}function VF(e,t){if(t===`score`)return e.runs[0]?.score;if(t===`meanScore`)return e.meanScore;if(t===`passRate`)return e.passRate;if(t.startsWith(`metric:`))return e.metrics[t.slice(7)]?.mean}function HF(e,t,n){if(!n.key)return 0;let r=VF(e,n.key),i=VF(t,n.key);return r===void 0||i===void 0?r===i?0:r===void 0?1:-1:n.direction===`asc`?r-i:i-r}function UF(e,t){let n=new Map;for(let r of t){let t=e.map(e=>e.metrics[r.name]?.mean).filter(e=>e!==void 0);t.length&&n.set(r.name,{min:Math.min(...t),max:Math.max(...t)})}return n}function WF(e,t,n){if(!t.better||!n||n.max===n.min)return``;let r=(e-n.min)/(n.max-n.min);return DC(t.better===`lower`?1-r:r)}function GF({runs:e}){let t=[...Array(Math.max(0,10-e.length)).fill(void 0),...[...e].reverse()];return(0,J.jsx)(`span`,{className:`history inline-flex items-center gap-0.5`,children:t.map((e,t)=>e?(0,J.jsx)(gn,{to:$S(e.id),className:`size-3.5 rounded-[3px] hover:ring-2 hover:ring-kumo-focus ${CC[e.status]}`,title:`${TC[e.status]} · score ${_C(e.score)} · ${new Date(e.startedAt).toLocaleString()}`,"aria-label":`${TC[e.status]} run ${e.id.slice(0,8)}`},e.id):(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-3.5 rounded-[3px] border border-dashed border-kumo-hairline`},`empty-${t}`))})}var KF=[`passed`,`failed`,`errored`,`running`,`not-run`];function qF({rows:e}){return(0,J.jsx)(`div`,{className:`tally grid grid-cols-2 gap-2 sm:grid-cols-5`,children:KF.map(t=>{let n=e.filter(e=>e.outcome===t).length;return(0,J.jsxs)(`div`,{"data-outcome":t,className:`flex items-center gap-3 rounded-lg border border-kumo-line px-3 py-2 ${n?wC[t]:``}`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-3 rounded-full ${CC[t]}`}),(0,J.jsx)(`span`,{className:`text-xl font-semibold text-kumo-strong tabular-nums`,children:n}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:TC[t]})]},t)})})}function JF({rows:e}){let t=[...e].sort((e,t)=>EC[e.outcome]-EC[t.outcome]),n=e.filter(e=>e.outcome===`passed`).length;return(0,J.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`flex h-2 w-40 overflow-hidden rounded-full bg-kumo-fill`,children:t.map(e=>(0,J.jsx)(`span`,{className:`h-full flex-1 ${CC[e.outcome]}`},e.key))}),(0,J.jsxs)(`span`,{className:`${NS} text-kumo-subtle`,children:[n,`/`,e.length]})]})}var YF=new Set([`passed`,`failed`,`errored`]),XF=`\0all`;function ZF(e){return uC(e??null)}function QF(e){let t=new Map;for(let n of e)for(let[e,r]of Object.entries(n.parameters??{}))t.set(e,(t.get(e)??new Set).add(ZF(r)));let n=t=>e.every(e=>e.parameters&&t in e.parameters);return[...t].filter(([e,t])=>t.size>1||!n(e)).map(([e])=>e).sort()}function $F(e){return[{id:`pass-rate`,label:`Pass rate`,measure:{kind:`pass-rate`}},{id:`score`,label:`Mean score`,measure:{kind:`score`}},...FF(e).map(e=>({id:`metric:${e.name}`,label:`Mean ${e.name}`,measure:{kind:`metric`,metric:e}}))]}function eI(e,t,n,r,i={}){let a=new Map;for(let t of e){if(t.archived||!YF.has(t.status))continue;let e=uC(t.parameters??{});a.set(e,[...a.get(e)??[],t])}let o=[...a.values()].flatMap(e=>e.sort((e,t)=>t.startedAt.localeCompare(e.startedAt)).slice(0,10)),s=tI(o,t,i[t]),c=n?tI(o,n,i[n]):[{key:XF,label:``,value:void 0}],l=new Map;for(let e of o){let r=`${ZF(e.parameters?.[t])}\0${n?ZF(e.parameters?.[n]):XF}`;l.set(r,[...l.get(r)??[],e])}let u={};for(let e of s){u[e.key]={};for(let t of c){let n=l.get(`${e.key}\0${t.key}`)??[],{value:i,runs:a}=nI(n,r);u[e.key][t.key]={runs:n.length,measured:a,...i===void 0?{}:{value:i}}}}return{rows:s,columns:c,cells:u}}function tI(e,t,n=[]){let r=new Map;for(let n of e){let e=n.parameters?.[t],i=ZF(e);r.has(i)||r.set(i,{key:i,label:e===void 0?`(not set)`:dC(e),value:e})}let i=e=>{let t=n.findIndex(t=>ZF(t)===e.key);return t===-1?n.length:t};return[...r.values()].sort((e,t)=>i(e)-i(t)||e.label.localeCompare(t.label,void 0,{numeric:!0}))}function nI(e,t){if(!e.length)return{runs:0};if(t.kind===`pass-rate`)return{value:e.filter(e=>e.status===`passed`).length/e.length,runs:e.length};if(t.kind===`score`){let t=e.map(e=>e.score).filter(e=>e!==void 0);return t.length?{value:t.reduce((e,t)=>e+t,0)/t.length,runs:t.length}:{runs:0}}let n=e.flatMap(e=>{let n=e.metrics?.find(e=>e.name===t.metric.name)?.value;return n===void 0?[]:[n]});return n.length?{value:n.reduce((e,t)=>e+t,0)/n.length,runs:n.length}:{runs:0}}var rI=`-`;function iI({runs:e,order:t}){let[n,r]=Sn(),i=(0,v.useMemo)(()=>QF(e),[e]),a=(0,v.useMemo)(()=>$F(e),[e]),o=i.includes(n.get(`by`)??``)?n.get(`by`):i[0],s=n.get(`across`),c=s===rI?void 0:s&&s!==o&&i.includes(s)?s:i.find(e=>e!==o),l=a.find(e=>e.id===n.get(`show`))??a[0],u=(0,v.useMemo)(()=>o?eI(e,o,c,l.measure,t):void 0,[e,o,c,l,t]);if(!o||!u||!u.rows.length)return null;let d=(e,t)=>r(n=>{let r=new URLSearchParams(n);return r.set(e,t),r},{replace:!0}),f=u.rows.flatMap(e=>u.columns.map(t=>u.cells[e.key]?.[t.key]?.value).filter(e=>e!==void 0)),p=f.length?{min:Math.min(...f),max:Math.max(...f)}:void 0;return(0,J.jsxs)(`section`,{"aria-label":`Compare`,className:`compare flex flex-col gap-2`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-3`,children:[(0,J.jsxs)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:[`Compare`,` `,(0,J.jsxs)(`span`,{className:`font-normal text-kumo-subtle`,children:[`newest `,10,` finished runs per parameter combination`]})]}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(dy,{"aria-label":`Rows`,size:`sm`,className:`min-w-32`,value:o,onValueChange:e=>e&&d(`by`,String(e)),items:Object.fromEntries(i.map(e=>[e,`Rows: ${e}`]))}),(0,J.jsx)(dy,{"aria-label":`Columns`,size:`sm`,className:`min-w-32`,value:c??rI,onValueChange:e=>e&&d(`across`,String(e)),items:{[rI]:`Columns: none`,...Object.fromEntries(i.filter(e=>e!==o).map(e=>[e,`Columns: ${e}`]))}}),(0,J.jsx)(dy,{"aria-label":`Show`,size:`sm`,className:`min-w-36`,value:l.id,onValueChange:e=>e&&d(`show`,String(e)),items:Object.fromEntries(a.map(e=>[e.id,e.label]))})]})]}),(0,J.jsxs)(kS,{className:`w-fit max-w-full`,children:[(0,J.jsx)(Q.Header,{children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsxs)(Q.Head,{children:[o,c?(0,J.jsxs)(`span`,{className:`font-normal`,children:[` ↓ · `,c,` →`]}):null]}),u.columns.map(e=>(0,J.jsx)(Q.Head,{className:`text-right`,children:c?(0,J.jsx)(`span`,{className:NS,children:e.label}):l.label},e.key))]})}),(0,J.jsx)(Q.Body,{children:u.rows.map(e=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(`span`,{className:NS,children:e.label})}),u.columns.map(t=>{let n=u.cells[e.key]?.[t.key];return(0,J.jsx)(Q.Cell,{className:`text-right`,children:(0,J.jsx)(aI,{value:n?.value,runs:n?.runs??0,measured:n?.measured??0,measure:l.measure,range:p})},t.key)})]},e.key))})]})]})}function aI({value:e,runs:t,measured:n,measure:r,range:i}){if(e===void 0)return(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,title:t?`None of these ${t} runs measured it`:`No finished runs`,children:t?`not measured`:`—`});let a=r.kind===`pass-rate`?`${Math.round(e*100)}%`:r.kind===`score`?_C(e):yC(e,r.metric.unit),o=r.kind===`metric`?WF(e,r.metric,i):DC(e);return(0,J.jsxs)(`span`,{className:`inline-flex flex-col items-end`,children:[(0,J.jsx)(`span`,{className:`inline-block min-w-12 rounded px-1.5 py-0.5 text-center tabular-nums ${o}`,children:a}),(0,J.jsx)(`span`,{className:`text-[11px] text-kumo-subtle tabular-nums`,children:n<t?`${n} of ${t} runs`:`${t} ${t===1?`run`:`runs`}`})]})}function oI({id:e,evaluation:t,parameters:n=[],repeat:r,onRun:i,runDisabled:a=!1,latestRun:o,cellParameters:s}){let c=aw(t?.id??e,s),l=t?.name??e,u=t?.path??e;return(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[t?(0,J.jsx)(Ai,{href:oC(t.id),className:MS,children:l}):(0,J.jsx)(`span`,{className:`font-medium`,children:l}),u===l?null:(0,J.jsx)(`span`,{className:`${NS} text-kumo-subtle`,children:u})]})}),n.map((e,t)=>(0,J.jsx)(Q.Cell,{className:NS,children:typeof e==`string`?e:JSON.stringify(e)},t)),(0,J.jsx)(Q.Cell,{children:t?(0,J.jsx)(Ai,{href:iC(GS(t)),children:KS(t)}):KS(t)}),(0,J.jsx)(Q.Cell,{children:t?.agent.runtimes.map(e=>e.name).join(`, `)||`default`}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:r??t?.repeat??1}),(0,J.jsx)(Q.Cell,{children:o?(0,J.jsx)(Ai,{href:$S(o.id),title:`Open the latest run`,children:(0,J.jsx)(_w,{status:o.status})}):`—`}),(0,J.jsx)(Q.Cell,{className:`text-right`,children:(0,J.jsxs)(`div`,{className:`inline-flex items-center justify-end gap-2`,children:[(0,J.jsx)(Pp,{size:`xs`,variant:`secondary`,icon:(0,J.jsx)(ap,{}),href:c,children:`Runs`}),i||a?(0,J.jsx)(Np,{size:`xs`,variant:`secondary`,icon:(0,J.jsx)(cp,{weight:`fill`}),disabled:a,title:a?`Matrix configuration is still loading`:void 0,onClick:e=>{e.stopPropagation(),i?.()},children:`Run`}):null]})})]})}function sI({nested:e,children:t}){return e?(0,J.jsx)(AS,{children:t}):(0,J.jsx)(kS,{children:t})}function cI({axes:e,sort:t,onSort:n,planned:r=!1}){let i=(e,r)=>(0,J.jsx)(mw,{label:e,sortKey:r,sort:t,onSort:n});return(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[i(`Scenario`,`eval`),e.map(e=>(0,J.jsx)(mw,{label:e,sortKey:`axis:${e}`,sort:t,onSort:n},e)),i(`Agent`,`agent`),r?(0,J.jsx)(Q.Head,{children:`Runtime`}):i(`Runtime`,`runtime`),i(`Repeat`,`repeat`),r?(0,J.jsx)(Q.Head,{children:`Latest run`}):i(`Latest run`,`status`),(0,J.jsx)(Q.Head,{className:`text-right`,children:`Actions`})]})})}var lI=50;function uI({api:e,evalIds:t,catalog:n,matrix:r,runs:i,nested:a=!1,onRun:o}){let[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(0),{sort:d,toggleSort:f}=pw({key:`eval`,direction:`asc`},()=>u(0)),[p,m]=(0,v.useState)(),[h,g]=(0,v.useState)(),_=r.dimensions??Object.keys(r.parameters),y=t.join(`,`);(0,v.useEffect)(()=>{let t=!0;return g(void 0),m(void 0),e.listMatrixCells({evalIds:y.split(`,`).filter(Boolean),query:s,offset:l*lI,sort:d.key,direction:d.direction}).then(e=>{t&&m(e)}).catch(e=>{t&&g(e instanceof Error?e.message:`Unable to list matrix cells`)}),()=>{t=!1}},[e,y,s,l,d]);let b=new Map(n.map(e=>[e.id,e])),x=e=>i.filter(t=>t.matrixId===r.id&&t.cellKey===e).sort((e,t)=>t.startedAt.localeCompare(e.startedAt))[0],S=_.length+6;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(sw,{label:`Filter matrix cells`,placeholder:`Scenario, parameter or agent`,value:s,count:`${p?.total??0} of ${p?.planned??0} eligible cells`,onChange:e=>{c(e),u(0)}}),h?(0,J.jsx)(PS,{message:h}):null,(0,J.jsxs)(sI,{nested:a,children:[(0,J.jsx)(cI,{axes:_,sort:d,onSort:f,planned:!0}),(0,J.jsxs)(Q.Body,{children:[p?.cells.map(e=>{let t=b.get(e.evalId);return(0,J.jsx)(oI,{id:e.evalId,evaluation:t,parameters:_.map(t=>e.parameters[t]===null?`None`:e.parameters[t]),repeat:r.repeat,latestRun:x(e.key),cellParameters:e.parameters,onRun:t?()=>o(t.path,Object.fromEntries(_.map(t=>[t,e.parameters[t]]))):void 0},e.key)}),!p&&!h?(0,J.jsx)(jS,{colSpan:S,children:`Loading cells…`}):null,p&&!p.cells.length?(0,J.jsx)(jS,{colSpan:S,children:`No matching cells.`}):null]})]}),(0,J.jsx)(JC,{label:`Matrix cells pages`,noun:`Cells`,page:l,pageSize:lI,total:p?.total??0,onPage:u})]})}var dI=50;function fI(e,t,n,r){let i=t.reduce((e,[,t])=>e*t.length,1),a=e.length*i;if(!Number.isSafeInteger(a))throw Error(`Matrix exceeds safe cell count`);let o=[];for(let s=n;s<Math.min(n+r,a);s++){let n=e[Math.floor(s/i)],r=s%i,a={},c=Array(t.length);for(let e=t.length-1;e>=0;e--){let[n,i]=t[e],o=i[r%i.length];a[n]=o,c[e]=o,r=Math.floor(r/i.length)}o.push({id:n,parameters:a,values:c})}return{rows:o,total:a}}function pI(e,t,n){return JSON.stringify([e,t.map(([e])=>n[e])])}function mI(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function hI(e,t,n){let r=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return r.length?e.filter(e=>{let t=n(e).map(mI).join(` `).toLowerCase();return r.every(e=>t.includes(e))}):[...e]}function gI(e){let t=e.matrix?e.evalIds.length*Object.values(e.matrix.parameters).reduce((e,t)=>e*t.length,1):0;return e.matrix&&(e.matrix.constrained||t>1e3)?(0,J.jsx)(uI,{...e,matrix:e.matrix}):(0,J.jsx)(_I,{...e})}function _I({evalIds:e,catalog:t,matrix:n,runs:r,nested:i=!1,onRun:a}){let[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(``),{sort:u,toggleSort:d}=pw({key:`eval`,direction:`asc`},()=>s(0)),f=n?Object.entries(n.parameters):[],p=new Map(t.map(e=>[e.id,e])),m=new Map;for(let e of r){if(n&&(e.matrixId!==n.id||!e.parameters))continue;let t=n?pI(e.evalId,f,e.parameters):e.evalId,r=m.get(t);(!r||r.startedAt<=e.startedAt)&&m.set(t,e)}let h=e=>p.get(e.id),g=e=>m.get(n?pI(e.id,f,e.parameters):e.id),_=e=>g(e)?.status,{total:y}=fI(e,f,0,0),b=hw(hI(fI(e,f,0,y).rows,c,e=>{let t=h(e);return[t?.name??e.id,e.id,t?.path??e.id,...e.values,KS(t),t?.agent.runtimes.map(e=>e.name).join(`, `)??`default`,_(e)??`not run`]}),u,(e,t)=>{let r=h(e);return t.startsWith(`axis:`)?mI(e.parameters[t.slice(5)]):t===`eval`?r?.name??e.id:t===`agent`?KS(r):t===`runtime`?r?.agent.runtimes.map(e=>e.name).join(`, `)??`default`:t===`repeat`?n?.repeat??r?.repeat??1:t===`status`?_(e)??`not run`:``}),x=Math.max(1,Math.ceil(b.length/dI)),S=Math.min(o,x-1),C=b.slice(S*dI,(S+1)*dI);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(sw,{label:n?`Filter matrix cells`:`Filter scenarios`,placeholder:`Scenario, parameter, agent or status`,value:c,count:`${b.length} of ${y} ${n?`cells`:`scenarios`}`,onChange:e=>{l(e),s(0)}}),(0,J.jsxs)(sI,{nested:i,children:[(0,J.jsx)(cI,{axes:f.map(([e])=>e),sort:u,onSort:d}),(0,J.jsx)(Q.Body,{children:C.length?C.map(e=>{let t=h(e);return(0,J.jsx)(oI,{id:e.id,evaluation:t,parameters:e.values,repeat:n?.repeat,latestRun:g(e),cellParameters:e.parameters,onRun:t&&n!==void 0?()=>a(t.path,n?e.parameters:void 0):void 0,runDisabled:!!t&&n===void 0},pI(e.id,f,e.parameters))}):(0,J.jsx)(jS,{colSpan:f.length+6,children:`No matching cells.`})})]}),(0,J.jsx)(JC,{label:`Matrix cells pages`,noun:`Cells`,page:S,pageSize:dI,total:b.length,onPage:s})]})}var vI=25;function yI({api:e,catalog:t,suites:n,matrix:r,runs:i,evalId:a}){let[o,s]=(0,v.useState)(),c=t.find(e=>e.id===a),l=(0,v.useMemo)(()=>i.filter(e=>e.evalId===a).sort((e,t)=>t.startedAt.localeCompare(e.startedAt)),[i,a]);if(!c&&!l.length)return(0,J.jsx)(WS,{message:`Scenario not found: ${a}`});let u=t=>{c&&(s(void 0),e.runEval(c.path,t).catch(e=>s(e instanceof Error?e.message:`Unable to start scenario`)))},d=!!c&&!e.readOnly;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`scenarios`,current:c?.name??a}),(0,J.jsx)(lC,{title:c?.name??a,subtitle:c?.id??`${a} (no longer in the project)`,status:l[0]?(0,J.jsx)(_w,{status:l[0].status}):void 0,actions:d&&r===null?(0,J.jsx)(Np,{size:`sm`,variant:`primary`,icon:(0,J.jsx)(cp,{weight:`fill`}),className:`run-scenario`,onClick:()=>u(),children:`Run scenario`}):void 0}),o?(0,J.jsx)(PS,{message:o}):null,c?(0,J.jsx)(bI,{scenario:c,suites:n,catalog:t}):null,c?.transcript?.length?(0,J.jsx)(xI,{scenario:c,catalog:t}):null,d&&r?(0,J.jsxs)(`section`,{"aria-label":`Matrix cells`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`Matrix cells`}),(0,J.jsx)(gI,{api:e,evalIds:[a],catalog:t,matrix:r,runs:i,onRun:(e,t)=>u(t)})]}):null,(0,J.jsx)(iI,{runs:l,order:r?.parameters}),(0,J.jsxs)(`section`,{"aria-label":`Runs`,className:`flex flex-col gap-2`,children:[(0,J.jsxs)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:[`Runs`,` `,(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle tabular-nums`,children:l.length})]}),(0,J.jsx)(CI,{runs:l})]})]})}function bI({scenario:e,suites:t,catalog:n}){let r=t.find(t=>t.id===e.suiteId||t.evalIds.includes(e.id)),i=JS(n),a=e=>i.find(t=>t.scorer.name===e.name&&t.scorer.kind===e.kind&&t.scorer.definedAt===e.definedAt)?.key??e.name,o=e.policy;return(0,J.jsx)(rv,{className:`scenario-definition max-w-3xl p-4`,children:(0,J.jsx)(US,{items:[...r?[[`Suite`,r.name??r.id]]:[],[`Agent`,(0,J.jsx)(gn,{to:iC(GS(e)),className:MS,children:KS(e)},`agent`)],...e.judgeAgent?[[`Judge agent`,(0,J.jsx)(gn,{to:iC(GS({agent:e.judgeAgent})),className:MS,children:e.judgeAgent.name??e.judgeAgent.id??e.judgeAgent.kind},`judge-agent`)]]:[],[`Final scoring`,e.scorers.length?(0,J.jsx)(`span`,{className:`flex flex-wrap gap-x-2`,children:e.scorers.map(e=>(0,J.jsx)(gn,{to:aC(a(e)),className:MS,children:e.name},`${e.kind}-${e.name}`))},`scorers`):`none`],[`Datasets`,(e.datasets??[]).length?(0,J.jsx)(`span`,{className:`flex flex-wrap gap-x-2`,children:(e.datasets??[]).map(e=>(0,J.jsxs)(`span`,{children:[(0,J.jsx)(gn,{to:sC(e.id),className:MS,children:e.id}),` `,(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[`(`,e.visibility===`candidate`?`agent`:`scorers only`,`)`]})]},e.id))},`datasets`):`none`],[`Runs per launch`,e.repeat??1],...o?.timeoutMs===void 0?[]:[[`Timeout`,`${o.timeoutMs/1e3}s`]],...o?.failfast?[[`Failfast`,`stops at the first failed checkpoint`]]:[],[`Runtimes`,e.agent.runtimes.map(e=>`${e.name} (${e.kind})`).join(`, `)||`default`],[`Defined in`,(0,J.jsx)(AC,{at:e.definedAt},`at`)]]})})}function xI({scenario:e,catalog:t}){let n=JS(t);return(0,J.jsxs)(`section`,{"aria-label":`Transcript`,className:`flex max-w-3xl flex-col gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`Transcript`}),(0,J.jsx)(`ol`,{className:`flex flex-col gap-1.5`,children:(e.transcript??[]).map((e,t)=>(0,J.jsxs)(`li`,{className:`flex items-start gap-3 rounded-md border border-kumo-hairline bg-kumo-base px-3 py-2 text-[13px]`,children:[(0,J.jsx)(`span`,{className:`w-5 shrink-0 text-right text-xs text-kumo-subtle tabular-nums`,children:t+1}),(0,J.jsx)(SI,{step:e,judgeKey:e=>n.find(t=>t.scorer.name===e.name&&t.scorer.kind===e.kind&&t.scorer.definedAt===e.definedAt)?.key??e.name})]},t))})]})}function SI({step:e,judgeKey:t}){let n=e=>(0,J.jsx)(`span`,{className:`w-24 shrink-0 text-xs font-medium text-kumo-subtle`,children:e});switch(e.kind){case`user`:return(0,J.jsxs)(J.Fragment,{children:[n(`User says`),e.message===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`Computed for each run from its parameters and datasets; each run's trajectory shows the message it was sent.`}):(0,J.jsx)(`span`,{className:`whitespace-pre-wrap`,children:e.message})]});case`agent`:return(0,J.jsxs)(J.Fragment,{children:[n(`Agent should`),(0,J.jsx)(`code`,{className:NS,children:JSON.stringify(e.expectation)})]});case`expect-tool-call`:return(0,J.jsxs)(J.Fragment,{children:[n(`Expect tool call`),(0,J.jsxs)(`span`,{children:[(0,J.jsx)(`code`,{className:NS,children:e.name}),e.arguments===void 0?null:(0,J.jsx)(`code`,{className:`${NS} ml-2 text-kumo-subtle`,children:JSON.stringify(e.arguments)})]})]});case`checkpoint`:return(0,J.jsxs)(J.Fragment,{children:[n(`Checkpoint`),(0,J.jsx)(gn,{to:aC(t(e.scorer)),className:MS,children:e.scorer.name}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:e.scorer.kind===`judge`?`LLM judge`:`predicate`})]})}}function CI({runs:e}){let[t,n]=(0,v.useState)(0),r=fC(e),i=e.slice(t*vI,(t+1)*vI),a=5+r.columns.length+ +!!r.overflow.length;return(0,J.jsxs)(J.Fragment,{children:[r.constant.length?(0,J.jsxs)(`p`,{className:`flex flex-wrap items-center gap-1 text-[13px] text-kumo-subtle`,role:`note`,children:[`Same on every run:`,(0,J.jsx)(pC,{entries:r.constant})]}):null,(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Run`}),(0,J.jsx)(Q.Head,{children:`Status`}),(0,J.jsx)(Q.Head,{children:`Score`}),(0,J.jsx)(Q.Head,{children:`Started`}),(0,J.jsx)(Q.Head,{children:`Commit`}),r.columns.map(e=>(0,J.jsx)(Q.Head,{children:e},e)),r.overflow.length?(0,J.jsx)(Q.Head,{children:`Other parameters`}):null]})}),(0,J.jsxs)(Q.Body,{children:[i.map(e=>(0,J.jsxs)(Q.Row,{...SC,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(gn,{to:$S(e.id),"data-row-link":!0,className:`${MS} ${NS}`,title:e.id,children:e.id.slice(0,8)})}),(0,J.jsx)(Q.Cell,{title:e.interrupted?`Its process stopped before the run finished`:void 0,children:(0,J.jsx)(_w,{status:e.status})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(bC,{run:e})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(xC,{run:e})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(Cw,{source:e.source})}),r.columns.map(t=>(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(hC,{run:e,name:t})},t)),r.overflow.length?(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(mC,{run:e,keys:r.overflow})}):null]},e.id)),e.length?null:(0,J.jsx)(jS,{colSpan:a,children:`Not run yet.`})]})]}),(0,J.jsx)(JC,{label:`Scenario run pages`,noun:`Runs`,page:t,pageSize:vI,total:e.length,onPage:n})]})}function wI({suite:e,expanded:t,onToggle:n,onRun:r}){return(0,J.jsxs)(Q.Row,{variant:t?`selected`:`default`,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`button`,{type:`button`,className:`${MS} inline-flex items-center gap-1.5`,"aria-expanded":t,onClick:n,children:[(0,J.jsx)(Vf,{"aria-hidden":!0,className:`size-3 transition-transform ${t?`rotate-90`:``}`}),e.name??e.id??`Unnamed suite`]})}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:e.evalIds.length}),(0,J.jsx)(Q.Cell,{className:`text-right`,children:(0,J.jsx)(Np,{size:`xs`,variant:`secondary`,icon:(0,J.jsx)(cp,{weight:`fill`}),disabled:!r,title:r?void 0:`Run matrix cells individually from their rows`,onClick:e=>{e.stopPropagation(),r?.()},children:`Run suite`})})]})}function TI({api:e,suites:t,catalog:n,matrix:r,runs:i=[],selectedSuiteId:a}){let[o,s]=(0,v.useState)(a),[c,l]=(0,v.useState)(),u=e=>t=>l(t instanceof Error?t.message:e),d=(t,n)=>{l(void 0),e.runEval(t,n).catch(u(`Unable to start scenario`))},f=t=>{l(void 0),e.runSuite(t).catch(u(`Unable to start suite`))},p=o,m=n.filter(e=>!e.suiteId&&!t.some(t=>t.evalIds.includes(e.id)));return!t.length&&!m.length?(0,J.jsx)(WS,{message:`No scenarios are loaded.`}):(0,J.jsxs)(J.Fragment,{children:[r?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Each row is one configured matrix cell. Run one row at a time; use the CLI dry-run for larger selections.`}):null,c?(0,J.jsx)(PS,{message:c}):null,t.length>0?(0,J.jsxs)(`section`,{"aria-label":`Suites`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:`Suites`}),(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Suite`}),(0,J.jsx)(Q.Head,{children:`Scenarios`}),(0,J.jsx)(Q.Head,{className:`text-right`,children:`Actions`})]})}),(0,J.jsx)(Q.Body,{children:t.map(t=>(0,J.jsxs)(v.Fragment,{children:[(0,J.jsx)(wI,{suite:t,expanded:p===t.id,onToggle:()=>{s(p===t.id?void 0:t.id)},onRun:r===null?()=>f(t.id):void 0}),p===t.id?(0,J.jsx)(Q.Row,{children:(0,J.jsx)(Q.Cell,{colSpan:3,className:`bg-kumo-elevated`,children:(0,J.jsx)(gI,{api:e,evalIds:t.evalIds,catalog:n,matrix:r,runs:i,nested:!0,onRun:d})})}):null]},t.id))})]})]}):null,m.length>0?(0,J.jsxs)(`section`,{"aria-label":`Scenarios without a suite`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:t.length?`Scenarios without a suite`:`Scenarios`}),(0,J.jsx)(gI,{api:e,evalIds:m.map(e=>e.id),catalog:n,matrix:r,runs:i,onRun:d})]}):null]})}function EI(e){return(0,J.jsxs)(Ot,{children:[(0,J.jsx)(Et,{path:`/`,element:(0,J.jsx)(Tt,{to:`/scoreboard`,replace:!0})}),(0,J.jsx)(Et,{path:`/scoreboard`,element:(0,J.jsx)(zF,{...e})}),(0,J.jsx)(Et,{path:`/runs`,element:(0,J.jsx)(MI,{...e})}),(0,J.jsx)(Et,{path:`/runs/:runId`,element:(0,J.jsx)(NI,{...e})}),(0,J.jsx)(Et,{path:`/runs/:runId/workspace`,element:(0,J.jsx)(NI,{...e,view:`workspace`})}),(0,J.jsx)(Et,{path:`/runs/:runId/attachments`,element:(0,J.jsx)(NI,{...e,view:`attachments`})}),(0,J.jsx)(Et,{path:`/runs/:runId/trials/:trialId/*`,element:(0,J.jsx)(FI,{runs:e.runs})}),(0,J.jsx)(Et,{path:`/trials`,element:(0,J.jsx)(PI,{to:`/runs`})}),(0,J.jsx)(Et,{path:`/workspaces`,element:(0,J.jsx)(MI,{...e,workspaces:!0})}),(0,J.jsx)(Et,{path:`/library/agents`,element:(0,J.jsx)(IC,{...e})}),(0,J.jsx)(Et,{path:`/library/agents/:id`,element:(0,J.jsx)(kI,{...e})}),(0,J.jsx)(Et,{path:`/library/judges`,element:(0,J.jsx)(VC,{...e})}),(0,J.jsx)(Et,{path:`/library/judges/:id`,element:(0,J.jsx)(AI,{...e})}),(0,J.jsx)(Et,{path:`/library/scenarios`,element:(0,J.jsx)(DI,{...e})}),(0,J.jsx)(Et,{path:`/library/scenarios/:id`,element:(0,J.jsx)(OI,{...e})}),(0,J.jsx)(Et,{path:`/library/datasets`,element:(0,J.jsx)(WC,{...e})}),(0,J.jsx)(Et,{path:`/library/datasets/:id`,element:(0,J.jsx)(jI,{...e})}),(0,J.jsx)(Et,{path:`*`,element:(0,J.jsx)(Tt,{to:`/scoreboard`,replace:!0})})]})}function DI(e){let[t]=Sn(),n=t.get(`suite`)??void 0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(kC,{section:`scenarios`}),(0,J.jsx)(TI,{...e,selectedSuiteId:n},n)]})}function OI(e){let{id:t=``}=rt();return(0,J.jsx)(yI,{...e,evalId:t})}function kI(e){let{id:t=``}=rt();return(0,J.jsx)(LC,{...e,agentKey:t})}function AI(e){let{id:t=``}=rt();return(0,J.jsx)(HC,{...e,judgeKey:t})}function jI(e){let{id:t=``}=rt();return(0,J.jsx)(GC,{...e,datasetId:t})}function MI({catalog:e,suites:t,runs:n,workspaces:r=!1}){let[i,a]=Sn();return(0,J.jsx)(bw,{catalog:e,suites:t,runs:n,workspaces:r,search:i,onSearchChange:e=>a(e,{replace:!0})})}function NI({view:e=`run`,...t}){let{runId:n=``}=rt();return(0,J.jsx)(NF,{...t,runId:n,view:e})}function PI({to:e}){let{search:t}=Qe();return(0,J.jsx)(Tt,{to:`${e}${t}`,replace:!0})}function FI({runs:e}){let{runId:t=``,trialId:n=``,"*":r=``}=rt();if(!e.length)return(0,J.jsx)(`output`,{className:`text-[13px]`,children:`Loading…`});let i=e.some(e=>e.id===n)?n:t;return(0,J.jsx)(PI,{to:`/runs/${encodeURIComponent(i)}${r?`/${r}`:``}`})}var II=(0,v.forwardRef)(function({href:e=`/`,...t},n){return(0,J.jsx)(gn,{ref:n,to:e,...t})}),LI=e=>t=>t===e||t.startsWith(`${e}/`),RI=[{label:`Evals`,sections:[{label:`Scoreboard`,href:`/scoreboard`,icon:pp,matches:e=>e===`/`||LI(`/scoreboard`)(e)},{label:`Runs`,href:`/runs`,icon:Kf,matches:e=>LI(`/runs`)(e)&&!e.endsWith(`/workspace`)},{label:`Workspaces`,href:`/workspaces`,icon:Qf,matches:e=>LI(`/workspaces`)(e)||e.endsWith(`/workspace`)}]},{label:`Library`,sections:[{label:`Agents`,href:`/library/agents`,icon:up,matches:LI(`/library/agents`)},{label:`Judges`,href:`/library/judges`,icon:tp,matches:LI(`/library/judges`)},{label:`Scenarios`,href:`/library/scenarios`,icon:Wf,matches:LI(`/library/scenarios`)},{label:`Datasets`,href:`/library/datasets`,icon:Jf,matches:LI(`/library/datasets`)}]}],zI=new Set([`/runs`,`/workspaces`]),BI=RI.flatMap(e=>e.sections);function VI(e){return BI.find(t=>t.matches(e))??BI[0]}function HI(e){return/^\/runs\/[^/]+\/workspace$/.test(e)?`Candidate workspace`:/^\/runs\/[^/]+\/attachments$/.test(e)?`Attachments`:e.startsWith(`/runs/`)?`Run`:VI(e).label}function UI({project:e}){if(!e)return(0,J.jsx)(`span`,{className:`truncate text-sm font-semibold text-kumo-strong`,children:`EvalKit`});let t=e.repo.split(`/`).slice(1).join(`/`)||e.repo;return(0,J.jsxs)(`span`,{className:`project-label flex min-w-0 flex-col leading-tight`,title:`${e.repo}${e.project?`/${e.project}`:``} at ${e.commit}${e.ref?` (${e.ref})`:``}${e.dirty?`, with uncommitted changes`:``}`,children:[(0,J.jsxs)(`span`,{className:`truncate text-sm font-semibold text-kumo-strong`,children:[t,(0,J.jsxs)(`span`,{className:`font-mono font-normal text-kumo-subtle`,children:[`#`,e.commit.slice(0,7)]})]}),(0,J.jsx)(`span`,{className:`truncate text-xs text-kumo-subtle`,children:[e.project,e.ref,e.dirty?`dirty`:void 0].filter(Boolean).join(` · `)})]})}function WI({children:e,header:t,project:n}){let{pathname:r,search:i}=Qe(),a=VI(r),o=e=>zI.has(r)&&zI.has(e.href)?`${e.href}${i}`:e.href;return(0,J.jsx)(Mr,{component:II,children:(0,J.jsxs)(TS.Provider,{collapsible:`icon`,defaultWidth:208,className:`h-dvh`,children:[(0,J.jsxs)(TS,{id:`dashboard-navigation`,children:[(0,J.jsxs)(TS.Header,{className:`justify-between`,children:[(0,J.jsx)(gn,{to:`/scoreboard`,className:`min-w-0 group-data-[state=collapsed]/sidebar:hidden`,children:(0,J.jsx)(UI,{project:n})}),(0,J.jsx)(TS.Trigger,{className:`navigation-toggle`})]}),(0,J.jsx)(TS.Content,{children:(0,J.jsx)(`nav`,{"aria-label":`Dashboard`,children:RI.map((e,t)=>(0,J.jsxs)(TS.Group,{children:[(0,J.jsx)(TS.GroupLabel,{children:e.label}),(0,J.jsx)(TS.Menu,{children:e.sections.map(e=>(0,J.jsx)(TS.MenuButton,{href:o(e),icon:e.icon,active:e===a,"aria-current":e===a?`page`:void 0,tooltip:e.label,children:e.label},e.href))})]},e.label??t))})})]}),(0,J.jsxs)(`main`,{className:`flex min-w-0 flex-1 flex-col overflow-y-auto`,children:[(0,J.jsxs)(`header`,{className:`sticky top-0 z-10 flex h-12 shrink-0 items-center gap-2 border-b border-kumo-line bg-kumo-base px-4 md:px-6`,children:[(0,J.jsx)(TS.Trigger,{className:`md:hidden`}),(0,J.jsx)(`h1`,{className:`text-base font-semibold text-kumo-strong`,children:HI(r)}),t]}),(0,J.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-4 px-4 py-4 md:px-6`,children:e})]})]})})}function GI({share:e}){let[t,n]=(0,v.useState)(),[r,i]=(0,v.useState)();return(0,v.useEffect)(()=>{e.single||fetch(e.repos).then(e=>e.json()).then(e=>n(e.repos)).catch(()=>i(`Unable to load repositories`))},[e.repos,e.single]),(0,J.jsxs)(`div`,{className:`mx-auto flex w-full max-w-4xl flex-col gap-4 px-4 py-8`,children:[(0,J.jsx)(`h1`,{className:`text-base font-semibold text-kumo-strong`,children:`EvalKit · Shared evals`}),e.missing||e.repo&&!e.data?(0,J.jsx)(PS,{message:e.missing?`No shared results for ${e.missing} in ${e.repo}.`:`No shared results for ${e.repo}.`}):null,r?(0,J.jsx)(PS,{message:r}):null,t&&!t.length?(0,J.jsx)(WS,{message:"Nothing shared yet. Run `evalkit share` in an eval project."}):null,t?.length?(0,J.jsxs)(kS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Repository`}),(0,J.jsx)(Q.Head,{children:`Commits`}),(0,J.jsx)(Q.Head,{children:`Last upload`})]})}),(0,J.jsx)(Q.Body,{children:t.map(t=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(`a`,{className:MS,href:`${e.home}${t.key}`,children:t.key})}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.commits}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.lastUploadAt.slice(0,16).replace(`T`,` `)})]},t.key))})]}):null]})}function KI(e=document.documentElement){let t=e.dataset.evalkitShare;if(!t)return;let n;try{n=JSON.parse(t)}catch{return}if(typeof n?.repos!=`string`)return;let r=e=>typeof n[e]==`string`?{[e]:n[e]}:{};return{repos:n.repos,home:typeof n.home==`string`?n.home:`/`,single:n.single===!0,...r(`commits`),...r(`data`),...r(`repo`),...r(`pages`),...r(`missing`)}}function qI(e,t,n,r){let i=/^\/(runs|workspaces)\/./.test(n);return`${e}/-/${t}${i?`/runs`:n===`/`?`/`:n}${i?``:r}`}function JI(e){let t=(e.committedAt??e.firstSeenAt).slice(0,10),n=e.runs?`${e.passed}/${e.runs} passed`:`no committed runs`;return[e.commit.slice(0,7),e.ref,t,n].filter(Boolean).join(` · `)}function YI({pages:e,current:t,commitsUrl:n}){let r=Qe(),[i,a]=(0,v.useState)();(0,v.useEffect)(()=>{let e=!0;return fetch(n).then(e=>e.json()).then(t=>{e&&a(t.commits)}).catch(()=>{e&&a([])}),()=>{e=!1}},[n]);let o=i?.some(e=>e.commit===t);return(0,J.jsxs)(`label`,{className:`version-picker ml-auto flex min-w-0 items-center gap-2 text-[13px] text-kumo-subtle`,children:[(0,J.jsx)(`span`,{className:`hidden sm:inline`,children:`Version`}),(0,J.jsxs)(`select`,{"aria-label":`Version`,className:`max-w-[22rem] min-w-0 truncate rounded-md border border-kumo-line bg-kumo-base px-2 py-1 font-mono text-xs text-kumo-strong`,value:t,onChange:t=>window.location.assign(qI(e,t.target.value,r.pathname,r.search)),children:[o?null:(0,J.jsx)(`option`,{value:t,children:t.slice(0,7)}),i?.map(e=>(0,J.jsx)(`option`,{value:e.commit,children:JI(e)},e.commit))]})]})}function XI({api:e,basename:t,share:n}){return n&&!n.data?(0,J.jsx)(GI,{share:n}):(0,J.jsx)(hn,{basename:t,children:(0,J.jsx)(ZI,{api:e,share:n,basename:t})})}function ZI({api:e,share:t,basename:n}){let r=n?.split(`/-/`)[1],[i,a]=(0,v.useState)([]),[o,s]=(0,v.useState)([]),[c,l]=(0,v.useState)(),[u,d]=(0,v.useState)([]),f=(0,v.useRef)(``),[p,m]=(0,v.useState)(),[h,g]=(0,v.useState)([]),[_,y]=(0,v.useState)(()=>QI(t,r));return(0,v.useEffect)(()=>{let n=!0;return Promise.all([e.listCatalog(),e.listSuites(),e.getMatrix(),e.listLoadErrors?.()??[],t?null:e.getProject?.().catch(()=>null)??null]).then(([e,r,i,o,c])=>{n&&(t||y(c),a(e),g(o),s(r),l(i))}).catch(e=>{n&&m(e instanceof Error?e.message:`Unable to load dashboard`)}),()=>{n=!1}},[e]),(0,v.useEffect)(()=>{let t=!0,n=!1,r=async()=>{if(!n){n=!0;try{let n=await e.listRuns();if(t){let e=JSON.stringify(n);e!==f.current&&(f.current=e,d(n))}}catch(e){t&&m(e instanceof Error?e.message:`Unable to load runs`)}finally{n=!1}}};r();let i=setInterval(()=>void r(),2e3);return()=>{t=!1,clearInterval(i)}},[e]),(0,J.jsxs)(WI,{project:_,header:t?.pages!==void 0&&t.commits&&r?(0,J.jsx)(YI,{pages:t.pages,current:r,commitsUrl:t.commits}):void 0,children:[t?.repo?(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,role:`note`,children:[`Shared results for`,` `,(0,J.jsx)(`a`,{href:`${t.pages??``}/`,className:`font-mono`,children:t.repo}),`. Runs cannot be started here.`]}):e.readOnly?(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,role:`note`,children:[`Read-only snapshot built with `,(0,J.jsx)(`code`,{children:`evalkit build`}),`. Runs cannot be started here.`]}):null,p?(0,J.jsx)(PS,{message:p}):null,h.length?(0,J.jsx)(PS,{title:`${h.length===1?`1 scenario file`:`${h.length} scenario files`} failed to load; their scenarios are missing`,message:h.map(e=>`${e.file}: ${e.error.message}`).join(`
66
- `)}):null,(0,J.jsx)(EI,{api:e,catalog:i,suites:o,matrix:c,runs:u})]})}function QI(e,t){if(!e?.repo||!t)return null;let[n,r]=e.repo.split(`/~`);return{repo:n,...r?{project:r}:{},commit:t}}function $I(e){let t=e.fetch??globalThis.fetch,n=async(n,r)=>{let i=await t(new URL(n,e.baseUrl),r);if(!i.ok)throw Error(await i.text()||`Dashboard request failed: ${i.status}`);return i.json()},r=e=>`/v1/runs/${encodeURIComponent(e)}`,i=async n=>{let r=await t(new URL(n,e.baseUrl));if(!r.ok)throw Error(`Dashboard request failed: ${r.status}`);return r};return{async listCatalog(){return(await n(`/v1/catalog`)).evals},async getProject(){return(await n(`/v1/project`)).project},async listLoadErrors(){return(await n(`/v1/catalog`)).loadErrors??[]},async listMatrixCells(t){let r=new URL(`/v1/matrix/cells`,e.baseUrl);for(let e of t.evalIds)r.searchParams.append(`eval`,e);return r.searchParams.set(`q`,t.query),r.searchParams.set(`offset`,String(t.offset)),r.searchParams.set(`sort`,t.sort),r.searchParams.set(`direction`,t.direction),n(r.pathname+r.search)},async getMatrix(){return(await n(`/v1/matrix`)).matrix},async listEvals(){return(await n(`/v1/evals`)).evals},async listSuites(){return(await n(`/v1/suites`)).suites},async listRuns(){return(await n(`/v1/runs`)).runs},async getRun(e){return n(`${r(e)}`)},async listArtifacts(e){return(await n(`${r(e)}/artifacts`)).artifacts},async listWorkspace(e){return n(`${r(e)}/workspace`)},async getAttachment(e,t){return i(`${r(e)}/attachments/${eL(t)}`)},async getWorkspaceFile(e,t){return i(`${r(e)}/workspace/${eL(t)}`)},async listDatasetFiles(e){return n(`/v1/datasets/${encodeURIComponent(e)}/files`)},async getDatasetFile(n,r){let i=await t(new URL(`/v1/datasets/${encodeURIComponent(n)}/files/${eL(r)}`,e.baseUrl));if(!i.ok)throw Error(`Dashboard request failed: ${i.status}`);return i},async getRunEvents(e){return(await n(`${r(e)}/events`)).events},async runEval(e,t){await n(`/v1/runs`,{method:`POST`,body:JSON.stringify({path:e,...t?{parameters:t}:{}}),headers:{"content-type":`application/json`}})},async runSuite(e){await n(`/v1/suites/${encodeURIComponent(e)}/runs`,{method:`POST`})}}}function eL(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}var tL="This is a read-only dashboard snapshot. Run evals with `evalkit run`, then rebuild it with `evalkit build`.";function nL(e){let t=e.fetch??globalThis.fetch,n=t=>new URL(`data/${t}`,e.baseUrl),r=async e=>{let r=await t(n(e));if(!r.ok)throw Error(e.includes(`/workspace/`)||e.includes(`/attachments/`)||/^datasets\/[^/]+\/files\//.test(e)?`This file is listed, but its contents were not shared.`:`Snapshot file is missing: data/${e}`);return r},i=async e=>(await r(e)).json(),a=e=>`runs/${encodeURIComponent(e)}`;return{readOnly:!0,listCatalog:async()=>(await i(`catalog.json`)).evals,getProject:async()=>(await i(`project.json`).catch(()=>({project:null}))).project,getMatrix:async()=>null,listMatrixCells:async()=>{throw Error(tL)},listEvals:async()=>(await i(`evals.json`)).evals,listSuites:async()=>(await i(`suites.json`)).suites,listRuns:async()=>(await i(`runs.json`)).runs,getRun:e=>i(`${a(e)}/detail.json`),getRunEvents:async e=>(await i(`${a(e)}/events.json`)).events,listArtifacts:async e=>(await i(`${a(e)}/artifacts.json`)).artifacts,listWorkspace:e=>i(`${a(e)}/workspace.json`),getAttachment:(e,t)=>r(`${a(e)}/attachments/${eL(t)}`),getWorkspaceFile:(e,t)=>r(`${a(e)}/workspace/${eL(t)}`),listDatasetFiles:e=>i(`datasets/${encodeURIComponent(e)}/files.json`),getDatasetFile:(e,t)=>r(`datasets/${encodeURIComponent(e)}/files/${eL(t)}`),runEval:async()=>{throw Error(tL)},runSuite:async()=>{throw Error(tL)}}}var rL=document.querySelector(`#root`);if(!rL)throw Error(`Dashboard root is missing`);var iL=document.documentElement.dataset.evalkitSnapshot===`static`,aL=KI(),oL=iL?nL({baseUrl:aL?.data?new URL(aL.data,window.location.origin).href:document.baseURI}):$I({baseUrl:window.location.origin}),sL=iL&&new URL(document.baseURI).pathname.replace(/\/$/,``)||void 0;(0,ES.createRoot)(rL).render((0,J.jsx)(XI,{api:oL,basename:sL,share:aL}));
61
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return PN(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=MP.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function HP(){return{exit:{taskListCheckValueChecked:WP,taskListCheckValueUnchecked:WP,paragraph:GP}}}function UP(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:KP}}}function WP(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function GP(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function KP(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=MP.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function qP(){return[ZM(),xN(),EN(),NP(),HP()]}function JP(e){return{extensions:[QM(),SN(e),DN(),VP(e),UP()]}}var YP={tokenize:lF,partial:!0},XP={tokenize:uF,partial:!0},ZP={tokenize:dF,partial:!0},QP={tokenize:fF,partial:!0},$P={tokenize:pF,partial:!0},eF={name:`wwwAutolink`,tokenize:sF,previous:mF},tF={name:`protocolAutolink`,tokenize:cF,previous:hF},nF={name:`emailAutolink`,tokenize:oF,previous:gF},rF={};function iF(){return{text:rF}}for(var aF=48;aF<123;)rF[aF]=nF,aF++,aF===58?aF=65:aF===91&&(aF=97);rF[43]=nF,rF[45]=nF,rF[46]=nF,rF[95]=nF,rF[72]=[nF,tF],rF[104]=[nF,tF],rF[87]=[nF,eF],rF[119]=[nF,eF];function oF(e,t,n){let r=this,i,a;return o;function o(t){return!_F(t)||!gF.call(r,r.previous)||vF(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return _F(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check($P,u,l)(t):t===45||t===95||zD(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&RD(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function sF(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!mF.call(r,r.previous)||vF(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(YP,e.attempt(XP,e.attempt(ZP,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function cF(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&hF.call(r,r.previous)&&!vF(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(RD(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||VD(t)||KD(t)||YD(t)||JD(t)?n(t):e.attempt(XP,e.attempt(ZP,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function lF(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function uF(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(QP,c,s)(t):t===null||KD(t)||YD(t)||t!==45&&JD(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function dF(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(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(QP,t,a)(o):o===null||KD(o)||YD(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function fF(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||KD(o)||YD(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||KD(e)||YD(e)?t(e):r(e)}function a(e){return RD(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):RD(t)?(e.consume(t),o):n(t)}}function pF(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return zD(e)?n(e):t(e)}}function mF(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||KD(e)}function hF(e){return!RD(e)}function gF(e){return!(e===47||_F(e))}function _F(e){return e===43||e===45||e===46||e===95||zD(e)}function vF(e){let t=e.length,n=!1;for(;t--;){let 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}var yF={tokenize:DF,partial:!0};function bF(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:wF,continuation:{tokenize:TF},exit:EF}},text:{91:{name:`gfmFootnoteCall`,tokenize:CF},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:xF,resolveTo:SF}}}}function xF(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=LD(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function SF(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`;let 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++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function CF(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||KD(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(LD(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return KD(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function wF(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||KD(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=LD(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return KD(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),QD(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function TF(e,t,n){return e.check(gO,t,e.attempt(yF,t,n))}function EF(e){e.exit(`gfmFootnoteDefinition`)}function DF(e,t,n){let r=this;return QD(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function OF(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&AD(o,o.length,0,lO(s,e.slice(r+1,n),t)),AD(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),AD(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=cO(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=cO(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var kF=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){AF(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function AF(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function jF(e,t){let n=!1,r=[];for(;t<e.length;){let 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`){let e=r.length-1;r[e]=r[e]===`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 MF(){return{flow:{null:{name:`table`,tokenize:NF,resolveAll:PF}}}}function NF(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):GD(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):qD(t)?QD(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||KD(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,qD(t)?QD(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return qD(t)?QD(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||GD(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return qD(t)?QD(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||GD(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||GD(n)?(e.exit(`tableRow`),t(n)):qD(n)?QD(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||KD(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function PF(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new kF;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(IF(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=FF(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=FF(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=FF(f,t,o,i,n,d)):(o[0]=o[1],d=FF(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&IF(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=jF(t.events,n))}return e}function FF(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},LF(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=LF(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=LF(t.events,n[2]),a=LF(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},LF(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function IF(e,t,n,r,i){let a=[],o=LF(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function LF(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var RF={name:`tasklistCheck`,tokenize:BF};function zF(){return{text:{91:RF}}}function BF(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return KD(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return GD(r)?t(r):qD(r)?e.check({tokenize:VF},t,n)(r):n(r)}}function VF(e,t,n){return QD(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function HF(e){return ND([iF(),bF(),OF(e),MF(),zF()])}var UF={};function WF(e){let t=this,n=e||UF,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(HF(n)),a.push(qP()),o.push(JP(n))}var GF=q(`markdown min-w-0 text-[13px] leading-relaxed break-words text-kumo-default`,`[&>*:first-child]:mt-0 [&>*:last-child]:mb-0`,`[&_p]:my-2`,`[&_h1]:mt-4 [&_h1]:mb-2 [&_h1]:text-[15px] [&_h1]:font-semibold [&_h1]:text-kumo-strong`,`[&_h2]:mt-4 [&_h2]:mb-2 [&_h2]:text-[14px] [&_h2]:font-semibold [&_h2]:text-kumo-strong`,`[&_h3]:mt-3 [&_h3]:mb-1 [&_h3]:text-[13px] [&_h3]:font-semibold [&_h3]:text-kumo-strong`,`[&_h4]:mt-3 [&_h4]:mb-1 [&_h4]:font-semibold [&_h5]:font-semibold [&_h6]:font-semibold`,`[&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5`,`[&_li]:my-0.5 [&_li>p]:my-0.5 [&_li::marker]:text-kumo-subtle`,`[&_li:has(>input)]:list-none [&_li>input]:mr-1.5 [&_li>input]:align-middle`,`[&_blockquote]:my-2 [&_blockquote]:border-l-2 [&_blockquote]:border-kumo-line [&_blockquote]:pl-3 [&_blockquote]:text-kumo-subtle`,`[&_hr]:my-3 [&_hr]:border-kumo-hairline`,`[&_a]:text-kumo-link [&_a]:underline [&_a]:underline-offset-2`,`[&_strong]:font-semibold [&_strong]:text-kumo-strong`,`[&_code]:rounded [&_code]:bg-kumo-elevated [&_code]:px-1 [&_code]:py-px [&_code]:font-mono [&_code]:text-[12px]`,`[&_pre]:my-2 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-kumo-elevated [&_pre]:px-3 [&_pre]:py-2 [&_pre]:leading-normal`,`[&_pre_code]:bg-transparent [&_pre_code]:p-0`,`[&_table]:my-2 [&_table]:block [&_table]:max-w-full [&_table]:overflow-x-auto [&_table]:border-collapse [&_table]:text-[12px]`,`[&_th]:border [&_th]:border-kumo-hairline [&_th]:bg-kumo-elevated [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-medium`,`[&_td]:border [&_td]:border-kumo-hairline [&_td]:px-2 [&_td]:py-1 [&_td]:align-top`),KF=[WF,qM];function qF(e){return/[`*_#>|[\]~]|^\s*([-+]|\d+\.)\s/m.test(e)}var JF={a:({href:e,title:t,children:n})=>(0,J.jsx)(`a`,{href:e,title:t,target:`_blank`,rel:`noopener noreferrer nofollow`,children:n}),img:({src:e,alt:t})=>typeof e==`string`&&e?(0,J.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer nofollow`,children:t?`Image: ${t}`:`Image`}):(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:t?`Image: ${t}`:`Image`})};function YF({children:e,className:t}){return(0,J.jsx)(`div`,{className:q(GF,t),children:(0,J.jsx)(AM,{remarkPlugins:KF,components:JF,children:e})})}var XF=[`command`,`cmd`,`script`],ZF=[`cwd`,`workdir`,`directory`,`dir`];function QF(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function $F(e){if(typeof e==`string`&&e.trim())return e;if(Array.isArray(e)&&e.length&&e.every(e=>typeof e==`string`))return e.map(e=>/^[\w./=:@%+-]+$/.test(e)?e:`'${e.replace(/'/g,`'\\''`)}'`).join(` `)}function eI(e){if(!Array.isArray(e))return;let t=e.map(e=>QF(e)).filter(e=>e?.type===`text`&&typeof e.text==`string`).map(e=>e.text);return t.length?t.join(`
62
+ `):void 0}function tI(e,t){for(let n of t)if(typeof e[n]==`number`)return e[n]}function nI(e,t){let n=QF(e);if(!n)return;let r=XF.find(e=>$F(n[e]));if(!r)return;let i=ZF.find(e=>typeof n[e]==`string`),a={command:$F(n[r]),...i?{cwd:n[i]}:{},failed:!1,options:Object.entries(n).filter(([e])=>e!==r&&e!==i)};if(!t)return a;let o=t.value,s=QF(o);if(typeof o==`string`)return{...a,output:o};if(!s)return a;let c=(typeof s.output==`string`?s.output:void 0)??(typeof s.stdout==`string`?s.stdout:void 0)??eI(s.content)??(typeof s.text==`string`?s.text:void 0),l=typeof s.stderr==`string`&&s.stderr?s.stderr:void 0,u=tI(s,[`exitCode`,`exit_code`,`code`,`status`]);return{...a,...c===void 0?{}:{output:c},...l?{stderr:l}:{},...u===void 0?{}:{exitCode:u},failed:s.isError===!0||s.is_error===!0||u!==void 0&&u!==0}}var rI=(0,v.createContext)({});function iI({session:e,checkpoints:t,scenario:n}){let[r,i]=(0,v.useState)(`conversation`),a=rw(e.transcript,e.runEvents,e.subagents),o=e.transcript?.records??[],s=!o.length&&!e.runEvents.length;return(0,J.jsx)(rI.Provider,{value:{checkpoints:t,scenario:n},children:(0,J.jsxs)(`section`,{className:`trajectory flex min-w-0 flex-col gap-3`,children:[(0,J.jsxs)(`header`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`Trajectory`}),(0,J.jsx)(gb,{variant:`segmented`,size:`sm`,value:r,onValueChange:e=>i(e),tabs:[{value:`conversation`,label:`Conversation`},{value:`events`,label:`All records (${o.length})`}]})]}),r===`events`?(0,J.jsx)(mI,{records:o}):(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[(0,J.jsx)(aI,{view:a}),s?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Nothing recorded yet.`}):(0,J.jsx)(pI,{durationMs:a.durationMs,scorers:a.scorers})]})]})})}function aI({view:e}){return(0,J.jsxs)(J.Fragment,{children:[e.preamble.length?(0,J.jsx)(sI,{items:e.preamble}):null,e.turns.map((e,t)=>(0,J.jsx)(oI,{turn:e,index:t},t))]})}function oI({turn:e,index:t}){let n=[e.latencyMs===void 0?void 0:iw(e.latencyMs),e.steps?`${e.steps} ${e.steps===1?`step`:`steps`}`:``,e.usage?aw(e.usage):void 0].filter(Boolean);return(0,J.jsxs)(`section`,{className:`turn border-t border-kumo-line pt-3 pb-4 first:border-t-0 first:pt-0`,"aria-label":`Turn ${t+1}`,children:[(0,J.jsxs)(`header`,{className:`mb-2 flex items-baseline justify-between gap-3 text-xs`,children:[(0,J.jsxs)(`h4`,{className:`font-medium text-kumo-strong`,children:[`Turn `,t+1]}),n.length?(0,J.jsx)(`span`,{className:`text-kumo-subtle tabular-nums`,children:n.join(` · `)}):null]}),(0,J.jsx)(sI,{items:e.items})]})}function sI({items:e}){return(0,J.jsx)(`ol`,{className:`relative flex flex-col gap-3 before:absolute before:top-2 before:bottom-2 before:left-[11px] before:w-px before:bg-kumo-line`,children:e.map((e,t)=>(0,J.jsx)(`li`,{className:`trajectory-item item-${e.type}`,children:(0,J.jsx)(lI,{item:e})},t))})}function cI({icon:e,tone:t=`default`,label:n,at:r,children:i}){return(0,J.jsxs)(`div`,{className:`grid grid-cols-[24px_minmax(0,1fr)] gap-x-3`,children:[(0,J.jsx)(`span`,{className:q(`relative z-10 flex size-6 items-center justify-center rounded-full border border-kumo-line bg-kumo-base text-[13px]`,t===`danger`&&`border-kumo-danger text-kumo-danger`,t===`limit`&&`border-kumo-badge-purple bg-kumo-badge-purple/15`,t===`muted`?`text-kumo-subtle`:`text-kumo-default`),"aria-hidden":!0,children:e}),(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5 pt-0.5`,children:[(0,J.jsxs)(`div`,{className:`flex min-h-5 items-baseline gap-2 text-xs`,children:[(0,J.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-1`,children:n}),r===void 0?null:(0,J.jsxs)(`time`,{className:`shrink-0 font-mono text-[11px] text-kumo-subtle tabular-nums`,children:[`+`,iw(r)]})]}),i]})]})}function lI({item:e}){switch(e.type){case`user`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(xp,{}),label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(hI,{children:`User`}),e.scripted?(0,J.jsx)(gI,{children:`from the scenario`}):null]}),at:e.at,children:(0,J.jsx)(TI,{className:`rounded-lg bg-kumo-elevated px-3 py-2`,children:e.text})});case`assistant`:return(0,J.jsxs)(cI,{icon:(0,J.jsx)(gp,{}),tone:e.error?`danger`:`default`,label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(hI,{children:`Assistant`}),e.model?(0,J.jsx)(gI,{children:e.model}):null]}),at:e.at,children:[e.text?(0,J.jsx)(SI,{value:e.text,markdown:!0}):null,e.error?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-danger`,children:e.error}):null]});case`reasoning`:return(0,J.jsxs)(`details`,{className:`reasoning group`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md select-none focus-visible:outline-2 focus-visible:outline-kumo-brand [&::-webkit-details-marker]:hidden`,children:(0,J.jsx)(cI,{icon:(0,J.jsx)(Vf,{}),tone:`muted`,label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Kf,{"aria-hidden":!0,className:`self-center text-kumo-subtle transition-transform group-open:rotate-90`}),(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:e.redacted?`Reasoning (redacted)`:`Reasoning`})]}),at:e.at})}),e.text?(0,J.jsx)(`div`,{className:`mt-1 ml-9`,children:(0,J.jsx)(TI,{children:e.text})}):null]});case`message`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(sp,{}),tone:`muted`,label:(0,J.jsxs)(hI,{children:[e.role,` message`]}),at:e.at,children:(0,J.jsx)(SI,{value:e.content})});case`tool`:return(0,J.jsx)(fI,{item:e});case`checkpoint`:return(0,J.jsx)(kI,{item:e});case`skipped-step`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(_p,{}),tone:`muted`,label:(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[`Step `,e.step+1,` skipped after a failed checkpoint`]}),at:e.at});case`error`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(Sp,{}),tone:`danger`,label:(0,J.jsx)(`span`,{className:`font-semibold text-kumo-danger`,children:`Error`}),at:e.at,children:(0,J.jsx)(vI,{error:e.error})});case`limit`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(lp,{}),tone:`limit`,label:(0,J.jsxs)(`span`,{className:`font-semibold text-kumo-default`,children:[`Stopped at its `,e.limit,` limit`]}),at:e.at,children:(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:uI(e)})});case`compaction`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(Bf,{}),tone:`muted`,label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(hI,{children:`Context compacted`}),e.tokensBefore===void 0?null:(0,J.jsxs)(gI,{children:[`from `,e.tokensBefore.toLocaleString(),` tokens`]})]}),at:e.at,children:e.summary?(0,J.jsx)(TI,{children:e.summary}):null});case`branch`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(cp,{}),tone:`muted`,label:(0,J.jsx)(hI,{children:`Came back from another branch`}),at:e.at,children:(0,J.jsx)(TI,{children:e.summary})});case`subagent`:return(0,J.jsx)(dI,{item:e});case`unknown`:return(0,J.jsx)(cI,{icon:(0,J.jsx)(hp,{}),tone:`muted`,label:(0,J.jsx)(`span`,{className:`font-mono text-kumo-subtle`,children:e.label}),at:e.at,children:(0,J.jsx)(DI,{value:e.record})})}}function uI(e){return e.limit===`time`?`${iw(e.used)} of ${iw(e.value)}`:`${e.used.toLocaleString()} of ${e.value.toLocaleString()} ${e.limit}`}function dI({item:e}){let t=e.relation===`spawn`?`Started`:e.relation===`result`?`Heard back from`:e.relation===`close`?`Closed`:`Messaged`,n=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(hI,{children:[t,` sub-agent `,e.name??``]}),(0,J.jsx)(`span`,{className:`font-mono text-kumo-subtle`,children:e.transcriptId})]});return e.view?(0,J.jsxs)(`details`,{className:`subagent group`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md select-none focus-visible:outline-2 focus-visible:outline-kumo-brand [&::-webkit-details-marker]:hidden`,children:(0,J.jsx)(cI,{icon:(0,J.jsx)(bp,{}),label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Kf,{"aria-hidden":!0,className:`self-center text-kumo-subtle transition-transform group-open:rotate-90`}),n]}),at:e.at,children:e.content?(0,J.jsx)(TI,{children:e.content}):null})}),(0,J.jsx)(`div`,{className:`mt-2 ml-9 flex flex-col border-l border-kumo-line pl-3`,children:(0,J.jsx)(aI,{view:e.view})})]}):(0,J.jsx)(cI,{icon:(0,J.jsx)(bp,{}),label:n,at:e.at,children:e.content?(0,J.jsx)(TI,{children:e.content}):null})}function fI({item:e}){let t=nI(e.arguments,e.result);if(t)return(0,J.jsx)(yI,{item:e,shell:t});let n=OI(e.arguments);return(0,J.jsxs)(`details`,{className:`tool-call group`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md select-none focus-visible:outline-2 focus-visible:outline-kumo-brand [&::-webkit-details-marker]:hidden`,children:(0,J.jsx)(cI,{icon:(0,J.jsx)(Cp,{}),label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Kf,{"aria-hidden":!0,className:`self-center text-kumo-subtle transition-transform group-open:rotate-90`}),(0,J.jsx)(`span`,{className:`font-mono text-[13px] font-medium text-kumo-strong`,children:e.name}),n?(0,J.jsx)(`span`,{className:`min-w-0 truncate font-mono text-kumo-subtle`,children:n}):null,e.result?.isError?(0,J.jsx)(`span`,{className:`rounded bg-kumo-danger-tint px-1.5 text-xs text-kumo-danger`,children:`error`}):null,e.result?(0,J.jsx)(gI,{children:iw(e.result.durationMs)}):(0,J.jsx)(`span`,{className:`text-kumo-warning`,children:`no result`})]}),at:e.at,children:e.result?(0,J.jsxs)(`span`,{className:`line-clamp-2 font-mono text-xs break-words text-kumo-subtle group-open:hidden`,children:[`→ `,OI(e.result.value,240)]}):null})}),(0,J.jsxs)(`div`,{className:`mt-2 ml-9 flex flex-col gap-2`,children:[e.arguments===void 0?null:(0,J.jsx)(_I,{label:`Arguments`,children:(0,J.jsx)(DI,{value:e.arguments})}),e.result?(0,J.jsx)(_I,{label:`Result`,children:(0,J.jsx)(DI,{value:e.result.value})}):null]})]})}function pI({durationMs:e,scorers:t}){let n=t.filter(e=>e.error).length,r=[e===void 0?void 0:`Finished in ${iw(e)}`,t.length?`${t.length} final ${t.length===1?`scorer`:`scorers`} ran${n?`, ${n} errored`:``}`:void 0].filter(Boolean);return r.length?(0,J.jsx)(`p`,{className:`border-t border-kumo-line pt-3 text-xs text-kumo-subtle tabular-nums`,children:r.join(` · `)}):null}function mI({records:e}){let t=Date.parse(e[0]?.time??``);return(0,J.jsx)(`ol`,{className:`raw-events flex flex-col divide-y divide-kumo-line rounded-lg border border-kumo-line text-xs`,children:e.map((e,n)=>{let r=Date.parse(e.time)-t,i=e.type===`message`?`message · ${e.role}`:e.type,{type:a,time:o,hash:s,native:c,...l}=e;return(0,J.jsx)(`li`,{children:(0,J.jsxs)(`details`,{className:`group`,children:[(0,J.jsxs)(`summary`,{className:`grid cursor-pointer list-none grid-cols-[2rem_4rem_5rem_11rem_minmax(0,1fr)] items-baseline gap-x-3 px-3 py-1.5 select-none hover:bg-kumo-elevated [&::-webkit-details-marker]:hidden`,children:[(0,J.jsx)(`span`,{className:`text-right font-mono text-kumo-subtle tabular-nums`,children:n+1}),(0,J.jsx)(`span`,{className:`font-mono text-kumo-subtle tabular-nums`,children:Number.isNaN(r)?``:`+${iw(r)}`}),(0,J.jsx)(`span`,{className:`truncate font-mono text-kumo-subtle`,children:e.id}),(0,J.jsx)(`span`,{className:`font-mono text-kumo-strong`,children:i}),(0,J.jsx)(`span`,{className:`truncate font-mono text-kumo-subtle`,children:JSON.stringify(l)})]}),(0,J.jsx)(`div`,{className:`px-3 pb-2`,children:(0,J.jsx)(DI,{value:e})})]})},e.id)})})}function hI({children:e}){return(0,J.jsx)(`span`,{className:`font-semibold text-kumo-strong first-letter:uppercase`,children:e})}function gI({children:e}){return(0,J.jsx)(`span`,{className:`text-kumo-subtle tabular-nums`,children:e})}function _I({label:e,children:t}){return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:e}),t]})}function vI({error:e}){return(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-danger`,children:[e.name&&e.name!==`Error`?`${e.name}: `:``,e.message]}),e.stack?(0,J.jsxs)(`details`,{className:`text-xs`,children:[(0,J.jsx)(`summary`,{className:`cursor-pointer text-kumo-subtle select-none`,children:`Stack trace`}),(0,J.jsx)(`pre`,{className:`mt-1 overflow-x-auto rounded-md bg-kumo-elevated px-3 py-2 font-mono text-[11px]`,children:e.stack})]}):null]})}function yI({item:e,shell:t}){let n=e.result!==void 0&&t.output===void 0&&t.stderr===void 0;return(0,J.jsxs)(cI,{icon:(0,J.jsx)(yp,{}),tone:t.failed?`danger`:`default`,label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:`font-mono text-[13px] font-medium text-kumo-strong`,children:e.name}),t.exitCode===void 0?null:(0,J.jsxs)(`span`,{className:q(`rounded px-1.5 font-mono text-xs tabular-nums`,t.failed?`bg-kumo-danger-tint text-kumo-danger`:`text-kumo-subtle`),children:[`exit `,t.exitCode]}),t.exitCode===void 0&&t.failed?(0,J.jsx)(`span`,{className:`rounded bg-kumo-danger-tint px-1.5 text-xs text-kumo-danger`,children:`error`}):null,e.result?(0,J.jsx)(gI,{children:iw(e.result.durationMs)}):(0,J.jsx)(`span`,{className:`text-kumo-warning`,children:`no result`}),t.options.length?(0,J.jsx)(gI,{children:t.options.map(([e,t])=>`${e} ${OI(t,40)}`).join(` · `)}):null]}),at:e.at,children:[(0,J.jsxs)(`figure`,{"aria-label":`Shell command: ${t.command}`,className:`terminal flex max-w-[100ch] flex-col overflow-hidden rounded-md bg-[#17171c] font-mono text-xs leading-relaxed text-[#e4e4e7] shadow-sm ring-1 ring-black/10`,children:[t.cwd?(0,J.jsx)(`figcaption`,{className:`border-b border-white/10 px-3 py-1 text-[11px] text-[#9a9aa3]`,children:t.cwd}):null,(0,J.jsxs)(`pre`,{className:`px-3 py-2 break-words whitespace-pre-wrap`,children:[(0,J.jsxs)(`span`,{"aria-hidden":!0,className:`text-[#86efac] select-none`,children:[`$`,` `]}),t.command]}),t.output?(0,J.jsx)(xI,{text:t.output}):null,t.stderr?(0,J.jsx)(xI,{text:t.stderr,className:`text-[#fca5a5]`}):null]}),n?(0,J.jsx)(DI,{value:e.result.value}):null]})}var bI=12;function xI({text:e,className:t}){let n=e.replace(/\n$/,``).split(`
63
+ `),r=n.length>16,[i,a]=(0,v.useState)(!1),o=n.length-bI;return(0,J.jsxs)(`div`,{className:`border-t border-white/10`,children:[r?(0,J.jsx)(`button`,{type:`button`,"aria-expanded":i,onClick:()=>a(!i),className:`w-full border-b border-white/10 px-3 py-1 text-left text-[11px] text-[#9a9aa3] hover:bg-white/5 hover:text-[#e4e4e7] focus-visible:outline-2 focus-visible:outline-kumo-brand`,children:i?`Hide the first ${o} lines`:`Show ${o} earlier lines`}):null,(0,J.jsx)(`pre`,{className:q(`max-h-[32rem] overflow-auto px-3 py-2 break-words whitespace-pre-wrap text-[#c4c4cc]`,t),children:r&&!i?n.slice(-12).join(`
64
+ `):e})]})}function SI({value:e,markdown:t=!1}){return typeof e==`string`?t&&qF(e)?(0,J.jsx)(EI,{children:e}):(0,J.jsx)(TI,{children:e}):(0,J.jsx)(DI,{value:e})}var CI=1200,wI=16;function TI({children:e,className:t}){let n=e.length>CI||e.split(`
65
+ `).length>wI,[r,i]=(0,v.useState)(!1);return(0,J.jsxs)(`div`,{className:q(`flex max-w-[75ch] flex-col items-start gap-1`,t),children:[(0,J.jsx)(`p`,{className:q(`text-[13px] leading-relaxed break-words whitespace-pre-wrap text-kumo-default`,n&&!r&&`line-clamp-[12]`),children:e}),n?(0,J.jsx)(zp,{size:`xs`,variant:`ghost`,onClick:()=>i(!r),children:r?`Show less`:`Show all ${e.split(`
66
+ `).length} lines`}):null]})}function EI({children:e}){let t=e.split(`
67
+ `).length,n=e.length>CI||t>wI,[r,i]=(0,v.useState)(!1),[a,o]=(0,v.useState)(!1);return(0,J.jsxs)(`div`,{className:`flex max-w-[75ch] min-w-0 flex-col items-start gap-1`,children:[(0,J.jsx)(`div`,{className:q(`w-full min-w-0`,n&&!r&&`max-h-72 overflow-hidden [mask-image:linear-gradient(to_bottom,black_75%,transparent)]`),children:a?(0,J.jsx)(`p`,{className:`text-[13px] leading-relaxed break-words whitespace-pre-wrap text-kumo-default`,children:e}):(0,J.jsx)(YF,{children:e})}),(0,J.jsxs)(`div`,{className:`flex gap-1`,children:[n?(0,J.jsx)(zp,{size:`xs`,variant:`ghost`,onClick:()=>i(!r),children:r?`Show less`:`Show all ${t} lines`}):null,(0,J.jsx)(zp,{size:`xs`,variant:`ghost`,"aria-pressed":a,onClick:()=>o(!a),children:a?`Rendered`:`Source`})]})]})}function DI({value:e}){let t=typeof e==`string`?e:JSON.stringify(e,null,2);return(0,J.jsx)(`pre`,{className:`max-h-96 overflow-auto rounded-md bg-kumo-elevated px-3 py-2 font-mono text-xs break-words whitespace-pre-wrap text-kumo-default`,children:t})}function OI(e,t=120){if(e===void 0)return``;let n=typeof e==`object`&&e&&!Array.isArray(e)?Object.entries(e).map(([e,t])=>`${e}: ${JSON.stringify(t)}`).join(`, `):typeof e==`string`?e:JSON.stringify(e);return n.length>t?`${n.slice(0,t-1)}…`:n}function kI({item:e}){let{checkpoints:t,scenario:n}=(0,v.useContext)(rI),[r,i]=DT(),a=t?.find(t=>t.step===e.step&&t.name===e.name),o=eC(n,e.step,e.name),s=TT(e.step),c=a&&(a.status===`failed`||a.status===`error`)?a.error?.message??a.explanation:void 0,l=(0,J.jsxs)(cI,{icon:(0,J.jsx)(tp,{}),tone:e.state===`error`?`danger`:`default`,label:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(hI,{children:`Checkpoint`}),(0,J.jsx)(`span`,{className:`text-[13px] text-kumo-default`,children:e.name}),(0,J.jsx)(mC,{status:e.state}),e.durationMs===void 0?null:(0,J.jsx)(gI,{children:iw(e.durationMs)})]}),at:e.at,children:[o?.description?(0,J.jsx)(`span`,{className:`block text-xs text-kumo-subtle`,children:o.description}):null,c?(0,J.jsx)(`span`,{className:`block truncate text-xs text-kumo-danger`,title:c,children:c.split(`
68
+ `)[0]}):null,!a&&e.error?(0,J.jsx)(vI,{error:e.error}):null]});return a?(0,J.jsx)(`button`,{type:`button`,className:`checkpoint block w-full rounded-md text-left hover:bg-kumo-tint focus-visible:outline-2 focus-visible:outline-kumo-brand ${r===s?`bg-kumo-tint`:``}`,"aria-label":`Show the verdict of ${e.name}`,onClick:()=>i(s),children:l}):l}function AI(e,t){let[n,r]=(0,v.useState)(jI),[i,a]=(0,v.useState)(),o=t?`${t.id}:${t.status}`:``;return(0,v.useEffect)(()=>{if(!t)return;let n=!0;return a(void 0),r(jI),e.getRunTranscript(t.id).then(e=>{n&&r(e)}).catch(e=>{n&&a(e instanceof Error?e.message:`Unable to load the run`)}),()=>{n=!1}},[e,o]),{session:n,error:i}}var jI={transcript:null,subagents:{},runEvents:[]};function MI(e){if(e.kind===`sandbox-exec`)return`sandbox-exec`;let t=e.network===`full`?`full network`:e.network===`fixtures`?`fixtures only`:`no network`;return`container ${e.image} · ${t}`}function NI(e,t){return e.status===`running`?`How it is scoring`:e.status===`errored`?`Why it errored`:e.status===`limited`?`Why it stopped`:e.status===`cancelled`?`How far it got`:t&&e.status===`failed`?`Why it failed`:`How it scored`}function PI(e,t){if(!e)return;let n=kT(e,t).filter(({result:e})=>lw(e)!==`skipped`);if(!n.length)return;let r=n.filter(({result:e})=>[`failed`,`error`].includes(lw(e))).length;return r?`${r} of ${n.length} checks did not pass`:`all ${n.length} checks passed`}function FI(e,t){if(!e)return;let n=kT(e,t).map(({result:e})=>lw(e)).filter(e=>e!==`skipped`);if(!n.length)return;let r=n.filter(e=>[`failed`,`error`].includes(e)).length;return r?`${r} failed`:`${n.length} passed`}function II({run:e,detail:t,scenario:n}){let r=e=>t?.metrics?.find(t=>t.name===e)?.value,i=r(`tokens`),a=r(`cached tokens`),o=r(`cache hit rate`),s=r(`steps`),c=r(`judge tokens`),l=[[`Scenario`,(0,J.jsx)(gn,{to:AC(e.evalId),className:RS,children:n?.name??e.evalId},`scenario`)],[`Agent`,n?QS(n):e.agent??`—`],...Object.entries(e.parameters??{}).map(([e,t])=>[e,(0,J.jsx)(`span`,{className:zS,children:typeof t==`string`?t:JSON.stringify(t)},e)]),...e.batch?[[`Batch`,(0,J.jsxs)(gn,{to:CC(e.batch.id),className:RS,title:`Show every run of this batch`,children:[e.batch.index+1,` of `,e.batch.size]},`batch`)]]:[],...e.isolation?[[`Isolation`,MI(e.isolation)]]:[],[`Commit`,(0,J.jsx)(wT,{source:e.source},`commit`)],[`Started`,(0,J.jsx)(`time`,{dateTime:e.startedAt,children:new Date(e.startedAt).toLocaleString()},`started`)],[`Took`,e.durationMs===void 0?`—`:VC(e.durationMs)],...e.score===void 0?[]:[[`Score`,BC(e.score)]],...s===void 0?[]:[[`Steps`,RI(s,e.limits?.steps)]],...i===void 0?[]:[[`Agent tokens`,[RI(i,e.limits?.tokens),a?`${zI(a)} cached`:``,o===void 0||!a?``:`${Math.round(o*100)}% cache hits`].filter(Boolean).join(` · `)]],...c===void 0?[]:[[`Judge tokens`,c.toLocaleString()]]];return(0,J.jsx)(`dl`,{className:`run-facts grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 text-[13px]`,children:l.map(([e,t])=>(0,J.jsxs)(`div`,{className:`contents`,children:[(0,J.jsx)(`dt`,{className:`text-kumo-subtle`,children:e}),(0,J.jsx)(`dd`,{className:`min-w-0 break-words text-kumo-default tabular-nums`,children:t})]},e))})}function LI({run:e,detail:t,scenario:n,session:r,sessionError:i}){let[a,o]=Sn(),s=e.status===`failed`||e.status===`errored`||e.status===`limited`?`verdicts`:`trajectory`,c=a.get(`pane`)??s,l=e=>o(t=>{let n=new URLSearchParams(t);return n.set(`pane`,e),n},{replace:!0}),u=NI(e,t),d=t?kT(t,n).filter(({result:e})=>[`failed`,`error`].includes(lw(e))).length:0;return(0,J.jsxs)(`div`,{className:`run-inspector flex min-h-0 flex-1 flex-col gap-3 xl:grid xl:grid-cols-2 xl:gap-0`,children:[(0,J.jsx)(`div`,{className:`xl:hidden`,children:(0,J.jsx)(gb,{variant:`segmented`,size:`sm`,value:c,onValueChange:e=>l(e),tabs:[{value:`trajectory`,label:`Trajectory`},{value:`verdicts`,label:d?`${u} · ${d}`:u}]})}),(0,J.jsxs)(`section`,{"aria-label":`What it did`,className:`run-trajectory min-h-0 min-w-0 flex-1 overflow-y-auto xl:block xl:border-r xl:border-kumo-line xl:pr-5 ${c===`trajectory`?``:`hidden`}`,children:[i?(0,J.jsx)(BS,{title:`Unable to load the run`,message:i}):null,(0,J.jsx)(iI,{session:r,checkpoints:t?.checkpoints,scenario:n})]}),(0,J.jsxs)(`section`,{"aria-label":u,className:`run-verdicts flex min-h-0 min-w-0 flex-1 flex-col gap-3 overflow-y-auto xl:flex xl:pl-5 ${c===`verdicts`?``:`hidden`}`,children:[(0,J.jsxs)(`header`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:u}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle tabular-nums`,children:PI(t,n)})]}),e.status===`errored`&&t?.summary?(0,J.jsx)(UI,{summary:t.summary}):null,e.status===`limited`?(0,J.jsx)(BI,{run:e,skipped:HI(t)}):null,t?(0,J.jsx)(jT,{detail:t,scenario:n}):(0,J.jsx)(`output`,{className:`text-[13px] text-kumo-subtle`,children:`Loading…`})]})]})}function RI(e,t){return t===void 0?e.toLocaleString():`${e.toLocaleString()} of ${t.toLocaleString()}`}function zI(e){return new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:1}).format(e)}function BI({run:e,skipped:t}){let n=e.limit;return(0,J.jsxs)(`div`,{className:`run-limit rounded-lg border border-kumo-line bg-kumo-badge-purple/10 px-3 py-2 text-[13px]`,children:[(0,J.jsx)(`p`,{className:`font-medium text-kumo-strong`,children:n?`Stopped at its ${n.limit} limit: ${VI(n)}.`:`Stopped at one of its limits.`}),(0,J.jsxs)(`p`,{className:`text-kumo-subtle`,children:[`Scorers that grade partial work ran on what it left`,t.length?`; ${t.join(`, `)} did not.`:`.`]})]})}function VI(e){return e.limit===`time`?`${VC(e.used)} of ${VC(e.value)}`:`${e.used.toLocaleString()} of ${e.value.toLocaleString()} ${e.limit}`}function HI(e){return e?.summary?.scoring?.skippedScorers??[]}function UI({summary:e}){let t=e.error;return t?.message?(0,J.jsxs)(`div`,{className:`run-error rounded-md border border-kumo-danger/40 bg-kumo-danger-tint px-3 py-2 text-[13px]`,children:[(0,J.jsxs)(`p`,{className:`font-medium text-kumo-strong`,children:[`The run could not finish`,t.name?` (${t.name})`:``]}),(0,J.jsx)(`pre`,{className:`mt-1 max-h-48 overflow-auto font-mono text-xs whitespace-pre-wrap text-kumo-default`,children:t.message})]}):null}function WI({title:e,about:t,children:n}){return(0,J.jsxs)(`section`,{"aria-label":e,className:`flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto`,children:[(0,J.jsxs)(`header`,{className:`flex flex-col gap-0.5`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:e}),t?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:t}):null]}),n]})}function GI(e){return e?[...(e.checkpoints??[]).map(e=>({label:`${e.name} (step ${e.step+1})`,result:e})),...e.scores.map(e=>({label:e.name,result:e}))].filter(({result:e})=>e.judge):[]}function KI({detail:e}){let t=GI(e);if(!t.length)return(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`No judges ran in this run.`});let n=e=>e.judge?.usage?_C(e.judge.usage):void 0,r=t.reduce((e,{result:t})=>e+(n(t)??0),0),i=t.reduce((e,{result:t})=>e+(t.durationMs??0),0);return(0,J.jsxs)(IS,{wrap:!0,children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Judge`}),(0,J.jsx)(Q.Head,{children:`Agent`}),(0,J.jsx)(Q.Head,{children:`Model`}),(0,J.jsx)(Q.Head,{children:`Tokens`}),(0,J.jsx)(Q.Head,{children:`Time`})]})}),(0,J.jsxs)(Q.Body,{children:[t.map(({label:e,result:t})=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:e}),(0,J.jsx)(Q.Cell,{children:t.judge?.agent?.name??t.judge?.agent?.id??`—`}),(0,J.jsx)(Q.Cell,{className:zS,children:t.judge?.model??`—`}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:n(t)?.toLocaleString()??`—`}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.durationMs===void 0?`—`:VC(t.durationMs)})]},e)),t.length>1?(0,J.jsxs)(Q.Row,{className:`font-medium`,children:[(0,J.jsx)(Q.Cell,{children:`Total`}),(0,J.jsx)(Q.Cell,{}),(0,J.jsx)(Q.Cell,{}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:r.toLocaleString()}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:VC(i)})]}):null]})]})}function qI(e){return(e?.metrics??[]).filter(e=>e.name!==`judge tokens`)}function JI({detail:e,limits:t}){let n=qI(e),r={steps:t?.steps,tokens:t?.tokens,"agent time":t?.time};return n.length?(0,J.jsx)(YS,{items:n.map(e=>[e.name,e.error?(0,J.jsx)(`span`,{className:`text-kumo-danger`,children:e.error.message},e.name):(0,J.jsxs)(`span`,{className:`tabular-nums`,children:[e.value===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`not measured`}):HC(e.value,e.unit),r[e.name]===void 0?null:(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[` `,`of `,HC(r[e.name],e.unit),` allowed`]})]},e.name)])}):(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`This run recorded no metrics.`})}function YI({detail:e}){let t=ZI(e.manifest);return t.length?(0,J.jsx)(YS,{items:t.map(e=>[e.id,(0,J.jsxs)(`span`,{title:e.digest,children:[e.visibility,` · `,e.source,` ·`,` `,(0,J.jsx)(`span`,{className:zS,children:e.digest.replace(`sha256:`,``).slice(0,12)})]},e.id)])}):(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`This run used no datasets.`})}function XI({detail:e}){return(0,J.jsx)(`pre`,{className:`raw-report overflow-x-auto rounded-md bg-kumo-elevated px-3 py-2 font-mono text-xs`,children:JSON.stringify({manifest:e.manifest,summary:e.summary},null,2)})}function ZI(e){let t=e?.datasets;return Array.isArray(t)?t.filter(e=>typeof e==`object`&&!!e&&typeof e.id==`string`&&typeof e.digest==`string`):[]}function QI({api:e,runId:t}){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(),[o,s]=Sn();(0,v.useEffect)(()=>{let n=!0;return r(void 0),a(void 0),e.listWorkspace(t).then(e=>{n&&r(e)}).catch(e=>{n&&a(e instanceof Error?e.message:`Unable to load workspace`)}),()=>{n=!1}},[e,t]);let c=(0,v.useCallback)(n=>e.getWorkspaceFile(t,n),[e,t]);return(0,J.jsxs)(`section`,{className:`workspace-inspector flex flex-col gap-2`,children:[i?(0,J.jsx)(BS,{message:i}):null,!n&&!i?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Loading workspace…`}):null,n?(0,J.jsx)(GS,{entries:n,rootLabel:`workspace/`,readFile:c,selected:o.get(`file`)??void 0,onSelect:e=>{let t=new URLSearchParams(o);t.set(`file`,e),s(t,{replace:!0})},emptyMessage:`The workspace is empty.`}):null]})}function $I({api:e,catalog:t,runs:n,runId:r,view:i=`run`}){let a=tt(),o=n.find(e=>e.id===r),{detail:s,error:c}=fT(e,o),{session:l,error:u}=AI(e,o),d=o?t.find(e=>e.id===o.evalId):void 0,f=GI(s),p=o?[{section:`run`,label:`Trajectory & scoring`,count:FI(s,d)},...f.length?[{section:`judging`,label:`Judging`,count:`${f.length}`}]:[],{section:`metrics`,label:`Metrics`,count:`${qI(s).length||``}`},{section:`workspace`,label:`Workspace files`},{section:`logs`,label:`Logs`,count:`${s?.attachments?.length||``}`},...ZI(s?.manifest).length?[{section:`datasets`,label:`Datasets`,count:`${ZI(s?.manifest).length}`}]:[],{section:`raw`,label:`Raw report`}]:[];return(0,v.useEffect)(()=>{if(!o)return;let e=e=>{if(e.metaKey||e.ctrlKey||e.altKey||e.key!==`[`&&e.key!==`]`||e.target?.closest(`input, textarea, select, [contenteditable]`))return;let t=p.findIndex(e=>e.section===i),n=p[(t+(e.key===`]`?1:-1)+p.length)%p.length];n&&a(wC(o.id,n.section))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)}),o?(0,J.jsx)(MC.Provider,{value:{runId:o.id,attachments:s?.attachments??[]},children:(0,J.jsxs)(`div`,{className:`run-page flex flex-col gap-4 lg:grid lg:min-h-0 lg:flex-1 lg:basis-0 lg:grid-cols-[15rem_minmax(0,1fr)] lg:gap-6`,children:[(0,J.jsxs)(`aside`,{"aria-label":`Run`,className:`run-rail flex min-w-0 flex-col gap-3 lg:min-h-0 lg:overflow-y-auto lg:border-r lg:border-kumo-line lg:pr-5`,children:[(0,J.jsx)(ww,{run:o}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsxs)(`h2`,{className:`flex flex-wrap items-center gap-2 text-base font-semibold text-kumo-strong`,children:[`Run `,o.id.slice(0,8),(0,J.jsx)(`span`,{title:o.interrupted?`Its process stopped before the run finished`:void 0,children:(0,J.jsx)(mC,{status:o.status})})]}),(0,J.jsx)(`span`,{className:`font-mono text-xs break-all text-kumo-subtle`,children:o.id}),PI(s,d)?(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:PI(s,d)}):null]}),(0,J.jsx)(II,{run:o,detail:s,scenario:d}),(0,J.jsxs)(`nav`,{"aria-label":`Run sections`,className:`run-sections flex flex-col gap-0.5 border-t border-kumo-line pt-3`,children:[p.map(e=>(0,J.jsxs)(gn,{to:wC(o.id,e.section),"aria-current":e.section===i?`page`:void 0,className:`flex items-baseline justify-between gap-2 rounded-md px-2 py-1.5 text-[13px] ${e.section===i?`bg-kumo-brand/10 font-medium text-kumo-link`:`text-kumo-default hover:bg-kumo-tint`}`,children:[e.label,e.count?(0,J.jsx)(`span`,{className:`text-xs font-normal text-kumo-subtle tabular-nums`,children:e.count}):null]},e.section)),(0,J.jsxs)(`p`,{className:`mt-2 hidden px-2 text-xs text-kumo-subtle lg:block`,children:[(0,J.jsx)(`kbd`,{className:`font-mono`,children:`[`}),` `,(0,J.jsx)(`kbd`,{className:`font-mono`,children:`]`}),` previous and next section`]})]})]}),(0,J.jsxs)(`div`,{className:`run-body flex min-w-0 flex-col gap-3 lg:min-h-0`,children:[c?(0,J.jsx)(BS,{title:`Unable to load the run`,message:c}):null,(0,J.jsx)(eL,{api:e,run:o,view:i,detail:s,scenario:d,session:l,sessionError:u,error:c})]})]})}):n.some(e=>e.batch?.id===r)?(0,J.jsx)(Tt,{to:CC(r),replace:!0}):(0,J.jsx)(XS,{message:n.length?`Run not found: ${r}`:`Loading run…`})}function eL({api:e,run:t,view:n,detail:r,scenario:i,session:a,sessionError:o,error:s}){if(n===`run`)return(0,J.jsx)(LI,{run:t,detail:r,scenario:i,session:a,sessionError:o});if(n===`workspace`)return(0,J.jsx)(WI,{title:`Workspace files`,about:`What the agent left in its workspace, saved when the run ended.`,children:(0,J.jsx)(QI,{api:e,runId:t.id})});if(!r)return s?null:(0,J.jsx)(`output`,{className:`text-[13px] text-kumo-subtle`,children:`Loading…`});switch(n){case`judging`:return(0,J.jsx)(WI,{title:`Judging`,about:`What the judges cost, never counted in the agent's tokens.`,children:(0,J.jsx)(KI,{detail:r})});case`metrics`:return(0,J.jsx)(WI,{title:`Metrics`,children:(0,J.jsx)(JI,{detail:r,limits:t.limits})});case`logs`:return(0,J.jsx)(WI,{title:`Logs`,about:`Files the agent or a check saved on purpose with attach(), such as the agent's transcript or an app's output.`,children:(0,J.jsx)(Xw,{api:e,runId:t.id,attachments:r.attachments??[]})});case`datasets`:return(0,J.jsx)(WI,{title:`Datasets`,children:(0,J.jsx)(YI,{detail:r})});case`raw`:return(0,J.jsx)(WI,{title:`Raw report`,children:(0,J.jsx)(XI,{detail:r})})}}var tL=[`steps`,`tokens`,`time`];function nL(e,t){return e===`time`?t%36e5==0?`${t/36e5}h`:t%6e4==0?`${t/6e4}m`:t%1e3==0?`${t/1e3}s`:`${t}ms`:`${t.toLocaleString(`en-US`)} ${e}`}var rL=[`agent time`,`tokens`,`tool calls`,`judge tokens`];function iL(e){let t=new Map;for(let n of e)for(let e of n.metrics??[])e.value!==void 0&&!t.has(e.name)&&t.set(e.name,{name:e.name,...e.unit?{unit:e.unit}:{},...e.better?{better:e.better}:{}});let n=e=>{let t=rL.indexOf(e);return t===-1?rL.length:t};return[...t.values()].sort((e,t)=>n(e.name)-n(t.name)||e.name.localeCompare(t.name))}function aL(e){let t=new Map;for(let n of e)for(let e of n.metrics??[]){if(e.value===void 0)continue;let n=t.get(e.name)??{sum:0,runs:0};n.sum+=e.value,n.runs+=1,t.set(e.name,n)}return Object.fromEntries([...t].map(([e,{sum:t,runs:n}])=>[e,{mean:t/n,runs:n}]))}function oL(e,t,n){let r=(n,r)=>r?.suiteId??e.find(e=>e.id===n)?.suiteId??t.find(e=>e.evalIds.includes(n))?.id,i=new Map;for(let e of n){if(e.archived)continue;let t=sL(e.evalId,e.parameters??{});i.set(t,[...i.get(t)??[],e])}let a=[...i].map(([t,n])=>{let i=n.sort((e,t)=>t.startedAt.localeCompare(e.startedAt)).slice(0,10),a=i[0],o=i.filter(e=>[`passed`,`failed`,`errored`,`limited`].includes(e.status)),s=o.filter(e=>e.score!==void 0);return{key:t,evalId:a.evalId,scenario:e.find(e=>e.id===a.evalId),suiteId:r(a.evalId,a),parameters:a.parameters??{},runs:i,outcome:a.status,metrics:aL(o),finished:o.length,...s.length?{meanScore:s.reduce((e,t)=>e+t.score,0)/s.length}:{},...o.length?{passRate:o.filter(e=>e.status===`passed`).length/o.length}:{}}});for(let t of e)a.some(e=>e.evalId===t.id)||a.push({key:sL(t.id,{}),evalId:t.id,scenario:t,suiteId:r(t.id),parameters:{},runs:[],outcome:`not-run`,metrics:{},finished:0});return a}function sL(e,t){return`${e}\0${NC(t)}`}function cL({api:e,catalog:t,suites:n,runs:r}){let[i,a]=(0,v.useState)(``),[o,s]=(0,v.useState)(!0),{sort:c,toggleSort:l}=gT({key:``,direction:`asc`}),[u,d]=(0,v.useState)(),f=(0,v.useMemo)(()=>oL(t,n,r),[t,n,r]),p=(0,v.useMemo)(()=>iL(r.filter(e=>!e.archived)),[r]);if(!f.length)return(0,J.jsx)(XS,{message:`No scenarios yet. Add one in scenarios/.`});let m=i.trim().toLowerCase().split(/\s+/).filter(Boolean),h=f.filter(e=>{let t=[e.evalId,e.scenario?.name,e.suiteId,lC[e.outcome],...Object.entries(e.parameters).map(([e,t])=>`${e}=${JSON.stringify(t)}`)].join(` `).toLowerCase();return m.every(e=>t.includes(e))}).sort((e,t)=>dL(e,t,c)||(o?uC[e.outcome]-uC[t.outcome]:0)||(e.scenario?.name??e.evalId).localeCompare(t.scenario?.name??t.evalId)||e.key.localeCompare(t.key)),g=new Map;for(let e of h){let t=e.suiteId??``;g.set(t,[...g.get(t)??[],e])}let _=fL(h,p),y=(e,t)=>(0,J.jsx)(_T,{label:e,sortKey:t,sort:c,onSort:l}),b=e=>n.find(t=>t.id===e)?.name??e,x=t=>{t.scenario&&(d(void 0),e.runEval(t.scenario.path,Object.keys(t.parameters).length?t.parameters:void 0).catch(e=>d(e instanceof Error?e.message:`Unable to start scenario`)))};return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(gL,{rows:f}),u?(0,J.jsx)(BS,{message:u}):null,(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,J.jsx)(uT,{label:`Filter scoreboard`,placeholder:`Scenario, suite, parameter or outcome`,value:i,count:`${h.length} of ${f.length}`,onChange:a}),(0,J.jsxs)(`label`,{className:`flex items-center gap-1.5 text-[13px] text-kumo-subtle`,children:[(0,J.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),`Failures first`]})]}),(0,J.jsxs)(FS,{className:`scoreboard`,children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Scenario`}),(0,J.jsx)(Q.Head,{children:`Latest`}),y(`Score`,`score`),y(`Mean score`,`meanScore`),(0,J.jsxs)(Q.Head,{children:[`Last `,10,` runs`]}),y(`Pass rate`,`passRate`),p.map(e=>(0,J.jsx)(v.Fragment,{children:y(`Mean ${e.name}`,`metric:${e.name}`)},e.name)),(0,J.jsx)(Q.Head,{className:`text-right`,children:e.readOnly?null:`Run`})]})}),(0,J.jsx)(Q.Body,{children:[...g].map(([t,n])=>(0,J.jsxs)(v.Fragment,{children:[g.size>1||t?(0,J.jsx)(Q.Row,{className:`bg-kumo-elevated`,children:(0,J.jsx)(Q.Cell,{colSpan:7+p.length,children:(0,J.jsxs)(`span`,{className:`flex items-center gap-3`,children:[(0,J.jsx)(`span`,{className:`text-xs font-semibold text-kumo-strong`,children:t?b(t):`No suite`}),(0,J.jsx)(_L,{rows:n})]})})}):null,n.map(t=>(0,J.jsx)(lL,{row:t,columns:p,ranges:_,onRun:e.readOnly||!t.scenario?void 0:()=>x(t)},t.key))]},t))})]})]})}function lL({row:e,columns:t,ranges:n,onRun:r}){let i=e.runs[0],a=Object.entries(e.parameters);return(0,J.jsxs)(Q.Row,{"data-outcome":e.outcome,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`span`,{className:`flex max-w-[22rem] flex-col gap-0.5`,children:[(0,J.jsx)(gn,{to:AC(e.evalId),className:`${RS} truncate`,title:e.scenario?.name??e.evalId,children:e.scenario?.name??e.evalId}),a.length?(0,J.jsx)(IC,{entries:a}):null]})}),(0,J.jsx)(Q.Cell,{children:i?(0,J.jsxs)(gn,{to:SC(i.id),className:`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs font-medium ${cC[e.outcome]}`,title:`Latest run ${i.id.slice(0,8)}, ${new Date(i.startedAt).toLocaleString()}`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-2 rounded-full ${sC[e.outcome]}`}),lC[e.outcome],(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle`,children:zC(i.startedAt)})]}):(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:`not run`})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(`span`,{className:`inline-block min-w-10 rounded px-1.5 py-0.5 text-center tabular-nums ${i?cC[e.outcome]:``}`,children:BC(i?.score)})}),(0,J.jsx)(Q.Cell,{children:e.meanScore===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`}):(0,J.jsx)(`span`,{className:`inline-block min-w-10 rounded px-1.5 py-0.5 text-center tabular-nums ${dC(e.meanScore)}`,title:`Mean over the last 10 runs`,children:BC(e.meanScore)})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(mL,{runs:e.runs})}),(0,J.jsx)(Q.Cell,{children:e.passRate===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`—`}):(0,J.jsxs)(`span`,{className:`inline-block min-w-12 rounded px-1.5 py-0.5 text-center tabular-nums ${dC(e.passRate)}`,children:[Math.round(e.passRate*100),`%`]})}),t.map(t=>{let r=e.metrics[t.name];return(0,J.jsx)(Q.Cell,{className:`text-right`,children:r===void 0?(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,title:e.finished?`None of the last ${e.finished} finished runs measured ${t.name}`:`No finished runs`,children:e.finished?`not measured`:`—`}):(0,J.jsxs)(`span`,{className:`inline-flex flex-col items-end`,children:[(0,J.jsx)(`span`,{className:`inline-block rounded px-1.5 py-0.5 tabular-nums ${pL(r.mean,t,n.get(t.name))}`,title:`Mean ${t.name} over the ${r.runs} of the last ${e.finished} finished runs that measured it`,children:HC(r.mean,t.unit)}),r.runs<e.finished?(0,J.jsxs)(`span`,{className:`text-[11px] text-kumo-subtle tabular-nums`,children:[r.runs,` of `,e.finished,` runs`]}):null]})},t.name)}),(0,J.jsx)(Q.Cell,{className:`text-right`,children:r?(0,J.jsx)(zp,{size:`xs`,variant:`secondary`,shape:`square`,"aria-label":`Run ${e.scenario?.name??e.evalId}`,title:`Run again`,icon:(0,J.jsx)(mp,{weight:`fill`}),onClick:r}):null})]})}function uL(e,t){if(t===`score`)return e.runs[0]?.score;if(t===`meanScore`)return e.meanScore;if(t===`passRate`)return e.passRate;if(t.startsWith(`metric:`))return e.metrics[t.slice(7)]?.mean}function dL(e,t,n){if(!n.key)return 0;let r=uL(e,n.key),i=uL(t,n.key);return r===void 0||i===void 0?r===i?0:r===void 0?1:-1:n.direction===`asc`?r-i:i-r}function fL(e,t){let n=new Map;for(let r of t){let t=e.map(e=>e.metrics[r.name]?.mean).filter(e=>e!==void 0);t.length&&n.set(r.name,{min:Math.min(...t),max:Math.max(...t)})}return n}function pL(e,t,n){if(!t.better||!n||n.max===n.min)return``;let r=(e-n.min)/(n.max-n.min);return dC(t.better===`lower`?1-r:r)}function mL({runs:e}){let t=[...Array(Math.max(0,10-e.length)).fill(void 0),...[...e].reverse()];return(0,J.jsx)(`span`,{className:`history inline-flex items-center gap-0.5`,children:t.map((e,t)=>e?(0,J.jsx)(gn,{to:SC(e.id),className:`size-3.5 rounded-[3px] hover:ring-2 hover:ring-kumo-focus ${sC[e.status]}`,title:`${lC[e.status]} · score ${BC(e.score)} · ${new Date(e.startedAt).toLocaleString()}`,"aria-label":`${lC[e.status]} run ${e.id.slice(0,8)}`},e.id):(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-3.5 rounded-[3px] border border-dashed border-kumo-hairline`},`empty-${t}`))})}var hL=[`passed`,`failed`,`errored`,`limited`,`running`,`not-run`];function gL({rows:e}){return(0,J.jsx)(`div`,{className:`tally grid grid-cols-2 gap-2 sm:grid-cols-6`,children:hL.map(t=>{let n=e.filter(e=>e.outcome===t).length;return(0,J.jsxs)(`div`,{"data-outcome":t,className:`flex items-center gap-3 rounded-lg border border-kumo-line px-3 py-2 ${n?cC[t]:``}`,children:[(0,J.jsx)(`span`,{"aria-hidden":!0,className:`size-3 rounded-full ${sC[t]}`}),(0,J.jsx)(`span`,{className:`text-xl font-semibold text-kumo-strong tabular-nums`,children:n}),(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,children:lC[t]})]},t)})})}function _L({rows:e}){let t=[...e].sort((e,t)=>uC[e.outcome]-uC[t.outcome]),n=e.filter(e=>e.outcome===`passed`).length;return(0,J.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(`span`,{className:`flex h-2 w-40 overflow-hidden rounded-full bg-kumo-fill`,children:t.map(e=>(0,J.jsx)(`span`,{className:`h-full flex-1 ${sC[e.outcome]}`},e.key))}),(0,J.jsxs)(`span`,{className:`${zS} text-kumo-subtle`,children:[n,`/`,e.length]})]})}var vL=new Set([`passed`,`failed`,`errored`,`limited`]),yL=`\0all`;function bL(e){return NC(e??null)}function xL(e){let t=new Map;for(let n of e)for(let[e,r]of Object.entries(n.parameters??{}))t.set(e,(t.get(e)??new Set).add(bL(r)));let n=t=>e.every(e=>e.parameters&&t in e.parameters);return[...t].filter(([e,t])=>t.size>1||!n(e)).map(([e])=>e).sort()}function SL(e){return[{id:`pass-rate`,label:`Pass rate`,measure:{kind:`pass-rate`}},{id:`score`,label:`Mean score`,measure:{kind:`score`}},...iL(e).map(e=>({id:`metric:${e.name}`,label:`Mean ${e.name}`,measure:{kind:`metric`,metric:e}}))]}function CL(e,t,n,r,i={}){let a=new Map;for(let t of e){if(t.archived||!vL.has(t.status))continue;let e=NC(t.parameters??{});a.set(e,[...a.get(e)??[],t])}let o=[...a.values()].flatMap(e=>e.sort((e,t)=>t.startedAt.localeCompare(e.startedAt)).slice(0,10)),s=wL(o,t,i[t]),c=n?wL(o,n,i[n]):[{key:yL,label:``,value:void 0}],l=new Map;for(let e of o){let r=`${bL(e.parameters?.[t])}\0${n?bL(e.parameters?.[n]):yL}`;l.set(r,[...l.get(r)??[],e])}let u={};for(let e of s){u[e.key]={};for(let t of c){let n=l.get(`${e.key}\0${t.key}`)??[],{value:i,runs:a}=TL(n,r);u[e.key][t.key]={runs:n.length,measured:a,...i===void 0?{}:{value:i}}}}return{rows:s,columns:c,cells:u}}function wL(e,t,n=[]){let r=new Map;for(let n of e){let e=n.parameters?.[t],i=bL(e);r.has(i)||r.set(i,{key:i,label:e===void 0?`(not set)`:PC(e),value:e})}let i=e=>{let t=n.findIndex(t=>bL(t)===e.key);return t===-1?n.length:t};return[...r.values()].sort((e,t)=>i(e)-i(t)||e.label.localeCompare(t.label,void 0,{numeric:!0}))}function TL(e,t){if(!e.length)return{runs:0};if(t.kind===`pass-rate`)return{value:e.filter(e=>e.status===`passed`).length/e.length,runs:e.length};if(t.kind===`score`){let t=e.map(e=>e.score).filter(e=>e!==void 0);return t.length?{value:t.reduce((e,t)=>e+t,0)/t.length,runs:t.length}:{runs:0}}let n=e.flatMap(e=>{let n=e.metrics?.find(e=>e.name===t.metric.name)?.value;return n===void 0?[]:[n]});return n.length?{value:n.reduce((e,t)=>e+t,0)/n.length,runs:n.length}:{runs:0}}var EL=`-`;function DL({runs:e,order:t}){let[n,r]=Sn(),i=(0,v.useMemo)(()=>xL(e),[e]),a=(0,v.useMemo)(()=>SL(e),[e]),o=i.includes(n.get(`by`)??``)?n.get(`by`):i[0],s=n.get(`across`),c=s===EL?void 0:s&&s!==o&&i.includes(s)?s:i.find(e=>e!==o),l=a.find(e=>e.id===n.get(`show`))??a[0],u=(0,v.useMemo)(()=>o?CL(e,o,c,l.measure,t):void 0,[e,o,c,l,t]);if(!o||!u||!u.rows.length)return null;let d=(e,t)=>r(n=>{let r=new URLSearchParams(n);return r.set(e,t),r},{replace:!0}),f=u.rows.flatMap(e=>u.columns.map(t=>u.cells[e.key]?.[t.key]?.value).filter(e=>e!==void 0)),p=f.length?{min:Math.min(...f),max:Math.max(...f)}:void 0;return(0,J.jsxs)(`section`,{"aria-label":`Compare`,className:`compare flex flex-col gap-2`,children:[(0,J.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-3`,children:[(0,J.jsxs)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:[`Compare`,` `,(0,J.jsxs)(`span`,{className:`font-normal text-kumo-subtle`,children:[`newest `,10,` finished runs per parameter combination`]})]}),(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,J.jsx)(_y,{"aria-label":`Rows`,size:`sm`,className:`min-w-32`,value:o,onValueChange:e=>e&&d(`by`,String(e)),items:Object.fromEntries(i.map(e=>[e,`Rows: ${e}`]))}),(0,J.jsx)(_y,{"aria-label":`Columns`,size:`sm`,className:`min-w-32`,value:c??EL,onValueChange:e=>e&&d(`across`,String(e)),items:{[EL]:`Columns: none`,...Object.fromEntries(i.filter(e=>e!==o).map(e=>[e,`Columns: ${e}`]))}}),(0,J.jsx)(_y,{"aria-label":`Show`,size:`sm`,className:`min-w-36`,value:l.id,onValueChange:e=>e&&d(`show`,String(e)),items:Object.fromEntries(a.map(e=>[e.id,e.label]))})]})]}),(0,J.jsxs)(FS,{className:`w-fit max-w-full`,children:[(0,J.jsx)(Q.Header,{children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsxs)(Q.Head,{children:[o,c?(0,J.jsxs)(`span`,{className:`font-normal`,children:[` ↓ · `,c,` →`]}):null]}),u.columns.map(e=>(0,J.jsx)(Q.Head,{className:`text-right`,children:c?(0,J.jsx)(`span`,{className:zS,children:e.label}):l.label},e.key))]})}),(0,J.jsx)(Q.Body,{children:u.rows.map(e=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(`span`,{className:zS,children:e.label})}),u.columns.map(t=>{let n=u.cells[e.key]?.[t.key];return(0,J.jsx)(Q.Cell,{className:`text-right`,children:(0,J.jsx)(OL,{value:n?.value,runs:n?.runs??0,measured:n?.measured??0,measure:l.measure,range:p})},t.key)})]},e.key))})]})]})}function OL({value:e,runs:t,measured:n,measure:r,range:i}){if(e===void 0)return(0,J.jsx)(`span`,{className:`text-xs text-kumo-subtle`,title:t?`None of these ${t} runs measured it`:`No finished runs`,children:t?`not measured`:`—`});let a=r.kind===`pass-rate`?`${Math.round(e*100)}%`:r.kind===`score`?BC(e):HC(e,r.metric.unit),o=r.kind===`metric`?pL(e,r.metric,i):dC(e);return(0,J.jsxs)(`span`,{className:`inline-flex flex-col items-end`,children:[(0,J.jsx)(`span`,{className:`inline-block min-w-12 rounded px-1.5 py-0.5 text-center tabular-nums ${o}`,children:a}),(0,J.jsx)(`span`,{className:`text-[11px] text-kumo-subtle tabular-nums`,children:n<t?`${n} of ${t} runs`:`${t} ${t===1?`run`:`runs`}`})]})}function kL({id:e,evaluation:t,parameters:n=[],repeat:r,onRun:i,runDisabled:a=!1,latestRun:o,cellParameters:s}){let c=cT(t?.id??e,s),l=t?.name??e,u=t?.path??e;return(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`div`,{className:`flex flex-col`,children:[t?(0,J.jsx)(Ai,{href:AC(t.id),className:RS,children:l}):(0,J.jsx)(`span`,{className:`font-medium`,children:l}),u===l?null:(0,J.jsx)(`span`,{className:`${zS} text-kumo-subtle`,children:u})]})}),n.map((e,t)=>(0,J.jsx)(Q.Cell,{className:zS,children:typeof e==`string`?e:JSON.stringify(e)},t)),(0,J.jsx)(Q.Cell,{children:t?(0,J.jsx)(Ai,{href:OC(ZS(t)),children:QS(t)}):QS(t)}),(0,J.jsx)(Q.Cell,{children:t?.agent.runtimes.map(e=>e.name).join(`, `)||`default`}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:r??t?.repeat??1}),(0,J.jsx)(Q.Cell,{children:o?(0,J.jsx)(Ai,{href:SC(o.id),title:`Open the latest run`,children:(0,J.jsx)(mC,{status:o.status})}):`—`}),(0,J.jsx)(Q.Cell,{className:`text-right`,children:(0,J.jsxs)(`div`,{className:`inline-flex items-center justify-end gap-2`,children:[(0,J.jsx)(Bp,{size:`xs`,variant:`secondary`,icon:(0,J.jsx)(fp,{}),href:c,children:`Runs`}),i||a?(0,J.jsx)(zp,{size:`xs`,variant:`secondary`,icon:(0,J.jsx)(mp,{weight:`fill`}),disabled:a,title:a?`Matrix configuration is still loading`:void 0,onClick:e=>{e.stopPropagation(),i?.()},children:`Run`}):null]})})]})}function AL({nested:e,children:t}){return e?(0,J.jsx)(IS,{children:t}):(0,J.jsx)(FS,{children:t})}function jL({axes:e,sort:t,onSort:n,planned:r=!1}){let i=(e,r)=>(0,J.jsx)(_T,{label:e,sortKey:r,sort:t,onSort:n});return(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[i(`Scenario`,`eval`),e.map(e=>(0,J.jsx)(_T,{label:e,sortKey:`axis:${e}`,sort:t,onSort:n},e)),i(`Agent`,`agent`),r?(0,J.jsx)(Q.Head,{children:`Runtime`}):i(`Runtime`,`runtime`),i(`Repeat`,`repeat`),r?(0,J.jsx)(Q.Head,{children:`Latest run`}):i(`Latest run`,`status`),(0,J.jsx)(Q.Head,{className:`text-right`,children:`Actions`})]})})}var ML=50;function NL({api:e,evalIds:t,catalog:n,matrix:r,runs:i,nested:a=!1,onRun:o}){let[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(0),{sort:d,toggleSort:f}=gT({key:`eval`,direction:`asc`},()=>u(0)),[p,m]=(0,v.useState)(),[h,g]=(0,v.useState)(),_=r.dimensions??Object.keys(r.parameters),y=t.join(`,`);(0,v.useEffect)(()=>{let t=!0;return g(void 0),m(void 0),e.listMatrixCells({evalIds:y.split(`,`).filter(Boolean),query:s,offset:l*ML,sort:d.key,direction:d.direction}).then(e=>{t&&m(e)}).catch(e=>{t&&g(e instanceof Error?e.message:`Unable to list matrix cells`)}),()=>{t=!1}},[e,y,s,l,d]);let b=new Map(n.map(e=>[e.id,e])),x=e=>i.filter(t=>t.matrixId===r.id&&t.cellKey===e).sort((e,t)=>t.startedAt.localeCompare(e.startedAt))[0],S=_.length+6;return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(uT,{label:`Filter matrix cells`,placeholder:`Scenario, parameter or agent`,value:s,count:`${p?.total??0} of ${p?.planned??0} eligible cells`,onChange:e=>{c(e),u(0)}}),h?(0,J.jsx)(BS,{message:h}):null,(0,J.jsxs)(AL,{nested:a,children:[(0,J.jsx)(jL,{axes:_,sort:d,onSort:f,planned:!0}),(0,J.jsxs)(Q.Body,{children:[p?.cells.map(e=>{let t=b.get(e.evalId);return(0,J.jsx)(kL,{id:e.evalId,evaluation:t,parameters:_.map(t=>e.parameters[t]===null?`None`:e.parameters[t]),repeat:r.repeat,latestRun:x(e.key),cellParameters:e.parameters,onRun:t?()=>o(t.path,Object.fromEntries(_.map(t=>[t,e.parameters[t]]))):void 0},e.key)}),!p&&!h?(0,J.jsx)(LS,{colSpan:S,children:`Loading cells…`}):null,p&&!p.cells.length?(0,J.jsx)(LS,{colSpan:S,children:`No matching cells.`}):null]})]}),(0,J.jsx)(Zw,{label:`Matrix cells pages`,noun:`Cells`,page:l,pageSize:ML,total:p?.total??0,onPage:u})]})}var PL=50;function FL(e,t,n,r){let i=t.reduce((e,[,t])=>e*t.length,1),a=e.length*i;if(!Number.isSafeInteger(a))throw Error(`Matrix exceeds safe cell count`);let o=[];for(let s=n;s<Math.min(n+r,a);s++){let n=e[Math.floor(s/i)],r=s%i,a={},c=Array(t.length);for(let e=t.length-1;e>=0;e--){let[n,i]=t[e],o=i[r%i.length];a[n]=o,c[e]=o,r=Math.floor(r/i.length)}o.push({id:n,parameters:a,values:c})}return{rows:o,total:a}}function IL(e,t,n){return JSON.stringify([e,t.map(([e])=>n[e])])}function LL(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function RL(e,t,n){let r=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return r.length?e.filter(e=>{let t=n(e).map(LL).join(` `).toLowerCase();return r.every(e=>t.includes(e))}):[...e]}function zL(e){let t=e.matrix?e.evalIds.length*Object.values(e.matrix.parameters).reduce((e,t)=>e*t.length,1):0;return e.matrix&&(e.matrix.constrained||t>1e3)?(0,J.jsx)(NL,{...e,matrix:e.matrix}):(0,J.jsx)(BL,{...e})}function BL({evalIds:e,catalog:t,matrix:n,runs:r,nested:i=!1,onRun:a}){let[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(``),{sort:u,toggleSort:d}=gT({key:`eval`,direction:`asc`},()=>s(0)),f=n?Object.entries(n.parameters):[],p=new Map(t.map(e=>[e.id,e])),m=new Map;for(let e of r){if(n&&(e.matrixId!==n.id||!e.parameters))continue;let t=n?IL(e.evalId,f,e.parameters):e.evalId,r=m.get(t);(!r||r.startedAt<=e.startedAt)&&m.set(t,e)}let h=e=>p.get(e.id),g=e=>m.get(n?IL(e.id,f,e.parameters):e.id),_=e=>g(e)?.status,{total:y}=FL(e,f,0,0),b=vT(RL(FL(e,f,0,y).rows,c,e=>{let t=h(e);return[t?.name??e.id,e.id,t?.path??e.id,...e.values,QS(t),t?.agent.runtimes.map(e=>e.name).join(`, `)??`default`,_(e)??`not run`]}),u,(e,t)=>{let r=h(e);return t.startsWith(`axis:`)?LL(e.parameters[t.slice(5)]):t===`eval`?r?.name??e.id:t===`agent`?QS(r):t===`runtime`?r?.agent.runtimes.map(e=>e.name).join(`, `)??`default`:t===`repeat`?n?.repeat??r?.repeat??1:t===`status`?_(e)??`not run`:``}),x=Math.max(1,Math.ceil(b.length/PL)),S=Math.min(o,x-1),C=b.slice(S*PL,(S+1)*PL);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(uT,{label:n?`Filter matrix cells`:`Filter scenarios`,placeholder:`Scenario, parameter, agent or status`,value:c,count:`${b.length} of ${y} ${n?`cells`:`scenarios`}`,onChange:e=>{l(e),s(0)}}),(0,J.jsxs)(AL,{nested:i,children:[(0,J.jsx)(jL,{axes:f.map(([e])=>e),sort:u,onSort:d}),(0,J.jsx)(Q.Body,{children:C.length?C.map(e=>{let t=h(e);return(0,J.jsx)(kL,{id:e.id,evaluation:t,parameters:e.values,repeat:n?.repeat,latestRun:g(e),cellParameters:e.parameters,onRun:t&&n!==void 0?()=>a(t.path,n?e.parameters:void 0):void 0,runDisabled:!!t&&n===void 0},IL(e.id,f,e.parameters))}):(0,J.jsx)(LS,{colSpan:f.length+6,children:`No matching cells.`})})]}),(0,J.jsx)(Zw,{label:`Matrix cells pages`,noun:`Cells`,page:S,pageSize:PL,total:b.length,onPage:s})]})}var VL=25;function HL({api:e,catalog:t,suites:n,matrix:r,runs:i,evalId:a}){let[o,s]=(0,v.useState)(),c=t.find(e=>e.id===a),l=(0,v.useMemo)(()=>i.filter(e=>e.evalId===a).sort((e,t)=>t.startedAt.localeCompare(e.startedAt)),[i,a]);if(!c&&!l.length)return(0,J.jsx)(XS,{message:`Scenario not found: ${a}`});let u=t=>{c&&(s(void 0),e.runEval(c.path,t).catch(e=>s(e instanceof Error?e.message:`Unable to start scenario`)))},d=!!c&&!e.readOnly;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`scenarios`,current:c?.name??a}),(0,J.jsx)(Tw,{title:c?.name??a,subtitle:c?.id??`${a} (no longer in the project)`,status:l[0]?(0,J.jsx)(mC,{status:l[0].status}):void 0,actions:d&&r===null?(0,J.jsx)(zp,{size:`sm`,variant:`primary`,icon:(0,J.jsx)(mp,{weight:`fill`}),className:`run-scenario`,onClick:()=>u(),children:`Run scenario`}):void 0}),o?(0,J.jsx)(BS,{message:o}):null,c?(0,J.jsx)(UL,{scenario:c,suites:n}):null,c?(0,J.jsx)(KL,{scenario:c,catalog:t,runs:l}):null,c?.transcript?.length?(0,J.jsx)(WL,{scenario:c,catalog:t}):null,d&&r?(0,J.jsxs)(`section`,{"aria-label":`Matrix cells`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`Matrix cells`}),(0,J.jsx)(zL,{api:e,evalIds:[a],catalog:t,matrix:r,runs:i,onRun:(e,t)=>u(t)})]}):null,(0,J.jsx)(DL,{runs:l,order:r?.parameters}),(0,J.jsxs)(`section`,{"aria-label":`Runs`,className:`flex flex-col gap-2`,children:[(0,J.jsxs)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:[`Runs`,` `,(0,J.jsx)(`span`,{className:`font-normal text-kumo-subtle tabular-nums`,children:l.length})]}),(0,J.jsx)(qL,{runs:l})]})]})}function UL({scenario:e,suites:t}){let n=t.find(t=>t.id===e.suiteId||t.evalIds.includes(e.id)),r=e.policy;return(0,J.jsx)(lv,{className:`scenario-definition max-w-3xl p-4`,children:(0,J.jsx)(YS,{items:[...n?[[`Suite`,n.name??n.id]]:[],[`Agent`,(0,J.jsx)(gn,{to:OC(ZS(e)),className:RS,children:QS(e)},`agent`)],[`Datasets`,(e.datasets??[]).length?(0,J.jsx)(`span`,{className:`flex flex-wrap gap-x-2`,children:(e.datasets??[]).map(e=>(0,J.jsxs)(`span`,{children:[(0,J.jsx)(gn,{to:jC(e.id),className:RS,children:e.id}),` `,(0,J.jsxs)(`span`,{className:`text-kumo-subtle`,children:[`(`,e.visibility===`candidate`?`agent`:`scorers only`,`)`]})]},e.id))},`datasets`):`none`],[`Runs per launch`,e.repeat??1],...e.limits&&Object.keys(e.limits).length?[[`Limits`,tL.flatMap(t=>e.limits?.[t]===void 0?[]:[nL(t,e.limits[t])]).join(` · `)]]:[],...r?.failfast?[[`Failfast`,`stops at the first failed checkpoint`]]:[],[`Runtimes`,e.agent.runtimes.map(e=>`${e.name} (${e.kind})`).join(`, `)||`default`],[`Defined in`,(0,J.jsx)(kw,{at:e.definedAt},`at`)]]})})}function WL({scenario:e,catalog:t}){let n=tC(t);return(0,J.jsxs)(`section`,{"aria-label":`Transcript`,className:`flex max-w-3xl flex-col gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`Transcript`}),(0,J.jsx)(`ol`,{className:`flex flex-col gap-1.5`,children:(e.transcript??[]).map((e,t)=>(0,J.jsxs)(`li`,{className:`flex items-start gap-3 rounded-md border border-kumo-hairline bg-kumo-base px-3 py-2 text-[13px]`,children:[(0,J.jsx)(`span`,{className:`w-5 shrink-0 text-right text-xs text-kumo-subtle tabular-nums`,children:t+1}),(0,J.jsx)(GL,{step:e,judgeKey:e=>n.find(t=>t.scorer.name===e.name&&t.scorer.kind===e.kind&&t.scorer.definedAt===e.definedAt)?.key??e.name})]},t))})]})}function GL({step:e,judgeKey:t}){let n=e=>(0,J.jsx)(`span`,{className:`w-24 shrink-0 text-xs font-medium text-kumo-subtle`,children:e});switch(e.kind){case`user`:return(0,J.jsxs)(J.Fragment,{children:[n(`User says`),e.message===void 0?(0,J.jsx)(`span`,{className:`text-kumo-subtle`,children:`Computed for each run from its parameters and datasets; each run's trajectory shows the message it was sent.`}):(0,J.jsx)(`span`,{className:`whitespace-pre-wrap`,children:e.message})]});case`agent`:return(0,J.jsxs)(J.Fragment,{children:[n(`Agent should`),(0,J.jsx)(`code`,{className:zS,children:JSON.stringify(e.expectation)})]});case`expect-tool-call`:return(0,J.jsxs)(J.Fragment,{children:[n(`Expect tool call`),(0,J.jsxs)(`span`,{children:[(0,J.jsx)(`code`,{className:zS,children:e.name}),e.arguments===void 0?null:(0,J.jsx)(`code`,{className:`${zS} ml-2 text-kumo-subtle`,children:JSON.stringify(e.arguments)})]})]});case`checkpoint`:return(0,J.jsxs)(J.Fragment,{children:[n(`Checkpoint`),(0,J.jsxs)(`span`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,J.jsxs)(`span`,{children:[(0,J.jsx)(gn,{to:kC(t(e.scorer)),className:RS,children:e.scorer.name}),` `,(0,J.jsxs)(`span`,{className:`text-xs text-kumo-subtle`,children:[e.scorer.kind===`judge`?`LLM judge`:`predicate`,` · passes at `,ow(e.scorer.passAt,e.scorer.answer)]})]}),e.scorer.description?(0,J.jsx)(`span`,{className:`text-kumo-default`,children:e.scorer.description}):null]})]})}}function KL({scenario:e,catalog:t,runs:n}){let r=tC(t);return e.scorers.length?(0,J.jsxs)(`section`,{"aria-label":`How it is scored`,className:`flex max-w-4xl flex-col gap-2`,children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold text-kumo-strong`,children:`How it is scored`}),(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`A run passes when every scorer and checkpoint passes. Its score is the mean of the final scorers' values.`}),(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Scorer`}),(0,J.jsx)(Q.Head,{children:`Checks`}),(0,J.jsx)(Q.Head,{children:`Passes at`}),(0,J.jsx)(Q.Head,{children:`Last 10 runs`})]})}),(0,J.jsx)(Q.Body,{children:e.scorers.map(e=>{let t=r.find(t=>t.scorer.name===e.name&&t.scorer.kind===e.kind&&t.scorer.definedAt===e.definedAt)?.key??e.name,i=iC(n,e.name);return(0,J.jsxs)(Q.Row,{children:[(0,J.jsxs)(Q.Cell,{children:[(0,J.jsx)(gn,{to:kC(t),className:RS,children:e.name}),(0,J.jsx)(`span`,{className:`block text-xs text-kumo-subtle`,children:e.kind===`judge`?`LLM judge${e.agent?` · ${e.agent.name??e.agent.id??e.agent.kind}`:``}`:`predicate`})]}),(0,J.jsx)(Q.Cell,{className:`whitespace-normal`,children:e.description??e.rubric??(0,J.jsx)(`span`,{className:`text-kumo-subtle italic`,children:`No description`})}),(0,J.jsx)(Q.Cell,{children:ow(e.passAt,e.answer)}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:i.total?`${i.passed}/${i.total}`:`—`})]},`${e.kind}-${e.name}`)})})]})]}):null}function qL({runs:e}){let[t,n]=(0,v.useState)(0),r=FC(e),i=e.slice(t*VL,(t+1)*VL),a=5+r.columns.length+ +!!r.overflow.length;return(0,J.jsxs)(J.Fragment,{children:[r.constant.length?(0,J.jsxs)(`p`,{className:`flex flex-wrap items-center gap-1 text-[13px] text-kumo-subtle`,role:`note`,children:[`Same on every run:`,(0,J.jsx)(IC,{entries:r.constant})]}):null,(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Run`}),(0,J.jsx)(Q.Head,{children:`Status`}),(0,J.jsx)(Q.Head,{children:`Score`}),(0,J.jsx)(Q.Head,{children:`Started`}),(0,J.jsx)(Q.Head,{children:`Commit`}),r.columns.map(e=>(0,J.jsx)(Q.Head,{children:e},e)),r.overflow.length?(0,J.jsx)(Q.Head,{children:`Other parameters`}):null]})}),(0,J.jsxs)(Q.Body,{children:[i.map(e=>(0,J.jsxs)(Q.Row,{...Ew,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(gn,{to:SC(e.id),"data-row-link":!0,className:`${RS} ${zS}`,title:e.id,children:e.id.slice(0,8)})}),(0,J.jsx)(Q.Cell,{title:e.interrupted?`Its process stopped before the run finished`:void 0,children:(0,J.jsx)(mC,{status:e.status})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(UC,{run:e})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(WC,{run:e})}),(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(wT,{source:e.source})}),r.columns.map(t=>(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(RC,{run:e,name:t})},t)),r.overflow.length?(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(LC,{run:e,keys:r.overflow})}):null]},e.id)),e.length?null:(0,J.jsx)(LS,{colSpan:a,children:`Not run yet.`})]})]}),(0,J.jsx)(Zw,{label:`Scenario run pages`,noun:`Runs`,page:t,pageSize:VL,total:e.length,onPage:n})]})}function JL({suite:e,expanded:t,onToggle:n,onRun:r}){return(0,J.jsxs)(Q.Row,{variant:t?`selected`:`default`,children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsxs)(`button`,{type:`button`,className:`${RS} inline-flex items-center gap-1.5`,"aria-expanded":t,onClick:n,children:[(0,J.jsx)(Kf,{"aria-hidden":!0,className:`size-3 transition-transform ${t?`rotate-90`:``}`}),e.name??e.id??`Unnamed suite`]})}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:e.evalIds.length}),(0,J.jsx)(Q.Cell,{className:`text-right`,children:(0,J.jsx)(zp,{size:`xs`,variant:`secondary`,icon:(0,J.jsx)(mp,{weight:`fill`}),disabled:!r,title:r?void 0:`Run matrix cells individually from their rows`,onClick:e=>{e.stopPropagation(),r?.()},children:`Run suite`})})]})}function YL({api:e,suites:t,catalog:n,matrix:r,runs:i=[],selectedSuiteId:a}){let[o,s]=(0,v.useState)(a),[c,l]=(0,v.useState)(),u=e=>t=>l(t instanceof Error?t.message:e),d=(t,n)=>{l(void 0),e.runEval(t,n).catch(u(`Unable to start scenario`))},f=t=>{l(void 0),e.runSuite(t).catch(u(`Unable to start suite`))},p=o,m=n.filter(e=>!e.suiteId&&!t.some(t=>t.evalIds.includes(e.id)));return!t.length&&!m.length?(0,J.jsx)(XS,{message:`No scenarios are loaded.`}):(0,J.jsxs)(J.Fragment,{children:[r?(0,J.jsx)(`p`,{className:`text-[13px] text-kumo-subtle`,children:`Each row is one configured matrix cell. Run one row at a time; use the CLI dry-run for larger selections.`}):null,c?(0,J.jsx)(BS,{message:c}):null,t.length>0?(0,J.jsxs)(`section`,{"aria-label":`Suites`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:`Suites`}),(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Suite`}),(0,J.jsx)(Q.Head,{children:`Scenarios`}),(0,J.jsx)(Q.Head,{className:`text-right`,children:`Actions`})]})}),(0,J.jsx)(Q.Body,{children:t.map(t=>(0,J.jsxs)(v.Fragment,{children:[(0,J.jsx)(JL,{suite:t,expanded:p===t.id,onToggle:()=>{s(p===t.id?void 0:t.id)},onRun:r===null?()=>f(t.id):void 0}),p===t.id?(0,J.jsx)(Q.Row,{children:(0,J.jsx)(Q.Cell,{colSpan:3,className:`bg-kumo-elevated`,children:(0,J.jsx)(zL,{api:e,evalIds:t.evalIds,catalog:n,matrix:r,runs:i,nested:!0,onRun:d})})}):null]},t.id))})]})]}):null,m.length>0?(0,J.jsxs)(`section`,{"aria-label":`Scenarios without a suite`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-sm font-semibold text-kumo-strong`,children:t.length?`Scenarios without a suite`:`Scenarios`}),(0,J.jsx)(zL,{api:e,evalIds:m.map(e=>e.id),catalog:n,matrix:r,runs:i,onRun:d})]}):null]})}function XL(e){return(0,J.jsxs)(Ot,{children:[(0,J.jsx)(Et,{path:`/`,element:(0,J.jsx)(Tt,{to:`/scoreboard`,replace:!0})}),(0,J.jsx)(Et,{path:`/scoreboard`,element:(0,J.jsx)(cL,{...e})}),(0,J.jsx)(Et,{path:`/runs`,element:(0,J.jsx)(nR,{...e})}),(0,J.jsx)(Et,{path:`/runs/:runId`,element:(0,J.jsx)(aR,{...e})}),rR.map(t=>(0,J.jsx)(Et,{path:`/runs/:runId/${t}`,element:(0,J.jsx)(aR,{...e,view:t})},t)),(0,J.jsx)(Et,{path:`/runs/:runId/attachments`,element:(0,J.jsx)(iR,{})}),(0,J.jsx)(Et,{path:`/runs/:runId/trials/:trialId/*`,element:(0,J.jsx)(sR,{runs:e.runs})}),(0,J.jsx)(Et,{path:`/trials`,element:(0,J.jsx)(oR,{to:`/runs`})}),(0,J.jsx)(Et,{path:`/workspaces`,element:(0,J.jsx)(nR,{...e,workspaces:!0})}),(0,J.jsx)(Et,{path:`/library/agents`,element:(0,J.jsx)(Fw,{...e})}),(0,J.jsx)(Et,{path:`/library/agents/:id`,element:(0,J.jsx)($L,{...e})}),(0,J.jsx)(Et,{path:`/library/judges`,element:(0,J.jsx)(Hw,{...e})}),(0,J.jsx)(Et,{path:`/library/judges/:id`,element:(0,J.jsx)(eR,{...e})}),(0,J.jsx)(Et,{path:`/library/scenarios`,element:(0,J.jsx)(ZL,{...e})}),(0,J.jsx)(Et,{path:`/library/scenarios/:id`,element:(0,J.jsx)(QL,{...e})}),(0,J.jsx)(Et,{path:`/library/datasets`,element:(0,J.jsx)(Jw,{...e})}),(0,J.jsx)(Et,{path:`/library/datasets/:id`,element:(0,J.jsx)(tR,{...e})}),(0,J.jsx)(Et,{path:`*`,element:(0,J.jsx)(Tt,{to:`/scoreboard`,replace:!0})})]})}function ZL(e){let[t]=Sn(),n=t.get(`suite`)??void 0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ow,{section:`scenarios`}),(0,J.jsx)(YL,{...e,selectedSuiteId:n},n)]})}function QL(e){let{id:t=``}=rt();return(0,J.jsx)(HL,{...e,evalId:t})}function $L(e){let{id:t=``}=rt();return(0,J.jsx)(Iw,{...e,agentKey:t})}function eR(e){let{id:t=``}=rt();return(0,J.jsx)(Kw,{...e,judgeKey:t})}function tR(e){let{id:t=``}=rt();return(0,J.jsx)(Yw,{...e,datasetId:t})}function nR({catalog:e,suites:t,runs:n,workspaces:r=!1}){let[i,a]=Sn();return(0,J.jsx)(xT,{catalog:e,suites:t,runs:n,workspaces:r,search:i,onSearchChange:e=>a(e,{replace:!0})})}var rR=[`judging`,`metrics`,`workspace`,`logs`,`datasets`,`raw`];function iR(){let{runId:e=``}=rt();return(0,J.jsx)(oR,{to:`/runs/${encodeURIComponent(e)}/logs`})}function aR({view:e=`run`,...t}){let{runId:n=``}=rt();return(0,J.jsx)($I,{...t,runId:n,view:e})}function oR({to:e}){let{search:t}=Qe();return(0,J.jsx)(Tt,{to:`${e}${t}`,replace:!0})}function sR({runs:e}){let{runId:t=``,trialId:n=``,"*":r=``}=rt();if(!e.length)return(0,J.jsx)(`output`,{className:`text-[13px]`,children:`Loading…`});let i=e.some(e=>e.id===n)?n:t;return(0,J.jsx)(oR,{to:`/runs/${encodeURIComponent(i)}${r?`/${r}`:``}`})}var cR=(0,v.forwardRef)(function({href:e=`/`,...t},n){return(0,J.jsx)(gn,{ref:n,to:e,...t})}),lR=e=>t=>t===e||t.startsWith(`${e}/`),uR=[{label:`Evals`,sections:[{label:`Scoreboard`,href:`/scoreboard`,icon:vp,matches:e=>e===`/`||lR(`/scoreboard`)(e)},{label:`Runs`,href:`/runs`,icon:Zf,matches:lR(`/runs`)},{label:`Workspaces`,href:`/workspaces`,icon:rp,matches:lR(`/workspaces`)}]},{label:`Library`,sections:[{label:`Agents`,href:`/library/agents`,icon:gp,matches:lR(`/library/agents`)},{label:`Judges`,href:`/library/judges`,icon:op,matches:lR(`/library/judges`)},{label:`Scenarios`,href:`/library/scenarios`,icon:Yf,matches:lR(`/library/scenarios`)},{label:`Datasets`,href:`/library/datasets`,icon:$f,matches:lR(`/library/datasets`)}]}],dR=new Set([`/runs`,`/workspaces`]),fR=uR.flatMap(e=>e.sections);function pR(e){return fR.find(t=>t.matches(e))??fR[0]}function mR(e){return/^\/runs\/[^/]+\/workspace$/.test(e)?`Candidate workspace`:/^\/runs\/[^/]+\/attachments$/.test(e)?`Attachments`:e.startsWith(`/runs/`)?`Run`:pR(e).label}function hR({project:e}){if(!e)return(0,J.jsx)(`span`,{className:`truncate text-sm font-semibold text-kumo-strong`,children:`EvalKit`});let t=e.repo.split(`/`).slice(1).join(`/`)||e.repo;return(0,J.jsxs)(`span`,{className:`project-label flex min-w-0 flex-col leading-tight`,title:`${e.repo}${e.project?`/${e.project}`:``} at ${e.commit}${e.ref?` (${e.ref})`:``}${e.dirty?`, with uncommitted changes`:``}`,children:[(0,J.jsxs)(`span`,{className:`truncate text-sm font-semibold text-kumo-strong`,children:[t,(0,J.jsxs)(`span`,{className:`font-mono font-normal text-kumo-subtle`,children:[`#`,e.commit.slice(0,7)]})]}),(0,J.jsx)(`span`,{className:`truncate text-xs text-kumo-subtle`,children:[e.project,e.ref,e.dirty?`dirty`:void 0].filter(Boolean).join(` · `)})]})}function gR({children:e,project:t}){let{pathname:n,search:r}=Qe(),i=pR(n),a=e=>dR.has(n)&&dR.has(e.href)?`${e.href}${r}`:e.href;return(0,J.jsx)(Mr,{component:cR,children:(0,J.jsxs)(jS.Provider,{collapsible:`icon`,defaultWidth:208,className:`h-dvh`,children:[(0,J.jsxs)(jS,{id:`dashboard-navigation`,children:[(0,J.jsxs)(jS.Header,{className:`justify-between`,children:[(0,J.jsx)(gn,{to:`/scoreboard`,className:`min-w-0 group-data-[state=collapsed]/sidebar:hidden`,children:(0,J.jsx)(hR,{project:t})}),(0,J.jsx)(jS.Trigger,{className:`navigation-toggle`})]}),(0,J.jsx)(jS.Content,{children:(0,J.jsx)(`nav`,{"aria-label":`Dashboard`,children:uR.map((e,t)=>(0,J.jsxs)(jS.Group,{children:[(0,J.jsx)(jS.GroupLabel,{children:e.label}),(0,J.jsx)(jS.Menu,{children:e.sections.map(e=>(0,J.jsx)(jS.MenuButton,{href:a(e),icon:e.icon,active:e===i,"aria-current":e===i?`page`:void 0,tooltip:e.label,children:e.label},e.href))})]},e.label??t))})})]}),(0,J.jsxs)(`main`,{className:`flex min-w-0 flex-1 flex-col overflow-y-auto`,children:[(0,J.jsx)(`h1`,{className:`sr-only`,children:mR(n)}),(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 shrink-0 flex-col gap-4 px-4 py-4 md:px-6`,children:[(0,J.jsx)(jS.Trigger,{className:`self-start md:hidden`}),e]})]})]})})}function _R({share:e}){let[t,n]=(0,v.useState)(),[r,i]=(0,v.useState)();return(0,v.useEffect)(()=>{e.single||fetch(e.repos).then(e=>e.json()).then(e=>n(e.repos)).catch(()=>i(`Unable to load repositories`))},[e.repos,e.single]),(0,J.jsxs)(`div`,{className:`mx-auto flex w-full max-w-4xl flex-col gap-4 px-4 py-8`,children:[(0,J.jsx)(`h1`,{className:`text-base font-semibold text-kumo-strong`,children:`EvalKit · Shared evals`}),e.missing||e.repo&&!e.data?(0,J.jsx)(BS,{message:e.missing?`No shared results for ${e.missing} in ${e.repo}.`:`No shared results for ${e.repo}.`}):null,r?(0,J.jsx)(BS,{message:r}):null,t&&!t.length?(0,J.jsx)(XS,{message:"Nothing shared yet. Run `evalkit share` in an eval project."}):null,t?.length?(0,J.jsxs)(FS,{children:[(0,J.jsx)(Q.Header,{variant:`compact`,children:(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Head,{children:`Repository`}),(0,J.jsx)(Q.Head,{children:`Commits`}),(0,J.jsx)(Q.Head,{children:`Last upload`})]})}),(0,J.jsx)(Q.Body,{children:t.map(t=>(0,J.jsxs)(Q.Row,{children:[(0,J.jsx)(Q.Cell,{children:(0,J.jsx)(`a`,{className:RS,href:`${e.home}${t.key}`,children:t.key})}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.commits}),(0,J.jsx)(Q.Cell,{className:`tabular-nums`,children:t.lastUploadAt.slice(0,16).replace(`T`,` `)})]},t.key))})]}):null]})}function vR(e=document.documentElement){let t=e.dataset.evalkitShare;if(!t)return;let n;try{n=JSON.parse(t)}catch{return}if(typeof n?.repos!=`string`)return;let r=e=>typeof n[e]==`string`?{[e]:n[e]}:{};return{repos:n.repos,home:typeof n.home==`string`?n.home:`/`,single:n.single===!0,...r(`commits`),...r(`data`),...r(`repo`),...r(`pages`),...r(`missing`)}}function yR(e,t,n,r){let i=/^\/(runs|workspaces)\/./.test(n);return`${e}/-/${t}${i?`/runs`:n===`/`?`/`:n}${i?``:r}`}function bR(e){let t=(e.committedAt??e.firstSeenAt).slice(0,10),n=e.runs?`${e.passed}/${e.runs} passed`:`no committed runs`;return[e.commit.slice(0,7),e.ref,t,n].filter(Boolean).join(` · `)}function xR({pages:e,current:t,commitsUrl:n}){let r=Qe(),[i,a]=(0,v.useState)();(0,v.useEffect)(()=>{let e=!0;return fetch(n).then(e=>e.json()).then(t=>{e&&a(t.commits)}).catch(()=>{e&&a([])}),()=>{e=!1}},[n]);let o=i?.some(e=>e.commit===t);return(0,J.jsxs)(`label`,{className:`version-picker ml-auto flex min-w-0 items-center gap-2 text-[13px] text-kumo-subtle`,children:[(0,J.jsx)(`span`,{className:`hidden sm:inline`,children:`Version`}),(0,J.jsxs)(`select`,{"aria-label":`Version`,className:`max-w-[22rem] min-w-0 truncate rounded-md border border-kumo-line bg-kumo-base px-2 py-1 font-mono text-xs text-kumo-strong`,value:t,onChange:t=>window.location.assign(yR(e,t.target.value,r.pathname,r.search)),children:[o?null:(0,J.jsx)(`option`,{value:t,children:t.slice(0,7)}),i?.map(e=>(0,J.jsx)(`option`,{value:e.commit,children:bR(e)},e.commit))]})]})}function SR({api:e,basename:t,share:n}){return n&&!n.data?(0,J.jsx)(_R,{share:n}):(0,J.jsx)(hn,{basename:t,children:(0,J.jsx)(CR,{api:e,share:n,basename:t})})}function CR({api:e,share:t,basename:n}){let r=n?.split(`/-/`)[1],[i,a]=(0,v.useState)([]),[o,s]=(0,v.useState)([]),[c,l]=(0,v.useState)(),[u,d]=(0,v.useState)([]),f=(0,v.useRef)(``),[p,m]=(0,v.useState)(),[h,g]=(0,v.useState)([]),[_,y]=(0,v.useState)(()=>wR(t,r));return(0,v.useEffect)(()=>{let n=!0;return Promise.all([e.listCatalog(),e.listSuites(),e.getMatrix(),e.listLoadErrors?.()??[],t?null:e.getProject?.().catch(()=>null)??null]).then(([e,r,i,o,c])=>{n&&(t||y(c),a(e),g(o),s(r),l(i))}).catch(e=>{n&&m(e instanceof Error?e.message:`Unable to load dashboard`)}),()=>{n=!1}},[e]),(0,v.useEffect)(()=>{let t=!0,n=!1,r=async()=>{if(!n){n=!0;try{let n=await e.listRuns();if(t){let e=JSON.stringify(n);e!==f.current&&(f.current=e,d(n))}}catch(e){t&&m(e instanceof Error?e.message:`Unable to load runs`)}finally{n=!1}}};r();let i=setInterval(()=>void r(),2e3);return()=>{t=!1,clearInterval(i)}},[e]),(0,J.jsxs)(gR,{project:_,children:[t?.repo?(0,J.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,role:`note`,children:[`Shared results for`,` `,(0,J.jsx)(`a`,{href:`${t.pages??``}/`,className:`font-mono`,children:t.repo}),`. Runs cannot be started here.`]}),t.pages!==void 0&&t.commits&&r?(0,J.jsx)(xR,{pages:t.pages,current:r,commitsUrl:t.commits}):null]}):e.readOnly?(0,J.jsxs)(`p`,{className:`text-[13px] text-kumo-subtle`,role:`note`,children:[`Read-only snapshot built with `,(0,J.jsx)(`code`,{children:`evalkit build`}),`. Runs cannot be started here.`]}):null,p?(0,J.jsx)(BS,{message:p}):null,h.length?(0,J.jsx)(BS,{title:`${h.length===1?`1 scenario file`:`${h.length} scenario files`} failed to load; their scenarios are missing`,message:h.map(e=>`${e.file}: ${e.error.message}`).join(`
69
+ `)}):null,(0,J.jsx)(XL,{api:e,catalog:i,suites:o,matrix:c,runs:u})]})}function wR(e,t){if(!e?.repo||!t)return null;let[n,r]=e.repo.split(`/~`);return{repo:n,...r?{project:r}:{},commit:t}}function TR(e){let t=e.fetch??globalThis.fetch,n=async(n,r)=>{let i=await t(new URL(n,e.baseUrl),r);if(!i.ok)throw Error(await i.text()||`Dashboard request failed: ${i.status}`);return i.json()},r=e=>`/v1/runs/${encodeURIComponent(e)}`,i=async n=>{let r=await t(new URL(n,e.baseUrl));if(!r.ok)throw Error(`Dashboard request failed: ${r.status}`);return r};return{async listCatalog(){return(await n(`/v1/catalog`)).evals},async getProject(){return(await n(`/v1/project`)).project},async listLoadErrors(){return(await n(`/v1/catalog`)).loadErrors??[]},async listMatrixCells(t){let r=new URL(`/v1/matrix/cells`,e.baseUrl);for(let e of t.evalIds)r.searchParams.append(`eval`,e);return r.searchParams.set(`q`,t.query),r.searchParams.set(`offset`,String(t.offset)),r.searchParams.set(`sort`,t.sort),r.searchParams.set(`direction`,t.direction),n(r.pathname+r.search)},async getMatrix(){return(await n(`/v1/matrix`)).matrix},async listEvals(){return(await n(`/v1/evals`)).evals},async listSuites(){return(await n(`/v1/suites`)).suites},async listRuns(){return(await n(`/v1/runs`)).runs},async getRun(e){return n(`${r(e)}`)},async listArtifacts(e){return(await n(`${r(e)}/artifacts`)).artifacts},async listWorkspace(e){return n(`${r(e)}/workspace`)},async getAttachment(e,t){return i(`${r(e)}/attachments/${ER(t)}`)},async getWorkspaceFile(e,t){return i(`${r(e)}/workspace/${ER(t)}`)},async listDatasetFiles(e){return n(`/v1/datasets/${encodeURIComponent(e)}/files`)},async getDatasetFile(n,r){let i=await t(new URL(`/v1/datasets/${encodeURIComponent(n)}/files/${ER(r)}`,e.baseUrl));if(!i.ok)throw Error(`Dashboard request failed: ${i.status}`);return i},async getRunTranscript(e){return n(`${r(e)}/transcript`)},async runEval(e,t){await n(`/v1/runs`,{method:`POST`,body:JSON.stringify({path:e,...t?{parameters:t}:{}}),headers:{"content-type":`application/json`}})},async runSuite(e){await n(`/v1/suites/${encodeURIComponent(e)}/runs`,{method:`POST`})}}}function ER(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}var DR="This is a read-only dashboard snapshot. Run evals with `evalkit run`, then rebuild it with `evalkit build`.";function OR(e){let t=e.fetch??globalThis.fetch,n=t=>new URL(`data/${t}`,e.baseUrl),r=async e=>{let r=await t(n(e));if(!r.ok)throw Error(e.includes(`/workspace/`)||e.includes(`/attachments/`)||/^datasets\/[^/]+\/files\//.test(e)?`This file is listed, but its contents were not shared.`:`Snapshot file is missing: data/${e}`);return r},i=async e=>(await r(e)).json(),a=e=>`runs/${encodeURIComponent(e)}`;return{readOnly:!0,listCatalog:async()=>(await i(`catalog.json`)).evals,getProject:async()=>(await i(`project.json`).catch(()=>({project:null}))).project,getMatrix:async()=>null,listMatrixCells:async()=>{throw Error(DR)},listEvals:async()=>(await i(`evals.json`)).evals,listSuites:async()=>(await i(`suites.json`)).suites,listRuns:async()=>(await i(`runs.json`)).runs,getRun:e=>i(`${a(e)}/detail.json`),getRunTranscript:e=>i(`${a(e)}/transcript.json`),listArtifacts:async e=>(await i(`${a(e)}/artifacts.json`)).artifacts,listWorkspace:e=>i(`${a(e)}/workspace.json`),getAttachment:(e,t)=>r(`${a(e)}/attachments/${ER(t)}`),getWorkspaceFile:(e,t)=>r(`${a(e)}/workspace/${ER(t)}`),listDatasetFiles:e=>i(`datasets/${encodeURIComponent(e)}/files.json`),getDatasetFile:(e,t)=>r(`datasets/${encodeURIComponent(e)}/files/${ER(t)}`),runEval:async()=>{throw Error(DR)},runSuite:async()=>{throw Error(DR)}}}var kR=document.querySelector(`#root`);if(!kR)throw Error(`Dashboard root is missing`);var AR=document.documentElement.dataset.evalkitSnapshot===`static`,jR=vR(),MR=AR?OR({baseUrl:jR?.data?new URL(jR.data,window.location.origin).href:document.baseURI}):TR({baseUrl:window.location.origin}),NR=AR&&new URL(document.baseURI).pathname.replace(/\/$/,``)||void 0;(0,MS.createRoot)(kR).render((0,J.jsx)(SR,{api:MR,basename:NR,share:jR}));