UNPKG

next

Version:

The React Framework

1 lines • 430 kB
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24720,__turbopack_context__=>{"use strict";__turbopack_context__.s(["AlternateEnvironmentEmptyState",()=>AlternateEnvironmentEmptyState,"CompareAnalyzer",()=>CompareAnalyzer,"SingleAnalyzer",()=>SingleAnalyzer],24720);var SizeMode,Environment,CompareView,originalBodyPointerEvents,originalBodyPointerEvents1,__TURBOPACK__imported__module__24514__=__turbopack_context__.i(24514),__TURBOPACK__imported__module__36909__=__turbopack_context__.i(36909),__TURBOPACK__imported__module__95184__=__turbopack_context__.i(95184),__TURBOPACK__imported__module__46416__=__turbopack_context__.i(46416),__TURBOPACK__imported__module__15975__=__turbopack_context__.i(15975),__TURBOPACK__imported__module__86272__=__turbopack_context__.i(86272),__TURBOPACK__imported__module__46914__=__turbopack_context__.i(46914);let ArrowRight=(0,__TURBOPACK__imported__module__46914__.f)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),CircleCheck=(0,__TURBOPACK__imported__module__46914__.f)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var __TURBOPACK__imported__module__81063__=__turbopack_context__.i(81063);let CircleQuestionMark=(0,__TURBOPACK__imported__module__46914__.f)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);function composeEventHandlers(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function handleEvent(event){if(originalEventHandler?.(event),!1===checkForDefaultPrevented||!event.defaultPrevented)return ourEventHandler?.(event)}}function setRef(ref,value){"function"==typeof ref?ref(value):null!=ref&&(ref.current=value)}function composeRefs(...refs){return node=>refs.forEach(ref=>setRef(ref,node))}function useComposedRefs(...refs){return __TURBOPACK__imported__module__95184__.useCallback(composeRefs(...refs),refs)}var __TURBOPACK__imported__module__29668__=__turbopack_context__.i(29668),__TURBOPACK__imported__module__20135__=__turbopack_context__.i(20135),Slot=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{children,...slotProps}=props,childrenArray=__TURBOPACK__imported__module__95184__.Children.toArray(children),slottable=childrenArray.find(isSlottable);if(slottable){let newElement=slottable.props.children,newChildren=childrenArray.map(child=>child!==slottable?child:__TURBOPACK__imported__module__95184__.Children.count(newElement)>1?__TURBOPACK__imported__module__95184__.Children.only(null):__TURBOPACK__imported__module__95184__.isValidElement(newElement)?newElement.props.children:null);return(0,__TURBOPACK__imported__module__24514__.jsx)(SlotClone,{...slotProps,ref:forwardedRef,children:__TURBOPACK__imported__module__95184__.isValidElement(newElement)?__TURBOPACK__imported__module__95184__.cloneElement(newElement,void 0,newChildren):null})}return(0,__TURBOPACK__imported__module__24514__.jsx)(SlotClone,{...slotProps,ref:forwardedRef,children})});Slot.displayName="Slot";var SlotClone=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{children,...slotProps}=props;if(__TURBOPACK__imported__module__95184__.isValidElement(children)){let childrenRef=getElementRef(children);return __TURBOPACK__imported__module__95184__.cloneElement(children,{...mergeProps(slotProps,children.props),ref:forwardedRef?composeRefs(forwardedRef,childrenRef):childrenRef})}return __TURBOPACK__imported__module__95184__.Children.count(children)>1?__TURBOPACK__imported__module__95184__.Children.only(null):null});SlotClone.displayName="SlotClone";var Slottable=({children})=>(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__24514__.Fragment,{children});function isSlottable(child){return __TURBOPACK__imported__module__95184__.isValidElement(child)&&child.type===Slottable}function mergeProps(slotProps,childProps){let overrideProps={...childProps};for(let propName in childProps){let slotPropValue=slotProps[propName],childPropValue=childProps[propName];/^on[A-Z]/.test(propName)?slotPropValue&&childPropValue?overrideProps[propName]=(...args)=>{childPropValue(...args),slotPropValue(...args)}:slotPropValue&&(overrideProps[propName]=slotPropValue):"style"===propName?overrideProps[propName]={...slotPropValue,...childPropValue}:"className"===propName&&(overrideProps[propName]=[slotPropValue,childPropValue].filter(Boolean).join(" "))}return{...slotProps,...overrideProps}}function getElementRef(element){let getter=Object.getOwnPropertyDescriptor(element.props,"ref")?.get,mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;return mayWarn?element.ref:(mayWarn=(getter=Object.getOwnPropertyDescriptor(element,"ref")?.get)&&"isReactWarning"in getter&&getter.isReactWarning)?element.props.ref:element.props.ref||element.ref}var Primitive=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((primitive,node)=>{let Node1=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{asChild,...primitiveProps}=props,Comp=asChild?Slot:node;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,__TURBOPACK__imported__module__24514__.jsx)(Comp,{...primitiveProps,ref:forwardedRef})});return Node1.displayName=`Primitive.${node}`,{...primitive,[node]:Node1}},{});function dispatchDiscreteCustomEvent(target,event){target&&__TURBOPACK__imported__module__20135__.flushSync(()=>target.dispatchEvent(event))}var __TURBOPACK__imported__module__17245__=__turbopack_context__.i(17245),__TURBOPACK__imported__module__60461__=__turbopack_context__.i(60461),CONTEXT_UPDATE="dismissableLayer.update",DismissableLayerContext=__TURBOPACK__imported__module__95184__.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{disableOutsidePointerEvents=!1,onEscapeKeyDown,onPointerDownOutside,onFocusOutside,onInteractOutside,onDismiss,...layerProps}=props,context=__TURBOPACK__imported__module__95184__.useContext(DismissableLayerContext),[node,setNode]=__TURBOPACK__imported__module__95184__.useState(null),ownerDocument=node?.ownerDocument??globalThis?.document,[,force]=__TURBOPACK__imported__module__95184__.useState({}),composedRefs=useComposedRefs(forwardedRef,node2=>setNode(node2)),layers=Array.from(context.layers),[highestLayerWithOutsidePointerEventsDisabled]=[...context.layersWithOutsidePointerEventsDisabled].slice(-1),highestLayerWithOutsidePointerEventsDisabledIndex=layers.indexOf(highestLayerWithOutsidePointerEventsDisabled),index=node?layers.indexOf(node):-1,isBodyPointerEventsDisabled=context.layersWithOutsidePointerEventsDisabled.size>0,isPointerEventsEnabled=index>=highestLayerWithOutsidePointerEventsDisabledIndex,pointerDownOutside=usePointerDownOutside(event=>{let target=event.target,isPointerDownOnBranch=[...context.branches].some(branch=>branch.contains(target));isPointerEventsEnabled&&!isPointerDownOnBranch&&(onPointerDownOutside?.(event),onInteractOutside?.(event),event.defaultPrevented||onDismiss?.())},ownerDocument),focusOutside=useFocusOutside(event=>{let target=event.target;![...context.branches].some(branch=>branch.contains(target))&&(onFocusOutside?.(event),onInteractOutside?.(event),event.defaultPrevented||onDismiss?.())},ownerDocument);return(0,__TURBOPACK__imported__module__60461__.f)(event=>{index===context.layers.size-1&&(onEscapeKeyDown?.(event),!event.defaultPrevented&&onDismiss&&(event.preventDefault(),onDismiss()))},ownerDocument),__TURBOPACK__imported__module__95184__.useEffect(()=>{if(node)return disableOutsidePointerEvents&&(0===context.layersWithOutsidePointerEventsDisabled.size&&(originalBodyPointerEvents=ownerDocument.body.style.pointerEvents,ownerDocument.body.style.pointerEvents="none"),context.layersWithOutsidePointerEventsDisabled.add(node)),context.layers.add(node),dispatchUpdate(),()=>{disableOutsidePointerEvents&&1===context.layersWithOutsidePointerEventsDisabled.size&&(ownerDocument.body.style.pointerEvents=originalBodyPointerEvents)}},[node,ownerDocument,disableOutsidePointerEvents,context]),__TURBOPACK__imported__module__95184__.useEffect(()=>()=>{node&&(context.layers.delete(node),context.layersWithOutsidePointerEventsDisabled.delete(node),dispatchUpdate())},[node,context]),__TURBOPACK__imported__module__95184__.useEffect(()=>{let handleUpdate=()=>force({});return document.addEventListener(CONTEXT_UPDATE,handleUpdate),()=>document.removeEventListener(CONTEXT_UPDATE,handleUpdate)},[]),(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.div,{...layerProps,ref:composedRefs,style:{pointerEvents:isBodyPointerEventsDisabled?isPointerEventsEnabled?"auto":"none":void 0,...props.style},onFocusCapture:composeEventHandlers(props.onFocusCapture,focusOutside.onFocusCapture),onBlurCapture:composeEventHandlers(props.onBlurCapture,focusOutside.onBlurCapture),onPointerDownCapture:composeEventHandlers(props.onPointerDownCapture,pointerDownOutside.onPointerDownCapture)})});function usePointerDownOutside(onPointerDownOutside,ownerDocument=globalThis?.document){let handlePointerDownOutside=(0,__TURBOPACK__imported__module__17245__.f)(onPointerDownOutside),isPointerInsideReactTreeRef=__TURBOPACK__imported__module__95184__.useRef(!1),handleClickRef=__TURBOPACK__imported__module__95184__.useRef(()=>{});return __TURBOPACK__imported__module__95184__.useEffect(()=>{let handlePointerDown=event=>{if(event.target&&!isPointerInsideReactTreeRef.current){let handleAndDispatchPointerDownOutsideEvent2=function(){handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",handlePointerDownOutside,eventDetail,{discrete:!0})},eventDetail={originalEvent:event};"touch"===event.pointerType?(ownerDocument.removeEventListener("click",handleClickRef.current),handleClickRef.current=handleAndDispatchPointerDownOutsideEvent2,ownerDocument.addEventListener("click",handleClickRef.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent2()}else ownerDocument.removeEventListener("click",handleClickRef.current);isPointerInsideReactTreeRef.current=!1},timerId=window.setTimeout(()=>{ownerDocument.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(timerId),ownerDocument.removeEventListener("pointerdown",handlePointerDown),ownerDocument.removeEventListener("click",handleClickRef.current)}},[ownerDocument,handlePointerDownOutside]),{onPointerDownCapture:()=>isPointerInsideReactTreeRef.current=!0}}function useFocusOutside(onFocusOutside,ownerDocument=globalThis?.document){let handleFocusOutside=(0,__TURBOPACK__imported__module__17245__.f)(onFocusOutside),isFocusInsideReactTreeRef=__TURBOPACK__imported__module__95184__.useRef(!1);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let handleFocus=event=>{event.target&&!isFocusInsideReactTreeRef.current&&handleAndDispatchCustomEvent("dismissableLayer.focusOutside",handleFocusOutside,{originalEvent:event},{discrete:!1})};return ownerDocument.addEventListener("focusin",handleFocus),()=>ownerDocument.removeEventListener("focusin",handleFocus)},[ownerDocument,handleFocusOutside]),{onFocusCapture:()=>isFocusInsideReactTreeRef.current=!0,onBlurCapture:()=>isFocusInsideReactTreeRef.current=!1}}function dispatchUpdate(){let event=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(event)}function handleAndDispatchCustomEvent(name,handler,detail,{discrete}){let target=detail.originalEvent.target,event=new CustomEvent(name,{bubbles:!1,cancelable:!0,detail});handler&&target.addEventListener(name,handler,{once:!0}),discrete?dispatchDiscreteCustomEvent(target,event):target.dispatchEvent(event)}DismissableLayer.displayName="DismissableLayer",__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let context=__TURBOPACK__imported__module__95184__.useContext(DismissableLayerContext),ref=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=useComposedRefs(forwardedRef,ref);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let node=ref.current;if(node)return context.branches.add(node),()=>{context.branches.delete(node)}},[context.branches]),(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.div,{...props,ref:composedRefs})}).displayName="DismissableLayerBranch";var __TURBOPACK__imported__module__32947__=__turbopack_context__.i(32947),__TURBOPACK__imported__module__5433__=__turbopack_context__.i(5433),__TURBOPACK__imported__module__36035__=__turbopack_context__.i(36035),Arrow=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{children,width=10,height=5,...arrowProps}=props;return(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.svg,{...arrowProps,ref:forwardedRef,width,height,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:props.asChild?children:(0,__TURBOPACK__imported__module__24514__.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function createContextScope(scopeName,createContextScopeDeps=[]){let defaultContexts=[];function createContext3(rootComponentName,defaultContext){let BaseContext=__TURBOPACK__imported__module__95184__.createContext(defaultContext),index=defaultContexts.length;function Provider(props){let{scope,children,...context}=props,Context=scope?.[scopeName][index]||BaseContext,value=__TURBOPACK__imported__module__95184__.useMemo(()=>context,Object.values(context));return(0,__TURBOPACK__imported__module__24514__.jsx)(Context.Provider,{value,children})}function useContext2(consumerName,scope){let Context=scope?.[scopeName][index]||BaseContext,context=__TURBOPACK__imported__module__95184__.useContext(Context);if(context)return context;if(void 0!==defaultContext)return defaultContext;throw Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``)}return defaultContexts=[...defaultContexts,defaultContext],Provider.displayName=rootComponentName+"Provider",[Provider,useContext2]}let createScope=()=>{let scopeContexts=defaultContexts.map(defaultContext=>__TURBOPACK__imported__module__95184__.createContext(defaultContext));return function useScope(scope){let contexts=scope?.[scopeName]||scopeContexts;return __TURBOPACK__imported__module__95184__.useMemo(()=>({[`__scope${scopeName}`]:{...scope,[scopeName]:contexts}}),[scope,contexts])}};return createScope.scopeName=scopeName,[createContext3,composeContextScopes(createScope,...createContextScopeDeps)]}function composeContextScopes(...scopes){let baseScope=scopes[0];if(1===scopes.length)return baseScope;let createScope=()=>{let scopeHooks=scopes.map(createScope2=>({useScope:createScope2(),scopeName:createScope2.scopeName}));return function useComposedScopes(overrideScopes){let nextScopes=scopeHooks.reduce((nextScopes2,{useScope,scopeName})=>{let currentScope=useScope(overrideScopes)[`__scope${scopeName}`];return{...nextScopes2,...currentScope}},{});return __TURBOPACK__imported__module__95184__.useMemo(()=>({[`__scope${baseScope.scopeName}`]:nextScopes}),[nextScopes])}};return createScope.scopeName=baseScope.scopeName,createScope}Arrow.displayName="Arrow";var __TURBOPACK__imported__module__77677__=__turbopack_context__.i(77677),__TURBOPACK__imported__module__31729__=__turbopack_context__.i(31729),POPPER_NAME="Popper",[createPopperContext,createPopperScope]=createContextScope(POPPER_NAME),[PopperProvider,usePopperContext]=createPopperContext(POPPER_NAME),Popper=props=>{let{__scopePopper,children}=props,[anchor,setAnchor]=__TURBOPACK__imported__module__95184__.useState(null);return(0,__TURBOPACK__imported__module__24514__.jsx)(PopperProvider,{scope:__scopePopper,anchor,onAnchorChange:setAnchor,children})};Popper.displayName=POPPER_NAME;var ANCHOR_NAME="PopperAnchor",PopperAnchor=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopePopper,virtualRef,...anchorProps}=props,context=usePopperContext(ANCHOR_NAME,__scopePopper),ref=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=useComposedRefs(forwardedRef,ref);return __TURBOPACK__imported__module__95184__.useEffect(()=>{context.onAnchorChange(virtualRef?.current||ref.current)}),virtualRef?null:(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.div,{...anchorProps,ref:composedRefs})});PopperAnchor.displayName=ANCHOR_NAME;var CONTENT_NAME="PopperContent",[PopperContentProvider,useContentContext]=createPopperContext(CONTENT_NAME),PopperContent=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopePopper,side="bottom",sideOffset=0,align="center",alignOffset=0,arrowPadding=0,avoidCollisions=!0,collisionBoundary=[],collisionPadding:collisionPaddingProp=0,sticky="partial",hideWhenDetached=!1,updatePositionStrategy="optimized",onPlaced,...contentProps}=props,context=usePopperContext(CONTENT_NAME,__scopePopper),[content,setContent]=__TURBOPACK__imported__module__95184__.useState(null),composedRefs=useComposedRefs(forwardedRef,node=>setContent(node)),[arrow,setArrow]=__TURBOPACK__imported__module__95184__.useState(null),arrowSize=(0,__TURBOPACK__imported__module__31729__.f)(arrow),arrowWidth=arrowSize?.width??0,arrowHeight=arrowSize?.height??0,collisionPadding="number"==typeof collisionPaddingProp?collisionPaddingProp:{top:0,right:0,bottom:0,left:0,...collisionPaddingProp},boundary=Array.isArray(collisionBoundary)?collisionBoundary:[collisionBoundary],hasExplicitBoundaries=boundary.length>0,detectOverflowOptions={padding:collisionPadding,boundary:boundary.filter(isNotNull),altBoundary:hasExplicitBoundaries},{refs,floatingStyles,placement,isPositioned,middlewareData}=(0,__TURBOPACK__imported__module__5433__.E)({strategy:"fixed",placement:side+("center"!==align?"-"+align:""),whileElementsMounted:(...args)=>(0,__TURBOPACK__imported__module__36035__.n)(...args,{animationFrame:"always"===updatePositionStrategy}),elements:{reference:context.anchor},middleware:[(0,__TURBOPACK__imported__module__5433__.T)({mainAxis:sideOffset+arrowHeight,alignmentAxis:alignOffset}),avoidCollisions&&(0,__TURBOPACK__imported__module__5433__.e)({mainAxis:!0,crossAxis:!1,limiter:"partial"===sticky?(0,__TURBOPACK__imported__module__5433__.n)():void 0,...detectOverflowOptions}),avoidCollisions&&(0,__TURBOPACK__imported__module__5433__.x)({...detectOverflowOptions}),(0,__TURBOPACK__imported__module__5433__.o)({...detectOverflowOptions,apply:({elements,rects,availableWidth,availableHeight})=>{let{width:anchorWidth,height:anchorHeight}=rects.reference,contentStyle=elements.floating.style;contentStyle.setProperty("--radix-popper-available-width",`${availableWidth}px`),contentStyle.setProperty("--radix-popper-available-height",`${availableHeight}px`),contentStyle.setProperty("--radix-popper-anchor-width",`${anchorWidth}px`),contentStyle.setProperty("--radix-popper-anchor-height",`${anchorHeight}px`)}}),arrow&&(0,__TURBOPACK__imported__module__5433__.P)({element:arrow,padding:arrowPadding}),transformOrigin({arrowWidth,arrowHeight}),hideWhenDetached&&(0,__TURBOPACK__imported__module__5433__.c)({strategy:"referenceHidden",...detectOverflowOptions})]}),[placedSide,placedAlign]=getSideAndAlignFromPlacement(placement),handlePlaced=(0,__TURBOPACK__imported__module__17245__.f)(onPlaced);(0,__TURBOPACK__imported__module__77677__.f)(()=>{isPositioned&&handlePlaced?.()},[isPositioned,handlePlaced]);let arrowX=middlewareData.arrow?.x,arrowY=middlewareData.arrow?.y,cannotCenterArrow=middlewareData.arrow?.centerOffset!==0,[contentZIndex,setContentZIndex]=__TURBOPACK__imported__module__95184__.useState();return(0,__TURBOPACK__imported__module__77677__.f)(()=>{content&&setContentZIndex(window.getComputedStyle(content).zIndex)},[content]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{ref:refs.setFloating,"data-radix-popper-content-wrapper":"",style:{...floatingStyles,transform:isPositioned?floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:contentZIndex,"--radix-popper-transform-origin":[middlewareData.transformOrigin?.x,middlewareData.transformOrigin?.y].join(" "),...middlewareData.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:props.dir,children:(0,__TURBOPACK__imported__module__24514__.jsx)(PopperContentProvider,{scope:__scopePopper,placedSide,onArrowChange:setArrow,arrowX,arrowY,shouldHideArrow:cannotCenterArrow,children:(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.div,{"data-side":placedSide,"data-align":placedAlign,...contentProps,ref:composedRefs,style:{...contentProps.style,animation:isPositioned?void 0:"none"}})})})});PopperContent.displayName=CONTENT_NAME;var ARROW_NAME="PopperArrow",OPPOSITE_SIDE={top:"bottom",right:"left",bottom:"top",left:"right"},PopperArrow=__TURBOPACK__imported__module__95184__.forwardRef(function PopperArrow2(props,forwardedRef){let{__scopePopper,...arrowProps}=props,contentContext=useContentContext(ARROW_NAME,__scopePopper),baseSide=OPPOSITE_SIDE[contentContext.placedSide];return(0,__TURBOPACK__imported__module__24514__.jsx)("span",{ref:contentContext.onArrowChange,style:{position:"absolute",left:contentContext.arrowX,top:contentContext.arrowY,[baseSide]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[contentContext.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[contentContext.placedSide],visibility:contentContext.shouldHideArrow?"hidden":void 0},children:(0,__TURBOPACK__imported__module__24514__.jsx)(Arrow,{...arrowProps,ref:forwardedRef,style:{...arrowProps.style,display:"block"}})})});function isNotNull(value){return null!==value}PopperArrow.displayName=ARROW_NAME;var transformOrigin=options=>({name:"transformOrigin",options,fn(data){let{placement,rects,middlewareData}=data,cannotCenterArrow=middlewareData.arrow?.centerOffset!==0,arrowWidth=cannotCenterArrow?0:options.arrowWidth,arrowHeight=cannotCenterArrow?0:options.arrowHeight,[placedSide,placedAlign]=getSideAndAlignFromPlacement(placement),noArrowAlign={start:"0%",center:"50%",end:"100%"}[placedAlign],arrowXCenter=(middlewareData.arrow?.x??0)+arrowWidth/2,arrowYCenter=(middlewareData.arrow?.y??0)+arrowHeight/2,x="",y="";return"bottom"===placedSide?(x=cannotCenterArrow?noArrowAlign:`${arrowXCenter}px`,y=`${-arrowHeight}px`):"top"===placedSide?(x=cannotCenterArrow?noArrowAlign:`${arrowXCenter}px`,y=`${rects.floating.height+arrowHeight}px`):"right"===placedSide?(x=`${-arrowHeight}px`,y=cannotCenterArrow?noArrowAlign:`${arrowYCenter}px`):"left"===placedSide&&(x=`${rects.floating.width+arrowHeight}px`,y=cannotCenterArrow?noArrowAlign:`${arrowYCenter}px`),{data:{x,y}}}});function getSideAndAlignFromPlacement(placement){let[side,align="center"]=placement.split("-");return[side,align]}var Portal=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{container:containerProp,...portalProps}=props,[mounted,setMounted]=__TURBOPACK__imported__module__95184__.useState(!1);(0,__TURBOPACK__imported__module__77677__.f)(()=>setMounted(!0),[]);let container=containerProp||mounted&&globalThis?.document?.body;return container?__TURBOPACK__imported__module__20135__.default.createPortal((0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.div,{...portalProps,ref:forwardedRef}),container):null});function useStateMachine(initialState,machine){return __TURBOPACK__imported__module__95184__.useReducer((state,event)=>machine[state][event]??state,initialState)}Portal.displayName="Portal";var Presence=props=>{let{present,children}=props,presence=usePresence(present),child="function"==typeof children?children({present:presence.isPresent}):__TURBOPACK__imported__module__95184__.Children.only(children),ref=useComposedRefs(presence.ref,getElementRef1(child));return"function"==typeof children||presence.isPresent?__TURBOPACK__imported__module__95184__.cloneElement(child,{ref}):null};function usePresence(present){let[node,setNode]=__TURBOPACK__imported__module__95184__.useState(),stylesRef=__TURBOPACK__imported__module__95184__.useRef({}),prevPresentRef=__TURBOPACK__imported__module__95184__.useRef(present),prevAnimationNameRef=__TURBOPACK__imported__module__95184__.useRef("none"),[state,send]=useStateMachine(present?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return __TURBOPACK__imported__module__95184__.useEffect(()=>{let currentAnimationName=getAnimationName(stylesRef.current);prevAnimationNameRef.current="mounted"===state?currentAnimationName:"none"},[state]),(0,__TURBOPACK__imported__module__77677__.f)(()=>{let styles=stylesRef.current,wasPresent=prevPresentRef.current;if(wasPresent!==present){let prevAnimationName=prevAnimationNameRef.current,currentAnimationName=getAnimationName(styles);present?send("MOUNT"):"none"===currentAnimationName||styles?.display==="none"?send("UNMOUNT"):wasPresent&&prevAnimationName!==currentAnimationName?send("ANIMATION_OUT"):send("UNMOUNT"),prevPresentRef.current=present}},[present,send]),(0,__TURBOPACK__imported__module__77677__.f)(()=>{if(node){let timeoutId,ownerWindow=node.ownerDocument.defaultView??window,handleAnimationEnd=event=>{let isCurrentAnimation=getAnimationName(stylesRef.current).includes(event.animationName);if(event.target===node&&isCurrentAnimation&&(send("ANIMATION_END"),!prevPresentRef.current)){let currentFillMode=node.style.animationFillMode;node.style.animationFillMode="forwards",timeoutId=ownerWindow.setTimeout(()=>{"forwards"===node.style.animationFillMode&&(node.style.animationFillMode=currentFillMode)})}},handleAnimationStart=event=>{event.target===node&&(prevAnimationNameRef.current=getAnimationName(stylesRef.current))};return node.addEventListener("animationstart",handleAnimationStart),node.addEventListener("animationcancel",handleAnimationEnd),node.addEventListener("animationend",handleAnimationEnd),()=>{ownerWindow.clearTimeout(timeoutId),node.removeEventListener("animationstart",handleAnimationStart),node.removeEventListener("animationcancel",handleAnimationEnd),node.removeEventListener("animationend",handleAnimationEnd)}}send("ANIMATION_END")},[node,send]),{isPresent:["mounted","unmountSuspended"].includes(state),ref:__TURBOPACK__imported__module__95184__.useCallback(node2=>{node2&&(stylesRef.current=getComputedStyle(node2)),setNode(node2)},[])}}function getAnimationName(styles){return styles?.animationName||"none"}function getElementRef1(element){let getter=Object.getOwnPropertyDescriptor(element.props,"ref")?.get,mayWarn=getter&&"isReactWarning"in getter&&getter.isReactWarning;return mayWarn?element.ref:(mayWarn=(getter=Object.getOwnPropertyDescriptor(element,"ref")?.get)&&"isReactWarning"in getter&&getter.isReactWarning)?element.props.ref:element.props.ref||element.ref}Presence.displayName="Presence";var __TURBOPACK__imported__module__93152__=__turbopack_context__.i(93152),VisuallyHidden=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.span,{...props,ref:forwardedRef,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...props.style}}));VisuallyHidden.displayName="VisuallyHidden";var[createTooltipContext,createTooltipScope]=(0,__TURBOPACK__imported__module__29668__.c)("Tooltip",[createPopperScope]),usePopperScope=createPopperScope(),PROVIDER_NAME="TooltipProvider",TOOLTIP_OPEN="tooltip.open",[TooltipProviderContextProvider,useTooltipProviderContext]=createTooltipContext(PROVIDER_NAME),TooltipProvider=props=>{let{__scopeTooltip,delayDuration=700,skipDelayDuration=300,disableHoverableContent=!1,children}=props,[isOpenDelayed,setIsOpenDelayed]=__TURBOPACK__imported__module__95184__.useState(!0),isPointerInTransitRef=__TURBOPACK__imported__module__95184__.useRef(!1),skipDelayTimerRef=__TURBOPACK__imported__module__95184__.useRef(0);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let skipDelayTimer=skipDelayTimerRef.current;return()=>window.clearTimeout(skipDelayTimer)},[]),(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipProviderContextProvider,{scope:__scopeTooltip,isOpenDelayed,delayDuration,onOpen:__TURBOPACK__imported__module__95184__.useCallback(()=>{window.clearTimeout(skipDelayTimerRef.current),setIsOpenDelayed(!1)},[]),onClose:__TURBOPACK__imported__module__95184__.useCallback(()=>{window.clearTimeout(skipDelayTimerRef.current),skipDelayTimerRef.current=window.setTimeout(()=>setIsOpenDelayed(!0),skipDelayDuration)},[skipDelayDuration]),isPointerInTransitRef,onPointerInTransitChange:__TURBOPACK__imported__module__95184__.useCallback(inTransit=>{isPointerInTransitRef.current=inTransit},[]),disableHoverableContent,children})};TooltipProvider.displayName=PROVIDER_NAME;var TOOLTIP_NAME="Tooltip",[TooltipContextProvider,useTooltipContext]=createTooltipContext(TOOLTIP_NAME),Tooltip=props=>{let{__scopeTooltip,children,open:openProp,defaultOpen=!1,onOpenChange,disableHoverableContent:disableHoverableContentProp,delayDuration:delayDurationProp}=props,providerContext=useTooltipProviderContext(TOOLTIP_NAME,props.__scopeTooltip),popperScope=usePopperScope(__scopeTooltip),[trigger,setTrigger]=__TURBOPACK__imported__module__95184__.useState(null),contentId=(0,__TURBOPACK__imported__module__32947__.f)(),openTimerRef=__TURBOPACK__imported__module__95184__.useRef(0),disableHoverableContent=disableHoverableContentProp??providerContext.disableHoverableContent,delayDuration=delayDurationProp??providerContext.delayDuration,wasOpenDelayedRef=__TURBOPACK__imported__module__95184__.useRef(!1),[open=!1,setOpen]=(0,__TURBOPACK__imported__module__93152__.f)({prop:openProp,defaultProp:defaultOpen,onChange:open2=>{open2?(providerContext.onOpen(),document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN))):providerContext.onClose(),onOpenChange?.(open2)}}),stateAttribute=__TURBOPACK__imported__module__95184__.useMemo(()=>open?wasOpenDelayedRef.current?"delayed-open":"instant-open":"closed",[open]),handleOpen=__TURBOPACK__imported__module__95184__.useCallback(()=>{window.clearTimeout(openTimerRef.current),openTimerRef.current=0,wasOpenDelayedRef.current=!1,setOpen(!0)},[setOpen]),handleClose=__TURBOPACK__imported__module__95184__.useCallback(()=>{window.clearTimeout(openTimerRef.current),openTimerRef.current=0,setOpen(!1)},[setOpen]),handleDelayedOpen=__TURBOPACK__imported__module__95184__.useCallback(()=>{window.clearTimeout(openTimerRef.current),openTimerRef.current=window.setTimeout(()=>{wasOpenDelayedRef.current=!0,setOpen(!0),openTimerRef.current=0},delayDuration)},[delayDuration,setOpen]);return __TURBOPACK__imported__module__95184__.useEffect(()=>()=>{openTimerRef.current&&(window.clearTimeout(openTimerRef.current),openTimerRef.current=0)},[]),(0,__TURBOPACK__imported__module__24514__.jsx)(Popper,{...popperScope,children:(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipContextProvider,{scope:__scopeTooltip,contentId,open,stateAttribute,trigger,onTriggerChange:setTrigger,onTriggerEnter:__TURBOPACK__imported__module__95184__.useCallback(()=>{providerContext.isOpenDelayed?handleDelayedOpen():handleOpen()},[providerContext.isOpenDelayed,handleDelayedOpen,handleOpen]),onTriggerLeave:__TURBOPACK__imported__module__95184__.useCallback(()=>{disableHoverableContent?handleClose():(window.clearTimeout(openTimerRef.current),openTimerRef.current=0)},[handleClose,disableHoverableContent]),onOpen:handleOpen,onClose:handleClose,disableHoverableContent,children})})};Tooltip.displayName=TOOLTIP_NAME;var TRIGGER_NAME="TooltipTrigger",TooltipTrigger=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeTooltip,...triggerProps}=props,context=useTooltipContext(TRIGGER_NAME,__scopeTooltip),providerContext=useTooltipProviderContext(TRIGGER_NAME,__scopeTooltip),popperScope=usePopperScope(__scopeTooltip),composedRefs=useComposedRefs(forwardedRef,__TURBOPACK__imported__module__95184__.useRef(null),context.onTriggerChange),isPointerDownRef=__TURBOPACK__imported__module__95184__.useRef(!1),hasPointerMoveOpenedRef=__TURBOPACK__imported__module__95184__.useRef(!1),handlePointerUp=__TURBOPACK__imported__module__95184__.useCallback(()=>isPointerDownRef.current=!1,[]);return __TURBOPACK__imported__module__95184__.useEffect(()=>()=>document.removeEventListener("pointerup",handlePointerUp),[handlePointerUp]),(0,__TURBOPACK__imported__module__24514__.jsx)(PopperAnchor,{asChild:!0,...popperScope,children:(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.button,{"aria-describedby":context.open?context.contentId:void 0,"data-state":context.stateAttribute,...triggerProps,ref:composedRefs,onPointerMove:composeEventHandlers(props.onPointerMove,event=>{"touch"!==event.pointerType&&(hasPointerMoveOpenedRef.current||providerContext.isPointerInTransitRef.current||(context.onTriggerEnter(),hasPointerMoveOpenedRef.current=!0))}),onPointerLeave:composeEventHandlers(props.onPointerLeave,()=>{context.onTriggerLeave(),hasPointerMoveOpenedRef.current=!1}),onPointerDown:composeEventHandlers(props.onPointerDown,()=>{isPointerDownRef.current=!0,document.addEventListener("pointerup",handlePointerUp,{once:!0})}),onFocus:composeEventHandlers(props.onFocus,()=>{isPointerDownRef.current||context.onOpen()}),onBlur:composeEventHandlers(props.onBlur,context.onClose),onClick:composeEventHandlers(props.onClick,context.onClose)})})});TooltipTrigger.displayName=TRIGGER_NAME;var PORTAL_NAME1="TooltipPortal",[PortalProvider,usePortalContext]=createTooltipContext(PORTAL_NAME1,{forceMount:void 0}),TooltipPortal=props=>{let{__scopeTooltip,forceMount,children,container}=props,context=useTooltipContext(PORTAL_NAME1,__scopeTooltip);return(0,__TURBOPACK__imported__module__24514__.jsx)(PortalProvider,{scope:__scopeTooltip,forceMount,children:(0,__TURBOPACK__imported__module__24514__.jsx)(Presence,{present:forceMount||context.open,children:(0,__TURBOPACK__imported__module__24514__.jsx)(Portal,{asChild:!0,container,children})})})};TooltipPortal.displayName=PORTAL_NAME1;var CONTENT_NAME1="TooltipContent",TooltipContent=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let portalContext=usePortalContext(CONTENT_NAME1,props.__scopeTooltip),{forceMount=portalContext.forceMount,side="top",...contentProps}=props,context=useTooltipContext(CONTENT_NAME1,props.__scopeTooltip);return(0,__TURBOPACK__imported__module__24514__.jsx)(Presence,{present:forceMount||context.open,children:context.disableHoverableContent?(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipContentImpl,{side,...contentProps,ref:forwardedRef}):(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipContentHoverable,{side,...contentProps,ref:forwardedRef})})}),TooltipContentHoverable=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let context=useTooltipContext(CONTENT_NAME1,props.__scopeTooltip),providerContext=useTooltipProviderContext(CONTENT_NAME1,props.__scopeTooltip),ref=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=useComposedRefs(forwardedRef,ref),[pointerGraceArea,setPointerGraceArea]=__TURBOPACK__imported__module__95184__.useState(null),{trigger,onClose}=context,content=ref.current,{onPointerInTransitChange}=providerContext,handleRemoveGraceArea=__TURBOPACK__imported__module__95184__.useCallback(()=>{setPointerGraceArea(null),onPointerInTransitChange(!1)},[onPointerInTransitChange]),handleCreateGraceArea=__TURBOPACK__imported__module__95184__.useCallback((event,hoverTarget)=>{let currentTarget=event.currentTarget,exitPoint={x:event.clientX,y:event.clientY},exitSide=getExitSideFromRect(exitPoint,currentTarget.getBoundingClientRect());setPointerGraceArea(getHull([...getPaddedExitPoints(exitPoint,exitSide),...getPointsFromRect(hoverTarget.getBoundingClientRect())])),onPointerInTransitChange(!0)},[onPointerInTransitChange]);return __TURBOPACK__imported__module__95184__.useEffect(()=>()=>handleRemoveGraceArea(),[handleRemoveGraceArea]),__TURBOPACK__imported__module__95184__.useEffect(()=>{if(trigger&&content){let handleTriggerLeave=event=>handleCreateGraceArea(event,content),handleContentLeave=event=>handleCreateGraceArea(event,trigger);return trigger.addEventListener("pointerleave",handleTriggerLeave),content.addEventListener("pointerleave",handleContentLeave),()=>{trigger.removeEventListener("pointerleave",handleTriggerLeave),content.removeEventListener("pointerleave",handleContentLeave)}}},[trigger,content,handleCreateGraceArea,handleRemoveGraceArea]),__TURBOPACK__imported__module__95184__.useEffect(()=>{if(pointerGraceArea){let handleTrackPointerGrace=event=>{let target=event.target,pointerPosition={x:event.clientX,y:event.clientY},hasEnteredTarget=trigger?.contains(target)||content?.contains(target),isPointerOutsideGraceArea=!isPointInPolygon(pointerPosition,pointerGraceArea);hasEnteredTarget?handleRemoveGraceArea():isPointerOutsideGraceArea&&(handleRemoveGraceArea(),onClose())};return document.addEventListener("pointermove",handleTrackPointerGrace),()=>document.removeEventListener("pointermove",handleTrackPointerGrace)}},[trigger,content,pointerGraceArea,onClose,handleRemoveGraceArea]),(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipContentImpl,{...props,ref:composedRefs})}),[VisuallyHiddenContentContextProvider,useVisuallyHiddenContentContext]=createTooltipContext(TOOLTIP_NAME,{isInside:!1}),TooltipContentImpl=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeTooltip,children,"aria-label":ariaLabel,onEscapeKeyDown,onPointerDownOutside,...contentProps}=props,context=useTooltipContext(CONTENT_NAME1,__scopeTooltip),popperScope=usePopperScope(__scopeTooltip),{onClose}=context;return __TURBOPACK__imported__module__95184__.useEffect(()=>(document.addEventListener(TOOLTIP_OPEN,onClose),()=>document.removeEventListener(TOOLTIP_OPEN,onClose)),[onClose]),__TURBOPACK__imported__module__95184__.useEffect(()=>{if(context.trigger){let handleScroll=event=>{let target=event.target;target?.contains(context.trigger)&&onClose()};return window.addEventListener("scroll",handleScroll,{capture:!0}),()=>window.removeEventListener("scroll",handleScroll,{capture:!0})}},[context.trigger,onClose]),(0,__TURBOPACK__imported__module__24514__.jsx)(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown,onPointerDownOutside,onFocusOutside:event=>event.preventDefault(),onDismiss:onClose,children:(0,__TURBOPACK__imported__module__24514__.jsxs)(PopperContent,{"data-state":context.stateAttribute,...popperScope,...contentProps,ref:forwardedRef,style:{...contentProps.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Slottable,{children}),(0,__TURBOPACK__imported__module__24514__.jsx)(VisuallyHiddenContentContextProvider,{scope:__scopeTooltip,isInside:!0,children:(0,__TURBOPACK__imported__module__24514__.jsx)(VisuallyHidden,{id:context.contentId,role:"tooltip",children:ariaLabel||children})})]})})});TooltipContent.displayName=CONTENT_NAME1;var ARROW_NAME1="TooltipArrow";function getExitSideFromRect(point,rect){let top=Math.abs(rect.top-point.y),bottom=Math.abs(rect.bottom-point.y),right=Math.abs(rect.right-point.x),left=Math.abs(rect.left-point.x);switch(Math.min(top,bottom,right,left)){case left:return"left";case right:return"right";case top:return"top";case bottom:return"bottom";default:throw Error("unreachable")}}function getPaddedExitPoints(exitPoint,exitSide,padding=5){let paddedExitPoints=[];switch(exitSide){case"top":paddedExitPoints.push({x:exitPoint.x-padding,y:exitPoint.y+padding},{x:exitPoint.x+padding,y:exitPoint.y+padding});break;case"bottom":paddedExitPoints.push({x:exitPoint.x-padding,y:exitPoint.y-padding},{x:exitPoint.x+padding,y:exitPoint.y-padding});break;case"left":paddedExitPoints.push({x:exitPoint.x+padding,y:exitPoint.y-padding},{x:exitPoint.x+padding,y:exitPoint.y+padding});break;case"right":paddedExitPoints.push({x:exitPoint.x-padding,y:exitPoint.y-padding},{x:exitPoint.x-padding,y:exitPoint.y+padding})}return paddedExitPoints}function getPointsFromRect(rect){let{top,right,bottom,left}=rect;return[{x:left,y:top},{x:right,y:top},{x:right,y:bottom},{x:left,y:bottom}]}function isPointInPolygon(point,polygon){let{x,y}=point,inside=!1;for(let i=0,j=polygon.length-1;i<polygon.length;j=i++){let xi=polygon[i].x,yi=polygon[i].y,xj=polygon[j].x,yj=polygon[j].y;yi>y!=yj>y&&x<(xj-xi)*(y-yi)/(yj-yi)+xi&&(inside=!inside)}return inside}function getHull(points){let newPoints=points.slice();return newPoints.sort((a,b)=>a.x<b.x?-1:a.x>b.x?1:a.y<b.y?-1:1*!!(a.y>b.y)),getHullPresorted(newPoints)}function getHullPresorted(points){if(points.length<=1)return points.slice();let upperHull=[];for(let i=0;i<points.length;i++){let p=points[i];for(;upperHull.length>=2;){let q=upperHull[upperHull.length-1],r=upperHull[upperHull.length-2];if((q.x-r.x)*(p.y-r.y)>=(q.y-r.y)*(p.x-r.x))upperHull.pop();else break}upperHull.push(p)}upperHull.pop();let lowerHull=[];for(let i=points.length-1;i>=0;i--){let p=points[i];for(;lowerHull.length>=2;){let q=lowerHull[lowerHull.length-1],r=lowerHull[lowerHull.length-2];if((q.x-r.x)*(p.y-r.y)>=(q.y-r.y)*(p.x-r.x))lowerHull.pop();else break}lowerHull.push(p)}return(lowerHull.pop(),1===upperHull.length&&1===lowerHull.length&&upperHull[0].x===lowerHull[0].x&&upperHull[0].y===lowerHull[0].y)?upperHull:upperHull.concat(lowerHull)}__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeTooltip,...arrowProps}=props,popperScope=usePopperScope(__scopeTooltip);return useVisuallyHiddenContentContext(ARROW_NAME1,__scopeTooltip).isInside?null:(0,__TURBOPACK__imported__module__24514__.jsx)(PopperArrow,{...popperScope,...arrowProps,ref:forwardedRef})}).displayName=ARROW_NAME1;var __TURBOPACK__imported__module__1234__=__turbopack_context__.i(1234);let TooltipContent1=__TURBOPACK__imported__module__95184__.forwardRef((t0,ref)=>{let className,props,t1,t2,t3,$=(0,__TURBOPACK__imported__module__36909__.c)(11);$[0]!==t0?({className,sideOffset:t1,...props}=t0,$[0]=t0,$[1]=className,$[2]=props,$[3]=t1):(className=$[1],props=$[2],t1=$[3]);let sideOffset=void 0===t1?4:t1;return $[4]!==className?(t2=(0,__TURBOPACK__imported__module__1234__.c)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md outline-none data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",className),$[4]=className,$[5]=t2):t2=$[5],$[6]!==props||$[7]!==ref||$[8]!==sideOffset||$[9]!==t2?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipPortal,{children:(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipContent,{ref:ref,sideOffset:sideOffset,className:t2,...props})}),$[6]=props,$[7]=ref,$[8]=sideOffset,$[9]=t2,$[10]=t3):t3=$[10],t3});TooltipContent1.displayName=TooltipContent.displayName;let ArrowUp=(0,__TURBOPACK__imported__module__46914__.f)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),ChevronLeft=(0,__TURBOPACK__imported__module__46914__.f)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),ChevronRight=(0,__TURBOPACK__imported__module__46914__.f)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Box=(0,__TURBOPACK__imported__module__46914__.f)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]),File=(0,__TURBOPACK__imported__module__46914__.f)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),PanelTop=(0,__TURBOPACK__imported__module__46914__.f)("panel-top",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]]),SquareFunction=(0,__TURBOPACK__imported__module__46914__.f)("square-function",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]]),Server=(0,__TURBOPACK__imported__module__46914__.f)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]),Globe=(0,__TURBOPACK__imported__module__46914__.f)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),MessageCircleQuestionMark=(0,__TURBOPACK__imported__module__46914__.f)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Package=(0,__TURBOPACK__imported__module__46914__.f)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);var __TURBOPACK__imported__module__7284__=__turbopack_context__.i(7284),__TURBOPACK__imported__module__1748__=__turbopack_context__.i(1748);function spitPathSegments(path){return Array.from(path.matchAll(/(.+?(?:\/|$))/g)).map(([i])=>i)}function getPathParts(currentPath,previousPath){let currentSegments=spitPathSegments(currentPath),commonCount=0;if(previousPath){let previousSegments=spitPathSegments(previousPath),minLength=Math.min(currentSegments.length,previousSegments.length);for(let i=0;i<minLength;i++)if(currentSegments[i]===previousSegments[i])commonCount++;else break}let infrastructureCount=0,packageNameCount=0,nodeModulesIndex=currentSegments.lastIndexOf("node_modules/");return -1===nodeModulesIndex?nodeModulesIndex=currentSegments.length:(infrastructureCount=nodeModulesIndex+1,packageNameCount=currentSegments[nodeModulesIndex+1]?.startsWith("@")?2:1),currentSegments.map((segment,i)=>({segment,isCommon:i<commonCount,isLastCommon:i===commonCount-1,isInfrastructure:i<infrastructureCount,isPackageName:i>=infrastructureCount&&i<infrastructureCount+packageNameCount}))}function getTitle(level){let parts=[];return level.fullPath?parts.push(`Full Path: ${level.fullPath}`):parts.push(`Path: ${level.path}`),level.layer&&parts.push(`Layer: ${level.layer}`),level.moduleType&&parts.push(`Module Type: ${level.moduleType}`),level.treeShaking&&parts.push(`Tree Shaking: ${level.treeShaking}`),level.templateArgs&&parts.push(`Template Args: ${level.templateArgs}`),parts.join("\n")}function buildImportChain(startFileId,analyzeData,modulesData,depthMap,environmentFilter,selectedIndices,currentRouteOnly){let path,result=[],visitedModules=new Set,startPath=analyzeData.getFullSourcePath(startFileId);if(!startPath)return result;let getSourceIndexFromModuleIndex=moduleIndex=>{let module=modulesData.module(moduleIndex);if(!module)return;let modulePath=module.path;for(let i=0;i<analyzeData.sourceCount();i++)if(analyzeData.getFullSourcePath(i)===modulePath)return i},startModuleIndices=(path=analyzeData.getFullSourcePath(startFileId),modulesData.getModuleIndiciesFromPath(path)).filter(moduleIndex=>{if(currentRouteOnly&&!depthMap.has(moduleIndex))return!1;let module=modulesData.module(moduleIndex),layer=(0,__TURBOPACK__imported__module__1234__.l)(module?.ident||"").layer;return!(layer&&("client"===environmentFilter&&/ssr|rsc|route|api/.test(layer)||"server"===environmentFilter&&/client/.test(layer)))&&!0});if(0===startModuleIndices.length)return result;let actualStartIdx=Math.min(selectedIndices[0]??0,startModuleIndices.length-1),startModuleIndex=startModuleIndices[actualStartIdx],startIdent=modulesData.module(startModuleIndex)?.ident??"";result.push({moduleIndex:startModuleIndex,sourceIndex:startFileId,path:startPath,...(0,__TURBOPACK__imported__module__1234__.l)(startIdent),depth:depthMap.get(startModuleIndex)??1/0,selectedIndex:actualStartIdx,totalCount:startModuleIndices.length}),visitedModules.add(startModuleIndex);let levelIndex=1,currentModuleIndex=startModuleIndex;for(;;){let validDependents=[...modulesData.moduleDependents(currentModuleIndex).map(index=>({index,async:!1,traced:!1,depth:depthMap.get(index)??1/0})),...modulesData.asyncModuleDependents(currentModuleIndex).map(index=>({index,async:!0,traced:!1,depth:depthMap.get(index)??1/0})),...modulesData.tracedModuleDependents(currentModuleIndex).map(index=>({index,async:!1,traced:!0,depth:depthMap.get(index)??1/0}))].filter(({index,depth})=>!visitedModules.has(index)&&(isFinite(depth)||!currentRouteOnly));if(0===validDependents.length)break;let dependentsInfo=validDependents.map(({index:moduleIndex,async:isAsync,traced:isTraced,depth})=>{let sourceIndex=getSourceIndexFromModuleIndex(moduleIndex),ident=modulesData.module(moduleIndex)?.ident||"";return{moduleIndex,sourceIndex,ident,isAsync,isTraced,depth}});dependentsInfo.sort((a,b)=>a.depth!==b.depth?a.depth-b.depth:a.ident.length!==b.ident.length?a.ident.length-b.ident.length:a.ident.localeCompare(b.ident));let actualIdx=Math.min(selectedIndices[levelIndex]??0,dependentsInfo.length-1),selectedDepInfo=dependentsInfo[actualIdx],selectedDepModule=modulesData.module(selectedDepInfo.moduleIndex);if(!selectedDepModule||null==selectedDepModule.ident||(result.push({moduleIndex:selectedDepInfo.moduleIndex,sourceIndex:selectedDepInfo.sourceIndex,path:selectedDepModule.path,depth:depthMap.get(selectedDepInfo.moduleIndex)??1/0,...(0,__TURBOPACK__imported__module__1234__.l)(selectedDepModule.ident),selectedIndex:actualIdx,totalCount:dependentsInfo.length,info:selectedDepInfo}),visitedModules.add(selectedDepInfo.moduleIndex),currentModuleIndex=selectedDepInfo.moduleIndex,++levelIndex>100))break}return result}function ImportChain(t0){let t1,chain,t2,t3,t4,t5,t6,t7,t8,t9,$=(0,__TURBOPACK__imported__module__36909__.c)(30),{startFileId,analyzeData,modulesData,depthMap,environmentFilter}=t0,[currentRouteOnly,setCurrentRouteOnly]=(0,__TURBOPACK__imported__module__95184__.useState)(!0);$[0]===Symbol.for("react.memo_cache_sentinel")?(t1=[],$[0]=t1):t1=$[0];let[selectedIndices,setSelectedIndices]=(0,__TURBOPACK__imported__module__95184__.useState)(t1);if($[1]!==analyzeData||$[2]!==currentRouteOnly||$[3]!==depthMap||$[4]!==environmentFilter||$[5]!==modulesData||$[6]!==selectedIndices||$[7]!==startFileId){t6=Symbol.for("react.early_return_sentinel");bb0:{let t7,t8,t9;if(chain=buildImportChain(startFileId,analyzeData,modulesData,depthMap,environmentFilter,selectedIndices,currentRouteOnly),!analyzeData.getFullSourcePath(startFileId)){t6=null;break bb0}t4="space-y-2",$[14]===Symbol.for("react.memo_cache_sentinel")?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)("h3",{className:"text-xs font-semibold text-foreground flex-1",children:"Import Chain"}),$[14]=t7):t7=$[14],$[15]===Symbol.for("react.memo_cache_sentinel")?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{children:"Current route only"}),$[15]=t8):t8=$[15],$[16]===Symbol.for("react.memo_cache_sentinel")?(t9=()=>setCurrentRouteOnly(_temp),$[16]=t9):t9=$[16],$[17]!==currentRouteOnly?(t5=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center space-x-2",children:[t7,(0,__TURBOPACK__imported__module__24514__.jsxs)("label",{className:"inline-flex items-center space-x-2 text-xs cursor-pointer",title:"Only include dependent modules that are part of the current route's bundle",children:[t8,(0,__TURBOPACK__imported__module__24514__.jsx)("input",{type:"checkbox",className:"form-checkbox h-4 w-4 text-primary",checked:currentRouteOnly,onChange:t9})]})]}),$[17]=currentRouteOnly,$[18]=t5):t5=$[18],t2="space-y-0",t3=chain.map((level_1,index)=>{let previousPath=index>0?chain[index-1].path:null,parts=getPathParts(level_1.path,previousPath),flags=void 0!==level_1.sourceIndex?analyzeData.getSourceFlags(level_1.sourceIndex):void 0,currentItemInfo=level_1.info;return(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{children:[currentItemInfo?.isAsync&&(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"h-8"}),(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center justify-center gap-2 py-1",children:[currentItemInfo?.isAsync&&(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-xs text-muted-foreground italic",children:"(async)"}),currentItemInfo?.isTraced&&(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-xs text-muted-foreground italic",children:"(traced)"}),index>0?(0,__TURBOPACK__imported__module__24514__.jsx)(ArrowUp,{className:"w-4 h-4 text-muted-foreground"}):void 0,level_1.totalCount>1&&(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center gap-1 flex-none",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button",onClick:()=>{setSelectedIndices(prev=>{let newIndices=[...prev],currentIdx=newIndices[index]??0,level=chain[index];return newIndices[index]=currentIdx>0?currentIdx-1:level.totalCount-1,newIndices.slice(0,index+1)})},className:"p-0.5 hover:bg-accent rounded transition-colors cursor-pointer",title:"Previous dependent",children:(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronLeft,{className:"w-3 h-3"})}),(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"text-muted-foreground text-xs min-w-[3ch] text-center",children:[level_1.selectedIndex+1,"/",level_1.totalCount]}),(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button",onClick:()=>{setSelectedIndices(prev_0=>{let newIndices_0=[...prev_0],currentIdx_0=newIndices_0[index]??0,level_0=chain[index];return newIndices_0[index]=currentIdx_0<level_0.totalCount-1?currentIdx_0+1:0,newIndices_0.slice(0,index+1)})},className:"p-0.5 hover:bg-accent rounded transition-colors cursor-pointer",title:"Next dependent",children:(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronRight,{className:"w-3 h-3"})})]})]}),currentItemInfo?.isAsync&&(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"h-8"}),(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center gap-2",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-col gap-1 items-center",children:(0,__TURBOPACK__imported__module__24514__.jsx)(LayerIcon,{layer:level_1.layer})}),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex-1 border border-border rounded px-2 py-1 bg-background",children:(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"font-mono text-xs text-foreground text-center block break-words",title:getTitle(level_1),children:parts.map(_temp2)})}),(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex flex-col gap-1 items-center",children:[/client/.test(level_1.layer||"")&&(flags?.client?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"Included on client-side of this route",children:(0,__TURBOPACK__imported__module__24514__.jsx)(PanelTop,{className:"w-3 h-3 text-green-500"})}):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"On client layer, but not included on client-side of this route (might be optimized away)",children:(0,__TURBOPACK__imported__module__24514__.jsx)(PanelTop,{className:"w-3 h-3 text-gray-500"})})),/ssr/.test(level_1.layer||"")&&(flags?.server?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"Included on server-side of this route for server-side rendering",children:(0,__TURBOPACK__imported__module__24514__.jsx)(Globe,{className:"w-3 h-3 text-blue-500"})}):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"On server-side rendering layer, but not included on server-side of this route (might be optimized away)",children:(0,__TURBOPACK__imported__module__24514__.jsx)(Globe,{className:"w-3 h-3 text-gray-500"})})),/rsc/.test(level_1.layer||"")&&(flags?.server?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"Included on server-side of this route as Server Component",children:(0,__TURBOPACK__imported__module__24514__.jsx)(Server,{className:"w-3 h-3 text-orange-500"})}):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"On Server Component layer, but not included on server-side of this route (might be optimized away)",children:(0,__TURBOPACK__imported__module__24514__.jsx)(Server,{className:"w-3 h-3 text-gray-500"})})),/route|api/.test(level_1.layer||"")&&(flags?.server?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"Included on server-side of this route for API routes",children:(0,__TURBOPACK__imported__module__24514__.jsx)(SquareFunction,{className:"w-3 h-3 text-red-500"})}):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"On API route layer, but not included on server-side of this route (might be optimized away)",children:(0,__TURBOPACK__imported__module__24514__.jsx)(SquareFunction,{className:"w-3 h-3 text-gray-500"})}))]})]}),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"block text-center",children:level_1.treeShaking&&(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"text-xs text-foreground text-center",children:"locals"===level_1.treeShaking?"(local declarations only)":"module evaluation"===level_1.treeShaking?"(only the module evaluation part of the module)":`(${level_1.treeShaking})`})})]},`${level_1.path}-${index}`)})}$[1]=analyzeData,$[2]=currentRouteOnly,$[3]=depthMap,$[4]=environmentFilter,$[5]=modulesData,$[6]=selectedIndices,$[7]=startFileId,$[8]=chain,$[9]=t2,$[10]=t3,$[11]=t4,$[12]=t5,$[13]=t6}else chain=$[8],t2=$[9],t3=$[10],t4=$[11],t5=$[12],t6=$[13];return t6!==Symbol.for("react.early_return_sentinel")?t6:($[19]!==chain.length||$[20]!==currentRouteOnly?(t7=0===chain.length&&(0,__TURBOPACK__imported__module__24514__.jsxs)("p",{className:"text-muted-foreground italic text-xs",children:["No dependents found."," ",currentRouteOnly?(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__1748__.f,{variant:"link",className:"inline p-0 text-xs h-auto",onClick:()=>setCurrentRouteOnly(!1),children:"Show all routes."}):null]}),$[19]=chain.length,$[20]=currentRouteOnly,$[21]=t7):t7=$[21],$[22]!==t2||$[23]!==t3||$[24]!==t7?(t8=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:t2,children:[t3,t7]}),$[22]=t2,$[23]=t3,$[24]=t7,$[25]=t8):t8=$[25],$[26]!==t4||$[27]!==t5||$[28]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:t4,children:[t5,t8]}),$[26]=t4,$[27]=t5,$[28]=t8,$[29]=t9):t9=$[29],t9)}function _temp2(t0,i){let{segment,isCommon,isLastCommon,isInfrastructure,isPackageName}=t0;return(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:(0,__TURBOPACK__imported__module__7284__.U)(segment.length>20&&"break-all",isCommon&&!isLastCommon&&!isPackageName&&!isInfrastructure&&"text-muted-foreground/80",!isCommon&&!isInfrastructure&&"font-bold",isInfrastructure&&"text-muted-foreground/50",isPackageName&&"text-orange-500"),children:[segment,(0,__TURBOPACK__imported__module__24514__.jsx)("wbr",{})]},i)}function _temp(prev_1){return!prev_1}function LayerIcon(t0){let $=(0,__TURBOPACK__imported__module__36909__.c)(8),{layer}=t0;if(layer&&"external"!==layer)if(layer.includes("app")){let t2,t3,t1=`App Router (${layer})`;return $[1]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(Box,{className:"w-3 h-3 text-green-500"}),$[1]=t2):t2=$[1],$[2]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:t1,children:t2}),$[2]=t1,$[3]=t3):t3=$[3],t3}else if("externals-tracing"===layer){let t1;return $[4]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"External Asset",children:(0,__TURBOPACK__imported__module__24514__.jsx)(Package,{className:"w-3 h-3"})}),$[4]=t1):t1=$[4],t1}else{let t2,t3,t1=`Pages Router (${layer})`;return $[5]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(File,{className:"w-3 h-3 text-purple-500"}),$[5]=t2):t2=$[5],$[6]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:t1,children:t2}),$[6]=t1,$[7]=t3):t3=$[7],t3}{let t1;return $[0]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{title:"Unknown",children:(0,__TURBOPACK__imported__module__24514__.jsx)(MessageCircleQuestionMark,{className:"w-3 h-3 text-gray-500"})}),$[0]=t1):t1=$[0],t1}}var __TURBOPACK__imported__module__22442__=__turbopack_context__.i(22442);let badgeVariants=(0,__turbopack_context__.i(94237).f)("inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",client:"border-transparent bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 ring-1 ring-inset ring-blue-700/10 dark:ring-blue-300/20",server:"border-transparent bg-purple-50 dark:bg-purple-950 text-purple-700 dark:text-purple-300 ring-1 ring-inset ring-purple-700/10 dark:ring-purple-300/20",traced:"border-transparent bg-grey-50 dark:bg-grey-950 text-grey-700 dark:text-grey-300 ring-1 ring-inset ring-grey-700/10 dark:ring-grey-300/20",polyfill:"border-transparent bg-polyfill/10 dark:bg-polyfill/30 text-polyfill dark:text-polyfill-foreground ring-1 ring-inset ring-polyfill/20"}},defaultVariants:{variant:"default"}});function Badge(t0){let className,props,variant,t1,t2,$=(0,__TURBOPACK__imported__module__36909__.c)(10);return $[0]!==t0?({className,variant,...props}=t0,$[0]=t0,$[1]=className,$[2]=props,$[3]=variant):(className=$[1],props=$[2],variant=$[3]),$[4]!==className||$[5]!==variant?(t1=(0,__TURBOPACK__imported__module__1234__.c)(badgeVariants({variant}),className),$[4]=className,$[5]=variant,$[6]=t1):t1=$[6],$[7]!==props||$[8]!==t1?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:t1,...props}),$[7]=props,$[8]=t1,$[9]=t2):t2=$[9],t2}var __TURBOPACK__imported__module__48696__=__turbopack_context__.i(48696);function formatBytes(bytes){return 0===bytes?"0 B":bytes<1024?`${bytes} B`:bytes<1048576?`${(bytes/1024).toFixed(2)} KB`:bytes<0x40000000?`${(bytes/1048576).toFixed(2)} MB`:`${(bytes/0x40000000).toFixed(2)} GB`}function Sidebar(t0){let t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(12),{sidebarWidth,analyzeData,modulesData,selectedSourceIndex,moduleDepthMap,environmentFilter,filterSource}=t0;filterSource=filterSource??_temp1;let t1=`${sidebarWidth}%`;return $[0]!==t1?(t2={width:t1},$[0]=t1,$[1]=t2):t2=$[1],$[2]!==analyzeData||$[3]!==environmentFilter||$[4]!==filterSource||$[5]!==moduleDepthMap||$[6]!==modulesData||$[7]!==selectedSourceIndex?(t3=null!=selectedSourceIndex?(0,__TURBOPACK__imported__module__24514__.jsx)(SelectionDetails,{analyzeData:analyzeData,modulesData:modulesData,selectedSourceIndex:selectedSourceIndex,filterSource:filterSource,moduleDepthMap:moduleDepthMap,environmentFilter:environmentFilter}):null,$[2]=analyzeData,$[3]=environmentFilter,$[4]=filterSource,$[5]=moduleDepthMap,$[6]=modulesData,$[7]=selectedSourceIndex,$[8]=t3):t3=$[8],$[9]!==t2||$[10]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex-none bg-muted border-l border-border overflow-y-auto",style:t2,children:t3}),$[9]=t2,$[10]=t3,$[11]=t4):t4=$[11],t4}function _temp1(){return!0}function SelectionDetails(t0){let t1,t2,t3,t4,t5,$=(0,__TURBOPACK__imported__module__36909__.c)(33),{analyzeData,modulesData,selectedSourceIndex,filterSource,moduleDepthMap,environmentFilter}=t0;$[0]!==analyzeData||$[1]!==selectedSourceIndex?(t1=(0,__TURBOPACK__imported__module__1234__.v)(analyzeData,selectedSourceIndex),$[0]=analyzeData,$[1]=selectedSourceIndex,$[2]=t1):t1=$[2];let specialModuleType=t1;$[3]!==analyzeData||$[4]!==selectedSourceIndex?(t2=analyzeData.source(selectedSourceIndex),$[3]=analyzeData,$[4]=selectedSourceIndex,$[5]=t2):t2=$[5];let selectedSource=t2;$[6]!==analyzeData||$[7]!==selectedSourceIndex?(t3=analyzeData.sourceChildren(selectedSourceIndex),$[6]=analyzeData,$[7]=selectedSourceIndex,$[8]=t3):t3=$[8];let hasChildModules=t3.length>0;$[9]!==analyzeData||$[10]!==filterSource||$[11]!==hasChildModules||$[12]!==selectedSourceIndex?(t4=hasChildModules?analyzeData.getRecursiveModuleCount(selectedSourceIndex,filterSource):null,$[9]=analyzeData,$[10]=filterSource,$[11]=hasChildModules,$[12]=selectedSourceIndex,$[13]=t4):t4=$[13];let childModuleCount=t4;if($[14]!==analyzeData||$[15]!==childModuleCount||$[16]!==environmentFilter||$[17]!==filterSource||$[18]!==hasChildModules||$[19]!==moduleDepthMap||$[20]!==modulesData||$[21]!==selectedSource||$[22]!==selectedSourceIndex||$[23]!==specialModuleType){let t7,t9,t10,{size,compressedSize}=analyzeData.getRecursiveSizes(selectedSourceIndex,filterSource),chunks=analyzeData.sourceChunks(selectedSourceIndex),t6=selectedSource?.path||"All Route Modules";$[25]!==t6?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)("h2",{className:"text-s font-semibold mb-1 text-foreground truncate",children:t6}),$[25]=t6,$[26]=t7):t7=$[26];let t8=selectedSource?(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"text-xs",children:[(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{children:formatBytes(compressedSize)}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-muted-foreground ml-1",children:"compressed (estimated)"}),(0,__TURBOPACK__imported__module__24514__.jsx)(InlineHelpTooltip,{children:"Estimated compressed size. Modules are compressed in isolation which may differ from their size in the final chunk."})]}),(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{children:formatBytes(size)})," ",(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-muted-foreground",children:"uncompressed"}),(0,__TURBOPACK__imported__module__24514__.jsx)(InlineHelpTooltip,{children:"Uncompressed modules may still be minified, tree-shaken, and dead-code eliminated. They just don't account for general compression like gzip."})]}),hasChildModules&&null!=childModuleCount?(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{children:[(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{children:[childModuleCount," "]}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-muted-foreground",children:1===childModuleCount?"module":"modules"})]}):null]}):null;$[27]!==t7||$[28]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"space-y-2",children:[t7,t8]}),$[27]=t7,$[28]=t8,$[29]=t9):t9=$[29],$[30]!==selectedSource||$[31]!==specialModuleType?(t10=selectedSource&&(specialModuleType===__TURBOPACK__imported__module__22442__.f.POLYFILL_MODULE||specialModuleType===__TURBOPACK__imported__module__22442__.f.POLYFILL_NOMODULE)&&(0,__TURBOPACK__imported__module__24514__.jsxs)("dl",{className:"flex items-center gap-2",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("dt",{className:"inline-flex items-center",children:(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"polyfill",children:"Polyfill"})}),(0,__TURBOPACK__imported__module__24514__.jsx)("dd",{className:"text-xs text-muted-foreground",children:"Next.js built-in polyfills"})]}),$[30]=selectedSource,$[31]=specialModuleType,$[32]=t10):t10=$[32],t5=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex-1 p-3 space-y-8 overflow-y-auto",children:[t9,t10,selectedSource&&!hasChildModules&&(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(ImportChain,{startFileId:selectedSourceIndex,analyzeData:analyzeData,modulesData:modulesData,depthMap:moduleDepthMap,environmentFilter:environmentFilter}),chunks.length>0?(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"mt-2",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("p",{className:"text-xs font-semibold text-foreground",children:"Output Chunks"}),(0,__TURBOPACK__imported__module__24514__.jsx)("ul",{className:"text-xs text-muted-foreground font-mono mt-1 space-y-1",children:chunks.map(_temp21)})]}):null]})]}),$[14]=analyzeData,$[15]=childModuleCount,$[16]=environmentFilter,$[17]=filterSource,$[18]=hasChildModules,$[19]=moduleDepthMap,$[20]=modulesData,$[21]=selectedSource,$[22]=selectedSourceIndex,$[23]=specialModuleType,$[24]=t5}else t5=$[24];return t5}function _temp21(chunk){return(0,__TURBOPACK__imported__module__24514__.jsx)("li",{className:"break-all",children:chunk},chunk)}function CompareSidebar(t0){let t1,t3,t4,t5,$=(0,__TURBOPACK__imported__module__36909__.c)(19),{selectedKey,sourceDiff,analyzeData,baselineAnalyzeData,modulesData,baselineModulesData,moduleDepthMap,baselineModuleDepthMap,environmentFilter,sidebarWidth,aLabel,bLabel}=t0;$[0]!==selectedKey||$[1]!==sourceDiff?(t1=selectedKey&&sourceDiff?sourceDiff.rows.find(row=>row.key===selectedKey)??null:null,$[0]=selectedKey,$[1]=sourceDiff,$[2]=t1):t1=$[2];let selectedRow=t1,t2=`${sidebarWidth}%`;return $[3]!==t2?(t3={width:t2},$[3]=t2,$[4]=t3):t3=$[4],$[5]!==aLabel||$[6]!==analyzeData||$[7]!==bLabel||$[8]!==baselineAnalyzeData||$[9]!==baselineModuleDepthMap||$[10]!==baselineModulesData||$[11]!==environmentFilter||$[12]!==moduleDepthMap||$[13]!==modulesData||$[14]!==selectedRow?(t4=selectedRow?(0,__TURBOPACK__imported__module__24514__.jsx)(CompareSidebarContent,{row:selectedRow,analyzeData:analyzeData,baselineAnalyzeData:baselineAnalyzeData,modulesData:modulesData,baselineModulesData:baselineModulesData,moduleDepthMap:moduleDepthMap,baselineModuleDepthMap:baselineModuleDepthMap,environmentFilter:environmentFilter,aLabel:aLabel,bLabel:bLabel},selectedRow.key):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"p-3 text-xs text-muted-foreground",children:"Click a row or treemap tile to see import details."}),$[5]=aLabel,$[6]=analyzeData,$[7]=bLabel,$[8]=baselineAnalyzeData,$[9]=baselineModuleDepthMap,$[10]=baselineModulesData,$[11]=environmentFilter,$[12]=moduleDepthMap,$[13]=modulesData,$[14]=selectedRow,$[15]=t4):t4=$[15],$[16]!==t3||$[17]!==t4?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex-none bg-muted border-l border-border overflow-y-auto",style:t3,children:t4}),$[16]=t3,$[17]=t4,$[18]=t5):t5=$[18],t5}function CompareSidebarContent(t0){let t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,$=(0,__TURBOPACK__imported__module__36909__.c)(37),{row,analyzeData,baselineAnalyzeData,modulesData,baselineModulesData,moduleDepthMap,baselineModuleDepthMap,environmentFilter,aLabel,bLabel}=t0,hasBoth=null!=row.sourceIndexA&&null!=row.sourceIndexB,[activeTab,setActiveTab]=(0,__TURBOPACK__imported__module__95184__.useState)("removed"===row.status?"A":"B"),activeSourceIndex="A"===activeTab?row.sourceIndexA:row.sourceIndexB,activeAnalyzeData="A"===activeTab?baselineAnalyzeData:analyzeData,activeModulesData="A"===activeTab?baselineModulesData:modulesData,activeDepthMap="A"===activeTab?baselineModuleDepthMap:moduleDepthMap,compressedDelta=row.compressedB-row.compressedA;return $[0]!==row.name?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("h2",{className:"text-s font-semibold text-foreground break-all",children:row.name}),$[0]=row.name,$[1]=t1):t1=$[1],$[2]!==row.compressedA?(t2=formatBytes(row.compressedA),$[2]=row.compressedA,$[3]=t2):t2=$[3],$[4]!==t2?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-muted-foreground font-mono",children:t2}),$[4]=t2,$[5]=t3):t3=$[5],$[6]===Symbol.for("react.memo_cache_sentinel")?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-muted-foreground",children:"→"}),$[6]=t4):t4=$[6],$[7]!==row.compressedB?(t5=formatBytes(row.compressedB),$[7]=row.compressedB,$[8]=t5):t5=$[8],$[9]!==t5?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"font-mono",children:t5}),$[9]=t5,$[10]=t6):t6=$[10],$[11]===Symbol.for("react.memo_cache_sentinel")?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-muted-foreground",children:"compressed"}),$[11]=t7):t7=$[11],$[12]!==compressedDelta||$[13]!==row.status?(t8="identical"!==row.status&&(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:(0,__TURBOPACK__imported__module__1234__.c)("font-mono",compressedDelta>0&&"text-delta-increase",compressedDelta<0&&"text-delta-decrease",0===compressedDelta&&"text-muted-foreground"),children:(0,__TURBOPACK__imported__module__48696__.c)(compressedDelta)}),$[12]=compressedDelta,$[13]=row.status,$[14]=t8):t8=$[14],$[15]!==t3||$[16]!==t6||$[17]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"text-xs space-y-0.5",children:(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-baseline gap-1 flex-wrap",children:[t3,t4,t6,t7,t8]})}),$[15]=t3,$[16]=t6,$[17]=t8,$[18]=t9):t9=$[18],$[19]!==t1||$[20]!==t9?(t10=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"space-y-1",children:[t1,t9]}),$[19]=t1,$[20]=t9,$[21]=t10):t10=$[21],$[22]!==aLabel||$[23]!==activeTab||$[24]!==bLabel||$[25]!==hasBoth?(t11=hasBoth&&(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex gap-1",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button",onClick:()=>setActiveTab("A"),className:(0,__TURBOPACK__imported__module__1234__.c)("px-2 py-0.5 text-xs rounded transition-colors","A"===activeTab?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:aLabel}),(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button",onClick:()=>setActiveTab("B"),className:(0,__TURBOPACK__imported__module__1234__.c)("px-2 py-0.5 text-xs rounded transition-colors","B"===activeTab?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:bLabel})]}),$[22]=aLabel,$[23]=activeTab,$[24]=bLabel,$[25]=hasBoth,$[26]=t11):t11=$[26],$[27]!==activeAnalyzeData||$[28]!==activeDepthMap||$[29]!==activeModulesData||$[30]!==activeSourceIndex||$[31]!==environmentFilter?(t12=null!=activeSourceIndex&&activeAnalyzeData&&activeModulesData?(0,__TURBOPACK__imported__module__24514__.jsx)(ImportChain,{startFileId:activeSourceIndex,analyzeData:activeAnalyzeData,modulesData:activeModulesData,depthMap:activeDepthMap,environmentFilter:environmentFilter}):(0,__TURBOPACK__imported__module__24514__.jsx)("p",{className:"text-xs text-muted-foreground italic",children:"Import chain not available."}),$[27]=activeAnalyzeData,$[28]=activeDepthMap,$[29]=activeModulesData,$[30]=activeSourceIndex,$[31]=environmentFilter,$[32]=t12):t12=$[32],$[33]!==t10||$[34]!==t11||$[35]!==t12?(t13=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex-1 p-3 space-y-4 overflow-y-auto",children:[t10,t11,t12]}),$[33]=t10,$[34]=t11,$[35]=t12,$[36]=t13):t13=$[36],t13}function InlineHelpTooltip(t0){let t1,t2,$=(0,__TURBOPACK__imported__module__36909__.c)(3),{children}=t0;return $[0]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipTrigger,{asChild:!0,children:(0,__TURBOPACK__imported__module__24514__.jsx)(CircleQuestionMark,{size:14,className:"inline-block ml-1 text-muted-foreground","aria-hidden":"true"})}),$[0]=t1):t1=$[0],$[1]!==children?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipProvider,{children:(0,__TURBOPACK__imported__module__24514__.jsxs)(Tooltip,{children:[t1,(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipContent1,{className:"max-w-xs",side:"top",align:"center",children:children})]})}),$[1]=children,$[2]=t2):t2=$[2],t2}function Io(t){t()}function re(t,e){return n=>t(e(n))}function So(t,e){return n=>t(e,n)}function Ne(t){return void 0!==t}function xo(...t){return()=>{t.map(Io)}}function Jt(){}function vo(t,e){return e(t)}function it(...t){return t}function De(t){t(2)}function ot(t){return t(4)}function L(t,e){return t(1,So(e,0))}function bt(t,e){let n=t(1,o=>{n(),e(o)});return n}function hn(t){let e,n;return o=>r=>{e=r,n&&clearTimeout(n),n=setTimeout(()=>{o(e)},t)}}function Wn(t,e){return t===e}function rt(t=Wn){let e;return n=>o=>{t(e,o)||(e=o,n(o))}}function W(t){return e=>n=>{t(n)&&e(n)}}function B(t){return e=>re(e,t)}function Bt(t){return e=>()=>{e(t)}}function S(t,...e){let n=To(...e);return(o,r)=>{switch(o){case 2:De(t);return;case 1:return t(1,n(r))}}}function kt(t,e){return n=>o=>{n(e=t(e,o))}}function Ut(t){return e=>n=>{t>0?t--:e(n)}}function zt(t){let e=null,n;return o=>r=>{e=r,n||(n=setTimeout(()=>{n=void 0,o(e)},t))}}function D(...t){let e=Array.from({length:t.length}),n=0,o=null,r=2**t.length-1;return t.forEach((s,i)=>{let l=2**i;s(1,c=>{let d=n;n|=l,e[i]=c,d!==r&&n===r&&o&&(o(),o=null)})}),s=>i=>{let l=()=>{s([i].concat(e))};n===r?l():o=l}}function To(...t){return e=>t.reduceRight(vo,e)}function Co(t){let e,n,o=()=>e?.();return function(r,s){switch(r){case 1:return s?n===s?void 0:(o(),n=s,e=t(1,s)):(o(),Jt);case 2:o(),n=null;return}}}function w(t){let e=t,n=K();return(o,r)=>{switch(o){case 0:e=r;break;case 1:r(e);break;case 4:return e}return n(o,r)}}function ht(t,e){var t1;return t1=w(e),L(t,t1),t1}function K(){let t=[];return(e,n)=>{switch(e){case 0:t.slice().forEach(o=>{o(n)});return;case 2:t.splice(0);return;case 1:return t.push(n),()=>{let o=t.indexOf(n);o>-1&&t.splice(o,1)}}}}function Ct(t){var t1;return t1=K(),L(t,t1),t1}let wo={singleton:!0};function Z(t,e=[],n=wo){let{singleton:o}=n;return{constructor:t,dependencies:e,id:yo(),singleton:o}}let yo=()=>Symbol("id");function bo(t){let e=new Map,n=({constructor:o,dependencies:r,id:s,singleton:i})=>{if(i&&e.has(s))return e.get(s);let l=o(r.map(c=>n(c)));return i&&e.set(s,l),l};return n(t)}function dt(...t){let e=K(),n=Array.from({length:t.length}),o=0,r=2**t.length-1;return t.forEach((s,i)=>{let l=2**i;s(1,c=>{n[i]=c,(o|=l)===r&&e(0,n)})}),function(s,i){switch(s){case 2:return void De(e);case 1:return o===r&&i(n),e(1,i)}}}function P(t,e=Wn){return S(t,rt(e))}function Ve(...t){return function(e,n){switch(e){case 2:return;case 1:return xo(...t.map(o=>o(1,n)))}}}let mt_INFO=1,Ro={0:"debug",3:"error",[mt_INFO]:"log",2:"warn"},Gt=Z(()=>{let t=w(3);return{log:w((n,o,r=mt_INFO)=>{r>=((typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL??ot(t))&&console[Ro[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,o)}),logLevel:t}},[],{singleton:!0});function Eo(t){return"self"in t?t.document.documentElement:t}function Gn(t){let e=Eo(t);return"rtl"===e.ownerDocument.defaultView.getComputedStyle(e).direction}function _t(t,e){return Gn(t)?-e:e}function Ot(t,e,n){return $e(t,e,n).callbackRef}function $e(t,e,n){let o=__TURBOPACK__imported__module__95184__.default.useRef(null),s=__TURBOPACK__imported__module__95184__.default.useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(i=>{let l=()=>{let c=i[0].target;null!==c.offsetParent&&t(c)};n?l():requestAnimationFrame(l)}):null,[t,n]);return{callbackRef:i=>{i&&e?(s?.observe(i),o.current=i):(o.current&&s?.unobserve(o.current),o.current=null)},ref:o}}function An(t,e,n,o,r,s,i,l,c){return $e(__TURBOPACK__imported__module__95184__.default.useCallback(f=>{let y,v=Bo(f.children,e,l?"offsetWidth":"offsetHeight",r),m=f.parentElement;for(;void 0===m.dataset.virtuosoScroller;)m=m.parentElement;let g=m.lastElementChild?.dataset.viewportType==="window";g&&(y=m.ownerDocument.defaultView);let R=i?l?i.scrollWidth:i.scrollHeight:g?l?y.document.documentElement.scrollWidth:y.document.documentElement.scrollHeight:l?m.scrollWidth:m.scrollHeight,I=i?l?i.offsetWidth:i.offsetHeight:g?l?y.innerWidth:y.innerHeight:l?m.offsetWidth:m.offsetHeight;o({scrollHeight:R,scrollTop:Math.max(i?l?_t(i,i.scrollLeft):i.scrollTop:g?l?_t(y,y.scrollX||y.document.documentElement.scrollLeft):y.scrollY||y.document.documentElement.scrollTop:l?_t(m,m.scrollLeft):m.scrollTop,0),viewportHeight:I}),s?.(l?In("column-gap",getComputedStyle(f).columnGap,r):In("row-gap",getComputedStyle(f).rowGap,r)),null!==v&&t(v)},[t,e,r,s,i,o,l]),n,c)}function Bo(t,e,n,o){let r=t.length;if(0===r)return null;let s=[];for(let i=0;i<r;i++){let l=t.item(i);if(void 0===l.dataset.index)continue;let c=parseInt(l.dataset.index,10),d=parseFloat(l.dataset.knownSize),f=e(l,n);if(0===f&&o("Zero-sized element, this should not happen",{child:l},3),f===d)continue;let v=s[s.length-1];0===s.length||v.size!==f||v.endIndex!==c-1?s.push({endIndex:c,size:f,startIndex:c}):s[s.length-1].endIndex++}return s}function In(t,e,n){return"normal"!==e&&e?.endsWith("px")!==!0&&n(`${t} was not resolved to pixel value correctly`,e,2),"normal"===e?0:parseInt(e??"0",10)}let be=typeof document>"u"?__TURBOPACK__imported__module__95184__.default.useEffect:__TURBOPACK__imported__module__95184__.default.useLayoutEffect;function Ue(t,e,n){let o=__TURBOPACK__imported__module__95184__.default.useRef(null),r=__TURBOPACK__imported__module__95184__.default.useCallback(c=>{let v,m;if(!c?.offsetParent)return;let d=c.getBoundingClientRect(),f=d.width;if(e){let g=e.getBoundingClientRect(),y=d.top-g.top;m=g.height-Math.max(0,y),v=y+e.scrollTop}else{let g=i.current.ownerDocument.defaultView;m=g.innerHeight-Math.max(0,d.top),v=d.top+g.scrollY}o.current={listHeight:d.height,offsetTop:v,visibleHeight:m,visibleWidth:f},t(o.current)},[t,e]),{callbackRef:s,ref:i}=$e(r,!0,n),l=__TURBOPACK__imported__module__95184__.default.useCallback(()=>{r(i.current)},[r,i]);return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{if(e){e.addEventListener("scroll",l);let d=new ResizeObserver(()=>{requestAnimationFrame(l)});return d.observe(e),()=>{e.removeEventListener("scroll",l),d.unobserve(e)}}let c=i.current?.ownerDocument.defaultView;return c?.addEventListener("scroll",l),c?.addEventListener("resize",l),()=>{c?.removeEventListener("scroll",l),c?.removeEventListener("resize",l)}},[l,e,i]),s}let It=Z(()=>{let t=K(),e=K(),n=w(0),o=K(),r=K(),s=w(0),i=K(),l=K(),c=w(0),d=w(0),f=w(0),v=w(0),m=K(),g=K(),y=w(!1),R=w(!1),I=w(!1);return L(S(t,B(({scrollTop:h})=>h)),e),L(S(t,B(({scrollHeight:h})=>h)),l),L(e,s),{deviation:n,deviationCommitted:o,fixedFooterHeight:f,fixedHeaderHeight:d,footerHeight:v,headerHeight:c,horizontalDirection:R,scrollBy:g,scrollContainerState:t,scrollHeight:l,scrollingInProgress:y,scrollTo:m,scrollTop:e,skipAnimationFrameInResizeObserver:I,smoothScrollTargetReached:r,statefulScrollTop:s,viewportHeight:i}},[],{singleton:!0}),se={lvl:0};function Mn(t,e){let n=t.length;if(0===n)return[];let{index:o,value:r}=e(t[0]),s=[];for(let i=1;i<n;i++){let{index:l,value:c}=e(t[i]);s.push({end:l-1,start:o,value:r}),o=l,r=c}return s.push({end:1/0,start:o,value:r}),s}function tt(t){return t===se}function ie(t,e){if(!tt(t))return e===t.k?t.v:e<t.k?ie(t.l,e):ie(t.r,e)}function Rt(t,e,n="k"){if(tt(t))return[-1/0,void 0];if(Number(t[n])===e)return[t.k,t.v];if(Number(t[n])<e){let o=Rt(t.r,e,n);return -1/0===o[0]?[t.k,t.v]:o}return Rt(t.l,e,n)}function vt(t,e,n){return tt(t)?Dn(e,n,1):e===t.k?ft(t,{k:e,v:n}):e<t.k?Ge($n(ft(t,{l:vt(t.l,e,n)}))):Ge($n(ft(t,{r:vt(t.r,e,n)})))}function Zt(t,e,n){if(tt(t))return[];let o=Rt(t,e)[0];return ko(We(t,o,n))}function Pe(t,e){if(tt(t))return se;let{k:n,l:o,r}=t;if(e===n){if(tt(o))return r;if(tt(r))return o;let[s,i]=Nn(o);return xe(ft(t,{k:s,l:_n(o),v:i}))}return e<n?xe(ft(t,{l:Pe(o,e)})):xe(ft(t,{r:Pe(r,e)}))}function Nt(t){return tt(t)?[]:[...Nt(t.l),{k:t.k,v:t.v},...Nt(t.r)]}function We(t,e,n){if(tt(t))return[];let{k:o,l:r,r:s,v:i}=t,l=[];return o>e&&(l=l.concat(We(r,e,n))),o>=e&&o<=n&&l.push({k:o,v:i}),o<=n&&(l=l.concat(We(s,e,n))),l}function xe(t){let{l:e,lvl:n,r:o}=t;if(o.lvl>=n-1&&e.lvl>=n-1)return t;if(n>o.lvl+1){if(ke(e))return $n(ft(t,{lvl:n-1}));if(!tt(e)&&!tt(e.r))return ft(e.r,{l:ft(e,{r:e.r.l}),lvl:n,r:ft(t,{l:e.r.r,lvl:n-1})});throw Error("Unexpected empty nodes")}if(ke(t))return Ge(ft(t,{lvl:n-1}));if(!tt(o)&&!tt(o.l)){let r=o.l,s=ke(r)?o.lvl-1:o.lvl;return ft(r,{l:ft(t,{lvl:n-1,r:r.l}),lvl:r.lvl+1,r:Ge(ft(o,{l:r.r,lvl:s}))})}throw Error("Unexpected empty nodes")}function ft(t,e){return Dn(void 0===e.k?t.k:e.k,void 0===e.v?t.v:e.v,void 0===e.lvl?t.lvl:e.lvl,void 0===e.l?t.l:e.l,void 0===e.r?t.r:e.r)}function _n(t){return tt(t.r)?t.l:xe(ft(t,{r:_n(t.r)}))}function ke(t){return tt(t)||t.lvl>t.r.lvl}function Nn(t){return tt(t.r)?[t.k,t.v]:Nn(t.r)}function Dn(t,e,n,o=se,r=se){return{k:t,l:o,lvl:n,r,v:e}}function $n(t){let{l:e}=t;return tt(e)||e.lvl!==t.lvl?t:ft(e,{r:ft(t,{l:e.r})})}function Ge(t){let{lvl:e,r:n}=t;return tt(n)||tt(n.r)||n.lvl!==e||n.r.lvl!==e?t:ft(n,{l:ft(t,{r:n.l}),lvl:e+1})}function ko(t){return Mn(t,({k:e,v:n})=>({index:e,value:n}))}function Un(t,e){return!!(t&&t.startIndex===e.startIndex&&t.endIndex===e.endIndex)}function le(t,e){return!!(t&&t[0]===e[0]&&t[1]===e[1])}let Ke=Z(()=>({recalcInProgress:w(!1)}),[],{singleton:!0});function Te(t,e,n,o=0){let r=t.length-1;for(;o<=r;){let s=Math.floor((o+r)/2),l=n(t[s],e);if(0===l)return s;if(-1===l){if(r-o<2)return s-1;r=s-1}else{if(r===o)return s;o=s+1}}throw Error(`Failed binary finding record in array - ${t.join(",")}, searched for ${e}`)}function Oo(t,e,n,o){let r=Te(t,e,o),s=Te(t,n,o,r);return t.slice(r,s+1)}function Ht(t,e){return Math.round(t.getBoundingClientRect()[e])}function Re(t){return!tt(t.groupOffsetTree)}function je({index:t},e){return e===t?0:e<t?-1:1}function Lo(){return{groupIndices:[],groupOffsetTree:se,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:se}}function zo(t,e){let n=tt(t)?0:1/0;for(let o of e){let{endIndex:r,size:s,startIndex:i}=o;if(n=Math.min(n,i),tt(t)){t=vt(t,0,s);continue}let l=Zt(t,i-1,r+1);if(l.some(Mo(o)))continue;let c=!1,d=!1;for(let{end:f,start:v,value:m}of l)c?(r>=v||s===m)&&(t=Pe(t,v)):(d=m!==s,c=!0),f>r&&r>=v&&m!==s&&(t=vt(t,r+1,m));d&&(t=vt(t,i,s))}return[t,n]}function Fo(t){return void 0!==t.groupIndex}function Vo({offset:t},e){return e===t?0:e<t?-1:1}function ce(t,e,n){if(0===e.length)return 0;let{index:o,offset:r,size:s}=e[Te(e,t,je)],i=t-o,l=s*i+(i-1)*n+r;return l>0?l+n:l}function jn(t,e){if(!Re(e))return t;let n=0;for(;e.groupIndices[n]<=t+n;)n++;return t+n}function qn(t,e,n){if(Fo(t))return e.groupIndices[t.groupIndex]+1;let r=jn("LAST"===t.index?n:t.index,e);return Math.max(0,Math.min(n,r))}function Po(t,e,n,o=0){return o>0&&(e=Math.max(e,t[Te(t,o,je)].offset)),Mn(Oo(t,e,n,Vo),Ao)}function Wo(t,[e,n,o,r]){e.length>0&&o("received item sizes",e,0);let s=t.sizeTree,i=s,l=0;if(n.length>0&&tt(s)&&2===e.length){let m=e[0].size,g=e[1].size;i=n.reduce((y,R)=>vt(vt(y,R,m),R+1,g),i)}else[i,l]=zo(i,e);if(i===s)return t;let{lastIndex:c,lastOffset:d,lastSize:f,offsetTree:v}=Ae(t.offsetTree,l,i,r);return{groupIndices:n,groupOffsetTree:n.reduce((m,g)=>vt(m,g,ce(g,v,r)),se),lastIndex:c,lastOffset:d,lastSize:f,offsetTree:v,sizeTree:i}}function Go(t){return Nt(t).map(({k:e,v:n},o,r)=>{let s=r[o+1];return{endIndex:void 0===s?1/0:s.k-1,size:n,startIndex:e}})}function xn(t,e){let n=0,o=0;for(;n<t;)n+=e[o+1]-e[o]-1,o++;return o-(n!==t)}function Ae(t,e,n,o){let r=t,s=0,i=0,l=0,c=0;if(0===e)r=[];else{c=Te(r,e-1,je),l=r[c].offset;let f=Rt(n,e-1);s=f[0],i=f[1],r.length&&r[c].size===Rt(n,e)[1]&&(c-=1),r=r.slice(0,c+1)}for(let{start:d,value:f}of Zt(n,e,1/0)){let v=d-s,m=v*i+l+v*o;r.push({index:d,offset:m,size:f}),s=d,l=m,i=f}return{lastIndex:s,lastOffset:l,lastSize:i,offsetTree:r}}function Ao(t){return{index:t.index,value:t}}function Mo(t){let{endIndex:e,size:n,startIndex:o}=t;return r=>r.start===o&&(r.end===e||1/0===r.end)&&r.value===n}let _o={offsetHeight:"height",offsetWidth:"width"},Lt=Z(([{log:t},{recalcInProgress:e}])=>{let n=K(),o=K(),r=ht(o,0),s=K(),i=K(),l=w(0),c=w([]),d=w(void 0),f=w(void 0),v=w(void 0),m=w(void 0),g=w((u,p)=>Ht(u,_o[p])),y=w(void 0),R=w(0),I=Lo(),h=ht(S(n,D(c,t,R),kt(Wo,I),rt()),I),a=ht(S(c,rt(),kt((u,p)=>({current:p,prev:u.current}),{current:[],prev:[]}),B(({prev:u})=>u)),[]);L(S(c,W(u=>u.length>0),D(h,R),B(([u,p,b])=>{let z=u.reduce((F,O,V)=>vt(F,O,ce(O,p.offsetTree,b)||V),se);return{...p,groupIndices:u,groupOffsetTree:z}})),h),L(S(o,D(h),W(([u,{lastIndex:p}])=>u<p),B(([u,{lastIndex:p,lastSize:b}])=>[{endIndex:p,size:b,startIndex:u}])),n),L(d,f);let T=ht(S(d,B(u=>void 0===u)),!0);L(S(f,W(u=>void 0!==u&&tt(ot(h).sizeTree)),B(u=>{let p=ot(v),b=ot(c).length>0;return void 0!==p&&0!==p?b?[{endIndex:0,size:p,startIndex:0},{endIndex:1,size:u,startIndex:1}]:[]:[{endIndex:0,size:u,startIndex:0}]})),n),L(S(m,W(u=>void 0!==u&&u.length>0&&tt(ot(h).sizeTree)),B(u=>{let p=[],b=u[0],z=0;for(let F=1;F<u.length;F++){let O=u[F];O!==b&&(p.push({endIndex:F-1,size:b,startIndex:z}),b=O,z=F)}return p.push({endIndex:u.length-1,size:b,startIndex:z}),p})),n),L(S(c,D(v,f),W(([,u,p])=>void 0!==u&&void 0!==p),B(([u,p,b])=>{let z=[];for(let F=0;F<u.length;F++){let O=u[F],V=u[F+1];z.push({startIndex:O,endIndex:O,size:p}),void 0!==V&&z.push({startIndex:O+1,endIndex:V-1,size:b})}return z})),n);let x=Ct(S(n,D(h),kt(({sizes:u},[p,b])=>({changed:b!==u,sizes:b}),{changed:!1,sizes:I}),B(u=>u.changed)));S(l,kt((u,p)=>({diff:u.prev-p,prev:p}),{diff:0,prev:0}),B(u=>u.diff))(1,u=>{let{groupIndices:p}=ot(h);if(u>0)e(0,!0),s(0,u+xn(u,p));else if(u<0){let b=ot(a);b.length>0&&(u-=xn(-u,b)),i(0,u)}}),S(l,D(t))(1,([u,p])=>{u<0&&p("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},3)});let C=Ct(s);L(S(s,D(h),B(([u,p])=>{let b=p.groupIndices.length>0,z=[],F=p.lastSize;if(b){let O=ie(p.sizeTree,0),V=0,U=0;for(;V<u;){let j=p.groupIndices[U],X=p.groupIndices.length===U+1?1/0:p.groupIndices[U+1]-j-1;z.push({endIndex:j,size:O,startIndex:j}),z.push({endIndex:j+1+X-1,size:F,startIndex:j+1}),U++,V+=X+1}let q=Nt(p.sizeTree);return V!==u&&q.shift(),q.reduce((j,{k:X,v:gt})=>{let ct=j.ranges;return 0!==j.prevSize&&(ct=[...j.ranges,{endIndex:X+u-1,size:j.prevSize,startIndex:j.prevIndex}]),{prevIndex:X+u,prevSize:gt,ranges:ct}},{prevIndex:u,prevSize:0,ranges:z}).ranges}return Nt(p.sizeTree).reduce((O,{k:V,v:U})=>({prevIndex:V+u,prevSize:U,ranges:[...O.ranges,{endIndex:V+u-1,size:O.prevSize,startIndex:O.prevIndex}]}),{prevIndex:0,prevSize:F,ranges:[]}).ranges})),n);let k=Ct(S(i,D(h,R),B(([u,{offsetTree:p},b])=>ce(-u,p,b))));return L(S(i,D(h,R),B(([u,p,b])=>{if(p.groupIndices.length>0){if(tt(p.sizeTree))return p;let O=se,V=ot(a),U=0,q=0,$=0;for(;U<-u;){$=V[q];let X=V[q+1]-$-1;q++,U+=X+1}return O=Nt(p.sizeTree).reduce((X,{k:gt,v:ct})=>vt(X,Math.max(0,gt+u),ct),O),U!==-u&&(O=vt(O,0,ie(p.sizeTree,$)),O=vt(O,1,Rt(p.sizeTree,-u+1)[1])),{...p,sizeTree:O,...Ae(p.offsetTree,0,O,b)}}let F=Nt(p.sizeTree).reduce((O,{k:V,v:U})=>vt(O,Math.max(0,V+u),U),se);return{...p,sizeTree:F,...Ae(p.offsetTree,0,F,b)}})),h),{beforeUnshiftWith:C,data:y,defaultItemSize:f,firstItemIndex:l,fixedItemSize:d,fixedGroupSize:v,gap:R,groupIndices:c,heightEstimates:m,itemSize:g,listRefresh:x,shiftWith:i,shiftWithOffset:k,sizeRanges:n,sizes:h,statefulTotalCount:r,totalCount:o,trackItemSizes:T,unshiftWith:s}},it(Gt,Ke),{singleton:!0});function No(t){return t.reduce((e,n)=>(e.groupIndices.push(e.totalCount),e.totalCount+=n+1,e),{groupIndices:[],totalCount:0})}let Yn=Z(([{groupIndices:t,sizes:e,totalCount:n},{headerHeight:o,scrollTop:r}])=>{let s=K(),i=K(),l=Ct(S(s,B(No)));return L(S(l,B(c=>c.totalCount)),n),L(S(l,B(c=>c.groupIndices)),t),L(S(dt(r,e,o),W(([c,d])=>Re(d)),B(([c,d,f])=>Rt(d.groupOffsetTree,Math.max(c-f,0),"v")[0]),rt(),B(c=>[c])),i),{groupCounts:s,topItemsIndexes:i}},it(Lt,It)),At=Z(([{log:t}])=>{let e=w(!1),n=Ct(S(e,W(o=>o),rt()));return e(1,o=>{o&&ot(t)("props updated",{},0)}),{didMount:n,propsReady:e}},it(Gt),{singleton:!0}),Do="u">typeof document&&"scrollBehavior"in document.documentElement.style;function Zn(t){let e="number"==typeof t?{index:t}:{...t};return e.align||(e.align="start"),e.behavior&&Do||(e.behavior="auto"),void 0===e.offset&&(e.offset=0),e}let fe=Z(([{gap:t,listRefresh:e,sizes:n,totalCount:o},{fixedFooterHeight:r,fixedHeaderHeight:s,footerHeight:i,headerHeight:l,scrollingInProgress:c,scrollTo:d,smoothScrollTargetReached:f,viewportHeight:v},{log:m}])=>{let g=K(),y=K(),R=w(0),I=null,h=null,a=null;function T(){null!==I&&(I(),I=null),null!==a&&(a(),a=null),h&&(clearTimeout(h),h=null),c(0,!1)}return L(S(g,D(n,v,o,R,l,i,m),D(t,s,r),B(([[x,C,k,u,p,b,z,F],O,V,U])=>{let q=Zn(x),{align:$,behavior:j,offset:X}=q,gt=u-1,ct=qn(q,C,gt),St=ce(ct,C.offsetTree,O)+b;"end"===$?(St+=V+Rt(C.sizeTree,ct)[1]-k+U,ct===gt&&(St+=z)):"center"===$?St+=(V+Rt(C.sizeTree,ct)[1]-k+U)/2:St-=p,void 0!==X&&0!==X&&(St+=X);let Ft=pt=>{T(),pt?(F("retrying to scroll to",{location:x},0),g(0,x)):(y(0,!0),F("list did not change, scroll successful",{},0))};if(T(),"smooth"===j){let pt=!1;a=e(1,jt=>{pt=pt||jt}),I=bt(f,()=>{Ft(pt)})}else I=bt(S(e,$o(150)),Ft);return h=setTimeout(()=>{T()},1200),c(0,!0),F("scrolling from index to",{behavior:j,index:ct,top:St},0),{behavior:j,top:St}})),d),{scrollTargetReached:y,scrollToIndex:g,topListHeight:R}},it(Lt,It,Gt),{singleton:!0});function $o(t){return e=>{let n=setTimeout(()=>{e(!1)},t);return o=>{o&&(e(!0),clearTimeout(n))}}}function qe(t,e){0===t?e():requestAnimationFrame(()=>{qe(t-1,e)})}function Ye(t,e){if(void 0===t)return 0;let n=e-1;return Math.max(0,Math.min("number"==typeof t?t:"LAST"===t.index?n:t.index,n))}function Me(t){return void 0===t||("number"==typeof t?0===t:0===t.index&&(void 0===t.align||"start"===t.align)&&(void 0===t.offset||0===t.offset))}let me=Z(([{defaultItemSize:t,listRefresh:e,sizes:n},{scrollTop:o},{scrollTargetReached:r,scrollToIndex:s},{didMount:i}])=>{let l=w(!0),c=w(0),d=w(!0);return L(S(i,D(c),W(([f,v])=>!Me(v)),Bt(!1)),l),L(S(i,D(c),W(([f,v])=>!Me(v)),Bt(!1)),d),S(dt(e,i),D(l,n,t,d),W(([[,f],v,{sizeTree:m},g,y])=>f&&(!tt(m)||Ne(g))&&!v&&!y),D(c))(1,([,f])=>{if(void 0===f){l(0,!0),d(0,!0);return}bt(r,()=>{d(0,!0)}),qe(4,()=>{bt(o,()=>{l(0,!0)}),s(0,f)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:c,scrolledToInitialItem:l}},it(Lt,It,fe,At),{singleton:!0});function Xn(t,e){return 1.01>Math.abs(t-e)}let ne="down",Ko={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},pe=Z(([{footerHeight:t,headerHeight:e,scrollBy:n,scrollContainerState:o,scrollTop:r,viewportHeight:s}])=>{let i=w(!1),l=w(!0),c=K(),d=K(),f=w(4),v=w(0),m=ht(S(Ve(S(P(r),Ut(1),Bt(!0)),S(P(r),Ut(1),Bt(!1),hn(100))),rt()),!1),g=ht(S(Ve(S(n,Bt(!0)),S(n,Bt(!1),hn(200))),rt()),!1);L(S(dt(P(r),P(v)),B(([a,T])=>a<=T),rt()),l),L(S(l,zt(50)),d);let y=Ct(S(dt(o,P(s),P(e),P(t),P(f)),kt((a,[{scrollHeight:T,scrollTop:x},C,k,u,p])=>{let z={scrollHeight:T,scrollTop:x,viewportHeight:C};if(x+C-T>-p){let O,V;return x>a.state.scrollTop?(O="SCROLLED_DOWN",V=a.state.scrollTop-x):(O="SIZE_DECREASED",V=a.state.scrollTop-x||a.scrollTopDelta),{atBottom:!0,atBottomBecause:O,scrollTopDelta:V,state:z}}return{atBottom:!1,notAtBottomBecause:z.scrollHeight>a.state.scrollHeight?"SIZE_INCREASED":C<a.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":x<a.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:z}},Ko),rt((a,T)=>void 0!==a&&a.atBottom===T.atBottom))),R=ht(S(o,kt((a,{scrollHeight:T,scrollTop:x,viewportHeight:C})=>{if(!Xn(a.scrollHeight,T)){let k=T-(x+C)<1;return a.scrollTop!==x&&k?{changed:!0,jump:a.scrollTop-x,scrollHeight:T,scrollTop:x}:{changed:!0,jump:0,scrollHeight:T,scrollTop:x}}return{changed:!1,jump:0,scrollHeight:T,scrollTop:x}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),W(a=>a.changed),B(a=>a.jump)),0);L(S(y,B(a=>a.atBottom)),i),L(S(i,zt(50)),c);let I=w(ne);L(S(o,B(({scrollTop:a})=>a),rt(),kt((a,T)=>ot(g)?{direction:a.direction,prevScrollTop:T}:{direction:T<a.prevScrollTop?"up":ne,prevScrollTop:T},{direction:ne,prevScrollTop:0}),B(a=>a.direction)),I),L(S(o,zt(50),Bt("none")),I);let h=w(0);return L(S(m,W(a=>!a),Bt(0)),h),L(S(r,zt(100),D(m),W(([a,T])=>T),kt(([a,T],[x])=>[T,x],[0,0]),B(([a,T])=>T-a)),h),{atBottomState:y,atBottomStateChange:c,atBottomThreshold:f,atTopStateChange:d,atTopThreshold:v,isAtBottom:i,isAtTop:l,isScrolling:m,lastJumpDueToItemResize:R,scrollDirection:I,scrollVelocity:h}},it(It)),de="bottom",vn="none";function Tn(t,e,n){return"number"==typeof t?"up"===n&&"top"===e||n===ne&&e===de?t:0:"up"===n?"top"===e?t.main:t.reverse:e===de?t.main:t.reverse}function Cn(t,e){return"number"==typeof t?t:t[e]??0}let Ze=Z(([{deviation:t,fixedHeaderHeight:e,headerHeight:n,scrollTop:o,viewportHeight:r}])=>{let s=K(),i=w(0),l=w(0),c=w(0),d=ht(S(dt(P(o),P(r),P(n),P(s,le),P(c),P(i),P(e),P(t),P(l)),B(([f,v,m,[g,y],R,I,h,a,T])=>{let x=f-a,k=Math.max(m-x,0),u=vn,p=Cn(T,"top"),b=Cn(T,de);return g-=a,g+=m+h,y+=m+h,g>f+(I+h)-p&&(u="up"),(y-=a)<f-k+v+b&&(u=ne),u!==vn?[Math.max(x-m-Tn(R,"top",u)-p,0),x-k-h+v+Tn(R,de,u)+b]:null}),W(f=>null!==f),rt(le)),[0,0]);return{increaseViewportBy:l,listBoundary:s,overscan:c,topListHeight:i,visibleRange:d}},it(It),{singleton:!0});function qo(t,e,n){if(Re(e)){let o=jn(t,e);return[{index:Rt(e.groupOffsetTree,o)[0],offset:0,size:0},{data:n?.[0],index:o,offset:0,size:0}]}return[{data:n?.[0],index:t,offset:0,size:0}]}let Oe={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function ve(t,e,n,o,r,s){let{lastIndex:i,lastOffset:l,lastSize:c}=r,d=0,f=0;if(t.length>0){d=t[0].offset;let R=t[t.length-1];f=R.offset+R.size}let v=n-i,g=d,y=l+v*c+(v-1)*o-f;return{bottom:f,firstItemIndex:s,items:wn(t,r,s),offsetBottom:y,offsetTop:d,top:g,topItems:wn(e,r,s),topListHeight:e.reduce((R,I)=>I.size+R,0),totalCount:n}}function Jn(t,e,n,o,r,s){let i=0;if(n.groupIndices.length>0)for(let f of n.groupIndices){if(f-i>=t)break;i++}let l=t+i,c=Ye(e,l);return ve(Array.from({length:l}).map((f,v)=>({data:s[v+c],index:v+c,offset:0,size:0})),[],l,r,n,o)}function wn(t,e,n){if(0===t.length)return[];if(!Re(e))return t.map(d=>({...d,index:d.index+n,originalIndex:d.index}));let o=t[0].index,r=t[t.length-1].index,s=[],i=Zt(e.groupOffsetTree,o,r),l,c=0;for(let d of t){let f;(!l||l.end<d.index)&&(l=i.shift(),c=e.groupIndices.indexOf(l.start)),f=d.index===l.start?{index:c,type:"group"}:{groupIndex:c,index:d.index-(c+1)+n},s.push({...f,data:d.data,offset:d.offset,originalIndex:d.index,size:d.size})}return s}function yn(t,e){return void 0===t?0:"number"==typeof t?t:t[e]??0}let Kt=Z(([{data:t,firstItemIndex:e,gap:n,sizes:o,totalCount:r},s,{listBoundary:i,topListHeight:l,visibleRange:c},{initialTopMostItemIndex:d,scrolledToInitialItem:f},{topListHeight:v},m,{didMount:g},{recalcInProgress:y}])=>{let R=w([]),I=w(0),h=K(),a=w(0);L(s.topItemsIndexes,R);let T=ht(S(dt(g,y,P(c,le),P(r),P(o),P(d),f,P(R),P(e),P(n),P(a),t),W(([u,p,,b,,,,,,,,z])=>{let F=void 0!==z&&z.length!==b;return u&&!p&&!F}),B(([,,[u,p],b,z,F,O,V,U,q,$,j])=>{var t;let{offsetTree:gt,sizeTree:ct}=z,St=ot(I);if(0===b)return{...Oe,totalCount:b};if(0===u&&0===p)return 0===St?{...Oe,totalCount:b}:Jn(St,F,z,U,q,j||[]);if(tt(ct))return St>0?null:ve(qo(Ye(F,b),z,j),[],b,q,z,U);let Ft=[];if(V.length>0){let N=V[0],Y=V[V.length-1],lt=0;for(let et of Zt(ct,N,Y)){let Q=et.value,ut=Math.max(et.start,N),xt=Math.min(et.end,Y);for(let at=ut;at<=xt;at++)Ft.push({data:j?.[at],index:at,offset:lt,size:Q}),lt+=Q}}if(!O)return ve([],Ft,b,q,z,U);let pt=V.length>0?V[V.length-1]+1:0,jt=Po(gt,u,p,pt);if(0===jt.length)return null;let Qt=b-1,Et=((N=>{for(let Y of jt){let lt=Y.value,et=lt.offset,Q=Y.start,ut=lt.size;if(lt.offset<u){let at=(Q+=Math.floor((u-lt.offset+q)/(ut+q)))-Y.start;et+=at*ut+at*q}Q<pt&&(et+=(pt-Q)*ut,Q=pt);let xt=Math.min(Y.end,Qt);for(let at=Q;at<=xt&&!(et>=p);at++)N.push({data:j?.[at],index:at,offset:et,size:ut}),et+=ut+q}})(t=[]),t),te=yn($,"top"),H=yn($,de);if(Et.length>0&&(te>0||H>0)){let N=Et[0],Y=Et[Et.length-1];if(te>0&&N.index>pt){let lt=Math.min(te,N.index-pt),et=[],Q=N.offset;for(let ut=N.index-1;ut>=N.index-lt;ut--){let at=Zt(ct,ut,ut)[0]?.value??N.size;Q-=at+q,et.unshift({data:j?.[ut],index:ut,offset:Q,size:at})}Et.unshift(...et)}if(H>0&&Y.index<Qt){let lt=Math.min(H,Qt-Y.index),et=Y.offset+Y.size+q;for(let Q=Y.index+1;Q<=Y.index+lt;Q++){let xt=Zt(ct,Q,Q)[0]?.value??Y.size;Et.push({data:j?.[Q],index:Q,offset:et,size:xt}),et+=xt+q}}}return ve(Et,Ft,b,q,z,U)}),W(u=>null!==u),rt()),Oe);L(S(t,W(Ne),B(u=>u?.length)),r),L(S(T,B(u=>u.topListHeight)),v),L(v,l),L(S(T,B(u=>[u.top,u.bottom])),i),L(S(T,B(u=>u.items)),h);let x=Ct(S(T,W(({items:u})=>u.length>0),D(r,t),W(([{items:u},p])=>u[u.length-1].originalIndex===p-1),B(([,u,p])=>[u-1,p]),rt(le),B(([u])=>u))),C=Ct(S(T,zt(200),W(({items:u,topItems:p})=>u.length>0&&u[0].originalIndex===p.length),B(({items:u})=>u[0].index),rt())),k=Ct(S(T,W(({items:u})=>u.length>0),B(({items:u})=>{let p=0,b=u.length-1;for(;"group"===u[p].type&&p<b;)p++;for(;"group"===u[b].type&&b>p;)b--;return{endIndex:u[b].index,startIndex:u[p].index}}),rt(Un)));return{endReached:x,initialItemCount:I,itemsRendered:h,listState:T,minOverscanItemCount:a,rangeChanged:k,startReached:C,topItemsIndexes:R,...m}},it(Lt,Yn,Ze,me,fe,pe,At,Ke),{singleton:!0}),Qn=Z(([{fixedFooterHeight:t,fixedHeaderHeight:e,footerHeight:n,headerHeight:o},{listState:r}])=>{let s=K(),i=ht(S(dt(n,t,o,e,r),B(([l,c,d,f,v])=>l+c+d+f+v.offsetBottom+v.bottom)),0);return L(P(i),s),{totalListHeight:i,totalListHeightChanged:s}},it(It,Kt),{singleton:!0}),Yo=Z(([{viewportHeight:t},{totalListHeight:e}])=>{let n=w(!1),o=ht(S(dt(n,t,e),W(([r])=>r),B(([,r,s])=>Math.max(0,r-s)),zt(0),rt()),0);return{alignToBottom:n,paddingTopAddition:o}},it(It,Qn),{singleton:!0}),to=Z(()=>({context:w(null)})),Zo=({itemBottom:t,itemTop:e,locationParams:{align:n,behavior:o,...r},viewportBottom:s,viewportTop:i})=>e<i?{...r,align:n??"start",...void 0===o?{}:{behavior:o}}:t>s?{...r,align:n??"end",...void 0===o?{}:{behavior:o}}:null,eo=Z(([{gap:t,sizes:e,totalCount:n},{fixedFooterHeight:o,fixedHeaderHeight:r,headerHeight:s,scrollingInProgress:i,scrollTop:l,viewportHeight:c},{scrollToIndex:d}])=>{let f=K();return L(S(f,D(e,c,n,s,r,o,l),D(t),B(([[v,m,g,y,R,I,h,a],T])=>{let{calculateViewLocation:x=Zo,done:C,...k}=v,u=qn(v,m,y-1),p=ce(u,m.offsetTree,T)+R+I,O=x({itemBottom:p+Rt(m.sizeTree,u)[1],itemTop:p,locationParams:k,viewportBottom:a+g-h,viewportTop:a+I});return null===O?C?.():C&&bt(S(i,W(V=>!V),Ut(ot(i)?1:2)),C),O}),W(v=>null!==v)),d),{scrollIntoView:f}},it(Lt,It,fe,Kt,Gt),{singleton:!0});function bn(t){return!1!==t&&("smooth"===t?"smooth":"auto")}let Jo=Z(([{listRefresh:t,totalCount:e,fixedItemSize:n,data:o},{atBottomState:r,isAtBottom:s},{scrollToIndex:i},{scrolledToInitialItem:l},{didMount:c,propsReady:d},{log:f},{scrollingInProgress:v},{context:m},{scrollIntoView:g}])=>{let y=w(!1),R=K(),I=null;function h(C){i(0,{align:"end",behavior:C,index:"LAST"})}function a(C){setTimeout(bt(r,u=>{C&&!u.atBottom&&"SIZE_INCREASED"===u.notAtBottomBecause&&null===I&&(ot(f)("scrolling to bottom due to increased size",{},0),h("auto"))}),100)}S(dt(S(P(e),Ut(1)),c),D(P(y),s,l,v),B(([[C,k],u,p,b,z])=>{let e,F=k&&b,O="auto";return F&&(e=p||z,O="function"==typeof u?bn(u(e)):e&&bn(u),F=F&&!1!==O),{followOutputBehavior:O,shouldFollow:F,totalCount:C}}),W(({shouldFollow:C})=>C))(1,({followOutputBehavior:C,totalCount:k})=>{null!==I&&(I(),I=null),void 0===ot(n)?I=bt(t,()=>{ot(f)("following output to ",{totalCount:k},0),h(C),I=null}):requestAnimationFrame(()=>{ot(f)("following output to ",{totalCount:k},0),h(C)})}),S(dt(P(y),e,d),W(([C,,k])=>!1!==C&&k),kt(({value:C},[,k])=>({refreshed:C===k,value:k}),{refreshed:!1,value:0}),W(({refreshed:C})=>C),D(y,e))(1,([,C])=>{ot(l)&&a(!1!==C)}),R(1,()=>{a(!1!==ot(y))}),dt(P(y),r)(1,([C,k])=>{!1===C||k.atBottom||"VIEWPORT_HEIGHT_DECREASING"!==k.notAtBottomBecause||h("auto")});let T=w(null),x=K();return L(Ve(S(P(o),B(C=>C?.length??0)),S(P(e))),x),S(dt(S(x,Ut(1)),c),D(P(T),l,v,m),B(([[C,k],u,p,b,z])=>k&&p&&u?.({context:z,totalCount:C,scrollingInProgress:b})),W(C=>!!C),zt(0))(1,C=>{null!==I&&(I(),I=null),void 0===ot(n)?I=bt(t,()=>{ot(f)("scrolling into view",{}),g(0,C),I=null}):requestAnimationFrame(()=>{ot(f)("scrolling into view",{}),g(0,C)})}),{autoscrollToBottom:R,followOutput:y,scrollIntoViewOnChange:T}},it(Lt,pe,fe,me,At,Gt,It,to,eo)),Qo=Z(([{data:t,firstItemIndex:e,gap:n,sizes:o},{initialTopMostItemIndex:r},{initialItemCount:s,listState:i},{didMount:l}])=>(L(S(l,D(s),W(([,c])=>0!==c),D(r,o,e,n,t),B(([[,c],d,f,v,m,g=[]])=>Jn(c,d,f,v,m,g))),i),{}),it(Lt,me,Kt,At),{singleton:!0}),tr=Z(([{didMount:t},{scrollTo:e},{listState:n}])=>{let o=w(0);return S(t,D(o),W(([,r])=>0!==r),B(([,r])=>({top:r})))(1,r=>{bt(S(n,Ut(1),W(s=>s.items.length>1)),()=>{requestAnimationFrame(()=>{e(0,r)})})}),{initialScrollTop:o}},it(At,It,Kt),{singleton:!0}),no=Z(([{scrollVelocity:t}])=>{let e=w(!1),n=K(),o=w(!1);return L(S(t,D(o,e,n),W(([r,s])=>!1!==s&&void 0!==s),B(([r,s,i,l])=>{let{enter:c,exit:d}=s;if(i){if(d(r,l))return!1}else if(c(r,l))return!0;return i}),rt()),e),S(dt(e,t,n),D(o))(1,([[r,s,i],l])=>{r&&!1!==l&&void 0!==l&&l.change&&l.change(s,i)}),{isSeeking:e,scrollSeekConfiguration:o,scrollSeekRangeChanged:n,scrollVelocity:t}},it(pe),{singleton:!0}),Xe=Z(([{scrollContainerState:t,scrollTo:e}])=>{let n=K(),o=K(),r=K(),s=w(!1),i=w(void 0);return L(S(dt(n,o),B(([{scrollTop:l,viewportHeight:c},{offsetTop:d,listHeight:f}])=>({scrollHeight:f,scrollTop:Math.max(0,l-d),viewportHeight:c}))),t),L(S(e,D(o),B(([l,{offsetTop:c}])=>({...l,top:l.top+c}))),r),{customScrollParent:i,useWindowScroll:s,windowScrollContainerState:n,windowScrollTo:r,windowViewportRect:o}},it(It)),er=Z(([{sizeRanges:t,sizes:e},{headerHeight:n,scrollTop:o},{initialTopMostItemIndex:r},{didMount:s},{useWindowScroll:i,windowScrollContainerState:l,windowViewportRect:c}])=>{let d=K(),f=w(void 0),v=w(null),m=w(null);return L(l,v),L(c,m),S(d,D(e,o,i,v,m,n))(1,([g,y,R,I,h,a,T])=>{let x=Go(y.sizeTree);I&&null!==h&&null!==a&&(R=h.scrollTop-a.offsetTop),g({ranges:x,scrollTop:R-=T})}),L(S(f,W(Ne),B(nr)),r),L(S(s,D(f),W(([,g])=>void 0!==g),rt(),B(([,g])=>g.ranges)),t),{getState:d,restoreStateFrom:f}},it(Lt,It,me,At,Xe));function nr(t){return{align:"start",index:0,offset:t.scrollTop}}let or=Z(([{topItemsIndexes:t}])=>{let e=w(0);return L(S(e,W(n=>n>=0),B(n=>Array.from({length:n}).map((o,r)=>r))),t),{topItemCount:e}},it(Kt));function oo(t){let e=!1,n;return()=>(e||(e=!0,n=t()),n)}let rr=oo(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),sr=Z(([{deviation:t,deviationCommitted:e,scrollBy:n,scrollingInProgress:o,scrollTop:r},{isAtBottom:s,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:c},{listState:d},{beforeUnshiftWith:f,gap:v,shiftWithOffset:m,sizes:g},{log:y},{recalcInProgress:R}])=>{let I=Ct(S(d,D(l),kt(([,x,C,k],[{bottom:u,items:p,offsetBottom:b,totalCount:z},F])=>{let O=u+b,V=0;return C===z&&x.length>0&&p.length>0&&(0===p[0].originalIndex&&0===x[0].originalIndex||0!=(V=O-k)&&(V+=F)),[V,p,z,O]},[0,[],0,0]),W(([x])=>0!==x),D(r,c,o,s,y,R),W(([,x,C,k,,,u])=>!u&&!k&&0!==x&&"up"===C),B(([[x],,,,,C])=>(C("Upward scrolling compensation",{amount:x},0),x))));function h(x){x>0?(n(0,{behavior:"auto",top:-x}),t(0,0)):(t(0,0),n(0,{behavior:"auto",top:-x}))}S(I,D(t,i))(1,([x,C,k])=>{k&&rr()?t(0,C-x):h(-x)}),S(dt(ht(i,!1),t,R),W(([x,C,k])=>!x&&!k&&0!==C),B(([x,C])=>C),zt(1))(1,h),L(S(m,B(x=>({top:-x}))),n);let a=null;function T(){if(null===a)return;let{offset:x}=a;a=null,n(0,{top:x}),requestAnimationFrame(()=>{t(0,0),R(0,!1)})}return e(1,x=>{null!==a&&a.acknowledgeable&&x===a.offset&&T()}),S(f,D(g,v),B(([x,{groupIndices:C,lastSize:k,sizeTree:u},p])=>{if(0===C.length)return x*(k+p);let z=0,F=ie(u,0),O=0,V=0;for(;O<x;){O++,z+=F;let U=C.length===V+1?1/0:C[V+1]-C[V]-1;O+U>x&&(z-=F,U=x-O+1),O+=U,z+=U*(k+p),V++}return z}))(1,x=>{a={acknowledgeable:ot(t)!==x,offset:x},t(0,x),requestAnimationFrame(T)}),{deviation:t}},it(It,pe,Kt,Lt,Gt,Ke)),ir=Z(([t,e,n,o,r,s,i,l,c,d,f])=>({...t,...e,...n,...o,...r,...s,...i,...l,...c,...d,...f}),it(Ze,Qo,At,no,Qn,tr,Yo,Xe,eo,Gt,to)),ro=Z(([{data:t,defaultItemSize:e,firstItemIndex:n,fixedItemSize:o,fixedGroupSize:r,gap:s,groupIndices:i,heightEstimates:l,itemSize:c,sizeRanges:d,sizes:f,statefulTotalCount:v,totalCount:m,trackItemSizes:g},{initialItemFinalLocationReached:y,initialTopMostItemIndex:R,scrolledToInitialItem:I},h,a,T,x,{scrollToIndex:C},k,{topItemCount:u},{groupCounts:p},b])=>{let{listState:z,minOverscanItemCount:F,topItemsIndexes:O,rangeChanged:V,...U}=x;return L(V,b.scrollSeekRangeChanged),L(S(dt(b.windowViewportRect,h.headerHeight,h.fixedHeaderHeight),B(([q,$,j])=>Math.max($+j+1,q.visibleHeight))),h.viewportHeight),{data:t,defaultItemHeight:e,firstItemIndex:n,fixedItemHeight:o,fixedGroupHeight:r,gap:s,groupCounts:p,heightEstimates:l,initialItemFinalLocationReached:y,initialTopMostItemIndex:R,scrolledToInitialItem:I,sizeRanges:d,topItemCount:u,topItemsIndexes:O,totalCount:m,...T,groupIndices:i,itemSize:c,listState:z,minOverscanItemCount:F,scrollToIndex:C,statefulTotalCount:v,trackItemSizes:g,rangeChanged:V,...U,...b,...h,sizes:f,...a}},it(Lt,me,It,er,Jo,Kt,fe,sr,or,Yn,ir));function lr(t,e){let n={},o={},r=0,s=t.length;for(;r<s;)o[t[r]]=1,r+=1;for(let i in e)Object.hasOwn(o,i)||(n[i]=e[i]);return n}let Ie=typeof document>"u"?__TURBOPACK__imported__module__95184__.default.useEffect:__TURBOPACK__imported__module__95184__.default.useLayoutEffect;function Je(t,e,n){let o=Object.keys(e.required||{}),r=Object.keys(e.optional||{}),s=Object.keys(e.methods||{}),i=Object.keys(e.events||{}),l=__TURBOPACK__imported__module__95184__.default.createContext({});function c(h,a){for(let T of(void 0!==h.propsReady&&(0,h.propsReady)(0,!1),o))(0,h[e.required[T]])(0,a[T]);for(let T of r)T in a&&(0,h[e.optional[T]])(0,a[T]);void 0!==h.propsReady&&(0,h.propsReady)(0,!0)}function d(h){return s.reduce((a,T)=>(a[T]=x=>{(0,h[e.methods[T]])(0,x)},a),{})}function f(h){return i.reduce((a,T)=>(a[T]=Co(h[e.events[T]]),a),{})}return{Component:__TURBOPACK__imported__module__95184__.default.forwardRef(function(a,T){var t1,t2;let{children:x,...C}=a,[k]=__TURBOPACK__imported__module__95184__.default.useState(()=>{var t1;return c(t1=bo(t),C),t1}),[u]=__TURBOPACK__imported__module__95184__.default.useState((t1=f,()=>t1(k)));return Ie(()=>{for(let b of i)b in C&&(0,u[b])(1,C[b]);return()=>{Object.values(u).map(De)}},[C,u,k]),Ie(()=>{c(k,C)}),__TURBOPACK__imported__module__95184__.default.useImperativeHandle(T,(t2=d(k),()=>t2)),(0,__TURBOPACK__imported__module__24514__.jsx)(l.Provider,{value:k,children:void 0===n?x:(0,__TURBOPACK__imported__module__24514__.jsx)(n,{...lr([...o,...r,...i],C),children:x})})}),useEmitter:(h,a)=>{let x=__TURBOPACK__imported__module__95184__.default.useContext(l)[h];Ie(()=>x(1,a),[a,x])},useEmitterValue:parseInt(__TURBOPACK__imported__module__95184__.default.version,10)>=18?h=>{let T=__TURBOPACK__imported__module__95184__.default.useContext(l)[h],x=__TURBOPACK__imported__module__95184__.default.useCallback(C=>T(1,C),[T]);return __TURBOPACK__imported__module__95184__.default.useSyncExternalStore(x,()=>ot(T),()=>ot(T))}:h=>{var t;let T=__TURBOPACK__imported__module__95184__.default.useContext(l)[h],[x,C]=__TURBOPACK__imported__module__95184__.default.useState((t=ot,()=>t(T)));return Ie(()=>T(1,k=>{k!==x&&C(()=>k)}),[T,x]),x},usePublisher:h=>{let a=__TURBOPACK__imported__module__95184__.default.useContext(l);return __TURBOPACK__imported__module__95184__.default.useCallback(T=>{(0,a[h])(0,T)},[a,h])}}}let He=__TURBOPACK__imported__module__95184__.default.createContext(void 0),so=__TURBOPACK__imported__module__95184__.default.createContext(void 0),Le="-webkit-sticky",Rn="sticky",Qe=oo(()=>{if(typeof document>"u")return Rn;let t=document.createElement("div");return t.style.position=Le,t.style.position===Le?Le:Rn});function ze(t){return"self"in t}function cr(t){return"body"in t}function io(t,e,n,o=Jt,r,s){let i=__TURBOPACK__imported__module__95184__.default.useRef(null),l=__TURBOPACK__imported__module__95184__.default.useRef(null),c=__TURBOPACK__imported__module__95184__.default.useRef(null),d=__TURBOPACK__imported__module__95184__.default.useCallback(m=>{let g,y,R,I=m.target;if(cr(I)||ze(I)){let a=ze(I)?I:I.defaultView;R=!0===s?_t(a,a.scrollX):a.scrollY,g=!0===s?a.document.documentElement.scrollWidth:a.document.documentElement.scrollHeight,y=!0===s?a.innerWidth:a.innerHeight}else R=!0===s?_t(I,I.scrollLeft):I.scrollTop,g=!0===s?I.scrollWidth:I.scrollHeight,y=!0===s?I.offsetWidth:I.offsetHeight;let h=()=>{t({scrollHeight:g,scrollTop:Math.max(R,0),viewportHeight:y})};!0===m.suppressFlushSync?h():__TURBOPACK__imported__module__20135__.default.flushSync(h),null!==l.current&&(R===l.current||R<=0||R===g-y)&&(l.current=null,e(!0),c.current&&(clearTimeout(c.current),c.current=null))},[t,e,s]);function f(m){let R,I,h,g=i.current;if(!g||(!0===s?"offsetWidth"in g&&0===g.offsetWidth:"offsetHeight"in g&&0===g.offsetHeight))return;let y="smooth"===m.behavior;ze(g)?(I=Math.max(Ht(g.document.documentElement,!0===s?"width":"height"),!0===s?g.document.documentElement.scrollWidth:g.document.documentElement.scrollHeight),R=!0===s?g.innerWidth:g.innerHeight,h=!0===s?_t(g,g.scrollX):g.scrollY):(I=g[!0===s?"scrollWidth":"scrollHeight"],R=Ht(g,!0===s?"width":"height"),h=!0===s?_t(g,g.scrollLeft):g.scrollTop);let a=I-R;if(void 0===m.top)return void g.scrollTo(m);let T=Math.ceil(Math.max(Math.min(a,m.top),0));if(m.top=T,Xn(R,I)||T===h){t({scrollHeight:I,scrollTop:h,viewportHeight:R}),y&&e(!0);return}y?(l.current=T,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,l.current=null,e(!0)},1e3)):l.current=null,!0===s&&(m={...void 0===m.behavior?{}:{behavior:m.behavior},left:Gn(g)?-T:T}),g.scrollTo(m)}return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{let m=r??i.current;return o(r??i.current),d({suppressFlushSync:!0,target:m}),m.addEventListener("scroll",d,{passive:!0}),()=>{o(null),m.removeEventListener("scroll",d)}},[i,d,n,o,r]),{scrollByCallback:__TURBOPACK__imported__module__95184__.default.useCallback(m=>{var t,e;!0===s&&(m={...void 0===m.behavior?{}:{behavior:m.behavior},...void 0===m.top?{}:{left:(t=i.current,e=m.top,Gn(t)?-e:e)}}),i.current.scrollBy(m)},[s]),scrollerRef:i,scrollToCallback:f}}function tn(t){return t}let ur=Z(()=>{let t=w(l=>`Item ${l}`),e=w(l=>`Group ${l}`),n=w({}),o=w(tn),r=w("div"),s=w(Jt),i=(l,c=null)=>ht(S(n,B(d=>d[l]),rt()),c);return{components:n,computeItemKey:o,EmptyPlaceholder:i("EmptyPlaceholder"),FooterComponent:i("Footer"),GroupComponent:i("Group","div"),groupContent:e,HeaderComponent:i("Header"),HeaderFooterTag:r,ItemComponent:i("Item","div"),itemContent:t,ListComponent:i("List","div"),ScrollerComponent:i("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:i("ScrollSeekPlaceholder"),TopItemListComponent:i("TopItemList")}}),ar=Z(([t,e])=>({...t,...e}),it(ro,ur)),dr=({height:t})=>(0,__TURBOPACK__imported__module__24514__.jsx)("div",{style:{height:t}}),fr={overflowAnchor:"none",position:Qe(),zIndex:1},lo={overflowAnchor:"none"},mr={...lo,display:"inline-block",height:"100%"},Hn=__TURBOPACK__imported__module__95184__.default.memo(function({showTopList:e=!1}){let n=A("listState"),o=Tt("sizeRanges"),r=A("useWindowScroll"),s=A("customScrollParent"),i=Tt("windowScrollContainerState"),l=Tt("scrollContainerState"),d=A("itemContent"),f=A("context"),v=A("groupContent"),m=A("trackItemSizes"),g=A("itemSize"),y=A("log"),R=Tt("gap"),I=A("horizontalDirection"),{callbackRef:h}=An(o,g,m,e?Jt:s||r?i:l,y,R,s,I,A("skipAnimationFrameInResizeObserver")),[a,T]=__TURBOPACK__imported__module__95184__.default.useState(0);rn("deviation",$=>{a!==$&&T($)});let x=Tt("deviationCommitted");be(()=>{x(a)},[a,x]);let C=A("EmptyPlaceholder"),k=A("ScrollSeekPlaceholder")??dr,u=A("ListComponent"),p=A("ItemComponent"),b=A("GroupComponent"),z=A("computeItemKey"),F=A("isSeeking"),O=A("groupIndices").length>0,V=A("alignToBottom"),U=A("initialItemFinalLocationReached"),q=e?{}:{boxSizing:"border-box",...I?{display:"inline-block",height:"100%",marginInlineStart:0===a?V?"auto":0:a,paddingInlineEnd:n.offsetBottom,paddingInlineStart:n.offsetTop,whiteSpace:"nowrap"}:{marginTop:0===a?V?"auto":0:a,paddingBottom:n.offsetBottom,paddingTop:n.offsetTop},...U?{}:{visibility:"hidden"}};return e||0!==n.totalCount||null==C?(0,__TURBOPACK__imported__module__24514__.jsx)(u,{...st(u,f),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:h,style:q,children:(e?n.topItems:n.items).map($=>{let j=$.originalIndex,X=z(j+n.firstItemIndex,$.data,f);return F?(0,__TURBOPACK__imported__module__95184__.createElement)(k,{...st(k,f),height:$.size,index:$.index,key:X,type:$.type||"item",..."group"===$.type?{}:{groupIndex:$.groupIndex}}):"group"===$.type?(0,__TURBOPACK__imported__module__95184__.createElement)(b,{...st(b,f),"data-index":j,"data-item-index":$.index,"data-known-size":$.size,key:X,style:fr},v($.index,f)):(0,__TURBOPACK__imported__module__95184__.createElement)(p,{...st(p,f),...co(p,$.data),"data-index":j,"data-item-group-index":$.groupIndex,"data-item-index":$.index,"data-known-size":$.size,key:X,style:I?mr:lo},O?d($.index,$.groupIndex,$.data,f):d($.index,$.data,f))})}):(0,__TURBOPACK__imported__module__24514__.jsx)(C,{...st(C,f)})}),pr={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},hr={outline:"none",overflowX:"auto",position:"relative"},Ee=t=>({height:"100%",position:"absolute",top:0,width:"100%",...t?{display:"flex",flexDirection:"column"}:void 0}),en=(t,e,n=0)=>({...Ee(t),position:e?"relative":"absolute",top:e?-n:0}),gr={position:Qe(),top:0,width:"100%",zIndex:1};function st(t,e){if("string"!=typeof t)return{context:e}}function co(t,e){return{item:"string"==typeof t?void 0:e}}let Ir=__TURBOPACK__imported__module__95184__.default.memo(function(){let e=A("HeaderComponent"),n=Tt("headerHeight"),o=A("HeaderFooterTag"),r=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>i=>{n(Ht(i,"height"))},[n]),!0,A("skipAnimationFrameInResizeObserver")),s=A("context");return null!=e?(0,__TURBOPACK__imported__module__24514__.jsx)(o,{ref:r,children:(0,__TURBOPACK__imported__module__24514__.jsx)(e,{...st(e,s)})}):null}),Sr=__TURBOPACK__imported__module__95184__.default.memo(function(){let e=A("FooterComponent"),n=Tt("footerHeight"),o=A("HeaderFooterTag"),r=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>i=>{n(Ht(i,"height"))},[n]),!0,A("skipAnimationFrameInResizeObserver")),s=A("context");return null!=e?(0,__TURBOPACK__imported__module__24514__.jsx)(o,{ref:r,children:(0,__TURBOPACK__imported__module__24514__.jsx)(e,{...st(e,s)})}):null});function nn({useEmitter:t,useEmitterValue:e,usePublisher:n}){return __TURBOPACK__imported__module__95184__.default.memo(function({children:s,style:i,context:l,...c}){let d=n("scrollContainerState"),f=e("ScrollerComponent"),v=n("smoothScrollTargetReached"),m=e("scrollerRef"),g=e("horizontalDirection")||!1,{scrollByCallback:y,scrollerRef:R,scrollToCallback:I}=io(d,v,f,m,void 0,g);return t("scrollTo",I),t("scrollBy",y),(0,__TURBOPACK__imported__module__24514__.jsx)(f,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:R,style:{...g?hr:pr,...i},tabIndex:0,...c,...st(f,l),children:s})})}function on({useEmitter:t,useEmitterValue:e,usePublisher:n}){return __TURBOPACK__imported__module__95184__.default.memo(function({children:s,style:i,context:l,...c}){let d=n("windowScrollContainerState"),f=e("ScrollerComponent"),v=n("smoothScrollTargetReached"),m=e("totalListHeight"),g=e("deviation"),y=e("customScrollParent"),R=__TURBOPACK__imported__module__95184__.default.useRef(null),{scrollByCallback:h,scrollerRef:a,scrollToCallback:T}=io(d,v,f,e("scrollerRef"),y);return be(()=>(a.current=y??R.current?.ownerDocument.defaultView,()=>{a.current=null}),[a,y]),t("windowScrollTo",T),t("scrollBy",h),(0,__TURBOPACK__imported__module__24514__.jsx)(f,{ref:R,"data-virtuoso-scroller":!0,style:{position:"relative",...i,...0===m?void 0:{height:m+g}},...c,...st(f,l),children:s})})}let xr=({children:t})=>{let e=__TURBOPACK__imported__module__95184__.default.useContext(He),n=Tt("viewportHeight"),o=Tt("fixedItemHeight"),r=A("alignToBottom"),s=A("horizontalDirection"),l=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>re(n,c=>Ht(c,s?"width":"height")),[n,s]),!0,A("skipAnimationFrameInResizeObserver"));return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{e&&(n(e.viewportHeight),o(e.itemHeight))},[e,n,o]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{"data-viewport-type":"element",ref:l,style:Ee(r),children:t})},vr=({children:t})=>{let e=__TURBOPACK__imported__module__95184__.default.useContext(He),n=Tt("windowViewportRect"),o=Tt("fixedItemHeight"),r=A("customScrollParent"),s=A("useWindowScroll"),i=A("topListHeight"),l=Ue(n,r,A("skipAnimationFrameInResizeObserver")),c=A("alignToBottom");return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{e&&(o(e.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:100}))},[e,n,o]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{"data-viewport-type":"window",ref:l,style:en(c,s,i),children:t})},Tr=({children:t})=>{let e=A("TopItemListComponent")??"div",n=A("headerHeight"),o={...gr,marginTop:`${n}px`},r=A("context");return(0,__TURBOPACK__imported__module__24514__.jsx)(e,{style:o,...st(e,r),children:t})},{useEmitter:rn,useEmitterValue:A,usePublisher:Tt}=Je(ar,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},__TURBOPACK__imported__module__95184__.default.memo(function(e){let n=A("useWindowScroll"),o=A("topItemsIndexes").length>0,r=A("customScrollParent"),s=A("context");return(0,__TURBOPACK__imported__module__24514__.jsxs)(r||n?yr:wr,{...e,context:s,children:[o&&(0,__TURBOPACK__imported__module__24514__.jsx)(Tr,{children:(0,__TURBOPACK__imported__module__24514__.jsx)(Hn,{showTopList:!0})}),(0,__TURBOPACK__imported__module__24514__.jsxs)(r||n?vr:xr,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Ir,{}),(0,__TURBOPACK__imported__module__24514__.jsx)(Hn,{}),(0,__TURBOPACK__imported__module__24514__.jsx)(Sr,{})]})]})})),wr=nn({useEmitter:rn,useEmitterValue:A,usePublisher:Tt}),yr=on({useEmitter:rn,useEmitterValue:A,usePublisher:Tt}),br=Z(()=>{let t=w(d=>(0,__TURBOPACK__imported__module__24514__.jsxs)("td",{children:["Item $",d]})),e=w(null),n=w(d=>(0,__TURBOPACK__imported__module__24514__.jsxs)("td",{colSpan:1e3,children:["Group ",d]})),o=w(null),r=w(null),s=w({}),i=w(tn),l=w(Jt),c=(d,f=null)=>ht(S(s,B(v=>v[d]),rt()),f);return{components:s,computeItemKey:i,context:e,EmptyPlaceholder:c("EmptyPlaceholder"),FillerRow:c("FillerRow"),fixedFooterContent:r,fixedHeaderContent:o,itemContent:t,groupContent:n,ScrollerComponent:c("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder"),TableBodyComponent:c("TableBody","tbody"),TableComponent:c("Table","table"),TableFooterComponent:c("TableFoot","tfoot"),TableHeadComponent:c("TableHead","thead"),TableRowComponent:c("TableRow","tr"),GroupComponent:c("Group","tr")}}),Rr=Z(([t,e])=>({...t,...e}),it(ro,br)),Hr=({height:t})=>(0,__TURBOPACK__imported__module__24514__.jsx)("tr",{children:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{style:{height:t}})}),Er=({height:t})=>(0,__TURBOPACK__imported__module__24514__.jsx)("tr",{children:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{style:{border:0,height:t,padding:0}})}),Br={overflowAnchor:"none"},En={position:Qe(),zIndex:2,overflowAnchor:"none"},Bn=__TURBOPACK__imported__module__95184__.default.memo(function({showTopList:e=!1}){let n=_("listState"),o=_("computeItemKey"),r=_("firstItemIndex"),s=_("context"),i=_("isSeeking"),l=_("fixedHeaderHeight"),c=_("groupIndices").length>0,d=_("itemContent"),f=_("groupContent"),v=_("ScrollSeekPlaceholder")??Hr,m=_("GroupComponent"),g=_("TableRowComponent"),y=(e?n.topItems:[]).reduce((I,h,a)=>(0===a?I.push(h.size):I.push(I[a-1]+h.size),I),[]);return(e?n.topItems:n.items).map(I=>{let h=I.originalIndex,a=o(h+r,I.data,s),T=e?0===h?0:y[h-1]:0;return i?(0,__TURBOPACK__imported__module__95184__.createElement)(v,{...st(v,s),height:I.size,index:I.index,key:a,type:I.type||"item"}):"group"===I.type?(0,__TURBOPACK__imported__module__95184__.createElement)(m,{...st(m,s),"data-index":h,"data-item-index":I.index,"data-known-size":I.size,key:a,style:{...En,top:l}},f(I.index,s)):(0,__TURBOPACK__imported__module__95184__.createElement)(g,{...st(g,s),...co(g,I.data),"data-index":h,"data-item-index":I.index,"data-known-size":I.size,"data-item-group-index":I.groupIndex,key:a,style:e?{...En,top:l+T}:Br},c?d(I.index,I.groupIndex,I.data,s):d(I.index,I.data,s))})}),kr=__TURBOPACK__imported__module__95184__.default.memo(function(){let e=_("listState"),n=_("topItemsIndexes").length>0,o=wt("sizeRanges"),r=_("useWindowScroll"),s=_("customScrollParent"),i=wt("windowScrollContainerState"),l=wt("scrollContainerState"),d=_("trackItemSizes"),{callbackRef:m,ref:g}=An(o,_("itemSize"),d,s||r?i:l,_("log"),void 0,s,!1,_("skipAnimationFrameInResizeObserver")),[y,R]=__TURBOPACK__imported__module__95184__.default.useState(0);sn("deviation",O=>{y!==O&&(g.current.style.marginTop=`${O}px`,R(O))});let I=wt("deviationCommitted");be(()=>{I(y)},[y,I]);let h=_("EmptyPlaceholder"),a=_("FillerRow")??Er,T=_("TableBodyComponent"),x=_("paddingTopAddition"),C=_("statefulTotalCount"),k=_("context");if(0===C&&null!=h)return(0,__TURBOPACK__imported__module__24514__.jsx)(h,{...st(h,k)});let u=(n?e.topItems:[]).reduce((O,V)=>O+V.size,0),p=e.offsetTop+x+y-u,b=e.offsetBottom,z=p>0?(0,__TURBOPACK__imported__module__24514__.jsx)(a,{context:k,height:p},"padding-top"):null,F=b>0?(0,__TURBOPACK__imported__module__24514__.jsx)(a,{context:k,height:b},"padding-bottom"):null;return(0,__TURBOPACK__imported__module__24514__.jsxs)(T,{"data-testid":"virtuoso-item-list",ref:m,...st(T,k),children:[z,n&&(0,__TURBOPACK__imported__module__24514__.jsx)(Bn,{showTopList:!0}),(0,__TURBOPACK__imported__module__24514__.jsx)(Bn,{}),F]})}),Or=({children:t})=>{let e=__TURBOPACK__imported__module__95184__.default.useContext(He),n=wt("viewportHeight"),o=wt("fixedItemHeight"),r=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>re(n,s=>Ht(s,"height")),[n]),!0,_("skipAnimationFrameInResizeObserver"));return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{e&&(n(e.viewportHeight),o(e.itemHeight))},[e,n,o]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{"data-viewport-type":"element",ref:r,style:Ee(!1),children:t})},Lr=({children:t})=>{let e=__TURBOPACK__imported__module__95184__.default.useContext(He),n=wt("windowViewportRect"),o=wt("fixedItemHeight"),r=_("customScrollParent"),s=_("useWindowScroll"),i=Ue(n,r,_("skipAnimationFrameInResizeObserver"));return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{e&&(o(e.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:100}))},[e,n,o]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{"data-viewport-type":"window",ref:i,style:en(!1,s),children:t})},{Component:ao,useEmitter:sn,useEmitterValue:_,usePublisher:wt}=Je(Rr,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},__TURBOPACK__imported__module__95184__.default.memo(function(e){let n=_("useWindowScroll"),o=_("customScrollParent"),r=wt("fixedHeaderHeight"),s=wt("fixedFooterHeight"),i=_("fixedHeaderContent"),l=_("fixedFooterContent"),c=_("context"),d=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>re(r,a=>Ht(a,"height")),[r]),!0,_("skipAnimationFrameInResizeObserver")),f=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>re(s,a=>Ht(a,"height")),[s]),!0,_("skipAnimationFrameInResizeObserver")),v=o||n?Vr:Fr,m=o||n?Lr:Or,g=_("TableComponent"),y=_("TableHeadComponent"),R=_("TableFooterComponent"),I=i?(0,__TURBOPACK__imported__module__24514__.jsx)(y,{ref:d,style:{position:"sticky",top:0,zIndex:2},...st(y,c),children:i()},"TableHead"):null,h=l?(0,__TURBOPACK__imported__module__24514__.jsx)(R,{ref:f,style:{bottom:0,position:"sticky",zIndex:1},...st(R,c),children:l()},"TableFoot"):null;return(0,__TURBOPACK__imported__module__24514__.jsx)(v,{...e,...st(v,c),children:(0,__TURBOPACK__imported__module__24514__.jsx)(m,{children:(0,__TURBOPACK__imported__module__24514__.jsxs)(g,{style:{borderSpacing:0,overflowAnchor:"none"},...st(g,c),children:[I,(0,__TURBOPACK__imported__module__24514__.jsx)(kr,{},"TableBody"),h]})})})})),Fr=nn({useEmitter:sn,useEmitterValue:_,usePublisher:wt}),Vr=on({useEmitter:sn,useEmitterValue:_,usePublisher:wt}),kn={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},Pr={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:On,floor:Ce,max:oe,min:Fe,round:Ln}=Math;function zn(t,e,n){return Array.from({length:e-t+1}).map((o,r)=>({data:null===n?null:n[r+t],index:r+t}))}function Wr(t){return{...Pr,items:t}}function Se(t,e){return void 0!==t&&t.width===e.width&&t.height===e.height}function Gr(t,e){return void 0!==t&&t.column===e.column&&t.row===e.row}let Ar=Z(([{increaseViewportBy:t,listBoundary:e,overscan:n,visibleRange:o},{footerHeight:r,headerHeight:s,scrollBy:i,scrollContainerState:l,scrollTo:c,scrollTop:d,smoothScrollTargetReached:f,viewportHeight:v},m,g,{didMount:y,propsReady:R},{customScrollParent:I,useWindowScroll:h,windowScrollContainerState:a,windowScrollTo:T,windowViewportRect:x},C])=>{let k=w(0),u=w(0),p=w(kn),b=w({height:0,width:0}),z=w({height:0,width:0}),F=K(),O=K(),V=w(0),U=w(null),q=w({column:0,row:0}),$=K(),j=K(),X=w(!1),gt=w(0),ct=w(!0),St=w(!1),Ft=w(!1);S(y,D(gt),W(([H,N])=>!Me(N)))(1,()=>{ct(0,!1)}),S(dt(y,ct,z,b,gt,St),W(([H,N,Y,lt,,et])=>H&&!N&&0!==Y.height&&0!==lt.height&&!et))(1,([,,,,H])=>{void 0===H?ct(0,!0):(St(0,!0),qe(1,()=>{F(0,H)}),bt(S(d),()=>{e(0,[0,0]),ct(0,!0)}))}),L(S(j,W(H=>null!=H&&H.scrollTop>0),Bt(0)),u),S(y,D(j),W(([,H])=>null!=H))(1,([,H])=>{H&&(b(0,H.viewport),z(0,H.item),q(0,H.gap),H.scrollTop>0&&(X(0,!0),bt(S(d,Ut(1)),N=>{X(0,!1)}),c(0,{top:H.scrollTop})))}),L(S(b,B(({height:H})=>H)),v),L(S(dt(P(b,Se),P(z,Se),P(q,(H,N)=>void 0!==H&&H.column===N.column&&H.row===N.row),P(d)),B(([H,N,Y,lt])=>({gap:Y,item:N,scrollTop:lt,viewport:H}))),$),L(S(dt(P(k),o,P(q,Gr),P(z,Se),P(b,Se),P(U),P(u),P(X),P(ct),P(gt)),W(([,,,,,,,H])=>!H),B(([H,[N,Y],lt,et,Q,ut,xt,,at,Vt])=>{let qt,Mt,{column:Pt,row:ee}=lt,{height:he,width:Be}=et,{width:ln}=Q;if(0===xt&&(0===H||0===ln))return kn;if(0===Be){let fn=Ye(Vt,H),ho=fn+Math.max(xt-1,0);return Wr(zn(fn,ho,ut))}let ge=fo(ln,Be,Pt);at?0===N&&0===Y&&xt>0?(qt=0,Mt=xt-1):(qt=ge*Ce((N+ee)/(he+ee)),Mt=Fe(H-1,oe(Mt=ge*On((Y+ee)/(he+ee))-1,ge-1)),qt=Fe(Mt,oe(0,qt))):(qt=0,Mt=-1);let cn=zn(qt,Mt,ut),{bottom:un,top:an}=Fn(Q,lt,et,cn),dn=On(H/ge);return{bottom:un,itemHeight:he,items:cn,itemWidth:Be,offsetBottom:dn*he+(dn-1)*ee-un,offsetTop:an,top:an}})),p),L(S(U,W(H=>null!==H),B(H=>H.length)),k),L(S(dt(b,z,p,q),W(([H,N,{items:Y}])=>Y.length>0&&0!==N.height&&0!==H.height),B(([H,N,{items:Y},lt])=>{let{bottom:et,top:Q}=Fn(H,lt,N,Y);return[Q,et]}),rt(le)),e);let pt=w(!1);L(S(d,D(pt),B(([H,N])=>N||0!==H)),pt);let jt=Ct(S(dt(p,k),W(([{items:H}])=>H.length>0),D(pt),W(([[H,N],Y])=>{let et=H.items[H.items.length-1].index===N-1;return(Y||H.bottom>0&&H.itemHeight>0&&0===H.offsetBottom&&H.items.length===N)&&et}),B(([[,H]])=>H-1),rt())),Qt=Ct(S(P(p),W(({items:H})=>H.length>0&&0===H[0].index),Bt(0),rt())),Et=Ct(S(P(p),D(X),W(([{items:H},N])=>H.length>0&&!N),B(([{items:H}])=>({endIndex:H[H.length-1].index,startIndex:H[0].index})),rt(Un),zt(0)));L(Et,g.scrollSeekRangeChanged),L(S(F,D(b,z,k,q),B(([H,N,Y,lt,et])=>{let Q=Zn(H),{align:ut,behavior:xt,offset:at}=Q,Vt=Q.index;"LAST"===Vt&&(Vt=lt-1);let Pt=_e(N,et,Y,Vt=oe(0,Vt,Fe(lt-1,Vt)));return"end"===ut?Pt=Ln(Pt-N.height+Y.height):"center"===ut&&(Pt=Ln(Pt-N.height/2+Y.height/2)),void 0!==at&&0!==at&&(Pt+=at),{behavior:xt,top:Pt}})),c);let te=ht(S(p,B(H=>H.offsetBottom+H.bottom)),0);return L(S(x,B(H=>({height:H.visibleHeight,width:H.visibleWidth}))),b),{customScrollParent:I,data:U,deviation:V,footerHeight:r,gap:q,headerHeight:s,increaseViewportBy:t,initialItemCount:u,itemDimensions:z,overscan:n,restoreStateFrom:j,scrollBy:i,scrollContainerState:l,scrollHeight:O,scrollTo:c,scrollToIndex:F,scrollTop:d,smoothScrollTargetReached:f,totalCount:k,useWindowScroll:h,viewportDimensions:b,windowScrollContainerState:a,windowScrollTo:T,windowViewportRect:x,...g,gridState:p,horizontalDirection:Ft,initialTopMostItemIndex:gt,totalListHeight:te,...m,endReached:jt,propsReady:R,rangeChanged:Et,startReached:Qt,stateChanged:$,stateRestoreInProgress:X,...C}},it(Ze,It,pe,no,At,Xe,Gt));function fo(t,e,n){return oe(1,Ce((t+n)/(Ce(e)+n)))}function Fn(t,e,n,o){let{height:r}=n;if(void 0===r||0===o.length)return{bottom:0,top:0};let s=_e(t,e,n,o[0].index);return{bottom:_e(t,e,n,o[o.length-1].index)+r,top:s}}function _e(t,e,n,o){let s=Ce(o/fo(t.width,n.width,e.column)),i=s*n.height+oe(0,s-1)*e.row;return i>0?i+e.row:i}let Mr=Z(()=>{let t=w(v=>`Item ${v}`),e=w({}),n=w(null),o=w("virtuoso-grid-item"),r=w("virtuoso-grid-list"),s=w(tn),i=w("div"),l=w(Jt),c=(v,m=null)=>ht(S(e,B(g=>g[v]),rt()),m),d=w(!1),f=w(!1);return L(P(f),d),{components:e,computeItemKey:s,context:n,FooterComponent:c("Footer"),HeaderComponent:c("Header"),headerFooterTag:i,itemClassName:o,ItemComponent:c("Item","div"),itemContent:t,listClassName:r,ListComponent:c("List","div"),readyStateChanged:d,reportReadyState:f,ScrollerComponent:c("Scroller","div"),scrollerRef:l,ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),_r=Z(([t,e])=>({...t,...e}),it(Ar,Mr)),Nr=__TURBOPACK__imported__module__95184__.default.memo(function(){let e=nt("gridState"),n=nt("listClassName"),o=nt("itemClassName"),r=nt("itemContent"),s=nt("computeItemKey"),i=nt("isSeeking"),l=yt("scrollHeight"),c=nt("ItemComponent"),d=nt("ListComponent"),f=nt("ScrollSeekPlaceholder"),v=nt("context"),m=yt("itemDimensions"),g=yt("gap"),y=nt("log"),R=nt("stateRestoreInProgress"),I=yt("reportReadyState"),h=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>a=>{l(a.parentElement.parentElement.scrollHeight);let x=a.firstChild;if(null!==x){let{height:C,width:k}=x.getBoundingClientRect();m({height:C,width:k})}g({column:Vn("column-gap",getComputedStyle(a).columnGap,y),row:Vn("row-gap",getComputedStyle(a).rowGap,y)})},[l,m,g,y]),!0,!1);return be(()=>{e.itemHeight>0&&e.itemWidth>0&&I(!0)},[e]),R?null:(0,__TURBOPACK__imported__module__24514__.jsx)(d,{className:n,ref:h,...st(d,v),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(a=>{let T=s(a.index,a.data,v);return i?(0,__TURBOPACK__imported__module__24514__.jsx)(f,{...st(f,v),height:e.itemHeight,index:a.index,width:e.itemWidth},T):(0,__TURBOPACK__imported__module__95184__.createElement)(c,{...st(c,v),className:o,"data-index":a.index,key:T},r(a.index,a.data,v))})})}),Dr=__TURBOPACK__imported__module__95184__.default.memo(function(){let e=nt("HeaderComponent"),n=yt("headerHeight"),o=nt("headerFooterTag"),r=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>i=>{n(Ht(i,"height"))},[n]),!0,!1),s=nt("context");return null!=e?(0,__TURBOPACK__imported__module__24514__.jsx)(o,{ref:r,children:(0,__TURBOPACK__imported__module__24514__.jsx)(e,{...st(e,s)})}):null}),$r=__TURBOPACK__imported__module__95184__.default.memo(function(){let e=nt("FooterComponent"),n=yt("footerHeight"),o=nt("headerFooterTag"),r=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>i=>{n(Ht(i,"height"))},[n]),!0,!1),s=nt("context");return null!=e?(0,__TURBOPACK__imported__module__24514__.jsx)(o,{ref:r,children:(0,__TURBOPACK__imported__module__24514__.jsx)(e,{...st(e,s)})}):null}),Ur=({children:t})=>{let e=__TURBOPACK__imported__module__95184__.default.useContext(so),n=yt("itemDimensions"),o=yt("viewportDimensions"),r=Ot(__TURBOPACK__imported__module__95184__.default.useMemo(()=>s=>{o(s.getBoundingClientRect())},[o]),!0,!1);return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{e&&(o({height:e.viewportHeight,width:e.viewportWidth}),n({height:e.itemHeight,width:e.itemWidth}))},[e,o,n]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{ref:r,style:Ee(!1),children:t})},Kr=({children:t})=>{let e=__TURBOPACK__imported__module__95184__.default.useContext(so),n=yt("windowViewportRect"),o=yt("itemDimensions"),r=nt("customScrollParent"),s=nt("useWindowScroll"),i=Ue(n,r,!1);return __TURBOPACK__imported__module__95184__.default.useEffect(()=>{e&&(o({height:e.itemHeight,width:e.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:e.viewportHeight,visibleWidth:e.viewportWidth}))},[e,n,o]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{ref:i,style:en(!1,s),children:t})},{useEmitter:mo,useEmitterValue:nt,usePublisher:yt}=Je(_r,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},__TURBOPACK__imported__module__95184__.default.memo(function({...e}){let n=nt("useWindowScroll"),o=nt("customScrollParent"),r=o||n?Zr:Yr,s=o||n?Kr:Ur,i=nt("context");return(0,__TURBOPACK__imported__module__24514__.jsx)(r,{...e,...st(r,i),children:(0,__TURBOPACK__imported__module__24514__.jsxs)(s,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Dr,{}),(0,__TURBOPACK__imported__module__24514__.jsx)(Nr,{}),(0,__TURBOPACK__imported__module__24514__.jsx)($r,{})]})})})),Yr=nn({useEmitter:mo,useEmitterValue:nt,usePublisher:yt}),Zr=on({useEmitter:mo,useEmitterValue:nt,usePublisher:yt});function Vn(t,e,n){return"normal"!==e&&e?.endsWith("px")!==!0&&n(`${t} was not resolved to pixel value correctly`,e,2),"normal"===e?0:parseInt(e??"0",10)}let ArrowDown=(0,__TURBOPACK__imported__module__46914__.f)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),ArrowUpDown=(0,__TURBOPACK__imported__module__46914__.f)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),ChevronDown=(0,__TURBOPACK__imported__module__46914__.f)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Minus=(0,__TURBOPACK__imported__module__46914__.f)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),CircleMinus=(0,__TURBOPACK__imported__module__46914__.f)("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),CirclePlus=(0,__TURBOPACK__imported__module__46914__.f)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),virtuosoComponents={Table:({children,style})=>(0,__TURBOPACK__imported__module__24514__.jsx)("table",{className:"w-full table-fixed text-sm",style:style,children:children}),TableHead:({children,style,ref})=>(0,__TURBOPACK__imported__module__24514__.jsx)("thead",{ref:ref,className:"z-10 bg-background",style:style,children:children}),TableFoot:({children,style,ref})=>(0,__TURBOPACK__imported__module__24514__.jsx)("tfoot",{ref:ref,className:"z-10 bg-background",style:style,children:children})};function DiffTable(t0){let t5,onHeaderClick,t6,t7,t8,t9,t10,t11,t12,t13,t14,$=(0,__TURBOPACK__imported__module__36909__.c)(58),{summary,useCompressed,onRowSelect,selectedKey,nameHeading:t1,aHeading:t2,bHeading:t3,caption,mode:t4,searchQuery,emptyState,getLoadScope}=t0,nameHeading=void 0===t1?"Name":t1,aHeading=void 0===t2?"A":t2,bHeading=void 0===t3?"B":t3,mode=void 0===t4?"compare":t4,isSingle="single"===mode,[statusFilter,setStatusFilter]=(0,__TURBOPACK__imported__module__95184__.useState)("changes"),[sortColumn,setSortColumn]=(0,__TURBOPACK__imported__module__95184__.useState)(isSingle?"b":"delta"),[sortDirection,setSortDirection]=(0,__TURBOPACK__imported__module__95184__.useState)("desc"),[expandedPackages,setExpandedPackages]=(0,__TURBOPACK__imported__module__95184__.useState)(_temp3);$[0]===Symbol.for("react.memo_cache_sentinel")?(t5=packageName=>{setExpandedPackages(prev=>{let next=new Set(prev);return next.has(packageName)?next.delete(packageName):next.add(packageName),next})},$[0]=t5):t5=$[0];let togglePackage=t5;if($[1]!==expandedPackages||$[2]!==isSingle||$[3]!==searchQuery||$[4]!==sortColumn||$[5]!==sortDirection||$[6]!==statusFilter||$[7]!==summary.rows||$[8]!==useCompressed){let t7,sorted=sortRows(summary.rows,sortColumn,sortDirection,useCompressed);$[11]!==sortColumn?(t7=column=>{column===sortColumn?setSortDirection(_temp22):(setSortColumn(column),setSortDirection("name"===column?"asc":"desc"))},$[11]=sortColumn,$[12]=t7):t7=$[12],onHeaderClick=t7;let q=searchQuery?.trim().toLowerCase()??"";t6=expandRenderItems(buildRenderItems(sorted.filter(row=>{if(!isSingle&&"all"!==statusFilter&&("changes"===statusFilter&&"identical"===row.status||"changes"!==statusFilter&&row.status!==statusFilter))return!1;if(""!==q){let key=row.key.toLowerCase(),name=row.name.toLowerCase();if(!key.includes(q)&&!name.includes(q))return!1}return!0}),sortColumn,sortDirection,useCompressed),expandedPackages),$[1]=expandedPackages,$[2]=isSingle,$[3]=searchQuery,$[4]=sortColumn,$[5]=sortDirection,$[6]=statusFilter,$[7]=summary.rows,$[8]=useCompressed,$[9]=onHeaderClick,$[10]=t6}else onHeaderClick=$[9],t6=$[10];let visibleItems=t6,totalDelta=useCompressed?summary.totalCompressedB-summary.totalCompressedA:summary.totalB-summary.totalA;return $[13]!==caption?(t7=caption?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-wrap items-center gap-2 border-b border-border px-4 py-2",children:(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-sm font-medium text-foreground",children:caption})}):null,$[13]=caption,$[14]=t7):t7=$[14],$[15]===Symbol.for("react.memo_cache_sentinel")?(t8={top:600,bottom:600},$[15]=t8):t8=$[15],$[16]!==aHeading||$[17]!==bHeading||$[18]!==isSingle||$[19]!==nameHeading||$[20]!==onHeaderClick||$[21]!==sortColumn||$[22]!==sortDirection||$[23]!==statusFilter||$[24]!==summary.counts?(t9=()=>(0,__TURBOPACK__imported__module__24514__.jsxs)("tr",{className:"border-b border-border text-left text-xs uppercase text-muted-foreground",children:[(0,__TURBOPACK__imported__module__24514__.jsx)(SortableHeader,{label:nameHeading,column:"name",activeColumn:sortColumn,direction:sortDirection,onClick:onHeaderClick,align:"left",trailing:isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)(DiffStatusFilter,{value:statusFilter,onChange:setStatusFilter,counts:summary.counts})}),isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)(SortableHeader,{label:aHeading,column:"a",activeColumn:sortColumn,direction:sortDirection,onClick:onHeaderClick,title:"Historical build (before)",align:"right"}),(0,__TURBOPACK__imported__module__24514__.jsx)(SortableHeader,{label:isSingle?"Size":bHeading,column:"b",activeColumn:sortColumn,direction:sortDirection,onClick:onHeaderClick,title:isSingle?void 0:"Latest build (after)",align:"right"}),isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)(SortableHeader,{label:"Δ",column:"delta",activeColumn:sortColumn,direction:sortDirection,onClick:onHeaderClick,align:"right"})]}),$[16]=aHeading,$[17]=bHeading,$[18]=isSingle,$[19]=nameHeading,$[20]=onHeaderClick,$[21]=sortColumn,$[22]=sortDirection,$[23]=statusFilter,$[24]=summary.counts,$[25]=t9):t9=$[25],$[26]!==expandedPackages||$[27]!==getLoadScope||$[28]!==isSingle||$[29]!==mode||$[30]!==onRowSelect||$[31]!==selectedKey||$[32]!==useCompressed?(t10=(_,item)=>"group"===item.kind?(0,__TURBOPACK__imported__module__24514__.jsx)(DiffPackageHeaderRow,{packageName:item.packageName,rows:item.rows,useCompressed:useCompressed,isExpanded:expandedPackages.has(item.packageName),onToggle:()=>togglePackage(item.packageName),mode:mode}):(0,__TURBOPACK__imported__module__24514__.jsx)(DiffTableRow,{row:item.row,useCompressed:useCompressed,indent:item.indent,onClick:onRowSelect?()=>onRowSelect(item.row):void 0,isSelected:selectedKey===item.row.key,mode:mode,loadScope:isSingle?getLoadScope?.(item.row):void 0}),$[26]=expandedPackages,$[27]=getLoadScope,$[28]=isSingle,$[29]=mode,$[30]=onRowSelect,$[31]=selectedKey,$[32]=useCompressed,$[33]=t10):t10=$[33],$[34]!==isSingle||$[35]!==summary.totalA||$[36]!==summary.totalB||$[37]!==summary.totalCompressedA||$[38]!==summary.totalCompressedB||$[39]!==totalDelta||$[40]!==useCompressed?(t11=()=>(0,__TURBOPACK__imported__module__24514__.jsxs)("tr",{className:"border-t border-border text-xs font-medium",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:"px-4 py-2",children:"Total"}),isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:"whitespace-nowrap px-4 py-2 text-right font-mono",children:(0,__TURBOPACK__imported__module__1234__.L)(useCompressed?summary.totalCompressedA:summary.totalA)}),(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:"whitespace-nowrap px-4 py-2 text-right font-mono",children:(0,__TURBOPACK__imported__module__1234__.L)(useCompressed?summary.totalCompressedB:summary.totalB)}),isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:(0,__TURBOPACK__imported__module__1234__.c)("whitespace-nowrap px-4 py-2 text-right font-mono",totalDelta>0&&"text-delta-increase",totalDelta<0&&"text-delta-decrease"),children:(0,__TURBOPACK__imported__module__48696__.c)(totalDelta)})]}),$[34]=isSingle,$[35]=summary.totalA,$[36]=summary.totalB,$[37]=summary.totalCompressedA,$[38]=summary.totalCompressedB,$[39]=totalDelta,$[40]=useCompressed,$[41]=t11):t11=$[41],$[42]!==t10||$[43]!==t11||$[44]!==t9||$[45]!==visibleItems?(t12=(0,__TURBOPACK__imported__module__24514__.jsx)(ao,{className:"min-h-0 flex-1",data:visibleItems,increaseViewportBy:t8,components:virtuosoComponents,fixedHeaderContent:t9,itemContent:t10,fixedFooterContent:t11}),$[42]=t10,$[43]=t11,$[44]=t9,$[45]=visibleItems,$[46]=t12):t12=$[46],$[47]!==emptyState||$[48]!==isSingle||$[49]!==searchQuery||$[50]!==statusFilter||$[51]!==summary.rows||$[52]!==visibleItems.length?(t13=0===visibleItems.length?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"absolute inset-x-0 top-20 px-4 py-8 text-center text-sm text-muted-foreground",children:0===summary.rows.length&&emptyState?emptyState:isSingle||"changes"!==statusFilter||searchQuery?.trim()?"No matching rows.":"No changes to show."}):null,$[47]=emptyState,$[48]=isSingle,$[49]=searchQuery,$[50]=statusFilter,$[51]=summary.rows,$[52]=visibleItems.length,$[53]=t13):t13=$[53],$[54]!==t12||$[55]!==t13||$[56]!==t7?(t14=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"relative flex h-full flex-col",children:[t7,t12,t13]}),$[54]=t12,$[55]=t13,$[56]=t7,$[57]=t14):t14=$[57],t14}function _temp22(d){return"asc"===d?"desc":"asc"}function _temp3(){return new Set}function rowPackageName(row){return row.packageName}function aggregatePackage(rows){let agg={sizeA:0,sizeB:0,compressedA:0,compressedB:0,counts:{added:0,removed:0,changed:0,identical:0},total:0};for(let row of rows)agg.sizeA+=row.sizeA,agg.sizeB+=row.sizeB,agg.compressedA+=row.compressedA,agg.compressedB+=row.compressedB,agg.counts[row.status]+=1,agg.total+=1;return agg}function packageFullPath(packageName,rows){let fullPath=rows[0]?.key??packageName,packageSegment=`node_modules/${packageName}`,packageIndex=fullPath.lastIndexOf(packageSegment);return -1===packageIndex?fullPath:fullPath.slice(0,packageIndex+packageSegment.length)}function buildRenderItems(filtered,sortColumn,sortDirection,useCompressed){let items=[],groupIndex=new Map;for(let row of filtered){let pkg=rowPackageName(row);if(!pkg){items.push({kind:"row",row,indent:!1});continue}let existing=groupIndex.get(pkg);if(existing)existing.rows.push(row);else{let itemIndex=items.length,rows=[row];items.push({kind:"group",packageName:pkg,rows}),groupIndex.set(pkg,{rows,itemIndex})}}if(groupIndex.size>0)for(let{rows}of groupIndex.values()){let sortedChildren=sortRows(rows,sortColumn,sortDirection,useCompressed);rows.length=0,rows.push(...sortedChildren)}return sortRenderItems(items,sortColumn,sortDirection,useCompressed)}function sortRenderItems(items,column,direction,useCompressed){let sign="asc"===direction?1:-1,values=item=>{if("row"===item.kind){let row=item.row;return{name:row.name,a:useCompressed?row.compressedA:row.sizeA,b:useCompressed?row.compressedB:row.sizeB,delta:(0,__TURBOPACK__imported__module__48696__.D)(row,useCompressed),identical:"identical"===row.status}}let aggregate=aggregatePackage(item.rows),a=useCompressed?aggregate.compressedA:aggregate.sizeA,b=useCompressed?aggregate.compressedB:aggregate.sizeB;return{name:item.packageName,a,b,delta:b-a,identical:a===b}};return items.toSorted((left,right)=>{let a=values(left),b=values(right);if(a.identical&&!b.identical)return 1;if(b.identical&&!a.identical)return -1;if("name"===column){let comparison=a.name.localeCompare(b.name);if(0!==comparison)return comparison*sign}else{let comparison=(a[column]-b[column])*sign;if(0!==comparison)return comparison}return a.name.localeCompare(b.name)})}function expandRenderItems(items,expandedPackages){return items.flatMap(item=>"row"!==item.kind&&expandedPackages.has(item.packageName)?[item,...item.rows.map(row=>({kind:"row",row,indent:!0}))]:[item])}function DiffPackageHeaderRow(t0){let d,t2,t3,t4,t5,t6,t7,t8,t9,$=(0,__TURBOPACK__imported__module__36909__.c)(49),{packageName,rows,useCompressed,isExpanded,onToggle,mode:t1}=t0,isSingle="single"===(void 0===t1?"compare":t1);if($[0]!==isExpanded||$[1]!==isSingle||$[2]!==onToggle||$[3]!==packageName||$[4]!==rows||$[5]!==useCompressed){let t7,t8,t9,t10,t11,t12,t13,t15,agg=aggregatePackage(rows),a=useCompressed?agg.compressedA:agg.sizeA,b=useCompressed?agg.compressedB:agg.sizeB;d=b-a;let aggregateStatus=0===a&&b>0?"added":a>0&&0===b?"removed":a===b?"identical":"changed";$[12]===Symbol.for("react.memo_cache_sentinel")?(t7=(0,__TURBOPACK__imported__module__1234__.c)("w-full max-w-0 px-4 py-2 font-mono text-xs","cursor-pointer border-b border-border bg-muted/30 transition-colors hover:bg-muted/50"),$[12]=t7):t7=$[12],$[13]!==isExpanded?(t8=isExpanded?(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronDown,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground","aria-hidden":!0}):(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronRight,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground","aria-hidden":!0}),$[13]=isExpanded,$[14]=t8):t8=$[14],$[15]!==aggregateStatus||$[16]!==isSingle?(t9=isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)(StatusIcon,{status:aggregateStatus}),$[15]=aggregateStatus,$[16]=isSingle,$[17]=t9):t9=$[17],$[18]!==packageName||$[19]!==rows?(t10=packageFullPath(packageName,rows),$[18]=packageName,$[19]=rows,$[20]=t10):t10=$[20],$[21]===Symbol.for("react.memo_cache_sentinel")?(t11=(0,__TURBOPACK__imported__module__24514__.jsx)(Package,{className:"h-3 w-3","aria-hidden":!0}),$[21]=t11):t11=$[21],$[22]!==packageName?(t12=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"truncate font-mono normal-case text-foreground",children:packageName}),$[22]=packageName,$[23]=t12):t12=$[23],$[24]!==t10||$[25]!==t12?(t13=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"inline-flex min-w-0 shrink items-center gap-1 rounded border border-border bg-background/60 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",title:t10,children:[t11,t12]}),$[24]=t10,$[25]=t12,$[26]=t13):t13=$[26];let t14=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"ml-auto inline-flex shrink-0 items-center gap-2 whitespace-nowrap",children:[(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"text-muted-foreground",children:[agg.total," ",1===agg.total?"module":"modules"]}),isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)(PackageCountBreakdown,{counts:agg.counts})]});$[27]!==t13||$[28]!==t14||$[29]!==t8||$[30]!==t9?(t15=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[t8,t9,t13,t14]}),$[27]=t13,$[28]=t14,$[29]=t8,$[30]=t9,$[31]=t15):t15=$[31],$[32]!==isExpanded||$[33]!==onToggle||$[34]!==t15?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:t7,onClick:onToggle,"aria-expanded":isExpanded,children:t15}),$[32]=isExpanded,$[33]=onToggle,$[34]=t15,$[35]=t5):t5=$[35],t6=isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:"cursor-pointer whitespace-nowrap border-b border-border bg-muted/30 px-4 py-2 text-right font-mono text-xs text-muted-foreground transition-colors hover:bg-muted/50",onClick:onToggle,children:"added"===aggregateStatus?"—":(0,__TURBOPACK__imported__module__1234__.L)(a)}),t2="cursor-pointer whitespace-nowrap border-b border-border bg-muted/30 px-4 py-2 text-right font-mono text-xs text-muted-foreground transition-colors hover:bg-muted/50",t3=onToggle,t4="removed"===aggregateStatus?"—":(0,__TURBOPACK__imported__module__1234__.L)(b),$[0]=isExpanded,$[1]=isSingle,$[2]=onToggle,$[3]=packageName,$[4]=rows,$[5]=useCompressed,$[6]=d,$[7]=t2,$[8]=t3,$[9]=t4,$[10]=t5,$[11]=t6}else d=$[6],t2=$[7],t3=$[8],t4=$[9],t5=$[10],t6=$[11];return $[36]!==t2||$[37]!==t3||$[38]!==t4?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:t2,onClick:t3,children:t4}),$[36]=t2,$[37]=t3,$[38]=t4,$[39]=t7):t7=$[39],$[40]!==d||$[41]!==isSingle||$[42]!==onToggle?(t8=isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:(0,__TURBOPACK__imported__module__1234__.c)("cursor-pointer whitespace-nowrap border-b border-border bg-muted/30 px-4 py-2 text-right font-mono text-xs transition-colors hover:bg-muted/50",d>0&&"text-delta-increase",d<0&&"text-delta-decrease",0===d&&"text-muted-foreground"),onClick:onToggle,children:(0,__TURBOPACK__imported__module__48696__.c)(d)}),$[40]=d,$[41]=isSingle,$[42]=onToggle,$[43]=t8):t8=$[43],$[44]!==t5||$[45]!==t6||$[46]!==t7||$[47]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[t5,t6,t7,t8]}),$[44]=t5,$[45]=t6,$[46]=t7,$[47]=t8,$[48]=t9):t9=$[48],t9}function PackageCountBreakdown(t0){let t1,t2,t3,t4,t5,$=(0,__TURBOPACK__imported__module__36909__.c)(12),{counts}=t0;$[0]!==counts.added?(t1={label:"added",value:counts.added,className:"text-delta-increase"},$[0]=counts.added,$[1]=t1):t1=$[1],$[2]!==counts.removed?(t2={label:"removed",value:counts.removed,className:"text-delta-decrease"},$[2]=counts.removed,$[3]=t2):t2=$[3],$[4]!==counts.changed?(t3={label:"changed",value:counts.changed,className:"text-muted-foreground"},$[4]=counts.changed,$[5]=t3):t3=$[5],$[6]!==t1||$[7]!==t2||$[8]!==t3?(t4=[t1,t2,t3].filter(_temp31),$[6]=t1,$[7]=t2,$[8]=t3,$[9]=t4):t4=$[9];let visible=t4;return 0===visible.length?null:($[10]!==visible?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"inline-flex shrink-0 items-center gap-2 text-xs",children:visible.map(_temp4)}),$[10]=visible,$[11]=t5):t5=$[11],t5)}function _temp4(e_0,i){return(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"inline-flex items-center gap-2",children:[i>0?(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"}):null,(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:e_0.className,children:[e_0.value," ",e_0.label]})]},e_0.label)}function _temp31(e){return e.value>0}function sortRows(rows,column,direction,useCompressed){let sign="asc"===direction?1:-1,compareKey=row=>"name"===column?row.name:"a"===column?useCompressed?row.compressedA:row.sizeA:"b"===column?useCompressed?row.compressedB:row.sizeB:(0,__TURBOPACK__imported__module__48696__.D)(row,useCompressed);return rows.toSorted((a,b)=>{if("identical"===a.status&&"identical"!==b.status)return 1;if("identical"===b.status&&"identical"!==a.status)return -1;let av=compareKey(a),bv=compareKey(b);if("string"==typeof av&&"string"==typeof bv){let cmp=av.localeCompare(bv);if(0!==cmp)return cmp*sign}else if("number"==typeof av&&"number"==typeof bv&&av!==bv)return(av-bv)*sign;return a.key<b.key?-1:1})}function SortableHeader(t0){let t3,t6,t7,t10,t11,t13,t14,t15,t16,t17,$=(0,__TURBOPACK__imported__module__36909__.c)(32),{label,column,activeColumn,direction,onClick,title,align,trailing}=t0,isActive=column===activeColumn,Icon=isActive?"asc"===direction?ArrowUp:ArrowDown:ArrowUpDown,t1="name"!==column&&"w-28",t2="right"===align?"text-right":"text-left";$[0]!==t1||$[1]!==t2?(t3=(0,__TURBOPACK__imported__module__1234__.c)("px-4 py-2 font-medium",t1,t2),$[0]=t1,$[1]=t2,$[2]=t3):t3=$[2];let t4=isActive?"asc"===direction?"ascending":"descending":"none",t5="right"===align?"justify-end":"justify-start";$[3]!==t5?(t6=(0,__TURBOPACK__imported__module__1234__.c)("flex items-center gap-3",t5),$[3]=t5,$[4]=t6):t6=$[4],$[5]!==column||$[6]!==onClick?(t7=()=>onClick(column),$[5]=column,$[6]=onClick,$[7]=t7):t7=$[7];let t8="right"===align&&"flex-row-reverse",t9=isActive&&"text-foreground";$[8]!==t8||$[9]!==t9?(t10=(0,__TURBOPACK__imported__module__1234__.c)("inline-flex items-center gap-1 uppercase transition-colors hover:text-foreground",t8,t9),$[8]=t8,$[9]=t9,$[10]=t10):t10=$[10],$[11]!==label?(t11=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{children:label}),$[11]=label,$[12]=t11):t11=$[12];let t12=isActive?"opacity-100":"opacity-40";return $[13]!==t12?(t13=(0,__TURBOPACK__imported__module__1234__.c)("h-3 w-3 shrink-0",t12),$[13]=t12,$[14]=t13):t13=$[14],$[15]!==Icon||$[16]!==t13?(t14=(0,__TURBOPACK__imported__module__24514__.jsx)(Icon,{className:t13,"aria-hidden":!0}),$[15]=Icon,$[16]=t13,$[17]=t14):t14=$[17],$[18]!==t10||$[19]!==t11||$[20]!==t14||$[21]!==t7?(t15=(0,__TURBOPACK__imported__module__24514__.jsxs)("button",{type:"button",onClick:t7,className:t10,children:[t11,t14]}),$[18]=t10,$[19]=t11,$[20]=t14,$[21]=t7,$[22]=t15):t15=$[22],$[23]!==t15||$[24]!==t6||$[25]!==trailing?(t16=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:t6,children:[t15,trailing]}),$[23]=t15,$[24]=t6,$[25]=trailing,$[26]=t16):t16=$[26],$[27]!==t16||$[28]!==t3||$[29]!==t4||$[30]!==title?(t17=(0,__TURBOPACK__imported__module__24514__.jsx)("th",{className:t3,title:title,"aria-sort":t4,children:t16}),$[27]=t16,$[28]=t3,$[29]=t4,$[30]=title,$[31]=t17):t17=$[31],t17}function DiffTableRow(t0){let t4,$=(0,__TURBOPACK__imported__module__36909__.c)(18),{row,useCompressed,onClick,indent:t1,isSelected:t2,mode:t3,loadScope}=t0,indent=void 0!==t1&&t1,isSelected=void 0!==t2&&t2,isSingle="single"===(void 0===t3?"compare":t3);if($[0]!==indent||$[1]!==isSelected||$[2]!==isSingle||$[3]!==loadScope||$[4]!==onClick||$[5]!==row||$[6]!==useCompressed){let t5,t6,d=(0,__TURBOPACK__imported__module__48696__.D)(row,useCompressed),isInteractive=null!=onClick,cellClassName=(0,__TURBOPACK__imported__module__1234__.c)("border-b border-border transition-colors",isInteractive&&"cursor-pointer hover:bg-muted/50",indent&&"bg-muted/10",isSelected&&"bg-primary/10 hover:bg-primary/15");$[8]!==indent||$[9]!==isSingle||$[10]!==loadScope||$[11]!==row?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(DiffRowName,{row:row,hidePackageBadge:indent,hideStatusIcon:isSingle,loadScope:loadScope}),$[8]=indent,$[9]=isSingle,$[10]=loadScope,$[11]=row,$[12]=t5):t5=$[12],$[13]!==row.compressedB||$[14]!==row.sizeB||$[15]!==row.status||$[16]!==useCompressed?(t6="removed"===row.status?"—":(0,__TURBOPACK__imported__module__1234__.L)(useCompressed?row.compressedB:row.sizeB),$[13]=row.compressedB,$[14]=row.sizeB,$[15]=row.status,$[16]=useCompressed,$[17]=t6):t6=$[17],t4=(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:(0,__TURBOPACK__imported__module__1234__.c)(cellClassName,"group w-full max-w-0 py-2 font-mono text-xs",indent?"pl-12 pr-4":"px-4"),onClick:onClick,children:t5}),isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:(0,__TURBOPACK__imported__module__1234__.c)(cellClassName,"whitespace-nowrap px-4 py-2 text-right font-mono text-xs text-muted-foreground"),onClick:onClick,children:"added"===row.status?"—":(0,__TURBOPACK__imported__module__1234__.L)(useCompressed?row.compressedA:row.sizeA)}),(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:(0,__TURBOPACK__imported__module__1234__.c)(cellClassName,"whitespace-nowrap px-4 py-2 text-right font-mono text-xs text-muted-foreground"),onClick:onClick,children:t6}),isSingle?null:(0,__TURBOPACK__imported__module__24514__.jsx)("td",{className:(0,__TURBOPACK__imported__module__1234__.c)("whitespace-nowrap px-4 py-2 text-right font-mono text-xs",cellClassName,d>0&&"text-delta-increase",d<0&&"text-delta-decrease",0===d&&"text-muted-foreground"),onClick:onClick,children:(0,__TURBOPACK__imported__module__48696__.c)(d)})]}),$[0]=indent,$[1]=isSelected,$[2]=isSingle,$[3]=loadScope,$[4]=onClick,$[5]=row,$[6]=useCompressed,$[7]=t4}else t4=$[7];return t4}function DiffRowName(t0){let t3,t4,t5,t6,t7,t8,$=(0,__TURBOPACK__imported__module__36909__.c)(59),{row,hidePackageBadge:t1,hideStatusIcon:t2,loadScope}=t0,hideStatusIcon=void 0!==t2&&t2,pathKind=row.pathKind,packageName=row.packageName,client=!0===row.client,server=!0===row.server;if("package"===pathKind&&packageName){let t3,t4,t5,t6,t7,t8,t9,t10,t11,t12;$[0]!==packageName||$[1]!==row.name?(t3=row.name.startsWith(`${packageName}/`)?row.name.slice(packageName.length+1):"",$[0]=packageName,$[1]=row.name,$[2]=t3):t3=$[2];let rest=t3;if(void 0!==t1&&t1){let t4,t6,t7,t8,t9;$[3]!==hideStatusIcon||$[4]!==row.status?(t4=hideStatusIcon?null:(0,__TURBOPACK__imported__module__24514__.jsx)(StatusIcon,{status:row.status}),$[3]=hideStatusIcon,$[4]=row.status,$[5]=t4):t4=$[5];let t5=rest||packageName;return $[6]!==t5?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"truncate text-muted-foreground",children:t5}),$[6]=t5,$[7]=t6):t6=$[7],$[8]!==loadScope?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)(LoadScopeBadge,{scope:loadScope}),$[8]=loadScope,$[9]=t7):t7=$[9],$[10]!==client||$[11]!==server?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)(EnvBadges,{client:client,server:server}),$[10]=client,$[11]=server,$[12]=t8):t8=$[12],$[13]!==row.key||$[14]!==t4||$[15]!==t6||$[16]!==t7||$[17]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"flex min-w-0 items-center gap-2",title:row.key,children:[t4,t6,t7,t8]}),$[13]=row.key,$[14]=t4,$[15]=t6,$[16]=t7,$[17]=t8,$[18]=t9):t9=$[18],t9}return $[19]===Symbol.for("react.memo_cache_sentinel")?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronSpacer,{}),$[19]=t4):t4=$[19],$[20]!==hideStatusIcon||$[21]!==row.status?(t5=hideStatusIcon?null:(0,__TURBOPACK__imported__module__24514__.jsx)(StatusIcon,{status:row.status}),$[20]=hideStatusIcon,$[21]=row.status,$[22]=t5):t5=$[22],$[23]===Symbol.for("react.memo_cache_sentinel")?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)(Package,{className:"h-3 w-3","aria-hidden":!0}),$[23]=t6):t6=$[23],$[24]!==packageName?(t7=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1 rounded border border-border bg-muted/40 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:[t6,(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"font-mono normal-case text-foreground",children:packageName})]}),$[24]=packageName,$[25]=t7):t7=$[25],$[26]!==rest?(t8=rest?(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"truncate text-muted-foreground",children:rest}):null,$[26]=rest,$[27]=t8):t8=$[27],$[28]!==t7||$[29]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 truncate",children:[t7,t8]}),$[28]=t7,$[29]=t8,$[30]=t9):t9=$[30],$[31]!==loadScope?(t10=(0,__TURBOPACK__imported__module__24514__.jsx)(LoadScopeBadge,{scope:loadScope}),$[31]=loadScope,$[32]=t10):t10=$[32],$[33]!==client||$[34]!==server?(t11=(0,__TURBOPACK__imported__module__24514__.jsx)(EnvBadges,{client:client,server:server}),$[33]=client,$[34]=server,$[35]=t11):t11=$[35],$[36]!==row.key||$[37]!==t10||$[38]!==t11||$[39]!==t5||$[40]!==t9?(t12=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"flex min-w-0 items-center gap-2",title:row.key,children:[t4,t5,t9,t10,t11]}),$[36]=row.key,$[37]=t10,$[38]=t11,$[39]=t5,$[40]=t9,$[41]=t12):t12=$[41],t12}return $[42]===Symbol.for("react.memo_cache_sentinel")?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronSpacer,{}),$[42]=t3):t3=$[42],$[43]!==hideStatusIcon||$[44]!==row.status?(t4=hideStatusIcon?null:(0,__TURBOPACK__imported__module__24514__.jsx)(StatusIcon,{status:row.status}),$[43]=hideStatusIcon,$[44]=row.status,$[45]=t4):t4=$[45],$[46]!==row.key||$[47]!==row.name?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"truncate",title:row.key,children:row.name}),$[46]=row.key,$[47]=row.name,$[48]=t5):t5=$[48],$[49]!==loadScope?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)(LoadScopeBadge,{scope:loadScope}),$[49]=loadScope,$[50]=t6):t6=$[50],$[51]!==client||$[52]!==server?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)(EnvBadges,{client:client,server:server}),$[51]=client,$[52]=server,$[53]=t7):t7=$[53],$[54]!==t4||$[55]!==t5||$[56]!==t6||$[57]!==t7?(t8=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"flex items-center gap-2",children:[t3,t4,t5,t6,t7]}),$[54]=t4,$[55]=t5,$[56]=t6,$[57]=t7,$[58]=t8):t8=$[58],t8}function LoadScopeBadge(t0){let t2,t4,t5,$=(0,__TURBOPACK__imported__module__36909__.c)(9),{scope}=t0;if("async"!==scope&&"mixed"!==scope)return null;let label="async"===scope?"async":"initial + async",title="async"===scope?"Reachable only through an async import boundary; it may still be requested during the initial render":"Reachable through both initial and async import paths",t1="async"===scope&&"bg-[repeating-linear-gradient(135deg,transparent_0,transparent_3px,currentColor_3px,currentColor_4px)] bg-[length:7px_7px]";$[0]!==t1?(t2=(0,__TURBOPACK__imported__module__1234__.c)("shrink-0 text-[10px] font-normal",t1),$[0]=t1,$[1]=t2):t2=$[1];let t3="async"===scope?"bg-background/90 px-0.5":"";return $[2]!==label||$[3]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:t3,children:label}),$[2]=label,$[3]=t3,$[4]=t4):t4=$[4],$[5]!==t2||$[6]!==t4||$[7]!==title?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"outline",className:t2,title:title,children:t4}),$[5]=t2,$[6]=t4,$[7]=title,$[8]=t5):t5=$[8],t5}function ChevronSpacer(){let t0,$=(0,__TURBOPACK__imported__module__36909__.c)(1);return $[0]===Symbol.for("react.memo_cache_sentinel")?(t0=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),$[0]=t0):t0=$[0],t0}function EnvBadges(t0){let t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(8),{client,server}=t0;return client||server?($[0]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__1234__.c)("invisible inline-flex shrink-0 items-center gap-1","group-hover:visible"),$[0]=t1):t1=$[0],$[1]!==client?(t2=client?(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"client",className:"text-[10px]",children:"client"}):null,$[1]=client,$[2]=t2):t2=$[2],$[3]!==server?(t3=server?(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"server",className:"text-[10px]",children:"server"}):null,$[3]=server,$[4]=t3):t3=$[4],$[5]!==t2||$[6]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:t1,"aria-hidden":!0,children:[t2,t3]}),$[5]=t2,$[6]=t3,$[7]=t4):t4=$[7],t4):null}function StatusIcon(t0){let t1,$=(0,__TURBOPACK__imported__module__36909__.c)(4),{status}=t0;if("added"===status){let t1;return $[0]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(CirclePlus,{className:"h-3.5 w-3.5 shrink-0 text-delta-increase","aria-label":"Added"}),$[0]=t1):t1=$[0],t1}if("removed"===status){let t1;return $[1]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(CircleMinus,{className:"h-3.5 w-3.5 shrink-0 text-delta-decrease","aria-label":"Removed"}),$[1]=t1):t1=$[1],t1}if("changed"===status){let t1;return $[2]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(ArrowUpDown,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground","aria-label":"Changed"}),$[2]=t1):t1=$[2],t1}return $[3]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(Minus,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground","aria-label":"Identical"}),$[3]=t1):t1=$[3],t1}function DiffStatusFilter(t0){let t2,t3,t4,t5,t6,t7,t8,$=(0,__TURBOPACK__imported__module__36909__.c)(20),{value,onChange,counts}=t0,total=counts.added+counts.removed+counts.changed+counts.identical,t1=total-counts.identical;$[0]!==t1?(t2={value:"changes",label:"Changes",count:t1},$[0]=t1,$[1]=t2):t2=$[1],$[2]!==total?(t3={value:"all",label:"All",count:total},$[2]=total,$[3]=t3):t3=$[3],$[4]!==counts.added?(t4={value:"added",label:"Added",count:counts.added},$[4]=counts.added,$[5]=t4):t4=$[5],$[6]!==counts.removed?(t5={value:"removed",label:"Removed",count:counts.removed},$[6]=counts.removed,$[7]=t5):t5=$[7],$[8]!==counts.changed?(t6={value:"changed",label:"Changed",count:counts.changed},$[8]=counts.changed,$[9]=t6):t6=$[9],$[10]!==t2||$[11]!==t3||$[12]!==t4||$[13]!==t5||$[14]!==t6?(t7=[t2,t3,t4,t5,t6],$[10]=t2,$[11]=t3,$[12]=t4,$[13]=t5,$[14]=t6,$[15]=t7):t7=$[15];let options=t7;return $[16]!==onChange||$[17]!==options||$[18]!==value?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex items-center gap-1",children:options.map(opt=>(0,__TURBOPACK__imported__module__24514__.jsxs)("button",{type:"button",onClick:()=>onChange(opt.value),className:(0,__TURBOPACK__imported__module__1234__.c)("rounded px-2 py-0.5 text-xs",value===opt.value?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:[opt.label,(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"secondary",className:"ml-1.5 px-1 py-0 text-[10px]",children:opt.count})]},opt.value))}),$[16]=onChange,$[17]=options,$[18]=value,$[19]=t8):t8=$[19],t8}function _extends(){return(_extends=Object.assign.bind()).apply(null,arguments)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,_setPrototypeOf(t,o)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _isNativeFunction(t){try{return -1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&_setPrototypeOf(p,r.prototype),p}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t)})(t)}var PolishedError=function(_Error){function PolishedError(code){return _assertThisInitialized(_Error.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+code+" for more information.")||this)}return _inheritsLoose(PolishedError,_Error),PolishedError}(_wrapNativeSuper(Error));function endsWith(string,suffix){return string.substr(-suffix.length)===suffix}var cssRegex$1=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function stripUnit(value){return"string"!=typeof value?value:value.match(cssRegex$1)?parseFloat(value):value}var pixelsto=function pxtoFactory(to){return function(pxval,base){void 0===base&&(base="16px");var newPxval=pxval,newBase=base;if("string"==typeof pxval){if(!endsWith(pxval,"px"))throw new PolishedError(69,to,pxval);newPxval=stripUnit(pxval)}if("string"==typeof base){if(!endsWith(base,"px"))throw new PolishedError(70,to,base);newBase=stripUnit(base)}if("string"==typeof newPxval)throw new PolishedError(71,pxval,to);if("string"==typeof newBase)throw new PolishedError(72,base,to);return""+newPxval/newBase+to}};function colorToInt(color){return Math.round(255*color)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert){if(void 0===convert&&(convert=convertToInt),0===saturation)return convert(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}pixelsto("em"),pixelsto("rem");var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=nameToHex(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha:alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color){var hue,red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)if(void 0!==color.alpha)return{hue:0,saturation:0,lightness:lightness,alpha:color.alpha};else return{hue:0,saturation:0,lightness:lightness};var delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+6*(green<blue);break;case green:hue=(blue-red)/delta+2;break;default:hue=(red-green)/delta+4}return(hue*=60,void 0!==color.alpha)?{hue:hue,saturation:saturation,lightness:lightness,alpha:color.alpha}:{hue:hue,saturation:saturation,lightness:lightness}}function parseToHsl(color){return rgbToHsl(parseToRgb(color))}var reduceHexValue$1=function reduceHexValue(value){return 7===value.length&&value[1]===value[2]&&value[3]===value[4]&&value[5]===value[6]?"#"+value[1]+value[3]+value[5]:value};function numberToHex(value){var hex=value.toString(16);return 1===hex.length?"0"+hex:hex}function colorToHex(color){return numberToHex(Math.round(255*color))}function convertToHex(red,green,blue){return reduceHexValue$1("#"+colorToHex(red)+colorToHex(green)+colorToHex(blue))}function hsl(value,saturation,lightness){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness)return hslToRgb(value,saturation,lightness,convertToHex);if("object"==typeof value&&void 0===saturation&&void 0===lightness){var hue;return hue=value.hue,hslToRgb(hue,value.saturation,value.lightness,convertToHex)}throw new PolishedError(1)}function hsla(value,saturation,lightness,alpha){if("number"==typeof value&&"number"==typeof saturation&&"number"==typeof lightness&&"number"==typeof alpha)return alpha>=1?hslToRgb(value,saturation,lightness,convertToHex):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if("object"==typeof value&&void 0===saturation&&void 0===lightness&&void 0===alpha){var hue;return value.alpha>=1?(hue=value.hue,hslToRgb(hue,value.saturation,value.lightness,convertToHex)):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")"}throw new PolishedError(2)}function rgb(value,green,blue){if("number"==typeof value&&"number"==typeof green&&"number"==typeof blue)return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if("object"==typeof value&&void 0===green&&void 0===blue)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if("string"==typeof firstValue&&"number"==typeof secondValue){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}if("number"==typeof firstValue&&"number"==typeof secondValue&&"number"==typeof thirdValue&&"number"==typeof fourthValue)return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"==typeof firstValue&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}function toColorString(color){if("object"!=typeof color)throw new PolishedError(8);if("number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha)return rgba(color);if("number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||void 0===color.alpha))return rgb(color);if("number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha)return hsla(color);if("number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||void 0===color.alpha))return hsl(color);throw new PolishedError(8)}function curried(f,length,acc){return function fn(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}curry(function adjustHue(degree,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{hue:hslColor.hue+parseFloat(degree)}))});var curriedDarken=curry(function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))});function getLuminance(color){if("transparent"===color)return 0;var rgbColor=parseToRgb(color),_Object$keys$map=Object.keys(rgbColor).map(function(key){var channel=rgbColor[key]/255;return channel<=.03928?channel/12.92:Math.pow((channel+.055)/1.055,2.4)});return parseFloat((.2126*_Object$keys$map[0]+.7152*_Object$keys$map[1]+.0722*_Object$keys$map[2]).toFixed(3))}function getContrast(color1,color2){var luminance1=getLuminance(color1),luminance2=getLuminance(color2);return parseFloat((luminance1>luminance2?(luminance1+.05)/(luminance2+.05):(luminance2+.05)/(luminance1+.05)).toFixed(2))}curry(function desaturate(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{saturation:guard(0,1,hslColor.saturation-parseFloat(amount))}))});var curriedLighten=curry(function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}),curriedMix=curry(function mix(weight,color,otherColor){if("transparent"===color)return otherColor;if("transparent"===otherColor)return color;if(0===weight)return otherColor;var parsedColor1=parseToRgb(color),color1=_extends({},parsedColor1,{alpha:"number"==typeof parsedColor1.alpha?parsedColor1.alpha:1}),parsedColor2=parseToRgb(otherColor),color2=_extends({},parsedColor2,{alpha:"number"==typeof parsedColor2.alpha?parsedColor2.alpha:1}),alphaDelta=color1.alpha-color2.alpha,x=2*parseFloat(weight)-1,weight1=((x*alphaDelta==-1?x:x+alphaDelta)/(1+x*alphaDelta)+1)/2,weight2=1-weight1;return rgba({red:Math.floor(color1.red*weight1+color2.red*weight2),green:Math.floor(color1.green*weight1+color2.green*weight2),blue:Math.floor(color1.blue*weight1+color2.blue*weight2),alpha:color1.alpha*parseFloat(weight)+color2.alpha*(1-parseFloat(weight))})});curry(function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color),alpha="number"==typeof parsedColor.alpha?parsedColor.alpha:1;return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*alpha+100*parseFloat(amount))/100)}))});var defaultReturnIfLightColor="#000",defaultReturnIfDarkColor="#fff";function readableColor(color,returnIfLightColor,returnIfDarkColor,strict){void 0===returnIfLightColor&&(returnIfLightColor=defaultReturnIfLightColor),void 0===returnIfDarkColor&&(returnIfDarkColor=defaultReturnIfDarkColor),void 0===strict&&(strict=!0);var isColorLight=getLuminance(color)>.179,preferredReturnColor=isColorLight?returnIfLightColor:returnIfDarkColor;return!strict||getContrast(color,preferredReturnColor)>=4.5?preferredReturnColor:isColorLight?defaultReturnIfLightColor:defaultReturnIfDarkColor}function layoutTreemap(sizes,rect){if(0===sizes.length)return[];if(1===sizes.length)return[rect];let totalSize=sizes.reduce((a,b)=>a+b,0),normalizedSizes=sizes.map(s=>s/totalSize*rect.width*rect.height),result=[],remaining=[...normalizedSizes],currentRect={...rect},totalRemaining=remaining.reduce((a,b)=>a+b,0);for(;remaining.length>1;){let vertical=currentRect.width>=currentRect.height,picked=[],sum=0;for(let size of remaining)if(picked.push(size),sum+=size,vertical){if(currentRect.width*sum/totalRemaining>currentRect.height/picked.length*.9)break}else if(currentRect.height*sum/totalRemaining>currentRect.width/picked.length*.9)break;0===picked.length&&(picked.push(remaining[0]),sum=remaining[0]);let spaceRatio=sum/totalRemaining;if(totalRemaining-=sum,vertical){let rowWidth=Math.round(spaceRatio*currentRect.width),offsetY=0;for(let i=0;i<picked.length;i++){let size=picked[i],itemHeight=i===picked.length-1?Math.round(currentRect.height-offsetY):Math.round(size/sum*currentRect.height);result.push({x:Math.round(currentRect.x),y:Math.round(currentRect.y+offsetY),width:rowWidth,height:itemHeight}),offsetY+=itemHeight}currentRect={x:Math.round(currentRect.x+rowWidth),y:Math.round(currentRect.y),width:Math.round(currentRect.width-rowWidth),height:Math.round(currentRect.height)}}else{let rowHeight=Math.round(spaceRatio*currentRect.height),offsetX=0;for(let i=0;i<picked.length;i++){let size=picked[i],itemWidth=i===picked.length-1?Math.round(currentRect.width-offsetX):Math.round(size/sum*currentRect.width);result.push({x:Math.round(currentRect.x+offsetX),y:Math.round(currentRect.y),width:itemWidth,height:rowHeight}),offsetX+=itemWidth}currentRect={x:Math.round(currentRect.x),y:Math.round(currentRect.y+rowHeight),width:Math.round(currentRect.width),height:Math.round(currentRect.height-rowHeight)}}remaining=remaining.slice(picked.length)}return 1===remaining.length&&result.push(currentRect),result}function createDiffTreemapLayout(rows,useCompressed){let nextIndex=0,root={index:nextIndex++,name:"All Changed Modules",parentIndex:null,size:0,children:[]},nodeByIndex=new Map([[root.index,root]]),directoryByPath=new Map([["",root]]),rowBySourceIndex=new Map,sourceIndexByKey=new Map;for(let row of rows){let change=(0,__TURBOPACK__imported__module__48696__.D)(row,useCompressed);if(0===change)continue;let parts=isNextBuildOutput(row.key)?["Unattributed output",getBasename(row.key)]:row.key.split("/").filter(Boolean),parent=root,directoryPath="";for(let part of parts.slice(0,-1)){directoryPath+=`/${part}`;let directory=directoryByPath.get(directoryPath);directory||(directory={index:nextIndex++,name:`${part}/`,parentIndex:parent.index,size:0,children:[]},parent.children.push(directory),directoryByPath.set(directoryPath,directory),nodeByIndex.set(directory.index,directory)),parent=directory}let leaf={index:nextIndex++,name:parts.at(-1)??row.name,parentIndex:parent.index,size:Math.abs(change),row,children:[]};parent.children.push(leaf),nodeByIndex.set(leaf.index,leaf),rowBySourceIndex.set(leaf.index,row),sourceIndexByKey.set(row.key,leaf.index)}function aggregateSize(node){return node.row||(node.size=node.children.reduce((total,child)=>total+aggregateSize(child),0)),node.size}function computeLayout(node,rect){if(node.row)return{name:node.name,size:node.size,type:"file",rect,sourceIndex:node.index,specialModuleType:null,client:node.row.client,server:node.row.server};let titleBarHeight=Math.round(Math.max(12,Math.min(24,.1*rect.height)));if(rect.height<30)return{name:node.name,size:node.size,type:"collapsed-directory",rect,titleBarHeight,children:[],itemCount:countLeaves(node),sourceIndex:node.index,specialModuleType:null};let contentRect={x:Math.round(rect.x),y:Math.round(rect.y+titleBarHeight),width:Math.max(0,Math.round(rect.width-2)),height:Math.max(0,Math.round(rect.height-titleBarHeight-2))},children=[...node.children].sort((a,b)=>b.size-a.size),childRects=layoutTreemap(children.map(child=>child.size),contentRect);return{name:node.name,size:node.size,type:"directory",rect,titleBarHeight,children:children.map((child,index)=>computeLayout(child,childRects[index])),sourceIndex:node.index,specialModuleType:null}}return aggregateSize(root),{rootIndex:root.index,rowBySourceIndex,sourceIndexByKey,getParentSourceIndex:sourceIndex=>nodeByIndex.get(sourceIndex)?.parentIndex??null,getSourceName:sourceIndex=>nodeByIndex.get(sourceIndex)?.name??"",computeLayout:(sourceIndex,rect)=>computeLayout(nodeByIndex.get(sourceIndex)??root,rect)}}function countLeaves(node){return node.row?1:node.children.reduce((total,child)=>total+countLeaves(child),0)}function isNextBuildOutput(sourcePath){return sourcePath.startsWith("[project]/.next/")}function getBasename(sourcePath){return sourcePath.slice(sourcePath.lastIndexOf("/")+1)}curry(function saturate(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{saturation:guard(0,1,hslColor.saturation+parseFloat(amount))}))}),curry(function setHue(hue,color){return"transparent"===color?color:toColorString(_extends({},parseToHsl(color),{hue:parseFloat(hue)}))}),curry(function setLightness(lightness,color){return"transparent"===color?color:toColorString(_extends({},parseToHsl(color),{lightness:parseFloat(lightness)}))}),curry(function setSaturation(saturation,color){return"transparent"===color?color:toColorString(_extends({},parseToHsl(color),{saturation:parseFloat(saturation)}))}),curry(function shade(percentage,color){return"transparent"===color?color:curriedMix(parseFloat(percentage),"rgb(0, 0, 0)",color)}),curry(function tint(percentage,color){return"transparent"===color?color:curriedMix(parseFloat(percentage),"rgb(255, 255, 255)",color)}),curry(function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color),alpha="number"==typeof parsedColor.alpha?parsedColor.alpha:1;return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*alpha-100*parseFloat(amount)).toFixed(2)/100)}))});var SizeMode1=((SizeMode={}).Compressed="compressed",SizeMode.Uncompressed="uncompressed",SizeMode);function createAnalyzeTreemapSource(analyzeData){return{rootIndex:analyzeData.sourceRoots()[0]??0,getParentSourceIndex:sourceIndex=>analyzeData.source(sourceIndex)?.parent_source_index??null,getSourceName:sourceIndex=>analyzeData.source(sourceIndex)?.path??"",computeLayout:(sourceIndex,rect,filterSource,sizeMode)=>computeTreemapLayoutFromAnalyze(analyzeData,sourceIndex,rect,filterSource,sizeMode)}}function precomputeSourceMetadata(analyzeData,filterSource){let sourceCount=analyzeData.sourceCount(),metadata=Array(sourceCount);for(let i=sourceCount-1;i>=0;i--){let children=analyzeData.sourceChildren(i),ownSize=analyzeData.getOwnSizes(i);0===children.length?metadata[i]={size:ownSize.size,compressedSize:ownSize.compressedSize,filtered:!!filterSource&&!filterSource(i)}:metadata[i]={filtered:!0,size:ownSize.size,compressedSize:ownSize.compressedSize}}function processDirectory(idx){let children=analyzeData.sourceChildren(idx);if(0===children.length)return;let totalUncompressedSize=metadata[idx].size,totalCompressedSize=metadata[idx].compressedSize,hasVisibleChild=!1;for(let childIdx of children)processDirectory(childIdx),metadata[childIdx].filtered||(totalUncompressedSize+=metadata[childIdx].size,totalCompressedSize+=metadata[childIdx].compressedSize,hasVisibleChild=!0);metadata[idx].size=totalUncompressedSize,metadata[idx].compressedSize=totalCompressedSize,metadata[idx].filtered=!hasVisibleChild}for(let rootIdx of analyzeData.sourceRoots())processDirectory(rootIdx);return metadata}function computeTreemapLayoutFromAnalyzeInternal(analyzeData,sourceIndex,foldedPath,rect,metadata,sizeMode){let source=analyzeData.source(sourceIndex);if(!source)throw Error(`Source at index ${sourceIndex} not found`);let isDirectory=source.path.endsWith("/")||!source.path,childrenIndices=analyzeData.sourceChildren(sourceIndex);if(1===childrenIndices.length&&isDirectory&&(foldedPath+source.path).length<=40){let childIndex=childrenIndices[0],child=analyzeData.source(childIndex);if(child?.path.endsWith("/"))return computeTreemapLayoutFromAnalyzeInternal(analyzeData,childIndex,foldedPath+source.path,rect,metadata,sizeMode)}let totalSize="compressed"===sizeMode?metadata[sourceIndex].compressedSize:metadata[sourceIndex].size;if(!isDirectory||0===childrenIndices.length)return{name:source.path,size:totalSize,type:"file",rect,sourceIndex,specialModuleType:(0,__TURBOPACK__imported__module__1234__.v)(analyzeData,sourceIndex),...analyzeData.getSourceFlags(sourceIndex)};let directoryName=foldedPath+source.path||"All Route Modules",titleBarHeight=Math.round(Math.max(12,Math.min(24,.1*rect.height))),isCollapsed=rect.height<30,contentRect={x:Math.round(rect.x),y:Math.round(rect.y+titleBarHeight),width:Math.max(0,Math.round(rect.width-2)),height:Math.max(0,Math.round(rect.height-titleBarHeight-2))};if(isCollapsed){function countDescendants(idx){let children=analyzeData.sourceChildren(idx);return 0===children.length?1:children.reduce((sum,childIdx)=>sum+countDescendants(childIdx),0)}return{name:directoryName,size:totalSize,type:"collapsed-directory",rect,titleBarHeight,itemCount:countDescendants(sourceIndex),children:[],sourceIndex,specialModuleType:null}}let childrenData=[];for(let childIndex of childrenIndices){if(!analyzeData.source(childIndex)||metadata[childIndex].filtered)continue;let childSize="compressed"===sizeMode?metadata[childIndex].compressedSize:metadata[childIndex].size;childrenData.push({index:childIndex,size:childSize||1})}if(0===childrenData.length)return{name:directoryName,size:totalSize,type:"directory",rect,titleBarHeight,children:[],sourceIndex,specialModuleType:null};childrenData.sort((a,b)=>b.size-a.size);let childRects=layoutTreemap(childrenData.map(c=>c.size),contentRect);return{name:directoryName,size:totalSize,type:"directory",rect,titleBarHeight,children:childrenData.map((child,i)=>computeTreemapLayoutFromAnalyzeInternal(analyzeData,child.index,"",childRects[i],metadata,sizeMode)),sourceIndex,specialModuleType:null}}function computeTreemapLayoutFromAnalyze(analyzeData,sourceIndex,rect,filterSource,sizeMode="compressed"){let metadata=precomputeSourceMetadata(analyzeData,filterSource);return computeTreemapLayoutFromAnalyzeInternal(analyzeData,sourceIndex,"",rect,metadata,sizeMode)}var __TURBOPACK__imported__module__78439__=__turbopack_context__.i(78439);let UI_FONT="system-ui, sans-serif";function getFileColor(node,colors){let{js,css,json,asset,client,traced,specialModuleType}=node;if(isPolyfill(specialModuleType))return colors.polyfill;let color="#9ca3af";return js&&(color="#4682b4"),css&&(color="#8b7d9e"),json&&(color="#297a3a"),asset&&(color="#da2f35"),!client&&(color=curriedDarken(.3,color),traced&&(color=curriedLighten(.15,color))),color}function isPolyfill(specialModuleType){return specialModuleType===__TURBOPACK__imported__module__22442__.f.POLYFILL_MODULE||specialModuleType===__TURBOPACK__imported__module__22442__.f.POLYFILL_NOMODULE}function calculateTitleFontSizes(titleBarHeight){let titleFontSize=Math.min(10,.5*titleBarHeight),sizeFontSize=Math.min(9,titleFontSize-2);return{titleFontSize,sizeFontSize}}let textWidthCache=new Map;function measureTextCached(ctx,text){let cacheKey=`${ctx.font}|${text}`,width=textWidthCache.get(cacheKey);if(void 0!==width)return textWidthCache.delete(cacheKey),textWidthCache.set(cacheKey,width),width;if(width=ctx.measureText(text).width,textWidthCache.size>=3e4){let firstKey=textWidthCache.keys().next().value;void 0!==firstKey&&textWidthCache.delete(firstKey)}return textWidthCache.set(cacheKey,width),width}function truncateTextWithEllipsisIfNeeded(ctx,text,maxWidth){let ellipsisWidth=measureTextCached(ctx,"...");if(measureTextCached(ctx,text)<=maxWidth)return text;let left=0,right=text.length,bestLength=0;for(;left<=right;){let mid=Math.floor((left+right)/2),truncated=text.slice(0,mid);ctx.measureText(truncated).width+ellipsisWidth<=maxWidth?(bestLength=mid,left=mid+1):right=mid-1}return bestLength>0?`${text.slice(0,bestLength)}...`:"..."}function findNodeAtPosition(node,x,y){let{rect}=node;if(x<rect.x||x>rect.x+rect.width||y<rect.y||y>rect.y+rect.height)return null;if("collapsed-directory"===node.type)return node;if("directory"===node.type){let titleBarHeight=node.titleBarHeight||0;if(y>=rect.y&&y<=rect.y+titleBarHeight)return node}if(node.children)for(let child of node.children){let found=findNodeAtPosition(child,x,y);if(found)return found}return node}function searchOriginalTreeForMatch(node,currentPath,searchQuery){let path=[...currentPath,node.name],fullPath=path.join("/").toLowerCase(),query=searchQuery.toLowerCase();if(fullPath.includes(query))return!0;if(node.children){for(let child of node.children)if(searchOriginalTreeForMatch(child,path,searchQuery))return!0}return!1}function nodeOrDescendantsMatchSearch(node,currentPath,searchQuery,originalData){let path=[...currentPath,node.name],fullPath=path.join("/").toLowerCase(),query=searchQuery.toLowerCase();if(fullPath.includes(query))return!0;if("collapsed-directory"===node.type){let originalNode=originalData;for(let i=1;i<path.length;i++){if(!originalNode.children)return!1;let found=originalNode.children.find(child=>child.name===path[i]);if(!found)return!1;originalNode=found}if(originalNode.children){for(let child of originalNode.children)if(searchOriginalTreeForMatch(child,path,searchQuery))return!0}return!1}if(node.children){for(let child of node.children)if(nodeOrDescendantsMatchSearch(child,path,searchQuery,originalData))return!0}return!1}function drawTreemap(ctx,colors,node,hoveredAncestorChain,selectedAncestorChain,useSelectionFade,focusedAncestorChain,searchQuery,originalData,immediateHoveredSourceIndex,getFileColorOverride,getFileSizeLabel,getFileLoadScope,currentPath=[],parentFadedOut=!1,insideActiveSubtree=!1){let{rect,name,type,titleBarHeight,children,sourceIndex}=node,path=[...currentPath,name],focusedSourceIndex=focusedAncestorChain[focusedAncestorChain.length-1];if(focusedAncestorChain.length>1&&void 0!==sourceIndex){let isOnFocusPath=focusedAncestorChain.includes(sourceIndex),isFocusedNode=sourceIndex===focusedSourceIndex;if(isOnFocusPath&&!isFocusedNode&&"directory"===type){if(titleBarHeight&&rect.height>20){ctx.fillStyle=colors.dirTitleBg,ctx.globalAlpha=1,ctx.fillRect(rect.x,rect.y,rect.width,titleBarHeight),ctx.strokeStyle=colors.dirTitleBorder,ctx.beginPath(),ctx.moveTo(rect.x,rect.y+titleBarHeight),ctx.lineTo(rect.x+rect.width,rect.y+titleBarHeight),ctx.stroke();let{titleFontSize}=calculateTitleFontSizes(titleBarHeight);ctx.fillStyle=colors.text,ctx.font=`600 ${titleFontSize}px ${UI_FONT}`,ctx.textAlign="left",ctx.textBaseline="middle",ctx.fillText(name,rect.x+8,rect.y+titleBarHeight/2,rect.width-16)}if(children)for(let child of children)drawTreemap(ctx,colors,child,hoveredAncestorChain,selectedAncestorChain,useSelectionFade,focusedAncestorChain,searchQuery,originalData,immediateHoveredSourceIndex,getFileColorOverride,getFileSizeLabel,getFileLoadScope,path,parentFadedOut,insideActiveSubtree);return}}let fadeOut=!1;if(searchQuery&&""!==searchQuery.trim())if("directory"===type||"collapsed-directory"===type)nodeOrDescendantsMatchSearch(node,currentPath,searchQuery,originalData)||(fadeOut=!0);else{let fullPath=path.join("/").toLowerCase(),query=searchQuery.toLowerCase();fullPath.includes(query)||(fadeOut=!0)}else if(void 0!==sourceIndex){let activeAncestorChain=hoveredAncestorChain??(useSelectionFade?selectedAncestorChain:[]);if(activeAncestorChain.length>0){let isActiveNode=sourceIndex===activeAncestorChain[activeAncestorChain.length-1];activeAncestorChain.includes(sourceIndex)||isActiveNode||insideActiveSubtree||(fadeOut=!0)}}let opacity=fadeOut?.3:1,isImmediateHovered=void 0!==sourceIndex&&sourceIndex===immediateHoveredSourceIndex;if("file"===type){let color=getFileColorOverride?.(node,colors)??getFileColor(node,colors);isImmediateHovered&&(color=curriedLighten(.15,color)),ctx.fillStyle=color,ctx.globalAlpha=opacity,ctx.fillRect(rect.x,rect.y,rect.width,rect.height),ctx.strokeStyle=colors.border,ctx.lineWidth=1,ctx.strokeRect(rect.x,rect.y,rect.width,rect.height);let loadScope=void 0===sourceIndex?"unknown":getFileLoadScope?.(sourceIndex);if("async"===loadScope){ctx.save(),ctx.beginPath(),ctx.rect(rect.x,rect.y,rect.width,rect.height),ctx.clip(),ctx.strokeStyle=readableColor(color),ctx.globalAlpha=.28*opacity,ctx.lineWidth=1;for(let offset=-rect.height;offset<rect.width;offset+=7)ctx.beginPath(),ctx.moveTo(rect.x+offset,rect.y+rect.height),ctx.lineTo(rect.x+offset+rect.height,rect.y),ctx.stroke();ctx.restore(),ctx.globalAlpha=opacity}else if("mixed"===loadScope){let markerSize=Math.min(8,rect.width,rect.height);ctx.fillStyle=readableColor(color),ctx.globalAlpha=.65*opacity,ctx.beginPath(),ctx.moveTo(rect.x+rect.width-markerSize,rect.y),ctx.lineTo(rect.x+rect.width,rect.y),ctx.lineTo(rect.x+rect.width,rect.y+markerSize),ctx.closePath(),ctx.fill(),ctx.globalAlpha=opacity}if(rect.width>60&&rect.height>30){ctx.fillStyle=readableColor(color),ctx.textAlign="center",ctx.textBaseline="middle";let maxWidth=rect.width-8,sizeText=getFileSizeLabel?.(node)??(0,__TURBOPACK__imported__module__1234__.L)(node.size);ctx.font=`12px ${UI_FONT}`;let displayName=truncateTextWithEllipsisIfNeeded(ctx,name,maxWidth);rect.height>50?(ctx.fillText(displayName,rect.x+rect.width/2,rect.y+rect.height/2-7),ctx.globalAlpha=.75*opacity,ctx.font=`10px ${UI_FONT}`,ctx.fillText(sizeText,rect.x+rect.width/2,rect.y+rect.height/2+7),ctx.globalAlpha=opacity):ctx.fillText(displayName,rect.x+rect.width/2,rect.y+rect.height/2)}ctx.globalAlpha=1}else if("collapsed-directory"===type){let bgColor=colors.collapsedBg;if(isImmediateHovered&&(bgColor=curriedLighten(.15,bgColor)),ctx.fillStyle=bgColor,ctx.globalAlpha=opacity,ctx.fillRect(rect.x,rect.y,rect.width,rect.height),ctx.strokeStyle=colors.dirBorder,ctx.lineWidth=1,ctx.strokeRect(rect.x,rect.y,rect.width,rect.height),titleBarHeight){let titleBgColor=colors.dirTitleBg;isImmediateHovered&&(titleBgColor=curriedLighten(.15,titleBgColor)),ctx.fillStyle=titleBgColor,ctx.fillRect(rect.x,rect.y,rect.width,titleBarHeight),ctx.strokeStyle=colors.dirTitleBorder,ctx.beginPath(),ctx.moveTo(rect.x,rect.y+titleBarHeight),ctx.lineTo(rect.x+rect.width,rect.y+titleBarHeight),ctx.stroke();let{titleFontSize,sizeFontSize}=calculateTitleFontSizes(titleBarHeight),sizeText=(0,__TURBOPACK__imported__module__1234__.L)(node.size),centerY=rect.y+titleBarHeight/2;ctx.textBaseline="middle",ctx.font=`${sizeFontSize}px ${UI_FONT}`;let sizeWidth=measureTextCached(ctx,sizeText),nameX=rect.x+8,availableNameWidth=Math.max(0,rect.width-16-sizeWidth-6);ctx.font=`600 ${titleFontSize}px ${UI_FONT}`;let displayName=truncateTextWithEllipsisIfNeeded(ctx,name,availableNameWidth);ctx.fillStyle=colors.text,ctx.textAlign="left",ctx.fillText(displayName,nameX,centerY,availableNameWidth);let sizeX=nameX+measureTextCached(ctx,displayName)+6;sizeX+sizeWidth<=rect.x+rect.width-8&&(ctx.font=`${sizeFontSize}px ${UI_FONT}`,ctx.fillStyle=colors.textMuted,ctx.fillText(sizeText,sizeX,centerY))}ctx.globalAlpha=1}else{let dirBgColor=colors.dirBg;if(isImmediateHovered&&(dirBgColor=curriedLighten(.15,dirBgColor)),ctx.fillStyle=dirBgColor,ctx.globalAlpha=opacity,ctx.fillRect(rect.x,rect.y,rect.width,rect.height),ctx.strokeStyle=colors.dirBorder,ctx.lineWidth=1,ctx.strokeRect(rect.x,rect.y,rect.width,rect.height),titleBarHeight&&rect.height>20){let dirTitleBgColor=colors.dirTitleBg;isImmediateHovered&&(dirTitleBgColor=curriedLighten(.15,dirTitleBgColor)),ctx.fillStyle=dirTitleBgColor,ctx.fillRect(rect.x,rect.y,rect.width,titleBarHeight),ctx.strokeStyle=colors.dirTitleBorder,ctx.beginPath(),ctx.moveTo(rect.x,rect.y+titleBarHeight),ctx.lineTo(rect.x+rect.width,rect.y+titleBarHeight),ctx.stroke();let{titleFontSize,sizeFontSize}=calculateTitleFontSizes(titleBarHeight),sizeText=(0,__TURBOPACK__imported__module__1234__.L)(node.size),centerY=rect.y+titleBarHeight/2;ctx.textBaseline="middle",ctx.font=`${sizeFontSize}px ${UI_FONT}`;let sizeWidth=measureTextCached(ctx,sizeText),nameX=rect.x+8,availableNameWidth=Math.max(0,rect.width-16-sizeWidth-6);ctx.font=`600 ${titleFontSize}px ${UI_FONT}`;let displayName=truncateTextWithEllipsisIfNeeded(ctx,name,availableNameWidth);ctx.fillStyle=colors.text,ctx.textAlign="left",ctx.fillText(displayName,nameX,centerY,availableNameWidth);let sizeX=nameX+measureTextCached(ctx,displayName)+6;sizeX+sizeWidth<=rect.x+rect.width-8&&(ctx.font=`${sizeFontSize}px ${UI_FONT}`,ctx.fillStyle=colors.textMuted,ctx.fillText(sizeText,sizeX,centerY))}if(ctx.globalAlpha=1,children)for(let child of children){let childFadeOut=(!searchQuery||""===searchQuery.trim())&&fadeOut,activeAncestorChain=hoveredAncestorChain??(useSelectionFade?selectedAncestorChain:[]),activeSourceIndex=activeAncestorChain[activeAncestorChain.length-1];drawTreemap(ctx,colors,child,hoveredAncestorChain,selectedAncestorChain,useSelectionFade,focusedAncestorChain,searchQuery,originalData,immediateHoveredSourceIndex,getFileColorOverride,getFileSizeLabel,getFileLoadScope,path,childFadeOut,insideActiveSubtree||sourceIndex===activeSourceIndex)}}}function wrapLayoutWithAncestorsUsingIndices(focusedLayout,focusedAncestorChain,getSourceName,fullWidth,fullHeight,minTitleBarHeight=12){if(focusedAncestorChain.length<=1)return focusedLayout;let currentNode=focusedLayout,cumulativeY=focusedLayout.rect.y;for(let i=focusedAncestorChain.length-2;i>=1;i--){let ancestorIndex=focusedAncestorChain[i];cumulativeY-=minTitleBarHeight,currentNode={name:getSourceName(ancestorIndex),type:"directory",size:currentNode.size,rect:{x:0,y:cumulativeY,width:fullWidth,height:fullHeight-cumulativeY},titleBarHeight:minTitleBarHeight,children:[currentNode],sourceIndex:ancestorIndex,specialModuleType:null}}cumulativeY-=minTitleBarHeight;let rootIndex=focusedAncestorChain[0];return{name:getSourceName(rootIndex),type:"directory",size:currentNode.size,rect:{x:0,y:cumulativeY,width:fullWidth,height:fullHeight-cumulativeY},titleBarHeight:minTitleBarHeight,children:[currentNode],sourceIndex:rootIndex,specialModuleType:null}}function getAncestorChain(source,sourceIndex){let chain=[],currentIndex=sourceIndex;for(;null!==currentIndex;)chain.unshift(currentIndex),currentIndex=source.getParentSourceIndex(currentIndex);return chain}function TreemapVisualizer(t0){let t6,t7,t8,t9,t10,t11,t13,t14,t15,t16,t17,t18,t19,t20,t21,$=(0,__TURBOPACK__imported__module__36909__.c)(77),{source,selectedSourceIndex:selectedSourceIndexProp,onSelectSourceIndex:t1,focusedSourceIndex:focusedSourceIndexProp,onFocusSourceIndex:t2,isMouseInTreemap:t3,onHoveredNodeChange,onHoveredNodeChangeDelayed,searchQuery:t4,filterSource,sizeMode:t5,getFileColorOverride,getFileSizeLabel,getFileLoadScope,overlay}=t0,onSelectSourceIndex=void 0===t1?_temp5:t1,onFocusSourceIndex=void 0===t2?_temp23:t2,isMouseInTreemap=void 0!==t3&&t3,searchQuery=void 0===t4?"":t4,sizeMode=void 0===t5?SizeMode1.Compressed:t5,selectedSourceIndex=selectedSourceIndexProp??source.rootIndex,focusedSourceIndex=focusedSourceIndexProp??source.rootIndex,canvasRef=(0,__TURBOPACK__imported__module__95184__.useRef)(null),containerRef=(0,__TURBOPACK__imported__module__95184__.useRef)(null),[hoveredNode,setHoveredNode]=(0,__TURBOPACK__imported__module__95184__.useState)(null),[shouldDimOthers,setShouldDimOthers]=(0,__TURBOPACK__imported__module__95184__.useState)(!1),hoverTimeoutRef=(0,__TURBOPACK__imported__module__95184__.useRef)(null);$[0]===Symbol.for("react.memo_cache_sentinel")?(t6={cssWidth:1200,cssHeight:800,canvasWidth:1200,canvasHeight:800,devicePixelRatio:1},$[0]=t6):t6=$[0];let[dimensions,setDimensions]=(0,__TURBOPACK__imported__module__95184__.useState)(t6),{resolvedTheme}=(0,__TURBOPACK__imported__module__78439__.i)();$[1]!==focusedSourceIndex||$[2]!==source?(t7=getAncestorChain(source,focusedSourceIndex),$[1]=focusedSourceIndex,$[2]=source,$[3]=t7):t7=$[3];let focusedAncestorChain=t7;$[4]!==selectedSourceIndex||$[5]!==source?(t8=getAncestorChain(source,selectedSourceIndex),$[4]=selectedSourceIndex,$[5]=source,$[6]=t8):t8=$[6];let selectedAncestorChain=t8;$[7]!==hoveredNode||$[8]!==shouldDimOthers||$[9]!==source?(t9=shouldDimOthers&&hoveredNode?.sourceIndex!==void 0?getAncestorChain(source,hoveredNode.sourceIndex):null,$[7]=hoveredNode,$[8]=shouldDimOthers,$[9]=source,$[10]=t9):t9=$[10];let hoveredAncestorChain=t9;$[11]===Symbol.for("react.memo_cache_sentinel")?(t10=()=>{let container=containerRef.current;if(!container)return;let updateSize=()=>{let devicePixelRatio=window.devicePixelRatio||1;setDimensions(dimensions_0=>{let cssWidth=container.clientWidth,cssHeight=container.clientHeight;return dimensions_0.cssWidth===cssWidth&&dimensions_0.cssHeight===cssHeight&&dimensions_0.devicePixelRatio===devicePixelRatio?dimensions_0:{cssWidth,cssHeight,canvasWidth:Math.round(cssWidth*devicePixelRatio),canvasHeight:Math.round(cssHeight*devicePixelRatio),devicePixelRatio}})};updateSize();let resizeObserver=new ResizeObserver(updateSize);resizeObserver.observe(container);let resolutionQuery=window.matchMedia(`(resolution: ${window.devicePixelRatio||1}dppx)`),handleResolutionChange=()=>{resolutionQuery.removeEventListener("change",handleResolutionChange),updateSize(),(resolutionQuery=window.matchMedia(`(resolution: ${window.devicePixelRatio||1}dppx)`)).addEventListener("change",handleResolutionChange)};return resolutionQuery.addEventListener("change",handleResolutionChange),()=>{resizeObserver.disconnect(),resolutionQuery.removeEventListener("change",handleResolutionChange)}},t11=[],$[11]=t10,$[12]=t11):(t10=$[11],t11=$[12]),(0,__TURBOPACK__imported__module__95184__.useEffect)(t10,t11);let t12=12*focusedAncestorChain.length;if($[13]!==dimensions.cssHeight||$[14]!==dimensions.cssWidth||$[15]!==filterSource||$[16]!==focusedAncestorChain||$[17]!==focusedSourceIndex||$[18]!==sizeMode||$[19]!==source||$[20]!==t12){let layoutRect={x:0,y:t12,width:dimensions.cssWidth,height:dimensions.cssHeight},focusedLayout=source.computeLayout(focusedSourceIndex,layoutRect,filterSource,sizeMode);t13=focusedAncestorChain.length>1?wrapLayoutWithAncestorsUsingIndices(focusedLayout,focusedAncestorChain,source.getSourceName,dimensions.cssWidth,dimensions.cssHeight,12):focusedLayout,$[13]=dimensions.cssHeight,$[14]=dimensions.cssWidth,$[15]=filterSource,$[16]=focusedAncestorChain,$[17]=focusedSourceIndex,$[18]=sizeMode,$[19]=source,$[20]=t12,$[21]=t13}else t13=$[21];let layout=t13;$[22]!==dimensions.cssHeight||$[23]!==dimensions.cssWidth||$[24]!==dimensions.devicePixelRatio||$[25]!==focusedAncestorChain||$[26]!==getFileColorOverride||$[27]!==getFileLoadScope||$[28]!==getFileSizeLabel||$[29]!==hoveredAncestorChain||$[30]!==hoveredNode?.sourceIndex||$[31]!==isMouseInTreemap||$[32]!==layout||$[33]!==searchQuery||$[34]!==selectedAncestorChain?(t14=()=>{let canvas=canvasRef.current;if(!canvas)return;let ctx=canvas.getContext("2d");ctx&&(ctx.setTransform(1,0,0,1,0,0),ctx.scale(dimensions.devicePixelRatio,dimensions.devicePixelRatio),ctx.clearRect(0,0,dimensions.cssWidth,dimensions.cssHeight),drawTreemap(ctx,getThemeColors(),layout,hoveredAncestorChain,selectedAncestorChain,!isMouseInTreemap,focusedAncestorChain,searchQuery,layout,hoveredNode?.sourceIndex,getFileColorOverride,getFileSizeLabel,getFileLoadScope))},$[22]=dimensions.cssHeight,$[23]=dimensions.cssWidth,$[24]=dimensions.devicePixelRatio,$[25]=focusedAncestorChain,$[26]=getFileColorOverride,$[27]=getFileLoadScope,$[28]=getFileSizeLabel,$[29]=hoveredAncestorChain,$[30]=hoveredNode?.sourceIndex,$[31]=isMouseInTreemap,$[32]=layout,$[33]=searchQuery,$[34]=selectedAncestorChain,$[35]=t14):t14=$[35],$[36]!==dimensions.cssHeight||$[37]!==dimensions.cssWidth||$[38]!==dimensions.devicePixelRatio||$[39]!==focusedAncestorChain||$[40]!==getFileColorOverride||$[41]!==getFileLoadScope||$[42]!==getFileSizeLabel||$[43]!==hoveredAncestorChain||$[44]!==hoveredNode||$[45]!==isMouseInTreemap||$[46]!==layout||$[47]!==resolvedTheme||$[48]!==searchQuery||$[49]!==selectedAncestorChain?(t15=[layout,hoveredAncestorChain,selectedAncestorChain,dimensions.cssWidth,dimensions.cssHeight,dimensions.devicePixelRatio,resolvedTheme,isMouseInTreemap,focusedAncestorChain,searchQuery,hoveredNode,getFileColorOverride,getFileSizeLabel,getFileLoadScope],$[36]=dimensions.cssHeight,$[37]=dimensions.cssWidth,$[38]=dimensions.devicePixelRatio,$[39]=focusedAncestorChain,$[40]=getFileColorOverride,$[41]=getFileLoadScope,$[42]=getFileSizeLabel,$[43]=hoveredAncestorChain,$[44]=hoveredNode,$[45]=isMouseInTreemap,$[46]=layout,$[47]=resolvedTheme,$[48]=searchQuery,$[49]=selectedAncestorChain,$[50]=t15):t15=$[50],(0,__TURBOPACK__imported__module__95184__.useLayoutEffect)(t14,t15),$[51]!==layout||$[52]!==onSelectSourceIndex||$[53]!==selectedSourceIndex||$[54]!==source.rootIndex?(t16=e=>{let canvas_0=canvasRef.current;if(!canvas_0)return;let rect=canvas_0.getBoundingClientRect(),node=findNodeAtPosition(layout,e.clientX-rect.left,e.clientY-rect.top);node&&void 0!==node.sourceIndex&&(node.sourceIndex===selectedSourceIndex?onSelectSourceIndex(source.rootIndex):onSelectSourceIndex(node.sourceIndex))},$[51]=layout,$[52]=onSelectSourceIndex,$[53]=selectedSourceIndex,$[54]=source.rootIndex,$[55]=t16):t16=$[55];let handleClick=t16;$[56]!==layout||$[57]!==onFocusSourceIndex||$[58]!==onSelectSourceIndex?(t17=e_0=>{let canvas_1=canvasRef.current;if(!canvas_1)return;let rect_0=canvas_1.getBoundingClientRect(),node_0=findNodeAtPosition(layout,e_0.clientX-rect_0.left,e_0.clientY-rect_0.top);node_0&&void 0!==node_0.sourceIndex&&("directory"===node_0.type||"collapsed-directory"===node_0.type)&&(onFocusSourceIndex(node_0.sourceIndex),onSelectSourceIndex(node_0.sourceIndex))},$[56]=layout,$[57]=onFocusSourceIndex,$[58]=onSelectSourceIndex,$[59]=t17):t17=$[59];let handleDoubleClick=t17;$[60]!==layout||$[61]!==onHoveredNodeChange||$[62]!==onHoveredNodeChangeDelayed?(t18=e_1=>{let canvas_2=canvasRef.current;if(!canvas_2)return;let rect_1=canvas_2.getBoundingClientRect(),x_1=e_1.clientX-rect_1.left,y_1=e_1.clientY-rect_1.top,node_1=findNodeAtPosition(layout,x_1,y_1);if(hoverTimeoutRef.current&&(clearTimeout(hoverTimeoutRef.current),hoverTimeoutRef.current=null),node_1){let nodeInfo={name:node_1.name,size:node_1.size,server:node_1.server,client:node_1.client,traced:node_1.traced};if("directory"===node_1.type){let titleBarHeight=node_1.titleBarHeight||0;if(y_1>=node_1.rect.y&&y_1<=node_1.rect.y+titleBarHeight){canvas_2.style.cursor="pointer",setHoveredNode(node_1),setShouldDimOthers(!1),onHoveredNodeChange?.(nodeInfo),hoverTimeoutRef.current=setTimeout(()=>{setShouldDimOthers(!0),onHoveredNodeChangeDelayed?.(nodeInfo)},1e3);return}}else{canvas_2.style.cursor="pointer",setHoveredNode(node_1),setShouldDimOthers(!1),onHoveredNodeChange?.(nodeInfo),hoverTimeoutRef.current=setTimeout(()=>{setShouldDimOthers(!0),onHoveredNodeChangeDelayed?.(nodeInfo)},1e3);return}}setHoveredNode(null),setShouldDimOthers(!1),onHoveredNodeChange?.(null),onHoveredNodeChangeDelayed?.(null),canvasRef.current&&(canvasRef.current.style.cursor="default")},$[60]=layout,$[61]=onHoveredNodeChange,$[62]=onHoveredNodeChangeDelayed,$[63]=t18):t18=$[63];let handleMouseMove=t18;$[64]!==onHoveredNodeChange||$[65]!==onHoveredNodeChangeDelayed?(t19=()=>{hoverTimeoutRef.current&&(clearTimeout(hoverTimeoutRef.current),hoverTimeoutRef.current=null),setHoveredNode(null),setShouldDimOthers(!1),onHoveredNodeChange?.(null),onHoveredNodeChangeDelayed?.(null),canvasRef.current&&(canvasRef.current.style.cursor="default")},$[64]=onHoveredNodeChange,$[65]=onHoveredNodeChangeDelayed,$[66]=t19):t19=$[66];let handleMouseLeave=t19;return $[67]!==dimensions.canvasHeight||$[68]!==dimensions.canvasWidth||$[69]!==handleClick||$[70]!==handleDoubleClick||$[71]!==handleMouseLeave||$[72]!==handleMouseMove?(t20=(0,__TURBOPACK__imported__module__24514__.jsx)("canvas",{ref:canvasRef,width:dimensions.canvasWidth,height:dimensions.canvasHeight,onMouseMove:handleMouseMove,onMouseLeave:handleMouseLeave,onClick:handleClick,onDoubleClick:handleDoubleClick,className:"block w-full h-full"}),$[67]=dimensions.canvasHeight,$[68]=dimensions.canvasWidth,$[69]=handleClick,$[70]=handleDoubleClick,$[71]=handleMouseLeave,$[72]=handleMouseMove,$[73]=t20):t20=$[73],$[74]!==overlay||$[75]!==t20?(t21=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{ref:containerRef,className:"relative w-full h-full bg-background border border-border rounded-lg overflow-hidden",children:[t20,overlay]}),$[74]=overlay,$[75]=t20,$[76]=t21):t21=$[76],t21}function _temp23(){}function _temp5(){}function isDarkMode(){return document.documentElement.classList.contains("dark")}function getThemeColors(){let dark=isDarkMode(),styles=getComputedStyle(document.documentElement);return{increase:styles.getPropertyValue("--delta-increase").trim(),decrease:styles.getPropertyValue("--delta-decrease").trim(),polyfill:styles.getPropertyValue("--polyfill").trim(),text:dark?"#ffffff":"#000000",textMuted:dark?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.6)",border:dark?"rgba(255, 255, 255, 0.4)":"rgba(180, 180, 180, 0.5)",dirBg:dark?"rgba(255, 255, 255, 0.05)":"rgba(230, 230, 230, 0.1)",dirBorder:dark?"rgba(255, 255, 255, 0.5)":"rgba(180, 180, 180, 0.6)",dirTitleBg:dark?"rgba(255, 255, 255, 0.08)":"rgba(230, 230, 230, 0.1)",dirTitleBorder:dark?"rgba(255, 255, 255, 0.4)":"rgba(180, 180, 180, 0.5)",collapsedBg:dark?"rgba(128, 128, 128, 0.15)":"rgba(230, 230, 230, 0.2)",collapsedText:dark?"rgba(255, 255, 255, 0.5)":"rgba(128, 128, 128, 0.6)"}}function DiffTreemap(t0){let t1,t2,t3,t4,t5,t7,t8,$=(0,__TURBOPACK__imported__module__36909__.c)(27),{summary,useCompressed,analyzeData,baselineAnalyzeData,searchQuery,selectedKey,onSelectKey}=t0;$[0]!==summary.rows||$[1]!==useCompressed?(t1=createDiffTreemapLayout(summary.rows,useCompressed),$[0]=summary.rows,$[1]=useCompressed,$[2]=t1):t1=$[2];let diffLayout=t1,{rowBySourceIndex,sourceIndexByKey}=diffLayout;$[3]!==rowBySourceIndex||$[4]!==useCompressed?(t2=function getFileColorOverride(node,colors){if(void 0===node.sourceIndex)return;let row=rowBySourceIndex.get(node.sourceIndex);return row?colorForRow(row,useCompressed,colors):void 0},$[3]=rowBySourceIndex,$[4]=useCompressed,$[5]=t2):t2=$[5];let getFileColorOverride=t2;$[6]!==rowBySourceIndex||$[7]!==useCompressed?(t3=function getFileSizeLabel(node_0){if(void 0===node_0.sourceIndex)return;let row_0=rowBySourceIndex.get(node_0.sourceIndex);if(row_0&&"identical"!==row_0.status)return(0,__TURBOPACK__imported__module__48696__.c)((0,__TURBOPACK__imported__module__48696__.D)(row_0,useCompressed))},$[6]=rowBySourceIndex,$[7]=useCompressed,$[8]=t3):t3=$[8];let getFileSizeLabel=t3,initialRoot=diffLayout.rootIndex,[focusedSourceIndex,setFocusedSourceIndex]=(0,__TURBOPACK__imported__module__95184__.useState)(initialRoot);$[9]!==initialRoot||$[10]!==selectedKey||$[11]!==sourceIndexByKey?(t4=(null!=selectedKey?sourceIndexByKey.get(selectedKey):void 0)??initialRoot,$[9]=initialRoot,$[10]=selectedKey,$[11]=sourceIndexByKey,$[12]=t4):t4=$[12];let selectedSourceIndex=t4;$[13]!==onSelectKey||$[14]!==rowBySourceIndex?(t5=idx=>{if(!onSelectKey)return;let row_1=rowBySourceIndex.get(idx);onSelectKey(row_1?.key??null)},$[13]=onSelectKey,$[14]=rowBySourceIndex,$[15]=t5):t5=$[15];let handleSelectSourceIndex=t5;if(!(analyzeData??baselineAnalyzeData)){let t6;return $[16]===Symbol.for("react.memo_cache_sentinel")?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"No data for this route."}),$[16]=t6):t6=$[16],t6}let t6=useCompressed?SizeMode1.Compressed:SizeMode1.Uncompressed;return $[17]===Symbol.for("react.memo_cache_sentinel")?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)(DiffLegend,{}),$[17]=t7):t7=$[17],$[18]!==diffLayout||$[19]!==focusedSourceIndex||$[20]!==getFileColorOverride||$[21]!==getFileSizeLabel||$[22]!==handleSelectSourceIndex||$[23]!==searchQuery||$[24]!==selectedSourceIndex||$[25]!==t6?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)(TreemapVisualizer,{source:diffLayout,selectedSourceIndex:selectedSourceIndex,onSelectSourceIndex:handleSelectSourceIndex,focusedSourceIndex:focusedSourceIndex,onFocusSourceIndex:setFocusedSourceIndex,getFileSizeLabel:getFileSizeLabel,sizeMode:t6,getFileColorOverride:getFileColorOverride,searchQuery:searchQuery,overlay:t7}),$[18]=diffLayout,$[19]=focusedSourceIndex,$[20]=getFileColorOverride,$[21]=getFileSizeLabel,$[22]=handleSelectSourceIndex,$[23]=searchQuery,$[24]=selectedSourceIndex,$[25]=t6,$[26]=t8):t8=$[26],t8}function colorForRow(row,useCompressed,colors){if("added"===row.status)return colors.increase;if("removed"===row.status)return colors.decrease;let deltaValue=useCompressed?row.compressedB-row.compressedA:row.sizeB-row.sizeA,baseline=useCompressed?row.compressedA:row.sizeA,ratio=0===baseline?1:Math.min(1,Math.abs(deltaValue)/baseline);return rgba(deltaValue>0?colors.increase:colors.decrease,.35+.5*ratio)}function DiffLegend(){let t0,t1,$=(0,__TURBOPACK__imported__module__36909__.c)(2);$[0]===Symbol.for("react.memo_cache_sentinel")?(t0=[{label:"Added",className:"bg-delta-increase"},{label:"Grew",className:"bg-delta-increase/60"},{label:"Shrank",className:"bg-delta-decrease/60"},{label:"Removed",className:"bg-delta-decrease"}],$[0]=t0):t0=$[0];let items=t0;return $[1]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"absolute bottom-2 left-2 flex items-center gap-3 rounded border border-border bg-background/90 px-2 py-1 text-xs text-muted-foreground shadow-sm",children:items.map(_temp6)}),$[1]=t1):t1=$[1],t1}function _temp6(item){return(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{"aria-hidden":!0,className:`inline-block h-3 w-3 rounded-sm ${item.className}`}),item.label]},item.label)}function DeltaChip(t0){let t1,t2,t3,$=(0,__TURBOPACK__imported__module__36909__.c)(8),{delta,tone,render}=t0,toneClass="size"===tone?delta>0?"text-delta-increase":delta<0?"text-delta-decrease":"text-muted-foreground":"text-muted-foreground";return $[0]!==toneClass?(t1=(0,__TURBOPACK__imported__module__1234__.c)("shrink-0 whitespace-nowrap font-mono text-xs tabular-nums",toneClass),$[0]=toneClass,$[1]=t1):t1=$[1],$[2]!==delta||$[3]!==render?(t2=render(delta),$[2]=delta,$[3]=render,$[4]=t2):t2=$[4],$[5]!==t1||$[6]!==t2?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:t1,children:t2}),$[5]=t1,$[6]=t2,$[7]=t3):t3=$[7],t3}function StatCard({label,a,b,formatValue=v=>String(v),deltaValue,formatDeltaValue,deltaTone}){let computedDelta=void 0!==deltaValue?deltaValue:null!=a&&null!=b?b-a:null;return(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex min-w-[112px] flex-1 flex-col gap-1 rounded-md border border-border bg-background/60 px-3 py-2",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:label}),(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-1.5 gap-y-1",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"font-mono text-xs tabular-nums text-foreground",children:null!=a?formatValue(a):"—"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{"aria-hidden":!0,className:"text-xs text-muted-foreground",children:"→"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"font-mono text-xs font-semibold tabular-nums text-foreground",children:null!=b?formatValue(b):"—"}),null!=computedDelta?(0,__TURBOPACK__imported__module__24514__.jsx)(DeltaChip,{delta:computedDelta,tone:deltaTone,render:formatDeltaValue??(d=>0===d?"±0":d>0?`+${d}`:`${d}`)}):null]})]})}function CountCard(t0){let t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(10),{label,value,tone}=t0,toneClass="added"===tone?"text-delta-increase":"removed"===tone?"text-delta-decrease":"text-muted-foreground";return $[0]!==label?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"text-[10px] font-medium uppercase tracking-wide text-muted-foreground",children:label}),$[0]=label,$[1]=t1):t1=$[1],$[2]!==toneClass?(t2=(0,__TURBOPACK__imported__module__1234__.c)("font-mono text-base font-semibold tabular-nums",toneClass),$[2]=toneClass,$[3]=t2):t2=$[3],$[4]!==t2||$[5]!==value?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:t2,children:value}),$[4]=t2,$[5]=value,$[6]=t3):t3=$[6],$[7]!==t1||$[8]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex min-w-[80px] flex-col gap-1 rounded-md border border-border bg-background/60 px-3 py-2",children:[t1,t3]}),$[7]=t1,$[8]=t3,$[9]=t4):t4=$[9],t4}var __TURBOPACK__imported__module__47499__=__turbopack_context__.i(47499);let GitCompareArrows=(0,__TURBOPACK__imported__module__46914__.f)("git-compare-arrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);var __TURBOPACK__imported__module__68502__=__turbopack_context__.i(68502);function decodeBuildSelection(value){return"latest"===value?null:value?.startsWith("snapshot:")&&value.length>9?value.slice(9):void 0}function encodeBuildSelection(name){return null===name?"latest":`snapshot:${name}`}function formatSnapshotLabel(metadata){return metadata.name}function snapshotBaseDir(metadata){return`/history/${encodeURIComponent(`snapshot-${encodeURIComponent(metadata.name)}`)}`}function formatRelativeTime(iso){let then=new Date(iso).getTime();if(Number.isNaN(then))return iso;let seconds=Math.round((Date.now()-then)/1e3);if(seconds<60)return"just now";let minutes=Math.round(seconds/60);if(minutes<60)return`${minutes}m ago`;let hours=Math.round(minutes/60);if(hours<24)return`${hours}h ago`;let days=Math.round(hours/24);return 1===days?"yesterday":days<14?`${days}d ago`:new Date(iso).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function BuildPicker(t0){let T0,T1,snapshots,t1,t10,t11,t2,t3,t4,t5,t6,t7,t8,t9,visibleBuilds,t12,t13,t14,t15,t16,t17,t18,$=(0,__TURBOPACK__imported__module__36909__.c)(74),{compareMode,historySnapshots,historyLoading,historyError,latestSnapshot,singleBuildName,fromName,toName,onSingleBuildChange,onComparisonChange}=t0,[open,setOpen]=(0,__TURBOPACK__imported__module__95184__.useState)(!1),[mode,setMode]=(0,__TURBOPACK__imported__module__95184__.useState)(compareMode?"compare":"single"),[search,setSearch]=(0,__TURBOPACK__imported__module__95184__.useState)("");if($[0]!==compareMode||$[1]!==fromName||$[2]!==historySnapshots||$[3]!==latestSnapshot||$[4]!==mode||$[5]!==onComparisonChange||$[6]!==onSingleBuildChange||$[7]!==open||$[8]!==search||$[9]!==singleBuildName||$[10]!==toName){let t12,t13,t14,t16,t17;$[26]!==latestSnapshot?(t12=snapshot=>snapshot.name!==latestSnapshot.name,$[26]=latestSnapshot,$[27]=t12):t12=$[27];let builds=[null,...(snapshots=historySnapshots.filter(t12)).map(_temp7)],selectedFrom=compareMode?void 0===fromName?snapshots[0]?.name:fromName:singleBuildName??snapshots[0]?.name,selectedTo=compareMode?toName:null,getLabel=function getLabel(id){if(null===id)return"Latest";if(void 0===id)return"Select build";let snapshot_1=snapshots.find(item=>item.name===id);return snapshot_1?formatSnapshotLabel(snapshot_1):"Unknown build"},selectComparison=function selectComparison(side,id_0){void 0!==selectedFrom&&void 0!==selectedTo&&("from"===side?onComparisonChange(id_0,id_0===selectedTo?selectedFrom:selectedTo):onComparisonChange(id_0===selectedFrom?selectedTo:selectedFrom,id_0))},query=search.trim().toLowerCase();visibleBuilds=builds.filter(id_1=>{if(!query)return!0;if(null===id_1)return"latest".includes(query);let snapshot_2=snapshots.find(item_0=>item_0.name===id_1);return[snapshot_2.name,snapshot_2.gitBranch,snapshot_2.gitShortSha,snapshot_2.gitMessage,formatSnapshotLabel(snapshot_2)].filter(Boolean).some(part=>part.toLowerCase().includes(query))});let triggerLabel=compareMode?`${getLabel(fromName)} → ${getLabel(toName)}`:getLabel(singleBuildName);T1=__TURBOPACK__imported__module__68502__.V,t9=open,$[28]!==compareMode?(t10=nextOpen=>{setOpen(nextOpen),nextOpen&&(setMode(compareMode?"compare":"single"),setSearch(""))},$[28]=compareMode,$[29]=t10):t10=$[29],$[30]===Symbol.for("react.memo_cache_sentinel")?(t13=(0,__TURBOPACK__imported__module__24514__.jsx)(GitCompareArrows,{className:"shrink-0"}),$[30]=t13):t13=$[30],$[31]===Symbol.for("react.memo_cache_sentinel")?(t14=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__47499__.f,{className:"shrink-0 opacity-50"}),$[31]=t14):t14=$[31];let t15=(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__1748__.f,{variant:"outline","aria-expanded":open,"aria-label":`Select builds. ${triggerLabel}`,className:"w-max shrink-0 gap-2 px-3",children:[t13,(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-sm",children:triggerLabel}),t14]});$[32]!==t15?(t11=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__68502__.J,{asChild:!0,children:t15}),$[32]=t15,$[33]=t11):t11=$[33],T0=__TURBOPACK__imported__module__68502__.T,t6="end",t7="w-[28rem] max-w-[calc(100vw-1rem)] p-0",$[34]===Symbol.for("react.memo_cache_sentinel")?(t16=["single","compare"],$[34]=t16):t16=$[34],$[35]!==mode?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex gap-1 border-b p-2",role:"group","aria-label":"Build selection mode",children:t16.map(item_1=>(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button","aria-pressed":mode===item_1,onClick:()=>setMode(item_1),className:(0,__TURBOPACK__imported__module__1234__.c)("flex-1 rounded-md px-3 py-1.5 text-sm",mode===item_1?"bg-muted font-medium text-foreground":"text-muted-foreground hover:text-foreground"),children:"single"===item_1?"Single build":"Compare builds"},item_1))}),$[35]=mode,$[36]=t8):t8=$[36],t3="p-2",$[37]===Symbol.for("react.memo_cache_sentinel")?(t17=event=>setSearch(event.target.value),$[37]=t17):t17=$[37],$[38]!==search?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)("input",{type:"search",value:search,onChange:t17,placeholder:"Search builds…","aria-label":"Search builds",className:"mb-2 h-9 w-full rounded-md border bg-background px-3 text-sm outline-none focus-visible:ring-1 focus-visible:ring-ring"}),$[38]=search,$[39]=t4):t4=$[39],$[40]!==mode?(t5="compare"===mode?(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex border-b pb-1 text-center text-xs font-medium text-muted-foreground",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"w-11",children:"From"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"w-11",children:"To"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"flex-1 text-left pl-2",children:"Build"})]}):null,$[40]=mode,$[41]=t5):t5=$[41],t1="max-h-80 overflow-y-auto",t2=visibleBuilds.map(id_2=>{let snapshot_3=null===id_2?latestSnapshot:snapshots.find(item_2=>item_2.name===id_2),label=null===id_2?"Latest":formatSnapshotLabel(snapshot_3);return(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex min-h-14 items-center border-b last:border-b-0",children:"compare"===mode?(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(SelectionCell,{side:"from",label:label,selected:selectedFrom===id_2,disabled:void 0===selectedFrom||void 0===selectedTo,onClick:()=>selectComparison("from",id_2)}),(0,__TURBOPACK__imported__module__24514__.jsx)(SelectionCell,{side:"to",label:label,selected:selectedTo===id_2,disabled:void 0===selectedFrom||void 0===selectedTo,onClick:()=>selectComparison("to",id_2)}),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"min-w-0 flex-1 py-2 pl-2 pr-2 text-left",children:(0,__TURBOPACK__imported__module__24514__.jsx)(BuildRow,{snapshot:snapshot_3,latest:null===id_2})})]}):(0,__TURBOPACK__imported__module__24514__.jsxs)("button",{type:"button","aria-label":`View ${label}`,"aria-pressed":!compareMode&&singleBuildName===id_2,className:"flex min-w-0 flex-1 items-center hover:bg-muted",onClick:()=>{onSingleBuildChange(id_2)},children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"flex w-11 shrink-0 justify-center",children:(0,__TURBOPACK__imported__module__24514__.jsx)(SelectionMark,{selected:!compareMode&&singleBuildName===id_2})}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"min-w-0 flex-1 py-2 pl-2 pr-2 text-left",children:(0,__TURBOPACK__imported__module__24514__.jsx)(BuildRow,{snapshot:snapshot_3,latest:null===id_2})})]})},encodeBuildSelection(id_2))}),$[0]=compareMode,$[1]=fromName,$[2]=historySnapshots,$[3]=latestSnapshot,$[4]=mode,$[5]=onComparisonChange,$[6]=onSingleBuildChange,$[7]=open,$[8]=search,$[9]=singleBuildName,$[10]=toName,$[11]=T0,$[12]=T1,$[13]=snapshots,$[14]=t1,$[15]=t10,$[16]=t11,$[17]=t2,$[18]=t3,$[19]=t4,$[20]=t5,$[21]=t6,$[22]=t7,$[23]=t8,$[24]=t9,$[25]=visibleBuilds}else T0=$[11],T1=$[12],snapshots=$[13],t1=$[14],t10=$[15],t11=$[16],t2=$[17],t3=$[18],t4=$[19],t5=$[20],t6=$[21],t7=$[22],t8=$[23],t9=$[24],visibleBuilds=$[25];return $[42]!==visibleBuilds.length?(t12=0===visibleBuilds.length?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"No builds found."}):null,$[42]=visibleBuilds.length,$[43]=t12):t12=$[43],$[44]!==t1||$[45]!==t12||$[46]!==t2?(t13=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:t1,children:[t2,t12]}),$[44]=t1,$[45]=t12,$[46]=t2,$[47]=t13):t13=$[47],$[48]!==historyError||$[49]!==historyLoading||$[50]!==mode||$[51]!==snapshots?(t14=historyError?(0,__TURBOPACK__imported__module__24514__.jsx)("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"Unable to load build history."}):"compare"!==mode||0!==snapshots.length||historyLoading?null:(0,__TURBOPACK__imported__module__24514__.jsx)("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"Run another build with analyze enabled to compare two builds."}),$[48]=historyError,$[49]=historyLoading,$[50]=mode,$[51]=snapshots,$[52]=t14):t14=$[52],$[53]!==historyLoading?(t15=historyLoading?(0,__TURBOPACK__imported__module__24514__.jsx)("p",{className:"px-2 py-3 text-xs text-muted-foreground",children:"Loading history…"}):null,$[53]=historyLoading,$[54]=t15):t15=$[54],$[55]!==t13||$[56]!==t14||$[57]!==t15||$[58]!==t3||$[59]!==t4||$[60]!==t5?(t16=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:t3,children:[t4,t5,t13,t14,t15]}),$[55]=t13,$[56]=t14,$[57]=t15,$[58]=t3,$[59]=t4,$[60]=t5,$[61]=t16):t16=$[61],$[62]!==T0||$[63]!==t16||$[64]!==t6||$[65]!==t7||$[66]!==t8?(t17=(0,__TURBOPACK__imported__module__24514__.jsxs)(T0,{align:t6,className:t7,children:[t8,t16]}),$[62]=T0,$[63]=t16,$[64]=t6,$[65]=t7,$[66]=t8,$[67]=t17):t17=$[67],$[68]!==T1||$[69]!==t10||$[70]!==t11||$[71]!==t17||$[72]!==t9?(t18=(0,__TURBOPACK__imported__module__24514__.jsxs)(T1,{open:t9,onOpenChange:t10,children:[t11,t17]}),$[68]=T1,$[69]=t10,$[70]=t11,$[71]=t17,$[72]=t9,$[73]=t18):t18=$[73],t18}function _temp7(snapshot_0){return snapshot_0.name}function SelectionCell(t0){let t3,t4,t5,$=(0,__TURBOPACK__imported__module__36909__.c)(11),{side,label,selected,disabled,onClick}=t0,t1=`${"from"===side?"From":"To"} ${label}`,t2="from"===side?"bg-rose-100/70 hover:bg-rose-100 dark:bg-rose-950/40 dark:hover:bg-rose-950/70":"bg-emerald-100/70 hover:bg-emerald-100 dark:bg-emerald-950/40 dark:hover:bg-emerald-950/70";return $[0]!==t2?(t3=(0,__TURBOPACK__imported__module__1234__.c)("flex w-11 self-stretch items-center justify-center disabled:opacity-40",t2),$[0]=t2,$[1]=t3):t3=$[1],$[2]!==selected?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectionMark,{selected:selected}),$[2]=selected,$[3]=t4):t4=$[3],$[4]!==disabled||$[5]!==onClick||$[6]!==selected||$[7]!==t1||$[8]!==t3||$[9]!==t4?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button","aria-pressed":selected,"aria-label":t1,disabled:disabled,onClick:onClick,className:t3,children:t4}),$[4]=disabled,$[5]=onClick,$[6]=selected,$[7]=t1,$[8]=t3,$[9]=t4,$[10]=t5):t5=$[10],t5}function SelectionMark(t0){let t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(7),{selected}=t0,t1=selected?"border-primary bg-primary text-primary-foreground":"border-border bg-background";return $[0]!==t1?(t2=(0,__TURBOPACK__imported__module__1234__.c)("flex size-4 items-center justify-center rounded-full border",t1),$[0]=t1,$[1]=t2):t2=$[1],$[2]!==selected?(t3=selected?(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"size-1.5 rounded-full bg-primary-foreground"}):null,$[2]=selected,$[3]=t3):t3=$[3],$[4]!==t2||$[5]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:t2,children:t3}),$[4]=t2,$[5]=t3,$[6]=t4):t4=$[6],t4}function BuildRow(t0){let t1,t2,t3,t5,t6,t7,$=(0,__TURBOPACK__imported__module__36909__.c)(17),{snapshot,latest}=t0;$[0]!==latest||$[1]!==snapshot?(t1=latest?"Latest":formatSnapshotLabel(snapshot),$[0]=latest,$[1]=snapshot,$[2]=t1):t1=$[2],$[3]!==snapshot.gitDirty?(t2=snapshot.gitDirty?(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"ml-2 text-xs text-amber-600",children:"dirty"}):null,$[3]=snapshot.gitDirty,$[4]=t2):t2=$[4],$[5]!==t1||$[6]!==t2?(t3=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"truncate text-sm font-medium",children:[t1,t2]}),$[5]=t1,$[6]=t2,$[7]=t3):t3=$[7];let t4=snapshot.gitMessage?`${snapshot.gitMessage} \xb7 `:"";return $[8]!==snapshot.createdAt?(t5=formatRelativeTime(snapshot.createdAt),$[8]=snapshot.createdAt,$[9]=t5):t5=$[9],$[10]!==snapshot.routeCount||$[11]!==t4||$[12]!==t5?(t6=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"truncate text-xs text-muted-foreground",children:[t4,t5," · ",snapshot.routeCount," routes"]}),$[10]=snapshot.routeCount,$[11]=t4,$[12]=t5,$[13]=t6):t6=$[13],$[14]!==t3||$[15]!==t6?(t7=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"flex min-w-0 flex-col",children:[t3,t6]}),$[14]=t3,$[15]=t6,$[16]=t7):t7=$[16],t7}let Input=__TURBOPACK__imported__module__95184__.forwardRef((t0,ref)=>{let className,props,type,t1,t2,$=(0,__TURBOPACK__imported__module__36909__.c)(11);return $[0]!==t0?({className,type,...props}=t0,$[0]=t0,$[1]=className,$[2]=props,$[3]=type):(className=$[1],props=$[2],type=$[3]),$[4]!==className?(t1=(0,__TURBOPACK__imported__module__1234__.c)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",className),$[4]=className,$[5]=t1):t1=$[5],$[6]!==props||$[7]!==ref||$[8]!==t1||$[9]!==type?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("input",{type:type,className:t1,ref:ref,...props}),$[6]=props,$[7]=ref,$[8]=t1,$[9]=type,$[10]=t2):t2=$[10],t2});Input.displayName="Input";var __TURBOPACK__imported__module__65373__=__turbopack_context__.i(65373);function FileSearch(t0){let t1,t2,t3,t4,t5,t6,t7,t8,$=(0,__TURBOPACK__imported__module__36909__.c)(16),{value,onChange}=t0,[focused,setFocused]=(0,__TURBOPACK__imported__module__95184__.useState)(!1),inputRef=(0,__TURBOPACK__imported__module__95184__.useRef)(null);$[0]!==onChange?(t1=()=>{let handleKeyDown=e=>{"/"!==e.key||["INPUT","TEXTAREA"].includes(e.target.tagName)?"Escape"===e.key&&document.activeElement===inputRef.current&&(e.preventDefault(),onChange(""),inputRef.current?.blur()):(e.preventDefault(),inputRef.current?.focus())};return window.addEventListener("keydown",handleKeyDown),()=>window.removeEventListener("keydown",handleKeyDown)},t2=[onChange],$[0]=onChange,$[1]=t1,$[2]=t2):(t1=$[1],t2=$[2]),(0,__TURBOPACK__imported__module__95184__.useEffect)(t1,t2),$[3]===Symbol.for("react.memo_cache_sentinel")?(t3=()=>{setFocused(!0)},$[3]=t3):t3=$[3];let handleFocus=t3;$[4]===Symbol.for("react.memo_cache_sentinel")?(t4=()=>{setFocused(!1)},$[4]=t4):t4=$[4];let handleBlur=t4;return $[5]!==onChange?(t5=e_0=>onChange(e_0.target.value),$[5]=onChange,$[6]=t5):t5=$[6],$[7]!==t5||$[8]!==value?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)(Input,{ref:inputRef,type:"search",value:value,onChange:t5,onFocus:handleFocus,onBlur:handleBlur,placeholder:"Search files...",className:"w-48 focus:w-80 transition-all duration-200 pr-8"}),$[7]=t5,$[8]=value,$[9]=t6):t6=$[9],$[10]!==focused||$[11]!==value?(t7=!value&&!focused&&(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__65373__.f,{className:"absolute right-2 top-1/2 -translate-y-1/2",children:"/"}),$[10]=focused,$[11]=value,$[12]=t7):t7=$[12],$[13]!==t6||$[14]!==t7?(t8=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"relative",children:[t6,t7]}),$[13]=t6,$[14]=t7,$[15]=t8):t8=$[15],t8}var __TURBOPACK__imported__module__28613__=__turbopack_context__.i(28613);function clamp(value,[min,max]){return Math.min(max,Math.max(min,value))}function composeEventHandlers1(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function handleEvent(event){if(originalEventHandler?.(event),!1===checkForDefaultPrevented||!event.defaultPrevented)return ourEventHandler?.(event)}}function createContextScope1(scopeName,createContextScopeDeps=[]){let defaultContexts=[];function createContext3(rootComponentName,defaultContext){let BaseContext=__TURBOPACK__imported__module__95184__.createContext(defaultContext),index=defaultContexts.length;defaultContexts=[...defaultContexts,defaultContext];let Provider=props=>{let{scope,children,...context}=props,Context=scope?.[scopeName]?.[index]||BaseContext,value=__TURBOPACK__imported__module__95184__.useMemo(()=>context,Object.values(context));return(0,__TURBOPACK__imported__module__24514__.jsx)(Context.Provider,{value,children})};return Provider.displayName=rootComponentName+"Provider",[Provider,function useContext2(consumerName,scope){let Context=scope?.[scopeName]?.[index]||BaseContext,context=__TURBOPACK__imported__module__95184__.useContext(Context);if(context)return context;if(void 0!==defaultContext)return defaultContext;throw Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``)}]}let createScope=()=>{let scopeContexts=defaultContexts.map(defaultContext=>__TURBOPACK__imported__module__95184__.createContext(defaultContext));return function useScope(scope){let contexts=scope?.[scopeName]||scopeContexts;return __TURBOPACK__imported__module__95184__.useMemo(()=>({[`__scope${scopeName}`]:{...scope,[scopeName]:contexts}}),[scope,contexts])}};return createScope.scopeName=scopeName,[createContext3,composeContextScopes1(createScope,...createContextScopeDeps)]}function composeContextScopes1(...scopes){let baseScope=scopes[0];if(1===scopes.length)return baseScope;let createScope=()=>{let scopeHooks=scopes.map(createScope2=>({useScope:createScope2(),scopeName:createScope2.scopeName}));return function useComposedScopes(overrideScopes){let nextScopes=scopeHooks.reduce((nextScopes2,{useScope,scopeName})=>{let currentScope=useScope(overrideScopes)[`__scope${scopeName}`];return{...nextScopes2,...currentScope}},{});return __TURBOPACK__imported__module__95184__.useMemo(()=>({[`__scope${baseScope.scopeName}`]:nextScopes}),[nextScopes])}};return createScope.scopeName=baseScope.scopeName,createScope}"u">typeof window&&window.document&&window.document.createElement;var __TURBOPACK__imported__module__60277__=__turbopack_context__.i(60277),__TURBOPACK__imported__module__7843__=__turbopack_context__.i(7843);function createCollection(name){let PROVIDER_NAME=name+"CollectionProvider",[createCollectionContext,createCollectionScope]=createContextScope1(PROVIDER_NAME),[CollectionProviderImpl,useCollectionContext]=createCollectionContext(PROVIDER_NAME,{collectionRef:{current:null},itemMap:new Map}),CollectionProvider=props=>{let{scope,children}=props,ref=__TURBOPACK__imported__module__95184__.default.useRef(null),itemMap=__TURBOPACK__imported__module__95184__.default.useRef(new Map).current;return(0,__TURBOPACK__imported__module__24514__.jsx)(CollectionProviderImpl,{scope,itemMap,collectionRef:ref,children})};CollectionProvider.displayName=PROVIDER_NAME;let COLLECTION_SLOT_NAME=name+"CollectionSlot",CollectionSlotImpl=(0,__TURBOPACK__imported__module__7843__.f)(COLLECTION_SLOT_NAME),CollectionSlot=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{scope,children}=props,context=useCollectionContext(COLLECTION_SLOT_NAME,scope),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,context.collectionRef);return(0,__TURBOPACK__imported__module__24514__.jsx)(CollectionSlotImpl,{ref:composedRefs,children})});CollectionSlot.displayName=COLLECTION_SLOT_NAME;let ITEM_SLOT_NAME=name+"CollectionItemSlot",ITEM_DATA_ATTR="data-radix-collection-item",CollectionItemSlotImpl=(0,__TURBOPACK__imported__module__7843__.f)(ITEM_SLOT_NAME),CollectionItemSlot=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{scope,children,...itemData}=props,ref=__TURBOPACK__imported__module__95184__.default.useRef(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,ref),context=useCollectionContext(ITEM_SLOT_NAME,scope);return __TURBOPACK__imported__module__95184__.default.useEffect(()=>(context.itemMap.set(ref,{ref,...itemData}),()=>void context.itemMap.delete(ref))),(0,__TURBOPACK__imported__module__24514__.jsx)(CollectionItemSlotImpl,{...{[ITEM_DATA_ATTR]:""},ref:composedRefs,children})});return CollectionItemSlot.displayName=ITEM_SLOT_NAME,[{Provider:CollectionProvider,Slot:CollectionSlot,ItemSlot:CollectionItemSlot},function useCollection(scope){let context=useCollectionContext(name+"CollectionConsumer",scope);return __TURBOPACK__imported__module__95184__.default.useCallback(()=>{let collectionNode=context.collectionRef.current;if(!collectionNode)return[];let orderedNodes=Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));return Array.from(context.itemMap.values()).sort((a,b)=>orderedNodes.indexOf(a.ref.current)-orderedNodes.indexOf(b.ref.current))},[context.collectionRef,context.itemMap])},createCollectionScope]}var DirectionContext=__TURBOPACK__imported__module__95184__.createContext(void 0);function useDirection(localDir){let globalDir=__TURBOPACK__imported__module__95184__.useContext(DirectionContext);return localDir||globalDir||"ltr"}var __TURBOPACK__imported__module__91661__=__turbopack_context__.i(91661);function useCallbackRef(callback){let callbackRef=__TURBOPACK__imported__module__95184__.useRef(callback);return __TURBOPACK__imported__module__95184__.useEffect(()=>{callbackRef.current=callback}),__TURBOPACK__imported__module__95184__.useMemo(()=>(...args)=>callbackRef.current?.(...args),[])}function useEscapeKeydown(onEscapeKeyDownProp,ownerDocument=globalThis?.document){let onEscapeKeyDown=useCallbackRef(onEscapeKeyDownProp);__TURBOPACK__imported__module__95184__.useEffect(()=>{let handleKeyDown=event=>{"Escape"===event.key&&onEscapeKeyDown(event)};return ownerDocument.addEventListener("keydown",handleKeyDown,{capture:!0}),()=>ownerDocument.removeEventListener("keydown",handleKeyDown,{capture:!0})},[onEscapeKeyDown,ownerDocument])}var CONTEXT_UPDATE1="dismissableLayer.update",DismissableLayerContext1=__TURBOPACK__imported__module__95184__.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer1=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{disableOutsidePointerEvents=!1,onEscapeKeyDown,onPointerDownOutside,onFocusOutside,onInteractOutside,onDismiss,...layerProps}=props,context=__TURBOPACK__imported__module__95184__.useContext(DismissableLayerContext1),[node,setNode]=__TURBOPACK__imported__module__95184__.useState(null),ownerDocument=node?.ownerDocument??globalThis?.document,[,force]=__TURBOPACK__imported__module__95184__.useState({}),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,node2=>setNode(node2)),layers=Array.from(context.layers),[highestLayerWithOutsidePointerEventsDisabled]=[...context.layersWithOutsidePointerEventsDisabled].slice(-1),highestLayerWithOutsidePointerEventsDisabledIndex=layers.indexOf(highestLayerWithOutsidePointerEventsDisabled),index=node?layers.indexOf(node):-1,isBodyPointerEventsDisabled=context.layersWithOutsidePointerEventsDisabled.size>0,isPointerEventsEnabled=index>=highestLayerWithOutsidePointerEventsDisabledIndex,pointerDownOutside=usePointerDownOutside1(event=>{let target=event.target,isPointerDownOnBranch=[...context.branches].some(branch=>branch.contains(target));isPointerEventsEnabled&&!isPointerDownOnBranch&&(onPointerDownOutside?.(event),onInteractOutside?.(event),event.defaultPrevented||onDismiss?.())},ownerDocument),focusOutside=useFocusOutside1(event=>{let target=event.target;![...context.branches].some(branch=>branch.contains(target))&&(onFocusOutside?.(event),onInteractOutside?.(event),event.defaultPrevented||onDismiss?.())},ownerDocument);return useEscapeKeydown(event=>{index===context.layers.size-1&&(onEscapeKeyDown?.(event),!event.defaultPrevented&&onDismiss&&(event.preventDefault(),onDismiss()))},ownerDocument),__TURBOPACK__imported__module__95184__.useEffect(()=>{if(node)return disableOutsidePointerEvents&&(0===context.layersWithOutsidePointerEventsDisabled.size&&(originalBodyPointerEvents1=ownerDocument.body.style.pointerEvents,ownerDocument.body.style.pointerEvents="none"),context.layersWithOutsidePointerEventsDisabled.add(node)),context.layers.add(node),dispatchUpdate1(),()=>{disableOutsidePointerEvents&&1===context.layersWithOutsidePointerEventsDisabled.size&&(ownerDocument.body.style.pointerEvents=originalBodyPointerEvents1)}},[node,ownerDocument,disableOutsidePointerEvents,context]),__TURBOPACK__imported__module__95184__.useEffect(()=>()=>{node&&(context.layers.delete(node),context.layersWithOutsidePointerEventsDisabled.delete(node),dispatchUpdate1())},[node,context]),__TURBOPACK__imported__module__95184__.useEffect(()=>{let handleUpdate=()=>force({});return document.addEventListener(CONTEXT_UPDATE1,handleUpdate),()=>document.removeEventListener(CONTEXT_UPDATE1,handleUpdate)},[]),(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{...layerProps,ref:composedRefs,style:{pointerEvents:isBodyPointerEventsDisabled?isPointerEventsEnabled?"auto":"none":void 0,...props.style},onFocusCapture:composeEventHandlers1(props.onFocusCapture,focusOutside.onFocusCapture),onBlurCapture:composeEventHandlers1(props.onBlurCapture,focusOutside.onBlurCapture),onPointerDownCapture:composeEventHandlers1(props.onPointerDownCapture,pointerDownOutside.onPointerDownCapture)})});function usePointerDownOutside1(onPointerDownOutside,ownerDocument=globalThis?.document){let handlePointerDownOutside=useCallbackRef(onPointerDownOutside),isPointerInsideReactTreeRef=__TURBOPACK__imported__module__95184__.useRef(!1),handleClickRef=__TURBOPACK__imported__module__95184__.useRef(()=>{});return __TURBOPACK__imported__module__95184__.useEffect(()=>{let handlePointerDown=event=>{if(event.target&&!isPointerInsideReactTreeRef.current){let handleAndDispatchPointerDownOutsideEvent2=function(){handleAndDispatchCustomEvent1("dismissableLayer.pointerDownOutside",handlePointerDownOutside,eventDetail,{discrete:!0})},eventDetail={originalEvent:event};"touch"===event.pointerType?(ownerDocument.removeEventListener("click",handleClickRef.current),handleClickRef.current=handleAndDispatchPointerDownOutsideEvent2,ownerDocument.addEventListener("click",handleClickRef.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent2()}else ownerDocument.removeEventListener("click",handleClickRef.current);isPointerInsideReactTreeRef.current=!1},timerId=window.setTimeout(()=>{ownerDocument.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(timerId),ownerDocument.removeEventListener("pointerdown",handlePointerDown),ownerDocument.removeEventListener("click",handleClickRef.current)}},[ownerDocument,handlePointerDownOutside]),{onPointerDownCapture:()=>isPointerInsideReactTreeRef.current=!0}}function useFocusOutside1(onFocusOutside,ownerDocument=globalThis?.document){let handleFocusOutside=useCallbackRef(onFocusOutside),isFocusInsideReactTreeRef=__TURBOPACK__imported__module__95184__.useRef(!1);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let handleFocus=event=>{event.target&&!isFocusInsideReactTreeRef.current&&handleAndDispatchCustomEvent1("dismissableLayer.focusOutside",handleFocusOutside,{originalEvent:event},{discrete:!1})};return ownerDocument.addEventListener("focusin",handleFocus),()=>ownerDocument.removeEventListener("focusin",handleFocus)},[ownerDocument,handleFocusOutside]),{onFocusCapture:()=>isFocusInsideReactTreeRef.current=!0,onBlurCapture:()=>isFocusInsideReactTreeRef.current=!1}}function dispatchUpdate1(){let event=new CustomEvent(CONTEXT_UPDATE1);document.dispatchEvent(event)}function handleAndDispatchCustomEvent1(name,handler,detail,{discrete}){let target=detail.originalEvent.target,event=new CustomEvent(name,{bubbles:!1,cancelable:!0,detail});handler&&target.addEventListener(name,handler,{once:!0}),discrete?(0,__TURBOPACK__imported__module__91661__.u)(target,event):target.dispatchEvent(event)}DismissableLayer1.displayName="DismissableLayer",__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let context=__TURBOPACK__imported__module__95184__.useContext(DismissableLayerContext1),ref=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,ref);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let node=ref.current;if(node)return context.branches.add(node),()=>{context.branches.delete(node)}},[context.branches]),(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{...props,ref:composedRefs})}).displayName="DismissableLayerBranch";var count=0;function useFocusGuards(){__TURBOPACK__imported__module__95184__.useEffect(()=>{let edgeGuards=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",edgeGuards[0]??createFocusGuard()),document.body.insertAdjacentElement("beforeend",edgeGuards[1]??createFocusGuard()),count++,()=>{1===count&&document.querySelectorAll("[data-radix-focus-guard]").forEach(node=>node.remove()),count--}},[])}function createFocusGuard(){let element=document.createElement("span");return element.setAttribute("data-radix-focus-guard",""),element.tabIndex=0,element.style.outline="none",element.style.opacity="0",element.style.position="fixed",element.style.pointerEvents="none",element}var AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount",AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount",EVENT_OPTIONS={bubbles:!1,cancelable:!0},FocusScope=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{loop=!1,trapped=!1,onMountAutoFocus:onMountAutoFocusProp,onUnmountAutoFocus:onUnmountAutoFocusProp,...scopeProps}=props,[container,setContainer]=__TURBOPACK__imported__module__95184__.useState(null),onMountAutoFocus=useCallbackRef(onMountAutoFocusProp),onUnmountAutoFocus=useCallbackRef(onUnmountAutoFocusProp),lastFocusedElementRef=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,node=>setContainer(node)),focusScope=__TURBOPACK__imported__module__95184__.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;__TURBOPACK__imported__module__95184__.useEffect(()=>{if(trapped){let handleFocusIn2=function(event){if(focusScope.paused||!container)return;let target=event.target;container.contains(target)?lastFocusedElementRef.current=target:focus(lastFocusedElementRef.current,{select:!0})},handleFocusOut2=function(event){if(focusScope.paused||!container)return;let relatedTarget=event.relatedTarget;null!==relatedTarget&&(container.contains(relatedTarget)||focus(lastFocusedElementRef.current,{select:!0}))};document.addEventListener("focusin",handleFocusIn2),document.addEventListener("focusout",handleFocusOut2);let mutationObserver=new MutationObserver(function(mutations){if(document.activeElement===document.body)for(let mutation of mutations)mutation.removedNodes.length>0&&focus(container)});return container&&mutationObserver.observe(container,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn2),document.removeEventListener("focusout",handleFocusOut2),mutationObserver.disconnect()}}},[trapped,container,focusScope.paused]),__TURBOPACK__imported__module__95184__.useEffect(()=>{if(container){focusScopesStack.add(focusScope);let previouslyFocusedElement=document.activeElement;if(!container.contains(previouslyFocusedElement)){let mountEvent=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_MOUNT,onMountAutoFocus),container.dispatchEvent(mountEvent),mountEvent.defaultPrevented||(focusFirst(removeLinks(getTabbableCandidates(container)),{select:!0}),document.activeElement===previouslyFocusedElement&&focus(container))}return()=>{container.removeEventListener(AUTOFOCUS_ON_MOUNT,onMountAutoFocus),setTimeout(()=>{let unmountEvent=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_UNMOUNT,onUnmountAutoFocus),container.dispatchEvent(unmountEvent),unmountEvent.defaultPrevented||focus(previouslyFocusedElement??document.body,{select:!0}),container.removeEventListener(AUTOFOCUS_ON_UNMOUNT,onUnmountAutoFocus),focusScopesStack.remove(focusScope)},0)}}},[container,onMountAutoFocus,onUnmountAutoFocus,focusScope]);let handleKeyDown=__TURBOPACK__imported__module__95184__.useCallback(event=>{if(!loop&&!trapped||focusScope.paused)return;let isTabKey="Tab"===event.key&&!event.altKey&&!event.ctrlKey&&!event.metaKey,focusedElement=document.activeElement;if(isTabKey&&focusedElement){let container2=event.currentTarget,[first,last]=getTabbableEdges(container2);first&&last?event.shiftKey||focusedElement!==last?event.shiftKey&&focusedElement===first&&(event.preventDefault(),loop&&focus(last,{select:!0})):(event.preventDefault(),loop&&focus(first,{select:!0})):focusedElement===container2&&event.preventDefault()}},[loop,trapped,focusScope.paused]);return(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{tabIndex:-1,...scopeProps,ref:composedRefs,onKeyDown:handleKeyDown})});function focusFirst(candidates,{select=!1}={}){let previouslyFocusedElement=document.activeElement;for(let candidate of candidates)if(focus(candidate,{select}),document.activeElement!==previouslyFocusedElement)return}function getTabbableEdges(container){let candidates=getTabbableCandidates(container);return[findVisible(candidates,container),findVisible(candidates.reverse(),container)]}function getTabbableCandidates(container){let nodes=[],walker=document.createTreeWalker(container,NodeFilter.SHOW_ELEMENT,{acceptNode:node=>{let isHiddenInput="INPUT"===node.tagName&&"hidden"===node.type;return node.disabled||node.hidden||isHiddenInput?NodeFilter.FILTER_SKIP:node.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;walker.nextNode();)nodes.push(walker.currentNode);return nodes}function findVisible(elements,container){for(let element of elements)if(!isHidden(element,{upTo:container}))return element}function isHidden(node,{upTo}){if("hidden"===getComputedStyle(node).visibility)return!0;for(;node&&(void 0===upTo||node!==upTo);){if("none"===getComputedStyle(node).display)return!0;node=node.parentElement}return!1}function isSelectableInput(element){return element instanceof HTMLInputElement&&"select"in element}function focus(element,{select=!1}={}){if(element&&element.focus){let previouslyFocusedElement=document.activeElement;element.focus({preventScroll:!0}),element!==previouslyFocusedElement&&isSelectableInput(element)&&select&&element.select()}}FocusScope.displayName="FocusScope";var focusScopesStack=createFocusScopesStack();function createFocusScopesStack(){let stack=[];return{add(focusScope){let activeFocusScope=stack[0];focusScope!==activeFocusScope&&activeFocusScope?.pause(),(stack=arrayRemove(stack,focusScope)).unshift(focusScope)},remove(focusScope){stack=arrayRemove(stack,focusScope),stack[0]?.resume()}}}function arrayRemove(array,item){let updatedArray=[...array],index=updatedArray.indexOf(item);return -1!==index&&updatedArray.splice(index,1),updatedArray}function removeLinks(items){return items.filter(item=>"A"!==item.tagName)}var __TURBOPACK__imported__module__73201__=__turbopack_context__.i(73201),Arrow3=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{children,width=10,height=5,...arrowProps}=props;return(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.svg,{...arrowProps,ref:forwardedRef,width,height,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:props.asChild?children:(0,__TURBOPACK__imported__module__24514__.jsx)("polygon",{points:"0,0 30,0 15,10"})})});Arrow3.displayName="Arrow";var __TURBOPACK__imported__module__53672__=__turbopack_context__.i(53672);function useSize(element){let[size,setSize]=__TURBOPACK__imported__module__95184__.useState(void 0);return(0,__TURBOPACK__imported__module__53672__.f)(()=>{if(element){setSize({width:element.offsetWidth,height:element.offsetHeight});let resizeObserver=new ResizeObserver(entries=>{let width,height;if(!Array.isArray(entries)||!entries.length)return;let entry=entries[0];if("borderBoxSize"in entry){let borderSizeEntry=entry.borderBoxSize,borderSize=Array.isArray(borderSizeEntry)?borderSizeEntry[0]:borderSizeEntry;width=borderSize.inlineSize,height=borderSize.blockSize}else width=element.offsetWidth,height=element.offsetHeight;setSize({width,height})});return resizeObserver.observe(element,{box:"border-box"}),()=>resizeObserver.unobserve(element)}setSize(void 0)},[element]),size}var POPPER_NAME1="Popper",[createPopperContext1,createPopperScope1]=createContextScope1(POPPER_NAME1),[PopperProvider1,usePopperContext1]=createPopperContext1(POPPER_NAME1),Popper1=props=>{let{__scopePopper,children}=props,[anchor,setAnchor]=__TURBOPACK__imported__module__95184__.useState(null);return(0,__TURBOPACK__imported__module__24514__.jsx)(PopperProvider1,{scope:__scopePopper,anchor,onAnchorChange:setAnchor,children})};Popper1.displayName=POPPER_NAME1;var ANCHOR_NAME1="PopperAnchor",PopperAnchor1=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopePopper,virtualRef,...anchorProps}=props,context=usePopperContext1(ANCHOR_NAME1,__scopePopper),ref=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,ref),anchorRef=__TURBOPACK__imported__module__95184__.useRef(null);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let previousAnchor=anchorRef.current;anchorRef.current=virtualRef?.current||ref.current,previousAnchor!==anchorRef.current&&context.onAnchorChange(anchorRef.current)}),virtualRef?null:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{...anchorProps,ref:composedRefs})});PopperAnchor1.displayName=ANCHOR_NAME1;var CONTENT_NAME2="PopperContent",[PopperContentProvider1,useContentContext1]=createPopperContext1(CONTENT_NAME2),PopperContent1=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopePopper,side="bottom",sideOffset=0,align="center",alignOffset=0,arrowPadding=0,avoidCollisions=!0,collisionBoundary=[],collisionPadding:collisionPaddingProp=0,sticky="partial",hideWhenDetached=!1,updatePositionStrategy="optimized",onPlaced,...contentProps}=props,context=usePopperContext1(CONTENT_NAME2,__scopePopper),[content,setContent]=__TURBOPACK__imported__module__95184__.useState(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,node=>setContent(node)),[arrow,setArrow]=__TURBOPACK__imported__module__95184__.useState(null),arrowSize=useSize(arrow),arrowWidth=arrowSize?.width??0,arrowHeight=arrowSize?.height??0,collisionPadding="number"==typeof collisionPaddingProp?collisionPaddingProp:{top:0,right:0,bottom:0,left:0,...collisionPaddingProp},boundary=Array.isArray(collisionBoundary)?collisionBoundary:[collisionBoundary],hasExplicitBoundaries=boundary.length>0,detectOverflowOptions={padding:collisionPadding,boundary:boundary.filter(isNotNull1),altBoundary:hasExplicitBoundaries},{refs,floatingStyles,placement,isPositioned,middlewareData}=(0,__TURBOPACK__imported__module__5433__.E)({strategy:"fixed",placement:side+("center"!==align?"-"+align:""),whileElementsMounted:(...args)=>(0,__TURBOPACK__imported__module__36035__.n)(...args,{animationFrame:"always"===updatePositionStrategy}),elements:{reference:context.anchor},middleware:[(0,__TURBOPACK__imported__module__5433__.T)({mainAxis:sideOffset+arrowHeight,alignmentAxis:alignOffset}),avoidCollisions&&(0,__TURBOPACK__imported__module__5433__.e)({mainAxis:!0,crossAxis:!1,limiter:"partial"===sticky?(0,__TURBOPACK__imported__module__5433__.n)():void 0,...detectOverflowOptions}),avoidCollisions&&(0,__TURBOPACK__imported__module__5433__.x)({...detectOverflowOptions}),(0,__TURBOPACK__imported__module__5433__.o)({...detectOverflowOptions,apply:({elements,rects,availableWidth,availableHeight})=>{let{width:anchorWidth,height:anchorHeight}=rects.reference,contentStyle=elements.floating.style;contentStyle.setProperty("--radix-popper-available-width",`${availableWidth}px`),contentStyle.setProperty("--radix-popper-available-height",`${availableHeight}px`),contentStyle.setProperty("--radix-popper-anchor-width",`${anchorWidth}px`),contentStyle.setProperty("--radix-popper-anchor-height",`${anchorHeight}px`)}}),arrow&&(0,__TURBOPACK__imported__module__5433__.P)({element:arrow,padding:arrowPadding}),transformOrigin1({arrowWidth,arrowHeight}),hideWhenDetached&&(0,__TURBOPACK__imported__module__5433__.c)({strategy:"referenceHidden",...detectOverflowOptions})]}),[placedSide,placedAlign]=getSideAndAlignFromPlacement1(placement),handlePlaced=useCallbackRef(onPlaced);(0,__TURBOPACK__imported__module__53672__.f)(()=>{isPositioned&&handlePlaced?.()},[isPositioned,handlePlaced]);let arrowX=middlewareData.arrow?.x,arrowY=middlewareData.arrow?.y,cannotCenterArrow=middlewareData.arrow?.centerOffset!==0,[contentZIndex,setContentZIndex]=__TURBOPACK__imported__module__95184__.useState();return(0,__TURBOPACK__imported__module__53672__.f)(()=>{content&&setContentZIndex(window.getComputedStyle(content).zIndex)},[content]),(0,__TURBOPACK__imported__module__24514__.jsx)("div",{ref:refs.setFloating,"data-radix-popper-content-wrapper":"",style:{...floatingStyles,transform:isPositioned?floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:contentZIndex,"--radix-popper-transform-origin":[middlewareData.transformOrigin?.x,middlewareData.transformOrigin?.y].join(" "),...middlewareData.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:props.dir,children:(0,__TURBOPACK__imported__module__24514__.jsx)(PopperContentProvider1,{scope:__scopePopper,placedSide,onArrowChange:setArrow,arrowX,arrowY,shouldHideArrow:cannotCenterArrow,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{"data-side":placedSide,"data-align":placedAlign,...contentProps,ref:composedRefs,style:{...contentProps.style,animation:isPositioned?void 0:"none"}})})})});PopperContent1.displayName=CONTENT_NAME2;var ARROW_NAME2="PopperArrow",OPPOSITE_SIDE1={top:"bottom",right:"left",bottom:"top",left:"right"},PopperArrow1=__TURBOPACK__imported__module__95184__.forwardRef(function PopperArrow2(props,forwardedRef){let{__scopePopper,...arrowProps}=props,contentContext=useContentContext1(ARROW_NAME2,__scopePopper),baseSide=OPPOSITE_SIDE1[contentContext.placedSide];return(0,__TURBOPACK__imported__module__24514__.jsx)("span",{ref:contentContext.onArrowChange,style:{position:"absolute",left:contentContext.arrowX,top:contentContext.arrowY,[baseSide]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[contentContext.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[contentContext.placedSide],visibility:contentContext.shouldHideArrow?"hidden":void 0},children:(0,__TURBOPACK__imported__module__24514__.jsx)(Arrow3,{...arrowProps,ref:forwardedRef,style:{...arrowProps.style,display:"block"}})})});function isNotNull1(value){return null!==value}PopperArrow1.displayName=ARROW_NAME2;var transformOrigin1=options=>({name:"transformOrigin",options,fn(data){let{placement,rects,middlewareData}=data,cannotCenterArrow=middlewareData.arrow?.centerOffset!==0,arrowWidth=cannotCenterArrow?0:options.arrowWidth,arrowHeight=cannotCenterArrow?0:options.arrowHeight,[placedSide,placedAlign]=getSideAndAlignFromPlacement1(placement),noArrowAlign={start:"0%",center:"50%",end:"100%"}[placedAlign],arrowXCenter=(middlewareData.arrow?.x??0)+arrowWidth/2,arrowYCenter=(middlewareData.arrow?.y??0)+arrowHeight/2,x="",y="";return"bottom"===placedSide?(x=cannotCenterArrow?noArrowAlign:`${arrowXCenter}px`,y=`${-arrowHeight}px`):"top"===placedSide?(x=cannotCenterArrow?noArrowAlign:`${arrowXCenter}px`,y=`${rects.floating.height+arrowHeight}px`):"right"===placedSide?(x=`${-arrowHeight}px`,y=cannotCenterArrow?noArrowAlign:`${arrowYCenter}px`):"left"===placedSide&&(x=`${rects.floating.width+arrowHeight}px`,y=cannotCenterArrow?noArrowAlign:`${arrowYCenter}px`),{data:{x,y}}}});function getSideAndAlignFromPlacement1(placement){let[side,align="center"]=placement.split("-");return[side,align]}var Portal2=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{container:containerProp,...portalProps}=props,[mounted,setMounted]=__TURBOPACK__imported__module__95184__.useState(!1);(0,__TURBOPACK__imported__module__53672__.f)(()=>setMounted(!0),[]);let container=containerProp||mounted&&globalThis?.document?.body;return container?__TURBOPACK__imported__module__20135__.default.createPortal((0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{...portalProps,ref:forwardedRef}),container):null});Portal2.displayName="Portal",__TURBOPACK__imported__module__95184__[" useEffectEvent ".trim().toString()],__TURBOPACK__imported__module__95184__[" useInsertionEffect ".trim().toString()];var useInsertionEffect=__TURBOPACK__imported__module__95184__[" useInsertionEffect ".trim().toString()]||__TURBOPACK__imported__module__53672__.f;function useControllableState({prop,defaultProp,onChange=()=>{},caller}){let[uncontrolledProp,setUncontrolledProp,onChangeRef]=useUncontrolledState({defaultProp,onChange}),isControlled=void 0!==prop,value=isControlled?prop:uncontrolledProp;{let isControlledRef=__TURBOPACK__imported__module__95184__.useRef(void 0!==prop);__TURBOPACK__imported__module__95184__.useEffect(()=>{let wasControlled=isControlledRef.current;if(wasControlled!==isControlled){let to=isControlled?"controlled":"uncontrolled";console.warn(`${caller} is changing from ${wasControlled?"controlled":"uncontrolled"} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}isControlledRef.current=isControlled},[isControlled,caller])}return[value,__TURBOPACK__imported__module__95184__.useCallback(nextValue=>{if(isControlled){let value2=isFunction(nextValue)?nextValue(prop):nextValue;value2!==prop&&onChangeRef.current?.(value2)}else setUncontrolledProp(nextValue)},[isControlled,prop,setUncontrolledProp,onChangeRef])]}function useUncontrolledState({defaultProp,onChange}){let[value,setValue]=__TURBOPACK__imported__module__95184__.useState(defaultProp),prevValueRef=__TURBOPACK__imported__module__95184__.useRef(value),onChangeRef=__TURBOPACK__imported__module__95184__.useRef(onChange);return useInsertionEffect(()=>{onChangeRef.current=onChange},[onChange]),__TURBOPACK__imported__module__95184__.useEffect(()=>{prevValueRef.current!==value&&(onChangeRef.current?.(value),prevValueRef.current=value)},[value,prevValueRef]),[value,setValue,onChangeRef]}function isFunction(value){return"function"==typeof value}function usePrevious(value){let ref=__TURBOPACK__imported__module__95184__.useRef({value,previous:value});return __TURBOPACK__imported__module__95184__.useMemo(()=>(ref.current.value!==value&&(ref.current.previous=ref.current.value,ref.current.value=value),ref.current.previous),[value])}Symbol("RADIX:SYNC_STATE");var VISUALLY_HIDDEN_STYLES=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.span,{...props,ref:forwardedRef,style:{...VISUALLY_HIDDEN_STYLES,...props.style}})).displayName="VisuallyHidden";var __TURBOPACK__imported__module__73772__=__turbopack_context__.i(73772),__TURBOPACK__imported__module__20449__=__turbopack_context__.i(20449),OPEN_KEYS=[" ","Enter","ArrowUp","ArrowDown"],SELECTION_KEYS=[" ","Enter"],SELECT_NAME="Select",[Collection,useCollection,createCollectionScope]=createCollection(SELECT_NAME),[createSelectContext,createSelectScope]=createContextScope1(SELECT_NAME,[createCollectionScope,createPopperScope1]),usePopperScope1=createPopperScope1(),[SelectProvider,useSelectContext]=createSelectContext(SELECT_NAME),[SelectNativeOptionsProvider,useSelectNativeOptionsContext]=createSelectContext(SELECT_NAME),Select=props=>{let{__scopeSelect,children,open:openProp,defaultOpen,onOpenChange,value:valueProp,defaultValue,onValueChange,dir,name,autoComplete,disabled,required,form}=props,popperScope=usePopperScope1(__scopeSelect),[trigger,setTrigger]=__TURBOPACK__imported__module__95184__.useState(null),[valueNode,setValueNode]=__TURBOPACK__imported__module__95184__.useState(null),[valueNodeHasChildren,setValueNodeHasChildren]=__TURBOPACK__imported__module__95184__.useState(!1),direction=useDirection(dir),[open,setOpen]=useControllableState({prop:openProp,defaultProp:defaultOpen??!1,onChange:onOpenChange,caller:SELECT_NAME}),[value,setValue]=useControllableState({prop:valueProp,defaultProp:defaultValue,onChange:onValueChange,caller:SELECT_NAME}),triggerPointerDownPosRef=__TURBOPACK__imported__module__95184__.useRef(null),isFormControl=!trigger||form||!!trigger.closest("form"),[nativeOptionsSet,setNativeOptionsSet]=__TURBOPACK__imported__module__95184__.useState(new Set),nativeSelectKey=Array.from(nativeOptionsSet).map(option=>option.props.value).join(";");return(0,__TURBOPACK__imported__module__24514__.jsx)(Popper1,{...popperScope,children:(0,__TURBOPACK__imported__module__24514__.jsxs)(SelectProvider,{required,scope:__scopeSelect,trigger,onTriggerChange:setTrigger,valueNode,onValueNodeChange:setValueNode,valueNodeHasChildren,onValueNodeHasChildrenChange:setValueNodeHasChildren,contentId:(0,__TURBOPACK__imported__module__73201__.f)(),value,onValueChange:setValue,open,onOpenChange:setOpen,dir:direction,triggerPointerDownPosRef,disabled,children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Collection.Provider,{scope:__scopeSelect,children:(0,__TURBOPACK__imported__module__24514__.jsx)(SelectNativeOptionsProvider,{scope:props.__scopeSelect,onNativeOptionAdd:__TURBOPACK__imported__module__95184__.useCallback(option=>{setNativeOptionsSet(prev=>new Set(prev).add(option))},[]),onNativeOptionRemove:__TURBOPACK__imported__module__95184__.useCallback(option=>{setNativeOptionsSet(prev=>{let optionsSet=new Set(prev);return optionsSet.delete(option),optionsSet})},[]),children})}),isFormControl?(0,__TURBOPACK__imported__module__24514__.jsxs)(SelectBubbleInput,{"aria-hidden":!0,required,tabIndex:-1,name,autoComplete,value,onChange:event=>setValue(event.target.value),disabled,form,children:[void 0===value?(0,__TURBOPACK__imported__module__24514__.jsx)("option",{value:""}):null,Array.from(nativeOptionsSet)]},nativeSelectKey):null]})})};Select.displayName=SELECT_NAME;var TRIGGER_NAME1="SelectTrigger",SelectTrigger=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,disabled=!1,...triggerProps}=props,popperScope=usePopperScope1(__scopeSelect),context=useSelectContext(TRIGGER_NAME1,__scopeSelect),isDisabled=context.disabled||disabled,composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,context.onTriggerChange),getItems=useCollection(__scopeSelect),pointerTypeRef=__TURBOPACK__imported__module__95184__.useRef("touch"),[searchRef,handleTypeaheadSearch,resetTypeahead]=useTypeaheadSearch(search=>{let enabledItems=getItems().filter(item=>!item.disabled),currentItem=enabledItems.find(item=>item.value===context.value),nextItem=findNextItem(enabledItems,search,currentItem);void 0!==nextItem&&context.onValueChange(nextItem.value)}),handleOpen=pointerEvent=>{isDisabled||(context.onOpenChange(!0),resetTypeahead()),pointerEvent&&(context.triggerPointerDownPosRef.current={x:Math.round(pointerEvent.pageX),y:Math.round(pointerEvent.pageY)})};return(0,__TURBOPACK__imported__module__24514__.jsx)(PopperAnchor1,{asChild:!0,...popperScope,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.button,{type:"button",role:"combobox","aria-controls":context.contentId,"aria-expanded":context.open,"aria-required":context.required,"aria-autocomplete":"none",dir:context.dir,"data-state":context.open?"open":"closed",disabled:isDisabled,"data-disabled":isDisabled?"":void 0,"data-placeholder":shouldShowPlaceholder(context.value)?"":void 0,...triggerProps,ref:composedRefs,onClick:composeEventHandlers1(triggerProps.onClick,event=>{event.currentTarget.focus(),"mouse"!==pointerTypeRef.current&&handleOpen(event)}),onPointerDown:composeEventHandlers1(triggerProps.onPointerDown,event=>{pointerTypeRef.current=event.pointerType;let target=event.target;target.hasPointerCapture(event.pointerId)&&target.releasePointerCapture(event.pointerId),0===event.button&&!1===event.ctrlKey&&"mouse"===event.pointerType&&(handleOpen(event),event.preventDefault())}),onKeyDown:composeEventHandlers1(triggerProps.onKeyDown,event=>{let isTypingAhead=""!==searchRef.current;event.ctrlKey||event.altKey||event.metaKey||1!==event.key.length||handleTypeaheadSearch(event.key),(!isTypingAhead||" "!==event.key)&&OPEN_KEYS.includes(event.key)&&(handleOpen(),event.preventDefault())})})})});SelectTrigger.displayName=TRIGGER_NAME1;var VALUE_NAME="SelectValue",SelectValue=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,className,style,children,placeholder="",...valueProps}=props,context=useSelectContext(VALUE_NAME,__scopeSelect),{onValueNodeHasChildrenChange}=context,hasChildren=void 0!==children,composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,context.onValueNodeChange);return(0,__TURBOPACK__imported__module__53672__.f)(()=>{onValueNodeHasChildrenChange(hasChildren)},[onValueNodeHasChildrenChange,hasChildren]),(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.span,{...valueProps,ref:composedRefs,style:{pointerEvents:"none"},children:shouldShowPlaceholder(context.value)?(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__24514__.Fragment,{children:placeholder}):children})});SelectValue.displayName=VALUE_NAME;var SelectIcon=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,children,...iconProps}=props;return(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.span,{"aria-hidden":!0,...iconProps,ref:forwardedRef,children:children||"▼"})});SelectIcon.displayName="SelectIcon";var SelectPortal=props=>(0,__TURBOPACK__imported__module__24514__.jsx)(Portal2,{asChild:!0,...props});SelectPortal.displayName="SelectPortal";var CONTENT_NAME3="SelectContent",SelectContent=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let context=useSelectContext(CONTENT_NAME3,props.__scopeSelect),[fragment,setFragment]=__TURBOPACK__imported__module__95184__.useState();return((0,__TURBOPACK__imported__module__53672__.f)(()=>{setFragment(new DocumentFragment)},[]),context.open)?(0,__TURBOPACK__imported__module__24514__.jsx)(SelectContentImpl,{...props,ref:forwardedRef}):fragment?__TURBOPACK__imported__module__20135__.createPortal((0,__TURBOPACK__imported__module__24514__.jsx)(SelectContentProvider,{scope:props.__scopeSelect,children:(0,__TURBOPACK__imported__module__24514__.jsx)(Collection.Slot,{scope:props.__scopeSelect,children:(0,__TURBOPACK__imported__module__24514__.jsx)("div",{children:props.children})})}),fragment):null});SelectContent.displayName=CONTENT_NAME3;var[SelectContentProvider,useSelectContentContext]=createSelectContext(CONTENT_NAME3),Slot1=(0,__TURBOPACK__imported__module__7843__.f)("SelectContent.RemoveScroll"),SelectContentImpl=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,position="item-aligned",onCloseAutoFocus,onEscapeKeyDown,onPointerDownOutside,side,sideOffset,align,alignOffset,arrowPadding,collisionBoundary,collisionPadding,sticky,hideWhenDetached,avoidCollisions,...contentProps}=props,context=useSelectContext(CONTENT_NAME3,__scopeSelect),[content,setContent]=__TURBOPACK__imported__module__95184__.useState(null),[viewport,setViewport]=__TURBOPACK__imported__module__95184__.useState(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,node=>setContent(node)),[selectedItem,setSelectedItem]=__TURBOPACK__imported__module__95184__.useState(null),[selectedItemText,setSelectedItemText]=__TURBOPACK__imported__module__95184__.useState(null),getItems=useCollection(__scopeSelect),[isPositioned,setIsPositioned]=__TURBOPACK__imported__module__95184__.useState(!1),firstValidItemFoundRef=__TURBOPACK__imported__module__95184__.useRef(!1);__TURBOPACK__imported__module__95184__.useEffect(()=>{if(content)return(0,__TURBOPACK__imported__module__73772__.f)(content)},[content]),useFocusGuards();let focusFirst=__TURBOPACK__imported__module__95184__.useCallback(candidates=>{let[firstItem,...restItems]=getItems().map(item=>item.ref.current),[lastItem]=restItems.slice(-1),PREVIOUSLY_FOCUSED_ELEMENT=document.activeElement;for(let candidate of candidates)if(candidate===PREVIOUSLY_FOCUSED_ELEMENT||(candidate?.scrollIntoView({block:"nearest"}),candidate===firstItem&&viewport&&(viewport.scrollTop=0),candidate===lastItem&&viewport&&(viewport.scrollTop=viewport.scrollHeight),candidate?.focus(),document.activeElement!==PREVIOUSLY_FOCUSED_ELEMENT))return},[getItems,viewport]),focusSelectedItem=__TURBOPACK__imported__module__95184__.useCallback(()=>focusFirst([selectedItem,content]),[focusFirst,selectedItem,content]);__TURBOPACK__imported__module__95184__.useEffect(()=>{isPositioned&&focusSelectedItem()},[isPositioned,focusSelectedItem]);let{onOpenChange,triggerPointerDownPosRef}=context;__TURBOPACK__imported__module__95184__.useEffect(()=>{if(content){let pointerMoveDelta={x:0,y:0},handlePointerMove=event=>{pointerMoveDelta={x:Math.abs(Math.round(event.pageX)-(triggerPointerDownPosRef.current?.x??0)),y:Math.abs(Math.round(event.pageY)-(triggerPointerDownPosRef.current?.y??0))}},handlePointerUp=event=>{pointerMoveDelta.x<=10&&pointerMoveDelta.y<=10?event.preventDefault():content.contains(event.target)||onOpenChange(!1),document.removeEventListener("pointermove",handlePointerMove),triggerPointerDownPosRef.current=null};return null!==triggerPointerDownPosRef.current&&(document.addEventListener("pointermove",handlePointerMove),document.addEventListener("pointerup",handlePointerUp,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",handlePointerMove),document.removeEventListener("pointerup",handlePointerUp,{capture:!0})}}},[content,onOpenChange,triggerPointerDownPosRef]),__TURBOPACK__imported__module__95184__.useEffect(()=>{let close=()=>onOpenChange(!1);return window.addEventListener("blur",close),window.addEventListener("resize",close),()=>{window.removeEventListener("blur",close),window.removeEventListener("resize",close)}},[onOpenChange]);let[searchRef,handleTypeaheadSearch]=useTypeaheadSearch(search=>{let enabledItems=getItems().filter(item=>!item.disabled),currentItem=enabledItems.find(item=>item.ref.current===document.activeElement),nextItem=findNextItem(enabledItems,search,currentItem);nextItem&&setTimeout(()=>nextItem.ref.current.focus())}),itemRefCallback=__TURBOPACK__imported__module__95184__.useCallback((node,value,disabled)=>{let isFirstValidItem=!firstValidItemFoundRef.current&&!disabled;(void 0!==context.value&&context.value===value||isFirstValidItem)&&(setSelectedItem(node),isFirstValidItem&&(firstValidItemFoundRef.current=!0))},[context.value]),handleItemLeave=__TURBOPACK__imported__module__95184__.useCallback(()=>content?.focus(),[content]),itemTextRefCallback=__TURBOPACK__imported__module__95184__.useCallback((node,value,disabled)=>{let isFirstValidItem=!firstValidItemFoundRef.current&&!disabled;(void 0!==context.value&&context.value===value||isFirstValidItem)&&setSelectedItemText(node)},[context.value]),SelectPosition="popper"===position?SelectPopperPosition:SelectItemAlignedPosition,popperContentProps=SelectPosition===SelectPopperPosition?{side,sideOffset,align,alignOffset,arrowPadding,collisionBoundary,collisionPadding,sticky,hideWhenDetached,avoidCollisions}:{};return(0,__TURBOPACK__imported__module__24514__.jsx)(SelectContentProvider,{scope:__scopeSelect,content,viewport,onViewportChange:setViewport,itemRefCallback,selectedItem,onItemLeave:handleItemLeave,itemTextRefCallback,focusSelectedItem,selectedItemText,position,isPositioned,searchRef,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__20449__.f,{as:Slot1,allowPinchZoom:!0,children:(0,__TURBOPACK__imported__module__24514__.jsx)(FocusScope,{asChild:!0,trapped:context.open,onMountAutoFocus:event=>{event.preventDefault()},onUnmountAutoFocus:composeEventHandlers1(onCloseAutoFocus,event=>{context.trigger?.focus({preventScroll:!0}),event.preventDefault()}),children:(0,__TURBOPACK__imported__module__24514__.jsx)(DismissableLayer1,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown,onPointerDownOutside,onFocusOutside:event=>event.preventDefault(),onDismiss:()=>context.onOpenChange(!1),children:(0,__TURBOPACK__imported__module__24514__.jsx)(SelectPosition,{role:"listbox",id:context.contentId,"data-state":context.open?"open":"closed",dir:context.dir,onContextMenu:event=>event.preventDefault(),...contentProps,...popperContentProps,onPlaced:()=>setIsPositioned(!0),ref:composedRefs,style:{display:"flex",flexDirection:"column",outline:"none",...contentProps.style},onKeyDown:composeEventHandlers1(contentProps.onKeyDown,event=>{let isModifierKey=event.ctrlKey||event.altKey||event.metaKey;if("Tab"===event.key&&event.preventDefault(),isModifierKey||1!==event.key.length||handleTypeaheadSearch(event.key),["ArrowUp","ArrowDown","Home","End"].includes(event.key)){let candidateNodes=getItems().filter(item=>!item.disabled).map(item=>item.ref.current);if(["ArrowUp","End"].includes(event.key)&&(candidateNodes=candidateNodes.slice().reverse()),["ArrowUp","ArrowDown"].includes(event.key)){let currentElement=event.target,currentIndex=candidateNodes.indexOf(currentElement);candidateNodes=candidateNodes.slice(currentIndex+1)}setTimeout(()=>focusFirst(candidateNodes)),event.preventDefault()}})})})})})})});SelectContentImpl.displayName="SelectContentImpl";var SelectItemAlignedPosition=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,onPlaced,...popperProps}=props,context=useSelectContext(CONTENT_NAME3,__scopeSelect),contentContext=useSelectContentContext(CONTENT_NAME3,__scopeSelect),[contentWrapper,setContentWrapper]=__TURBOPACK__imported__module__95184__.useState(null),[content,setContent]=__TURBOPACK__imported__module__95184__.useState(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,node=>setContent(node)),getItems=useCollection(__scopeSelect),shouldExpandOnScrollRef=__TURBOPACK__imported__module__95184__.useRef(!1),shouldRepositionRef=__TURBOPACK__imported__module__95184__.useRef(!0),{viewport,selectedItem,selectedItemText,focusSelectedItem}=contentContext,position=__TURBOPACK__imported__module__95184__.useCallback(()=>{if(context.trigger&&context.valueNode&&contentWrapper&&content&&viewport&&selectedItem&&selectedItemText){let triggerRect=context.trigger.getBoundingClientRect(),contentRect=content.getBoundingClientRect(),valueNodeRect=context.valueNode.getBoundingClientRect(),itemTextRect=selectedItemText.getBoundingClientRect();if("rtl"!==context.dir){let itemTextOffset=itemTextRect.left-contentRect.left,left=valueNodeRect.left-itemTextOffset,leftDelta=triggerRect.left-left,minContentWidth=triggerRect.width+leftDelta,contentWidth=Math.max(minContentWidth,contentRect.width),clampedLeft=clamp(left,[10,Math.max(10,window.innerWidth-10-contentWidth)]);contentWrapper.style.minWidth=minContentWidth+"px",contentWrapper.style.left=clampedLeft+"px"}else{let itemTextOffset=contentRect.right-itemTextRect.right,right=window.innerWidth-valueNodeRect.right-itemTextOffset,rightDelta=window.innerWidth-triggerRect.right-right,minContentWidth=triggerRect.width+rightDelta,contentWidth=Math.max(minContentWidth,contentRect.width),clampedRight=clamp(right,[10,Math.max(10,window.innerWidth-10-contentWidth)]);contentWrapper.style.minWidth=minContentWidth+"px",contentWrapper.style.right=clampedRight+"px"}let items=getItems(),availableHeight=window.innerHeight-20,itemsHeight=viewport.scrollHeight,contentStyles=window.getComputedStyle(content),contentBorderTopWidth=parseInt(contentStyles.borderTopWidth,10),contentPaddingTop=parseInt(contentStyles.paddingTop,10),contentBorderBottomWidth=parseInt(contentStyles.borderBottomWidth,10),fullContentHeight=contentBorderTopWidth+contentPaddingTop+itemsHeight+parseInt(contentStyles.paddingBottom,10)+contentBorderBottomWidth,minContentHeight=Math.min(5*selectedItem.offsetHeight,fullContentHeight),viewportStyles=window.getComputedStyle(viewport),viewportPaddingTop=parseInt(viewportStyles.paddingTop,10),viewportPaddingBottom=parseInt(viewportStyles.paddingBottom,10),topEdgeToTriggerMiddle=triggerRect.top+triggerRect.height/2-10,selectedItemHalfHeight=selectedItem.offsetHeight/2,contentTopToItemMiddle=contentBorderTopWidth+contentPaddingTop+(selectedItem.offsetTop+selectedItemHalfHeight);if(contentTopToItemMiddle<=topEdgeToTriggerMiddle){let isLastItem=items.length>0&&selectedItem===items[items.length-1].ref.current;contentWrapper.style.bottom="0px";let clampedTriggerMiddleToBottomEdge=Math.max(availableHeight-topEdgeToTriggerMiddle,selectedItemHalfHeight+(isLastItem?viewportPaddingBottom:0)+(content.clientHeight-viewport.offsetTop-viewport.offsetHeight)+contentBorderBottomWidth);contentWrapper.style.height=contentTopToItemMiddle+clampedTriggerMiddleToBottomEdge+"px"}else{let isFirstItem=items.length>0&&selectedItem===items[0].ref.current;contentWrapper.style.top="0px";let clampedTopEdgeToTriggerMiddle=Math.max(topEdgeToTriggerMiddle,contentBorderTopWidth+viewport.offsetTop+(isFirstItem?viewportPaddingTop:0)+selectedItemHalfHeight);contentWrapper.style.height=clampedTopEdgeToTriggerMiddle+(fullContentHeight-contentTopToItemMiddle)+"px",viewport.scrollTop=contentTopToItemMiddle-topEdgeToTriggerMiddle+viewport.offsetTop}contentWrapper.style.margin="10px 0",contentWrapper.style.minHeight=minContentHeight+"px",contentWrapper.style.maxHeight=availableHeight+"px",onPlaced?.(),requestAnimationFrame(()=>shouldExpandOnScrollRef.current=!0)}},[getItems,context.trigger,context.valueNode,contentWrapper,content,viewport,selectedItem,selectedItemText,context.dir,onPlaced]);(0,__TURBOPACK__imported__module__53672__.f)(()=>position(),[position]);let[contentZIndex,setContentZIndex]=__TURBOPACK__imported__module__95184__.useState();(0,__TURBOPACK__imported__module__53672__.f)(()=>{content&&setContentZIndex(window.getComputedStyle(content).zIndex)},[content]);let handleScrollButtonChange=__TURBOPACK__imported__module__95184__.useCallback(node=>{node&&!0===shouldRepositionRef.current&&(position(),focusSelectedItem?.(),shouldRepositionRef.current=!1)},[position,focusSelectedItem]);return(0,__TURBOPACK__imported__module__24514__.jsx)(SelectViewportProvider,{scope:__scopeSelect,contentWrapper,shouldExpandOnScrollRef,onScrollButtonChange:handleScrollButtonChange,children:(0,__TURBOPACK__imported__module__24514__.jsx)("div",{ref:setContentWrapper,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:contentZIndex},children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{...popperProps,ref:composedRefs,style:{boxSizing:"border-box",maxHeight:"100%",...popperProps.style}})})})});SelectItemAlignedPosition.displayName="SelectItemAlignedPosition";var SelectPopperPosition=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,align="start",collisionPadding=10,...popperProps}=props,popperScope=usePopperScope1(__scopeSelect);return(0,__TURBOPACK__imported__module__24514__.jsx)(PopperContent1,{...popperScope,...popperProps,ref:forwardedRef,align,collisionPadding,style:{boxSizing:"border-box",...popperProps.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});SelectPopperPosition.displayName="SelectPopperPosition";var[SelectViewportProvider,useSelectViewportContext]=createSelectContext(CONTENT_NAME3,{}),VIEWPORT_NAME="SelectViewport",SelectViewport=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,nonce,...viewportProps}=props,contentContext=useSelectContentContext(VIEWPORT_NAME,__scopeSelect),viewportContext=useSelectViewportContext(VIEWPORT_NAME,__scopeSelect),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,contentContext.onViewportChange),prevScrollTopRef=__TURBOPACK__imported__module__95184__.useRef(0);return(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce}),(0,__TURBOPACK__imported__module__24514__.jsx)(Collection.Slot,{scope:__scopeSelect,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{"data-radix-select-viewport":"",role:"presentation",...viewportProps,ref:composedRefs,style:{position:"relative",flex:1,overflow:"hidden auto",...viewportProps.style},onScroll:composeEventHandlers1(viewportProps.onScroll,event=>{let viewport=event.currentTarget,{contentWrapper,shouldExpandOnScrollRef}=viewportContext;if(shouldExpandOnScrollRef?.current&&contentWrapper){let scrolledBy=Math.abs(prevScrollTopRef.current-viewport.scrollTop);if(scrolledBy>0){let availableHeight=window.innerHeight-20,prevHeight=Math.max(parseFloat(contentWrapper.style.minHeight),parseFloat(contentWrapper.style.height));if(prevHeight<availableHeight){let nextHeight=prevHeight+scrolledBy,clampedNextHeight=Math.min(availableHeight,nextHeight),heightDiff=nextHeight-clampedNextHeight;contentWrapper.style.height=clampedNextHeight+"px","0px"===contentWrapper.style.bottom&&(viewport.scrollTop=heightDiff>0?heightDiff:0,contentWrapper.style.justifyContent="flex-end")}}}prevScrollTopRef.current=viewport.scrollTop})})})]})});SelectViewport.displayName=VIEWPORT_NAME;var GROUP_NAME="SelectGroup",[SelectGroupContextProvider,useSelectGroupContext]=createSelectContext(GROUP_NAME);__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,...groupProps}=props,groupId=(0,__TURBOPACK__imported__module__73201__.f)();return(0,__TURBOPACK__imported__module__24514__.jsx)(SelectGroupContextProvider,{scope:__scopeSelect,id:groupId,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{role:"group","aria-labelledby":groupId,...groupProps,ref:forwardedRef})})}).displayName=GROUP_NAME;var LABEL_NAME="SelectLabel";__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,...labelProps}=props,groupContext=useSelectGroupContext(LABEL_NAME,__scopeSelect);return(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{id:groupContext.id,...labelProps,ref:forwardedRef})}).displayName=LABEL_NAME;var ITEM_NAME="SelectItem",[SelectItemContextProvider,useSelectItemContext]=createSelectContext(ITEM_NAME),SelectItem=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,value,disabled=!1,textValue:textValueProp,...itemProps}=props,context=useSelectContext(ITEM_NAME,__scopeSelect),contentContext=useSelectContentContext(ITEM_NAME,__scopeSelect),isSelected=context.value===value,[textValue,setTextValue]=__TURBOPACK__imported__module__95184__.useState(textValueProp??""),[isFocused,setIsFocused]=__TURBOPACK__imported__module__95184__.useState(!1),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,node=>contentContext.itemRefCallback?.(node,value,disabled)),textId=(0,__TURBOPACK__imported__module__73201__.f)(),pointerTypeRef=__TURBOPACK__imported__module__95184__.useRef("touch"),handleSelect=()=>{disabled||(context.onValueChange(value),context.onOpenChange(!1))};if(""===value)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,__TURBOPACK__imported__module__24514__.jsx)(SelectItemContextProvider,{scope:__scopeSelect,value,disabled,textId,isSelected,onItemTextChange:__TURBOPACK__imported__module__95184__.useCallback(node=>{setTextValue(prevTextValue=>prevTextValue||(node?.textContent??"").trim())},[]),children:(0,__TURBOPACK__imported__module__24514__.jsx)(Collection.ItemSlot,{scope:__scopeSelect,value,disabled,textValue,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{role:"option","aria-labelledby":textId,"data-highlighted":isFocused?"":void 0,"aria-selected":isSelected&&isFocused,"data-state":isSelected?"checked":"unchecked","aria-disabled":disabled||void 0,"data-disabled":disabled?"":void 0,tabIndex:disabled?void 0:-1,...itemProps,ref:composedRefs,onFocus:composeEventHandlers1(itemProps.onFocus,()=>setIsFocused(!0)),onBlur:composeEventHandlers1(itemProps.onBlur,()=>setIsFocused(!1)),onClick:composeEventHandlers1(itemProps.onClick,()=>{"mouse"!==pointerTypeRef.current&&handleSelect()}),onPointerUp:composeEventHandlers1(itemProps.onPointerUp,()=>{"mouse"===pointerTypeRef.current&&handleSelect()}),onPointerDown:composeEventHandlers1(itemProps.onPointerDown,event=>{pointerTypeRef.current=event.pointerType}),onPointerMove:composeEventHandlers1(itemProps.onPointerMove,event=>{pointerTypeRef.current=event.pointerType,disabled?contentContext.onItemLeave?.():"mouse"===pointerTypeRef.current&&event.currentTarget.focus({preventScroll:!0})}),onPointerLeave:composeEventHandlers1(itemProps.onPointerLeave,event=>{event.currentTarget===document.activeElement&&contentContext.onItemLeave?.()}),onKeyDown:composeEventHandlers1(itemProps.onKeyDown,event=>{(contentContext.searchRef?.current===""||" "!==event.key)&&(SELECTION_KEYS.includes(event.key)&&handleSelect()," "===event.key&&event.preventDefault())})})})})});SelectItem.displayName=ITEM_NAME;var ITEM_TEXT_NAME="SelectItemText",SelectItemText=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,className,style,...itemTextProps}=props,context=useSelectContext(ITEM_TEXT_NAME,__scopeSelect),contentContext=useSelectContentContext(ITEM_TEXT_NAME,__scopeSelect),itemContext=useSelectItemContext(ITEM_TEXT_NAME,__scopeSelect),nativeOptionsContext=useSelectNativeOptionsContext(ITEM_TEXT_NAME,__scopeSelect),[itemTextNode,setItemTextNode]=__TURBOPACK__imported__module__95184__.useState(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,node=>setItemTextNode(node),itemContext.onItemTextChange,node=>contentContext.itemTextRefCallback?.(node,itemContext.value,itemContext.disabled)),textContent=itemTextNode?.textContent,nativeOption=__TURBOPACK__imported__module__95184__.useMemo(()=>(0,__TURBOPACK__imported__module__24514__.jsx)("option",{value:itemContext.value,disabled:itemContext.disabled,children:textContent},itemContext.value),[itemContext.disabled,itemContext.value,textContent]),{onNativeOptionAdd,onNativeOptionRemove}=nativeOptionsContext;return(0,__TURBOPACK__imported__module__53672__.f)(()=>(onNativeOptionAdd(nativeOption),()=>onNativeOptionRemove(nativeOption)),[onNativeOptionAdd,onNativeOptionRemove,nativeOption]),(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.span,{id:itemContext.textId,...itemTextProps,ref:composedRefs}),itemContext.isSelected&&context.valueNode&&!context.valueNodeHasChildren?__TURBOPACK__imported__module__20135__.createPortal(itemTextProps.children,context.valueNode):null]})});SelectItemText.displayName=ITEM_TEXT_NAME;var ITEM_INDICATOR_NAME="SelectItemIndicator",SelectItemIndicator=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,...itemIndicatorProps}=props;return useSelectItemContext(ITEM_INDICATOR_NAME,__scopeSelect).isSelected?(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.span,{"aria-hidden":!0,...itemIndicatorProps,ref:forwardedRef}):null});SelectItemIndicator.displayName=ITEM_INDICATOR_NAME;var SCROLL_UP_BUTTON_NAME="SelectScrollUpButton",SelectScrollUpButton=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let contentContext=useSelectContentContext(SCROLL_UP_BUTTON_NAME,props.__scopeSelect),viewportContext=useSelectViewportContext(SCROLL_UP_BUTTON_NAME,props.__scopeSelect),[canScrollUp,setCanScrollUp]=__TURBOPACK__imported__module__95184__.useState(!1),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,viewportContext.onScrollButtonChange);return(0,__TURBOPACK__imported__module__53672__.f)(()=>{if(contentContext.viewport&&contentContext.isPositioned){let handleScroll2=function(){setCanScrollUp(viewport.scrollTop>0)},viewport=contentContext.viewport;return handleScroll2(),viewport.addEventListener("scroll",handleScroll2),()=>viewport.removeEventListener("scroll",handleScroll2)}},[contentContext.viewport,contentContext.isPositioned]),canScrollUp?(0,__TURBOPACK__imported__module__24514__.jsx)(SelectScrollButtonImpl,{...props,ref:composedRefs,onAutoScroll:()=>{let{viewport,selectedItem}=contentContext;viewport&&selectedItem&&(viewport.scrollTop=viewport.scrollTop-selectedItem.offsetHeight)}}):null});SelectScrollUpButton.displayName=SCROLL_UP_BUTTON_NAME;var SCROLL_DOWN_BUTTON_NAME="SelectScrollDownButton",SelectScrollDownButton=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let contentContext=useSelectContentContext(SCROLL_DOWN_BUTTON_NAME,props.__scopeSelect),viewportContext=useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME,props.__scopeSelect),[canScrollDown,setCanScrollDown]=__TURBOPACK__imported__module__95184__.useState(!1),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,viewportContext.onScrollButtonChange);return(0,__TURBOPACK__imported__module__53672__.f)(()=>{if(contentContext.viewport&&contentContext.isPositioned){let handleScroll2=function(){let maxScroll=viewport.scrollHeight-viewport.clientHeight;setCanScrollDown(Math.ceil(viewport.scrollTop)<maxScroll)},viewport=contentContext.viewport;return handleScroll2(),viewport.addEventListener("scroll",handleScroll2),()=>viewport.removeEventListener("scroll",handleScroll2)}},[contentContext.viewport,contentContext.isPositioned]),canScrollDown?(0,__TURBOPACK__imported__module__24514__.jsx)(SelectScrollButtonImpl,{...props,ref:composedRefs,onAutoScroll:()=>{let{viewport,selectedItem}=contentContext;viewport&&selectedItem&&(viewport.scrollTop=viewport.scrollTop+selectedItem.offsetHeight)}}):null});SelectScrollDownButton.displayName=SCROLL_DOWN_BUTTON_NAME;var SelectScrollButtonImpl=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,onAutoScroll,...scrollIndicatorProps}=props,contentContext=useSelectContentContext("SelectScrollButton",__scopeSelect),autoScrollTimerRef=__TURBOPACK__imported__module__95184__.useRef(null),getItems=useCollection(__scopeSelect),clearAutoScrollTimer=__TURBOPACK__imported__module__95184__.useCallback(()=>{null!==autoScrollTimerRef.current&&(window.clearInterval(autoScrollTimerRef.current),autoScrollTimerRef.current=null)},[]);return __TURBOPACK__imported__module__95184__.useEffect(()=>()=>clearAutoScrollTimer(),[clearAutoScrollTimer]),(0,__TURBOPACK__imported__module__53672__.f)(()=>{let activeItem=getItems().find(item=>item.ref.current===document.activeElement);activeItem?.ref.current?.scrollIntoView({block:"nearest"})},[getItems]),(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{"aria-hidden":!0,...scrollIndicatorProps,ref:forwardedRef,style:{flexShrink:0,...scrollIndicatorProps.style},onPointerDown:composeEventHandlers1(scrollIndicatorProps.onPointerDown,()=>{null===autoScrollTimerRef.current&&(autoScrollTimerRef.current=window.setInterval(onAutoScroll,50))}),onPointerMove:composeEventHandlers1(scrollIndicatorProps.onPointerMove,()=>{contentContext.onItemLeave?.(),null===autoScrollTimerRef.current&&(autoScrollTimerRef.current=window.setInterval(onAutoScroll,50))}),onPointerLeave:composeEventHandlers1(scrollIndicatorProps.onPointerLeave,()=>{clearAutoScrollTimer()})})});__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,...separatorProps}=props;return(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.div,{"aria-hidden":!0,...separatorProps,ref:forwardedRef})}).displayName="SelectSeparator";var ARROW_NAME3="SelectArrow";__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSelect,...arrowProps}=props,popperScope=usePopperScope1(__scopeSelect),context=useSelectContext(ARROW_NAME3,__scopeSelect),contentContext=useSelectContentContext(ARROW_NAME3,__scopeSelect);return context.open&&"popper"===contentContext.position?(0,__TURBOPACK__imported__module__24514__.jsx)(PopperArrow1,{...popperScope,...arrowProps,ref:forwardedRef}):null}).displayName=ARROW_NAME3;var SelectBubbleInput=__TURBOPACK__imported__module__95184__.forwardRef(({__scopeSelect,value,...props},forwardedRef)=>{let ref=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=(0,__TURBOPACK__imported__module__60277__.j)(forwardedRef,ref),prevValue=usePrevious(value);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let select=ref.current;if(!select)return;let setValue=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(prevValue!==value&&setValue){let event=new Event("change",{bubbles:!0});setValue.call(select,value),select.dispatchEvent(event)}},[prevValue,value]),(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__91661__.V.select,{...props,style:{...VISUALLY_HIDDEN_STYLES,...props.style},ref:composedRefs,defaultValue:value})});function shouldShowPlaceholder(value){return""===value||void 0===value}function useTypeaheadSearch(onSearchChange){let handleSearchChange=useCallbackRef(onSearchChange),searchRef=__TURBOPACK__imported__module__95184__.useRef(""),timerRef=__TURBOPACK__imported__module__95184__.useRef(0),handleTypeaheadSearch=__TURBOPACK__imported__module__95184__.useCallback(key=>{let search=searchRef.current+key;handleSearchChange(search),function updateSearch(value){searchRef.current=value,window.clearTimeout(timerRef.current),""!==value&&(timerRef.current=window.setTimeout(()=>updateSearch(""),1e3))}(search)},[handleSearchChange]),resetTypeahead=__TURBOPACK__imported__module__95184__.useCallback(()=>{searchRef.current="",window.clearTimeout(timerRef.current)},[]);return __TURBOPACK__imported__module__95184__.useEffect(()=>()=>window.clearTimeout(timerRef.current),[]),[searchRef,handleTypeaheadSearch,resetTypeahead]}function findNextItem(items,search,currentItem){let normalizedSearch=search.length>1&&Array.from(search).every(char=>char===search[0])?search[0]:search,currentItemIndex=currentItem?items.indexOf(currentItem):-1,wrappedItems=wrapArray(items,Math.max(currentItemIndex,0));1===normalizedSearch.length&&(wrappedItems=wrappedItems.filter(v=>v!==currentItem));let nextItem=wrappedItems.find(item=>item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase()));return nextItem!==currentItem?nextItem:void 0}function wrapArray(array,startIndex){return array.map((_,index)=>array[(startIndex+index)%array.length])}SelectBubbleInput.displayName="SelectBubbleInput";var __TURBOPACK__imported__module__60820__=__turbopack_context__.i(60820),__TURBOPACK__imported__module__60820__=__TURBOPACK__imported__module__60820__;let ChevronUp=(0,__TURBOPACK__imported__module__46914__.f)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);function Select1(t0){let props,t1,$=(0,__TURBOPACK__imported__module__36909__.c)(4);return $[0]!==t0?({...props}=t0,$[0]=t0,$[1]=props):props=$[1],$[2]!==props?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(Select,{"data-slot":"select",...props}),$[2]=props,$[3]=t1):t1=$[3],t1}function SelectValue1(t0){let props,t1,$=(0,__TURBOPACK__imported__module__36909__.c)(4);return $[0]!==t0?({...props}=t0,$[0]=t0,$[1]=props):props=$[1],$[2]!==props?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectValue,{"data-slot":"select-value",...props}),$[2]=props,$[3]=t1):t1=$[3],t1}function SelectTrigger1(t0){let children,className,props,t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(13);$[0]!==t0?({className,size:t1,children,...props}=t0,$[0]=t0,$[1]=children,$[2]=className,$[3]=props,$[4]=t1):(children=$[1],className=$[2],props=$[3],t1=$[4]);let size=void 0===t1?"default":t1;return $[5]!==className?(t2=(0,__TURBOPACK__imported__module__1234__.c)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className),$[5]=className,$[6]=t2):t2=$[6],$[7]===Symbol.for("react.memo_cache_sentinel")?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectIcon,{asChild:!0,children:(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronDown,{className:"size-4 opacity-50"})}),$[7]=t3):t3=$[7],$[8]!==children||$[9]!==props||$[10]!==size||$[11]!==t2?(t4=(0,__TURBOPACK__imported__module__24514__.jsxs)(SelectTrigger,{"data-slot":"select-trigger","data-size":size,className:t2,...props,children:[children,t3]}),$[8]=children,$[9]=props,$[10]=size,$[11]=t2,$[12]=t4):t4=$[12],t4}function SelectContent1(t0){let children,className,props,t1,t2,t4,t5,t7,t8,t9,t10,$=(0,__TURBOPACK__imported__module__36909__.c)(22);$[0]!==t0?({className,children,position:t1,align:t2,...props}=t0,$[0]=t0,$[1]=children,$[2]=className,$[3]=props,$[4]=t1,$[5]=t2):(children=$[1],className=$[2],props=$[3],t1=$[4],t2=$[5]);let position=void 0===t1?"item-aligned":t1,align=void 0===t2?"center":t2,t3="popper"===position&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";$[6]!==className||$[7]!==t3?(t4=(0,__TURBOPACK__imported__module__1234__.c)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",t3,className),$[6]=className,$[7]=t3,$[8]=t4):t4=$[8],$[9]===Symbol.for("react.memo_cache_sentinel")?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectScrollUpButton1,{}),$[9]=t5):t5=$[9];let t6="popper"===position&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";return $[10]!==t6?(t7=(0,__TURBOPACK__imported__module__1234__.c)("p-1",t6),$[10]=t6,$[11]=t7):t7=$[11],$[12]!==children||$[13]!==t7?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectViewport,{className:t7,children:children}),$[12]=children,$[13]=t7,$[14]=t8):t8=$[14],$[15]===Symbol.for("react.memo_cache_sentinel")?(t9=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectScrollDownButton1,{}),$[15]=t9):t9=$[15],$[16]!==align||$[17]!==position||$[18]!==props||$[19]!==t4||$[20]!==t8?(t10=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectPortal,{children:(0,__TURBOPACK__imported__module__24514__.jsxs)(SelectContent,{"data-slot":"select-content",className:t4,position:position,align:align,...props,children:[t5,t8,t9]})}),$[16]=align,$[17]=position,$[18]=props,$[19]=t4,$[20]=t8,$[21]=t10):t10=$[21],t10}function SelectItem1(t0){let children,className,props,t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(13);return $[0]!==t0?({className,children,...props}=t0,$[0]=t0,$[1]=children,$[2]=className,$[3]=props):(children=$[1],className=$[2],props=$[3]),$[4]!==className?(t1=(0,__TURBOPACK__imported__module__1234__.c)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",className),$[4]=className,$[5]=t1):t1=$[5],$[6]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,__TURBOPACK__imported__module__24514__.jsx)(SelectItemIndicator,{children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__60820__.f,{className:"size-4"})})}),$[6]=t2):t2=$[6],$[7]!==children?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectItemText,{children:children}),$[7]=children,$[8]=t3):t3=$[8],$[9]!==props||$[10]!==t1||$[11]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsxs)(SelectItem,{"data-slot":"select-item",className:t1,...props,children:[t2,t3]}),$[9]=props,$[10]=t1,$[11]=t3,$[12]=t4):t4=$[12],t4}function SelectScrollUpButton1(t0){let className,props,t1,t2,t3,$=(0,__TURBOPACK__imported__module__36909__.c)(9);return $[0]!==t0?({className,...props}=t0,$[0]=t0,$[1]=className,$[2]=props):(className=$[1],props=$[2]),$[3]!==className?(t1=(0,__TURBOPACK__imported__module__1234__.c)("flex cursor-default items-center justify-center py-1",className),$[3]=className,$[4]=t1):t1=$[4],$[5]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronUp,{className:"size-4"}),$[5]=t2):t2=$[5],$[6]!==props||$[7]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectScrollUpButton,{"data-slot":"select-scroll-up-button",className:t1,...props,children:t2}),$[6]=props,$[7]=t1,$[8]=t3):t3=$[8],t3}function SelectScrollDownButton1(t0){let className,props,t1,t2,t3,$=(0,__TURBOPACK__imported__module__36909__.c)(9);return $[0]!==t0?({className,...props}=t0,$[0]=t0,$[1]=className,$[2]=props):(className=$[1],props=$[2]),$[3]!==className?(t1=(0,__TURBOPACK__imported__module__1234__.c)("flex cursor-default items-center justify-center py-1",className),$[3]=className,$[4]=t1):t1=$[4],$[5]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronDown,{className:"size-4"}),$[5]=t2):t2=$[5],$[6]!==props||$[7]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(SelectScrollDownButton,{"data-slot":"select-scroll-down-button",className:t1,...props,children:t2}),$[6]=props,$[7]=t1,$[8]=t3):t3=$[8],t3}var __TURBOPACK__imported__module__60820__=__TURBOPACK__imported__module__60820__;function MultiSelect(t0){let t3,t4,displayText,t5,t6,t7,t8,t9,t10,t11,t12,t13,t15,t16,t17,t18,t19,$=(0,__TURBOPACK__imported__module__36909__.c)(45),{options,value,onValueChange,placeholder:t1,selectionName:t2,className,triggerClassName,triggerIcon,"aria-label":ariaLabel}=t0,placeholder=void 0===t1?"Select items...":t1;$[0]!==t2?(t3=void 0===t2?{singular:"item",plural:"items"}:t2,$[0]=t2,$[1]=t3):t3=$[1];let selectionName=t3,[open,setOpen]=__TURBOPACK__imported__module__95184__.useState(!1);$[2]!==onValueChange||$[3]!==value?(t4=function handleToggle(optionValue,checked){let newValue=checked?[...value,optionValue]:value.filter(v=>v!==optionValue);newValue.length>0&&onValueChange(newValue)},$[2]=onValueChange,$[3]=value,$[4]=t4):t4=$[4];let handleToggle=t4;displayText=value.length===options.length?`All ${selectionName.plural}`:0===value.length?placeholder:`${value.length} ${1===value.length?selectionName.singular:selectionName.plural}`,$[5]!==triggerClassName?(t5=(0,__TURBOPACK__imported__module__1234__.c)("justify-between border focus-visible:ring-[3px] focus-visible:ring-ring/50 font-normal px-3 py-2 h-9 text-xs",triggerClassName),$[5]=triggerClassName,$[6]=t5):t5=$[6],$[7]!==open?(t6=e=>{"ArrowDown"!==e.key&&"ArrowUp"!==e.key||open||(e.preventDefault(),setOpen(!0))},$[7]=open,$[8]=t6):t6=$[8],$[9]!==triggerIcon?(t7=triggerIcon&&(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"shrink-0 text-muted-foreground","aria-hidden":"true",children:triggerIcon}),$[9]=triggerIcon,$[10]=t7):t7=$[10],$[11]!==displayText?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{children:displayText}),$[11]=displayText,$[12]=t8):t8=$[12],$[13]!==t7||$[14]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center gap-1",children:[t7,t8]}),$[13]=t7,$[14]=t8,$[15]=t9):t9=$[15],$[16]===Symbol.for("react.memo_cache_sentinel")?(t10=(0,__TURBOPACK__imported__module__24514__.jsx)(ChevronDown,{className:"h-3.5 w-3.5 opacity-50","aria-hidden":"true"}),$[16]=t10):t10=$[16],$[17]!==ariaLabel||$[18]!==open||$[19]!==t5||$[20]!==t6||$[21]!==t9?(t11=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__68502__.J,{asChild:!0,children:(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__1748__.f,{variant:"outline",className:t5,role:"combobox","aria-expanded":open,"aria-haspopup":"dialog","aria-label":ariaLabel,onKeyDown:t6,children:[t9,t10]})}),$[17]=ariaLabel,$[18]=open,$[19]=t5,$[20]=t6,$[21]=t9,$[22]=t11):t11=$[22],$[23]!==className?(t12=(0,__TURBOPACK__imported__module__1234__.c)("w-48 p-2",className),$[23]=className,$[24]=t12):t12=$[24],$[25]===Symbol.for("react.memo_cache_sentinel")?(t13=e_0=>{if("Escape"===e_0.key){e_0.preventDefault(),setOpen(!1);return}let checkboxes=Array.from(e_0.currentTarget.querySelectorAll('input[type="checkbox"]')),currentIndex=checkboxes.indexOf(document.activeElement);if("ArrowDown"===e_0.key||"ArrowUp"===e_0.key)if(e_0.preventDefault(),-1===currentIndex)checkboxes[0]?.focus();else{let nextIndex="ArrowDown"===e_0.key?(currentIndex+1)%checkboxes.length:(currentIndex-1+checkboxes.length)%checkboxes.length;checkboxes[nextIndex]?.focus()}},$[25]=t13):t13=$[25];let t14=ariaLabel||placeholder;if($[26]!==t14?(t15=(0,__TURBOPACK__imported__module__24514__.jsx)("legend",{className:"sr-only",children:t14}),$[26]=t14,$[27]=t15):t15=$[27],$[28]!==handleToggle||$[29]!==options||$[30]!==value){let t17;$[32]!==handleToggle||$[33]!==value?(t17=option=>(0,__TURBOPACK__imported__module__24514__.jsx)(MultiSelectOption,{label:option.label,icon:option.icon,checked:value.includes(option.value),onChange:checked_0=>handleToggle(option.value,checked_0)},option.value),$[32]=handleToggle,$[33]=value,$[34]=t17):t17=$[34],t16=options.map(t17),$[28]=handleToggle,$[29]=options,$[30]=value,$[31]=t16}else t16=$[31];return $[35]!==t15||$[36]!==t16?(t17=(0,__TURBOPACK__imported__module__24514__.jsxs)("fieldset",{className:"space-y-2",children:[t15,t16]}),$[35]=t15,$[36]=t16,$[37]=t17):t17=$[37],$[38]!==t12||$[39]!==t17?(t18=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__68502__.T,{className:t12,align:"end",onKeyDown:t13,children:t17}),$[38]=t12,$[39]=t17,$[40]=t18):t18=$[40],$[41]!==open||$[42]!==t11||$[43]!==t18?(t19=(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__68502__.V,{open:open,onOpenChange:setOpen,children:[t11,t18]}),$[41]=open,$[42]=t11,$[43]=t18,$[44]=t19):t19=$[44],t19}function MultiSelectOption(t0){let t1,t2,t3,t4,t5,t6,t7,t8,$=(0,__TURBOPACK__imported__module__36909__.c)(20),{label,icon,checked,onChange}=t0;return $[0]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__1234__.c)("text-xs hover:bg-accent hover:text-accent-foreground has-[input:focus-visible]:bg-accent has-[input:focus-visible]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 select-none outline-hidden [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"),$[0]=t1):t1=$[0],$[1]!==onChange?(t2=e=>onChange(e.target.checked),$[1]=onChange,$[2]=t2):t2=$[2],$[3]!==checked||$[4]!==label||$[5]!==t2?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)("input",{type:"checkbox",checked:checked,onChange:t2,className:"sr-only peer focus:outline-hidden focus-visible:outline-2","aria-label":label}),$[3]=checked,$[4]=label,$[5]=t2,$[6]=t3):t3=$[6],$[7]!==icon?(t4=icon&&(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"shrink-0","aria-hidden":"true",children:icon}),$[7]=icon,$[8]=t4):t4=$[8],$[9]!==label?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"flex items-center gap-2",children:label}),$[9]=label,$[10]=t5):t5=$[10],$[11]!==checked?(t6=checked&&(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__60820__.f,{className:"size-4"}),$[11]=checked,$[12]=t6):t6=$[12],$[13]!==t6?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t6}),$[13]=t6,$[14]=t7):t7=$[14],$[15]!==t3||$[16]!==t4||$[17]!==t5||$[18]!==t7?(t8=(0,__TURBOPACK__imported__module__24514__.jsxs)("label",{className:t1,children:[t3,t4,t5,t7]}),$[15]=t3,$[16]=t4,$[17]=t5,$[18]=t7,$[19]=t8):t8=$[19],t8}function usePrevious1(value){let ref=__TURBOPACK__imported__module__95184__.useRef({value,previous:value});return __TURBOPACK__imported__module__95184__.useMemo(()=>(ref.current.value!==value&&(ref.current.previous=ref.current.value,ref.current.value=value),ref.current.previous),[value])}var SWITCH_NAME="Switch",[createSwitchContext,createSwitchScope]=(0,__TURBOPACK__imported__module__29668__.c)(SWITCH_NAME),[SwitchProvider,useSwitchContext]=createSwitchContext(SWITCH_NAME),Switch=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSwitch,name,checked:checkedProp,defaultChecked,required,disabled,value="on",onCheckedChange,form,...switchProps}=props,[button,setButton]=__TURBOPACK__imported__module__95184__.useState(null),composedRefs=useComposedRefs(forwardedRef,node=>setButton(node)),hasConsumerStoppedPropagationRef=__TURBOPACK__imported__module__95184__.useRef(!1),isFormControl=!button||form||!!button.closest("form"),[checked=!1,setChecked]=(0,__TURBOPACK__imported__module__93152__.f)({prop:checkedProp,defaultProp:defaultChecked,onChange:onCheckedChange});return(0,__TURBOPACK__imported__module__24514__.jsxs)(SwitchProvider,{scope:__scopeSwitch,checked,disabled,children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.button,{type:"button",role:"switch","aria-checked":checked,"aria-required":required,"data-state":getState(checked),"data-disabled":disabled?"":void 0,disabled,value,...switchProps,ref:composedRefs,onClick:composeEventHandlers(props.onClick,event=>{setChecked(prevChecked=>!prevChecked),isFormControl&&(hasConsumerStoppedPropagationRef.current=event.isPropagationStopped(),hasConsumerStoppedPropagationRef.current||event.stopPropagation())})}),isFormControl&&(0,__TURBOPACK__imported__module__24514__.jsx)(BubbleInput,{control:button,bubbles:!hasConsumerStoppedPropagationRef.current,name,value,checked,required,disabled,form,style:{transform:"translateX(-100%)"}})]})});Switch.displayName=SWITCH_NAME;var THUMB_NAME="SwitchThumb",SwitchThumb=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeSwitch,...thumbProps}=props,context=useSwitchContext(THUMB_NAME,__scopeSwitch);return(0,__TURBOPACK__imported__module__24514__.jsx)(Primitive.span,{"data-state":getState(context.checked),"data-disabled":context.disabled?"":void 0,...thumbProps,ref:forwardedRef})});SwitchThumb.displayName=THUMB_NAME;var BubbleInput=props=>{let{control,checked,bubbles=!0,...inputProps}=props,ref=__TURBOPACK__imported__module__95184__.useRef(null),prevChecked=usePrevious1(checked),controlSize=(0,__TURBOPACK__imported__module__31729__.f)(control);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let input=ref.current,setChecked=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(prevChecked!==checked&&setChecked){let event=new Event("click",{bubbles});setChecked.call(input,checked),input.dispatchEvent(event)}},[prevChecked,checked,bubbles]),(0,__TURBOPACK__imported__module__24514__.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:checked,...inputProps,tabIndex:-1,ref,style:{...props.style,...controlSize,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function getState(checked){return checked?"checked":"unchecked"}let Switch1=__TURBOPACK__imported__module__95184__.forwardRef((t0,ref)=>{let className,props,t1,t2,t3,$=(0,__TURBOPACK__imported__module__36909__.c)(10);return $[0]!==t0?({className,...props}=t0,$[0]=t0,$[1]=className,$[2]=props):(className=$[1],props=$[2]),$[3]!==className?(t1=(0,__TURBOPACK__imported__module__1234__.c)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary",className),$[3]=className,$[4]=t1):t1=$[4],$[5]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(SwitchThumb,{className:"pointer-events-none block h-4 w-4 rounded-full bg-background shadow transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"}),$[5]=t2):t2=$[5],$[6]!==props||$[7]!==ref||$[8]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(Switch,{className:t1,...props,ref:ref,children:t2}),$[6]=props,$[7]=ref,$[8]=t1,$[9]=t3):t3=$[9],t3});Switch1.displayName=Switch.displayName;var __TURBOPACK__imported__module__26052__=__turbopack_context__.i(26052),__TURBOPACK__imported__module__78896__=__turbopack_context__.i(78896),__TURBOPACK__imported__module__48620__=__turbopack_context__.i(48620),__TURBOPACK__imported__module__81272__=__turbopack_context__.i(81272);function createCollection1(name){let PROVIDER_NAME=name+"CollectionProvider",[createCollectionContext,createCollectionScope]=(0,__TURBOPACK__imported__module__29668__.c)(PROVIDER_NAME),[CollectionProviderImpl,useCollectionContext]=createCollectionContext(PROVIDER_NAME,{collectionRef:{current:null},itemMap:new Map}),CollectionProvider=props=>{let{scope,children}=props,ref=__TURBOPACK__imported__module__95184__.default.useRef(null),itemMap=__TURBOPACK__imported__module__95184__.default.useRef(new Map).current;return(0,__TURBOPACK__imported__module__24514__.jsx)(CollectionProviderImpl,{scope,itemMap,collectionRef:ref,children})};CollectionProvider.displayName=PROVIDER_NAME;let COLLECTION_SLOT_NAME=name+"CollectionSlot",CollectionSlot=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{scope,children}=props,context=useCollectionContext(COLLECTION_SLOT_NAME,scope),composedRefs=(0,__TURBOPACK__imported__module__48620__.j)(forwardedRef,context.collectionRef);return(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__81272__.f,{ref:composedRefs,children})});CollectionSlot.displayName=COLLECTION_SLOT_NAME;let ITEM_SLOT_NAME=name+"CollectionItemSlot",ITEM_DATA_ATTR="data-radix-collection-item",CollectionItemSlot=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{scope,children,...itemData}=props,ref=__TURBOPACK__imported__module__95184__.default.useRef(null),composedRefs=(0,__TURBOPACK__imported__module__48620__.j)(forwardedRef,ref),context=useCollectionContext(ITEM_SLOT_NAME,scope);return __TURBOPACK__imported__module__95184__.default.useEffect(()=>(context.itemMap.set(ref,{ref,...itemData}),()=>void context.itemMap.delete(ref))),(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__81272__.f,{...{[ITEM_DATA_ATTR]:""},ref:composedRefs,children})});return CollectionItemSlot.displayName=ITEM_SLOT_NAME,[{Provider:CollectionProvider,Slot:CollectionSlot,ItemSlot:CollectionItemSlot},function useCollection(scope){let context=useCollectionContext(name+"CollectionConsumer",scope);return __TURBOPACK__imported__module__95184__.default.useCallback(()=>{let collectionNode=context.collectionRef.current;if(!collectionNode)return[];let orderedNodes=Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));return Array.from(context.itemMap.values()).sort((a,b)=>orderedNodes.indexOf(a.ref.current)-orderedNodes.indexOf(b.ref.current))},[context.collectionRef,context.itemMap])},createCollectionScope]}var DirectionContext1=__TURBOPACK__imported__module__95184__.createContext(void 0);function useDirection1(localDir){let globalDir=__TURBOPACK__imported__module__95184__.useContext(DirectionContext1);return localDir||globalDir||"ltr"}var ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",EVENT_OPTIONS1={bubbles:!1,cancelable:!0},GROUP_NAME1="RovingFocusGroup",[Collection1,useCollection1,createCollectionScope1]=createCollection1(GROUP_NAME1),[createRovingFocusGroupContext,createRovingFocusGroupScope]=(0,__TURBOPACK__imported__module__29668__.c)(GROUP_NAME1,[createCollectionScope1]),[RovingFocusProvider,useRovingFocusContext]=createRovingFocusGroupContext(GROUP_NAME1),RovingFocusGroup=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>(0,__TURBOPACK__imported__module__24514__.jsx)(Collection1.Provider,{scope:props.__scopeRovingFocusGroup,children:(0,__TURBOPACK__imported__module__24514__.jsx)(Collection1.Slot,{scope:props.__scopeRovingFocusGroup,children:(0,__TURBOPACK__imported__module__24514__.jsx)(RovingFocusGroupImpl,{...props,ref:forwardedRef})})}));RovingFocusGroup.displayName=GROUP_NAME1;var RovingFocusGroupImpl=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeRovingFocusGroup,orientation,loop=!1,dir,currentTabStopId:currentTabStopIdProp,defaultCurrentTabStopId,onCurrentTabStopIdChange,onEntryFocus,preventScrollOnEntryFocus=!1,...groupProps}=props,ref=__TURBOPACK__imported__module__95184__.useRef(null),composedRefs=(0,__TURBOPACK__imported__module__48620__.j)(forwardedRef,ref),direction=useDirection1(dir),[currentTabStopId=null,setCurrentTabStopId]=(0,__TURBOPACK__imported__module__93152__.f)({prop:currentTabStopIdProp,defaultProp:defaultCurrentTabStopId,onChange:onCurrentTabStopIdChange}),[isTabbingBackOut,setIsTabbingBackOut]=__TURBOPACK__imported__module__95184__.useState(!1),handleEntryFocus=(0,__TURBOPACK__imported__module__17245__.f)(onEntryFocus),getItems=useCollection1(__scopeRovingFocusGroup),isClickFocusRef=__TURBOPACK__imported__module__95184__.useRef(!1),[focusableItemsCount,setFocusableItemsCount]=__TURBOPACK__imported__module__95184__.useState(0);return __TURBOPACK__imported__module__95184__.useEffect(()=>{let node=ref.current;if(node)return node.addEventListener(ENTRY_FOCUS,handleEntryFocus),()=>node.removeEventListener(ENTRY_FOCUS,handleEntryFocus)},[handleEntryFocus]),(0,__TURBOPACK__imported__module__24514__.jsx)(RovingFocusProvider,{scope:__scopeRovingFocusGroup,orientation,dir:direction,loop,currentTabStopId,onItemFocus:__TURBOPACK__imported__module__95184__.useCallback(tabStopId=>setCurrentTabStopId(tabStopId),[setCurrentTabStopId]),onItemShiftTab:__TURBOPACK__imported__module__95184__.useCallback(()=>setIsTabbingBackOut(!0),[]),onFocusableItemAdd:__TURBOPACK__imported__module__95184__.useCallback(()=>setFocusableItemsCount(prevCount=>prevCount+1),[]),onFocusableItemRemove:__TURBOPACK__imported__module__95184__.useCallback(()=>setFocusableItemsCount(prevCount=>prevCount-1),[]),children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__26052__.V.div,{tabIndex:isTabbingBackOut||0===focusableItemsCount?-1:0,"data-orientation":orientation,...groupProps,ref:composedRefs,style:{outline:"none",...props.style},onMouseDown:(0,__TURBOPACK__imported__module__78896__.f)(props.onMouseDown,()=>{isClickFocusRef.current=!0}),onFocus:(0,__TURBOPACK__imported__module__78896__.f)(props.onFocus,event=>{let isKeyboardFocus=!isClickFocusRef.current;if(event.target===event.currentTarget&&isKeyboardFocus&&!isTabbingBackOut){let entryFocusEvent=new CustomEvent(ENTRY_FOCUS,EVENT_OPTIONS1);if(event.currentTarget.dispatchEvent(entryFocusEvent),!entryFocusEvent.defaultPrevented){let items=getItems().filter(item=>item.focusable);focusFirst1([items.find(item=>item.active),items.find(item=>item.id===currentTabStopId),...items].filter(Boolean).map(item=>item.ref.current),preventScrollOnEntryFocus)}}isClickFocusRef.current=!1}),onBlur:(0,__TURBOPACK__imported__module__78896__.f)(props.onBlur,()=>setIsTabbingBackOut(!1))})})}),ITEM_NAME1="RovingFocusGroupItem",RovingFocusGroupItem=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{__scopeRovingFocusGroup,focusable=!0,active=!1,tabStopId,...itemProps}=props,autoId=(0,__TURBOPACK__imported__module__32947__.f)(),id=tabStopId||autoId,context=useRovingFocusContext(ITEM_NAME1,__scopeRovingFocusGroup),isCurrentTabStop=context.currentTabStopId===id,getItems=useCollection1(__scopeRovingFocusGroup),{onFocusableItemAdd,onFocusableItemRemove}=context;return __TURBOPACK__imported__module__95184__.useEffect(()=>{if(focusable)return onFocusableItemAdd(),()=>onFocusableItemRemove()},[focusable,onFocusableItemAdd,onFocusableItemRemove]),(0,__TURBOPACK__imported__module__24514__.jsx)(Collection1.ItemSlot,{scope:__scopeRovingFocusGroup,id,focusable,active,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__26052__.V.span,{tabIndex:isCurrentTabStop?0:-1,"data-orientation":context.orientation,...itemProps,ref:forwardedRef,onMouseDown:(0,__TURBOPACK__imported__module__78896__.f)(props.onMouseDown,event=>{focusable?context.onItemFocus(id):event.preventDefault()}),onFocus:(0,__TURBOPACK__imported__module__78896__.f)(props.onFocus,()=>context.onItemFocus(id)),onKeyDown:(0,__TURBOPACK__imported__module__78896__.f)(props.onKeyDown,event=>{if("Tab"===event.key&&event.shiftKey)return void context.onItemShiftTab();if(event.target!==event.currentTarget)return;let focusIntent=getFocusIntent(event,context.orientation,context.dir);if(void 0!==focusIntent){if(event.metaKey||event.ctrlKey||event.altKey||event.shiftKey)return;event.preventDefault();let candidateNodes=getItems().filter(item=>item.focusable).map(item=>item.ref.current);if("last"===focusIntent)candidateNodes.reverse();else if("prev"===focusIntent||"next"===focusIntent){"prev"===focusIntent&&candidateNodes.reverse();let currentIndex=candidateNodes.indexOf(event.currentTarget);candidateNodes=context.loop?wrapArray1(candidateNodes,currentIndex+1):candidateNodes.slice(currentIndex+1)}setTimeout(()=>focusFirst1(candidateNodes))}})})})});RovingFocusGroupItem.displayName=ITEM_NAME1;var MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function getDirectionAwareKey(key,dir){return"rtl"!==dir?key:"ArrowLeft"===key?"ArrowRight":"ArrowRight"===key?"ArrowLeft":key}function getFocusIntent(event,orientation,dir){let key=getDirectionAwareKey(event.key,dir);if(!("vertical"===orientation&&["ArrowLeft","ArrowRight"].includes(key))&&!("horizontal"===orientation&&["ArrowUp","ArrowDown"].includes(key)))return MAP_KEY_TO_FOCUS_INTENT[key]}function focusFirst1(candidates,preventScroll=!1){let PREVIOUSLY_FOCUSED_ELEMENT=document.activeElement;for(let candidate of candidates)if(candidate===PREVIOUSLY_FOCUSED_ELEMENT||(candidate.focus({preventScroll}),document.activeElement!==PREVIOUSLY_FOCUSED_ELEMENT))return}function wrapArray1(array,startIndex){return array.map((_,index)=>array[(startIndex+index)%array.length])}var Toggle=__TURBOPACK__imported__module__95184__.forwardRef((props,forwardedRef)=>{let{pressed:pressedProp,defaultPressed=!1,onPressedChange,...buttonProps}=props,[pressed=!1,setPressed]=(0,__TURBOPACK__imported__module__93152__.f)({prop:pressedProp,onChange:onPressedChange,defaultProp:defaultPressed});return(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__26052__.V.button,{type:"button","aria-pressed":pressed,"data-state":pressed?"on":"off","data-disabled":props.disabled?"":void 0,...buttonProps,ref:forwardedRef,onClick:(0,__TURBOPACK__imported__module__78896__.f)(props.onClick,()=>{props.disabled||setPressed(!pressed)})})});Toggle.displayName="Toggle";var TOGGLE_GROUP_NAME="ToggleGroup",[createToggleGroupContext,createToggleGroupScope]=(0,__TURBOPACK__imported__module__29668__.c)(TOGGLE_GROUP_NAME,[createRovingFocusGroupScope]),useRovingFocusGroupScope=createRovingFocusGroupScope(),ToggleGroup=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{type,...toggleGroupProps}=props;if("single"===type)return(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupImplSingle,{...toggleGroupProps,ref:forwardedRef});if("multiple"===type)return(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupImplMultiple,{...toggleGroupProps,ref:forwardedRef});throw Error(`Missing prop \`type\` expected on \`${TOGGLE_GROUP_NAME}\``)});ToggleGroup.displayName=TOGGLE_GROUP_NAME;var[ToggleGroupValueProvider,useToggleGroupValueContext]=createToggleGroupContext(TOGGLE_GROUP_NAME),ToggleGroupImplSingle=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{value:valueProp,defaultValue,onValueChange=()=>{},...toggleGroupSingleProps}=props,[value,setValue]=(0,__TURBOPACK__imported__module__93152__.f)({prop:valueProp,defaultProp:defaultValue,onChange:onValueChange});return(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupValueProvider,{scope:props.__scopeToggleGroup,type:"single",value:value?[value]:[],onItemActivate:setValue,onItemDeactivate:__TURBOPACK__imported__module__95184__.default.useCallback(()=>setValue(""),[setValue]),children:(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupImpl,{...toggleGroupSingleProps,ref:forwardedRef})})}),ToggleGroupImplMultiple=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{value:valueProp,defaultValue,onValueChange=()=>{},...toggleGroupMultipleProps}=props,[value=[],setValue]=(0,__TURBOPACK__imported__module__93152__.f)({prop:valueProp,defaultProp:defaultValue,onChange:onValueChange}),handleButtonActivate=__TURBOPACK__imported__module__95184__.default.useCallback(itemValue=>setValue((prevValue=[])=>[...prevValue,itemValue]),[setValue]),handleButtonDeactivate=__TURBOPACK__imported__module__95184__.default.useCallback(itemValue=>setValue((prevValue=[])=>prevValue.filter(value2=>value2!==itemValue)),[setValue]);return(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupValueProvider,{scope:props.__scopeToggleGroup,type:"multiple",value,onItemActivate:handleButtonActivate,onItemDeactivate:handleButtonDeactivate,children:(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupImpl,{...toggleGroupMultipleProps,ref:forwardedRef})})});ToggleGroup.displayName=TOGGLE_GROUP_NAME;var[ToggleGroupContext,useToggleGroupContext]=createToggleGroupContext(TOGGLE_GROUP_NAME),ToggleGroupImpl=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{__scopeToggleGroup,disabled=!1,rovingFocus=!0,orientation,dir,loop=!0,...toggleGroupProps}=props,rovingFocusGroupScope=useRovingFocusGroupScope(__scopeToggleGroup),direction=useDirection1(dir),commonProps={role:"group",dir:direction,...toggleGroupProps};return(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupContext,{scope:__scopeToggleGroup,rovingFocus,disabled,children:rovingFocus?(0,__TURBOPACK__imported__module__24514__.jsx)(RovingFocusGroup,{asChild:!0,...rovingFocusGroupScope,orientation,dir:direction,loop,children:(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__26052__.V.div,{...commonProps,ref:forwardedRef})}):(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__26052__.V.div,{...commonProps,ref:forwardedRef})})}),ITEM_NAME2="ToggleGroupItem",ToggleGroupItem=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let valueContext=useToggleGroupValueContext(ITEM_NAME2,props.__scopeToggleGroup),context=useToggleGroupContext(ITEM_NAME2,props.__scopeToggleGroup),rovingFocusGroupScope=useRovingFocusGroupScope(props.__scopeToggleGroup),pressed=valueContext.value.includes(props.value),disabled=context.disabled||props.disabled,commonProps={...props,pressed,disabled},ref=__TURBOPACK__imported__module__95184__.default.useRef(null);return context.rovingFocus?(0,__TURBOPACK__imported__module__24514__.jsx)(RovingFocusGroupItem,{asChild:!0,...rovingFocusGroupScope,focusable:!disabled,active:pressed,ref,children:(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupItemImpl,{...commonProps,ref:forwardedRef})}):(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupItemImpl,{...commonProps,ref:forwardedRef})});ToggleGroupItem.displayName=ITEM_NAME2;var ToggleGroupItemImpl=__TURBOPACK__imported__module__95184__.default.forwardRef((props,forwardedRef)=>{let{__scopeToggleGroup,value,...itemProps}=props,valueContext=useToggleGroupValueContext(ITEM_NAME2,__scopeToggleGroup),singleProps={role:"radio","aria-checked":props.pressed,"aria-pressed":void 0},typeProps="single"===valueContext.type?singleProps:void 0;return(0,__TURBOPACK__imported__module__24514__.jsx)(Toggle,{...typeProps,...itemProps,ref:forwardedRef,onPressedChange:pressed=>{pressed?valueContext.onItemActivate(value):valueContext.onItemDeactivate(value)}})});let ToggleGroupContext1=__TURBOPACK__imported__module__95184__.createContext({size:"default",variant:"default"}),ToggleGroup1=__TURBOPACK__imported__module__95184__.forwardRef((t0,ref)=>{let children,className,props,t1,t2,t3,t4,t5,t6,$=(0,__TURBOPACK__imported__module__36909__.c)(19);$[0]!==t0?({className,variant:t1,size:t2,children,...props}=t0,$[0]=t0,$[1]=children,$[2]=className,$[3]=props,$[4]=t1,$[5]=t2):(children=$[1],className=$[2],props=$[3],t1=$[4],t2=$[5]);let variant=void 0===t1?"default":t1,size=void 0===t2?"default":t2;return $[6]!==className?(t3=(0,__TURBOPACK__imported__module__1234__.c)("flex items-center justify-center gap-1",className),$[6]=className,$[7]=t3):t3=$[7],$[8]!==size||$[9]!==variant?(t4={variant,size},$[8]=size,$[9]=variant,$[10]=t4):t4=$[10],$[11]!==children||$[12]!==t4?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupContext1.Provider,{value:t4,children:children}),$[11]=children,$[12]=t4,$[13]=t5):t5=$[13],$[14]!==props||$[15]!==ref||$[16]!==t3||$[17]!==t5?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroup,{ref:ref,className:t3,...props,children:t5}),$[14]=props,$[15]=ref,$[16]=t3,$[17]=t5,$[18]=t6):t6=$[18],t6});ToggleGroup1.displayName=ToggleGroup.displayName;let ToggleGroupItem1=__TURBOPACK__imported__module__95184__.forwardRef((t0,ref)=>{let children,className,props,t4,t5,$=(0,__TURBOPACK__imported__module__36909__.c)(14);$[0]!==t0?({className,children,...props}=t0,$[0]=t0,$[1]=children,$[2]=className,$[3]=props):(children=$[1],className=$[2],props=$[3]);let context=__TURBOPACK__imported__module__95184__.useContext(ToggleGroupContext1),t1="default"===context.size&&"h-10 px-3",t2="sm"===context.size&&"h-8 px-2 text-xs",t3="lg"===context.size&&"h-11 px-5";return $[4]!==className||$[5]!==t1||$[6]!==t2||$[7]!==t3?(t4=(0,__TURBOPACK__imported__module__1234__.c)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",t1,t2,t3,className),$[4]=className,$[5]=t1,$[6]=t2,$[7]=t3,$[8]=t4):t4=$[8],$[9]!==children||$[10]!==props||$[11]!==ref||$[12]!==t4?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(ToggleGroupItem,{ref:ref,className:t4,...props,children:children}),$[9]=children,$[10]=props,$[11]=ref,$[12]=t4,$[13]=t5):t5=$[13],t5});ToggleGroupItem1.displayName=ToggleGroupItem.displayName;let Monitor=(0,__TURBOPACK__imported__module__46914__.f)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]),FileCode=(0,__TURBOPACK__imported__module__46914__.f)("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]),FileBraces=(0,__TURBOPACK__imported__module__46914__.f)("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),Palette=(0,__TURBOPACK__imported__module__46914__.f)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]),Table=(0,__TURBOPACK__imported__module__46914__.f)("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),LayoutGrid=(0,__TURBOPACK__imported__module__46914__.f)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);var Environment1=((Environment={}).Client="client",Environment.Server="server",Environment),CompareView1=((CompareView={}).Treemap="treemap",CompareView.Table="table",CompareView);let typeFilterOptions=[{value:"js",label:"JavaScript",icon:(0,__TURBOPACK__imported__module__24514__.jsx)(FileCode,{className:"h-3.5 w-3.5"})},{value:"css",label:"CSS",icon:(0,__TURBOPACK__imported__module__24514__.jsx)(Palette,{className:"h-3.5 w-3.5"})},{value:"json",label:"JSON",icon:(0,__TURBOPACK__imported__module__24514__.jsx)(FileBraces,{className:"h-3.5 w-3.5"})},{value:"asset",label:"Asset",icon:(0,__TURBOPACK__imported__module__24514__.jsx)(Package,{className:"h-3.5 w-3.5"})}];function TopBar(t0){let t1,t2,t4,t5,t6,t7,$=(0,__TURBOPACK__imported__module__36909__.c)(44),{selectedRoute,routePickerOpen,onRoutePickerOpenChange,setSelectedRoute,getRouteHref,environmentFilter,setEnvironmentFilter,setSelectedSourceIndex,setFocusedSourceIndex,typeFilter,setTypeFilter,searchQuery,setSearchQuery,isCompareMode,historySnapshots,historyLoading,historyError,latestSnapshot,singleBuildName,fromName,toName,onSingleBuildChange,onComparisonChange,routesBaseDir,compareView,onCompareViewChange,routeDiff,routeTotals,hasSourceData,showViewToggle,initialLoaded,onInitialLoadedChange}=t0;$[0]!==getRouteHref||$[1]!==setFocusedSourceIndex||$[2]!==setSelectedRoute||$[3]!==setSelectedSourceIndex?(t1=getRouteHref?{mode:"link",getRouteHref}:{mode:"action",onRouteSelected:route=>{setSelectedRoute(route),setSelectedSourceIndex(null),setFocusedSourceIndex(null)}},$[0]=getRouteHref,$[1]=setFocusedSourceIndex,$[2]=setSelectedRoute,$[3]=setSelectedSourceIndex,$[4]=t1):t1=$[4];let routeSelection=t1;$[5]!==fromName||$[6]!==historyError||$[7]!==historyLoading||$[8]!==historySnapshots||$[9]!==isCompareMode||$[10]!==latestSnapshot||$[11]!==onComparisonChange||$[12]!==onSingleBuildChange||$[13]!==singleBuildName||$[14]!==toName?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(BuildPicker,{compareMode:isCompareMode,historySnapshots:historySnapshots,historyLoading:historyLoading,historyError:historyError,latestSnapshot:latestSnapshot,singleBuildName:singleBuildName,fromName:fromName,toName:toName,onSingleBuildChange:onSingleBuildChange,onComparisonChange:onComparisonChange}),$[5]=fromName,$[6]=historyError,$[7]=historyLoading,$[8]=historySnapshots,$[9]=isCompareMode,$[10]=latestSnapshot,$[11]=onComparisonChange,$[12]=onSingleBuildChange,$[13]=singleBuildName,$[14]=toName,$[15]=t2):t2=$[15];let t3=isCompareMode?routeDiff:null;return $[16]!==onRoutePickerOpenChange||$[17]!==routePickerOpen||$[18]!==routeSelection||$[19]!==routeTotals||$[20]!==routesBaseDir||$[21]!==selectedRoute||$[22]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__28613__.g,{selectedRoute:selectedRoute,open:routePickerOpen,onOpenChange:onRoutePickerOpenChange,...routeSelection,routeDiff:t3,routeTotals:routeTotals,routesBaseDir:routesBaseDir,useCompressed:!0}),$[16]=onRoutePickerOpenChange,$[17]=routePickerOpen,$[18]=routeSelection,$[19]=routeTotals,$[20]=routesBaseDir,$[21]=selectedRoute,$[22]=t3,$[23]=t4):t4=$[23],$[24]!==t2||$[25]!==t4?(t5=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex min-w-48 flex-1 gap-2",children:[t2,t4]}),$[24]=t2,$[25]=t4,$[26]=t5):t5=$[26],$[27]!==compareView||$[28]!==environmentFilter||$[29]!==hasSourceData||$[30]!==initialLoaded||$[31]!==isCompareMode||$[32]!==onCompareViewChange||$[33]!==onInitialLoadedChange||$[34]!==searchQuery||$[35]!==setEnvironmentFilter||$[36]!==setSearchQuery||$[37]!==setTypeFilter||$[38]!==showViewToggle||$[39]!==typeFilter?(t6=hasSourceData&&(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[showViewToggle&&(0,__TURBOPACK__imported__module__24514__.jsxs)(ToggleGroup1,{type:"single",size:"sm",value:compareView,onValueChange:value=>{value&&onCompareViewChange(value)},"aria-label":"View",className:"shrink-0",children:[(0,__TURBOPACK__imported__module__24514__.jsxs)(ToggleGroupItem1,{value:"table","aria-label":"Table view",title:"Table view",className:"gap-1.5",children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Table,{className:"h-3.5 w-3.5"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-xs",children:"Table"})]}),(0,__TURBOPACK__imported__module__24514__.jsxs)(ToggleGroupItem1,{value:"treemap","aria-label":"Treemap view",title:"Treemap view",className:"gap-1.5",children:[(0,__TURBOPACK__imported__module__24514__.jsx)(LayoutGrid,{className:"h-3.5 w-3.5"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-xs",children:"Treemap"})]})]}),(0,__TURBOPACK__imported__module__24514__.jsxs)(Select1,{value:environmentFilter,onValueChange:value_0=>setEnvironmentFilter(value_0),children:[(0,__TURBOPACK__imported__module__24514__.jsx)(SelectTrigger1,{className:"w-28",children:(0,__TURBOPACK__imported__module__24514__.jsx)(SelectValue1,{})}),(0,__TURBOPACK__imported__module__24514__.jsxs)(SelectContent1,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(SelectItem1,{value:"client",children:(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Monitor,{className:"h-3.5 w-3.5"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-xs",children:"Client"})]})}),(0,__TURBOPACK__imported__module__24514__.jsx)(SelectItem1,{value:"server",children:(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,__TURBOPACK__imported__module__24514__.jsx)(Server,{className:"h-3.5 w-3.5"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-xs",children:"Server"})]})})]})]}),(0,__TURBOPACK__imported__module__24514__.jsx)(MultiSelect,{options:typeFilterOptions,value:typeFilter,onValueChange:setTypeFilter,selectionName:{singular:"file type",plural:"file types"},triggerIcon:(0,__TURBOPACK__imported__module__24514__.jsx)(FileCode,{className:"h-3.5 w-3.5"}),triggerClassName:"w-36","aria-label":"Filter by file type"}),!isCompareMode&&onInitialLoadedChange?(0,__TURBOPACK__imported__module__24514__.jsxs)("label",{className:"flex h-8 cursor-pointer items-center gap-2 whitespace-nowrap px-1",title:"Show only modules with an initial synchronous path",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-xs",children:"Initial load only"}),(0,__TURBOPACK__imported__module__24514__.jsx)(Switch1,{checked:initialLoaded,onCheckedChange:onInitialLoadedChange,"aria-label":"Show only modules with an initial synchronous path"})]}):null,hasSourceData?(0,__TURBOPACK__imported__module__24514__.jsx)(FileSearch,{value:searchQuery,onChange:setSearchQuery}):null]}),$[27]=compareView,$[28]=environmentFilter,$[29]=hasSourceData,$[30]=initialLoaded,$[31]=isCompareMode,$[32]=onCompareViewChange,$[33]=onInitialLoadedChange,$[34]=searchQuery,$[35]=setEnvironmentFilter,$[36]=setSearchQuery,$[37]=setTypeFilter,$[38]=showViewToggle,$[39]=typeFilter,$[40]=t6):t6=$[40],$[41]!==t5||$[42]!==t6?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex-none border-b border-border",children:(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex min-w-0 items-center gap-2 overflow-x-auto px-4 py-2",children:[t5,t6]})}),$[41]=t5,$[42]=t6,$[43]=t7):t7=$[43],t7}var __TURBOPACK__imported__module__55905__=__turbopack_context__.i(55905);function CompareLayout(t0){let t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,$=(0,__TURBOPACK__imported__module__36909__.c)(53),{model,onResizeSidebar}=t0;return $[0]!==model.selectedRoute||$[1]!==model.sourceDiff?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(RouteStatsCard,{selectedRoute:model.selectedRoute,sourceDiff:model.sourceDiff,compressed:!0,className:"xl:min-w-0 xl:flex-1 xl:basis-0 xl:border-r xl:border-border"}),$[0]=model.selectedRoute,$[1]=model.sourceDiff,$[2]=t1):t1=$[2],$[3]!==model.baselineSnapshot||$[4]!==model.comparisonRouteCount||$[5]!==model.routeDiff?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(CompareContextStrip,{baselineSnapshot:model.baselineSnapshot,comparisonRouteCount:model.comparisonRouteCount,routeDiff:model.routeDiff,compressed:!0,className:"xl:min-w-0 xl:flex-1 xl:basis-0"}),$[3]=model.baselineSnapshot,$[4]=model.comparisonRouteCount,$[5]=model.routeDiff,$[6]=t2):t2=$[6],$[7]!==t1||$[8]!==t2?(t3=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex flex-none flex-col border-b border-border xl:flex-row xl:items-stretch",children:[t1,t2]}),$[7]=t1,$[8]=t2,$[9]=t3):t3=$[9],$[10]!==model.analyzeData||$[11]!==model.baselineAnalyzeData||$[12]!==model.baselineIsLatest||$[13]!==model.baselineSnapshot||$[14]!==model.compareView||$[15]!==model.comparisonSnapshot||$[16]!==model.environmentFilter||$[17]!==model.hasAlternateEnvironmentSources||$[18]!==model.isViewPending||$[19]!==model.onOpenRoutePicker||$[20]!==model.onSelectedKeyChange||$[21]!==model.searchQuery||$[22]!==model.selectedKey||$[23]!==model.selectedRoute||$[24]!==model.sourceDiff?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 min-w-0 flex-col",children:(0,__TURBOPACK__imported__module__24514__.jsx)(ComparePerRoutePanel,{compareView:model.compareView,isViewPending:model.isViewPending,selectedRoute:model.selectedRoute,sourceDiff:model.sourceDiff,analyzeData:model.analyzeData,baselineAnalyzeData:model.baselineAnalyzeData,compressed:!0,searchQuery:model.searchQuery,environmentFilter:model.environmentFilter,hasAlternateEnvironmentSources:model.hasAlternateEnvironmentSources,baselineSnapshot:model.baselineSnapshot,baselineIsLatest:model.baselineIsLatest,comparisonSnapshot:model.comparisonSnapshot,compareSelectedKey:model.selectedKey,onCompareSelectedKeyChange:model.onSelectedKeyChange,onOpenRoutePicker:model.onOpenRoutePicker})}),$[10]=model.analyzeData,$[11]=model.baselineAnalyzeData,$[12]=model.baselineIsLatest,$[13]=model.baselineSnapshot,$[14]=model.compareView,$[15]=model.comparisonSnapshot,$[16]=model.environmentFilter,$[17]=model.hasAlternateEnvironmentSources,$[18]=model.isViewPending,$[19]=model.onOpenRoutePicker,$[20]=model.onSelectedKeyChange,$[21]=model.searchQuery,$[22]=model.selectedKey,$[23]=model.selectedRoute,$[24]=model.sourceDiff,$[25]=t4):t4=$[25],$[26]!==onResizeSidebar?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button",className:"flex-none w-1 bg-border hover:bg-primary cursor-col-resize transition-colors",onMouseDown:onResizeSidebar,"aria-label":"Resize sidebar"}),$[26]=onResizeSidebar,$[27]=t5):t5=$[27],$[28]!==model.baselineIsLatest||$[29]!==model.baselineSnapshot?(t6=model.baselineIsLatest?"Latest":formatSnapshotLabel(model.baselineSnapshot),$[28]=model.baselineIsLatest,$[29]=model.baselineSnapshot,$[30]=t6):t6=$[30],$[31]!==model.comparisonSnapshot?(t7=model.comparisonSnapshot?formatSnapshotLabel(model.comparisonSnapshot):"Latest",$[31]=model.comparisonSnapshot,$[32]=t7):t7=$[32],$[33]!==model.analyzeData||$[34]!==model.baselineAnalyzeData||$[35]!==model.baselineModuleDepthMap||$[36]!==model.baselineModulesData||$[37]!==model.environmentFilter||$[38]!==model.moduleDepthMap||$[39]!==model.modulesData||$[40]!==model.selectedKey||$[41]!==model.sidebarWidth||$[42]!==model.sourceDiff||$[43]!==t6||$[44]!==t7?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)(CompareSidebar,{selectedKey:model.selectedKey,sourceDiff:model.sourceDiff,analyzeData:model.analyzeData,baselineAnalyzeData:model.baselineAnalyzeData,modulesData:model.modulesData,baselineModulesData:model.baselineModulesData,moduleDepthMap:model.moduleDepthMap,baselineModuleDepthMap:model.baselineModuleDepthMap,environmentFilter:model.environmentFilter,sidebarWidth:model.sidebarWidth,aLabel:t6,bLabel:t7}),$[33]=model.analyzeData,$[34]=model.baselineAnalyzeData,$[35]=model.baselineModuleDepthMap,$[36]=model.baselineModulesData,$[37]=model.environmentFilter,$[38]=model.moduleDepthMap,$[39]=model.modulesData,$[40]=model.selectedKey,$[41]=model.sidebarWidth,$[42]=model.sourceDiff,$[43]=t6,$[44]=t7,$[45]=t8):t8=$[45],$[46]!==t4||$[47]!==t5||$[48]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex flex-1 min-h-0",children:[t4,t5,t8]}),$[46]=t4,$[47]=t5,$[48]=t8,$[49]=t9):t9=$[49],$[50]!==t3||$[51]!==t9?(t10=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex h-full w-full min-w-0 flex-col",children:[t3,t9]}),$[50]=t3,$[51]=t9,$[52]=t10):t10=$[52],t10}function CompareContextStrip(t0){let t1,t2,t3,t4,t5,t6,t7,t8,$=(0,__TURBOPACK__imported__module__36909__.c)(22),{baselineSnapshot,comparisonRouteCount,routeDiff,compressed,className}=t0,baselineRoutes=baselineSnapshot.routeCount;$[0]!==comparisonRouteCount||$[1]!==routeDiff?.rows?(t1=comparisonRouteCount??routeDiff?.rows.filter(_temp8).length??null,$[0]=comparisonRouteCount,$[1]=routeDiff?.rows,$[2]=t1):t1=$[2];let comparisonRoutes=t1,totalA=routeDiff?compressed?routeDiff.totalCompressedA:routeDiff.totalA:null,totalB=routeDiff?compressed?routeDiff.totalCompressedB:routeDiff.totalB:null,sizeDelta=null!=totalA&&null!=totalB?totalB-totalA:null,counts=routeDiff?.counts;return $[3]!==className?(t2=(0,__TURBOPACK__imported__module__1234__.c)("flex flex-none flex-col gap-2 bg-muted/30 px-4 py-3",className),$[3]=className,$[4]=t2):t2=$[4],$[5]===Symbol.for("react.memo_cache_sentinel")?(t3=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center gap-2",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"App"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{"aria-hidden":!0,className:"h-px flex-1 bg-border"})]}),$[5]=t3):t3=$[5],$[6]!==baselineRoutes||$[7]!==comparisonRoutes?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)(StatCard,{label:"Total routes",a:baselineRoutes,b:comparisonRoutes,deltaTone:"neutral"}),$[6]=baselineRoutes,$[7]=comparisonRoutes,$[8]=t4):t4=$[8],$[9]!==sizeDelta||$[10]!==totalA||$[11]!==totalB?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(StatCard,{label:"Total size",a:totalA,b:totalB,formatValue:__TURBOPACK__imported__module__1234__.L,deltaValue:sizeDelta,formatDeltaValue:_temp24,deltaTone:"size"}),$[9]=sizeDelta,$[10]=totalA,$[11]=totalB,$[12]=t5):t5=$[12],$[13]!==counts?(t6=counts?(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Routes added",value:counts.added,tone:"added"}),(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Routes removed",value:counts.removed,tone:"removed"}),(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Routes changed",value:counts.changed,tone:"changed"}),(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Routes identical",value:counts.identical,tone:"identical"})]}):null,$[13]=counts,$[14]=t6):t6=$[14],$[15]!==t4||$[16]!==t5||$[17]!==t6?(t7=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex flex-wrap items-stretch gap-2",children:[t4,t5,t6]}),$[15]=t4,$[16]=t5,$[17]=t6,$[18]=t7):t7=$[18],$[19]!==t2||$[20]!==t7?(t8=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:t2,children:[t3,t7]}),$[19]=t2,$[20]=t7,$[21]=t8):t8=$[21],t8}function _temp24(d){return(0,__TURBOPACK__imported__module__48696__.c)(d)}function _temp8(r){return"removed"!==r.status}function RouteStatsCard(t0){let t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(10),{selectedRoute,sourceDiff,compressed,className}=t0;$[0]!==compressed||$[1]!==selectedRoute||$[2]!==sourceDiff?(t1=selectedRoute?sourceDiff?(0,__TURBOPACK__imported__module__24514__.jsx)(RouteStatsBody,{sourceDiff:sourceDiff,compressed:compressed}):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"pt-1 text-xs text-muted-foreground",children:"No data for this route."}):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"pt-1 text-xs text-muted-foreground",children:"Select a route above to see per-source changes."}),$[0]=compressed,$[1]=selectedRoute,$[2]=sourceDiff,$[3]=t1):t1=$[3];let body=t1;return $[4]!==className?(t2=(0,__TURBOPACK__imported__module__1234__.c)("flex flex-none flex-col gap-2 px-4 py-3",className),$[4]=className,$[5]=t2):t2=$[5],$[6]===Symbol.for("react.memo_cache_sentinel")?(t3=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex items-center gap-2",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wider text-muted-foreground",children:"Route"}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{"aria-hidden":!0,className:"h-px flex-1 bg-border"})]}),$[6]=t3):t3=$[6],$[7]!==body||$[8]!==t2?(t4=(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:t2,children:[t3,body]}),$[7]=body,$[8]=t2,$[9]=t4):t4=$[9],t4}function RouteStatsBody(t0){let t1,t2,t3,t4,t5,t6,$=(0,__TURBOPACK__imported__module__36909__.c)(18),{sourceDiff,compressed}=t0,routeSizeA=compressed?sourceDiff.totalCompressedA:sourceDiff.totalA,routeSizeB=compressed?sourceDiff.totalCompressedB:sourceDiff.totalB,routeSizeDelta=routeSizeB-routeSizeA,sourceCounts=sourceDiff.counts;return $[0]!==routeSizeA||$[1]!==routeSizeB||$[2]!==routeSizeDelta?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(StatCard,{label:"Total size",a:routeSizeA,b:routeSizeB,formatValue:__TURBOPACK__imported__module__1234__.L,deltaValue:routeSizeDelta,formatDeltaValue:_temp32,deltaTone:"size"}),$[0]=routeSizeA,$[1]=routeSizeB,$[2]=routeSizeDelta,$[3]=t1):t1=$[3],$[4]!==sourceCounts.added?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Sources added",value:sourceCounts.added,tone:"added"}),$[4]=sourceCounts.added,$[5]=t2):t2=$[5],$[6]!==sourceCounts.removed?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Sources removed",value:sourceCounts.removed,tone:"removed"}),$[6]=sourceCounts.removed,$[7]=t3):t3=$[7],$[8]!==sourceCounts.changed?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Sources changed",value:sourceCounts.changed,tone:"changed"}),$[8]=sourceCounts.changed,$[9]=t4):t4=$[9],$[10]!==sourceCounts.identical?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(CountCard,{label:"Sources identical",value:sourceCounts.identical,tone:"identical"}),$[10]=sourceCounts.identical,$[11]=t5):t5=$[11],$[12]!==t1||$[13]!==t2||$[14]!==t3||$[15]!==t4||$[16]!==t5?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__24514__.Fragment,{children:(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex flex-wrap items-stretch gap-2 pt-1",children:[t1,t2,t3,t4,t5]})}),$[12]=t1,$[13]=t2,$[14]=t3,$[15]=t4,$[16]=t5,$[17]=t6):t6=$[17],t6}function _temp32(d){return(0,__TURBOPACK__imported__module__48696__.c)(d)}function ComparePerRoutePanel(t0){let t1,$=(0,__TURBOPACK__imported__module__36909__.c)(21),{compareView,isViewPending,selectedRoute,sourceDiff,analyzeData,baselineAnalyzeData,compressed,searchQuery,environmentFilter,hasAlternateEnvironmentSources,baselineSnapshot,baselineIsLatest,comparisonSnapshot,compareSelectedKey,onCompareSelectedKeyChange,onOpenRoutePicker}=t0;if(!selectedRoute){let t1;return $[0]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center p-4 text-sm text-muted-foreground",children:"Select a route above to see per-source changes."}),$[0]=t1):t1=$[0],t1}if(!sourceDiff){let t1;return $[1]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center p-4 text-sm text-muted-foreground",children:"No data for this route."}),$[1]=t1):t1=$[1],t1}if(isViewPending){let t1;return $[2]!==compareView?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 min-h-0 p-4",role:"status","aria-label":"Loading view",children:compareView===CompareView1.Treemap?(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__55905__.p,{}):(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__55905__.h,{})}),$[2]=compareView,$[3]=t1):t1=$[3],t1}if(sourceDiff.rows.length>0&&0===sourceDiff.counts.added&&0===sourceDiff.counts.removed&&0===sourceDiff.counts.changed){let t1;return $[4]!==onOpenRoutePicker||$[5]!==selectedRoute?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(NoModuleChangesState,{selectedRoute:selectedRoute,onOpenRoutePicker:onOpenRoutePicker}),$[4]=onOpenRoutePicker,$[5]=selectedRoute,$[6]=t1):t1=$[6],t1}return $[7]!==analyzeData||$[8]!==baselineAnalyzeData||$[9]!==baselineIsLatest||$[10]!==baselineSnapshot||$[11]!==compareSelectedKey||$[12]!==compareView||$[13]!==comparisonSnapshot||$[14]!==compressed||$[15]!==environmentFilter||$[16]!==hasAlternateEnvironmentSources||$[17]!==onCompareSelectedKeyChange||$[18]!==searchQuery||$[19]!==sourceDiff?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 min-h-0 flex-col",children:compareView===CompareView1.Treemap&&0===sourceDiff.rows.length&&hasAlternateEnvironmentSources?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex h-full items-center justify-center p-4 text-sm text-muted-foreground",children:(0,__TURBOPACK__imported__module__24514__.jsx)(AlternateEnvironmentEmptyState,{environment:environmentFilter})}):compareView===CompareView1.Treemap?(0,__TURBOPACK__imported__module__24514__.jsx)(DiffTreemap,{summary:sourceDiff,useCompressed:compressed,analyzeData:analyzeData,baselineAnalyzeData:baselineAnalyzeData,searchQuery:searchQuery,selectedKey:compareSelectedKey,onSelectKey:onCompareSelectedKeyChange}):(0,__TURBOPACK__imported__module__24514__.jsx)(DiffTable,{summary:sourceDiff,useCompressed:compressed,nameHeading:"Source",aHeading:baselineIsLatest?"Latest":formatSnapshotLabel(baselineSnapshot),bHeading:comparisonSnapshot?formatSnapshotLabel(comparisonSnapshot):"Latest",searchQuery:searchQuery,emptyState:hasAlternateEnvironmentSources?(0,__TURBOPACK__imported__module__24514__.jsx)(AlternateEnvironmentEmptyState,{environment:environmentFilter}):void 0,selectedKey:compareSelectedKey,onRowSelect:row=>onCompareSelectedKeyChange(row.key)})}),$[7]=analyzeData,$[8]=baselineAnalyzeData,$[9]=baselineIsLatest,$[10]=baselineSnapshot,$[11]=compareSelectedKey,$[12]=compareView,$[13]=comparisonSnapshot,$[14]=compressed,$[15]=environmentFilter,$[16]=hasAlternateEnvironmentSources,$[17]=onCompareSelectedKeyChange,$[18]=searchQuery,$[19]=sourceDiff,$[20]=t1):t1=$[20],t1}function NoModuleChangesState(t0){let t1,t2,t3,t4,t5,t6,t7,t8,t9,$=(0,__TURBOPACK__imported__module__36909__.c)(14),{selectedRoute,onOpenRoutePicker}=t0;return $[0]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"mb-4 flex h-10 w-10 items-center justify-center rounded-full border border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",children:(0,__TURBOPACK__imported__module__24514__.jsx)(CircleCheck,{className:"h-5 w-5","aria-hidden":"true"})}),t2=(0,__TURBOPACK__imported__module__24514__.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"No module changes"}),t3=(0,__TURBOPACK__imported__module__24514__.jsx)("p",{className:"mt-1.5 text-sm leading-6 text-muted-foreground",children:"This route contains the same modules with the same sizes in both revisions."}),$[0]=t1,$[1]=t2,$[2]=t3):(t1=$[0],t2=$[1],t3=$[2]),$[3]===Symbol.for("react.memo_cache_sentinel")?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__81063__.f,{"aria-hidden":"true"}),$[3]=t4):t4=$[3],$[4]!==onOpenRoutePicker?(t5=(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__1748__.f,{type:"button",size:"sm",onClick:onOpenRoutePicker,children:[t4,"Choose another route"]}),$[4]=onOpenRoutePicker,$[5]=t5):t5=$[5],$[6]!==selectedRoute?(t6={pathname:"/analyze",query:{route:selectedRoute}},$[6]=selectedRoute,$[7]=t6):t6=$[7],$[8]===Symbol.for("react.memo_cache_sentinel")?(t7=(0,__TURBOPACK__imported__module__24514__.jsx)(ArrowRight,{"aria-hidden":"true"}),$[8]=t7):t7=$[8],$[9]!==t6?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__1748__.f,{asChild:!0,variant:"outline",size:"sm",children:(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__46416__.default,{href:t6,children:["View latest analysis",t7]})}),$[9]=t6,$[10]=t8):t8=$[10],$[11]!==t5||$[12]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center p-6 text-center",children:(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"flex max-w-sm flex-col items-center",children:[t1,t2,t3,(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-center gap-2",children:[t5,t8]})]})}),$[11]=t5,$[12]=t8,$[13]=t9):t9=$[13],t9}var __TURBOPACK__imported__module__60944__=__turbopack_context__.i(60944),__TURBOPACK__imported__module__64231__=__turbopack_context__.i(64231);function useSidebarResize(t0){let t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(6),[sidebarWidth,setSidebarWidth]=(0,__TURBOPACK__imported__module__95184__.useState)(void 0===t0?20:t0),[isResizing,setIsResizing]=(0,__TURBOPACK__imported__module__95184__.useState)(!1);return $[0]!==isResizing?(t1=()=>{if(!isResizing)return;let handleMouseMove=event=>{setSidebarWidth(Math.max(10,Math.min(50,(window.innerWidth-event.clientX)/window.innerWidth*100)))},handleMouseUp=()=>setIsResizing(!1);return window.addEventListener("mousemove",handleMouseMove),window.addEventListener("mouseup",handleMouseUp),()=>{window.removeEventListener("mousemove",handleMouseMove),window.removeEventListener("mouseup",handleMouseUp)}},t2=[isResizing],$[0]=isResizing,$[1]=t1,$[2]=t2):(t1=$[1],t2=$[2]),(0,__TURBOPACK__imported__module__95184__.useEffect)(t1,t2),$[3]===Symbol.for("react.memo_cache_sentinel")?(t3=()=>setIsResizing(!0),$[3]=t3):t3=$[3],$[4]!==sidebarWidth?(t4={sidebarWidth,startResizing:t3},$[4]=sidebarWidth,$[5]=t4):t4=$[5],t4}function useAnalyzerRoute(compare,snapshots,latestSnapshot){let t0,t1,baselineSnapshot,comparisonSnapshot,fromName,invalidComparison,singleSnapshot,t2,toName,t3,t4,t5,t6,t7,t8,t10,t11,t12,t13,t14,t15,t16,t17,t18,$=(0,__TURBOPACK__imported__module__36909__.c)(86),router=(0,__TURBOPACK__imported__module__15975__.useRouter)(),pathname=(0,__TURBOPACK__imported__module__15975__.usePathname)(),searchParams=(0,__TURBOPACK__imported__module__15975__.useSearchParams)();$[0]!==searchParams?(t0=searchParams.get("route"),$[0]=searchParams,$[1]=t0):t0=$[1];let selectedRoute=t0;$[2]!==compare||$[3]!==searchParams?(t1=compare?null:decodeBuildSelection(searchParams.get("build")??"latest"),$[2]=compare,$[3]=searchParams,$[4]=t1):t1=$[4];let singleBuildName=t1,invalidSingleBuild=!compare&&void 0===singleBuildName;if($[5]!==compare||$[6]!==latestSnapshot||$[7]!==searchParams||$[8]!==singleBuildName||$[9]!==snapshots){let t3,t4,t5,t6;singleSnapshot="string"==typeof singleBuildName?snapshots?.find(snapshot=>snapshot.name===singleBuildName)??null:null,$[17]!==compare||$[18]!==searchParams?(t3=compare?decodeBuildSelection(searchParams.get("from")):void 0,$[17]=compare,$[18]=searchParams,$[19]=t3):t3=$[19],fromName=t3,$[20]!==compare||$[21]!==searchParams?(t4=compare?decodeBuildSelection(searchParams.get("to")??"latest"):null,$[20]=compare,$[21]=searchParams,$[22]=t4):t4=$[22],toName=t4,$[23]!==compare||$[24]!==snapshots||$[25]!==toName?(t5=compare&&(void 0===toName||null!==toName&&!snapshots?.some(snapshot_0=>snapshot_0.name===toName)),$[23]=compare,$[24]=snapshots,$[25]=toName,$[26]=t5):t5=$[26],invalidComparison=t5,$[27]!==compare||$[28]!==fromName||$[29]!==latestSnapshot||$[30]!==snapshots?(t6=compare?null===fromName?latestSnapshot:snapshots?.find(snapshot_1=>snapshot_1.name===fromName)??null:null,$[27]=compare,$[28]=fromName,$[29]=latestSnapshot,$[30]=snapshots,$[31]=t6):t6=$[31],baselineSnapshot=t6,t2=(comparisonSnapshot=compare?snapshots?.find(snapshot_2=>snapshot_2.name===toName)??null:singleSnapshot)?snapshotBaseDir(comparisonSnapshot):"/data",$[5]=compare,$[6]=latestSnapshot,$[7]=searchParams,$[8]=singleBuildName,$[9]=snapshots,$[10]=baselineSnapshot,$[11]=comparisonSnapshot,$[12]=fromName,$[13]=invalidComparison,$[14]=singleSnapshot,$[15]=t2,$[16]=toName}else baselineSnapshot=$[10],comparisonSnapshot=$[11],fromName=$[12],invalidComparison=$[13],singleSnapshot=$[14],t2=$[15],toName=$[16];let activeBaseDir=t2;$[32]!==searchParams?(t3=searchParams.get("view"),$[32]=searchParams,$[33]=t3):t3=$[33];let viewParam=t3,compareView=viewParam===CompareView1.Table||viewParam===CompareView1.Treemap?viewParam:CompareView1.Treemap,environmentFilter=searchParams.get("environment")===Environment1.Server?Environment1.Server:Environment1.Client;$[34]!==searchParams?(t4=searchParams.get("query")??"",$[34]=searchParams,$[35]=t4):t4=$[35];let searchQuery=t4;$[36]!==searchParams?(t5=parseTypeFilter(searchParams.get("types")),$[36]=searchParams,$[37]=t5):t5=$[37];let typeFilter=t5;$[38]!==searchParams?(t6=function buildHref(nextPathname,updates){let nextSearchParams=new URLSearchParams(searchParams.toString());for(let[key,value]of Object.entries(updates))null==value?nextSearchParams.delete(key):nextSearchParams.set(key,value);let query=nextSearchParams.toString();return`${nextPathname}${query?`?${query}`:""}`},$[38]=searchParams,$[39]=t6):t6=$[39];let buildHref=t6;$[40]!==buildHref||$[41]!==router?(t7=function navigate(nextPathname_0,updates_0,method){router[method](buildHref(nextPathname_0,updates_0))},$[40]=buildHref,$[41]=router,$[42]=t7):t7=$[42];let navigate=t7;$[43]!==pathname||$[44]!==searchParams?(t8=function replaceSearchParams(updates_1){let nextSearchParams_0=new URLSearchParams(searchParams.toString());for(let[key_0,value_0]of Object.entries(updates_1))null==value_0?nextSearchParams_0.delete(key_0):nextSearchParams_0.set(key_0,value_0);let query_0=nextSearchParams_0.toString();window.history.replaceState(null,"",`${pathname}${query_0?`?${query_0}`:""}`)},$[43]=pathname,$[44]=searchParams,$[45]=t8):t8=$[45];let replaceSearchParams=t8,t9=singleBuildName??null;return $[46]!==navigate||$[47]!==pathname?(t10=view=>navigate(pathname,{view},"replace"),t11=route=>navigate(pathname,{route},"replace"),$[46]=navigate,$[47]=pathname,$[48]=t10,$[49]=t11):(t10=$[48],t11=$[49]),$[50]!==buildHref||$[51]!==pathname?(t12="/"===pathname?route_0=>buildHref("/analyze",{route:route_0}):void 0,$[50]=buildHref,$[51]=pathname,$[52]=t12):t12=$[52],$[53]!==navigate?(t13=name=>navigate("/analyze",{build:null===name?null:encodeBuildSelection(name),from:null,to:null},"push"),$[53]=navigate,$[54]=t13):t13=$[54],$[55]!==fromName||$[56]!==navigate||$[57]!==pathname?(t14=(from,to)=>navigate("/compare",{from:encodeBuildSelection(from),to:null===to?null:encodeBuildSelection(to),build:null},"/compare"===pathname&&fromName===from?"replace":"push"),$[55]=fromName,$[56]=navigate,$[57]=pathname,$[58]=t14):t14=$[58],$[59]!==replaceSearchParams?(t15=environment=>replaceSearchParams({environment:environment===Environment1.Client?null:environment}),t16=query_1=>replaceSearchParams({query:query_1||null}),t17=types=>replaceSearchParams({types:arraysEqual(types,DEFAULT_TYPE_FILTER)?null:normalizeTypeFilter(types).join(",")}),$[59]=replaceSearchParams,$[60]=t15,$[61]=t16,$[62]=t17):(t15=$[60],t16=$[61],t17=$[62]),$[63]!==activeBaseDir||$[64]!==baselineSnapshot||$[65]!==compareView||$[66]!==comparisonSnapshot||$[67]!==environmentFilter||$[68]!==fromName||$[69]!==invalidComparison||$[70]!==invalidSingleBuild||$[71]!==searchQuery||$[72]!==selectedRoute||$[73]!==singleSnapshot||$[74]!==t10||$[75]!==t11||$[76]!==t12||$[77]!==t13||$[78]!==t14||$[79]!==t15||$[80]!==t16||$[81]!==t17||$[82]!==t9||$[83]!==toName||$[84]!==typeFilter?(t18={activeBaseDir,baselineSnapshot,comparisonSnapshot,fromName,invalidComparison,invalidSingleBuild,singleBuildName:t9,singleSnapshot,toName,compareView,environmentFilter,searchQuery,selectedRoute,typeFilter,setView:t10,setRoute:t11,getRouteHref:t12,setSingleBuild:t13,setComparison:t14,setEnvironmentFilter:t15,setSearchQuery:t16,setTypeFilter:t17},$[63]=activeBaseDir,$[64]=baselineSnapshot,$[65]=compareView,$[66]=comparisonSnapshot,$[67]=environmentFilter,$[68]=fromName,$[69]=invalidComparison,$[70]=invalidSingleBuild,$[71]=searchQuery,$[72]=selectedRoute,$[73]=singleSnapshot,$[74]=t10,$[75]=t11,$[76]=t12,$[77]=t13,$[78]=t14,$[79]=t15,$[80]=t16,$[81]=t17,$[82]=t9,$[83]=toName,$[84]=typeFilter,$[85]=t18):t18=$[85],t18}let TYPE_FILTER_VALUES=["js","css","json","asset"],DEFAULT_TYPE_FILTER=TYPE_FILTER_VALUES.slice(0,3);function normalizeTypeFilter(types){let selected=new Set(types),normalized=TYPE_FILTER_VALUES.filter(type=>selected.has(type));return normalized.length>0?normalized:DEFAULT_TYPE_FILTER}function parseTypeFilter(value){return value?normalizeTypeFilter(value.split(",")):DEFAULT_TYPE_FILTER}function arraysEqual(left,right){return left.length===right.length&&left.every((value,index)=>value===right[index])}function computeActiveEntries(modulesData,analyzeData){let potentialEntryDependents=["next/dist/esm/build/templates/pages.js","next/dist/esm/build/templates/pages-api.js","next/dist/esm/build/templates/pages-edge-api.js","next/dist/esm/build/templates/edge-ssr.js","next/dist/esm/build/templates/app-route.js","next/dist/esm/build/templates/edge-app-route.js","next/dist/esm/build/templates/app-page.js","next/dist/esm/build/templates/edge-ssr-app.js","next/dist/esm/build/templates/middleware.js","[next]/entry/page-loader.ts"],potentialEntries=["next/dist/client/app-next-turbopack.js","next/dist/client/next-turbopack.js"],activeEntries=new Set;for(let moduleIndex=0;moduleIndex<modulesData.moduleCount();moduleIndex++){let ident=modulesData.module(moduleIndex)?.ident;if(null!=ident){if(potentialEntryDependents.some(entryIdent=>ident.includes(entryIdent)))for(let dep of modulesData.moduleDependencies(moduleIndex)){let path=modulesData.module(dep).path;path.includes("next/dist/")||void 0!==analyzeData.getSourceIndexFromPath(path)&&activeEntries.add(dep)}potentialEntries.some(entryIdent=>ident.includes(entryIdent))&&activeEntries.add(moduleIndex)}}return Array.from(activeEntries)}function computeModuleDepthMap(modulesData,activeEntries){let depthMap=new Map,delayedModules=[];for(let moduleIndex of activeEntries)depthMap.set(moduleIndex,0);let i=0;for(let[moduleIndex,depth]of depthMap){let newDepth=depth+1;for(let depIndex of modulesData.moduleDependencies(moduleIndex))depthMap.has(depIndex)||depthMap.set(depIndex,newDepth);for(let depIndex of modulesData.asyncModuleDependencies(moduleIndex))if(!depthMap.has(depIndex)){let newDepth=depth+1e3,delayedQueue=delayedModules.find(dq=>dq.depth===newDepth);delayedQueue||(delayedQueue={depth:newDepth,queue:[]},delayedModules.push(delayedQueue),delayedModules.sort((a,b)=>b.depth-a.depth)),delayedQueue.queue.push(depIndex)}for(let depIndex of modulesData.tracedModuleDependencies(moduleIndex))depthMap.has(depIndex)||depthMap.set(depIndex,newDepth);for(i++;delayedModules.length>0&&(i===depthMap.size||newDepth===delayedModules[delayedModules.length-1].depth);){let{depth,queue}=delayedModules.pop();for(let depIndex of queue)depthMap.has(depIndex)||depthMap.set(depIndex,depth)}}if(delayedModules.length>0)throw Error("Internal error: delayed modules remain after BFS processing");return depthMap}function computeSourceLoadScopes(modulesData,analyzeData,activeEntries){let moduleScopes=new Map,queue=[],enqueue=(moduleIndex,scope)=>{let previousScope=moduleScopes.get(moduleIndex)??0;(previousScope&scope)!==scope&&(moduleScopes.set(moduleIndex,previousScope|scope),queue.push({moduleIndex,scope}))};for(let moduleIndex of activeEntries)enqueue(moduleIndex,1);for(let index=0;index<queue.length;index++){let current=queue[index];for(let dependency of modulesData.moduleDependencies(current.moduleIndex))enqueue(dependency,current.scope);for(let dependency of modulesData.asyncModuleDependencies(current.moduleIndex))enqueue(dependency,2);for(let dependency of modulesData.tracedModuleDependencies(current.moduleIndex))enqueue(dependency,4)}let sourceScopes=new Map;for(let sourceIndex=0;sourceIndex<analyzeData.sourceCount();sourceIndex++){let loadScope,sourcePath=analyzeData.getFullSourcePath(sourceIndex),scope=0;for(let moduleIndex of modulesData.getModuleIndiciesFromPath(sourcePath))scope|=moduleScopes.get(moduleIndex)??0;let hasInitial=(1&scope)!=0,hasAsync=(2&scope)!=0;loadScope=hasInitial&&hasAsync?"mixed":hasAsync?"async":hasInitial?"initial":(4&scope)!=0?"traced":"unknown",sourceScopes.set(sourceIndex,loadScope)}return sourceScopes}var __TURBOPACK__imported__module__40092__=__turbopack_context__.i(40092);function SingleAnalyzer(){let t0,$=(0,__TURBOPACK__imported__module__36909__.c)(1);return $[0]===Symbol.for("react.memo_cache_sentinel")?(t0=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerBoundary,{defaultView:CompareView1.Treemap,children:(0,__TURBOPACK__imported__module__24514__.jsx)(SingleAnalyzerController,{})}),$[0]=t0):t0=$[0],t0}function SingleAnalyzerController(){let t0,$=(0,__TURBOPACK__imported__module__36909__.c)(2),model=useAnalyzerModel(!1);return $[0]!==model?(t0=(0,__TURBOPACK__imported__module__24514__.jsx)(SingleAnalyzerView,{model:model}),$[0]=model,$[1]=t0):t0=$[1],t0}function CompareAnalyzer(){let t0,$=(0,__TURBOPACK__imported__module__36909__.c)(1);return $[0]===Symbol.for("react.memo_cache_sentinel")?(t0=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerBoundary,{defaultView:CompareView1.Treemap,children:(0,__TURBOPACK__imported__module__24514__.jsx)(CompareAnalyzerController,{})}),$[0]=t0):t0=$[0],t0}function CompareAnalyzerController(){let t0,$=(0,__TURBOPACK__imported__module__36909__.c)(2),model=useAnalyzerModel(!0);return $[0]!==model?(t0=(0,__TURBOPACK__imported__module__24514__.jsx)(CompareAnalyzerView,{model:model}),$[0]=model,$[1]=t0):t0=$[1],t0}function AnalyzerBoundary(t0){let t1,t2,$=(0,__TURBOPACK__imported__module__36909__.c)(6),{children,defaultView,fallback}=t0;return $[0]!==defaultView||$[1]!==fallback?(t1=fallback??(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerFallback,{view:defaultView}),$[0]=defaultView,$[1]=fallback,$[2]=t1):t1=$[2],$[3]!==children||$[4]!==t1?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__95184__.Suspense,{fallback:t1,children:children}),$[3]=children,$[4]=t1,$[5]=t2):t2=$[5],t2}function AnalyzerFallback(t0){let t1,$=(0,__TURBOPACK__imported__module__36909__.c)(2),{view}=t0;return $[0]!==view?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__55905__.S,{view:view}),$[0]=view,$[1]=t1):t1=$[1],t1}function useAnalyzerModel(compare){(0,__TURBOPACK__imported__module__15975__.useSearchParams)();let[routePickerOpen,setRoutePickerOpen]=(0,__TURBOPACK__imported__module__95184__.useState)(!1),[selectedSourceIndex,setSelectedSourceIndex]=(0,__TURBOPACK__imported__module__95184__.useState)(null),[focusedSourceIndex,setFocusedSourceIndex]=(0,__TURBOPACK__imported__module__95184__.useState)(null),{data:history,isLoading:isHistoryLoading,error:historyError}=(0,__TURBOPACK__imported__module__64231__.b)(),latestSnapshot=(0,__TURBOPACK__imported__module__64231__.l)("/data/metadata.json",{revalidateOnFocus:!1,revalidateOnReconnect:!1}),routeState=useAnalyzerRoute(compare,history?.snapshots,latestSnapshot),{baselineSnapshot,comparisonSnapshot,compareView,environmentFilter,searchQuery,selectedRoute,typeFilter}=routeState,[searchInput,setSearchInput]=(0,__TURBOPACK__imported__module__95184__.useState)(searchQuery),setSearchQueryRef=(0,__TURBOPACK__imported__module__95184__.useRef)(routeState.setSearchQuery);setSearchQueryRef.current=routeState.setSearchQuery,(0,__TURBOPACK__imported__module__95184__.useEffect)(()=>{setSearchInput(searchQuery)},[searchQuery]),(0,__TURBOPACK__imported__module__95184__.useEffect)(()=>{if(searchInput===searchQuery)return;let timeout=setTimeout(()=>{setSearchQueryRef.current(searchInput)},250);return()=>clearTimeout(timeout)},[searchInput,searchQuery]);let[pendingView,setPendingView]=(0,__TURBOPACK__imported__module__95184__.useState)(null);(0,__TURBOPACK__imported__module__95184__.useEffect)(()=>{pendingView===compareView&&setPendingView(null)},[compareView,pendingView]);let activeView=pendingView??compareView,isViewPending=null!=pendingView&&pendingView!==compareView,comparisonBaseDir=routeState.activeBaseDir,{data:modulesData}=(0,__TURBOPACK__imported__module__86272__.f)(`${comparisonBaseDir}/modules.data`,__TURBOPACK__imported__module__64231__.i,{suspense:!0}),currentRoutes=(0,__TURBOPACK__imported__module__64231__.l)(`${comparisonBaseDir}/routes.json`,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),analyzeDataPath=null!=selectedRoute&&currentRoutes.includes(selectedRoute)?(0,__TURBOPACK__imported__module__64231__.V)(comparisonBaseDir,selectedRoute):null,{data:analyzeData}=(0,__TURBOPACK__imported__module__86272__.f)(analyzeDataPath,__TURBOPACK__imported__module__64231__.h,{revalidateOnFocus:!1,revalidateOnReconnect:!1,suspense:!0,onSuccess:newData=>{let newRootSourceIndex=getRootSourceIndex(newData);setSelectedSourceIndex(newRootSourceIndex),setFocusedSourceIndex(newRootSourceIndex)}}),{sidebarWidth,startResizing}=useSidebarResize(),[isMouseInTreemap,setIsMouseInTreemap]=(0,__TURBOPACK__imported__module__95184__.useState)(!1),[hoveredNodeInfo,setHoveredNodeInfo]=(0,__TURBOPACK__imported__module__95184__.useState)(null),[compareSelectedKey,setCompareSelectedKey]=(0,__TURBOPACK__imported__module__95184__.useState)(null),[initialLoaded,setInitialLoaded]=(0,__TURBOPACK__imported__module__95184__.useState)(!1);(0,__TURBOPACK__imported__module__95184__.useEffect)(()=>{setCompareSelectedKey(null)},[selectedRoute,routeState.fromName,routeState.toName]),(0,__TURBOPACK__imported__module__95184__.useEffect)(()=>{let handleKeyDown=e=>{if("Escape"===e.key){let activeElement=document.activeElement;if(!(activeElement&&["INPUT","TEXTAREA"].includes(activeElement.tagName))){e.preventDefault();let rootSourceIndex=analyzeData?getRootSourceIndex(analyzeData):0;setSelectedSourceIndex(rootSourceIndex),setFocusedSourceIndex(rootSourceIndex)}}};return window.addEventListener("keydown",handleKeyDown),()=>window.removeEventListener("keydown",handleKeyDown)},[analyzeData]);let{moduleDepthMap,sourceLoadScopes}=(0,__TURBOPACK__imported__module__95184__.useMemo)(()=>{if(!analyzeData)return{moduleDepthMap:new Map,sourceLoadScopes:new Map};(0,__TURBOPACK__imported__module__60944__.B)(modulesData,analyzeData,"Current snapshot");let activeEntries=computeActiveEntries(modulesData,analyzeData);return{moduleDepthMap:computeModuleDepthMap(modulesData,activeEntries),sourceLoadScopes:computeSourceLoadScopes(modulesData,analyzeData,activeEntries)}},[modulesData,analyzeData]),filterSource=(0,__TURBOPACK__imported__module__95184__.useMemo)(()=>analyzeData?sourceIndex=>{let flags=analyzeData.getSourceFlags(sourceIndex),hasEnvironment=environmentFilter===Environment1.Client&&flags.client||environmentFilter===Environment1.Server&&flags.server,hasType=typeFilter.includes("js")&&flags.js||typeFilter.includes("css")&&flags.css||typeFilter.includes("json")&&flags.json||typeFilter.includes("asset")&&flags.asset,hasLoadScope=!initialLoaded||"initial"===sourceLoadScopes.get(sourceIndex)||"mixed"===sourceLoadScopes.get(sourceIndex);return hasEnvironment&&hasType&&hasLoadScope}:()=>!0,[analyzeData,environmentFilter,initialLoaded,sourceLoadScopes,typeFilter]),singleSourceListing=(0,__TURBOPACK__imported__module__95184__.useMemo)(()=>!analyzeData||baselineSnapshot?null:(0,__TURBOPACK__imported__module__48696__.r)(analyzeData,analyzeData,{filterSource:(_,index)=>filterSource(index)}),[analyzeData,baselineSnapshot,filterSource]),routeSummaries=(0,__TURBOPACK__imported__module__64231__.l)(`${comparisonBaseDir}/route-summaries.json`,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),clientRouteTotals=new Map(routeSummaries.map(({route,client})=>[route,{size:client.size,compressedSize:client.compressed_size}])),serverRouteTotals=new Map(routeSummaries.map(({route:route_0,size,compressed_size,client:client_0})=>[route_0,{size:size-client_0.size,compressedSize:compressed_size-client_0.compressed_size}])),currentRouteTotals=new Map(routeSummaries.map(({route:route_1,size:size_0,compressed_size:compressed_size_0})=>[route_1,{size:size_0,compressedSize:compressed_size_0}]));return{analyzeData,baselineSnapshot,baselineIsLatest:compare&&null===routeState.fromName,compareSelectedKey,compareView:activeView,comparisonSnapshot,historySnapshots:history?.snapshots??[],historyError:historyError instanceof __TURBOPACK__imported__module__40092__.f,invalidComparison:routeState.invalidComparison,invalidSingleBuild:routeState.invalidSingleBuild,latestSnapshot,isCompareMode:compare,singleBuildName:routeState.singleBuildName,singleSnapshot:routeState.singleSnapshot,fromName:routeState.fromName,toName:routeState.toName,activeBaseDir:routeState.activeBaseDir,currentRoutes,routePickerOpen,setRoutePickerOpen,environmentFilter,filterSource,focusedSourceIndex,hoveredNodeInfo,initialLoaded,isHistoryLoading,isMouseInTreemap,isViewPending,moduleDepthMap,sourceLoadScopes,modulesData,currentRouteTotals,clientRouteTotals,serverRouteTotals,searchQuery:searchInput,selectedRoute,selectedSourceIndex,setCompareSelectedKey,setCompareView:view=>{setPendingView(view),routeState.setView(view)},setEnvironmentFilter:routeState.setEnvironmentFilter,setFocusedSourceIndex,setHoveredNodeInfo,setInitialLoaded,setIsMouseInTreemap,setSearchQuery:setSearchInput,setSelectedSourceIndex,setTypeFilter:routeState.setTypeFilter,sidebarWidth,singleSourceListing,startResizing,typeFilter,routeState}}function AnalyzerFrame(t0){let t1,t2,$=(0,__TURBOPACK__imported__module__36909__.c)(6),{topBar,children,footer}=t0;return $[0]!==children?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex-1 flex min-h-0",children:children}),$[0]=children,$[1]=t1):t1=$[1],$[2]!==footer||$[3]!==t1||$[4]!==topBar?(t2=(0,__TURBOPACK__imported__module__24514__.jsxs)("main",{className:"h-screen flex flex-col bg-background",children:[topBar,t1,footer]}),$[2]=footer,$[3]=t1,$[4]=topBar,$[5]=t2):t2=$[5],t2}function AnalyzerTopBar(t0){let t5,$=(0,__TURBOPACK__imported__module__36909__.c)(33),{model,routeDiff:t1}=t0,routeDiff=void 0===t1?null:t1,t2=null!=model.analyzeData,t3=null!=model.analyzeData,t4=model.environmentFilter===Environment1.Client?model.clientRouteTotals:model.serverRouteTotals;return $[0]!==model.activeBaseDir||$[1]!==model.compareView||$[2]!==model.environmentFilter||$[3]!==model.fromName||$[4]!==model.historyError||$[5]!==model.historySnapshots||$[6]!==model.initialLoaded||$[7]!==model.isCompareMode||$[8]!==model.isHistoryLoading||$[9]!==model.latestSnapshot||$[10]!==model.routePickerOpen||$[11]!==model.routeState.getRouteHref||$[12]!==model.routeState.setComparison||$[13]!==model.routeState.setRoute||$[14]!==model.routeState.setSingleBuild||$[15]!==model.searchQuery||$[16]!==model.selectedRoute||$[17]!==model.setCompareView||$[18]!==model.setEnvironmentFilter||$[19]!==model.setFocusedSourceIndex||$[20]!==model.setInitialLoaded||$[21]!==model.setRoutePickerOpen||$[22]!==model.setSearchQuery||$[23]!==model.setSelectedSourceIndex||$[24]!==model.setTypeFilter||$[25]!==model.singleBuildName||$[26]!==model.toName||$[27]!==model.typeFilter||$[28]!==routeDiff||$[29]!==t2||$[30]!==t3||$[31]!==t4?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)(TopBar,{hasSourceData:t2,showViewToggle:t3,compareView:model.compareView,onCompareViewChange:model.setCompareView,selectedRoute:model.selectedRoute,routePickerOpen:model.routePickerOpen,onRoutePickerOpenChange:model.setRoutePickerOpen,getRouteHref:model.routeState.getRouteHref,setSelectedRoute:model.routeState.setRoute,environmentFilter:model.environmentFilter,setEnvironmentFilter:model.setEnvironmentFilter,setSelectedSourceIndex:model.setSelectedSourceIndex,setFocusedSourceIndex:model.setFocusedSourceIndex,typeFilter:model.typeFilter,setTypeFilter:model.setTypeFilter,searchQuery:model.searchQuery,setSearchQuery:model.setSearchQuery,isCompareMode:model.isCompareMode,historySnapshots:model.historySnapshots,historyLoading:model.isHistoryLoading,historyError:model.historyError,latestSnapshot:model.latestSnapshot,singleBuildName:model.singleBuildName,fromName:model.fromName,toName:model.toName,onSingleBuildChange:model.routeState.setSingleBuild,onComparisonChange:model.routeState.setComparison,routesBaseDir:model.activeBaseDir,routeDiff:routeDiff,routeTotals:t4,initialLoaded:model.initialLoaded,onInitialLoadedChange:model.setInitialLoaded}),$[0]=model.activeBaseDir,$[1]=model.compareView,$[2]=model.environmentFilter,$[3]=model.fromName,$[4]=model.historyError,$[5]=model.historySnapshots,$[6]=model.initialLoaded,$[7]=model.isCompareMode,$[8]=model.isHistoryLoading,$[9]=model.latestSnapshot,$[10]=model.routePickerOpen,$[11]=model.routeState.getRouteHref,$[12]=model.routeState.setComparison,$[13]=model.routeState.setRoute,$[14]=model.routeState.setSingleBuild,$[15]=model.searchQuery,$[16]=model.selectedRoute,$[17]=model.setCompareView,$[18]=model.setEnvironmentFilter,$[19]=model.setFocusedSourceIndex,$[20]=model.setInitialLoaded,$[21]=model.setRoutePickerOpen,$[22]=model.setSearchQuery,$[23]=model.setSelectedSourceIndex,$[24]=model.setTypeFilter,$[25]=model.singleBuildName,$[26]=model.toName,$[27]=model.typeFilter,$[28]=routeDiff,$[29]=t2,$[30]=t3,$[31]=t4,$[32]=t5):t5=$[32],t5}function CompareAnalyzerView(t0){let t1,t2,t3,$=(0,__TURBOPACK__imported__module__36909__.c)(12),{model}=t0;if(model.isHistoryLoading){let t1,t2,t3;return $[0]!==model?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerTopBar,{model:model}),$[0]=model,$[1]=t1):t1=$[1],$[2]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:"Loading comparison…"}),$[2]=t2):t2=$[2],$[3]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerFrame,{topBar:t1,children:t2}),$[3]=t1,$[4]=t3):t3=$[4],t3}if(model.baselineSnapshot&&!model.invalidComparison&&model.fromName!==model.toName){let t1;return $[5]!==model?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(ValidComparison,{model:model}),$[5]=model,$[6]=t1):t1=$[6],t1}return $[7]!==model?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerTopBar,{model:model}),$[7]=model,$[8]=t1):t1=$[8],$[9]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:"The builds in this URL are unavailable or identical."}),$[9]=t2):t2=$[9],$[10]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerFrame,{topBar:t1,children:t2}),$[10]=t1,$[11]=t3):t3=$[11],t3}function ValidComparison(t0){let t1,$=(0,__TURBOPACK__imported__module__36909__.c)(3),{model}=t0,baselineSnapshot=model.baselineSnapshot;return baselineSnapshot?($[0]!==baselineSnapshot||$[1]!==model?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(ValidComparisonContent,{model:model,baselineSnapshot:baselineSnapshot}),$[0]=baselineSnapshot,$[1]=model,$[2]=t1):t1=$[2],t1):null}function ValidComparisonContent(t0){let t1,t2,t3,t4,t5,t6,t7,t8,t9,$=(0,__TURBOPACK__imported__module__36909__.c)(30),{model,baselineSnapshot}=t0;$[0]!==baselineSnapshot||$[1]!==model.baselineIsLatest?(t1=model.baselineIsLatest?"/data":snapshotBaseDir(baselineSnapshot),$[0]=baselineSnapshot,$[1]=model.baselineIsLatest,$[2]=t1):t1=$[2];let baselineBaseDir=t1;$[3]===Symbol.for("react.memo_cache_sentinel")?(t2={revalidateOnFocus:!1,revalidateOnReconnect:!1,suspense:!0},$[3]=t2):t2=$[3];let{data:baselineModulesData}=(0,__TURBOPACK__imported__module__86272__.f)(`${baselineBaseDir}/modules.data`,__TURBOPACK__imported__module__64231__.i,t2);$[4]===Symbol.for("react.memo_cache_sentinel")?(t3={revalidateOnFocus:!1,revalidateOnReconnect:!1},$[4]=t3):t3=$[4];let baselineRoutes=(0,__TURBOPACK__imported__module__64231__.l)(`${baselineBaseDir}/routes.json`,t3);$[5]===Symbol.for("react.memo_cache_sentinel")?(t4={revalidateOnFocus:!1,revalidateOnReconnect:!1},$[5]=t4):t4=$[5];let baselineRouteSummaries=(0,__TURBOPACK__imported__module__64231__.l)(`${baselineBaseDir}/route-summaries.json`,t4);if($[6]!==baselineRouteSummaries||$[7]!==baselineRoutes||$[8]!==model.currentRouteTotals||$[9]!==model.currentRoutes){let baselineRouteTotals=new Map(baselineRouteSummaries.map(_temp51));t5=(0,__TURBOPACK__imported__module__48696__.Y)(baselineRoutes,model.currentRoutes,baselineRouteTotals,model.currentRouteTotals),$[6]=baselineRouteSummaries,$[7]=baselineRoutes,$[8]=model.currentRouteTotals,$[9]=model.currentRoutes,$[10]=t5}else t5=$[10];let routeDiff=t5;$[11]!==baselineModulesData||$[12]!==baselineSnapshot||$[13]!==model.baselineIsLatest||$[14]!==model.comparisonSnapshot||$[15]!==model.currentRoutes.length||$[16]!==routeDiff?(t6={baselineSnapshot,baselineIsLatest:model.baselineIsLatest,comparisonSnapshot:model.comparisonSnapshot,comparisonRouteCount:model.currentRoutes.length,routeDiff,baselineModulesData},$[11]=baselineModulesData,$[12]=baselineSnapshot,$[13]=model.baselineIsLatest,$[14]=model.comparisonSnapshot,$[15]=model.currentRoutes.length,$[16]=routeDiff,$[17]=t6):t6=$[17];let layoutProps=t6,selectedRoute=model.selectedRoute;$[18]!==baselineBaseDir||$[19]!==baselineRoutes||$[20]!==layoutProps||$[21]!==model||$[22]!==selectedRoute?(t7=selectedRoute&&baselineRoutes.includes(selectedRoute)?(0,__TURBOPACK__imported__module__24514__.jsx)(BaselineRouteComparison,{model:model,baselineBaseDir:baselineBaseDir,selectedRoute:selectedRoute,layoutProps:layoutProps}):(0,__TURBOPACK__imported__module__24514__.jsx)(ComparisonContent,{model:model,baselineAnalyzeData:null,layoutProps:layoutProps}),$[18]=baselineBaseDir,$[19]=baselineRoutes,$[20]=layoutProps,$[21]=model,$[22]=selectedRoute,$[23]=t7):t7=$[23];let content=t7;return $[24]!==model||$[25]!==routeDiff?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerTopBar,{model:model,routeDiff:routeDiff}),$[24]=model,$[25]=routeDiff,$[26]=t8):t8=$[26],$[27]!==content||$[28]!==t8?(t9=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerFrame,{topBar:t8,children:content}),$[27]=content,$[28]=t8,$[29]=t9):t9=$[29],t9}function _temp51(t0){let{route,size,compressed_size}=t0;return[route,{size,compressedSize:compressed_size}]}function BaselineRouteComparison(t0){let t1,t2,t3,$=(0,__TURBOPACK__imported__module__36909__.c)(8),{model,baselineBaseDir,selectedRoute,layoutProps}=t0;$[0]!==baselineBaseDir||$[1]!==selectedRoute?(t1=(0,__TURBOPACK__imported__module__64231__.V)(baselineBaseDir,selectedRoute),$[0]=baselineBaseDir,$[1]=selectedRoute,$[2]=t1):t1=$[2],$[3]===Symbol.for("react.memo_cache_sentinel")?(t2={revalidateOnFocus:!1,revalidateOnReconnect:!1,suspense:!0},$[3]=t2):t2=$[3];let{data:baselineAnalyzeData}=(0,__TURBOPACK__imported__module__86272__.f)(t1,__TURBOPACK__imported__module__64231__.h,t2);return $[4]!==baselineAnalyzeData||$[5]!==layoutProps||$[6]!==model?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(ComparisonContent,{model:model,baselineAnalyzeData:baselineAnalyzeData,layoutProps:layoutProps}),$[4]=baselineAnalyzeData,$[5]=layoutProps,$[6]=model,$[7]=t3):t3=$[7],t3}function ComparisonContent(t0){let t1,t2,t3,t4,t6,t7,t8,$=(0,__TURBOPACK__imported__module__36909__.c)(41),{model,baselineAnalyzeData,layoutProps}=t0;baselineAnalyzeData&&(0,__TURBOPACK__imported__module__60944__.B)(layoutProps.baselineModulesData,baselineAnalyzeData,"Baseline snapshot"),$[0]!==baselineAnalyzeData||$[1]!==layoutProps?(t1=baselineAnalyzeData?computeModuleDepthMap(layoutProps.baselineModulesData,computeActiveEntries(layoutProps.baselineModulesData,baselineAnalyzeData)):new Map,$[0]=baselineAnalyzeData,$[1]=layoutProps,$[2]=t1):t1=$[2];let baselineModuleDepthMap=t1;$[3]!==baselineAnalyzeData||$[4]!==model.analyzeData||$[5]!==model.environmentFilter||$[6]!==model.typeFilter?(t2=function compareFilterSource(side,sourceIndex){let data="A"===side?baselineAnalyzeData:model.analyzeData;if(!data)return!1;let flags=data.getSourceFlags(sourceIndex),hasEnvironment=model.environmentFilter===Environment1.Client&&flags.client||model.environmentFilter===Environment1.Server&&flags.server,hasType=model.typeFilter.includes("js")&&flags.js||model.typeFilter.includes("css")&&flags.css||model.typeFilter.includes("json")&&flags.json||model.typeFilter.includes("asset")&&flags.asset;return hasEnvironment&&hasType},$[3]=baselineAnalyzeData,$[4]=model.analyzeData,$[5]=model.environmentFilter,$[6]=model.typeFilter,$[7]=t2):t2=$[7];let compareFilterSource=t2;$[8]!==baselineAnalyzeData||$[9]!==compareFilterSource||$[10]!==model.analyzeData?(t3=model.analyzeData||baselineAnalyzeData?(0,__TURBOPACK__imported__module__48696__.r)(baselineAnalyzeData,model.analyzeData??null,{filterSource:compareFilterSource}):null,$[8]=baselineAnalyzeData,$[9]=compareFilterSource,$[10]=model.analyzeData,$[11]=t3):t3=$[11];let sourceDiff=t3;if($[12]!==baselineAnalyzeData||$[13]!==model.analyzeData||$[14]!==model.environmentFilter||$[15]!==model.typeFilter){let alternateEnvironment=getAlternateEnvironment(model.environmentFilter);t4=[model.analyzeData,baselineAnalyzeData].some(data_0=>data_0&&hasEnvironmentSources(data_0,alternateEnvironment,model.typeFilter)),$[12]=baselineAnalyzeData,$[13]=model.analyzeData,$[14]=model.environmentFilter,$[15]=model.typeFilter,$[16]=t4}else t4=$[16];let hasAlternateEnvironmentSources=t4,t5=model.analyzeData??null;$[17]!==model?(t6=()=>model.setRoutePickerOpen(!0),$[17]=model,$[18]=t6):t6=$[18],$[19]!==baselineAnalyzeData||$[20]!==baselineModuleDepthMap||$[21]!==hasAlternateEnvironmentSources||$[22]!==layoutProps||$[23]!==model.compareSelectedKey||$[24]!==model.compareView||$[25]!==model.environmentFilter||$[26]!==model.isViewPending||$[27]!==model.moduleDepthMap||$[28]!==model.modulesData||$[29]!==model.searchQuery||$[30]!==model.selectedRoute||$[31]!==model.setCompareSelectedKey||$[32]!==model.setEnvironmentFilter||$[33]!==model.sidebarWidth||$[34]!==sourceDiff||$[35]!==t5||$[36]!==t6?(t7={...layoutProps,selectedRoute:model.selectedRoute,sourceDiff,analyzeData:t5,baselineAnalyzeData,modulesData:model.modulesData,moduleDepthMap:model.moduleDepthMap,baselineModuleDepthMap,environmentFilter:model.environmentFilter,hasAlternateEnvironmentSources,setEnvironmentFilter:model.setEnvironmentFilter,sidebarWidth:model.sidebarWidth,compareView:model.compareView,searchQuery:model.searchQuery,isViewPending:model.isViewPending,selectedKey:model.compareSelectedKey,onSelectedKeyChange:model.setCompareSelectedKey,onOpenRoutePicker:t6},$[19]=baselineAnalyzeData,$[20]=baselineModuleDepthMap,$[21]=hasAlternateEnvironmentSources,$[22]=layoutProps,$[23]=model.compareSelectedKey,$[24]=model.compareView,$[25]=model.environmentFilter,$[26]=model.isViewPending,$[27]=model.moduleDepthMap,$[28]=model.modulesData,$[29]=model.searchQuery,$[30]=model.selectedRoute,$[31]=model.setCompareSelectedKey,$[32]=model.setEnvironmentFilter,$[33]=model.sidebarWidth,$[34]=sourceDiff,$[35]=t5,$[36]=t6,$[37]=t7):t7=$[37];let compareModel=t7;return $[38]!==compareModel||$[39]!==model.startResizing?(t8=(0,__TURBOPACK__imported__module__24514__.jsx)(CompareLayout,{model:compareModel,onResizeSidebar:model.startResizing}),$[38]=compareModel,$[39]=model.startResizing,$[40]=t8):t8=$[40],t8}function SingleAnalyzerView(t0){let t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(23),{model}=t0;if(model.singleBuildName&&model.isHistoryLoading){let t1,t2,t3;return $[0]!==model?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerTopBar,{model:model}),$[0]=model,$[1]=t1):t1=$[1],$[2]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:"Loading build…"}),$[2]=t2):t2=$[2],$[3]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerFrame,{topBar:t1,children:t2}),$[3]=t1,$[4]=t3):t3=$[4],t3}if(model.invalidSingleBuild||model.singleBuildName&&!model.singleSnapshot&&!model.isHistoryLoading){let t1,t2,t3;return $[5]!==model?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerTopBar,{model:model}),$[5]=model,$[6]=t1):t1=$[6],$[7]===Symbol.for("react.memo_cache_sentinel")?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:"The build in this URL is unavailable."}),$[7]=t2):t2=$[7],$[8]!==t1?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerFrame,{topBar:t1,children:t2}),$[8]=t1,$[9]=t3):t3=$[9],t3}let analyzeData=model.analyzeData;$[10]!==analyzeData||$[11]!==model?(t1=analyzeData?(0,__TURBOPACK__imported__module__24514__.jsx)(SingleAnalyzerContent,{model:model,analyzeData:analyzeData}):(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex flex-1 items-center justify-center text-sm text-muted-foreground",children:"Select a route to analyze."}),$[10]=analyzeData,$[11]=model,$[12]=t1):t1=$[12];let content=t1;$[13]!==analyzeData||$[14]!==model.compareView||$[15]!==model.hoveredNodeInfo?(t2=analyzeData&&model.compareView===CompareView1.Treemap?(0,__TURBOPACK__imported__module__24514__.jsx)(TreemapFooter,{hoveredNodeInfo:model.hoveredNodeInfo}):null,$[13]=analyzeData,$[14]=model.compareView,$[15]=model.hoveredNodeInfo,$[16]=t2):t2=$[16];let footer=t2;return $[17]!==model?(t3=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerTopBar,{model:model}),$[17]=model,$[18]=t3):t3=$[18],$[19]!==content||$[20]!==footer||$[21]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)(AnalyzerFrame,{topBar:t3,footer:footer,children:content}),$[19]=content,$[20]=footer,$[21]=t3,$[22]=t4):t4=$[22],t4}function SingleAnalyzerContent(t0){let t1,t2,t3,t4,t5,t6,t7,$=(0,__TURBOPACK__imported__module__36909__.c)(28),{model,analyzeData}=t0;$[0]!==analyzeData?(t1=createAnalyzeTreemapSource(analyzeData),$[0]=analyzeData,$[1]=t1):t1=$[1];let source=t1,rootSourceIndex=source.rootIndex;$[2]!==analyzeData||$[3]!==model.environmentFilter||$[4]!==model.typeFilter?(t2=hasEnvironmentSources(analyzeData,getAlternateEnvironment(model.environmentFilter),model.typeFilter),$[2]=analyzeData,$[3]=model.environmentFilter,$[4]=model.typeFilter,$[5]=t2):t2=$[5];let hasAlternateEnvironmentSources=t2;$[6]!==hasAlternateEnvironmentSources||$[7]!==model.environmentFilter?(t3=hasAlternateEnvironmentSources?(0,__TURBOPACK__imported__module__24514__.jsx)(AlternateEnvironmentEmptyState,{environment:model.environmentFilter}):void 0,$[6]=hasAlternateEnvironmentSources,$[7]=model.environmentFilter,$[8]=t3):t3=$[8];let alternateEnvironmentEmptyState=t3;return $[9]!==alternateEnvironmentEmptyState||$[10]!==model||$[11]!==rootSourceIndex||$[12]!==source?(t4=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex-1 min-w-0",children:model.isViewPending?(0,__TURBOPACK__imported__module__24514__.jsx)(ViewSkeleton,{view:model.compareView}):model.compareView===CompareView1.Table&&model.singleSourceListing?(0,__TURBOPACK__imported__module__24514__.jsx)(DiffTable,{summary:model.singleSourceListing,useCompressed:!0,nameHeading:"Source",mode:"single",getLoadScope:row=>null==row.sourceIndexB?"unknown":model.sourceLoadScopes.get(row.sourceIndexB)??"unknown",searchQuery:model.searchQuery,emptyState:alternateEnvironmentEmptyState,onRowSelect:row_0=>{null!=row_0.sourceIndexB&&(model.setSelectedSourceIndex(row_0.sourceIndexB),model.setFocusedSourceIndex(row_0.sourceIndexB))}}):model.singleSourceListing?.rows.length===0&&alternateEnvironmentEmptyState?(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex h-full items-center justify-center p-4 text-sm text-muted-foreground",children:alternateEnvironmentEmptyState}):(0,__TURBOPACK__imported__module__24514__.jsx)(TreemapVisualizer,{source:source,selectedSourceIndex:model.selectedSourceIndex??rootSourceIndex,onSelectSourceIndex:model.setSelectedSourceIndex,focusedSourceIndex:model.focusedSourceIndex??rootSourceIndex,onFocusSourceIndex:model.setFocusedSourceIndex,isMouseInTreemap:model.isMouseInTreemap,onMouseInTreemapChange:model.setIsMouseInTreemap,onHoveredNodeChange:model.setHoveredNodeInfo,searchQuery:model.searchQuery,filterSource:model.filterSource,sizeMode:SizeMode1.Compressed,getFileLoadScope:sourceIndex=>model.sourceLoadScopes.get(sourceIndex)??"unknown",overlay:(0,__TURBOPACK__imported__module__24514__.jsx)(AsyncScopeLegend,{})})}),$[9]=alternateEnvironmentEmptyState,$[10]=model,$[11]=rootSourceIndex,$[12]=source,$[13]=t4):t4=$[13],$[14]!==model.startResizing?(t5=(0,__TURBOPACK__imported__module__24514__.jsx)("button",{type:"button",className:"flex-none w-1 bg-border hover:bg-primary cursor-col-resize transition-colors",onMouseDown:model.startResizing,"aria-label":"Resize sidebar"}),$[14]=model.startResizing,$[15]=t5):t5=$[15],$[16]!==analyzeData||$[17]!==model.environmentFilter||$[18]!==model.filterSource||$[19]!==model.moduleDepthMap||$[20]!==model.modulesData||$[21]!==model.selectedSourceIndex||$[22]!==model.sidebarWidth?(t6=(0,__TURBOPACK__imported__module__24514__.jsx)(Sidebar,{sidebarWidth:model.sidebarWidth,analyzeData:analyzeData,modulesData:model.modulesData,selectedSourceIndex:model.selectedSourceIndex,moduleDepthMap:model.moduleDepthMap,environmentFilter:model.environmentFilter,filterSource:model.filterSource}),$[16]=analyzeData,$[17]=model.environmentFilter,$[18]=model.filterSource,$[19]=model.moduleDepthMap,$[20]=model.modulesData,$[21]=model.selectedSourceIndex,$[22]=model.sidebarWidth,$[23]=t6):t6=$[23],$[24]!==t4||$[25]!==t5||$[26]!==t6?(t7=(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[t4,t5,t6]}),$[24]=t4,$[25]=t5,$[26]=t6,$[27]=t7):t7=$[27],t7}function AsyncScopeLegend(){let t0,t1,$=(0,__TURBOPACK__imported__module__36909__.c)(2);return $[0]===Symbol.for("react.memo_cache_sentinel")?(t0=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"h-3 w-3 border border-foreground/40 bg-[repeating-linear-gradient(135deg,transparent_0,transparent_3px,currentColor_3px,currentColor_4px)] text-foreground/45"}),"Behind async boundary"]}),$[0]=t0):t0=$[0],$[1]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipProvider,{children:(0,__TURBOPACK__imported__module__24514__.jsxs)("div",{className:"absolute bottom-3 left-3 flex items-center gap-3 rounded border border-border bg-background/95 px-2.5 py-1.5 text-xs shadow-sm",children:[t0,(0,__TURBOPACK__imported__module__24514__.jsxs)(Tooltip,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipTrigger,{asChild:!0,children:(0,__TURBOPACK__imported__module__24514__.jsxs)("button",{type:"button",className:"flex items-center gap-1.5 rounded-sm text-left focus-visible:outline-2 focus-visible:outline-offset-2",children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"relative h-3 w-3 border border-foreground/40 after:absolute after:right-0 after:top-0 after:h-0 after:w-0 after:border-l-[5px] after:border-t-[5px] after:border-l-transparent after:border-t-foreground/60"}),"Initial + async paths"]})}),(0,__TURBOPACK__imported__module__24514__.jsx)(TooltipContent1,{side:"top",children:"This file is reachable both during the initial load and behind an async boundary."})]})]})}),$[1]=t1):t1=$[1],t1}function hasEnvironmentSources(data,environment,typeFilter){for(let index=0;index<data.sourceCount();index++){let flags=data.getSourceFlags(index),hasEnvironment=environment===Environment1.Client&&flags.client||environment===Environment1.Server&&flags.server,hasType=typeFilter.some(type=>flags[type]);if(hasEnvironment&&hasType)return!0}return!1}function getAlternateEnvironment(environment){return environment===Environment1.Client?Environment1.Server:Environment1.Client}function AlternateEnvironmentEmptyState(t0){let alternateLabel,currentLabel,t1,t2,t3,t4,$=(0,__TURBOPACK__imported__module__36909__.c)(13),{environment}=t0,pathname=(0,__TURBOPACK__imported__module__15975__.usePathname)(),searchParams=(0,__TURBOPACK__imported__module__15975__.useSearchParams)();if($[0]!==environment||$[1]!==pathname||$[2]!==searchParams){[currentLabel,alternateLabel]=environment===Environment1.Client?["client","server"]:["server","client"];let nextSearchParams=new URLSearchParams(searchParams.toString());nextSearchParams.set("environment",alternateLabel),t1=pathname,t2=nextSearchParams.toString(),$[0]=environment,$[1]=pathname,$[2]=searchParams,$[3]=alternateLabel,$[4]=currentLabel,$[5]=t1,$[6]=t2}else alternateLabel=$[3],currentLabel=$[4],t1=$[5],t2=$[6];let href=`${t1}?${t2}`;return $[7]!==alternateLabel||$[8]!==href?(t3=(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__46416__.default,{href:href,replace:!0,className:"font-medium text-foreground underline underline-offset-4 hover:text-primary",children:["Show ",alternateLabel," sources"]}),$[7]=alternateLabel,$[8]=href,$[9]=t3):t3=$[9],$[10]!==currentLabel||$[11]!==t3?(t4=(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{children:["This route has no ",currentLabel," sources matching the active file types."," ",t3,"."]}),$[10]=currentLabel,$[11]=t3,$[12]=t4):t4=$[12],t4}function ViewSkeleton(t0){let t1,$=(0,__TURBOPACK__imported__module__36909__.c)(2),{view}=t0;return $[0]!==view?(t1=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"h-full min-h-0 p-4",role:"status","aria-label":"Loading view",children:view===CompareView1.Treemap?(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__55905__.p,{}):(0,__TURBOPACK__imported__module__24514__.jsx)(__TURBOPACK__imported__module__55905__.h,{})}),$[0]=view,$[1]=t1):t1=$[1],t1}function TreemapFooter(t0){let t1,t2,$=(0,__TURBOPACK__imported__module__36909__.c)(4),{hoveredNodeInfo}=t0;return $[0]!==hoveredNodeInfo?(t1=hoveredNodeInfo?(0,__TURBOPACK__imported__module__24514__.jsxs)(__TURBOPACK__imported__module__24514__.Fragment,{children:[(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"font-medium text-foreground",children:hoveredNodeInfo.name}),(0,__TURBOPACK__imported__module__24514__.jsx)("span",{className:"ml-2 text-muted-foreground",children:`${(0,__TURBOPACK__imported__module__1234__.L)(hoveredNodeInfo.size)} compressed`}),(hoveredNodeInfo.server||hoveredNodeInfo.client)&&(0,__TURBOPACK__imported__module__24514__.jsxs)("span",{className:"ml-2 inline-flex gap-1",children:[hoveredNodeInfo.client&&(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"client",children:"client"}),hoveredNodeInfo.server&&(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"server",children:"server"}),hoveredNodeInfo.traced&&(0,__TURBOPACK__imported__module__24514__.jsx)(Badge,{variant:"traced",children:"traced"})]})]}):"Hover over a file to see details",$[0]=hoveredNodeInfo,$[1]=t1):t1=$[1],$[2]!==t1?(t2=(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"flex-none border-t border-border bg-background px-4 py-2 h-10",children:(0,__TURBOPACK__imported__module__24514__.jsx)("div",{className:"text-sm text-muted-foreground",children:t1})}),$[2]=t1,$[3]=t2):t2=$[3],t2}function getRootSourceIndex(analyzeData){let sourceRoots=analyzeData.sourceRoots();return sourceRoots.length>0?sourceRoots[0]:0}}]);