"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),o=require("react-dom"),n=0,r=1,i=2,l=4;function s(e,t){return o=>e(t(o))}function c(e,t){return t(e)}function a(e,t){return o=>e(t,o)}function u(e,t){return()=>e(t)}function d(e,t){return t(e),e}function h(...e){return e}function f(e){e()}function m(e){return()=>e}function p(e){return void 0!==e}function g(){}function x(e,t){return e(r,t)}function v(e,t){e(n,t)}function I(e){e(i)}function T(e){return e(l)}function w(e,t){return x(e,a(t,n))}function S(e,t){const o=e(r,(e=>{o(),t(e)}));return o}function C(){const e=[];return(t,o)=>{switch(t){case i:return void e.splice(0,e.length);case r:return e.push(o),()=>{const t=e.indexOf(o);t>-1&&e.splice(t,1)};case n:return void e.slice().forEach((e=>{e(o)}));default:throw new Error(`unrecognized action ${t}`)}}}function H(e){let t=e;const o=C();return(e,i)=>{switch(e){case r:i(t);break;case n:t=i;break;case l:return t}return o(e,i)}}function y(e){return d(C(),(t=>w(e,t)))}function b(e,t){return d(H(t),(t=>w(e,t)))}function z(e,...t){const o=function(...e){return t=>e.reduceRight(c,t)}(...t);return(t,n)=>{switch(t){case r:return x(e,o(n));case i:return void I(e)}}}function R(e,t){return e===t}function E(e=R){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function B(e){return t=>o=>{e(o)&&t(o)}}function k(e){return t=>s(t,e)}function L(e){return t=>()=>t(e)}function F(e,t){return o=>n=>o(t=e(t,n))}function O(e){return t=>o=>{e>0?e--:t(o)}}function M(e){let t,o=null;return n=>r=>{o=r,t||(t=setTimeout((()=>{t=void 0,n(o)}),e))}}function j(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout((()=>{n(t)}),e)}}function P(...e){const t=new Array(e.length);let o=0,n=null;const r=Math.pow(2,e.length)-1;return e.forEach(((e,i)=>{const l=Math.pow(2,i);x(e,(e=>{const s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)}))})),e=>i=>{const l=()=>e([i].concat(t));o===r?l():n=l}}function W(...e){return function(t,o){switch(t){case r:return function(...e){return()=>{e.map(f)}}(...e.map((e=>x(e,o))));case i:return;default:throw new Error(`unrecognized action ${t}`)}}}function A(e,t=R){return z(e,E(t))}function V(...e){const t=C(),o=new Array(e.length);let n=0;const l=Math.pow(2,e.length)-1;return e.forEach(((e,r)=>{const i=Math.pow(2,r);x(e,(e=>{o[r]=e,n|=i,n===l&&v(t,o)}))})),function(e,s){switch(e){case r:return n===l&&s(o),x(t,s);case i:return I(t);default:throw new Error(`unrecognized action ${e}`)}}}function D(e,t=[],{singleton:o}={singleton:!0}){return{id:G(),constructor:e,dependencies:t,singleton:o}}const G=()=>Symbol();function N(e,t){const o={},n={};let r=0;const i=e.length;for(;r(t[o]=function(e){let t,o;const n=()=>t&&t();return function(l,s){switch(l){case r:if(s){if(o===s)return;return n(),o=s,t=x(e,s),t}return n(),g;case i:return n(),void(o=null);default:throw new Error(`unrecognized action ${l}`)}}}(e[n.events[o]]),t)),{})}const C=t.forwardRef(((r,i)=>{const{children:a,...g}=r,[T]=t.useState((()=>d(function(e){const t=new Map,o=({id:e,constructor:n,dependencies:r,singleton:i})=>{if(i&&t.has(e))return t.get(e);const l=n(r.map((e=>o(e))));return i&&t.set(e,l),l};return o(e)}(o),(e=>w(e,g))))),[C]=t.useState(u(S,T));_((()=>{for(const e of f)e in g&&x(C[e],g[e]);return()=>{Object.values(C).map(I)}}),[g,C,T]),_((()=>{w(T,g)})),t.useImperativeHandle(i,m(function(e){return h.reduce(((t,o)=>(t[o]=t=>{v(e[n.methods[o]],t)},t)),{})}(T)));const H=l;return e.jsx(p.Provider,{value:T,children:l?e.jsx(H,{...N([...s,...c,...f],g),children:a}):a})}));return{Component:C,usePublisher:e=>t.useCallback(a(v,t.useContext(p)[e]),[e]),useEmitterValue:t.version.startsWith("18")?e=>{const o=t.useContext(p)[e],n=t.useCallback((e=>x(o,e)),[o]);return t.useSyncExternalStore(n,(()=>T(o)),(()=>T(o)))}:e=>{const o=t.useContext(p)[e],[n,r]=t.useState(u(T,o));return _((()=>x(o,(e=>{e!==n&&r(m(e))}))),[o,n]),n},useEmitter:(e,o)=>{const n=t.useContext(p)[e];_((()=>x(n,o)),[o,n])}}}const $="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;var q=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(q||{});const K={0:"debug",1:"log",2:"warn",3:"error"},Y=D((()=>{const e=H(3);return{log:H(((t,o,n=1)=>{var r;n>=(null!=(r=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?r:T(e))&&console[K[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)})),logLevel:e}}),[],{singleton:!0});function Z(e,o,n){const r=t.useRef(null);let i=e=>{};if("undefined"!=typeof ResizeObserver){const l=t.useMemo((()=>new ResizeObserver((t=>{const o=()=>{const o=t[0].target;null!==o.offsetParent&&e(o)};n?o():requestAnimationFrame(o)}))),[e]);i=e=>{e&&o?(l.observe(e),r.current=e):(r.current&&l.unobserve(r.current),r.current=null)}}return{ref:r,callbackRef:i}}function X(e,t,o){return Z(e,t,o).callbackRef}function J(e,o,n,r,i,l,s,c,a){const u=t.useCallback((t=>{const n=function(e,t,o,n){const r=e.length;if(0===r)return null;const i=[];for(let l=0;l{const r=t.target,i=r===window||r===document,l=s?i?window.pageXOffset||document.documentElement.scrollLeft:r.scrollLeft:i?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,c=s?i?document.documentElement.scrollWidth:r.scrollWidth:i?document.documentElement.scrollHeight:r.scrollHeight,d=s?i?window.innerWidth:r.offsetWidth:i?window.innerHeight:r.offsetHeight,h=()=>{e({scrollTop:Math.max(l,0),scrollHeight:c,viewportHeight:d})};t.suppressFlushSync?h():o.flushSync(h),null!==a.current&&(l===a.current||l<=0||l===c-d)&&(a.current=null,n(!0),u.current&&(clearTimeout(u.current),u.current=null))}),[e,n]);return t.useEffect((()=>{const e=l||c.current;return i(l||c.current),d({target:e,suppressFlushSync:!0}),e.addEventListener("scroll",d,{passive:!0}),()=>{i(null),e.removeEventListener("scroll",d)}}),[c,d,r,i,l]),{scrollerRef:c,scrollByCallback:function(e){s&&(e={left:e.top,behavior:e.behavior}),c.current.scrollBy(e)},scrollToCallback:function(t){const o=c.current;if(!o||(s?"offsetWidth"in o&&0===o.offsetWidth:"offsetHeight"in o&&0===o.offsetHeight))return;const r="smooth"===t.behavior;let i,l,d;o===window?(l=Math.max(ee(document.documentElement,s?"width":"height"),s?document.documentElement.scrollWidth:document.documentElement.scrollHeight),i=s?window.innerWidth:window.innerHeight,d=s?document.documentElement.scrollLeft:document.documentElement.scrollTop):(l=o[s?"scrollWidth":"scrollHeight"],i=ee(o,s?"width":"height"),d=o[s?"scrollLeft":"scrollTop"]);const h=l-i;if(t.top=Math.ceil(Math.max(Math.min(h,t.top),0)),te(i,l)||t.top===d)return e({scrollTop:d,scrollHeight:l,viewportHeight:i}),void(r&&n(!0));r?(a.current=t.top,u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{u.current=null,a.current=null,n(!0)}),1e3)):a.current=null,s&&(t={left:t.top,behavior:t.behavior}),o.scrollTo(t)}}}const ne=D((()=>{const e=C(),t=C(),o=H(0),n=C(),r=H(0),i=C(),l=C(),s=H(0),c=H(0),a=H(0),u=H(0),d=C(),h=C(),f=H(!1),m=H(!1),p=H(!1);return w(z(e,k((({scrollTop:e})=>e))),t),w(z(e,k((({scrollHeight:e})=>e))),l),w(t,r),{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:s,fixedHeaderHeight:c,fixedFooterHeight:a,footerHeight:u,scrollHeight:l,smoothScrollTargetReached:n,horizontalDirection:m,skipAnimationFrameInResizeObserver:p,scrollTo:d,scrollBy:h,statefulScrollTop:r,deviation:o,scrollingInProgress:f}}),[],{singleton:!0}),re={lvl:0};function ie(e,t,o,n=re,r=re){return{k:e,v:t,lvl:o,l:n,r:r}}function le(e){return e===re}function se(){return re}function ce(e,t){if(le(e))return re;const{k:o,l:n,r:r}=e;if(t===o){if(le(n))return r;if(le(r))return n;{const[t,o]=me(n);return Ie(ge(e,{k:t,v:o,l:pe(n)}))}}return Ie(ge(e,tt&&(s=s.concat(he(i,t,o))),n>=t&&n<=o&&s.push({k:n,v:r}),n<=o&&(s=s.concat(he(l,t,o))),s}function fe(e){return le(e)?[]:[...fe(e.l),{k:e.k,v:e.v},...fe(e.r)]}function me(e){return le(e.r)?[e.k,e.v]:me(e.r)}function pe(e){return le(e.r)?e.l:Ie(ge(e,{r:pe(e.r)}))}function ge(e,t){return ie(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function xe(e){return le(e)||e.lvl>e.r.lvl}function ve(e){return Se(Ce(e))}function Ie(e){const{l:t,r:o,lvl:n}=e;if(o.lvl>=n-1&&t.lvl>=n-1)return e;if(n>o.lvl+1){if(xe(t))return Ce(ge(e,{lvl:n-1}));if(le(t)||le(t.r))throw new Error("Unexpected empty nodes");return ge(t.r,{l:ge(t,{r:t.r.l}),r:ge(e,{l:t.r.r,lvl:n-1}),lvl:n})}if(xe(e))return Se(ge(e,{lvl:n-1}));if(le(o)||le(o.l))throw new Error("Unexpected empty nodes");{const t=o.l,r=xe(t)?o.lvl-1:o.lvl;return ge(t,{l:ge(e,{r:t.l,lvl:n-1}),r:Se(ge(o,{l:t.r,lvl:r})),lvl:t.lvl+1})}}function Te(e,t,o){if(le(e))return[];const n=ue(e,t)[0];return we(he(e,n,o),(({k:e,v:t})=>({index:e,value:t})))}function we(e,t){const o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]);const i=[];for(let l=1;l({recalcInProgress:H(!1)})),[],{singleton:!0});function ze(e){const{size:t,startIndex:o,endIndex:n}=e;return e=>e.start===o&&(e.end===n||e.end===1/0)&&e.value===t}function Re(e,t){let o=0,n=0;for(;o0&&(t=Math.max(t,ye(e,n,Ee).offset)),we(function(e,t,o,n){const r=He(e,t,n),i=He(e,o,n,r);return e.slice(r,i+1)}(e,t,o,Be),ke)}function Fe(e,t,o,n){let r=e,i=0,l=0,s=0,c=0;if(0!==t){c=He(r,t-1,Ee);s=r[c].offset;const e=ue(o,t-1);i=e[0],l=e[1],r.length&&r[c].size===ue(o,t)[1]&&(c-=1),r=r.slice(0,c+1)}else r=[];for(const{start:a,value:u}of Te(o,t,1/0)){const e=a-i,t=e*l+s+e*n;r.push({offset:t,size:u,index:a}),i=a,s=t,l=u}return{offsetTree:r,lastIndex:i,lastOffset:s,lastSize:l}}function Oe(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,q.DEBUG);const i=e.sizeTree;let l=i,s=0;if(o.length>0&&le(i)&&2===t.length){const e=t[0].size,n=t[1].size;l=o.reduce(((t,o)=>de(de(t,o,e),o+1,n)),l)}else[l,s]=function(e,t){let o=le(e)?0:1/0;for(const n of t){const{size:t,startIndex:r,endIndex:i}=n;if(o=Math.min(o,r),le(e)){e=de(e,0,t);continue}const l=Te(e,r-1,i+1);if(l.some(ze(n)))continue;let s=!1,c=!1;for(const{start:o,end:n,value:a}of l)s?(i>=o||t===a)&&(e=ce(e,o)):(c=a!==t,s=!0),n>i&&i>=o&&a!==t&&(e=de(e,i+1,a));c&&(e=de(e,r,t))}return[e,o]}(l,t);if(l===i)return e;const{offsetTree:c,lastIndex:a,lastSize:u,lastOffset:d}=Fe(e.offsetTree,s,l,r);return{sizeTree:l,offsetTree:c,lastIndex:a,lastOffset:d,lastSize:u,groupOffsetTree:o.reduce(((e,t)=>de(e,t,Me(t,c,r))),se()),groupIndices:o}}function Me(e,t,o){if(0===t.length)return 0;const{offset:n,index:r,size:i}=ye(t,e,Ee),l=e-r,s=i*l+(l-1)*o+n;return s>0?s+o:s}function je(e,t,o){if(function(e){return void 0!==e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;{let n=Pe("LAST"===e.index?o:e.index,t);return n=Math.max(0,n,Math.min(o,n)),n}}function Pe(e,t){if(!We(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function We(e){return!le(e.groupOffsetTree)}const Ae={offsetHeight:"height",offsetWidth:"width"},Ve=D((([{log:e},{recalcInProgress:t}])=>{const o=C(),n=C(),r=b(n,0),i=C(),l=C(),s=H(0),c=H([]),a=H(void 0),u=H(void 0),d=H(((e,t)=>ee(e,Ae[t]))),h=H(void 0),f=H(0),m={offsetTree:[],sizeTree:se(),groupOffsetTree:se(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},p=b(z(o,P(c,e,f),F(Oe,m),E()),m),g=b(z(c,E(),F(((e,t)=>({prev:e.current,current:t})),{prev:[],current:[]}),k((({prev:e})=>e))),[]);w(z(c,B((e=>e.length>0)),P(p,f),k((([e,t,o])=>{const n=e.reduce(((e,n,r)=>de(e,n,Me(n,t.offsetTree,o)||r)),se());return{...t,groupIndices:e,groupOffsetTree:n}}))),p),w(z(n,P(p),B((([e,{lastIndex:t}])=>e[{startIndex:e,endIndex:t,size:o}]))),o),w(a,u);const I=b(z(a,k((e=>void 0===e))),!0);w(z(u,B((e=>void 0!==e&&le(T(p).sizeTree))),k((e=>[{startIndex:0,endIndex:0,size:e}]))),o);const S=y(z(o,P(p),F((({sizes:e},[t,o])=>({changed:o!==e,sizes:o})),{changed:!1,sizes:m}),k((e=>e.changed))));x(z(s,F(((e,t)=>({diff:e.prev-t,prev:t})),{diff:0,prev:0}),k((e=>e.diff))),(e=>{const{groupIndices:o}=T(p);if(e>0)v(t,!0),v(i,e+Re(e,o));else if(e<0){const t=T(g);t.length>0&&(e-=Re(-e,t)),v(l,e)}})),x(z(s,P(e)),(([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},q.ERROR)}));const R=y(i);w(z(i,P(p),k((([e,t])=>{const o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){const o=ae(t.sizeTree,0);let i=0,l=0;for(;i{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{startIndex:t.prevIndex,endIndex:o+e-1,size:t.prevSize}]),{ranges:r,prevIndex:o+e,prevSize:n}}),{ranges:n,prevIndex:e,prevSize:0}).ranges}return fe(t.sizeTree).reduce(((t,{k:o,v:n})=>({ranges:[...t.ranges,{startIndex:t.prevIndex,endIndex:o+e-1,size:t.prevSize}],prevIndex:o+e,prevSize:n})),{ranges:[],prevIndex:0,prevSize:r}).ranges}))),o);const L=y(z(l,P(p,f),k((([e,{offsetTree:t},o])=>Me(-e,t,o)))));return w(z(l,P(p,f),k((([e,t,o])=>{if(t.groupIndices.length>0){if(le(t.sizeTree))return t;let n=se();const r=T(g);let i=0,l=0,s=0;for(;i<-e;){s=r[l];const e=r[l+1]-s-1;l++,i+=e+1}n=fe(t.sizeTree).reduce(((t,{k:o,v:n})=>de(t,Math.max(0,o+e),n)),n);if(i!==-e){n=de(n,0,ae(t.sizeTree,s));n=de(n,1,ue(t.sizeTree,1-e)[1])}return{...t,sizeTree:n,...Fe(t.offsetTree,0,n,o)}}{const n=fe(t.sizeTree).reduce(((t,{k:o,v:n})=>de(t,Math.max(0,o+e),n)),se());return{...t,sizeTree:n,...Fe(t.offsetTree,0,n,o)}}}))),p),{data:h,totalCount:n,sizeRanges:o,groupIndices:c,defaultItemSize:u,fixedItemSize:a,unshiftWith:i,shiftWith:l,shiftWithOffset:L,beforeUnshiftWith:R,firstItemIndex:s,gap:f,sizes:p,listRefresh:S,statefulTotalCount:r,trackItemSizes:I,itemSize:d}}),h(Y,be),{singleton:!0}),De="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function Ge(e){const t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&De||(t.behavior="auto"),t.offset||(t.offset=0),t}const Ne=D((([{sizes:e,totalCount:t,listRefresh:o,gap:n},{scrollingInProgress:r,viewportHeight:i,scrollTo:l,smoothScrollTargetReached:s,headerHeight:c,footerHeight:a,fixedHeaderHeight:u,fixedFooterHeight:d},{log:h}])=>{const f=C(),m=C(),p=H(0);let g=null,I=null,T=null;function y(){g&&(g(),g=null),T&&(T(),T=null),I&&(clearTimeout(I),I=null),v(r,!1)}return w(z(f,P(e,i,t,p,c,a,h),P(n,u,d),k((([[e,t,n,i,l,c,a,u],d,h,p])=>{const w=Ge(e),{align:C,behavior:H,offset:b}=w,R=i-1,E=je(w,t,R);let B=Me(E,t.offsetTree,d)+c;"end"===C?(B+=h+ue(t.sizeTree,E)[1]-n+p,E===R&&(B+=a)):"center"===C?B+=(h+ue(t.sizeTree,E)[1]-n+p)/2:B-=l,b&&(B+=b);const k=t=>{y(),t?(u("retrying to scroll to",{location:e},q.DEBUG),v(f,e)):(v(m,!0),u("list did not change, scroll successful",{},q.DEBUG))};if(y(),"smooth"===H){let e=!1;T=x(o,(t=>{e=e||t})),g=S(s,(()=>{k(e)}))}else g=S(z(o,(L=150,e=>{const t=setTimeout((()=>{e(!1)}),L);return o=>{o&&(e(!0),clearTimeout(t))}})),k);var L;return I=setTimeout((()=>{y()}),1200),v(r,!0),u("scrolling from index to",{index:E,top:B,behavior:H},q.DEBUG),{top:B,behavior:H}}))),l),{scrollToIndex:f,scrollTargetReached:m,topListHeight:p}}),h(Ve,ne,Y),{singleton:!0});const _e="up",Ue="down",$e={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},qe=D((([{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:n,footerHeight:r,scrollBy:i}])=>{const l=H(!1),s=H(!0),c=C(),a=C(),u=H(4),d=H(0),h=b(z(W(z(A(t),O(1),L(!0)),z(A(t),O(1),L(!1),j(100))),E()),!1),f=b(z(W(z(i,L(!0)),z(i,L(!1),j(200))),E()),!1);w(z(V(A(t),A(d)),k((([e,t])=>e<=t)),E()),s),w(z(s,M(50)),a);const m=y(z(V(e,A(o),A(n),A(r),A(u)),F(((e,[{scrollTop:t,scrollHeight:o},n,r,i,l])=>{const s={viewportHeight:n,scrollTop:t,scrollHeight:o};if(t+n-o>-l){let o,n;return t>e.state.scrollTop?(o="SCROLLED_DOWN",n=e.state.scrollTop-t):(o="SIZE_DECREASED",n=e.state.scrollTop-t||e.scrollTopDelta),{atBottom:!0,state:s,atBottomBecause:o,scrollTopDelta:n}}let c;return c=s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":ne&&e.atBottom===t.atBottom)))),p=b(z(e,F(((e,{scrollTop:t,scrollHeight:o,viewportHeight:n})=>{if(te(e.scrollHeight,o))return{scrollTop:t,scrollHeight:o,jump:0,changed:!1};{const r=o-(t+n)<1;return e.scrollTop!==t&&r?{scrollHeight:o,scrollTop:t,jump:e.scrollTop-t,changed:!0}:{scrollHeight:o,scrollTop:t,jump:0,changed:!0}}}),{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),B((e=>e.changed)),k((e=>e.jump))),0);w(z(m,k((e=>e.atBottom))),l),w(z(l,M(50)),c);const g=H(Ue);w(z(e,k((({scrollTop:e})=>e)),E(),F(((e,t)=>T(f)?{direction:e.direction,prevScrollTop:t}:{direction:te.direction))),g),w(z(e,M(50),L("none")),g);const x=H(0);return w(z(h,B((e=>!e)),L(0)),x),w(z(t,M(100),P(h),B((([e,t])=>!!t)),F((([e,t],[o])=>[t,o]),[0,0]),k((([e,t])=>t-e))),x),{isScrolling:h,isAtTop:s,isAtBottom:l,atBottomState:m,atTopStateChange:a,atBottomStateChange:c,scrollDirection:g,atBottomThreshold:u,atTopThreshold:d,scrollVelocity:x,lastJumpDueToItemResize:p}}),h(ne)),Ke=D((([{log:e}])=>{const t=H(!1),o=y(z(t,B((e=>e)),E()));return x(t,(t=>{t&&T(e)("props updated",{},q.DEBUG)})),{propsReady:t,didMount:o}}),h(Y),{singleton:!0});function Ye(e,t){0==e?t():requestAnimationFrame((()=>Ye(e-1,t)))}function Ze(e,t){const o=t-1;return"number"==typeof e?e:"LAST"===e.index?o:e.index}const Xe=D((([{sizes:e,listRefresh:t,defaultItemSize:o},{scrollTop:n},{scrollToIndex:r,scrollTargetReached:i},{didMount:l}])=>{const s=H(!0),c=H(0),a=H(!0);return w(z(l,P(c),B((([e,t])=>!!t)),L(!1)),s),w(z(l,P(c),B((([e,t])=>!!t)),L(!1)),a),x(z(V(t,l),P(s,e,o,a),B((([[,e],t,{sizeTree:o},n,r])=>e&&(!le(o)||p(n))&&!t&&!r)),P(c)),(([,e])=>{S(i,(()=>{v(a,!0)})),Ye(4,(()=>{S(n,(()=>{v(s,!0)})),v(r,e)}))})),{scrolledToInitialItem:s,initialTopMostItemIndex:c,initialItemFinalLocationReached:a}}),h(Ve,ne,Ne,Ke),{singleton:!0});function Je(e){return!!e&&("smooth"===e?"smooth":"auto")}const Qe=D((([{totalCount:e,listRefresh:t},{isAtBottom:o,atBottomState:n},{scrollToIndex:r},{scrolledToInitialItem:i},{propsReady:l,didMount:s},{log:c},{scrollingInProgress:a}])=>{const u=H(!1),d=C();let h=null;function f(e){v(r,{index:"LAST",align:"end",behavior:e})}function m(e){const t=S(n,(t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||h||(T(c)("scrolling to bottom due to increased size",{},q.DEBUG),f("auto"))}));setTimeout(t,100)}return x(z(V(z(A(e),O(1)),s),P(A(u),o,i,a),k((([[e,t],o,n,r,i])=>{let l=t&&r,s="auto";return l&&(s=((e,t)=>"function"==typeof e?Je(e(t)):t&&Je(e))(o,n||i),l=l&&!!s),{totalCount:e,shouldFollow:l,followOutputBehavior:s}})),B((({shouldFollow:e})=>e))),(({totalCount:e,followOutputBehavior:o})=>{h&&(h(),h=null),h=S(t,(()=>{T(c)("following output to ",{totalCount:e},q.DEBUG),f(o),h=null}))})),x(z(V(A(u),e,l),B((([e,,t])=>e&&t)),F((({value:e},[,t])=>({refreshed:e===t,value:t})),{refreshed:!1,value:0}),B((({refreshed:e})=>e)),P(u,e)),(([,e])=>{T(i)&&m(!1!==e)})),x(d,(()=>{m(!1!==T(u))})),x(V(A(u),n),(([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&f("auto")})),{followOutput:u,autoscrollToBottom:d}}),h(Ve,qe,Ne,Xe,Ke,Y,ne));function et(e){return e.reduce(((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e)),{totalCount:0,groupIndices:[]})}const tt=D((([{totalCount:e,groupIndices:t,sizes:o},{scrollTop:n,headerHeight:r}])=>{const i=C(),l=C(),s=y(z(i,k(et)));return w(z(s,k((e=>e.totalCount))),e),w(z(s,k((e=>e.groupIndices))),t),w(z(V(n,o,r),B((([e,t])=>We(t))),k((([e,t,o])=>ue(t.groupOffsetTree,Math.max(e-o,0),"v")[0])),E(),k((e=>[e]))),l),{groupCounts:i,topItemsIndexes:l}}),h(Ve,ne));function ot(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function nt(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}const rt="top",it="bottom",lt="none";function st(e,t,o){return"number"==typeof e?o===_e&&t===rt||o===Ue&&t===it?e:0:o===_e?t===rt?e.main:e.reverse:t===it?e.main:e.reverse}function ct(e,t){return"number"==typeof e?e:e[t]||0}const at=D((([{scrollTop:e,viewportHeight:t,deviation:o,headerHeight:n,fixedHeaderHeight:r}])=>{const i=C(),l=H(0),s=H(0),c=H(0);return{listBoundary:i,overscan:c,topListHeight:l,increaseViewportBy:s,visibleRange:b(z(V(A(e),A(t),A(n),A(i,ot),A(c),A(l),A(r),A(o),A(s)),k((([e,t,o,[n,r],i,l,s,c,a])=>{const u=e-c,d=l+s,h=Math.max(o-u,0);let f=lt;const m=ct(a,rt),p=ct(a,it);return n-=c,r+=o+s,(n+=o+s)>e+d-m&&(f=_e),(r-=c)null!=e)),E(ot)),[0,0])}}),h(ne),{singleton:!0});const ut={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function dt(e,t,o){if(0===e.length)return[];if(!We(t))return e.map((e=>({...e,index:e.index+o,originalIndex:e.index})));const n=e[0].index,r=e[e.length-1].index,i=[],l=Te(t.groupOffsetTree,n,r);let s,c=0;for(const a of e){let e;(!s||s.end0){a=e[0].offset;const t=e[e.length-1];u=t.offset+t.size}const d=o-c,h=a,f=s+d*l+(d-1)*n-u;return{items:dt(e,r,i),topItems:dt(t,r,i),topListHeight:t.reduce(((e,t)=>t.size+e),0),offsetTop:a,offsetBottom:f,top:h,bottom:u,totalCount:o,firstItemIndex:i}}function ft(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(const a of o.groupIndices){if(a-l>=e)break;l++}const s=e+l,c=Ze(t,s);return ht(Array.from({length:s}).map(((e,t)=>({index:t+c,size:0,offset:0,data:i[t+c]}))),[],s,r,o,n)}const mt=D((([{sizes:e,totalCount:t,data:o,firstItemIndex:n,gap:r},i,{visibleRange:l,listBoundary:s,topListHeight:c},{scrolledToInitialItem:a,initialTopMostItemIndex:u},{topListHeight:h},f,{didMount:m},{recalcInProgress:g}])=>{const x=H([]),v=H(0),I=C();w(i.topItemsIndexes,x);const S=b(z(V(m,g,A(l,ot),A(t),A(e),A(u),a,A(x),A(n),A(r),o),B((([e,t,,o,,,,,,,n])=>{const r=n&&n.length!==o;return e&&!t&&!r})),k((([,,[e,t],o,n,r,i,l,s,c,a])=>{const u=n,{sizeTree:h,offsetTree:f}=u,m=T(v);if(0===o)return{...ut,totalCount:o};if(0===e&&0===t)return 0===m?{...ut,totalCount:o}:ft(m,r,n,s,c,a||[]);if(le(h)){if(m>0)return null;const e=ht(function(e,t,o){if(We(t)){const n=Pe(e,t);return[{index:ue(t.groupOffsetTree,n)[0],size:0,offset:0},{index:n,size:0,offset:0,data:o&&o[0]}]}return[{index:e,size:0,offset:0,data:o&&o[0]}]}(Ze(r,o),u,a),[],o,c,u,s);return e}const p=[];if(l.length>0){const e=l[0],t=l[l.length-1];let o=0;for(const n of Te(h,e,t)){const r=n.value,i=Math.max(n.start,e),l=Math.min(n.end,t);for(let e=i;e<=l;e++)p.push({index:e,size:r,offset:o,data:a&&a[e]}),o+=r}}if(!i)return ht([],p,o,c,u,s);const g=l.length>0?l[l.length-1]+1:0,x=Le(f,e,t,g);if(0===x.length)return null;const I=o-1;return ht(d([],(o=>{for(const n of x){const r=n.value;let i=r.offset,l=n.start;const s=r.size;if(r.offset=t);e++)o.push({index:e,size:s,offset:i,data:a&&a[e]}),i+=s+c}})),p,o,c,u,s)})),B((e=>null!==e)),E()),ut);w(z(o,B(p),k((e=>null==e?void 0:e.length))),t),w(z(S,k((e=>e.topListHeight))),h),w(h,c),w(z(S,k((e=>[e.top,e.bottom]))),s),w(z(S,k((e=>e.items))),I);return{listState:S,topItemsIndexes:x,endReached:y(z(S,B((({items:e})=>e.length>0)),P(t,o),B((([{items:e},t])=>e[e.length-1].originalIndex===t-1)),k((([,e,t])=>[e-1,t])),E(ot),k((([e])=>e)))),startReached:y(z(S,M(200),B((({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length)),k((({items:e})=>e[0].index)),E())),rangeChanged:y(z(S,B((({items:e})=>e.length>0)),k((({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&tt;)o--;return{startIndex:e[t].index,endIndex:e[o].index}})),E(nt))),itemsRendered:I,initialItemCount:v,...f}}),h(Ve,tt,at,Xe,Ne,qe,Ke,be),{singleton:!0}),pt=D((([{sizes:e,firstItemIndex:t,data:o,gap:n},{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(w(z(s,P(i),B((([,e])=>0!==e)),P(r,e,t,n,o),k((([[,e],t,o,n,r,i=[]])=>ft(e,t,o,n,r,i)))),l),{})),h(Ve,Xe,mt,Ke),{singleton:!0}),gt=D((([{scrollVelocity:e}])=>{const t=H(!1),o=C(),n=H(!1);return w(z(e,P(n,t,o),B((([e,t])=>!!t)),k((([e,t,o,n])=>{const{exit:r,enter:i}=t;if(o){if(r(e,n))return!1}else if(i(e,n))return!0;return o})),E()),t),x(z(V(t,e,o),P(n)),(([[e,t,o],n])=>e&&n&&n.change&&n.change(t,o))),{isSeeking:t,scrollSeekConfiguration:n,scrollVelocity:e,scrollSeekRangeChanged:o}}),h(qe),{singleton:!0}),xt=D((([{topItemsIndexes:e}])=>{const t=H(0);return w(z(t,B((e=>e>=0)),k((e=>Array.from({length:e}).map(((e,t)=>t))))),e),{topItemCount:t}}),h(mt)),vt=D((([{footerHeight:e,headerHeight:t,fixedHeaderHeight:o,fixedFooterHeight:n},{listState:r}])=>{const i=C(),l=b(z(V(e,n,t,o,r),k((([e,t,o,n,r])=>e+t+o+n+r.offsetBottom+r.bottom))),0);return w(A(l),i),{totalListHeight:l,totalListHeightChanged:i}}),h(ne,mt),{singleton:!0});function It(e){let t,o=!1;return()=>(o||(o=!0,t=e()),t)}const Tt=It((()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent))),wt=D((([{scrollBy:e,scrollTop:t,deviation:o,scrollingInProgress:n},{isScrolling:r,isAtBottom:i,scrollDirection:l,lastJumpDueToItemResize:s},{listState:c},{beforeUnshiftWith:a,shiftWithOffset:u,sizes:d,gap:h},{log:f},{recalcInProgress:m}])=>{const p=y(z(c,P(s),F((([,e,t,o],[{items:n,totalCount:r,bottom:i,offsetBottom:l},s])=>{const c=i+l;let a=0;if(t===r&&e.length>0&&n.length>0){0===n[0].originalIndex&&0===e[0].originalIndex||(a=c-o,0!==a&&(a+=s))}return[a,n,r,c]}),[0,[],0,0]),B((([e])=>0!==e)),P(t,l,n,i,f,m),B((([,e,t,o,,,n])=>!n&&!o&&0!==e&&t===_e)),k((([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},q.DEBUG),e)))));function g(t){t>0?(v(e,{top:-t,behavior:"auto"}),v(o,0)):(v(o,0),v(e,{top:-t,behavior:"auto"}))}return x(z(p,P(o,r)),(([e,t,n])=>{n&&Tt()?v(o,t-e):g(-e)})),x(z(V(b(r,!1),o,m),B((([e,t,o])=>!e&&!o&&0!==t)),k((([e,t])=>t)),M(1)),g),w(z(u,k((e=>({top:-e})))),e),x(z(a,P(d,h),k((([e,{lastSize:t,groupIndices:o,sizeTree:n},r])=>{function i(e){return e*(t+r)}if(0===o.length)return i(e);{let t=0;const r=ae(n,0);let l=0,s=0;for(;le&&(t-=r,n=e-l+1),l+=n,t+=i(n),s++}return t}}))),(t=>{v(o,t),requestAnimationFrame((()=>{v(e,{top:t}),requestAnimationFrame((()=>{v(o,0),v(m,!1)}))}))})),{deviation:o}}),h(ne,qe,mt,Ve,Y,be)),St=D((([{didMount:e},{scrollTo:t},{listState:o}])=>{const n=H(0);return x(z(e,P(n),B((([,e])=>0!==e)),k((([,e])=>({top:e})))),(e=>{S(z(o,O(1),B((e=>e.items.length>1))),(()=>{requestAnimationFrame((()=>{v(t,e)}))}))})),{initialScrollTop:n}}),h(Ke,ne,mt),{singleton:!0}),Ct=D((([{viewportHeight:e},{totalListHeight:t}])=>{const o=H(!1);return{alignToBottom:o,paddingTopAddition:b(z(V(o,e,t),B((([e])=>e)),k((([,e,t])=>Math.max(0,e-t))),M(0),E()),0)}}),h(ne,vt),{singleton:!0}),Ht=D((([{scrollTo:e,scrollContainerState:t}])=>{const o=C(),n=C(),r=C(),i=H(!1),l=H(void 0);return w(z(V(o,n),k((([{viewportHeight:e,scrollTop:t,scrollHeight:o},{offsetTop:n}])=>({scrollTop:Math.max(0,t-n),scrollHeight:o,viewportHeight:e})))),t),w(z(e,P(n),k((([e,{offsetTop:t}])=>({...e,top:e.top+t})))),r),{useWindowScroll:i,customScrollParent:l,windowScrollContainerState:o,windowViewportRect:n,windowScrollTo:r}}),h(ne)),yt=({itemTop:e,itemBottom:t,viewportTop:o,viewportBottom:n,locationParams:{behavior:r,align:i,...l}})=>en?{...l,behavior:r,align:null!=i?i:"end"}:null,bt=D((([{sizes:e,totalCount:t,gap:o},{scrollTop:n,viewportHeight:r,headerHeight:i,fixedHeaderHeight:l,fixedFooterHeight:s,scrollingInProgress:c},{scrollToIndex:a}])=>{const u=C();return w(z(u,P(e,r,t,i,l,s,n),P(o),k((([[e,t,o,n,r,i,l,s],a])=>{const{done:u,behavior:d,align:h,calculateViewLocation:f=yt,...m}=e,p=je(e,t,n-1),g=Me(p,t.offsetTree,a)+r+i,x=f({itemTop:g,itemBottom:g+ue(t.sizeTree,p)[1],viewportTop:s+i,viewportBottom:s+o-l,locationParams:{behavior:d,align:h,...m}});return x?u&&S(z(c,B((e=>!1===e)),O(T(c)?1:2)),u):u&&u(),x})),B((e=>null!==e))),a),{scrollIntoView:u}}),h(Ve,ne,Ne,mt,Y),{singleton:!0}),zt=D((([{sizes:e,sizeRanges:t},{scrollTop:o,headerHeight:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:l,windowScrollContainerState:s,windowViewportRect:c}])=>{const a=C(),u=H(void 0),d=H(null),h=H(null);return w(s,d),w(c,h),x(z(a,P(e,o,l,d,h,n)),(([e,t,o,n,r,i,l])=>{const s=fe(t.sizeTree).map((({k:e,v:t},o,n)=>{const r=n[o+1];return{startIndex:e,endIndex:r?r.k-1:1/0,size:t}}));n&&null!==r&&null!==i&&(o=r.scrollTop-i.offsetTop),e({ranges:s,scrollTop:o-=l})})),w(z(u,B(p),k(Rt)),r),w(z(i,P(u),B((([,e])=>void 0!==e)),E(),k((([,e])=>e.ranges))),t),{getState:a,restoreStateFrom:u}}),h(Ve,ne,Xe,Ke,Ht));function Rt(e){return{offset:e.scrollTop,index:0,align:"start"}}const Et=D((([e,t,o,n,r,i,l,s,c,a])=>({...e,...t,...o,...n,...r,...i,...l,...s,...c,...a})),h(at,pt,Ke,gt,vt,St,Ct,Ht,bt,Y)),Bt=D((([{totalCount:e,sizeRanges:t,fixedItemSize:o,defaultItemSize:n,trackItemSizes:r,itemSize:i,data:l,firstItemIndex:s,groupIndices:c,statefulTotalCount:a,gap:u,sizes:d},{initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:m},p,g,x,{listState:v,topItemsIndexes:I,...T},{scrollToIndex:S},C,{topItemCount:H},{groupCounts:y},b])=>(w(T.rangeChanged,b.scrollSeekRangeChanged),w(z(b.windowViewportRect,k((e=>e.visibleHeight))),p.viewportHeight),{totalCount:e,data:l,firstItemIndex:s,sizeRanges:t,initialTopMostItemIndex:h,scrolledToInitialItem:f,initialItemFinalLocationReached:m,topItemsIndexes:I,topItemCount:H,groupCounts:y,fixedItemHeight:o,defaultItemHeight:n,gap:u,...x,statefulTotalCount:a,listState:v,scrollToIndex:S,trackItemSizes:r,itemSize:i,groupIndices:c,...T,...b,...p,sizes:d,...g})),h(Ve,Xe,ne,zt,Qe,mt,Ne,wt,xt,tt,Et)),kt="-webkit-sticky",Lt="sticky",Ft=It((()=>{if("undefined"==typeof document)return Lt;const e=document.createElement("div");return e.style.position=kt,e.style.position===kt?kt:Lt}));function Ot(e,o,n){const r=t.useRef(null),i=t.useCallback((t=>{if(null===t||!t.offsetParent)return;const n=t.getBoundingClientRect(),i=n.width;let l,s;if(o){const e=o.getBoundingClientRect(),t=n.top-e.top;l=e.height-Math.max(0,t),s=t+o.scrollTop}else l=window.innerHeight-Math.max(0,n.top),s=n.top+window.pageYOffset;r.current={offsetTop:s,visibleHeight:l,visibleWidth:i},e(r.current)}),[e,o]),{callbackRef:l,ref:s}=Z(i,!0,n),c=t.useCallback((()=>{i(s.current)}),[i,s]);return t.useEffect((()=>{if(o){o.addEventListener("scroll",c);const e=new ResizeObserver((()=>{requestAnimationFrame(c)}));return e.observe(o),()=>{o.removeEventListener("scroll",c),e.unobserve(o)}}return window.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{window.removeEventListener("scroll",c),window.removeEventListener("resize",c)}}),[c,o]),l}const Mt=t.createContext(void 0),jt=t.createContext(void 0);function Pt(e){return e}const Wt=D((([e,t])=>({...e,...t})),h(Bt,D((()=>{const e=H((e=>`Item ${e}`)),t=H(null),o=H((e=>`Group ${e}`)),n=H({}),r=H(Pt),i=H("div"),l=H(g),s=(e,t=null)=>b(z(n,k((t=>t[e])),E()),t);return{context:t,itemContent:e,groupContent:o,components:n,computeItemKey:r,HeaderFooterTag:i,scrollerRef:l,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}})))),At=({height:t})=>e.jsx("div",{style:{height:t}}),Vt={position:Ft(),zIndex:1,overflowAnchor:"none"},Dt={overflowAnchor:"none"},Gt={...Dt,display:"inline-block",height:"100%"},Nt=t.memo((function({showTopList:o=!1}){const n=lo("listState"),r=io("sizeRanges"),i=lo("useWindowScroll"),l=lo("customScrollParent"),s=io("windowScrollContainerState"),c=io("scrollContainerState"),a=l||i?s:c,u=lo("itemContent"),d=lo("context"),h=lo("groupContent"),f=lo("trackItemSizes"),m=lo("itemSize"),p=lo("log"),x=io("gap"),v=lo("horizontalDirection"),{callbackRef:I}=J(r,m,f,o?g:a,p,x,l,v,lo("skipAnimationFrameInResizeObserver")),[T,w]=t.useState(0);so("deviation",(e=>{T!==e&&w(e)}));const S=lo("EmptyPlaceholder"),C=lo("ScrollSeekPlaceholder")||At,H=lo("ListComponent"),y=lo("ItemComponent"),b=lo("GroupComponent"),z=lo("computeItemKey"),R=lo("isSeeking"),E=lo("groupIndices").length>0,B=lo("alignToBottom"),k=lo("initialItemFinalLocationReached"),L=o?{}:{boxSizing:"border-box",...v?{whiteSpace:"nowrap",display:"inline-block",height:"100%",paddingLeft:n.offsetTop,paddingRight:n.offsetBottom,marginLeft:0!==T?T:B?"auto":0}:{marginTop:0!==T?T:B?"auto":0,paddingTop:n.offsetTop,paddingBottom:n.offsetBottom},...k?{}:{visibility:"hidden"}};return!o&&0===n.totalCount&&S?e.jsx(S,{...Kt(S,d)}):e.jsx(H,{...Kt(H,d),ref:I,style:L,"data-testid":o?"virtuoso-top-item-list":"virtuoso-item-list",children:(o?n.topItems:n.items).map((e=>{const o=e.originalIndex,r=z(o+n.firstItemIndex,e.data,d);return R?t.createElement(C,{...Kt(C,d),key:r,index:e.index,height:e.size,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?t.createElement(b,{...Kt(b,d),key:r,"data-index":o,"data-known-size":e.size,"data-item-index":e.index,style:Vt},h(e.index,d)):t.createElement(y,{...Kt(y,d),...Yt(y,e.data),key:r,"data-index":o,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:v?Gt:Dt},E?u(e.index,e.groupIndex,e.data,d):u(e.index,e.data,d))}))})})),_t={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Ut={outline:"none",overflowX:"auto",position:"relative"},$t=e=>({width:"100%",height:"100%",position:"absolute",top:0,...e?{display:"flex",flexDirection:"column"}:{}}),qt={width:"100%",position:Ft(),top:0,zIndex:1};function Kt(e,t){if("string"!=typeof e)return{context:t}}function Yt(e,t){return{item:"string"==typeof e?void 0:t}}const Zt=t.memo((function(){const o=lo("HeaderComponent"),n=io("headerHeight"),r=lo("HeaderFooterTag"),i=X(t.useMemo((()=>e=>n(ee(e,"height"))),[n]),!0,lo("skipAnimationFrameInResizeObserver")),l=lo("context");return o?e.jsx(r,{ref:i,children:e.jsx(o,{...Kt(o,l)})}):null})),Xt=t.memo((function(){const o=lo("FooterComponent"),n=io("footerHeight"),r=lo("HeaderFooterTag"),i=X(t.useMemo((()=>e=>n(ee(e,"height"))),[n]),!0,lo("skipAnimationFrameInResizeObserver")),l=lo("context");return o?e.jsx(r,{ref:i,children:e.jsx(o,{...Kt(o,l)})}):null}));function Jt({usePublisher:o,useEmitter:n,useEmitterValue:r}){return t.memo((function({style:t,children:i,...l}){const s=o("scrollContainerState"),c=r("ScrollerComponent"),a=o("smoothScrollTargetReached"),u=r("scrollerRef"),d=r("context"),h=r("horizontalDirection")||!1,{scrollerRef:f,scrollByCallback:m,scrollToCallback:p}=oe(s,a,c,u,void 0,h);n("scrollTo",p),n("scrollBy",m);const g=h?Ut:_t;return e.jsx(c,{ref:f,style:{...g,...t},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...l,...Kt(c,d),children:i})}))}function Qt({usePublisher:o,useEmitter:n,useEmitterValue:r}){return t.memo((function({style:t,children:i,...l}){const s=o("windowScrollContainerState"),c=r("ScrollerComponent"),a=o("smoothScrollTargetReached"),u=r("totalListHeight"),d=r("deviation"),h=r("customScrollParent"),f=r("context"),{scrollerRef:m,scrollByCallback:p,scrollToCallback:x}=oe(s,a,c,g,h);return $((()=>(m.current=h||window,()=>{m.current=null})),[m,h]),n("windowScrollTo",x),n("scrollBy",p),e.jsx(c,{style:{position:"relative",...t,...0!==u?{height:u+d}:{}},"data-virtuoso-scroller":!0,...l,...Kt(c,f),children:i})}))}const eo=({children:o})=>{const n=t.useContext(Mt),r=io("viewportHeight"),i=io("fixedItemHeight"),l=lo("alignToBottom"),c=lo("horizontalDirection"),a=X(t.useMemo((()=>s(r,(e=>ee(e,c?"width":"height")))),[r,c]),!0,lo("skipAnimationFrameInResizeObserver"));return t.useEffect((()=>{n&&(r(n.viewportHeight),i(n.itemHeight))}),[n,r,i]),e.jsx("div",{style:$t(l),ref:a,"data-viewport-type":"element",children:o})},to=({children:o})=>{const n=t.useContext(Mt),r=io("windowViewportRect"),i=io("fixedItemHeight"),l=lo("customScrollParent"),s=Ot(r,l,lo("skipAnimationFrameInResizeObserver")),c=lo("alignToBottom");return t.useEffect((()=>{n&&(i(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,r,i]),e.jsx("div",{ref:s,style:$t(c),"data-viewport-type":"window",children:o})},oo=({children:t})=>{const o=lo("TopItemListComponent")||"div",n=lo("headerHeight"),r={...qt,marginTop:`${n}px`},i=lo("context");return e.jsx(o,{style:r,...Kt(o,i),children:t})},no=t.memo((function(t){const o=lo("useWindowScroll"),n=lo("topItemsIndexes").length>0,r=lo("customScrollParent"),i=r||o?ao:co,l=r||o?to:eo;return e.jsxs(i,{...t,children:[n&&e.jsx(oo,{children:e.jsx(Nt,{showTopList:!0})}),e.jsxs(l,{children:[e.jsx(Zt,{}),e.jsx(Nt,{}),e.jsx(Xt,{})]})]})})),{Component:ro,usePublisher:io,useEmitterValue:lo,useEmitter:so}=U(Wt,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},no),co=Jt({usePublisher:io,useEmitterValue:lo,useEmitter:so}),ao=Qt({usePublisher:io,useEmitterValue:lo,useEmitter:so}),uo=ro,ho=ro,fo={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},mo={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:po,ceil:go,floor:xo,min:vo,max:Io}=Math;function To(e,t,o){return Array.from({length:t-e+1}).map(((t,n)=>{const r=null===o?null:o[n+e];return{index:n+e,data:r}}))}function wo(e,t){return e&&e.column===t.column&&e.row===t.row}function So(e,t){return e&&e.width===t.width&&e.height===t.height}const Co=D((([{overscan:e,visibleRange:t,listBoundary:o,increaseViewportBy:n},{scrollTop:r,viewportHeight:i,scrollBy:l,scrollTo:s,smoothScrollTargetReached:c,scrollContainerState:a,footerHeight:u,headerHeight:d},h,f,{propsReady:m,didMount:p},{windowViewportRect:g,useWindowScroll:I,customScrollParent:T,windowScrollContainerState:R,windowScrollTo:F},j])=>{const W=H(0),D=H(0),G=H(fo),N=H({height:0,width:0}),_=H({height:0,width:0}),U=C(),$=C(),q=H(0),K=H(null),Y=H({row:0,column:0}),Z=C(),X=C(),J=H(!1),Q=H(0),ee=H(!0),te=H(!1),oe=H(!1);x(z(p,P(Q),B((([e,t])=>!!t))),(()=>{v(ee,!1)})),x(z(V(p,ee,_,N,Q,te),B((([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))),(([,,,,e])=>{v(te,!0),Ye(1,(()=>{v(U,e)})),S(z(r),(()=>{v(o,[0,0]),v(ee,!0)}))})),w(z(X,B((e=>null!=e&&e.scrollTop>0)),L(0)),D),x(z(p,P(X),B((([,e])=>null!=e))),(([,e])=>{e&&(v(N,e.viewport),v(_,null==e?void 0:e.item),v(Y,e.gap),e.scrollTop>0&&(v(J,!0),S(z(r,O(1)),(e=>{v(J,!1)})),v(s,{top:e.scrollTop})))})),w(z(N,k((({height:e})=>e))),i),w(z(V(A(N,So),A(_,So),A(Y,((e,t)=>e&&e.column===t.column&&e.row===t.row)),A(r)),k((([e,t,o,n])=>({viewport:e,item:t,gap:o,scrollTop:n})))),Z),w(z(V(A(W),t,A(Y,wo),A(_,So),A(N,So),A(K),A(D),A(J),A(ee),A(Q)),B((([,,,,,,,e])=>!e)),k((([e,[t,o],n,r,i,l,s,,c,a])=>{const{row:u,column:d}=n,{height:h,width:f}=r,{width:m}=i;if(0===s&&(0===e||0===m))return fo;if(0===f){const t=Ze(a,e);return function(e){return{...mo,items:e}}(To(t,t+Math.max(s-1,0),l))}const p=bo(m,f,d);let g,x;c?0===t&&0===o&&s>0?(g=0,x=s-1):(g=p*xo((t+u)/(h+u)),x=p*go((o+u)/(h+u))-1,x=vo(e-1,Io(x,p-1)),g=vo(x,Io(0,g))):(g=0,x=-1);const v=To(g,x,l),{top:I,bottom:T}=Ho(i,n,r,v),w=go(e/p);return{items:v,offsetTop:I,offsetBottom:w*h+(w-1)*u-T,top:I,bottom:T,itemHeight:h,itemWidth:f}}))),G),w(z(K,B((e=>null!==e)),k((e=>e.length))),W),w(z(V(N,_,G,Y),B((([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height)),k((([e,t,{items:o},n])=>{const{top:r,bottom:i}=Ho(e,n,t,o);return[r,i]})),E(ot)),o);const ne=H(!1);w(z(r,P(ne),k((([e,t])=>t||0!==e))),ne);const re=y(z(A(G),B((({items:e})=>e.length>0)),P(W,ne),B((([{items:e},t,o])=>o&&e[e.length-1].index===t-1)),k((([,e])=>e-1)),E())),ie=y(z(A(G),B((({items:e})=>e.length>0&&0===e[0].index)),L(0),E())),le=y(z(A(G),P(J),B((([{items:e},t])=>e.length>0&&!t)),k((([{items:e}])=>({startIndex:e[0].index,endIndex:e[e.length-1].index}))),E(nt),M(0)));w(le,f.scrollSeekRangeChanged),w(z(U,P(N,_,W,Y),k((([e,t,o,n,r])=>{const i=Ge(e),{align:l,behavior:s,offset:c}=i;let a=i.index;"LAST"===a&&(a=n-1),a=Io(0,a,vo(n-1,a));let u=yo(t,r,o,a);return"end"===l?u=po(u-t.height+o.height):"center"===l&&(u=po(u-t.height/2+o.height/2)),c&&(u+=c),{top:u,behavior:s}}))),s);const se=b(z(G,k((e=>e.offsetBottom+e.bottom))),0);return w(z(g,k((e=>({width:e.visibleWidth,height:e.visibleHeight})))),N),{data:K,totalCount:W,viewportDimensions:N,itemDimensions:_,scrollTop:r,scrollHeight:$,overscan:e,increaseViewportBy:n,scrollBy:l,scrollTo:s,scrollToIndex:U,smoothScrollTargetReached:c,windowViewportRect:g,windowScrollTo:F,useWindowScroll:I,customScrollParent:T,windowScrollContainerState:R,deviation:q,scrollContainerState:a,footerHeight:u,headerHeight:d,initialItemCount:D,gap:Y,restoreStateFrom:X,...f,initialTopMostItemIndex:Q,horizontalDirection:oe,gridState:G,totalListHeight:se,...h,startReached:ie,endReached:re,rangeChanged:le,stateChanged:Z,propsReady:m,stateRestoreInProgress:J,...j}}),h(at,ne,qe,gt,Ke,Ht,Y));function Ho(e,t,o,n){const{height:r}=o;if(void 0===r||0===n.length)return{top:0,bottom:0};return{top:yo(e,t,o,n[0].index),bottom:yo(e,t,o,n[n.length-1].index)+r}}function yo(e,t,o,n){const r=bo(e.width,o.width,t.column),i=xo(n/r),l=i*o.height+Io(0,i-1)*t.row;return l>0?l+t.row:l}function bo(e,t,o){return Io(1,xo((e+o)/(xo(t)+o)))}const zo=D((([e,t])=>({...e,...t})),h(Co,D((()=>{const e=H((e=>`Item ${e}`)),t=H({}),o=H(null),n=H("virtuoso-grid-item"),r=H("virtuoso-grid-list"),i=H(Pt),l=H("div"),s=H(g),c=(e,o=null)=>b(z(t,k((t=>t[e])),E()),o),a=H(!1),u=H(!1);return w(A(u),a),{readyStateChanged:a,reportReadyState:u,context:o,itemContent:e,components:t,computeItemKey:i,itemClassName:n,listClassName:r,headerFooterTag:l,scrollerRef:s,FooterComponent:c("Footer"),HeaderComponent:c("Header"),ListComponent:c("List","div"),ItemComponent:c("Item","div"),ScrollerComponent:c("Scroller","div"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}})))),Ro=t.memo((function(){const o=jo("gridState"),n=jo("listClassName"),r=jo("itemClassName"),i=jo("itemContent"),l=jo("computeItemKey"),s=jo("isSeeking"),c=Mo("scrollHeight"),a=jo("ItemComponent"),u=jo("ListComponent"),d=jo("ScrollSeekPlaceholder"),h=jo("context"),f=Mo("itemDimensions"),m=Mo("gap"),p=jo("log"),g=jo("stateRestoreInProgress"),x=Mo("reportReadyState"),v=X(t.useMemo((()=>e=>{const t=e.parentElement.parentElement.scrollHeight;c(t);const o=e.firstChild;if(o){const{width:e,height:t}=o.getBoundingClientRect();f({width:e,height:t})}m({row:Vo("row-gap",getComputedStyle(e).rowGap,p),column:Vo("column-gap",getComputedStyle(e).columnGap,p)})}),[c,f,m,p]),!0,!1);return $((()=>{o.itemHeight>0&&o.itemWidth>0&&x(!0)}),[o]),g?null:e.jsx(u,{ref:v,className:n,...Kt(u,h),style:{paddingTop:o.offsetTop,paddingBottom:o.offsetBottom},"data-testid":"virtuoso-item-list",children:o.items.map((n=>{const c=l(n.index,n.data,h);return s?e.jsx(d,{...Kt(d,h),index:n.index,height:o.itemHeight,width:o.itemWidth},c):t.createElement(a,{...Kt(a,h),className:r,"data-index":n.index,key:c},i(n.index,n.data,h))}))})})),Eo=t.memo((function(){const o=jo("HeaderComponent"),n=Mo("headerHeight"),r=jo("headerFooterTag"),i=X(t.useMemo((()=>e=>n(ee(e,"height"))),[n]),!0,!1),l=jo("context");return o?e.jsx(r,{ref:i,children:e.jsx(o,{...Kt(o,l)})}):null})),Bo=t.memo((function(){const o=jo("FooterComponent"),n=Mo("footerHeight"),r=jo("headerFooterTag"),i=X(t.useMemo((()=>e=>n(ee(e,"height"))),[n]),!0,!1),l=jo("context");return o?e.jsx(r,{ref:i,children:e.jsx(o,{...Kt(o,l)})}):null})),ko=({children:o})=>{const n=t.useContext(jt),r=Mo("itemDimensions"),i=Mo("viewportDimensions"),l=X(t.useMemo((()=>e=>{i(e.getBoundingClientRect())}),[i]),!0,!1);return t.useEffect((()=>{n&&(i({height:n.viewportHeight,width:n.viewportWidth}),r({height:n.itemHeight,width:n.itemWidth}))}),[n,i,r]),e.jsx("div",{style:$t(!1),ref:l,children:o})},Lo=({children:o})=>{const n=t.useContext(jt),r=Mo("windowViewportRect"),i=Mo("itemDimensions"),l=jo("customScrollParent"),s=Ot(r,l,!1);return t.useEffect((()=>{n&&(i({height:n.itemHeight,width:n.itemWidth}),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:n.viewportWidth}))}),[n,r,i]),e.jsx("div",{ref:s,style:$t(!1),children:o})},Fo=t.memo((function({...t}){const o=jo("useWindowScroll"),n=jo("customScrollParent"),r=n||o?Ao:Wo,i=n||o?Lo:ko;return e.jsx(r,{...t,children:e.jsxs(i,{children:[e.jsx(Eo,{}),e.jsx(Ro,{}),e.jsx(Bo,{})]})})})),{Component:Oo,usePublisher:Mo,useEmitterValue:jo,useEmitter:Po}=U(zo,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},Fo),Wo=Jt({usePublisher:Mo,useEmitterValue:jo,useEmitter:Po}),Ao=Qt({usePublisher:Mo,useEmitterValue:jo,useEmitter:Po});function Vo(e,t,o){return"normal"===t||(null==t?void 0:t.endsWith("px"))||o(`${e} was not resolved to pixel value correctly`,t,q.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}const Do=Oo,Go=D((([e,t])=>({...e,...t})),h(Bt,D((()=>{const t=H((t=>e.jsxs("td",{children:["Item $",t]}))),o=H(null),n=H(null),r=H(null),i=H({}),l=H(Pt),s=H(g),c=(e,t=null)=>b(z(i,k((t=>t[e])),E()),t);return{context:o,itemContent:t,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:l,scrollerRef:s,TableComponent:c("Table","table"),TableHeadComponent:c("TableHead","thead"),TableFooterComponent:c("TableFoot","tfoot"),TableBodyComponent:c("TableBody","tbody"),TableRowComponent:c("TableRow","tr"),ScrollerComponent:c("Scroller","div"),EmptyPlaceholder:c("EmptyPlaceholder"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder"),FillerRow:c("FillerRow")}})))),No=({height:t})=>e.jsx("tr",{children:e.jsx("td",{style:{height:t}})}),_o=({height:t})=>e.jsx("tr",{children:e.jsx("td",{style:{height:t,padding:0,border:0}})}),Uo={overflowAnchor:"none"},$o=t.memo((function({showTopList:o=!1}){const n=Qo("listState"),r=Qo("computeItemKey"),i=Qo("firstItemIndex"),l=Qo("isSeeking"),s=Qo("ScrollSeekPlaceholder")||No,c=Qo("context"),a=Qo("TableRowComponent"),u=Qo("fixedHeaderHeight"),d=Qo("itemContent"),h=(o?n.topItems:[]).reduce(((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e)),[]),f=(o?n.topItems:n.items).map((e=>{const n=e.originalIndex,f=r(n+i,e.data,c),m=o?0===n?0:h[n-1]:0;return l?t.createElement(s,{...Kt(s,c),key:f,index:e.index,height:e.size,type:e.type||"item"}):t.createElement(a,{...Kt(a,c),...Yt(a,e.data),key:f,"data-index":n,"data-known-size":e.size,"data-item-index":e.index,style:o?{overflowAnchor:"none",position:"sticky",zIndex:2,top:u+m}:Uo},d(e.index,e.data,c))}));return e.jsx(e.Fragment,{children:f})})),qo=t.memo((function(){const o=Qo("listState"),n=Qo("topItemsIndexes").length>0,r=Jo("sizeRanges"),i=Qo("useWindowScroll"),l=Qo("customScrollParent"),s=Jo("windowScrollContainerState"),c=Jo("scrollContainerState"),a=l||i?s:c,u=Qo("trackItemSizes"),d=Qo("itemSize"),h=Qo("log"),{callbackRef:f,ref:m}=J(r,d,u,a,h,void 0,l,!1,Qo("skipAnimationFrameInResizeObserver")),[p,g]=t.useState(0);en("deviation",(e=>{p!==e&&(m.current.style.marginTop=`${e}px`,g(e))}));const x=Qo("EmptyPlaceholder"),v=Qo("FillerRow")||_o,I=Qo("TableBodyComponent"),T=Qo("paddingTopAddition"),w=Qo("statefulTotalCount"),S=Qo("context");if(0===w&&x)return e.jsx(x,{...Kt(x,S)});const C=(n?o.topItems:[]).reduce(((e,t)=>e+t.size),0),H=o.offsetTop+T+p-C,y=o.offsetBottom,b=H>0?e.jsx(v,{height:H,context:S},"padding-top"):null,z=y>0?e.jsx(v,{height:y,context:S},"padding-bottom"):null;return e.jsxs(I,{ref:f,"data-testid":"virtuoso-item-list",...Kt(I,S),children:[b,n&&e.jsx($o,{showTopList:!0}),e.jsx($o,{}),z]})})),Ko=({children:o})=>{const n=t.useContext(Mt),r=Jo("viewportHeight"),i=Jo("fixedItemHeight"),l=X(t.useMemo((()=>s(r,(e=>ee(e,"height")))),[r]),!0,Qo("skipAnimationFrameInResizeObserver"));return t.useEffect((()=>{n&&(r(n.viewportHeight),i(n.itemHeight))}),[n,r,i]),e.jsx("div",{style:$t(!1),ref:l,"data-viewport-type":"element",children:o})},Yo=({children:o})=>{const n=t.useContext(Mt),r=Jo("windowViewportRect"),i=Jo("fixedItemHeight"),l=Qo("customScrollParent"),s=Ot(r,l,Qo("skipAnimationFrameInResizeObserver"));return t.useEffect((()=>{n&&(i(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,r,i]),e.jsx("div",{ref:s,style:$t(!1),"data-viewport-type":"window",children:o})},Zo=t.memo((function(o){const n=Qo("useWindowScroll"),r=Qo("customScrollParent"),i=Jo("fixedHeaderHeight"),l=Jo("fixedFooterHeight"),c=Qo("fixedHeaderContent"),a=Qo("fixedFooterContent"),u=Qo("context"),d=X(t.useMemo((()=>s(i,(e=>ee(e,"height")))),[i]),!0,Qo("skipAnimationFrameInResizeObserver")),h=X(t.useMemo((()=>s(l,(e=>ee(e,"height")))),[l]),!0,Qo("skipAnimationFrameInResizeObserver")),f=r||n?on:tn,m=r||n?Yo:Ko,p=Qo("TableComponent"),g=Qo("TableHeadComponent"),x=Qo("TableFooterComponent"),v=c?e.jsx(g,{style:{zIndex:2,position:"sticky",top:0},ref:d,...Kt(g,u),children:c()},"TableHead"):null,I=a?e.jsx(x,{style:{zIndex:1,position:"sticky",bottom:0},ref:h,...Kt(x,u),children:a()},"TableFoot"):null;return e.jsx(f,{...o,children:e.jsx(m,{children:e.jsxs(p,{style:{borderSpacing:0,overflowAnchor:"none"},...Kt(p,u),children:[v,e.jsx(qo,{},"TableBody"),I]})})})})),{Component:Xo,usePublisher:Jo,useEmitterValue:Qo,useEmitter:en}=U(Go,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},Zo),tn=Jt({usePublisher:Jo,useEmitterValue:Qo,useEmitter:en}),on=Qt({usePublisher:Jo,useEmitterValue:Qo,useEmitter:en}),nn=Xo;exports.GroupedVirtuoso=ho,exports.LogLevel=q,exports.TableVirtuoso=nn,exports.Virtuoso=uo,exports.VirtuosoGrid=Do,exports.VirtuosoGridMockContext=jt,exports.VirtuosoMockContext=Mt;