PageSourceSearch

https://caura.ai/_next/static/chunks/1jvyx16f-eqe-.js

js caura.ai collected 2026-10-05 11:54:34 UTC 109,117 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,258950,343084,229315,953760,e=>{"use strict";let t,n=["top","right","bottom","left"],r=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,i=Math.max,l=Math.round,a=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t,n){return i(e,o(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return m(g(e))}function b(e,t,n){void 0===n&&(n=!1);let r=p(e),o=v(e),i=h(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=P(l)),[l,P(l)]}function x(e){let t=P(e);return[w(e),t,w(t)]}function w(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],S=["right","left"],C=["top","bottom"],j=["bottom","top"];function E(e,t,n,r){let o=p(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?S:y;return t?y:S;case"left":case"right":return t?C:j;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}function P(e){let t=f(e);return c[t]+e.slice(t.length)}function R(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function T(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function N(e,t,n){let r,{reference:o,floating:i}=e,l=g(t),a=v(t),s=h(a),c=f(t),u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[s]/2-i[s]/2;switch(c){case"top":r={x:u,y:o.y-i.height};break;case"bottom":r={x:u,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}let b=p(t);return b&&(r[a]+=m*("end"===b?1:-1)*(n&&"y"===l?-1:1)),r}async function k(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=d(t,e),h=R(m),g=a[p?"floating"===f?"reference":"floating":f],v=T(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},y=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:s}):b);return{top:(v.top-y.top+h.top)/w.y,bottom:(y.bottom-v.bottom+h.bottom)/w.y,left:(v.left-y.left+h.left)/w.x,right:(y.right-v.right+h.right)/w.x}}e.s(["clamp",0,u,"createCoords",0,s,"evaluate",0,d,"floor",0,a,"getAlignment",0,p,"getAlignmentAxis",0,v,"getAlignmentSides",0,b,"getAxisLength",0,h,"getExpandedPlacements",0,x,"getOppositeAlignmentPlacement",0,w,"getOppositeAxis",0,m,"getOppositeAxisPlacements",0,E,"getOppositePlacement",0,P,"getPaddingObject",0,R,"getSide",0,f,"getSideAxis",0,g,"max",0,i,"min",0,o,"placements",0,r,"rectToClientRect",0,T,"round",0,l,"sides",0,n],343084);let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:k},s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=N(c,r,s),f=r,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:g,fn:v}=h,{x:b,y:x,data:w,reset:y}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=x?x:d,m[g]={...m[g],...w},y&&p<50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):y.rects),{x:u,y:d}=N(c,f,s)),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(e){return n.some(t=>e[t]>=0)}function D(e){let t=o(...e.map(e=>e.left)),n=o(...e.map(e=>e.top));return{x:t,y:n,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-n}}let M=new Set(["left","top"]);async function F(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=f(n),a=p(n),s="y"===g(n),c=M.has(l)?-1:1,u=i&&s?-1:1,m=d(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:b}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}
1:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof b&&(v="end"===a?-1*b:b),s?{x:v*u,y:h*c}:{x:h*c,y:v*u}}function I(){return"u">typeof window}function _(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return!!I()&&(e instanceof Node||e instanceof z(e).Node)}function H(e){return!!I()&&(e instanceof Element||e instanceof z(e).Element)}function V(e){return!!I()&&(e instanceof HTMLElement||e instanceof z(e).HTMLElement)}function B(e){return!(!I()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function U(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function X(e){return/^(table|td|th)$/.test(_(e))}function Y(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let K=/transform|translate|scale|rotate|perspective|filter/,q=/paint|layout|strict|content/,G=e=>!!e&&"none"!==e;function Z(e){let t=H(e)?et(e):e;return G(t.transform)||G(t.translate)||G(t.scale)||G(t.rotate)||G(t.perspective)||!Q()&&(G(t.backdropFilter)||G(t.filter))||K.test(t.willChange||"")||q.test(t.contain||"")}function J(e){let t=er(e);for(;V(t)&&!ee(t);){if(Z(t))return t;if(Y(t))break;t=er(t)}return null}function Q(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ee(e){return/^(html|body|#document)$/.test(_(e))}function et(e){return z(e).getComputedStyle(e)}function en(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===_(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||$(e);return B(t)?t.host:t}function eo(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=er(t);return ee(n)?(t.ownerDocument||t).body:V(n)&&U(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=z(o);if(!i)return t.concat(o,eo(o,[],n));{let e=ei(l);return t.concat(l,l.visualViewport||[],U(o)?o:[],e&&n?eo(e):[])}}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function el(e){let t=et(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=V(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=l(n)!==i||l(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ea(e){return H(e)?e:e.contextElement}function es(e){let t=ea(e);if(!V(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=el(t),a=(i?l(n.width):n.width)/r,c=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}e.s(["getComputedStyle",0,et,"getContainingBlock",0,J,"getDocumentElement",0,$,"getFrameElement",0,ei,"getNodeName",0,_,"getNodeScroll",0,en,"getOverflowAncestors",0,eo,"getParentNode",0,er,"getWindow",0,z,"isContainingBlock",0,Z,"isElement",0,H,"isHTMLElement",0,V,"isLastTraversableNode",0,ee,"isNode",0,W,"isOverflowElement",0,U,"isShadowRoot",0,B,"isTableElement",0,X,"isTopLayer",0,Y,"isWebKit",0,Q],229315);let ec=s(0);function eu(e){let t=z(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ec}function ed(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ea(e),a=s(1);t&&(r?H(r)&&(a=es(r)):a=es(e));let c=(void 0===(o=n)&&(o=!1),r&&o&&r===z(l))?eu(l):s(0),u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(l&&r){let e=z(l),t=H(r)?z(r):r,n=e,o=ei(n);for(;o&&t!==n;){let e=es(o),t=o.getBoundingClientRect(),r=et(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=i,d+=l,o=ei(n=z(o))}}return T({width:f,height:p,x:u,y:d})}function ef(e,t){let n=en(e).scrollLeft;return t?t.left+n:ed($(e)).left+n}function ep(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ef(e,n),y:n.top+t.scrollTop}}function em(e,t,n){var r;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");
1let r="layoutViewport"===n,o=z(e),i=$(e),l=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(l){let e=!Q()||"fixed"===t;r?e||(c=-l.offsetLeft,u=-l.offsetTop):(a=l.width,s=l.height,e&&(c=l.offsetLeft,u=l.offsetTop))}if(0>=ef(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:s,x:c,y:u}}(e,n,t);else if("document"===t){let t,n,l,a,s,c;t=en(r=$(e)),n=r.ownerDocument.body,l=i(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),a=i(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+ef(r),c=-t.scrollTop,"rtl"===et(n).direction&&(s+=i(r.clientWidth,n.clientWidth)-l),o={width:l,height:a,x:s,y:c}}else if(H(t)){let e,r,i,l,a,s;r=(e=ed(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=es(t),a=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:a,height:s,x:i*l.x,y:r*l.y}}else{let n=eu(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return T(o)}function eh(e){return"static"===et(e).position}function eg(e,t){if(!V(e)||"fixed"===et(e).position)return null;if(t)return t(e);let n=e.offsetParent;return $(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){let n=z(e);if(Y(e))return n;if(!V(e)){let t=er(e);for(;t&&!ee(t);){if(H(t)&&!eh(t))return t;t=er(t)}return n}let r=eg(e,t);for(;r&&X(r)&&eh(r);)r=eg(r,t);return r&&ee(r)&&eh(r)&&!Z(r)?n:r||J(e)||n}let eb=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=V(t),o=$(t),i="fixed"===n,l=ed(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=s(0);if((r||!i)&&(("body"!==_(t)||U(o))&&(a=en(t)),r)){let e=ed(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&o&&(c.x=ef(o));let u=!o||r||i?s(0):ep(o,a);return{x:l.left+a.scrollLeft-c.x-u.x,y:l.top+a.scrollTop-c.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ex={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=$(r),a=!!t&&Y(t.floating);if(r===l||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=V(r);if((f||!i)&&(("body"!==_(r)||U(l))&&(c=en(r)),f)){let e=ed(r);u=es(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!l||f||i?s(0):ep(l,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}},getDocumentElement:$,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?Y(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eo(e,[],!1).filter(e=>H(e)&&"body"!==_(e)),o=null,i="fixed"===et(e).position,l=i?er(e):e;for(;H(l)&&!ee(l);){let e=et(l),t=Z(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=er(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=em(t,a[0],l),c=s.top,u=s.right,d=s.bottom,f=s.left;for(let e=1;e<a.length;e++){let n=em(t,a[e],l);c=i(n.top,c),u=o(n.right,u),d=o(n.bottom,d),f=i(n.left,f)}return{width:u-f,height:d-c,x:f,y:c}},getOffsetParent:ev,getElementRects:eb,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=el(e);return{width:t,height:n}},getScale:es,isElement:H,isRTL:function(e){return"rtl"===et(e).direction}};function ew(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ey=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,s=await F(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},eS=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),f={x:n,y:r},p=await i.detectOverflow(t,c),h=g(o),v=m(h),b=f[v],x=f[h],w=(e,t)=>u(t+p["y"===e?"top":"left"],t,t-p["y"===e?"bottom":"right"]);l&&(b=w(v,b)),a&&(x=w(h,x));let y=s.fn({...t,[v]:b,[h]:x});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[v]:l,[h]:a}}}}}},eC=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:s,rects:c,initialPlacement:u,platform:p,elements:m}=t,{mainAxis:h=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...j}=d(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let R=f(a),T=g(u),N=f(u)===u,k=await (null==p.isRTL?void 0:p.isRTL(m.floating)),O=w||(N||!C?[P(u)]:x(u)),A="none"!==S;!w&&A&&O.push(...E(u,C,S,k));let L=[u,...O],D=await p.detectOverflow(t,j),M=[],F=(null==(r=s.flip)?void 0:r.overflows)||[];if(h&&M.push(D[R]),v){let e=b(a,c,k);M.push(D[e[0]],D[e[1]])}if(F=[...F,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=L[e];if(t&&("alignment"!==v||T===g(t)||F.every(e=>g(e.placement)!==T||e.overflows[0]>0)))return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(i=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(y){case"bestFit":{let e=null==(l=F.filter(e=>{if(A){let t=g(e.placement);return t===T||"y"===t}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])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}},ej=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:l,rects:a,platform:s,elements:c}=t,{apply:u=()=>{},...m}=d(e,t),h=await s.detectOverflow(t,m),v=f(l),b=p(l),x="y"===g(l),{width:w,height:y}=a.floating;"top"===v||"bottom"===v?(n=v,r=b===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(r=v,n="end"===b?"top":"bottom");let S=y-h.top-h.bottom,C=w-h.left-h.right,j=o(y-h[n],S),E=o(w-h[r],C),P=t.middlewareData.shift,R=!P,T=j,N=E;null!=P&&P.enabled.x&&(N=C),null!=P&&P.enabled.y&&(T=S),R&&!b&&(x?N=w-2*i(h.left,h.right):T=y-2*i(h.top,h.bottom)),await u({...t,availableWidth:N,availableHeight:T});let k=await s.getDimensions(c.floating);return w!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}},eE=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=d(e,t);switch(o){case"referenceHidden":{let e=A(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:L(e)}}}case"escaped":{let e=A(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:L(e)}}}default:return{}}}}},eP=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:l,platform:a,elements:s,middlewareData:c}=t,{element:f,padding:m=0}=d(e,t)||{};if(null==f)return{};let g=R(m),b={x:n,y:r},x=v(i),w=h(x),y=await a.getDimensions(f),S="y"===x,C=S?"clientHeight":"clientWidth",j=l.reference[w]+l.reference[x]-b[x]-l.floating[w],E=b[x]-l.reference[x],P=await (null==a.getOffsetParent?void 0:a.getOffsetParent(f)),T=P?P[C]:0;T&&await (null==a.isElement?void 0:a.isElement(P))||(T=s.floating[C]||l.floating[w]);let N=T/2-y[w]/2-1,k=o(g[S?"top":"left"],N),O=o(g[S?"bottom":"right"],N),A=T-y[w]-O,L=T/2-y[w]/2+(j/2-E/2),D=u(k,L,A),M=!c.arrow&&null!=p(i)&&L!==D&&l.reference[w]/2-(L<k?k:O)-y[w]/2<0,F=M?L<k?L-k:L-A:0;return{[x]:b[x]+F,data:{[x]:D,centerOffset:L-D-F,...M&&{alignmentOffset:F}},reset:M}}}),eR=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,o,i;let{x:l,y:a,placement:s,rects:c,middlewareData:u}=t,{offset:p=0,mainAxis:h=!0,crossAxis:v=!0}=d(e,t),b={x:l,y:a},x=g(s),w=m(x),y=b[w],S=b[x],C=d(p,t),j="number"==typeof C?{mainAxis:C,crossAxis:0}:{mainAxis:null!=(n=C.mainAxis)?n:0,crossAxis:null!=(r=C.crossAxis)?r:0};if(h){let e="y"===w?"height":"width",t=c.reference[w]-c.floating[e]+j.mainAxis,n=c.reference[w]+c.reference[e]-j.mainAxis;y<t?y=t:y>n&&(y=n)}if(v){let e="y"===w?"width":"height",t=M.has(f(s)),n=c.reference[x]-c.floating[e]+(t&&(null==(o=u.offset)?void 0:o[x])||0)+(t?0:j.crossAxis),r=c.reference[x]+c.reference[e]+(t?0:(null==(i=u.offset)?void 0:i[x])||0)-(t?j.crossAxis:0);S<n?S=n:S>r&&(S=r)}return{[w]:y,[x]:S}}}},eT=(e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...ex,...o.platform,_c:r};return O(e,t,{...o,platform:i})};e.s(["arrow",0,eP,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i,l;let{rects:a,middlewareData:s,placement:c,platform:u,elements:m}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:v=r,autoAlignment:x=!0,...y}=d(e,t),S=void 0!==g||v===r?((l=g||null)?[...v.filter(e=>p(e)===l),...v.filter(e=>p(e)!==l)]:v.filter(e=>f(e)===e)).filter(e=>!l||p(e)===l||!!x&&w(e)!==e):v,C=(null==(n=s.autoPlacement)?void 0:n.index)||0,j=S[C];if(null==j)return{};if(c!==j)return{reset:{placement:S[0]}};let E=await u.detectOverflow(t,y),P=b(j,a,await (null==u.isRTL?void 0:u.isRTL(m.floating))),R=[E[f(j)],E[P[0]],E[P[1]]],T=[...(null==(o=s.autoPlacement)?void 0:o.overflows)||[],{placement:j,overflows:R}],N=S[C+1];if(N)return{data:{index:C+1,overflows:T},reset:{placement:N}};let k=T.map(e=>{let t=p(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>
1e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),O=(null==(i=k.filter(e=>e[2].slice(0,p(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||k[0][0];return O!==c?{data:{index:C+1,overflows:T},reset:{placement:O}}:{}}}},"autoUpdate",0,function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=ea(e),m=s||c?[...p?eo(p):[],...t?eo(t):[]]:[];m.forEach(e=>{s&&e.addEventListener("scroll",n),c&&e.addEventListener("resize",n)});let h=p&&d?function(e,t,n){let r,l=null,s=$(e);function c(){var e;clearTimeout(r),null==(e=l)||e.disconnect(),l=null}function u(n,d){void 0===n&&(n=!1),void 0===d&&(d=1),c();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(n||t(),!h||!g)return;let v={rootMargin:-a(m)+"px "+-a(s.clientWidth-(p+h))+"px "+-a(s.clientHeight-(m+g))+"px "+-a(p)+"px",threshold:i(0,o(1,d))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(!ew(f,e.getBoundingClientRect()))return u();if(n!==d){if(!b)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}b=!1}try{l=new IntersectionObserver(x,{...v,root:s.ownerDocument})}catch(e){l=new IntersectionObserver(x,v)}l.observe(e)}let d=z(e),f=()=>u(n);return d.addEventListener("resize",f),u(!0),()=>{d.removeEventListener("resize",f),c()}}(p,n,c):null,g=-1,v=null;u&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!f&&v.observe(p),t&&v.observe(t));let b=f?ed(e):null;return f&&function t(){let r=ed(e);b&&!ew(b,r)&&n(),b=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{s&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=v)||e.disconnect(),v=null,f&&cancelAnimationFrame(l)}},"computePosition",0,eT,"flip",0,eC,"hide",0,eE,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:l,platform:a,strategy:s}=t,{padding:c=2,x:u,y:p}=d(e,t),m=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]);if(!m.length)return{};let h=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>T(D(e)))}(m),v=T(D(m)),b=R(c),x=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&(h[0].left>h[1].right||h[1].left>h[0].right)&&null!=u&&null!=p)return h.find(e=>u>e.left-b.left&&u<e.right+b.right&&p>
1e.top-b.top&&p<e.bottom+b.bottom)||v;if(h.length>=2){if("y"===g(n)){let e=h[0],t=h[h.length-1],r="top"===f(n),o=e.top,i=t.bottom,l=r?e.left:t.left;return T({x:l,y:o,width:(r?e.right:t.right)-l,height:i-o})}let e="left"===f(n),t=i(...h.map(e=>e.right)),r=o(...h.map(e=>e.left)),l=h.filter(n=>e?n.left===r:n.right===t),a=l[0].top;return T({x:r,y:a,width:t-r,height:l[l.length-1].bottom-a})}return v}},floating:r.floating,strategy:s});return l.reference.x!==x.reference.x||l.reference.y!==x.reference.y||l.reference.width!==x.reference.width||l.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},"limitShift",0,eR,"offset",0,ey,"platform",0,ex,"shift",0,eS,"size",0,ej],953760);var eN=e.i(271645),ek=e.i(174080),eO="u">typeof document?eN.useLayoutEffect:function(){};function eA(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eA(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eA(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eL(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eD(e,t){let n=eL(e);return Math.round(t*n)/n}function eM(e){let t=eN.useRef(e);return eO(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eP({element:n.current,padding:r}).fn(t):{}:n?eP({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=eC(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=eE(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:eR(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=ey(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=eS(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=ej(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:s,open:c}=e,[u,d]=eN.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=eN.useState(r);eA(f,r)||p(r);let[m,h]=eN.useState(null),[g,v]=eN.useState(null),b=eN.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),x=eN.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=i||m,y=l||g,S=eN.useRef(null),C=eN.useRef(null),j=eN.useRef(u),E=null!=s,P=eM(s),R=eM(o),T=eM(c),N=eN.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};R.current&&(e.platform=R.current),eT(S.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};k.current&&!eA(j.current,t)&&(j.current=t,ek.flushSync(()=>{d(t)}))})},[f,t,n,R,T]);eO(()=>{!1===c&&j.current.isPositioned&&(j.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let k=eN.useRef(!1);eO(()=>(k.current=!0,()=>{k.current=!1}),[]),eO(()=>{if(w&&(S.current=w),y&&(C.current=y),w&&y){if(P.current)return P.current(w,y,N);N()}},[w,y,N,P,E]);let O=eN.useMemo(()=>({reference:S,floating:C,setReference:b,setFloating:x}),[b,x]),A=eN.useMemo(()=>({reference:w,floating:y}),[w,y]),L=eN.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=eD(A.floating,u.x),r=eD(A.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eL(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,A.floating,u.x,u.y]);return eN.useMemo(()=>({...u,update:N,refs:O,elements:A,floatingStyles:L}),[u,N,O,A,L])}],258950)},687607,e=>{"use strict";var t=e.i(271645),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0}),o=!!("u">typeof window&&window.document&&window.document.createElement);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return r(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function l(e){if(!o)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function a(e){return"IFRAME"===e.tagName}r(i,"composeEventHandlers"),r(function(e){if(!o)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),r(l,"getOwnerDocument"),r(function e(t,n=!1){let{activeElement:r}=l(t);if(!r?.nodeName)return null;if(a(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=l(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),r(a,"isFrame");var s=e.i(843476),c=Object.defineProperty,u=(e,t)=>
1c(e,"name",{value:t,configurable:!0});function d(e,n=[]){let r=[];function o(n,o){let i=t.createContext(o);i.displayName=n+"Context";let l=r.length;r=[...r,o];let a=u(n=>{let{scope:r,children:o,...a}=n,c=r?.[e]?.[l]||i,u=t.useMemo(()=>a,Object.values(a));return(0,s.jsx)(c.Provider,{value:u,children:o})},"Provider");function c(r,a,s={}){let{optional:u=!1}=s,d=a?.[e]?.[l]||i,f=t.useContext(d);if(f)return f;if(void 0!==o)return o;if(!u)throw Error(`\`${r}\` must be used within \`${n}\``)}return a.displayName=n+"Provider",u(c,"useContext"),[a,c]}u(o,"createContext");let i=u(()=>{let n=r.map(e=>t.createContext(e));return u(function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])},"useScope")},"createScope");return i.scopeName=e,[o,f(i,...n)]}function f(...e){let n=e[0];if(1===e.length)return n;let r=u(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return u(function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=n.scopeName,r}u(function(e,n){let r=t.createContext(n);r.displayName=e+"Context";let o=u(e=>{let{children:n,...o}=e,i=t.useMemo(()=>o,Object.values(o));return(0,s.jsx)(r.Provider,{value:i,children:n})},"Provider");function i(o,l={}){let{optional:a=!1}=l,s=t.useContext(r);if(s)return s;if(void 0!==n)return n;if(!a)throw Error(`\`${o}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",u(i,"useContext"),[o,i]},"createContext"),u(d,"createContextScope"),u(f,"composeContextScopes");var p=globalThis?.document?t.useLayoutEffect:()=>{},m=Object.defineProperty,h=t[" useEffectEvent ".trim().toString()],g=t[" useInsertionEffect ".trim().toString()];function v(e){if("function"==typeof h)return h(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof g?g(()=>{n.current=e}):p(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}m(v,"name",{value:"useEffectEvent",configurable:!0});var b=Object.defineProperty,x=(e,t)=>b(e,"name",{value:t,configurable:!0}),w=t[" useInsertionEffect ".trim().toString()]||p;function y({prop:e,defaultProp:n,onChange:r=x(()=>{},"onChange"),caller:o}){let[i,l,a]=S({defaultProp:n,onChange:r}),s=void 0!==e,c=s?e:i;return[c,t.useCallback(t=>{if(s){let n=C(t)?t(e):t;n!==e&&a.current?.(n)}else l(t)},[s,e,l,a])]}function S({defaultProp:e,onChange:n}){let[r,o]=t.useState(e),i=t.useRef(r),l=t.useRef(n);return w(()=>{l.current=n},[n]),t.useEffect(()=>{i.current!==r&&(l.current?.(r),i.current=r)},[r,i]),[r,o,l]}function C(e){return"function"==typeof e}x(y,"useControllableState"),x(S,"useUncontrolledState"),x(C,"isFunction");var j=Symbol("RADIX:SYNC_STATE");x(function(e,n,r,o){let{prop:i,defaultProp:l,onChange:a,caller:s}=n,c=void 0!==i,u=v(a),d=[{...r,state:l}];o&&d.push(o);let[f,p]=t.useReducer((t,n)=>{if(n.type===j)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=t.useRef(m);t.useEffect(()=>{h.current!==m&&(h.current=m,c||u(m))},[m,h,c]);let g=t.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return t.useEffect(()=>{c&&!Object.is(i,f.state)&&p({type:j,state:i})},[i,f.state,c]),[g,p]},"useControllableStateReducer");var E=Object.defineProperty,P=(e,t)=>E(e,"name",{value:t,configurable:!0});function R(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function T(...e){return t=>{let n=!1,r=e.map(e=>{let r=R(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():R(e[t],null)}}}}function N(...e){return t.useCallback(T(...e),e)}P(R,"setRef"),P(T,"composeRefs"),P(N,"useComposedRefs");var k=e.i(174080),O=e.i(991918),A=Object.defineProperty,L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let r=(0,O.createSlot)(`Primitive.${n}`),o=t.forwardRef((e,t)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?r:n,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});A(function(e,t){e&&k.flushSync(()=>
1e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var D=e.i(296626),M=Object.defineProperty,F=t[" useId ".trim().toString()]||(()=>void 0),I=0;function _(e){let[n,r]=t.useState(F());return p(()=>{e||r(e=>e??String(I++))},[e]),e||(n?`radix-${n}`:"")}M(_,"name",{value:"useId",configurable:!0});var z=Object.defineProperty,$=(e,t)=>z(e,"name",{value:t,configurable:!0}),W="Collapsible",[H,V]=d(W),[B,U]=H(W),X=t.forwardRef($(function(e,n){let{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:l,onOpenChange:a,...c}=e,[u,d]=y({prop:o,defaultProp:i??!1,onChange:a,caller:W});return(0,s.jsx)(B,{scope:r,disabled:l,contentId:_(),open:u,onOpenToggle:t.useCallback(()=>d(e=>!e),[d]),children:(0,s.jsx)(L.div,{"data-state":Z(u),"data-disabled":l?"":void 0,...c,ref:n})})},"Collapsible")),Y=t.forwardRef($(function(e,t){let{__scopeCollapsible:n,...r}=e,o=U("CollapsibleTrigger",n);return(0,s.jsx)(L.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":Z(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:i(e.onClick,o.onOpenToggle)})},"CollapsibleTrigger")),K="CollapsibleContent",q=t.forwardRef($(function(e,t){let{forceMount:n,...r}=e,o=U(K,e.__scopeCollapsible);return(0,s.jsx)(D.Presence,{present:n||o.open,children:({present:e})=>(0,s.jsx)(G,{...r,ref:t,present:e})})},"CollapsibleContent")),G=t.forwardRef($(function(e,n){let{__scopeCollapsible:r,present:o,children:i,...l}=e,a=U(K,r),[c,u]=t.useState(o),d=t.useRef(null),f=N(n,d),m=t.useRef(0),h=m.current,g=t.useRef(0),v=g.current,b=a.open||c,x=t.useRef(b),w=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),p(()=>{let e=d.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();m.current=t.height,g.current=t.width,x.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),u(o)}},[a.open,o]),(0,s.jsx)(L.div,{"data-state":Z(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!b,...l,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:b&&i})},"CollapsibleContentImpl"));function Z(e){return e?"open":"closed"}$(Z,"getState"),e.s(["CollapsibleContent",0,q,"CollapsibleTrigger",0,Y,"Content",0,q,"Root",0,X,"Trigger",0,Y,"createCollapsibleScope",0,V],687607)},647873,e=>{"use strict";var t=e.i(224110),n=e.i(843476);function r({ref:e,href:o="#",external:i=!!(o.match(/^\w+:/)||o.startsWith("//")),prefetch:l,children:a,...s}){return i?(0,n.jsx)("a",{ref:e,href:o,rel:"noreferrer noopener",target:"_blank",...s,children:a}):(0,n.jsx)(t.Link,{ref:e,href:o,prefetch:l,...s,children:a})}e.s(["Link",0,r,"default",0,r])},683512,281878,253754,600074,187302,874072,e=>{"use strict";function t(e,n,r={}){let{includeSeparator:o=!0}=r;return function e(t){let r;for(let i of t){if(n(i)){let e=[];return r&&e.push(r),e.push(i),e}if("separator"===i.type&&o){r=i;continue}if("folder"===i.type){let t=i.index&&n(i.index)?[i.index]:e(i.children);if(t)return t.unshift(i),r&&t.unshift(r),t}}}(e)??null}e.s(["LinkItem",()=>tI,"baseSlots",()=>t_],874072),e.s(["isLayoutTabActive",()=>tA,"isLinkItemActive",()=>tD,"useLinkItems",()=>tL],187302);let n=Symbol("VisitBreak");e.s(["i",0,function(e,t,r){let o,i=e.$ref&&`${e.$ref.folder}/`;if(!i||!t.$ref||!r.$ref?.startsWith(i))return;let l=`${t.$ref.folder}/${r.$ref.slice(i.length)}`;return function(e,t){try{!function e(r,o){let i=t(r,o);switch(i){case"skip":return r;case"break":throw n;default:i&&(r=i)}if("index"in r&&r.index&&(r.index=e(r.index,r)),"fallback"in r&&r.fallback&&(r.fallback=e(r.fallback,r)),"children"in r)for(let t=0;t<r.children.length;t++)r.children[t]=e(r.children[t],r);return r}(e)}catch(t){if(t===n)return e;throw t}}(t,e=>{if("page"===e.type&&e.$ref===l)return o=e,"break"}),o},"r",0,t],683512);var r,o=e.i(309864),i=e.i(179862),l=e.i(713548),a=e.i(843476),s=e.i(271645),c=Object.defineProperty,u=(e,t)=>
1c(e,"name",{value:t,configurable:!0}),d=!!("u">typeof window&&window.document&&window.document.createElement);function f(e,t,{checkForDefaultPrevented:n=!0}={}){return u(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function p(e){if(!d)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function m(e){return"IFRAME"===e.tagName}u(f,"composeEventHandlers"),u(function(e){if(!d)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),u(p,"getOwnerDocument"),u(function e(t,n=!1){let{activeElement:r}=p(t);if(!r?.nodeName)return null;if(m(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=p(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),u(m,"isFrame");var h=Object.defineProperty,g=(e,t)=>h(e,"name",{value:t,configurable:!0});function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=v(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():v(e[t],null)}}}}function x(...e){return s.useCallback(b(...e),e)}g(v,"setRef"),g(b,"composeRefs"),g(x,"useComposedRefs");var w=Object.defineProperty,y=(e,t)=>w(e,"name",{value:t,configurable:!0});function S(e,t=[]){let n=[];function r(t,r){let o=s.createContext(r);o.displayName=t+"Context";let i=n.length;n=[...n,r];let l=y(t=>{let{scope:n,children:r,...l}=t,c=n?.[e]?.[i]||o,u=s.useMemo(()=>l,Object.values(l));return(0,a.jsx)(c.Provider,{value:u,children:r})},"Provider");function c(n,l,a={}){let{optional:u=!1}=a,d=l?.[e]?.[i]||o,f=s.useContext(d);if(f)return f;if(void 0!==r)return r;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}return l.displayName=t+"Provider",y(c,"useContext"),[l,c]}y(r,"createContext");let o=y(()=>{let t=n.map(e=>s.createContext(e));return y(function(n){let r=n?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,C(o,...t)]}function C(...e){let t=e[0];if(1===e.length)return t;let n=y(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return y(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}y(function(e,t){let n=s.createContext(t);n.displayName=e+"Context";let r=y(e=>{let{children:t,...r}=e,o=s.useMemo(()=>r,Object.values(r));return(0,a.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,i={}){let{optional:l=!1}=i,a=s.useContext(n);if(a)return a;if(void 0!==t)return t;if(!l)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",y(o,"useContext"),[r,o]},"createContext"),y(S,"createContextScope"),y(C,"composeContextScopes");var j=e.i(174080),E=e.i(991918),P=Object.defineProperty,R=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,E.createSlot)(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function T(e,t){e&&j.flushSync(()=>e.dispatchEvent(t))}function N(e){let t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}P(T,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(N,"name",{value:"useCallbackRef",configurable:!0});var k=Object.defineProperty,O=(e,t)=>k(e,"name",{value:t,configurable:!0}),A="dismissableLayer.update",L=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),D=s.forwardRef(O(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...p}=e,m=s.useContext(L),[h,g]=s.useState(null),v=h?.ownerDocument??globalThis?.document,[,b]=s.useState({}
1),w=x(t,g),y=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),C=S?y.indexOf(S):-1,j=h?y.indexOf(h):-1,E=m.layersWithOutsidePointerEventsDisabled.size>0,P=j>=C,T=s.useRef(!1),k=F(e=>{l?.(e),u?.(e),e.defaultPrevented||d?.()},{ownerDocument:v,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:s.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...m.branches].some(t=>t.contains(e));return P&&!t},[m.branches,P])}),D=I(e=>{if(o&&T.current)return;let t=e.target;![...m.branches].some(e=>e.contains(t))&&(c?.(e),u?.(e),e.defaultPrevented||d?.())},v),M=!!h&&j===y.length-1,z=N(e=>{"Escape"===e.key&&(i?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return s.useEffect(()=>{if(M)return v.addEventListener("keydown",z,{capture:!0}),()=>v.removeEventListener("keydown",z,{capture:!0})},[v,M,z]),s.useEffect(()=>{if(h)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(r=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),_(),()=>{n&&(m.layersWithOutsidePointerEventsDisabled.delete(h),0===m.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=r))}},[h,v,n,m]),s.useEffect(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),_())},[h,m]),s.useEffect(()=>{let e=O(()=>b({}),"handleUpdate");return document.addEventListener(A,e),()=>document.removeEventListener(A,e)},[]),(0,a.jsx)(R.div,{...p,ref:w,style:{pointerEvents:E?P?"auto":"none":void 0,...e.style},onFocusCapture:f(e.onFocusCapture,D.onFocusCapture),onBlurCapture:f(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:f(e.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));O(function(){let e=s.useContext(L),[t,n]=s.useState(null);return s.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var M=O(()=>!0,"IS_TRUE");function F(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:l=M}=t,a=N(e),c=s.useRef(!1),u=s.useRef(!1),d=s.useRef(new Map),f=s.useRef(()=>{});return s.useEffect(()=>{function e(){u.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function s(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&f.current()},0)}function p(e){u.current&&d.current.set(e.type,!1)}O(e,"resetOutsideInteraction"),O(t,"isOutsideInteractionIntercepted"),O(s,"handleInteractionCapture"),O(p,"handleInteractionBubble");let m=O(i=>{if(i.target&&!c.current){let s=function(){n.removeEventListener("click",f.current);let r=t();e(),r||z("dismissableLayer.pointerDownOutside",a,p,{discrete:!0})};if(O(s,"handleAndDispatchPointerDownOutsideEvent"),!l(i.target)){n.removeEventListener("click",f.current),e(),c.current=!1;return}let p={originalEvent:i};u.current=!0,o.current=r&&0===i.button,d.current.clear(),r&&0===i.button?(n.removeEventListener("click",f.current),f.current=s,n.addEventListener("click",f.current,{once:!0})):s()}else n.removeEventListener("click",f.current),e();c.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,s,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",m),n.removeEventListener("click",f.current),h))n.removeEventListener(e,s,!0),n.removeEventListener(e,p)}},[n,a,r,o,i,l]),{onPointerDownCapture:O(()=>c.current=!0,"onPointerDownCapture")}}function I(e,t=globalThis?.document){let n=N(e),r=s.useRef(!1);return s.useEffect(()=>{let e=O(e=>{e.target&&!r.current&&z("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:O(()=>r.current=!0,"onFocusCapture"),onBlurCapture:O(()=>r.current=!1,"onBlurCapture")}}function _(){let e=new CustomEvent(A);document.dispatchEvent(e)}function z(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?T(o,i):o.dispatchEvent(i)}O(F,"usePointerDownOutside"),O(I,"useFocusOutside"),O(_,"dispatchUpdate"),O(z,"handleAndDispatchCustomEvent");var $=Object.defineProperty,W=(e,t)=>$(e,"name",{value:t,configurable:!0}),H=0,V=null;function B(){s.useEffect(()=>{V||(V={start:U(),end:U()});let{start:e,end:t}=V;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),H++,()=>{1===H&&(V?.start.remove(),V?.end.remove(),V=null),H=Math.max(0,H-1)}},[])}function U(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}W(function(e){return B(),e.children},"FocusGuards"),W(B,"useFocusGuards"),W(U,"createFocusGuard");var X=Object.defineProperty,Y=(e,t)=>X(e,"name",{value:t,configurable:!0}),K="focusScope.autoFocusOnMount",q="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},Z=s.forwardRef(Y(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[c,u]=s.useState(null),d=N(o),f=N(i),p=s.useRef(null),m=x(t,u),h=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?p.current=t:eo(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||eo(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eo(c)};Y(e,"handleFocusIn"),Y(t,"handleFocusOut"),Y(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,c,h.paused]),s.useEffect(()=>{if(c){ei.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(K,G);c.addEventListener(K,d),c.dispatchEvent(t),t.defaultPrevented||(J(es(ee(c)),{select:!0}),document.activeElement===e&&eo(c))}return()=>{c.removeEventListener(K,d),setTimeout(()=>{let t=new CustomEvent(q,G);c.addEventListener(q,f),c.dispatchEvent(t),t.defaultPrevented||eo(e??document.body,{select:!0}),c.removeEventListener(q,f),ei.remove(h)},0)}}},[c,d,f,h]);let g=s.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=Q(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&eo(i,{select:!0})):(e.preventDefault(),n&&eo(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,a.jsx)(R.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})},"FocusScope"));function J(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eo(r,{select:t}),document.activeElement!==n)return}function Q(e){let t=ee(e);return[et(t,e),et(t.reverse(),e)]}function ee(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Y(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function et(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):en(r,{upTo:t})))return r}function en(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function er(e){return e instanceof HTMLInputElement&&"select"in e}function eo(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&er(e)&&t&&e.select()}}Y(J,"focusFirst"),Y(Q,"getTabbableEdges"),Y(ee,"getTabbableCandidates"),Y(et,"findVisible"),Y(en,"isHidden"),Y(er,"isSelectableInput"),Y(eo,"focus");var ei=el();function el(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=ea(e,t)).unshift(t)},remove(t){e=ea(e,t),e[0]?.resume()}}}function ea(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function es(e){return e.filter(e=>"A"!==e.tagName)}Y(el,"createFocusScopesStack"),Y(ea,"arrayRemove"),Y(es,"removeLinks");var ec=globalThis?.document?s.useLayoutEffect:()=>{},eu=Object.defineProperty,ed=s[" useId ".trim().toString()]||(()=>void 0),ef=0;function ep(e){let[t,n]=s.useState(ed());return ec(()=>{e||n(e=>e??String(ef++))},[e]),e||(t?`radix-${t}`:"")}eu(ep,"name",{value:"useId",configurable:!0});var em=e.i(258950),eh=e.i(953760),eg=Object.defineProperty,ev=s.forwardRef(eg(function(e,t){let{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(R.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0}));function eb(e){let[t,n]=s.useState(void 0);return ec(()=>
1{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(eb,"name",{value:"useSize",configurable:!0});var ex=Object.defineProperty,ew=(e,t)=>ex(e,"name",{value:t,configurable:!0}),ey="Popper",[eS,eC]=S(ey),[ej,eE]=eS(ey),eP=ew(e=>{let{__scopePopper:t,children:n}=e,[r,o]=s.useState(null),[i,l]=s.useState(void 0);return(0,a.jsx)(ej,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:l,children:n})},"Popper"),eR=s.forwardRef(ew(function(e,t){let{__scopePopper:n,virtualRef:r,...o}=e,i=eE("PopperAnchor",n),l=s.useRef(null),c=i.onAnchorChange,u=x(t,s.useCallback(e=>{l.current=e,e&&c(e)},[c])),d=s.useRef(null);s.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&c(d.current)});let f=i.placementState&&eM(i.placementState),p=f?.[0],m=f?.[1];return r?null:(0,a.jsx)(R.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...o,ref:u})},"PopperAnchor")),eT="PopperContent",[eN,ek]=eS(eT),eO=s.forwardRef(ew(function(e,t){let{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=e,b=eE(eT,n),[w,y]=s.useState(null),S=x(t,y),[C,j]=s.useState(null),E=eb(C),P=E?.width??0,T=E?.height??0,k="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(d)?d:[d],A=O.length>0,L={padding:k,boundary:O.filter(eL),altBoundary:A},{refs:D,floatingStyles:M,placement:F,isPositioned:I,middlewareData:_}=(0,em.useFloating)({strategy:"fixed",placement:r+("center"!==i?"-"+i:""),whileElementsMounted:ew((...e)=>(0,eh.autoUpdate)(...e,{animationFrame:"always"===h}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[(0,em.offset)({mainAxis:o+T,alignmentAxis:l}),u&&(0,em.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?(0,em.limitShift)():void 0,...L}),u&&(0,em.flip)({...L}),(0,em.size)({...L,apply:ew(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),C&&(0,em.arrow)({element:C,padding:c}),eD({arrowWidth:P,arrowHeight:T}),m&&(0,em.hide)({strategy:"referenceHidden",...L,boundary:A?L.boundary:void 0})]}),z=b.setPlacementState;ec(()=>(z(F),()=>{z(void 0)}),[F,z]);let[$,W]=eM(F),H=N(g);ec(()=>{I&&H?.()},[I,H]);let V=_.arrow?.x,B=_.arrow?.y,U=_.arrow?.centerOffset!==0,[X,Y]=s.useState();return ec(()=>{w&&Y(window.getComputedStyle(w).zIndex)},[w]),(0,a.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:I?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(eN,{scope:n,placedSide:$,placedAlign:W,onArrowChange:j,arrowX:V,arrowY:B,shouldHideArrow:U,children:(0,a.jsx)(R.div,{"data-side":$,"data-align":W,...v,ref:S,style:{...v.style,animation:I?v.style?.animation:"none"}})})})},"PopperContent")),eA={top:"bottom",right:"left",bottom:"top",left:"right"};function eL(e){return null!==e}ew(eL,"isNotNull");var eD=ew(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,c]=eM(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+a/2,p="",m="";return"bottom"===s?(p=i?u:`${d}px`,m=`${-a}px`):"top"===s?(p=i?u:`${d}px`,m=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,m=i?u:`${f}px`):"left"===s&&(p=`${r.floating.width+a}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}}),"transformOrigin");function eM(e){let[t,n="center"]=e.split("-");return[t,n]}ew(eM,"getSideAndAlignFromPlacement");var eF=Object.defineProperty,eI=s.forwardRef(eF(function(e,t){let{c
1ontainer:n,...r}=e,[o,i]=s.useState(!1);ec(()=>i(!0),[]);let l=n||o&&globalThis?.document?.body;return l?j.createPortal((0,a.jsx)(R.div,{...r,ref:t}),l):null},"name",{value:"Portal",configurable:!0})),e_=e.i(296626),ez=Object.defineProperty,e$=s[" useEffectEvent ".trim().toString()],eW=s[" useInsertionEffect ".trim().toString()];function eH(e){if("function"==typeof e$)return e$(e);let t=s.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof eW?eW(()=>{t.current=e}):ec(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}ez(eH,"name",{value:"useEffectEvent",configurable:!0});var eV=Object.defineProperty,eB=(e,t)=>eV(e,"name",{value:t,configurable:!0}),eU=s[" useInsertionEffect ".trim().toString()]||ec;function eX({prop:e,defaultProp:t,onChange:n=eB(()=>{},"onChange"),caller:r}){let[o,i,l]=eY({defaultProp:t,onChange:n}),a=void 0!==e,c=a?e:o;return[c,s.useCallback(t=>{if(a){let n=eK(t)?t(e):t;n!==e&&l.current?.(n)}else i(t)},[a,e,i,l])]}function eY({defaultProp:e,onChange:t}){let[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return eU(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function eK(e){return"function"==typeof e}eB(eX,"useControllableState"),eB(eY,"useUncontrolledState"),eB(eK,"isFunction");var eq=Symbol("RADIX:SYNC_STATE");eB(function(e,t,n,r){let{prop:o,defaultProp:i,onChange:l,caller:a}=t,c=void 0!==o,u=eH(l),d=[{...n,state:i}];r&&d.push(r);let[f,p]=s.useReducer((t,n)=>{if(n.type===eq)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=s.useRef(m);s.useEffect(()=>{h.current!==m&&(h.current=m,c||u(m))},[m,h,c]);let g=s.useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return s.useEffect(()=>{c&&!Object.is(o,f.state)&&p({type:eq,state:o})},[o,f.state,c]),[g,p]},"useControllableStateReducer");var eG=e.i(186312),eZ=e.i(985369),eJ=Object.defineProperty,eQ=(e,t)=>eJ(e,"name",{value:t,configurable:!0}),e0="Popover",[e1,e2]=S(e0,[eC]),e5=eC(),[e4,e3]=e1(e0),e6=eQ(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,c=e5(t),u=s.useRef(null),[d,f]=s.useState(!1),[p,m]=eX({prop:r,defaultProp:o??!1,onChange:i,caller:e0});return(0,a.jsx)(eP,{...c,children:(0,a.jsx)(e4,{scope:t,contentId:ep(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:s.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:s.useCallback(()=>f(!0),[]),onCustomAnchorRemove:s.useCallback(()=>f(!1),[]),modal:l,children:n})})},"Popover"),e8=s.forwardRef(eQ(function(e,t){let{__scopePopover:n,...r}=e,o=e3("PopoverTrigger",n),i=e5(n),l=x(t,o.triggerRef),s=(0,a.jsx)(R.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":ts(o.open),...r,ref:l,onClick:f(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:(0,a.jsx)(eR,{asChild:!0,...i,children:s})},"PopoverTrigger")),e7="PopoverPortal",[e9,te]=e1(e7,{forceMount:void 0}),tt=eQ(e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=e3(e7,t);return(0,a.jsx)(e9,{scope:t,forceMount:n,children:(0,a.jsx)(e_.Presence,{present:n||i.open,children:(0,a.jsx)(eI,{asChild:!0,container:o,children:r})})})},"PopoverPortal"),tn="PopoverContent",tr=s.forwardRef(eQ(function(e,t){let n=te(tn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=e3(tn,e.__scopePopover);return(0,a.jsx)(e_.Presence,{present:r||i.open,children:i.modal?(0,a.jsx)(ti,{...o,ref:t}):(0,a.jsx)(tl,{...o,ref:t})})},"PopoverContent")),to=(0,E.createSlot)("PopoverContent.RemoveScroll"),ti=s.forwardRef(eQ(function(e,t){let n=e3(tn,e.__scopePopover),r=s.useRef(null),o=x(t,r),i=s.useRef(!1);return s.useEffect(()=>{let e=r.current;if(e)return(0,eG.hideOthers)(e)},[]),(0,a.jsx)(eZ.RemoveScroll,{as:to,allowPinchZoom:!0,children:(0,a.jsx)(ta,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:f(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:f(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),tl=s.forwardRef(eQ(function(e,t){let n=e3(tn,e.__scopePopover),r=s.useRef(!1),o=s.useRef(!1);return(0,a.jsx)(ta,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})},"PopoverContentNonModal")),ta=s.forwardRef(eQ(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,p=e3(tn,n),m=e5(n);return B(),(0,a.jsx)(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,a.jsx)(D,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,a.jsx)(eO,{"data-state":ts(p.open),role:"dialog",id:p.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function ts(e){return e?"open":"closed"}function tc({className:e,align:t="center",sideOffset:n=4,...r}){return(0,a.jsx)(tt,{children:(0,a.jsx)(tr,{align:t,sideOffset:n,side:"bottom",className:(0,i.cn)("z-50 origin-(--radix-popover-content-transform-origin) overflow-y-auto max-h-(--radix-popover-content-available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-
1popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in",e),...r})})}eQ(ts,"getState"),e.s(["Popover",0,e6,"PopoverContent",0,tc,"PopoverTrigger",0,e8],281878);var tu=e.i(532257);function td({className:e,variant:t="ghost",children:n,...r}){let s=(0,o.useI18n)(),c=(0,tu.useTranslations)({note:"language switcher"});if(!s.locales)throw Error("Missing `<I18nProvider />`");let u=c("Choose a language");return(0,a.jsxs)(e6,{children:[(0,a.jsx)(e8,{"aria-label":c("Choose a language",{note:"aria-label"}),className:(0,i.cn)((0,l.buttonVariants)({variant:t}),"gap-1.5 p-1.5 data-[state=open]:bg-fd-accent",e),...r,children:n}),(0,a.jsxs)(tc,{className:"flex flex-col gap-0.5 p-1",children:[(0,a.jsx)("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:u}),s.locales.map(e=>(0,a.jsx)("button",{type:"button",className:(0,i.cn)("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",e.locale===s.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{s.onChange?.(e.locale)},children:e.name},e.locale))]})]})}function tf(e){let{locales:t,locale:n}=(0,o.useI18n)(),r=t?.find(e=>e.locale===n)?.name;return(0,a.jsx)("span",{...e,children:r})}var tp=e.i(757061),tm=e.i(630299),tm=tm;function th({hideIfDisabled:e,size:t="icon-sm",color:n,variant:r=n??"ghost",...o}){let{setOpenSearch:s,enabled:c}=(0,tp.useSearchContext)(),u=(0,tu.useTranslations)({note:"search trigger"});return e&&!c?null:(0,a.jsx)("button",{type:"button",className:(0,i.cn)((0,l.buttonVariants)({size:t,variant:r}),o.className),"data-search":"","aria-label":u("Open Search",{note:"aria-label"}),onClick:()=>{s(!0)},children:(0,a.jsx)(tm.default,{})})}function tg({hideIfDisabled:e,...t}){let{enabled:n,hotKey:r,setOpenSearch:o}=(0,tp.useSearchContext)(),l=(0,tu.useTranslations)({note:"search trigger"});return e&&!n?null:(0,a.jsxs)("button",{type:"button","data-search-full":"",...t,className:(0,i.cn)("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",t.className),onClick:()=>{o(!0)},children:[(0,a.jsx)(tm.default,{className:"size-4"}),l("Search"),(0,a.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:r.map((e,t)=>(0,a.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}e.s(["FullSearchTrigger",0,tg,"SearchTrigger",0,th],253754);var tv=e.i(456420);let tb={name:"airplay",size:24,node:[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]};tb.node;let tx=(0,tv.default)(tb),tw={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};tw.node;let ty=(0,tv.default)(tw),tS={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};tS.node;let tC=(0,tv.default)(tS);var tj=e.i(225913),tE=e.i(363178);let tP=()=>()=>{},tR=(0,tj.cva)("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),tT=[["light",tC],["dark",ty],["system",tx]];function tN({className:e,mode:t="light-dark",...n}){let{setTheme:r,theme:o,resolvedTheme:l}=(0,tE.useTheme)(),c=(0,s.useSyncExternalStore)(tP,()=>!0,()=>!1),u=(0,tu.useTranslations)({note:"theme switcher"}),d={light:u("Light",{note:"aria-label"}),dark:u("Dark",{note:"aria-label"}),system:u("System",{note:"aria-label"})},f=e=>{document?.startViewTransition?document.startViewTransition(()=>(0,j.flushSync)(()=>r(e))):r(e)},p=(0,i.cn)("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",e);if("light-dark"===t){let e=c?l:null;return(0,a.jsx)("button",{className:p,"aria-label":u("Toggle Theme",{note:"aria-label"}),onClick:()=>f("light"===e?"dark":"light"),"data-theme-toggle":"",children:tT.map(([t,n])=>{if("system"!==t)return(0,a.jsx)(n,{fill:"currentColor",className:(0,i.cn)(tR({active:e===t}))},t)})})}let m=c?o:null;return(0,a.jsx)("div",{className:p,"data-theme-toggle":"",...n,children:tT.map(([e,t])=>(0,a.jsx)("button",{"aria-label":d[e],className:(0,i.cn)(tR({active:m===e})),onClick:()=>
1f(e),children:(0,a.jsx)(t,{className:"size-full",fill:"currentColor"})},e))})}function tk(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function tO(e,t,n=!1){return(e=tk(e))===(t=tk(t))||n&&t.startsWith(`${e}/`)}function tA(e,n){return e.$folder?null!==t(e.$folder.children,e=>"page"===e.type&&tO(e.url,n)):e.urls?e.urls.has(tk(n)):tO(e.url,n,!0)}function tL({githubUrl:e,links:t}){return(0,s.useMemo)(()=>{let n=function({links:e=[],githubUrl:t}){let n=[...e];return t&&n.push({type:"icon",url:t,text:"Github",label:"GitHub",icon:(0,a.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),external:!0}),n}({links:t,githubUrl:e}),r=[],o=[];for(let e of n)switch(e.on){case"menu":o.push(e);break;case"nav":r.push(e);break;default:r.push(e),o.push(e)}return{navItems:r,menuItems:o,all:n}},[t,e])}function tD(e,t){return"custom"!==e.type&&!!e.url&&"none"!==e.active&&tO(e.url,t,"nested-url"===e.active)}e.s(["isActive",0,tO,"normalize",0,tk],600074);var tM=e.i(647873),tF=e.i(224110);function tI({ref:e,item:t,...n}){let r=tD(t,(0,tF.usePathname)());return(0,a.jsx)(tM.default,{ref:e,href:t.url,external:t.external,...n,"data-active":r,children:n.children})}function t_({useProps:e}){function t(t){let{themeSwitch:n}=e();return n.component?n.component:(0,a.jsx)(tN,{...t,...n})}function n(t){let{searchToggle:n}=e();return n.components?.sm?n.components.sm:(0,a.jsx)(th,{...t,...n.sm})}function r(t){let{searchToggle:n}=e();return n.components?.lg?n.components.lg:(0,a.jsx)(tg,{...t,...n.full})}function i({href:t="/",...n}){let{url:r=t,title:o}=e().nav??{};return"function"==typeof o?o({href:r,...n}):(0,a.jsx)(tM.default,{href:r,...n,children:o})}return{useBaseSlots(e){let{locales:l=[]}=(0,o.useI18n)(),{nav:a,slots:s={},i18n:c=l.length>1,searchToggle:{enabled:u=!0,...d}={},themeSwitch:{enabled:f=!0,...p}={}}=e;return{baseSlots:{navTitle:s.navTitle??i,themeSwitch:f&&(s.themeSwitch??t),languageSelect:!!c&&(s.languageSelect??{root:td,text:tf}),searchTrigger:u&&(s.searchTrigger??{sm:n,full:r})},baseProps:{nav:a,searchToggle:d,themeSwitch:p}}}}}},730942,e=>{"use strict";var t=Object.defineProperty;e.s(["__exportAll",0,(e,n)=>{let r={};for(var o in e)t(r,o,{get:e[o],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:"Module"}),r}])},451988,e=>{"use strict";var t=e.i(179862),n=e.i(843476),r=e.i(271645),o=e.i(687607);let i=o.Root,l=o.CollapsibleTrigger;e.s(["Collapsible",0,i,"CollapsibleContent",0,function({children:e,...i}){let[l,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{a(!0)},[]),(0,n.jsx)(o.CollapsibleContent,{...i,className:(0,t.cn)("overflow-hidden",l&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",i.className),children:e})},"CollapsibleTrigger",0,l])},214072,557886,e=>{"use strict";var t=e.i(224110),n=e.i(843476),r=e.i(271645),o=e.i(683512),o=o,i=e.i(88349),l=o;function a(e,t){let n=(0,i.r)(t);return(0,l.r)(e,e=>"page"===e.type&&e.url===n)}e.s(["getBreadcrumbItemsFromPath",0,function(e,t,n){let{includePage:r=!1,includeSeparator:o=!1,includeRoot:i=!1}=n,l=[];for(let n=0;n<t.length;n++){let a=t[n];switch(a.type){case"page":r&&l.push({name:a.name,url:a.url});break;case"folder":if(a.root){l=[],i&&l.push({name:e.name,url:"object"==typeof i?i.url:a.index?.url});break}(n===t.length-1||a.index!==t[n+1])&&l.push({name:a.name,url:a.index?.url});break;case"separator":a.name&&o&&l.push({name:a.name})}}return l},"searchPath",0,a],557886);let s=(0,r.createContext)(null),c=(0,r.createContext)([]);function u(){let e=(0,r.use)(s);if(!e)throw Error("You must wrap this component under <DocsLayout />");return e}e.s(["TreeContextProvider",0,function({tree:e,children:o}){let i=(0,r.useRef)(0),l=(0,t.usePathname)(),u=(0,r.useMemo)(()=>e,[e.$id]),d=(0,r.useMemo)(()=>a(u.children,l)??(u.fallback?a(u.fallback.children,l):null)??[],[u,l]),f=d.findLast(e=>"folder"===e.type&&e.root)??u;return f.$id??=String(i.current++),(0,n.jsx)(s,{value:(0,r.useMemo)(()=>({root:f,full:u}),[f,u]),children:(0,n.jsx)(c,{value:d,children:o})})},"useTabsGroups",0,function(e){let{full:t}=u(),n=(0,r.use)(c);return(0,r.useMemo)(()=>{let r=[],i=n[n.length-1],l=i?.type==="page"?i:void 0,a=t.fallback&&!t.children.includes(n[0])?t.fallback:t;for(let t of n){if("folder"!==t.type||!t.root)continue;let n={active:t,options:[]};(function e(t,n,r,i,l){for(let a of t.children)if("folder"===a.type)if(a.root===n.root){let e=i.find(e=>e.$folder&&(e.$folder===a||e.$folder.$id===a.$id));if(!e)continue;let t=r&&o.i(n,a,r);l.push(t?{...e,url:t.url}:e)}else a.root||e(a,n,r,i,l)})(a,t,l,e,n.options),n.options.length>0&&r.push(n),a=t}let s=e.filter(e=>!e.$folder);if(s.length>0){let e=r.findLast(e=>e.active?.root===!0);e?e.options.push(...s):r.push({options:s})}return r},[e,t,n])},"useTreeContext",0,u,"useTreePath",0,function(){return(0,r.use)(c)}],214072)},563199,643905,e=>{"use strict";e.s(["LayoutBody",()=>tC,"useDocsLayout",()=>tS,"useIsDocsLayout",()=>ty],563199);var t=e.i(179862),n=e.i(214072),r=e.i(874072),o=e.i(187302),i=e.i(411150),l=e.i(713548),a=e.i(14804),s=e.i(253754),c=e.i(730942),u=e.i(451988),d=e.i(647873),f=e.i(224110),p=e.i(843476),m=e.i(716327),h=e.i(456420);let g={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};g.node;let v=(0,h.default)(g);
1e.s(["default",0,v],643905);var b=e.i(271645),x=e.i(532257),w=e.i(174080),y=e.i(543137);let S=()=>null;var C=e.i(296626),j=e.i(191909),E=e.i(991918),P=Object.defineProperty,R=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,E.createSlot)(`Primitive.${t}`),r=b.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});P(function(e,t){e&&w.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var T=Object.defineProperty,N=(e,t)=>T(e,"name",{value:t,configurable:!0});function k(e,t=[]){let n=[];function r(t,r){let o=b.createContext(r);o.displayName=t+"Context";let i=n.length;n=[...n,r];let l=N(t=>{let{scope:n,children:r,...l}=t,a=n?.[e]?.[i]||o,s=b.useMemo(()=>l,Object.values(l));return(0,p.jsx)(a.Provider,{value:s,children:r})},"Provider");function a(n,l,s={}){let{optional:c=!1}=s,u=l?.[e]?.[i]||o,d=b.useContext(u);if(d)return d;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return l.displayName=t+"Provider",N(a,"useContext"),[l,a]}N(r,"createContext");let o=N(()=>{let t=n.map(e=>b.createContext(e));return N(function(n){let r=n?.[e]||t;return b.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,O(o,...t)]}function O(...e){let t=e[0];if(1===e.length)return t;let n=N(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return N(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}N(function(e,t){let n=b.createContext(t);n.displayName=e+"Context";let r=N(e=>{let{children:t,...r}=e,o=b.useMemo(()=>r,Object.values(r));return(0,p.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,i={}){let{optional:l=!1}=i,a=b.useContext(n);if(a)return a;if(void 0!==t)return t;if(!l)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",N(o,"useContext"),[r,o]},"createContext"),N(k,"createContextScope"),N(O,"composeContextScopes");var A=Object.defineProperty,L=(e,t)=>A(e,"name",{value:t,configurable:!0});function D(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function M(...e){return t=>{let n=!1,r=e.map(e=>{let r=D(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():D(e[t],null)}}}}function F(...e){return b.useCallback(M(...e),e)}function I(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...e)=>t.current?.(...e),[])}L(D,"setRef"),L(M,"composeRefs"),L(F,"useComposedRefs"),(0,Object.defineProperty)(I,"name",{value:"useCallbackRef",configurable:!0});var _=Object.defineProperty,z=b.createContext(void 0);function $(e){let t=b.useContext(z);return e||t||"ltr"}_($,"name",{value:"useDirection",configurable:!0});var W=globalThis?.document?b.useLayoutEffect:()=>{};function H(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(H,"name",{value:"clamp",configurable:!0});var V=Object.defineProperty,B=(e,t)=>V(e,"name",{value:t,configurable:!0}),U=!!("u">typeof window&&window.document&&window.document.createElement);function X(e,t,{checkForDefaultPrevented:n=!0}={}){return B(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function Y(e){if(!U)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function K(e){return"IFRAME"===e.tagName}B(X,"composeEventHandlers"),B(function(e){if(!U)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),B(Y,"getOwnerDocument"),B(function e(t,n=!1){let{activeElement:r}=Y(t);if(!r?.nodeName)return null;if(K(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=Y(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),B(K,"isFrame");var q=Object.defineProperty,G=(e,t)=>q(e,"name",{value:t,configurable:!0});function Z(e,t){return b.useReducer((e,n)=>t[e][n]??e,e)}G(Z,"useStateMachine");var J="ScrollArea",[Q,ee]=k(J),[et,en]=Q(J),er=b.forwardRef(G(function(e,t){let{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...l}=e,[a,s]=b.useState(null),[c,u]=b.useState(null),[d,f]=b.useState(null),[m,h]=b.useState(null),[g,v]=b.useState(null),[x,w]=b.useState(0),[y,S]=b.useState(0),[C,j]=b.useState(!1),[E,P]=b.useState(!1),T=F(t,s),N=$(o);return(0,p.jsx)(et,{scope:n,type:r,dir:N,scrollHideDelay:i,scrollArea:a,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:j,scrollbarY:g,onScrollbarYChange:v,scrollbarYEnabled:E,onScrollbarYEnabledChange:P,onCornerWidthChange:w,onCornerHeight
1Change:S,children:(0,p.jsx)(R.div,{dir:N,...l,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})},"ScrollArea")),eo=b.forwardRef(G(function(e,t){let{__scopeScrollArea:n,children:r,nonce:o,...i}=e,l=en("ScrollAreaViewport",n),a=F(t,b.useRef(null),l.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(ei,{nonce:o}),(0,p.jsx)(R.div,{"data-radix-scroll-area-viewport":"",...i,ref:a,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,p.jsx)("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})},"ScrollAreaViewport")),ei=b.memo(G(function({nonce:e}){return(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:e})},"ScrollAreaViewportStyle"),(e,t)=>e.nonce===t.nonce),el="ScrollAreaScrollbar",ea=b.forwardRef(G(function(e,t){let{forceMount:n,...r}=e,o=en(el,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,a="horizontal"===e.orientation;return b.useEffect(()=>(a?i(!0):l(!0),()=>{a?i(!1):l(!1)}),[a,i,l]),"hover"===o.type?(0,p.jsx)(es,{...r,ref:t,forceMount:n}):"scroll"===o.type?(0,p.jsx)(ec,{...r,ref:t,forceMount:n}):"auto"===o.type?(0,p.jsx)(eu,{...r,ref:t,forceMount:n}):"always"===o.type?(0,p.jsx)(ed,{...r,ref:t,"data-state":"visible"}):null},"ScrollAreaScrollbar")),es=b.forwardRef(G(function(e,t){let{forceMount:n,...r}=e,o=en(el,e.__scopeScrollArea),[i,l]=b.useState(!1);return b.useEffect(()=>{let e=o.scrollArea,t=0;if(e){let n=G(()=>{window.clearTimeout(t),l(!0)},"handlePointerEnter"),r=G(()=>{t=window.setTimeout(()=>l(!1),o.scrollHideDelay)},"handlePointerLeave");return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[o.scrollArea,o.scrollHideDelay]),(0,p.jsx)(C.Presence,{present:n||i,children:(0,p.jsx)(eu,{"data-state":i?"visible":"hidden",...r,ref:t})})},"ScrollAreaScrollbarHover")),ec=b.forwardRef(G(function(e,t){let{forceMount:n,...r}=e,o=en(el,e.__scopeScrollArea),i="horizontal"===e.orientation,l=eO(()=>s("SCROLL_END"),100),[a,s]=Z("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if("idle"===a){let e=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,o.scrollHideDelay,s]),b.useEffect(()=>{let e=o.viewport,t=i?"scrollLeft":"scrollTop";if(e){let n=e[t],r=G(()=>{let r=e[t];n!==r&&(s("SCROLL"),l()),n=r},"handleScroll");return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,i,s,l]),(0,p.jsx)(C.Presence,{present:n||"hidden"!==a,children:(0,p.jsx)(ed,{"data-state":"hidden"===a?"hidden":"visible",...r,ref:t,onPointerEnter:X(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:X(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),eu=b.forwardRef(G(function(e,t){let n=en(el,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,l]=b.useState(!1),a="horizontal"===e.orientation,s=eO(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(a?e:t)}},10);return eA(n.viewport,s),eA(n.content,s),(0,p.jsx)(C.Presence,{present:r||i,children:(0,p.jsx)(ed,{"data-state":i?"visible":"hidden",...o,ref:t})})},"ScrollAreaScrollbarAuto")),ed=b.forwardRef(G(function(e,t){let{orientation:n="vertical",...r}=e,o=en(el,e.__scopeScrollArea),i=b.useRef(null),l=b.useRef(0),[a,s]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=ej(a.viewport,a.content),u={...r,sizes:a,onSizesChange:s,hasThumb:!!(c>0&&c<1),onThumbChange:G(e=>i.current=e,"onThumbChange"),onThumbPointerUp:G(()=>l.current=0,"onThumbPointerUp"),onThumbPointerDown:G(e=>l.current=e,"onThumbPointerDown")};function d(e,t){return eP(e,l.current,a,t)}return(G(d,"getScrollPosition"),"horizontal"===n)?(0,p.jsx)(ef,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let e=eR(o.viewport.scrollLeft,a,o.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}}
1,onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=d(e,o.dir))}}):"vertical"===n?(0,p.jsx)(ep,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let e=eR(o.viewport.scrollTop,a);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=d(e))}}):null},"ScrollAreaScrollbarVisible")),ef=b.forwardRef(G(function(e,t){let{sizes:n,onSizesChange:r,...o}=e,i=en(el,e.__scopeScrollArea),[l,a]=b.useState(),s=b.useRef(null),c=F(t,s,i.onScrollbarXChange);return b.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),(0,p.jsx)(eg,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":eE(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(i.viewport){let r=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),eN(r,n)&&t.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:eC(l.paddingLeft),paddingEnd:eC(l.paddingRight)}})}})},"ScrollAreaScrollbarX")),ep=b.forwardRef(G(function(e,t){let{sizes:n,onSizesChange:r,...o}=e,i=en(el,e.__scopeScrollArea),[l,a]=b.useState(),s=b.useRef(null),c=F(t,s,i.onScrollbarYChange);return b.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),(0,p.jsx)(eg,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":eE(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(i.viewport){let r=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),eN(r,n)&&t.preventDefault()}},onResize:()=>{s.current&&i.viewport&&l&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:eC(l.paddingTop),paddingEnd:eC(l.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[em,eh]=Q(el),eg=b.forwardRef(G(function(e,t){let{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,m=en(el,n),[h,g]=b.useState(null),v=F(t,g),x=b.useRef(null),w=b.useRef(""),y=m.viewport,S=r.content-r.viewport,C=I(u),j=I(s),E=eO(d,10);function P(e){x.current&&c({x:e.clientX-x.current.left,y:e.clientY-x.current.top})}return G(P,"handleDragScroll"),b.useEffect(()=>{let e=G(e=>{let t=e.target;h?.contains(t)&&C(e,S)},"handleWheel");return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[y,h,S,C]),b.useEffect(j,[r,j]),eA(h,E),eA(m.content,E),(0,p.jsx)(em,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:I(i),onThumbPointerUp:I(l),onThumbPositionChange:j,onThumbPointerDown:I(a),children:(0,p.jsx)(R.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:X(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),x.current=h.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),P(e))}),onPointerMove:X(e.onPointerMove,P),onPointerUp:X(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=w.current,m.viewport&&(m.viewport.style.scrollBehavior=""),x.current=null})})})},"ScrollAreaScrollbarImpl")),ev="ScrollAreaThumb",eb=b.forwardRef(G(function(e,t){let{forceMount:n,...r}=e,o=eh(ev,e.__scopeScrollArea);return(0,p.jsx)(C.Presence,{present:n||o.hasThumb,children:(0,p.jsx)(ex,{ref:t,...r})})},"ScrollAreaThumb")),ex=b.forwardRef(G(function(e,t){let{__scopeScrollArea:n,style:r,...o}=e,i=en(ev,n),l=eh(ev,n),{onThumbPositionChange:a}=l,s=F(t,l.onThumbChange),c=b.useRef(void 0),u=eO(()=>{c.current&&(c.current(),c.current=void 0)},100);return b.useEffect(()=>{let e=i.viewport;if(e){let t=G(()=>{u(),c.current||(c.current=ek(e,a),a())},"handleScroll");return a(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[i.viewport,u,a]),(0,p.jsx)(R.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:X(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;l.onThumbPointerDown({x:n,y:r})}),onPointerUp:X(e.onPointerUp,l.onThumbPointerUp)})},"ScrollAreaThumbImpl")),ew="ScrollAreaCorner",ey=b.forwardRef(G(function(e,t){let n=en(ew,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,p.jsx)(eS,{...e,ref:t}):null},"ScrollAreaCorner")),eS=b.forwardRef(G(function(e,t){let{__scopeScrollArea:n,...r}
1=e,o=en(ew,n),[i,l]=b.useState(0),[a,s]=b.useState(0),c=!!(i&&a),{onCornerWidthChange:u,onCornerHeightChange:d}=o;return eA(o.scrollbarX,()=>{let e=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(e),s(e)}),eA(o.scrollbarY,()=>{let e=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(e),l(e)}),b.useEffect(()=>()=>{u(0),d(0)},[u,d]),c?(0,p.jsx)(R.div,{...r,ref:t,style:{width:i,height:a,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null},"ScrollAreaCornerImpl"));function eC(e){return e?parseInt(e,10):0}function ej(e,t){let n=e/t;return isNaN(n)?0:n}function eE(e){let t=ej(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function eP(e,t,n,r="ltr"){let o=eE(n),i=t||o/2,l=n.scrollbar.paddingStart+i,a=n.scrollbar.size-n.scrollbar.paddingEnd-(o-i),s=n.content-n.viewport;return eT([l,a],"ltr"===r?[0,s]:[-1*s,0])(e)}function eR(e,t,n="ltr"){let r=eE(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,a=H(e,"ltr"===n?[0,l]:[-1*l,0]);return eT([0,l],[0,i-r])(a)}function eT(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function eN(e,t){return e>0&&e<t}G(eC,"toInt"),G(ej,"getThumbRatio"),G(eE,"getThumbSize"),G(eP,"getScrollPositionFromPointer"),G(eR,"getThumbOffsetFromScroll"),G(eT,"linearScale"),G(eN,"isScrollingWithinScrollbarBounds");var ek=G((e,t=()=>{})=>(e.scrollLeft,e.scrollTop,()=>window.cancelAnimationFrame(0)),"addUnlinkedScrollListener");function eO(e,t){let n=I(e),r=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(r.current),[]),b.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function eA(e,t){let n=I(t);W(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}G(eO,"useDebounceCallback"),G(eA,"useResizeObserver");var eL=(0,c.__exportAll)({SidebarCollapseTrigger:()=>eZ,SidebarContent:()=>e$,SidebarDrawerContent:()=>eV,SidebarDrawerOverlay:()=>eH,SidebarFolder:()=>eX,SidebarFolderContent:()=>eq,SidebarFolderLink:()=>eK,SidebarFolderTrigger:()=>eY,SidebarItem:()=>eU,SidebarProvider:()=>eF,SidebarSeparator:()=>eB,SidebarTrigger:()=>eG,SidebarViewport:()=>eW,useAutoScroll:()=>eJ,useFolder:()=>e_,useFolderDepth:()=>ez,useSidebar:()=>eI});let eD=(0,b.createContext)(null),eM=(0,b.createContext)(null);function eF({defaultOpenLevel:e=0,prefetch:t,children:n}){let r=(0,b.useRef)(!0),[o,i]=(0,b.useState)(!1),[l,a]=(0,b.useState)(!1),s=(0,f.usePathname)(),c=!function(e,t=!1){let n=(0,b.useCallback)(n=>{if(t)return()=>{};let r=window.matchMedia(e);return r.addEventListener("change",n),()=>r.removeEventListener("change",n)},[e,t]);return(0,b.useSyncExternalStore)(n,()=>t?null:window.matchMedia(e).matches,S)}("(width < 768px)")?"full":"drawer";return(0,y.useOnChange)(s,()=>{r.current&&i(!1),r.current=!0}),(0,p.jsx)(eD,{value:(0,b.useMemo)(()=>({open:o,setOpen:i,collapsed:l,setCollapsed:a,closeOnRedirect:r,defaultOpenLevel:e,prefetch:t,mode:c}),[o,l,e,t,c]),children:n})}function eI(){let e=(0,b.use)(eD);if(!e)throw Error("Missing SidebarContext, make sure you have wrapped the component in <DocsLayout /> and the context is available.");return e}function e_(){return(0,b.use)(eM)}function ez(){return(0,b.use)(eM)?.depth??0}function e$({mode:e="full",children:t}){let{collapsed:n,mode:r}=eI(),[o,i]=(0,b.useState)(!1),l=(0,b.useRef)(null),a=(0,b.useRef)(0);if((0,y.useOnChange)(n,()=>{n&&i(!1)}),!0===e||e===r)return t({ref:l,collapsed:n,hovered:o,onPointerEnter(e){s(e)||(window.clearTimeout(a.current),i(!0))},onPointerLeave(e){s(e)||(window.clearTimeout(a.current),a.current=window.setTimeout(()=>i(!1),Math.min(e.clientX,document.body.clientWidth-e.clientX)>100?0:500))}});function s(e){let t=l.current;return!t||!n||"touch"===e.pointerType||t.getAnimations().length>0}}function eW({area:e,viewport:n,children:r}){return(0,p.jsxs)(er,{type:"scroll",...e,className:(0,t.cn)("overflow-hidden min-h-0 flex-1",e?.className),children:[(0,p.jsx)(eo,{...n,className:(0,t.cn)("size-full rounded-[inherit] *:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]",n?.className),children:r}),(0,p.jsx)(ey,{}),(0,p.jsx)(ea,{className:"flex h-full w-1.5 select-none data-[state=hidden]:animate-fd-fade-out",children:(0,p.jsx)(eb,{className:"relative flex-1 rounded-full bg-fd-border"})})]})}function eH(e){let{open:t,setOpen:n,mode:r}=eI();if("drawer"===r)return(0,p.jsx)(C.Presence,{present:t,children:(0,p.jsx)("div",{"data-state":t?"open":"closed",onClick:()=>n(!1),...e})})}function eV({className:e,children:n,...r}){let{open:o,mode:i}=eI(),l=o?"open":"closed";if("drawer"===i)return(0,p.jsx)(C.Presence,{present:o,children:({present:o})=>(0,p.jsx)("aside",{id:"nd-sidebar-mobile","data-state":l,className:(0,t.cn)(!o&&"invisible",e),...r,children:n})})}function eB(e){return(0,p.jsx)("p",{...e})}function eU({icon:e,active:t=!1,children:n,...r}){let o=(0,b.useRef)(null),{prefetch:i}=eI();return eJ(t,o),(0,p.jsxs)(d.default,{ref:o,"data-active":t,prefetch:i,...r,children:[e??(r.external?(0,p.jsx)(v,{}):null),n]})}function eX({defaultOpen:e,collapsible:t=!0,active:n=!1,children:r,...o}
1){let{defaultOpenLevel:i}=eI(),l=ez()+1,a=!1===t||n||(e??i>=l),[s,c]=(0,b.useState)(a);return(0,y.useOnChange)(a,e=>{e&&c(e)}),(0,p.jsx)(u.Collapsible,{open:s,onOpenChange:c,disabled:!t,...o,children:(0,p.jsx)(eM,{value:(0,b.useMemo)(()=>({open:s,setOpen:c,depth:l,collapsible:t}),[t,l,s]),children:r})})}function eY({children:e,...n}){let{open:r,collapsible:o}=(0,b.use)(eM);return o?(0,p.jsxs)(u.CollapsibleTrigger,{...n,children:[e,(0,p.jsx)(m.ChevronDown,{"data-icon":!0,className:(0,t.cn)("ms-auto transition-transform",!r&&"-rotate-90 rtl:rotate-90")})]}):(0,p.jsx)("div",{...n,children:e})}function eK({children:e,active:n=!1,...r}){let o=(0,b.useRef)(null),{open:i,setOpen:l,collapsible:a}=(0,b.use)(eM),{prefetch:s}=eI();return eJ(n,o),(0,p.jsxs)(d.default,{ref:o,"data-active":n,onClick:e=>{a&&(e.target instanceof Element&&e.target.matches("[data-icon], [data-icon] *")?(l(!i),e.preventDefault()):l(!n||!i))},prefetch:s,...r,children:[e,a&&(0,p.jsx)(m.ChevronDown,{"data-icon":!0,className:(0,t.cn)("ms-auto transition-transform",!i&&"-rotate-90 rtl:rotate-90")})]})}function eq(e){return(0,p.jsx)(u.CollapsibleContent,{...e,children:e.children})}function eG({children:e,...t}){let{open:n,setOpen:r}=eI(),o=(0,x.useTranslations)({note:"sidebar"});return(0,p.jsx)("button",{type:"button","aria-label":o(n?"Close Sidebar":"Open Sidebar",{note:"aria-label"}),"aria-expanded":n,"aria-controls":"nd-sidebar-mobile",onClick:()=>r(e=>!e),...t,children:e})}function eZ(e){let{collapsed:t,setCollapsed:n}=eI(),r=(0,x.useTranslations)({note:"sidebar"});return(0,p.jsx)("button",{type:"button","aria-label":r("Collapse Sidebar",{note:"aria-label"}),"aria-controls":"nd-sidebar","aria-expanded":!t,"data-collapsed":t,onClick:e=>{let t=e.currentTarget;(0,w.flushSync)(()=>n(e=>!e)),t.matches("[inert] *")&&document.querySelector('[aria-controls="nd-sidebar"]:not([inert] *)')?.focus()},...e,children:e.children})}function eJ(e,t){let{mode:n}=eI();(0,b.useEffect)(()=>{e&&t.current&&(0,j.default)(t.current,{boundary:document.getElementById("drawer"===n?"nd-sidebar-mobile":"nd-sidebar"),scrollMode:"if-needed"})},[e,n,t])}var eQ=e.i(600074);let e0=(0,b.createContext)(null);var e1=e.i(281878),e2=e.i(689664);let e5={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};e5.node;let e4=(0,h.default)(e5);function e3({options:e,placeholder:t,...r}){return(0,n.useTabsGroups)(e).map((e,n)=>(0,p.jsx)(e6,{options:e.options,placeholder:t,...r},n))}function e6({options:e,placeholder:n,...r}){let[i,l]=(0,b.useState)(!1),{closeOnRedirect:a}=eI(),s=(0,f.usePathname)(),c=(0,b.useMemo)(()=>e.findLast(e=>(0,o.isLayoutTabActive)(e,s)),[e,s]),u=()=>{a.current=!1,l(!1)},m=c?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:c.icon}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"text-sm font-medium",children:c.title}),(0,p.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:c.description})]})]}):n;return(0,p.jsxs)(e1.Popover,{open:i,onOpenChange:l,children:[m&&(0,p.jsxs)(e1.PopoverTrigger,{...r,className:(0,t.cn)("flex items-center gap-2 rounded-lg p-2 border bg-fd-secondary/50 text-start text-fd-secondary-foreground transition-colors hover:bg-fd-accent data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",r.className),children:[m,(0,p.jsx)(e4,{className:"shrink-0 ms-auto size-4 text-fd-muted-foreground"})]}),(0,p.jsx)(e1.PopoverContent,{className:"flex flex-col gap-1 w-(--radix-popover-trigger-width) p-1 fd-scroll-container",children:e.map(e=>{let n=c&&e.url===c.url;if(n||!e.unlisted)return(0,p.jsxs)(d.default,{href:e.url,onClick:u,...e.props,className:(0,t.cn)("flex items-center gap-2 rounded-lg p-1.5 hover:bg-fd-accent hover:text-fd-accent-foreground",e.props?.className),children:[(0,p.jsx)("div",{className:"shrink-0 size-9 md:mb-auto md:size-5 empty:hidden",children:e.icon}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"text-sm font-medium leading-none",children:e.title}),(0,p.jsx)("p",{className:"text-[0.8125rem] text-fd-muted-foreground mt-1 empty:hidden",children:e.description})]}),(0,p.jsx)(e2.Check,{className:(0,t.cn)("shrink-0 ms-auto size-3.5 text-fd-
1primary",!n&&"invisible")})]},e.url)})})]})}o.isLayoutTabActive;let e8={name:"languages",size:24,node:[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]};e8.node;let e7=(0,h.default)(e8),e9={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};e9.node;let te=(0,h.default)(e9),tt=(0,e.i(225913).cva)("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:inset-s-2.5"}}}),{useSidebar:tn}=eL;function tr(e){return(0,p.jsx)(eF,{...e})}function to({footer:e,banner:n,collapsible:o=!0,components:i,...a}){let{menuItems:s,slots:c,props:{tabs:u,nav:d,tabMode:f}}=tS(),h=s.filter(e=>"icon"===e.type),g=(0,p.jsxs)(eW,{children:[s.filter(e=>"icon"!==e.type).map((e,n,r)=>(0,p.jsx)(tg,{item:e,className:(0,t.cn)(n===r.length-1&&"mb-4")},n)),(0,p.jsx)(th,{...i})]});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(ts,{...a,children:[(0,p.jsxs)("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[(0,p.jsxs)("div",{className:"flex",children:[c.navTitle&&(0,p.jsx)(c.navTitle,{className:"inline-flex text-[0.9375rem] items-center gap-2.5 font-medium me-auto"}),d?.children,o&&(0,p.jsx)(tl,{className:(0,t.cn)((0,l.buttonVariants)({variant:"ghost",size:"icon-sm",className:"mb-auto text-fd-muted-foreground"})),children:(0,p.jsx)(te,{})})]}),c.searchTrigger&&(0,p.jsx)(c.searchTrigger.full,{hideIfDisabled:!0}),u.length>0&&(0,p.jsx)(e3,{options:"auto"===f?u:u.filter(e=>"string"==typeof e.$folder?.root)}),n]}),g,(c.languageSelect||h.length>0||c.themeSwitch||e)&&(0,p.jsxs)("div",{className:"flex flex-col p-4 pt-2",children:[c.languageSelect&&(0,p.jsxs)(c.languageSelect.root,{variant:"secondary",className:"text-fd-muted-foreground text-start justify-start bg-fd-secondary/50 mb-2",children:[(0,p.jsx)(e7,{className:"size-4.5"}),(0,p.jsx)(c.languageSelect.text,{}),(0,p.jsx)(m.ChevronDown,{className:"ms-auto size-3.5"})]}),(0,p.jsxs)("div",{className:"flex text-fd-muted-foreground items-center border bg-fd-secondary/50 p-0.5 pe-0 rounded-lg empty:hidden",children:[h.map((e,n)=>(0,p.jsx)(r.LinkItem,{item:e,className:(0,t.cn)((0,l.buttonVariants)({size:"icon-sm",variant:"ghost"})),"aria-label":e.label,children:e.icon},n)),c.themeSwitch&&(0,p.jsx)(c.themeSwitch,{className:"px-1 py-0 border-y-0 border-e-0 rounded-none ms-auto *:rounded-md"})]}),e]})]}),(0,p.jsxs)(tc,{children:[(0,p.jsxs)("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[(0,p.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-1.5",children:[(0,p.jsx)("div",{className:"flex flex-1",children:h.map((e,n)=>(0,p.jsx)(r.LinkItem,{item:e,className:(0,t.cn)((0,l.buttonVariants)({size:"icon-sm",variant:"ghost",className:"p-2"})),"aria-label":e.label,children:e.icon},n))}),c.languageSelect&&(0,p.jsxs)(c.languageSelect.root,{children:[(0,p.jsx)(e7,{className:"size-4.5"}),(0,p.jsx)(c.languageSelect.text,{})]}),c.themeSwitch&&(0,p.jsx)(c.themeSwitch,{className:"p-0"}),(0,p.jsx)(ta,{className:(0,t.cn)((0,l.buttonVariants)({variant:"ghost",size:"icon-sm",className:"p-2"})),children:(0,p.jsx)(te,{})})]}),u.length>0&&(0,p.jsx)(e3,{options:u}),n]}),g,(0,p.jsx)("div",{className:"flex flex-col border-t p-4 pt-2 empty:hidden",children:e})]})]})}function ti(e){return(0,p.jsx)(eX,{...e})}function tl(e){return(0,p.jsx)(eZ,{...e})}function ta(e){return(0,p.jsx)(eG,{...e})}function ts({ref:e,className:n,children:r,...o}
1){let i=(0,b.useRef)(null);return(0,p.jsx)(e$,{children:({collapsed:c,hovered:u,ref:d,...f})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{"data-sidebar-placeholder":"",className:"sticky top-(--fd-docs-row-1) z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] md:layout:[--fd-sidebar-width:268px] max-md:hidden",children:[c&&(0,p.jsx)("div",{className:"absolute inset-s-0 inset-y-0 w-4",...f}),(0,p.jsx)("aside",{id:"nd-sidebar",ref:(0,a.mergeRefs)(i,e,d),"data-collapsed":c,"data-hovered":c&&u,inert:c&&!u,className:(0,t.cn)("absolute flex flex-col w-full inset-s-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)",c&&["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)",u?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],i.current&&"true"===i.current.getAttribute("data-collapsed")!==c&&"transition-[width,inset-block,translate,background-color]",n),...o,...f,children:r})]}),(0,p.jsxs)("div",{"data-sidebar-panel":"",className:(0,t.cn)("fixed flex top-[calc(--spacing(4)+var(--fd-docs-row-3))] inset-s-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10",(!c||u)&&"pointer-events-none opacity-0"),inert:!c||u,children:[(0,p.jsx)(eZ,{className:(0,t.cn)((0,l.buttonVariants)({variant:"ghost",size:"icon-sm",className:"rounded-lg"})),children:(0,p.jsx)(te,{})}),(0,p.jsx)(s.SearchTrigger,{className:"rounded-lg",hideIfDisabled:!0})]})]})})}function tc({children:e,className:n,...r}){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(eH,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),(0,p.jsx)(eV,{className:(0,t.cn)("fixed text-[0.9375rem] flex flex-col shadow-lg border-s inset-e-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",n),...r,children:e})]})}function tu({className:e,style:n,children:r,...o}){let i=ez();return(0,p.jsx)(eU,{className:(0,t.cn)(tt({variant:"link",highlight:i>=1}),e),style:{paddingInlineStart:tm(i),...n},...o,children:r})}function td({className:e,style:n,...r}){let{depth:o,collapsible:i}=e_();return(0,p.jsx)(eY,{className:(0,t.cn)(tt({variant:i?"button":null}),"w-full",e),style:{paddingInlineStart:tm(o-1),...n},...r,children:r.children})}function tf({className:e,style:n,...r}){let o=ez();return(0,p.jsx)(eK,{className:(0,t.cn)(tt({variant:"link",highlight:o>1}),"w-full",e),style:{paddingInlineStart:tm(o-1),...n},...r,children:r.children})}function tp({className:e,children:n,...r}){let o=ez();return(0,p.jsx)(eq,{className:(0,t.cn)("relative",1===o&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:inset-s-2.5",e),...r,children:(0,p.jsx)("div",{className:"flex flex-col gap-0.5 pt-0.5",children:n})})}function tm(e){return`calc(${2+3*e} * var(--spacing))`}let th=function({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:r,SidebarFolderTrigger:o,SidebarSeparator:i,SidebarItem:l}){function a(e){return e.map((e,t)=>(0,p.jsx)(s,{node:e},t))}function s({node:c}){let{Separator:u,Item:d,Folder:f,pathname:m}=(0,b.use)(e0);if("separator"===c.type)return u?(0,p.jsx)(u,{item:c}):(0,p.jsxs)(i,{children:[c.icon,c.name]});if("folder"===c.type){let i=(0,n.useTreePath)();return f?(0,p.jsx)(f,{item:c,children:a(c.children)}):(0,p.jsxs)(e,{collapsible:c.collapsible,active:i.includes(c),defaultOpen:c.defaultOpen,children:[c.index?(0,p.jsxs)(r,{href:c.index.url,active:(0,eQ.isActive)(c.index.url,m),external:c.index.external,children:[c.icon,c.name]}):(0,p.jsxs)(o,{children:[c.icon,c.name]}),(0,p.jsx)(t,{children:a(c.children)})]})}return d?(0,p.jsx)(d,{item:c}):(0,p.jsx)(l,{href:c.url,external:c.external,active:(0,eQ.isActive)(c.url,m),icon:c.icon,children:c.name})}return function(e){let{Folder:t,Item:r,Separator:o}=e,{root:i}=(0,n.useTreeContext)(),l=(0,f.usePathname)();return(0,p.jsx)(e0,{value:(0,b.useMemo)(()=>({Folder:t,Item:r,Separator:o,pathname:l}),[t,r,o,l]),children:(0,p.jsx)(b.Fragment,{children:a(i.children)},i.$id)})}}({SidebarFolder:ti,SidebarFolderContent:tp,SidebarFolderLink:tf,SidebarFolderTrigger:td,SidebarItem:tu,SidebarSeparator:function({className:e,style:n,children:r,...o}
1){let i=ez();return(0,p.jsx)(eB,{className:(0,t.cn)("inline-flex items-center gap-2 mb-1 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",0===i&&"first:mt-0",e),style:{paddingInlineStart:tm(i),...n},...o,children:r})}}),tg=function({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:n,SidebarFolderTrigger:r,SidebarItem:i}){return function l({item:a,...s}){let c=(0,f.usePathname)(),u=(0,o.isLinkItemActive)(a,c);return"custom"===a.type?(0,p.jsx)("div",{...s,children:a.children}):"menu"===a.type?(0,p.jsxs)(e,{...s,children:[a.url?(0,p.jsxs)(n,{href:a.url,active:u,external:a.external,children:[a.icon,a.text]}):(0,p.jsxs)(r,{children:[a.icon,a.text]}),(0,p.jsx)(t,{children:a.items.map((e,t)=>(0,p.jsx)(l,{item:e},t))})]}):(0,p.jsx)(i,{href:a.url,icon:a.icon,external:a.external,active:u,...s,children:a.text})}}({SidebarFolder:ti,SidebarFolderContent:tp,SidebarFolderLink:tf,SidebarFolderTrigger:td,SidebarItem:tu});function tv(e){let{isNavTransparent:n,slots:r,props:{nav:o}}=tS();return o?.component?o.component:(0,p.jsxs)("header",{id:"nd-subnav","data-transparent":n,...e,className:(0,t.cn)("[grid-area:header] sticky top-(--fd-docs-row-1) z-30 flex items-center ps-4 pe-2.5 border-b transition-colors backdrop-blur-sm h-(--fd-header-height) md:hidden max-md:layout:[--fd-header-height:--spacing(14)] data-[transparent=false]:bg-fd-background/80",e.className),children:[r.navTitle&&(0,p.jsx)(r.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),(0,p.jsx)("div",{className:"flex-1",children:o?.children}),r.searchTrigger&&(0,p.jsx)(r.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),r.sidebar&&(0,p.jsx)(r.sidebar.trigger,{className:(0,t.cn)((0,l.buttonVariants)({variant:"ghost",size:"icon-sm",className:"p-2"})),children:(0,p.jsx)(te,{})})]})}function tb(e){let{slots:n}=tS(),{collapsed:r}=n.sidebar.useSidebar(),[o,i]=(0,b.useState)(r),l=o!==r;return(0,b.useEffect)(()=>{l&&i(r)},[r,l]),(0,p.jsx)("div",{id:"nd-docs-layout","data-sidebar-collapsed":r,"data-column-changed":l,...e,style:{gridTemplate:`"sidebar sidebar header toc toc"
2"sidebar sidebar toc-popover toc toc"
3"sidebar sidebar main toc toc" 1fr / minmax(min-content, 1fr) var(--fd-sidebar-col) minmax(0, calc(var(--fd-layout-width,97rem) - var(--fd-sidebar-width) - var(--fd-toc-width))) var(--fd-toc-width) minmax(min-content, 1fr)`,"--fd-docs-row-1":"var(--fd-banner-height, 0px)","--fd-docs-row-2":"calc(var(--fd-docs-row-1) + var(--fd-header-height))","--fd-docs-row-3":"calc(var(--fd-docs-row-2) + var(--fd-toc-popover-height))","--fd-sidebar-col":r?"0px":"var(--fd-sidebar-width)",...e.style},className:(0,t.cn)("grid overflow-x-clip min-h-(--fd-docs-height) [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-toc-popover-height:0px] [--fd-sidebar-width:0px] [--fd-toc-width:0px] data-[column-changed=true]:transition-[grid-template-columns]",e.className),children:e.children})}let{useBaseSlots:tx}=(0,r.baseSlots)({useProps:()=>tS().props}),tw=(0,b.createContext)(null);function ty(){return null!==(0,b.use)(tw)}function tS(){let e=(0,b.use)(tw);if(!e)throw Error("Please use <DocsPage /> (`fumadocs-ui/layouts/docs/page`) under <DocsLayout /> (`fumadocs-ui/layouts/docs`).");return e}function tC(e){let{nav:{enabled:t=!0,transparentMode:r="none"}={},sidebar:{enabled:l=!0,defaultOpenLevel:a,prefetch:s,...c}={},slots:u,tabs:d,tabMode:f="auto",tree:m,containerProps:h,children:g}=e,v=(0,i.useIsScrollTop)({enabled:"top"===r})??!0,{baseSlots:b,baseProps:x}=tx(e),w=(0,o.useLinkItems)(e),y={...b,header:u?.header??tv,container:u?.container??tb,sidebar:u?.sidebar??{provider:tr,root:to,trigger:ta,useSidebar:tn}};return(0,p.jsx)(n.TreeContextProvider,{tree:m,children:(0,p.jsx)(tw,{value:{props:{tabMode:f,tabs:d,...x},isNavTransparent:"top"===r?v:"always"===r,slots:y,...w},children:(0,p.jsx)(y.sidebar.provider,{defaultOpenLevel:a,prefetch:s,children:(0,p.jsxs)(y.container,{...h,children:[t&&(0,p.jsx)(y.header,{}),l&&(0,p.jsx)(y.sidebar.root,{...c}),"top"===f&&d.length>0&&(0,p.jsx)(tj,{tabs:d,className:"z-10 bg-fd-background border-b px-6 pt-3 xl:px-8 max-md:hidden"}),g]})})})})}function tj({tabs:e,...r}){let i=(0,f.usePathname)(),l=(0,n.useTabsGroups)(e).findLast(e=>"string"!=typeof e.active?.root),a=(0,b.useMemo)(()=>l?.options.findLast(e=>(0,o.isLayoutTabActive)(e,i)),[l,i]);if(l)return(0,p.jsx)("div",{...r,className:(0,t.cn)("flex flex-row items-end gap-6 overflow-auto [grid-area:main]",r.className),children:l.options.map((e,n)=>(0,p.jsx)(d.default,{href:e.url,className:(0,t.cn)("inline-flex border-b-2 border-transparent transition-colors items-center pb-1.5 font-medium gap-2 text-fd-muted-foreground text-sm text-nowrap hover:text-fd-accent-foreground",e.unlisted&&a!==e&&"hidden",a===e&&"border-fd-primary text-fd-
3primary"),children:e.title},n))})}},14804,e=>{"use strict";e.s(["mergeRefs",0,function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}])},411150,e=>{"use strict";var t=e.i(271645);let n=e=>(window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)),r=()=>()=>{},o=()=>void 0;e.s(["useIsScrollTop",0,function({enabled:e=!0}){return(0,t.useSyncExternalStore)(e?n:r,()=>e?window.scrollY<10:void 0,o)}])},689664,643957,e=>{"use strict";var t=e.i(456420);let n={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};n.node;let r=(0,t.default)(n);e.s(["default",0,r],643957),e.s(["Check",0,r],689664)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.