!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09faf-549b-7311-95c3-46dbba4435a2")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,168852,e=>{"use strict";var t=e.i(270401);let s=t.forwardRef(function({title:e,titleId:s,...i},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":s},i),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))});e.s(["CheckIcon",0,s],168852)},121039,543973,e=>{"use strict";let t;var s=e.i(270401),i=e.i(214857);function n(e,t,s){let i,n=s.initialDeps??[],l=!0;function o(){let o=e();return(o.length!==n.length||o.some((e,t)=>n[t]!==e))&&(n=o,i=t(...o),(null==s?void 0:s.onChange)&&!(l&&s.skipInitialOnChange)&&s.onChange(i),l=!1),i}return o.updateDeps=e=>{n=e},o}function l(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let o=()=>{if(void 0!==t)return t;if("u"0},r=e=>{let{offsetWidth:t,offsetHeight:s}=e;return{width:t,height:s}},a=e=>e,h=e=>{let t=Math.max(e.startIndex-e.overscan,0),s=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,i=Array(s);for(let e=0;e{let s=e.scrollElement;if(!s)return;let i=e.targetWindow;if(!i)return;let n=e=>{let{width:s,height:i}=e;t({width:Math.round(s),height:Math.round(i)})};if(n(r(s)),!i.ResizeObserver)return()=>{};let l=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void n({width:t.inlineSize,height:t.blockSize})}n(r(s))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return l.observe(s,{box:"border-box"}),()=>{l.unobserve(s)}},d={passive:!0},c=(e,t)=>{let s=e.scrollElement;if(!s)return;let i=()=>{t({width:s.innerWidth,height:s.innerHeight})};return i(),s.addEventListener("resize",i,d),()=>{s.removeEventListener("resize",i)}},f="u"{var i,n;let l,o=e.scrollElement;if(!o)return;let r=e.targetWindow;if(!r)return;let a=e.options.useScrollendEvent&&f,h=0,u=a?null:(i=()=>t(h,!1),n=e.options.isScrollingResetDelay,function(...e){r.clearTimeout(l),l=r.setTimeout(()=>i.apply(this,e),n)}),c=e=>()=>{h=s(o),null==u||u(),t(h,e)},g=c(!0),p=c(!1);return o.addEventListener("scroll",g,d),a&&o.addEventListener("scrollend",p,d),()=>{o.removeEventListener("scroll",g),a&&o.removeEventListener("scrollend",p)}},p=(e,t)=>g(e,t,t=>{let{horizontal:s,isRtl:i}=e.options;return s?t.scrollLeft*(i&&-1||1):t.scrollTop}),m=(e,t)=>g(e,t,t=>e.options.horizontal?t.scrollX:t.scrollY),S=(e,t,s)=>{if(s.options.useCachedMeasurements){let t=s.indexFromElement(e),i=s.options.getItemKey(t);return s.itemSizeCache.get(i)??s.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[s.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=s.indexFromElement(e),i=s.options.getItemKey(t),n=s.itemSizeCache.get(i);if(void 0!==n)return n}return e[s.options.horizontal?"offsetWidth":"offsetHeight"]},v=(e,{adjustments:t=0,behavior:s},i)=>{var n,l;null==(l=null==(n=i.scrollElement)?void 0:n.scrollTo)||l.call(n,{[i.options.horizontal?"left":"top"]:e+t,behavior:s})};class O{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,s;return(null==(s=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:s.call(t))??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,s=this.indexFromElement(t);if(!t.isConnected){for(let[e,s]of(this.observer.unobserve(t),this.elementsCache))if(s===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(s)&&this.resizeItem(s,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var s;null==(s=t())||s.disconnect(),e=null},observe:e=>{var s;return null==(s=t())?void 0:s.observe(e,{box:"border-box"})},unobserve:e=>{var s;return null==(s=t())?void 0:s.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,s;let i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:a,rangeExtractor:h,onChange:()=>{},measureElement:S,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let t in e){let s=e[t];void 0!==s&&(i[t]=s)}let n=this.options,l=null,o=null,r=!1;if(void 0!==n&&n.enabled&&i.enabled&&"end"===i.anchorTo&&null!==this.scrollElement){let e=n.count,a=i.count,h=this.getMeasurements(),u=e>0?(null==(t=h[0])?void 0:t.key)??n.getItemKey(0):null,d=e>0?(null==(s=h[e-1])?void 0:s.key)??n.getItemKey(e-1):null;if(a!==e||e>0&&a>0&&(i.getItemKey(0)!==u||i.getItemKey(a-1)!==d)){r=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??h[0]:null;t&&(l=[t.key,this.getScrollOffset()-t.start]);let s=!0===i.followOnAppend?"auto":i.followOnAppend||null;s&&a>e&&this.isAtEnd(n.scrollEndThreshold)&&(0===e||i.getItemKey(a-1)!==d)&&(o=s)}}this.options=i,r&&(this.pendingMin=0,this.itemSizeCacheVersion++);let u=!1,d=0;if(l&&null!==this.scrollOffset){let[e,t]=l,s=this.getMeasurements(),{count:i,getItemKey:n}=this.options,o=0;for(;o{var t,s;null==(s=(t=this.options).onChange)||s.call(t,this,e)},this.maybeNotify=n(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&1.5>Math.abs(e-this._intendedScrollOffset)&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let s=this.getScrollOffset();this.scrollDirection=t?s===e?this.scrollDirection:s{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},s=()=>{this._iosTouching=!1,o()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,d),e.addEventListener("touchend",s,d),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",s),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){let[e,t,i,n]=s;null===e||i||(o()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==n&&(this._iosDeferredAdjustment+=n):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),i&&this.scrollToEnd({behavior:i})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let s=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=s,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=n(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,s,i,n,l,o,r)=>(void 0!==this.prevLanes&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:s,getItemKey:i,enabled:n,lanes:l,laneAssignmentMode:o,gap:r}),{key:!1}),this.getMeasurements=n(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:s,getItemKey:i,enabled:n,lanes:l,laneAssignmentMode:o,gap:r},a)=>{let h=this.itemSizeCache;if(!n)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===l){var d;let n,l=2*e,o=this._flatMeasurements;if(!o||o.length0&&e.set(o.subarray(0,2*u)),o=e,this._flatMeasurements=o}if(0===u)n=t+s;else{let e=u-1;n=o[2*e]+o[2*e+1]+r}for(let t=u;t=48&&n<=57){let n=+s;if(Number.isInteger(n)&&n>=0&&n1){let i=f[e=d],n=void 0!==i?c[i]:void 0;a=n?n.end+r:t+s}else if(p===l){let t=0,s=g[0],i=f[0];for(let e=1;ethis.options.debug}),this.calculateRange=n(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,s,i)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,s,i,n){let l=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:l};if(1===i&&null!==n){let e=function(e,t,s){let i=0;for(;i<=t;){let n=(i+t)/2|0,l=e[2*n];if(ls))return n;t=n-1}}return i>0?i-1:0}(n,l,s),i=e,o=s+t;for(;ie[t].start,s),r=o;if(1===i)for(;r1){let n=Array(i).fill(0);for(;re=0&&a.some(e=>e>=s);){let t=e[o];a[t.lane]=t.start,o--}o=Math.max(0,o-o%i),r=Math.min(l,r+(i-1-r%i))}return{startIndex:o,endIndex:r}}(e,t,s,i,1===i&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=n(()=>{let e=null,t=null,s=this.calculateRange();return s&&(e=s.startIndex,t=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,s,i,n)=>null===i||null===n?[]:e({startIndex:i,endIndex:n,overscan:t,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,s=e.getAttribute(t);return s?parseInt(s,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;let s=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==s&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),i=Math.max(0,s-t),n=Math.min(this.options.count-1,s+t);return e>=i&&e<=n}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});let t=this.indexFromElement(e),s=this.options.getItemKey(t),i=this.elementsCache.get(s);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(s,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var s,i;let n,l,o;if(e<0||e>=this.options.count)return;let r=this._flatMeasurements;if(1===this.options.lanes&&null!==r)o=this.options.getItemKey(e),l=r[2*e],n=r[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;o=t.key,l=t.start,n=t.size}let a=this.itemSizeCache.get(o)??n,h=t-a;if(0!==h){let r="end"===this.options.anchorTo&&(null==(s=this.scrollState)?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,u=r?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,c=this.itemSizeCache.has(o)?l+a<=d&&"backward"!==this.scrollDirection:l[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let s=[];for(let i=0,n=e.length;ithis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let s=this._flatMeasurements,i=1===this.options.lanes&&null!=s,n=E(0,t.length-1,i?e=>s[2*e]:e=>l(t[e]).start,e);return l(t[n])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,s=0)=>{if(!this.scrollElement)return 0;let i=this.getSize(),n=this.getScrollOffset();return"auto"===t&&(t=e>=n+i?"end":"start"),"center"===t?e+=(s-i)/2:"end"===t&&(e-=i),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let s=this.getSize(),i=this.getScrollOffset(),n=this.measurementsCache[e];if(!n)return;if("auto"===t)if(n.end>=i+s-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let l="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,t,n.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:s="auto"}={})=>{this._iosDeferredAdjustment=0;let i=this.getOffsetForAlignment(e,t),n=this.now();this.scrollState={index:null,align:t,behavior:s,startedAt:n,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:s="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let i=this.getOffsetForIndex(e,t);if(!i)return;let[n,l]=i,o=this.now();this.scrollState={index:e,align:l,behavior:s,startedAt:o,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let s=this.getScrollOffset()+e,i=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:i,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;let t,s=this.getMeasurements();if(0===s.length)t=this.options.paddingStart;else if(1===this.options.lanes){let i=s.length-1,n=this._flatMeasurements;t=null!=n?n[2*i]+n[2*i+1]:(null==(e=s[i])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),i=s.length-1;for(;i>=0&&e.some(e=>null===e);){let t=s[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(0===this.itemSizeCache.size)return e;for(let t of this.getMeasurements())t&&this.itemSizeCache.has(t.key)&&e.push({index:t.index,key:t.key,start:t.start,size:t.size,end:t.end,lane:t.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:s})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:s,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){0!==e&&(o()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=e:(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0)))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,s=t!==this.scrollState.lastTargetOffset;if(!s&&1.01>Math.abs(t-this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,s){let e=this.getSize()||600,s=Math.abs(t-this.getScrollOffset()),i="smooth"===this.scrollState.behavior&&s>e;this.scrollState.lastTargetOffset=t,i||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:i?"smooth":"auto"})}this.scheduleScrollReconcile()}}let E=(e,t,s,i)=>{for(;e<=t;){let n=(e+t)/2|0,l=s(n);if(li))return n;t=n-1}}return e>0?e-1:0};e.s(["Virtualizer",0,O,"defaultRangeExtractor",0,h,"elementScroll",0,v,"observeElementOffset",0,p,"observeElementRect",0,u,"observeWindowOffset",0,m,"observeWindowRect",0,c,"windowScroll",0,v],543973);let b="u">typeof document?s.useLayoutEffect:s.useEffect;function x({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...l}){let o=s.useReducer(e=>e+1,0)[1],r=s.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});r.current.enabled=t,r.current.mode=n;let a=e=>{let t=r.current;if(!t.enabled||!t.container)return;let s=e.getTotalSize();if(s!==t.lastSize){t.lastSize=s;let i=e.options.horizontal?"width":"height";t.container.style[i]=`${s}px`}},h=e=>{let t=r.current;if(!t.enabled||!t.container)return;a(e);let s=!!e.options.horizontal,i="transform"===t.mode,n=s?"left":"top",l=e.options.scrollMargin;for(let o of e.getVirtualItems()){let r=o.start-l,a=e.elementsCache.get(o.key);a&&t.lastPositions.get(a)!==r&&(t.lastPositions.set(a,r),i?a.style.transform=s?`translate3d(${r}px, 0, 0)`:`translate3d(0, ${r}px, 0)`:a.style[n]=`${r}px`)}},u={...l,onChange:(t,s)=>{var n;let a=r.current,u=!0;if(a.enabled){h(t);let e=t.range,s=a.prevRange;(u=!s||s.isScrolling!==t.isScrolling||s.startIndex!==(null==e?void 0:e.startIndex)||s.endIndex!==(null==e?void 0:e.endIndex))&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&s?(0,i.flushSync)(o):o()),null==(n=l.onChange)||n.call(l,t,s)}},[d]=s.useState(()=>{let e=new O(u);return Object.assign(e,{containerRef:t=>{let s=r.current;if(s.container=t,s.lastSize=null,t&&s.enabled){let i=e.getTotalSize();s.lastSize=i;let n=e.options.horizontal?"width":"height";t.style[n]=`${i}px`}}})});return d.setOptions(u),b(()=>d._didMount(),[]),b(()=>(a(d),d._willUpdate())),b(()=>{h(d)}),d}e.s(["useVirtualizer",0,function(e){return x({observeElementRect:u,observeElementOffset:p,scrollToFn:v,...e})},"useWindowVirtualizer",0,function(e){return x({getScrollElement:()=>"u">typeof document?window:null,observeElementRect:c,observeElementOffset:m,scrollToFn:v,initialOffset:()=>"u">typeof document?window.scrollY:0,...e})}],121039)},311520,e=>{"use strict";var t,s=e.i(222666),i=e.i(505962);e.s([],450654),e.i(450654);var n=e.i(270401),l=e.i(361409),o=e.i(796021),r=e.i(427702),a=e.i(802691),h=e.i(991066),u=e.i(397744);let d=n.createContext(void 0);function c(e){let t=n.useContext(d);if(void 0===t&&!e)throw Error((0,u.default)(50));return t}var f=e.i(939550),g=e.i(467219),p=e.i(214857),m=e.i(306694),S=e.i(246364),v=e.i(836033),O=e.i(325070),E=e.i(190642),b=e.i(875796);let x={...O.popupStoreSelectors,instantType:(0,m.createSelector)(e=>e.instantType),hasViewport:(0,m.createSelector)(e=>e.hasViewport)};class y extends S.ReactStore{constructor(e){super({...{...(0,O.createInitialPopupStoreState)(),instantType:void 0,hasViewport:!1},...e},{popupRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new E.PopupTriggerMap,closeDelayRef:{current:300}},x)}setOpen=(e,t)=>{let s=t.reason,i=s===g.REASONS.triggerHover,n=e&&s===g.REASONS.triggerFocus,l=!e&&(s===g.REASONS.triggerPress||s===g.REASONS.escapeKey);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let i={open:e};n?i.instantType="focus":l?i.instantType="dismiss":s===g.REASONS.triggerHover&&(i.instantType=void 0);let o=t.trigger?.id??null;(o||e)&&(i.activeTriggerId=o,i.activeTriggerElement=t.trigger??null),this.update(i)};i?p.flushSync(o):o()};static useStore(e,t){let s=(0,v.useRefWithInit)(()=>new y(t)).current,i=e??s,n=(0,b.useSyncedFloatingRootContext)({popupStore:i,onOpenChange:i.setOpen});return i.state.floatingRootContext=n,i}}var C=e.i(373851);function T(e){let{open:t,defaultOpen:i=!1,onOpenChange:h,onOpenChangeComplete:u,actionsRef:c,handle:p,triggerId:m,defaultTriggerId:S=null,children:v}=e,O=y.useStore(p?.store,{open:i,openProp:t,activeTriggerId:S,triggerIdProp:m});(0,o.useOnFirstRender)(()=>{void 0===t&&!1===O.state.open&&!0===i&&O.update({open:!0,activeTriggerId:S})}),O.useControlledProp("openProp",t),O.useControlledProp("triggerIdProp",m),O.useContextCallback("onOpenChange",h),O.useContextCallback("onOpenChangeComplete",u);let E=O.useState("open"),b=O.select("floatingRootContext"),x=O.useState("activeTriggerId"),T=O.useState("payload");(0,C.useImplicitActiveTrigger)(O);let{forceUnmount:w}=(0,C.useOpenStateTransitions)(E,O);(0,l.useIsoLayoutEffect)(()=>{E&&null==x&&O.set("payload",void 0)},[O,x,E]);let M=n.useCallback(()=>{O.setOpen(!1,(0,f.createChangeEventDetails)(g.REASONS.imperativeAction))},[O]);n.useImperativeHandle(c,()=>({unmount:w,close:M}),[w,M]);let I=(0,r.useDismiss)(b),{getReferenceProps:A,getTriggerProps:R,getFloatingProps:z}=(0,a.useInteractions)([I]),_=n.useMemo(()=>A(),[A]),D=n.useMemo(()=>R(),[R]),F=n.useMemo(()=>z(),[z]);return O.useSyncedValues({activeTriggerProps:_,inactiveTriggerProps:D,popupProps:F}),(0,s.jsx)(d.Provider,{value:O,children:"function"==typeof v?v({payload:T}):v})}let w=n.createContext(void 0);var M=e.i(161046);let I=n.forwardRef(function(e,t){let{keepMounted:i=!1,...n}=e;return c().useState("mounted")||i?(0,s.jsx)(w.Provider,{value:i,children:(0,s.jsx)(M.FloatingPortalLite,{ref:t,...n})}):null});var A=e.i(290530),R=e.i(281334),z=e.i(593478),_=e.i(137834),D=e.i(670884),F=e.i(129356);let j=n.forwardRef(function(e,t){let{render:s,className:i,delay:o,closeDelay:r,id:a,payload:h,handle:d,style:f,...g}=e,p=c(!0),m=d?.store??p;if(!m)throw Error((0,u.default)(89));let S=(0,z.useBaseUiId)(a),v=m.useState("isTriggerActive",S),O=m.useState("isOpenedByTrigger",S),E=m.useState("floatingRootContext"),b=n.useRef(null),x=o??600,y=r??300,{registerTrigger:T,isMountedByThisTrigger:w}=(0,C.useTriggerDataForwarding)(S,b,m,{payload:h});(0,l.useIsoLayoutEffect)(()=>{w&&(m.context.closeDelayRef.current=y)},[m,w,y]);let M=(0,F.useHoverReferenceInteraction)(E,{mouseOnly:!0,move:!1,handleClose:(0,_.safePolygon)(),delay:()=>({open:x,close:y}),triggerElementRef:b,isActiveTrigger:v,isClosing:()=>"ending"===m.select("transitionStatus")}),I=(0,D.useFocus)(E,{delay:x}),j=m.useState("triggerProps",w);return(0,R.useRenderElement)("a",e,{state:{open:O},ref:[t,T,b],props:[M,I.reference,j,{id:S},g],stateAttributesMapping:A.triggerOpenStateMapping})}),P=n.createContext(void 0);function W(){let e=n.useContext(P);if(void 0===e)throw Error((0,u.default)(49));return e}var k=e.i(707999),V=e.i(916317),L=e.i(290281),H=e.i(556982);let N=n.forwardRef(function(e,t){let{render:i,className:l,anchor:o,positionMethod:r="absolute",side:a="bottom",align:d="center",sideOffset:f=0,alignOffset:g=0,collisionBoundary:p="clipping-ancestors",collisionPadding:m=5,arrowPadding:S=5,sticky:v=!1,disableAnchorTracking:O=!1,collisionAvoidance:E=V.POPUP_COLLISION_AVOIDANCE,style:b,...x}=e,y=c(),C=function(){let e=n.useContext(w);if(void 0===e)throw Error((0,u.default)(48));return e}(),T=(0,h.useFloatingNodeId)(),M=y.useState("open"),I=y.useState("mounted"),A=y.useState("floatingRootContext"),R=y.useState("instantType"),z=y.useState("transitionStatus"),_=y.useState("hasViewport"),D=(0,k.useAnchorPositioning)({anchor:o,floatingRootContext:A,positionMethod:r,mounted:I,side:a,sideOffset:f,align:d,alignOffset:g,arrowPadding:S,collisionBoundary:p,collisionPadding:m,sticky:v,disableAnchorTracking:O,keepMounted:C,nodeId:T,collisionAvoidance:E,adaptiveOrigin:_?L.adaptiveOrigin:void 0}),F={open:M,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:R},j=(0,H.usePositioner)(e,F,{styles:D.positionerStyles,transitionStatus:z,props:x,refs:[t,y.useStateSetter("positionerElement")],hidden:!I,inert:!M});return(0,s.jsx)(P.Provider,{value:D,children:(0,s.jsx)(h.FloatingNode,{id:T,children:j})})});var B=e.i(228876),K=e.i(678968),U=e.i(688342),J=e.i(837861),$=e.i(294064);let q={...A.popupStateMapping,...K.transitionStatusMapping},Y=n.forwardRef(function(e,t){let{className:s,render:i,style:n,...l}=e,o=c(),{side:r,align:a}=W(),h=o.useState("open"),u=o.useState("instantType"),d=o.useState("transitionStatus"),f=o.useState("popupProps"),g=o.useState("floatingRootContext");(0,U.useOpenChangeComplete)({open:h,ref:o.context.popupRef,onComplete(){h&&o.context.onOpenChangeComplete?.(!0)}});let p=(0,B.useStableCallback)(()=>o.context.closeDelayRef.current);return(0,$.useHoverFloatingInteraction)(g,{closeDelay:p}),(0,R.useRenderElement)("div",e,{state:{open:h,side:r,align:a,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter("popupElement")],props:[f,(0,J.getDisabledMountTransitionStyles)(d),l],stateAttributesMapping:q})}),Z=n.forwardRef(function(e,t){let{render:s,className:i,style:n,...l}=e,o=c(),{arrowRef:r,side:a,align:h,arrowUncentered:u,arrowStyles:d}=W(),f=o.useState("open");return(0,R.useRenderElement)("div",e,{state:{open:f,side:a,align:h,uncentered:u},ref:[r,t],props:[{style:d,"aria-hidden":!0},l],stateAttributesMapping:A.popupStateMapping})}),X={...A.popupStateMapping,...K.transitionStatusMapping},G=n.forwardRef(function(e,t){let{render:s,className:i,style:n,...l}=e,o=c(),r=o.useState("open"),a=o.useState("mounted"),h=o.useState("transitionStatus");return(0,R.useRenderElement)("div",e,{state:{open:r,transitionStatus:h},ref:[t],props:[{role:"presentation",hidden:!a,style:{pointerEvents:"none",userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:X})}),Q=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t);var ee=e.i(894727);let et={activationDirection:e=>e?{"data-activation-direction":e}:null},es=n.forwardRef(function(e,t){let{render:s,className:i,style:n,children:l,...o}=e,r=c(),a=W(),h=r.useState("instantType"),{children:u,state:d}=(0,ee.usePopupViewport)({store:r,side:a.side,cssVars:Q,children:l}),f={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:h};return(0,R.useRenderElement)("div",e,{state:f,ref:t,props:[o,{children:u}],stateAttributesMapping:et})});class ei{constructor(){this.store=new y}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!t)throw Error((0,u.default)(88,e));this.store.setOpen(!0,(0,f.createChangeEventDetails)(g.REASONS.imperativeAction,void 0,t))}close(){this.store.setOpen(!1,(0,f.createChangeEventDetails)(g.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Arrow",0,Z,"Backdrop",0,G,"Handle",0,ei,"Popup",0,Y,"Portal",0,I,"Positioner",0,N,"Root",0,function(e){return c(!0)?(0,s.jsx)(T,{...e}):(0,s.jsx)(h.FloatingTree,{children:(0,s.jsx)(T,{...e})})},"Trigger",0,j,"Viewport",0,es,"createHandle",0,function(){return new ei}],8995);var en=e.i(8995),en=en,el=e.i(452473),eo=e.i(320187),er=e.i(147680),ea=e.i(691038);let eh=0,eu=0,ed=new Set;function ec(e){if(!(e.target instanceof Element&&e.target.closest('[data-slot="hover-card-content"]')))for(let e of(eh=Date.now(),ed))e()}let ef=(0,n.createContext)(null);function eg(){return 1===(eu+=1)&&document.addEventListener("scroll",ec,{capture:!0,passive:!0}),()=>{0==(eu-=1)&&document.removeEventListener("scroll",ec,!0)}}e.s(["HoverCard",0,e=>{let t,l,o,r,a,h,u,d,c,f=(0,i.c)(17);f[0]!==e?({children:t,...l}=e,f[0]=e,f[1]=t,f[2]=l):(t=f[1],l=f[2]);let[g,p]=(0,n.useState)(!1),m=(0,ea.useMatchMedia)("(hover: hover) and (pointer: fine)",!0);f[3]===Symbol.for("react.memo_cache_sentinel")?(o=[],f[3]=o):o=f[3],(0,n.useEffect)(eg,o),f[4]!==g?(r=()=>{if(!g)return;let e=()=>p(!1);return ed.add(e),()=>{ed.delete(e)}},a=[g],f[4]=g,f[5]=r,f[6]=a):(r=f[5],a=f[6]),(0,n.useEffect)(r,a),f[7]!==m?(h={isHoverCapable:m,setOpen:p},f[7]=m,f[8]=h):h=f[8];let S=h;f[9]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{e&&Date.now()-eh<200||p(e)},f[9]=u):u=f[9];let v=u;return f[10]!==t||f[11]!==g||f[12]!==l?(d=(0,s.jsx)(en.Root,{open:g,onOpenChange:v,...l,children:t}),f[10]=t,f[11]=g,f[12]=l,f[13]=d):d=f[13],f[14]!==S||f[15]!==d?(c=(0,s.jsx)(ef.Provider,{value:S,children:d}),f[14]=S,f[15]=d,f[16]=c):c=f[16],c},"HoverCardContent",0,e=>{let t,n,l,o,r,a,h,u,d,c,f,g,p,m,S,v,O,E=(0,i.c)(35);E[0]!==e?({className:o,anchor:n,align:g,alignOffset:t,arrowPadding:l,collisionAvoidance:r,collisionBoundary:a,collisionPadding:h,positionMethod:u,ref:c,side:p,sideOffset:m,sticky:f,...d}=e,E[0]=e,E[1]=t,E[2]=n,E[3]=l,E[4]=o,E[5]=r,E[6]=a,E[7]=h,E[8]=u,E[9]=d,E[10]=c,E[11]=f,E[12]=g,E[13]=p,E[14]=m):(t=E[1],n=E[2],l=E[3],o=E[4],r=E[5],a=E[6],h=E[7],u=E[8],d=E[9],c=E[10],f=E[11],g=E[12],p=E[13],m=E[14]);let b=void 0===g?"center":g,x=void 0===p?"top":p,y=void 0===m?6:m,C=(0,eo.useFloatingLayerZClass)();return E[15]!==o?(S=(0,el.cn)("w-72 rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-md outline-hidden",er.popupMotion,o),E[15]=o,E[16]=S):S=E[16],E[17]!==d||E[18]!==c||E[19]!==S?(v=(0,s.jsx)(en.Popup,{"data-slot":"hover-card-content",ref:c,className:S,...d}),E[17]=d,E[18]=c,E[19]=S,E[20]=v):v=E[20],E[21]!==b||E[22]!==t||E[23]!==n||E[24]!==l||E[25]!==r||E[26]!==a||E[27]!==h||E[28]!==u||E[29]!==x||E[30]!==y||E[31]!==f||E[32]!==v||E[33]!==C?(O=(0,s.jsx)(en.Portal,{children:(0,s.jsx)(en.Positioner,{anchor:n,align:b,alignOffset:t,arrowPadding:l,collisionAvoidance:r,collisionBoundary:a,collisionPadding:h,positionMethod:u,side:x,sideOffset:y,sticky:f,className:C,children:v})}),E[21]=b,E[22]=t,E[23]=n,E[24]=l,E[25]=r,E[26]=a,E[27]=h,E[28]=u,E[29]=x,E[30]=y,E[31]=f,E[32]=v,E[33]=C,E[34]=O):O=E[34],O},"HoverCardTrigger",0,e=>{let t,l,o,r,a,h,u,d=(0,i.c)(16);d[0]!==e?({className:t,onClick:l,delay:r,closeDelay:a,...o}=e,d[0]=e,d[1]=t,d[2]=l,d[3]=o,d[4]=r,d[5]=a):(t=d[1],l=d[2],o=d[3],r=d[4],a=d[5]);let c=void 0===r?120:r,f=void 0===a?120:a,{isHoverCapable:g,setOpen:p}=function(){let e=(0,n.useContext)(ef);if(!e)throw Error("HoverCard subcomponents must be rendered inside ");return e}();return d[6]!==g||d[7]!==l||d[8]!==p?(h=e=>{if(!g){e.stopPropagation();let t=e.currentTarget;t instanceof Element&&(t.matches("a[href]")||t.querySelector("a[href]"))||(e.preventDefault(),p(!0))}l?.(e)},d[6]=g,d[7]=l,d[8]=p,d[9]=h):h=d[9],d[10]!==t||d[11]!==f||d[12]!==c||d[13]!==o||d[14]!==h?(u=(0,s.jsx)(en.Trigger,{delay:c,closeDelay:f,className:t,onClick:h,...o}),d[10]=t,d[11]=f,d[12]=c,d[13]=o,d[14]=h,d[15]=u):u=d[15],u}],311520)},838011,e=>{"use strict";e.s(["isCoarsePointer",0,function(){return globalThis.window?.matchMedia?.("(pointer: coarse)").matches??!1}])}]); //# sourceMappingURL=1cebmgpneubik.js.map //# chunkId=01a09faf-549b-7311-95c3-46dbba4435a2