1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,545840,e=>{"use strict";var t,i,s,n,l=e.i(703573),r=e.i(520234),o=e.i(331615),a=e.i(199446);(t=s||(s={})).PODCASTER="PODCASTER",t.ARTIST="ARTIST",(i=n||(n={})).LITE="LITE",i.PRO="PRO",i.PLUS="PLUS",i.EXTRA="EXTRA";let h=l.union([l.object({type:l.literal(s.PODCASTER),tier:l.enum(n)}),l.object({type:l.literal(s.ARTIST),tier:l.literal(n.LITE).or(l.literal(n.PRO))})]);function u(e){return e.reduce((e,t)=>{let i=(0,r.match)(t).with({type:s.PODCASTER,tier:n.LITE},()=>({podcasts:1,artists:0})).with({type:s.PODCASTER,tier:n.PRO},()=>({podcasts:2,artists:0})).with({type:s.PODCASTER,tier:n.PLUS},()=>({podcasts:10,artists:0})).with({type:s.PODCASTER,tier:n.EXTRA},()=>({podcasts:1,artists:0})).with({type:s.ARTIST,tier:n.LITE},()=>({podcasts:0,artists:1})).with({type:s.ARTIST,tier:n.PRO},()=>({podcasts:0,artists:1})).exhaustive();return{podcasts:e.podcasts+i.podcasts,artists:e.artists+i.artists}},{podcasts:0,artists:0})}l.object({uid:l.string(),project:l.string()}),e.s(["BillingPlan",0,h,"BillingTier",0,n,"BillingType",0,s,"canBillingPlansAddFeed",0,function({type:e,plans:t,existing:i}){let s=u(t);return(0,r.match)(e).with(a.FeedType.PODCAST,()=>i.podcasts<s.podcasts).with(a.FeedType.ARTIST,()=>i.artists<s.artists).with(a.FeedType.ALBUM,()=>!0).exhaustive()},"canBillingPlansAddShow",0,function({plans:e,existing:t}){let i=u(e);return t.podcasts<i.podcasts},"getBillingPriceForPlan",0,function(e){let t=o.FountainSupportedCurrency.USD,i=o.FountainPaymentSchedule.MONTHLY;return(0,r.match)(e).with({type:s.PODCASTER,tier:n.LITE},()=>({currency:t,schedule:i,amount:2500})).with({type:s.PODCASTER,tier:n.PRO},()=>({currency:t,schedule:i,amount:5e3})).with({type:s.PODCASTER,tier:n.PLUS},()=>({currency:t,schedule:i,amount:2e4})).with({type:s.PODCASTER,tier:n.EXTRA},()=>({currency:t,schedule:i,amount:2500})).with({type:s.ARTIST,tier:n.LITE},()=>({currency:t,schedule:i,amount:100})).with({type:s.ARTIST,tier:n.PRO},()=>({currency:t,schedule:i,amount:100})).exhaustive()},"getCreditsForPlans",0,function(e){return e.reduce((e,t)=>e+(0,r.match)(t).with({type:s.PODCASTER,tier:n.LITE},()=>200).with({type:s.PODCASTER,tier:n.PRO},()=>400).with({type:s.PODCASTER,tier:n.PLUS},()=>2e3).with({type:s.PODCASTER,tier:n.EXTRA},()=>200).with({type:s.ARTIST,tier:n.LITE},()=>0).with({type:s.ARTIST,tier:n.PRO},()=>0).exhaustive(),0)}])},392319,988227,e=>{"use strict";var t,i,s,n,l,r,o,a,h=e.i(703573),u=e.i(410169),c=e.i(143137),d=e.i(889799),m=e.i(331615),f=e.i(258201);(t=l||(l={})).SUCCESS="SUCCESS",t.ERROR="ERROR",(i=r||(r={})).STRIPE="STRIPE",i.LIGHTNING="LIGHTNING",i.WALLET="WALLET",h.object({product:h.string(),supporter:h.string(),satoshis:u.coerce.number().int().positive().optional(),message:h.string().trim().max(500).optional()});let g=h.object({lnaddress:h.string(),split:h.number().int().positive(),satoshis:h.number().int().positive(),status:h.enum(l).readonly()});h.object({_id:h.string().readonly(),_type:h.enum(d.ProductType).readonly(),_npub:h.string().optional().readonly(),_product_id:h.string().optional().readonly(),_supporter_id:h.string().optional().readonly(),_feed_id:h.string().optional().readonly(),_user_id:h.string().optional().readonly(),entity:c.ContentEntity.readonly(),price:m.FountainPrice.readonly(),meta:h.object({label:h.string().readonly().optional(),method:h.enum(r),status:h.enum(l).readonly(),timestamp:f.DateTime.readonly(),platform:h.enum(["IOS","ANDROID","WEB"]).optional().readonly(),country:h.string().optional().readonly(),client:h.string().optional().readonly(),testmode:h.boolean().optional()}),ln:h.object({invoice:h.string(),preimage:h.string().optional()}).optional(),stripe:h.object({account:h.string().readonly(),charge:h.string().readonly(),payment:h.string().readonly(),invoice:h.string().optional().readonly(),subscription:h.string().optional().readonly()}).optional(),recipients:h.record(h.string(),g).optional()}),e.s(["PurchaseMethod",0,r],988227);var p=e.i(545840);let E=h.string().trim().startsWith("sub_").brand();(s=o||(o={})).ACTIVE="active",s.TRIALING="trialing",s.PAST_DUE="past_due",s.INCOMPLETE="incomplete",s.INCOMPLETE_EXPIRED="incomplete_expired",s.UNPAID="unpaid",s.PAUSED="paused",s.CANCELED="canceled",s.UNKNOWN="unknown",(n=a||(a={})).PENDING="PENDING",n.INCOMPLETE="INCOMPLETE",n.ACTIVE="ACTIVE",n.PASTDUE="PASTDUE",n.CANCELLED="CANCELLED";let S=h.object({id:E,status:h.enum(o),cancel_at_period_end:h.boolean(),plans:h.array(p.BillingPlan)}),v=h.object({product:h.string().readonly(),stripe:h.string().readonly().optional(),price:m.FountainPrice,label:h.string().readonly().optional(),created:f.DateTime.readonly(),lastpayment:f.DateTime.optional().readonly(),nextpayment:f.DateTime.optional().readonly(),expired:f.DateTime.optional().readonly(),method:h.enum(r).readonly(),status:h.enum(a).readonly(),testmode:h.boolean().optional()});e.s(["ProjectSubscription",0,S,"StripeSubscriptionID",0,E,"StripeSubscriptionStatus",0,o,"SubscriptionStatus",0,a,"SupporterSubscription",0,v],392319)},444229,e=>{"use strict";var t=e.i(419378),i=e.i(94884);let s=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",o
1pacity:"0.2"}),t.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),n=t.forwardRef((e,n)=>t.createElement(i.default,{ref:n,...e,weights:s}));n.displayName="CheckIcon",e.s(["CheckIcon",0,n],444229)},417473,e=>{"use strict";var t=e.i(419378),i=e.i(94884),s=e.i(86464);let n=t.forwardRef((e,n)=>t.createElement(i.default,{ref:n,...e,weights:s.default}));n.displayName="CopyIcon",e.s(["Copy",0,n,"CopyIcon",0,n])},999792,e=>{"use strict";var t=e.i(419378),i=e.i(94884);let s=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),t.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),n=t.forwardRef((e,n)=>t.createElement(i.default,{ref:n,...e,weights:s}));n.displayName="InfoIcon",e.s(["InfoIcon",0,n],999792)},86464,e=>{"use strict";var t=e.i(419378);let i=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),t.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]);e.s(["default",0,i])},63843,e=>{"use strict";let t;var i=e.i(419378),s=e.i(407207);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=(e,t)=>1.01>Math.abs(e-t),o=()=>
1{if(void 0!==t)return t;if("u"<typeof navigator)return t=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return t=!0;let e=navigator.maxTouchPoints;return t="MacIntel"===navigator.platform&&void 0!==e&&e>0},a=e=>{let{offsetWidth:t,offsetHeight:i}=e;return{width:t,height:i}},h=e=>e,u=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<i;e++)s[e]=t+e;return s},c=(e,t)=>{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(a(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(a(i))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return l.observe(i,{box:"border-box"}),()=>{l.unobserve(i)}},d={passive:!0},m=(e,t)=>{let i=e.scrollElement;if(!i)return;let s=()=>{t({width:i.innerWidth,height:i.innerHeight})};return s(),i.addEventListener("resize",s,d),()=>{i.removeEventListener("resize",s)}},f="u"<typeof window||"onscrollend"in window,g=(e,t,i)=>{var s,n;let l,r=e.scrollElement;if(!r)return;let o=e.targetWindow;if(!o)return;let a=e.options.useScrollendEvent&&f,h=0,u=a?null:(s=()=>t(i(r),!1),n=e.options.isScrollingResetDelay,Object.assign(function(...e){o.clearTimeout(l),l=o.setTimeout(()=>s.apply(this,e),n)},{cancel:()=>{o.clearTimeout(l)}})),c=e=>()=>{h=i(r),null==u||u(),t(h,e)},m=c(!0),g=c(!1);return r.addEventListener("scroll",m,d),a&&r.addEventListener("scrollend",g,d),()=>{r.removeEventListener("scroll",m),a&&r.removeEventListener("scrollend",g),null==u||u.cancel()}},p=(e,t)=>g(e,t,t=>{let{horizontal:i,isRtl:s}=e.options;return i?t.scrollLeft*(s&&-1||1):t.scrollTop}),E=(e,t)=>g(e,t,t=>e.options.horizontal?t.scrollX:t.scrollY),S=(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"]},v=(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 y{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=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._clampedAdjustment=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.isIndexInRange(i)&&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;let i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:h,rangeExtractor:u,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 s=this.options,n=null,l=null,r=!1;if(void 0!==s&&s.enabled&&i.enabled&&"end"===i.anchorTo&&null!==this.scrollElement){let e=s.count,o=i.count,a=this.getMeasurements(),h=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??a,u=e=>{var t;
1return"object"==typeof(t=h[e])?t.key:t},c=e>0?u(0):null,d=e>0?u(e-1):null;if(o!==e||e>0&&o>0&&(i.getItemKey(0)!==c||i.getItemKey(o-1)!==d)){r=!0;let t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??a[0]:null;t&&(n=[t.key,this.getScrollOffset()-t.start]);let h=!0===i.followOnAppend?"auto":i.followOnAppend||null;h&&o>0&&this.isAtEnd(s.scrollEndThreshold)&&(0===e||i.getItemKey(o-1)!==d)&&(o>e||function(e,t,i,s){if(0===t)return!1;let n=s(0),l=new Set,r=0;for(;r<e;){let e=i(r);if(e===n)break;l.add(e),r++}let o=e-r;if(0===o||o>=t)return!1;for(let e=0;e<o;e++)if(s(e)!==i(r+e))return!1;for(let e=o;e<t;e++)if(l.has(s(e)))return!1;return!0}(e,o,u,i.getItemKey))&&(l=h)}}this.options=i,r&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,a=0;if(n&&null!==this.scrollOffset){let[e,t]=n,i=this.getMeasurements(),{count:s,getItemKey:r}=this.options,h=0;for(;h<s&&r(h)!==e;)h++;if(h<s){let e=i[h];if(e){let i=Math.max(0,e.start+t);l||i===this.scrollOffset||(a=i-this.scrollOffset,this.scrollOffset=i,o=!0)}}}(o||l)&&(this.pendingScrollAnchor=[o?n[0]:null,o?n[1]:0,l,a])},this.notify=e=>{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.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e,t;let i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i)return void this.maybeNotify();if(this.scrollElement=i,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,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;let i=this.getScrollOffset();this.scrollDirection=t?i===e?this.scrollDirection:i<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},i=()=>{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",i,d),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 s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){let[e,i,n,l]=s;null!==e&&!n&&(o()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==l&&(this._iosDeferredAdjustment+=l):((null==(t=this.scrollState)?void 0:t.behavior)!=="smooth"||r(this.getScrollOffset()-l,this.scrollState.lastTargetOffset))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;let{target:e,maxAtWrite:t}=this._clampedAdjustment,i=this.getMaxScrollOffset();i>t+.5&&(this._clampedAdjustment=e>i+.5?{target:e,maxAtWrite:i}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>
1{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.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=n(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:i,getItemKey:s,enabled:n,lanes:l,laneAssignmentMode:r,gap:o},a)=>{var h,u;let c=this.itemSizeCache;if(!n)return this.measurementsCache=[],this._singleLaneMeasurements=null,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._singleLaneMeasurements=null,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 d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===l){let n,l,r=2*e,a=null==(h=this._singleLaneMeasurements)?void 0:h.flat;if(!a||a.length<r){let e=new Float64Array(r);a&&d>0&&e.set(a.subarray(0,2*d)),a=e}let m=0===d?Array(e):this._singleLaneMeasurements.items.slice();if(0===d)n=t+i;else{let e=d-1;n=a[2*e]+a[2*e+1]+o}for(let t=d;t<e;t++){let e=s(t);m[t]=e;let i=c.get(e),l="number"==typeof i?i:this.options.estimateSize(t);a[2*t]=n,a[2*t+1]=l,n+=l+o}this._singleLaneMeasurements={flat:a,items:m};let f=(u=a,l=m.length,new Proxy(m,{get(e,t,i){if("string"==typeof t){let i=t.charCodeAt(0);if(i>=48&&i<=57){let i=+t;if(Number.isInteger(i)&&i>=0&&i<l){let t=e[i];if("object"!=typeof t){let s=u[2*i];t=e[i]={index:i,key:t,start:s,size:u[2*i+1],end:s+u[2*i+1],lane:0}}return t}}if("length"===t)return l}return Reflect.get(e,t,i)}}));return this.measurementsCache=f,f}let m=this.measurementsCache.slice(0,d),f=Array(l).fill(void 0),g=new Float64Array(l),p=0;for(let e=0;e<d;e++){let t=m[e];t&&(void 0===f[t.lane]&&p++,f[t.lane]=e,g[t.lane]=t.end)}for(let n=d;n<e;n++){let e,a,h=s(n),u=this.laneAssignments.get(n),d="estimate"===r||c.has(h);if(void 0!==u&&this.options.lanes>1){let s=f[e=u],n=void 0!==s?m[s]:void 0;a=n?n.end+o:t+i}else if(p===l){let t=0,i=g[0],s=f[0];for(let e=1;e<l;e++){let n=g[e];(n<i||n===i&&f[e]<s)&&(t=e,i=n,s=f[e])}e=t,a=i+o,d&&this.laneAssignments.set(n,e)}else e=n%this.options.lanes,a=t+i,d&&this.laneAssignments.set(n,e);let E=c.get(h),S="number"==typeof E?E:this.options.estimateSize(n),v=a+S;m[n]={index:n,start:a,size:S,end:v,key:h,lane:e},void 0===f[e]&&p++,f[e]=n,g[e]=v}return this.measurementsCache=m,m},{key:!1,debug:()=>this.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(l<i)s=n+1;else{if(!(l>i))return n;t=n-1}}return s>0?s-1:0}(n,l,i),s=e,r=i+t;for(;s<l&&n[2*s]+n[2*s+1]<r;)s++;return{startIndex:e,endIndex:s}}let r=T(0,l,t=>e[t].start,i),o=r;if(1===s)for(;o<l&&e[o].end<i+t;)o++;else if(s>1){let n=Array(s).fill(0);for(;o<l&&n.some(e=>e<i+t);){let t=e[o];n[t.lane]=t.end,o++}let a=Array(s).fill(i+t);for(;r>=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._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}
1),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);if(!this.isIndexInRange(t))return;let 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,n;let l,r,o;if(!this.isIndexInRange(e))return;let a=null==(i=this._singleLaneMeasurements)?void 0:i.flat;if(1===this.options.lanes&&null!=a)o=this.options.getItemKey(e),r=a[2*e],l=a[2*e+1];else{let t=this.measurementsCache[e];if(!t)return;o=t.key,r=t.start,l=t.size}let h=this.itemSizeCache.get(o)??l,u=t-h;if(0!==u){let i="end"===this.options.anchorTo&&(null==(s=this.scrollState)?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,a=i?this.getTotalSize():0,c=this.getScrollOffset()+this.scrollAdjustments,d=this.itemSizeCache.has(o)?r+h<=c&&"backward"!==this.scrollDirection:r<c,m=(null==(n=this.scrollState)?void 0:n.behavior)!=="smooth"&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:o,start:r,size:l,end:r+l,lane:0},u,this):d);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(o,t),this.itemSizeCacheVersion++;let f=!1;i?f=this.applyScrollAdjustment(this.getTotalSize()-a):m&&(f=this.applyScrollAdjustment(u)),this.notify(f),this._retryClampedAdjustment()}},this.getVirtualItems=n(()=>
1[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let i=[];for(let s=0,n=e.length;s<n;s++){let n=t[e[s]];i.push(n)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{var t;let i=this.getMeasurements();if(0===i.length)return;let s=null==(t=this._singleLaneMeasurements)?void 0:t.flat,n=1===this.options.lanes&&null!=s,r=T(0,i.length-1,n?e=>s[2*e]:e=>l(i[e]).start,e);return l(i[r])},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,t;let i,s=this.getMeasurements();if(0===s.length)i=this.options.paddingStart;else if(1===this.options.lanes){let n=s.length-1,l=null==(e=this._singleLaneMeasurements)?void 0:e.flat;i=null!=l?l[2*n]+l[2*n+1]:(null==(t=s[n])?void 0:t.end)??0}else{let e=Array(this.options.lanes).fill(null),t=s.length-1;for(;t>=0&&e.some(e=>null===e);){let i=s[t];null===e[i.lane]&&(e[i.lane]=i.end),t--}i=Math.max(...e.filter(e=>null!==e))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];
1if(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){if(0===e)return!1;if(o()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{let i=this.getScrollOffset()+this.scrollAdjustments+e,s=this.scrollElement,n=null!==s&&("scrollHeight"in s||"document"in s)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==n&&i>n+.5?{target:i,maxAtWrite:n}:null,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),!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&&r(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 T=(e,t,i,s)=>{for(;e<=t;){let n=(e+t)/2|0,l=i(n);if(l<s)e=n+1;else{if(!(l>s))return n;t=n-1}}return e>0?e-1:0},A="u">typeof document?i.useLayoutEffect:i.useEffect;function b({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=i.useRef(!1),h=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`}},u=e=>{let t=o.current;if(!t.enabled||!t.container)return;h(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`)}},c={...l,onChange:(t,i)=>{var n;let h=o.current,c=!0;if(h.enabled){u(t);let e=t.range,i=h.prevRange;(c=!i||i.isScrolling!==t.isScrolling||i.startIndex!==(null==e?void 0:e.startIndex)||i.endIndex!==(null==e?void 0:e.endIndex))&&(h.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}c&&(e&&i&&!a.current?(0,s.flushSync)(r):r()),null==(n=l.onChange)||n.call(l,t,i)}},[d]=i.useState(()=>{let e=new y(c),t=e.measureElement;return e.measureElement=e=>{a.current=!0;try{t(e)}finally{a.current=!1}},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 d.setOptions(c),A(()=>d._didMount(),[]),A(()=>(h(d),d._willUpdate())),A(()=>{u(d)}),d}e.s(["useVirtualizer",0,function(e){return b({observeElementRect:c,observeElementOffset:p,scrollToFn:v,...e})}
1,"useWindowVirtualizer",0,function(e){return b({getScrollElement:()=>"u">typeof document?window:null,observeElementRect:m,observeElementOffset:E,scrollToFn:v,initialOffset:()=>"u">typeof document?window.scrollY:0,...e})}],63843)},713923,e=>{"use strict";var t=e.i(317051),i=e.i(318203),s=e.i(201135),n=e.i(972827),l=e.i(943787),r=e.i(498489),o=e.i(236372),a=e.i(412327),h=e.i(726157),u=e.i(419378),c=e.i(24384),d=e.i(411557),m=e.i(407207);let f=u.default.createContext(null);function g(e){let{children:t}=e,i=(0,u.useContext)(f),[s,n]=(0,u.useState)(0),l=(0,u.useMemo)(()=>({parent:i,modalCount:s,addModal(){n(e=>e+1),i&&i.addModal()},removeModal(){n(e=>e-1),i&&i.removeModal()}}),[i,s]);return u.default.createElement(f.Provider,{value:l},t)}function p(e){let t,{modalProviderProps:i}={modalProviderProps:{"aria-hidden":!!(t=(0,u.useContext)(f))&&t.modalCount>0||void 0}};return u.default.createElement("div",{"data-overlay-container":!0,...e,...i})}function E(e){return u.default.createElement(g,null,u.default.createElement(p,e))}function S(e){let t=(0,c.useIsSSR)(),{portalContainer:i=t?null:document.body,...s}=e,{getContainer:n}=(0,d.useUNSAFE_PortalContext)();if(!e.portalContainer&&n&&(i=n()),u.default.useEffect(()=>{if(i?.closest("[data-overlay-container]"))throw Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[i]),!i)return null;let l=u.default.createElement(E,s);return m.default.createPortal(l,i)}var v=e.i(703688),y=e.i(316917),T=e.i(285835),A=e.i(939829);let b={},O=0,x=!1,I=null,M=null;function C(e={}){let{delay:t=1500,closeDelay:i=500}=e,{isOpen:s,open:n,close:l}=(0,A.useOverlayTriggerState)(e),[r,o]=(0,u.useState)(!1),a=(0,u.useMemo)(()=>`${++O}`,[]),h=(0,u.useRef)(null),c=(0,u.useRef)(l),d=()=>{b[a]=g},m=()=>{for(let e in b)e!==a&&(b[e](!0,!0),delete b[e])},f=e=>{h.current&&clearTimeout(h.current),h.current=null,m(),d(),o(!!e),x=!0,n(),I&&(clearTimeout(I),I=null),M&&(clearTimeout(M),M=null)},g=(e,t)=>{o(!!t),e||i<=0?(h.current&&clearTimeout(h.current),h.current=null,c.current()):h.current||(h.current=setTimeout(()=>{h.current=null,c.current()},i)),I&&(clearTimeout(I),I=null),x&&(M&&clearTimeout(M),M=setTimeout(()=>{delete b[a],M=null,x=!1},Math.max(500,i)))};return(0,u.useEffect)(()=>{c.current=l},[l]),(0,u.useEffect)(()=>()=>{h.current&&clearTimeout(h.current),b[a]&&delete b[a]},[a]),{isOpen:s,shouldSkipAnimation:r,open:e=>{e||!(t>0)||h.current?f(x):(m(),d(),s||x?s||f(!0):(I&&clearTimeout(I),I=setTimeout(()=>{I=null,x=!0,f(!1)},t)))},close:g}}let R=(0,u.createContext)(null),w=(0,u.createContext)(null);function P(e){let t=C(e),i=(0,u.useRef)(null),{triggerProps:l,tooltipProps:c}=function(e,t,i){let{isDisabled:n,trigger:l,shouldCloseOnPress:c=!0}=e,d=(0,h.useId)(),m=(0,u.useRef)(!1),f=(0,u.useRef)(!1),g=()=>{(m.current||f.current)&&t.open(f.current)},p=e=>{m.current||f.current||t.close(e)};(0,u.useEffect)(()=>{let e=e=>{i&&i.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[i,t]);let E=()=>{c&&(f.current=!1,m.current=!1,p(!0))},{hoverProps:S}=(0,a.useHover)({isDisabled:n,onHoverStart:()=>{"focus"!==l&&("pointer"===(0,r.getInteractionModality)()?m.current=!0:m.current=!1,g())},onHoverEnd:()=>{"focus"!==l&&(f.current=!1,m.current=!1,p())}}),{focusableProps:v}=(0,s.useFocusable)({isDisabled:n,onFocus:()=>{(0,r.isFocusVisible)()&&(f.current=!0,g())},onBlur:()=>{f.current=!1,m.current=!1,p(!0)}},i);return{triggerProps:{"aria-describedby":t.isOpen?d:void 0,...(0,o.mergeProps)(v,S,{onPointerDown:E,onKeyDown:E}),tabIndex:void 0},tooltipProps:{id:d}}}(e,t,i);return u.default.createElement(n.Provider,{values:[[R,t],[w,{...c,triggerRef:i}]]},u.default.createElement(s.FocusableProvider,{...l,ref:i},e.children))}let _=(0,u.forwardRef)(function({UNSTABLE_portalContainer:e,...t},i){[t,i]=(0,n.useContextProps)(t,i,w);let s=(0,u.useContext)(R),l=C(t),r=null==t.isOpen&&null==t.defaultOpen&&s?s:l,o=(0,T.useExitAnimation)(i,r.isOpen)||t.isExiting||!1;return r.isOpen||o?u.default.createElement(S,{portalContainer:e},u.default.createElement(z,{...t,tooltipRef:i,isExiting:o})):null});function z(e){let t=(0,u.useContext)(R),i=(0,u.useRef)(null),{overlayProps:s,arrowProps:r,placement:h,triggerAnchorPoint:c}=(0,v.useOverlayPosition)({placement:e.placement||"top",targetRef
1:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:i,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),d=(0,T.useEnterAnimation)(e.tooltipRef,!!h)||e.isEntering||!1,m=(0,n.useRenderProps)({...e,defaultClassName:"react-aria-Tooltip",values:{placement:h,isEntering:d,isExiting:e.isExiting,state:t}}),{tooltipProps:f}=function(e,t){let i=(0,y.filterDOMProps)(e,{labelable:!0}),{hoverProps:s}=(0,a.useHover)({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:(0,o.mergeProps)(i,s,{role:"tooltip"})}}(e=(0,o.mergeProps)(e,s),t),g=(0,y.filterDOMProps)(e,{global:!0});return u.default.createElement("div",{...(0,o.mergeProps)(g,m,f),ref:e.tooltipRef,style:{...s.style,"--trigger-anchor-point":c?`${c.x}px ${c.y}px`:void 0,...m.style},"data-placement":null!=h?h:void 0,"data-entering":d||void 0,"data-exiting":e.isExiting||void 0},u.default.createElement(l.OverlayArrowContext.Provider,{value:{...r,placement:h,ref:i}},m.children))}var D=e.i(745361),F=e.i(565943);let V=(0,i.cn)("z-50 max-w-[280px] rounded-xl border border-border-primary bg-layer-primary shadow-lg shadow-black/40","px-2.5 py-1.5 text-xs text-face-primary",F.HINT_MOTION);e.s(["FountainTooltip",0,function({content:e,children:i,className:n,delay:l=400,closeDelay:r=0,isDisabled:o,placement:a="top",offset:h=6,...u}){return(0,t.jsxs)(P,{delay:l,closeDelay:r,isDisabled:o,children:[(0,t.jsx)(s.Focusable,{children:i}),(0,t.jsx)(_,{...u,placement:a,offset:h,className:(0,D.withClass)(V,n),children:e})]})}],713923)},329347,e=>{"use strict";var t=e.i(317051),i=e.i(999792),s=e.i(680236),n=e.i(713923);function l({title:e,description:s}){return(0,t.jsx)(n.FountainTooltip,{className:"p-3 text-sm",content:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"font-medium",children:e}),(0,t.jsx)("div",{className:"flex flex-col gap-3 text-face-secondary",children:s})]}),children:(0,t.jsx)("span",{role:"img","aria-label":e,className:"inline-flex cursor-help text-face-secondary",children:(0,t.jsx)(i.InfoIcon,{size:16})})})}l.Skeleton=function(){return(0,t.jsx)(s.FountainSkeleton,{className:"size-4 flex-none rounded-full"})},e.s(["InfoTooltip",0,l])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.