!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]="01a08adb-3bb9-7d21-bee8-ae3a25c6356f")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,193181,e=>{"use strict";var t=e.i(270401);let i=t.forwardRef(function({title:e,titleId:i,...s},n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))});e.s(["StarIcon",0,i],193181)},368884,e=>{"use strict";var t=e.i(270401);let i=t.forwardRef(function({title:e,titleId:i,...s},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":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"}))});e.s(["StarIcon",0,i],368884)},121039,543973,e=>{"use strict";let t;var i=e.i(270401),s=e.i(214857);function n(e,t,i){let s,n=i.initialDeps??[],l=!0;function r(){let r=e();return(r.length!==n.length||r.some((e,t)=>n[t]!==e))&&(n=r,s=t(...r),(null==i?void 0:i.onChange)&&!(l&&i.skipInitialOnChange)&&i.onChange(s),l=!1),s}return r.updateDeps=e=>{n=e},r}function l(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let r=()=>{if(void 0!==t)return t;if("u"0},o=e=>{let{offsetWidth:t,offsetHeight:i}=e;return{width:t,height:i}},a=e=>e,c=e=>{let t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,s=Array(i);for(let e=0;e{let i=e.scrollElement;if(!i)return;let s=e.targetWindow;if(!s)return;let n=e=>{let{width:i,height:s}=e;t({width:Math.round(i),height:Math.round(s)})};if(n(o(i)),!s.ResizeObserver)return()=>{};let l=new s.ResizeObserver(t=>{let s=()=>{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(o(i))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return l.observe(i,{box:"border-box"}),()=>{l.unobserve(i)}},u={passive:!0},d=(e,t)=>{let i=e.scrollElement;if(!i)return;let s=()=>{t({width:i.innerWidth,height:i.innerHeight})};return s(),i.addEventListener("resize",s,u),()=>{i.removeEventListener("resize",s)}},f="u"{var s,n;let l,r=e.scrollElement;if(!r)return;let o=e.targetWindow;if(!o)return;let a=e.options.useScrollendEvent&&f,c=0,h=a?null:(s=()=>t(c,!1),n=e.options.isScrollingResetDelay,function(...e){o.clearTimeout(l),l=o.setTimeout(()=>s.apply(this,e),n)}),d=e=>()=>{c=i(r),null==h||h(),t(c,e)},m=d(!0),p=d(!1);return r.addEventListener("scroll",m,u),a&&r.addEventListener("scrollend",p,u),()=>{r.removeEventListener("scroll",m),a&&r.removeEventListener("scrollend",p)}},p=(e,t)=>m(e,t,t=>{let{horizontal:i,isRtl:s}=e.options;return i?t.scrollLeft*(s&&-1||1):t.scrollTop}),g=(e,t)=>m(e,t,t=>e.options.horizontal?t.scrollX:t.scrollY),_=(e,t,i)=>{if(i.options.useCachedMeasurements){let t=i.indexFromElement(e),s=i.options.getItemKey(t);return i.itemSizeCache.get(s)??i.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[i.options.horizontal?"inlineSize":"blockSize"])}if(!t){let t=i.indexFromElement(e),s=i.options.getItemKey(t),n=i.itemSizeCache.get(s);if(void 0!==n)return n}return e[i.options.horizontal?"offsetWidth":"offsetHeight"]},S=(e,{adjustments:t=0,behavior:i},s)=>{var n,l;null==(l=null==(n=s.scrollElement)?void 0:n.scrollTo)||l.call(n,{[s.options.horizontal?"left":"top"]:e+t,behavior:i})};class b{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,i;return(null==(i=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:i.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,i=this.indexFromElement(t);if(!t.isConnected){for(let[e,i]of(this.observer.unobserve(t),this.elementsCache))if(i===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var i;null==(i=t())||i.disconnect(),e=null},observe:e=>{var i;return null==(i=t())?void 0:i.observe(e,{box:"border-box"})},unobserve:e=>{var i;return null==(i=t())?void 0:i.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,i;let s={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:a,rangeExtractor:c,onChange:()=>{},measureElement:_,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 i=e[t];void 0!==i&&(s[t]=i)}let n=this.options,l=null,r=null,o=!1;if(void 0!==n&&n.enabled&&s.enabled&&"end"===s.anchorTo&&null!==this.scrollElement){let e=n.count,a=s.count,c=this.getMeasurements(),h=e>0?(null==(t=c[0])?void 0:t.key)??n.getItemKey(0):null,u=e>0?(null==(i=c[e-1])?void 0:i.key)??n.getItemKey(e-1):null;if(a!==e||e>0&&a>0&&(s.getItemKey(0)!==h||s.getItemKey(a-1)!==u)){o=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;t&&(l=[t.key,this.getScrollOffset()-t.start]);let i=!0===s.followOnAppend?"auto":s.followOnAppend||null;i&&a>e&&this.isAtEnd(n.scrollEndThreshold)&&(0===e||s.getItemKey(a-1)!==u)&&(r=i)}}this.options=s,o&&(this.pendingMin=0,this.itemSizeCacheVersion++);let h=!1,u=0;if(l&&null!==this.scrollOffset){let[e,t]=l,i=this.getMeasurements(),{count:s,getItemKey:n}=this.options,r=0;for(;r{var t,i;null==(i=(t=this.options).onChange)||i.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 i=this.getScrollOffset();this.scrollDirection=t?i===e?this.scrollDirection:i{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},i=()=>{this._iosTouching=!1,r()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,u),e.addEventListener("touchend",i,u),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",i),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 i=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,i&&this.scrollElement&&this.options.enabled){let[e,t,s,n]=i;null===e||s||(r()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==n&&(this._iosDeferredAdjustment+=n):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),s&&this.scrollToEnd({behavior:s})}},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 i=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=i,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,i,s,n,l,r,o)=>(void 0!==this.prevLanes&&this.prevLanes!==l&&(this.lanesChangedFlag=!0),this.prevLanes=l,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:n,lanes:l,laneAssignmentMode:r,gap:o}),{key:!1}),this.getMeasurements=n(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:n,lanes:l,laneAssignmentMode:r,gap:o},a)=>{let c=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 h=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===l){var u;let n,l=2*e,r=this._flatMeasurements;if(!r||r.length0&&e.set(r.subarray(0,2*h)),r=e,this._flatMeasurements=r}if(0===h)n=t+i;else{let e=h-1;n=r[2*e]+r[2*e+1]+o}for(let t=h;t=48&&n<=57){let n=+i;if(Number.isInteger(n)&&n>=0&&n1){let s=f[e=u],n=void 0!==s?d[s]:void 0;a=n?n.end+o:t+i}else if(p===l){let t=0,i=m[0],s=f[0];for(let e=1;ethis.options.debug}),this.calculateRange=n(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,i,s)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,i,s,n){let l=e.length-1;if(e.length<=s)return{startIndex:0,endIndex:l};if(1===s&&null!==n){let e=function(e,t,i){let s=0;for(;s<=t;){let n=(s+t)/2|0,l=e[2*n];if(li))return n;t=n-1}}return s>0?s-1:0}(n,l,i),s=e,r=i+t;for(;se[t].start,i),o=r;if(1===s)for(;o1){let n=Array(s).fill(0);for(;oe=0&&a.some(e=>e>=i);){let t=e[r];a[t.lane]=t.start,r--}r=Math.max(0,r-r%s),o=Math.min(l,o+(s-1-o%s))}return{startIndex:r,endIndex:o}}(e,t,i,s,1===s&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=n(()=>{let e=null,t=null,i=this.calculateRange();return i&&(e=i.startIndex,t=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,i,s,n)=>null===s||null===n?[]:e({startIndex:s,endIndex:n,overscan:t,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,i=e.getAttribute(t);return i?parseInt(i,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 i=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==i&&this.range){let t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-t),n=Math.min(this.options.count-1,i+t);return e>=s&&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),i=this.options.getItemKey(t),s=this.elementsCache.get(i);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(i,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var i,s;let n,l,r;if(e<0||e>=this.options.count)return;let o=this._flatMeasurements;if(1===this.options.lanes&&null!==o)r=this.options.getItemKey(e),l=o[2*e],n=o[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;r=t.key,l=t.start,n=t.size}let a=this.itemSizeCache.get(r)??n,c=t-a;if(0!==c){let o="end"===this.options.anchorTo&&(null==(i=this.scrollState)?void 0:i.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,h=o?this.getTotalSize():0,u=this.getScrollOffset()+this.scrollAdjustments,d=this.itemSizeCache.has(r)?l+a<=u&&"backward"!==this.scrollDirection:l[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let i=[];for(let s=0,n=e.length;sthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0===t.length)return;let i=this._flatMeasurements,s=1===this.options.lanes&&null!=i,n=v(0,t.length-1,s?e=>i[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,i=0)=>{if(!this.scrollElement)return 0;let s=this.getSize(),n=this.getScrollOffset();return"auto"===t&&(t=e>=n+s?"end":"start"),"center"===t?e+=(i-s)/2:"end"===t&&(e-=s),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 i=this.getSize(),s=this.getScrollOffset(),n=this.measurementsCache[e];if(!n)return;if("auto"===t)if(n.end>=s+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=s+this.options.scrollPaddingStart))return[s,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:i="auto"}={})=>{this._iosDeferredAdjustment=0;let s=this.getOffsetForAlignment(e,t),n=this.now();this.scrollState={index:null,align:t,behavior:i,startedAt:n,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:i="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let s=this.getOffsetForIndex(e,t);if(!s)return;let[n,l]=s,r=this.now();this.scrollState={index:e,align:l,behavior:i,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{let i=this.getScrollOffset()+e,s=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{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,i=this.getMeasurements();if(0===i.length)t=this.options.paddingStart;else if(1===this.options.lanes){let s=i.length-1,n=this._flatMeasurements;t=null!=n?n[2*s]+n[2*s+1]:(null==(e=i[s])?void 0:e.end)??0}else{let e=Array(this.options.lanes).fill(null),s=i.length-1;for(;s>=0&&e.some(e=>null===e);){let t=i[s];null===e[t.lane]&&(e[t.lane]=t.end),s--}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:i})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:i,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&&(r()&&(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,i=t!==this.scrollState.lastTargetOffset;if(!i&&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,i){let e=this.getSize()||600,i=Math.abs(t-this.getScrollOffset()),s="smooth"===this.scrollState.behavior&&i>e;this.scrollState.lastTargetOffset=t,s||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:s?"smooth":"auto"})}this.scheduleScrollReconcile()}}let v=(e,t,i,s)=>{for(;e<=t;){let n=(e+t)/2|0,l=i(n);if(ls))return n;t=n-1}}return e>0?e-1:0};e.s(["Virtualizer",0,b,"defaultRangeExtractor",0,c,"elementScroll",0,S,"observeElementOffset",0,p,"observeElementRect",0,h,"observeWindowOffset",0,g,"observeWindowRect",0,d,"windowScroll",0,S],543973);let k="u">typeof document?i.useLayoutEffect:i.useEffect;function M({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...l}){let r=i.useReducer(e=>e+1,0)[1],o=i.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=t,o.current.mode=n;let a=e=>{let t=o.current;if(!t.enabled||!t.container)return;let i=e.getTotalSize();if(i!==t.lastSize){t.lastSize=i;let s=e.options.horizontal?"width":"height";t.container.style[s]=`${i}px`}},c=e=>{let t=o.current;if(!t.enabled||!t.container)return;a(e);let i=!!e.options.horizontal,s="transform"===t.mode,n=i?"left":"top",l=e.options.scrollMargin;for(let r of e.getVirtualItems()){let o=r.start-l,a=e.elementsCache.get(r.key);a&&t.lastPositions.get(a)!==o&&(t.lastPositions.set(a,o),s?a.style.transform=i?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:a.style[n]=`${o}px`)}},h={...l,onChange:(t,i)=>{var n;let a=o.current,h=!0;if(a.enabled){c(t);let e=t.range,i=a.prevRange;(h=!i||i.isScrolling!==t.isScrolling||i.startIndex!==(null==e?void 0:e.startIndex)||i.endIndex!==(null==e?void 0:e.endIndex))&&(a.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}h&&(e&&i?(0,s.flushSync)(r):r()),null==(n=l.onChange)||n.call(l,t,i)}},[u]=i.useState(()=>{let e=new b(h);return Object.assign(e,{containerRef:t=>{let i=o.current;if(i.container=t,i.lastSize=null,t&&i.enabled){let s=e.getTotalSize();i.lastSize=s;let n=e.options.horizontal?"width":"height";t.style[n]=`${s}px`}}})});return u.setOptions(h),k(()=>u._didMount(),[]),k(()=>(a(u),u._willUpdate())),k(()=>{c(u)}),u}e.s(["useVirtualizer",0,function(e){return M({observeElementRect:h,observeElementOffset:p,scrollToFn:S,...e})},"useWindowVirtualizer",0,function(e){return M({getScrollElement:()=>"u">typeof document?window:null,observeElementRect:d,observeElementOffset:g,scrollToFn:S,initialOffset:()=>"u">typeof document?window.scrollY:0,...e})}],121039)},112272,e=>{"use strict";let t=/([\p{Ll}\d])(\p{Lu})/gu,i=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,s=/(\d)\p{Ll}|(\p{L})\d/u,n=/[^\p{L}\d]+/giu,l="$1\0$2";function r(e){let s=e.trim();s=(s=s.replace(t,l).replace(i,l)).replace(n,"\0");let r=0,o=s.length;for(;"\0"===s.charAt(r);)r++;if(r===o)return[];for(;"\0"===s.charAt(o-1);)o--;return s.slice(r,o).split(/\0/g)}function o(e){let t=r(e);for(let e=0;ee.toLowerCase():t=>t.toLocaleLowerCase(e)}function h(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function u(e,t){return i=>`${t(i[0])}${e(i.slice(1))}`}function d(e,t={}){let i=t.split??(t.separateNumbers?o:r),s=t.prefixCharacters??"",n=t.suffixCharacters??"",l=0,a=e.length;for(;ll;){let t=a-1,i=e.charAt(t);if(!n.includes(i))break;a=t}return[e.slice(0,l),i(e.slice(l,a)),e.slice(a)]}e.s(["capitalCase",0,function(e,t){let[i,s,n]=d(e,t),l=c(t?.locale),r=h(t?.locale);return i+s.map(u(l,r)).join(t?.delimiter??" ")+n},"kebabCase",0,function(e,t){return a(e,{delimiter:"-",...t})},"sentenceCase",0,function(e,t){let[i,s,n]=d(e,t),l=c(t?.locale),r=u(l,h(t?.locale));return i+s.map((e,t)=>0===t?r(e):l(e)).join(t?.delimiter??" ")+n},"snakeCase",0,function(e,t){return a(e,{delimiter:"_",...t})}])},12266,e=>{"use strict";var t=e.i(288027);let i={Token:"token",Unit:"unit",Schedule:"schedule"},s={prompt:{kind:i.Token,sku_label:"Input Price",displayMultiplier:1e6,unitLabel:"/M tokens"},completion:{kind:i.Token,sku_label:"Output Price",displayMultiplier:1e6,unitLabel:"/M tokens"},request:{kind:i.Unit,sku_label:"Request",displayMultiplier:1,unitLabel:"/request"},image:{kind:i.Token,sku_label:"Image Input",displayMultiplier:1e3,unitLabel:"/K tokens"},image_token:{kind:i.Token,sku_label:"Image Tokens",displayMultiplier:1e6,unitLabel:"/M tokens"},image_output:{kind:i.Token,sku_label:"Image Output",displayMultiplier:1e6,unitLabel:"/M tokens"},audio:{kind:i.Token,sku_label:"Input Audio",displayMultiplier:1e6,unitLabel:"/M tokens"},audio_output:{kind:i.Token,sku_label:"Output Audio",displayMultiplier:1e6,unitLabel:"/M tokens"},input_audio_cache:{kind:i.Token,sku_label:"Input Audio Cache",displayMultiplier:1e6,unitLabel:"/M tokens"},input_cache_read:{kind:i.Token,sku_label:"Cache Read",displayMultiplier:1e6,unitLabel:"/M tokens"},input_cache_write:{kind:i.Token,sku_label:"Cache Write",displayMultiplier:1e6,unitLabel:"/M tokens"},input_cache_write_1h:{kind:i.Token,sku_label:"Cache Write (1h)",displayMultiplier:1e6,unitLabel:"/M tokens"},web_search:{kind:i.Unit,sku_label:"Web Search",displayMultiplier:1e3,unitLabel:"/1K calls",onlyWhenPositive:!0,isServerTool:!0}};e.s(["DisplayPricingKind",0,i,"PUBLIC_PRICING_DISPLAY_METADATA",0,s,"getPrimaryUnitPrice",0,function(e){let s=e.filter(e=>e.kind===i.Unit&&!0!==e.isServerTool),n=s[0];if(!n)return;let l=void 0!==n.tiers&&n.tiers.length>1,r=l||s.length>1;if(l){let e=(0,t.bn)(1/0),i=n.price;for(let s of n.tiers){let n=(0,t.bn)(s.price);n.gt(0)&&n.lt(e)&&(e=n,i=s.price)}return{price:i,displayMultiplier:n.displayMultiplier,unitLabel:n.unitLabel,hasDetails:r}}return{price:n.price,displayMultiplier:n.displayMultiplier,unitLabel:n.unitLabel,hasDetails:r}}])},690387,e=>{"use strict";var t=e.i(288027),i=e.i(12266),s=e.i(190557);let n="/M tokens",l=["prompt","completion","request","image","image_token","image_output","audio","audio_output","input_audio_cache","input_cache_read","input_cache_write","input_cache_write_1h","web_search","internal_reasoning"],r=["Image Input","Input Image"],o=["Image Output","Output Image"];function a(e){return e.length>0&&!e.some(e=>!(0,t.bn)(e.price).isZero()||e.tiers?.some(e=>!(0,t.bn)(e.price).isZero())===!0)}function c(e,n,l){let a,c,d,f,m;if(0===n.length)return;let p=l?.keepTrailingZeroes?"model-price-fixed":"model-price",g=n.filter(e=>"token"===e.kind),_=(c=(a=n.filter(e=>"token"===e.kind)).find(e=>"Input Price"===e.sku_label),d=a.find(e=>"Output Price"===e.sku_label),f=a.find(e=>{var t;return t=e.sku_label,o.includes(t)}),(m=a.find(e=>{var t;return t=e.sku_label,r.includes(t)})??c)&&f?{media:"image",inputItem:m,outputItem:f}:c&&d?{media:"text",inputItem:c,outputItem:d}:void 0);if(_)return function({locale:e,preset:i},{media:n,inputItem:l,outputItem:r}){return{kind:"standard-tokens",media:n,inputPrice:(0,s.formatUsd)((0,t.bn)(l.price).times(l.displayMultiplier),{locale:e,preset:i})??"—",inputUnit:u(l),outputPrice:(0,s.formatUsd)((0,t.bn)(r.price).times(r.displayMultiplier),{locale:e,preset:i})??"—",outputUnit:u(r)}}({locale:e,preset:p},_);let S=(0,i.getPrimaryUnitPrice)(n);if(!S){if(g[0]){let i=g[0],r=`${(0,s.formatUsd)((0,t.bn)(i.price).times(i.displayMultiplier),{locale:e,preset:l?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,o=u(i);return{kind:"custom",label:h(r,o),priceOnly:r,unit:o,hasDetails:n.length>1}}return}let b=`${(0,s.formatUsd)((0,t.bn)(S.price).times(S.displayMultiplier),{locale:e,preset:l?.keepTrailingZeroes?"model-price-fixed":"model-price"})??"—"}`,v=S.unitLabel;return{kind:"custom",label:S.hasDetails?`from ${h(b,v)}`:h(b,v),priceOnly:S.hasDetails?`from ${b}`:b,unit:v,hasDetails:S.hasDetails}}function h(e,t){var i;return`${e}${(i=t)?i.startsWith("/")?i:` ${i}`:""}`}function u(e){if("token"===e.kind){if(1e6===e.displayMultiplier)return n;if(1e3===e.displayMultiplier)return"/K tokens"}return e.unitLabel}e.s(["STANDARD_TOKEN_MULTIPLIER",0,1e6,"deriveEndpointInlinePricing",0,function(e,i,l){return c(e,l)??function(e,i){if(i&&(0,t.bn)(i.prompt).isFinite()&&(0,t.bn)(i.completion).isFinite()&&!((0,t.bn)(i.prompt).isZero()&&(0,t.bn)(i.completion).isZero()))return{kind:"standard-tokens",media:"text",inputPrice:(0,s.formatUsd)((0,t.bn)(i.prompt).times(1e6),{locale:e,preset:"model-price"})??"—",inputUnit:n,outputPrice:(0,s.formatUsd)((0,t.bn)(i.completion).times(1e6),{locale:e,preset:"model-price"})??"—",outputUnit:n}}(e,i?.pricing)},"deriveInlinePricing",0,c,"getDisplayPricingUnit",0,u,"isDisplayPricingFree",0,a,"isModelFree",0,function(e,i){var s;return e?.is_free===!0||(i.length>0?a(i):!!(s=e?.pricing)&&l.every(e=>{let i=s[e];return void 0===i||(0,t.bn)(i).isZero()}))},"joinPriceAndUnit",0,h])},700050,464314,e=>{"use strict";var t,i=e.i(252358),s=e.i(112272);function n(e,t){let n=`playground_v3:${e}`,l=Object.fromEntries(Object.entries(t||{}).map(([e,t])=>[(0,s.snakeCase)(e),t]));i.posthogClient.capture(n,l)}e.s(["PLAYGROUND_ANALYTICS_NAMESPACE_VERSION",0,"v3","trackFetchResponses",0,function(e){let t=Object.fromEntries(Object.entries(e).map(([e,t])=>[(0,s.snakeCase)(e),t]));i.posthogClient.capture("playground_v3:fetch_responses",t)}],464314);var l=((t=l||{}).RoomLoadTriggered="room_load_triggered",t.RoomLoadFailed="room_load_failed",t.RoomLoadComplete="room_load_complete",t.RoomCreate="room_create",t.RoomDelete="room_delete",t.RoomDeleteAll="room_delete_all",t.RoomDuplicate="room_duplicate",t.RoomUpdateTitle="room_update_title",t.RoomImport="room_import",t.RoomClearHistory="room_clear_history",t.RoomExportChat="room_export_chat",t.RoomExportMarkdown="room_export_markdown",t.RoomClearCharacters="room_clear_characters",t.RoomShareModels="room_share_models",t.MessageSendInit="message_send_init",t.MessageGenerate="message_generate",t.MessageUpdate="message_update",t.MessageDelete="message_delete",t.CharacterAdd="character_add",t.CharacterRemove="character_remove",t.CharacterDuplicate="character_duplicate",t.CharacterRestore="character_restore",t.CharacterUpdateModel="character_update_model",t.CharacterApplySettingsToAll="character_apply_settings_to_all",t.PresetApply="preset_apply",t.ToolToggle="tool_toggle",t.ReasoningModeToggle="reasoning_mode_toggle",t.AspectRatioSelect="aspect_ratio_select",t.FetchChatCompletion="fetch_chat_completion",t.FetchResponses="fetch_responses",t.ArtifactCreate="artifact_create",t.ArtifactDelete="artifact_delete",t.ArtifactUpdate="artifact_update",t.ArtifactViewOpen="artifact_view_open",t.ArtifactViewClose="artifact_view_close",t.ArtifactVersionCreate="artifact_version_create",t.ArtifactVersionSelect="artifact_version_select",t.ArtifactFileCreate="artifact_file_create",t.ArtifactFileDelete="artifact_file_delete",t.ModelPresetClick="model_preset_click",t.PromptPresetClick="prompt_preset_click",t.ModelPin="model_pin",t.ModelUnpin="model_unpin",t.PinnedModelSelect="pinned_model_select",t.ToolDocsClick="tool_docs_click",t.ToolChipExpand="tool_chip_expand",t.CitationIconsExpand="citation_icons_expand",t.RoomSummaryTitleGenerated="room_summary_title_generated",t.ConversationSearchOpen="conversation_search_open",t.InternTurn="intern_turn",t);e.s(["ModelPinOrigin",0,{ModelPage:"model_page",ModelsListing:"models_listing",SelectorRow:"selector_row",SelectorPinnedPanel:"selector_pinned_panel"},"trackArtifactCreate",0,function(e){n("artifact_create",e)},"trackArtifactDelete",0,function(e){n("artifact_delete",e)},"trackArtifactVersionCreate",0,function(e){n("artifact_version_create",e)},"trackAspectRatioSelect",0,function(e){n("aspect_ratio_select",e)},"trackCharacterDuplicate",0,function(e){n("character_duplicate",e)},"trackCharacterRemove",0,function(e){n("character_remove",e)},"trackCharacterRestore",0,function(e){n("character_restore",e)},"trackCharactersAdd",0,function(e){for(let t of e.modelSlugs)n("character_add",{model:t,source:e.source})},"trackCitationIconsExpand",0,function(e){n("citation_icons_expand",e)},"trackConversationSearchOpen",0,function(e){n("conversation_search_open",e)},"trackInternTurn",0,function(e){n("intern_turn",e)},"trackMessageDelete",0,function(e){n("message_delete",e)},"trackMessageSendInit",0,function(e){n("message_send_init",e)},"trackModelPin",0,function(e){n("model_pin",e)},"trackModelPresetClick",0,function(e){n("model_preset_click",e)},"trackModelUnpin",0,function(e){n("model_unpin",e)},"trackPinnedModelSelect",0,function(e){n("pinned_model_select",e)},"trackPresetApply",0,function(e){n("preset_apply",e)},"trackPromptPresetClick",0,function(e){n("prompt_preset_click",e)},"trackRoomClearCharacters",0,function(){n("room_clear_characters")},"trackRoomClearHistory",0,function(){n("room_clear_history")},"trackRoomCreate",0,function(e){n("room_create",e)},"trackRoomDelete",0,function(e){n("room_delete",e)},"trackRoomDeleteAll",0,function(e){n("room_delete_all",e)},"trackRoomDuplicate",0,function(e){n("room_duplicate",e)},"trackRoomExportChat",0,function(){n("room_export_chat")},"trackRoomExportMarkdown",0,function(){n("room_export_markdown")},"trackRoomImport",0,function(){n("room_import")},"trackRoomLoadComplete",0,function(e){n("room_load_complete",e)},"trackRoomLoadFailed",0,function(e){n("room_load_failed",e)},"trackRoomLoadTriggered",0,function(e){n("room_load_triggered",e)},"trackRoomShareModels",0,function(){n("room_share_models")},"trackRoomSummaryTitleGenerated",0,function(e){n("room_summary_title_generated",e)},"trackRoomUpdateTitle",0,function(e){n("room_update_title",e)},"trackToolChipExpand",0,function(e){n("tool_chip_expand",e)},"trackToolDocsClick",0,function(){n("tool_docs_click")},"trackToolToggle",0,function(e){n("tool_toggle",e)}],700050)}]); //# sourceMappingURL=2e_q0h4sxvmbv.js.map //# chunkId=01a08adb-3bb9-7d21-bee8-ae3a25c6356f