PageSourceSearch

https://www.mmamania.com/_next/static/chunks/042b967p3jg1t.js

js mmamania.com collected 2026-09-24 08:55:02 UTC 58,838 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="e245a5f6-600c-fc68-233d-0dce08c28afb")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55343,e=>{"use strict";var t=e.i(478902),o=e.i(389959),n=e.i(971131);function r(e){e()}function i(e,t){return o=>e(t(o))}function l(e){return void 0!==e}function s(){}function a(e,t){return t(e)}function u(...e){return e}function d(e){e(2)}function c(e){return e(4)}function f(e,t){return e(1,e=>t(0,e))}function h(e,t){let o=e(1,e=>{o(),t(e)});return o}function m(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function g(e,t){return e===t}function p(e=g){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function x(e){return t=>o=>{e(o)&&t(o)}}function v(e){return t=>i(t,e)}function I(e){return t=>()=>{t(e)}}function T(e,...t){let o=function(...e){return t=>e.reduceRight(a,t)}(...t);return(t,n)=>{switch(t){case 2:d(e);return;case 1:return e(1,o(n))}}}function S(e,t){return o=>n=>{o(t=e(t,n))}}function C(e){return t=>o=>{e>0?e--:t(o)}}function w(e){let t=null,o;return n=>r=>{t=r,o||(o=setTimeout(()=>{o=void 0,n(t)},e))}}function H(...e){let t=Array(e.length),o=0,n=null,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{let s=o;o|=l,t[i]=e,s!==r&&o===r&&n&&(n(),n=null)})}),e=>i=>{let l=()=>{e([i].concat(t))};o===r?l():n=l}}function y(e){let t=e,o=b();return(e,n)=>{switch(e){case 0:t=n;break;case 1:n(t);break;case 4:return t}return o(e,n)}}function z(e,t){var o;return o=y(t),f(e,o),o}function b(){let e=[];return(t,o)=>{switch(t){case 0:e.slice().forEach(e=>{e(o)});return;case 2:e.splice(0,e.length);return;case 1:return e.push(o),()=>{let t=e.indexOf(o);t>-1&&e.splice(t,1)}}}}function R(e){var t;return t=b(),f(e,t),t}function k(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:B(),singleton:o}}let B=()=>Symbol();function E(...e){let t=b(),o=Array(e.length),n=0,r=2**e.length-1;return e.forEach((e,i)=>{let l=2**i;e(1,e=>{o[i]=e,(n|=l)===r&&t(0,o)})}),function(e,i){switch(e){case 2:return void d(t);case 1:return n===r&&i(o),t(1,i)}}}function L(e,t=g){return T(e,p(t))}function O(...e){return function(t,o){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(r)}}(...e.map(e=>e(1,o)))}}}let F=1,j={0:"debug",3:"error",[F]:"log",2:"warn"},P=k(()=>{let e=y(3);return{log:y((t,o,n=F)=>{n>=((typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL??c(e))&&console[j[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function M(e,t,o){return W(e,t,o).callbackRef}function W(e,t,n){let r=o.default.useRef(null),i=o.default.useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(t=>{let o=()=>{let o=t[0].target;null!==o.offsetParent&&e(o)};n?o():requestAnimationFrame(o)}):null,[e,n]);return{callbackRef:e=>{e&&t?(i?.observe(e),r.current=e):(r.current&&i?.unobserve(r.current),r.current=null)},ref:r}}function A(e,t,n,r,i,l,s,a,u){return W(o.default.useCallback(o=>{let n,u=function(e,t,o,n){let r=e.length;if(0===r)return null;let i=[];for(let l=0;l<r;l++){let r=e.item(l);if(void 0===r.dataset.index)continue;let s=parseInt(r.dataset.index),a=parseFloat(r.dataset.knownSize),u=t(r,o);if(0===u&&n("Zero-sized element, this should not happen",{child:r},3),u===a)continue;let d=i[i.length-1];0===i.length||d.size!==u||d.endIndex!==s-1?i.push({endIndex:s,size:u,startIndex:s}):i[i.length-1].endIndex++}return i}(o.children,t,a?"offsetWidth":"offsetHeight",i),d=o.parentElement;for(;void 0===d.dataset.virtuosoScroller;)d=d.parentElement;let c="window"===d.lastElementChild.dataset.viewportType;c&&(n=d.ownerDocument.defaultView);let f=s?a?s.scrollLeft:s.scrollTop:c?a?n.scrollX||n.document.documentElement.scrollLeft:n.scrollY||n.document.documentElement.scrollTop:a?d.scrollLeft:d.scrollTop;
2r({scrollHeight:s?a?s.scrollWidth:s.scrollHeight:c?a?n.document.documentElement.scrollWidth:n.document.documentElement.scrollHeight:a?d.scrollWidth:d.scrollHeight,scrollTop:Math.max(f,0),viewportHeight:s?a?s.offsetWidth:s.offsetHeight:c?a?n.innerWidth:n.innerHeight:a?d.offsetWidth:d.offsetHeight}),l?.(a?V("column-gap",getComputedStyle(o).columnGap,i):V("row-gap",getComputedStyle(o).rowGap,i)),null!==u&&e(u)},[e,t,i,l,s,r,a]),n,u)}function V(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}function D(e,t,n){let r=o.default.useRef(null),i=o.default.useCallback(o=>{let n,i;if(!o?.offsetParent)return;let l=o.getBoundingClientRect(),a=l.width;if(t){let e=t.getBoundingClientRect(),o=l.top-e.top;i=e.height-Math.max(0,o),n=o+t.scrollTop}else{let e=s.current.ownerDocument.defaultView;i=e.innerHeight-Math.max(0,l.top),n=l.top+e.scrollY}r.current={listHeight:l.height,offsetTop:n,visibleHeight:i,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:l,ref:s}=W(i,!0,n),a=o.default.useCallback(()=>{i(s.current)},[i,s]);return o.default.useEffect(()=>{if(t){t.addEventListener("scroll",a);let e=new ResizeObserver(()=>{requestAnimationFrame(a)});return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}let e=s.current?.ownerDocument.defaultView;return e?.addEventListener("scroll",a),e?.addEventListener("resize",a),()=>{e?.removeEventListener("scroll",a),e?.removeEventListener("resize",a)}},[a,t,s]),l}let G=k(()=>{let e=b(),t=b(),o=y(0),n=b(),r=y(0),i=b(),l=b(),s=y(0),a=y(0),u=y(0),d=y(0),c=b(),h=b(),m=y(!1),g=y(!1),p=y(!1);return f(T(e,v(({scrollTop:e})=>e)),t),f(T(e,v(({scrollHeight:e})=>e)),l),f(t,r),{deviation:o,fixedFooterHeight:u,fixedHeaderHeight:a,footerHeight:d,headerHeight:s,horizontalDirection:g,scrollBy:h,scrollContainerState:e,scrollHeight:l,scrollingInProgress:m,scrollTo:c,scrollTop:t,skipAnimationFrameInResizeObserver:p,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:i}},[],{singleton:!0}),N={lvl:0};function _(e,t){let o=e.length;if(0===o)return[];let{index:n,value:r}=t(e[0]),i=[];for(let l=1;l<o;l++){let{index:o,value:s}=t(e[l]);i.push({end:o-1,start:n,value:r}),n=o,r=s}return i.push({end:1/0,start:n,value:r}),i}function K(e){return e===N}function q(e,t){if(!K(e))return t===e.k?e.v:t<e.k?q(e.l,t):q(e.r,t)}function U(e,t,o="k"){if(K(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){let n=U(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return U(e.l,t,o)}function $(e,t,o){return K(e)?ee(t,o,1):t===e.k?J(e,{k:t,v:o}):t<e.k?eo(et(J(e,{l:$(e.l,t,o)}))):eo(et(J(e,{r:$(e.r,t,o)})))}function Y(e,t,o){if(K(e))return[];let n=U(e,t)[0];return _(function e(t,o,n){if(K(t))return[];let{k:r,l:i,r:l,v:s}=t,a=[];return r>o&&(a=a.concat(e(i,o,n))),r>=o&&r<=n&&a.push({k:r,v:s}),r<=n&&(a=a.concat(e(l,o,n))),a}(e,n,o),({k:e,v:t})=>({index:e,value:t}))}function X(e){return K(e)?[]:[...X(e.l),{k:e.k,v:e.v},...X(e.r)]}function Z(e){let{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(Q(t))return et(J(e,{lvl:o-1}));if(!K(t)&&!K(t.r))return J(t.r,{l:J(t,{r:t.r.l}),lvl:o,r:J(e,{l:t.r.r,lvl:o-1})});throw Error("Unexpected empty nodes")}if(Q(e))return eo(J(e,{lvl:o-1}));if(!K(n)&&!K(n.l)){let t=n.l,r=Q(t)?n.lvl-1:n.lvl;return J(t,{l:J(e,{lvl:o-1,r:t.l}),lvl:t.lvl+1,r:eo(J(n,{l:t.r,lvl:r}))})}throw Error("Unexpected empty nodes")}function J(e,t){return ee(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 Q(e){return K(e)||e.lvl>e.r.lvl}function ee(e,t,o,n=N,r=N){return{k:e,l:n,lvl:o,r,v:t}}function et(e){let{l:t}=e;return K(t)||t.lvl!==e.lvl?e:J(t,{r:J(e,{l:t.r})})}function eo(e){let{lvl:t,r:o}=e;return K(o)||K(o.r)||o.lvl!==t||o.r.lvl!==t?e:J(o,{l:J(e,{r:o.l}),lvl:t+1})}function en(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function er(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let ei=k(()=>({recalcInProgress:y(!1)}),[],{singleton:!0});function el(e,t,o,n=0){let r=e.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),l=o(e[i],t);
2if(0===l)return i;if(-1===l){if(r-n<2)return i-1;r=i-1}else{if(r===n)return i;n=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function es(e,t){return Math.round(e.getBoundingClientRect()[t])}function ea(e){return!K(e.groupOffsetTree)}function eu({index:e},t){return t===e?0:t<e?-1:1}function ed({offset:e},t){return t===e?0:t<e?-1:1}function ec(e,t,o){if(0===t.length)return 0;let{index:n,offset:r,size:i}=t[el(t,e,eu)],l=e-n,s=i*l+(l-1)*o+r;return s>0?s+o:s}function ef(e,t){if(!ea(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function eh(e,t,o){if("u">typeof e.groupIndex)return t.groupIndices[e.groupIndex]+1;let n=ef("LAST"===e.index?o:e.index,t);return Math.max(0,n,Math.min(o,n))}function em(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,0);let i=e.sizeTree,l=i,s=0;if(o.length>0&&K(i)&&2===t.length){let e=t[0].size,n=t[1].size;l=o.reduce((t,o)=>$($(t,o,e),o+1,n),l)}else[l,s]=function(e,t){let o=K(e)?0:1/0;for(let n of t){let{endIndex:t,size:r,startIndex:i}=n;if(o=Math.min(o,i),K(e)){e=$(e,0,r);continue}let l=Y(e,i-1,t+1);if(l.some(function(e){let{endIndex:t,size:o,startIndex:n}=e;return e=>e.start===n&&(e.end===t||e.end===1/0)&&e.value===o}(n)))continue;let s=!1,a=!1;for(let{end:o,start:n,value:i}of l)s?(t>=n||r===i)&&(e=function e(t,o){if(K(t))return N;let{k:n,l:r,r:i}=t;if(o===n){if(K(r))return i;if(K(i))return r;let[e,o]=function e(t){return K(t.r)?[t.k,t.v]:e(t.r)}(r);return Z(J(t,{k:e,l:function e(t){return K(t.r)?t.l:Z(J(t,{r:e(t.r)}))}(r),v:o}))}return o<n?Z(J(t,{l:e(r,o)})):Z(J(t,{r:e(i,o)}))}(e,n)):(a=i!==r,s=!0),o>t&&t>=n&&i!==r&&(e=$(e,t+1,i));a&&(e=$(e,i,r))}return[e,o]}(l,t);if(l===i)return e;let{lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c}=ep(e.offsetTree,s,l,r);return{groupIndices:o,groupOffsetTree:o.reduce((e,t)=>$(e,t,ec(t,c,r)),N),lastIndex:a,lastOffset:u,lastSize:d,offsetTree:c,sizeTree:l}}function eg(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o!==e)}function ep(e,t,o,n){let r=e,i=0,l=0,s=0,a=0;if(0!==t){a=el(r,t-1,eu),s=r[a].offset;let e=U(o,t-1);i=e[0],l=e[1],r.length&&r[a].size===U(o,t)[1]&&(a-=1),r=r.slice(0,a+1)}else r=[];for(let{start:e,value:a}of Y(o,t,1/0)){let t=e-i,o=t*l+s+t*n;r.push({index:e,offset:o,size:a}),i=e,s=o,l=a}return{lastIndex:i,lastOffset:s,lastSize:l,offsetTree:r}}function ex(e){return{index:e.index,value:e}}let ev={offsetHeight:"height",offsetWidth:"width"},eI=k(([{log:e},{recalcInProgress:t}])=>{let o=b(),n=b(),r=z(n,0),i=b(),l=b(),s=y(0),a=y([]),u=y(void 0),d=y(void 0),h=y(void 0),m=y(void 0),g=y((e,t)=>es(e,ev[t])),I=y(void 0),C=y(0),w={groupIndices:[],groupOffsetTree:N,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:N},k=z(T(o,H(a,e,C),S(em,w),p()),w),B=z(T(a,p(),S((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),v(({prev:e})=>e)),[]);f(T(a,x(e=>e.length>0),H(k,C),v(([e,t,o])=>{let n=e.reduce((e,n,r)=>$(e,n,ec(n,t.offsetTree,o)||r),N);return{...t,groupIndices:e,groupOffsetTree:n}})),k),f(T(n,H(k),x(([e,{lastIndex:t}])=>e<t),v(([e,{lastIndex:t,lastSize:o}])=>[{endIndex:t,size:o,startIndex:e}])),o),f(u,d);let E=z(T(u,v(e=>void 0===e)),!0);f(T(d,x(e=>void 0!==e&&K(c(k).sizeTree)),v(e=>{let t=c(h),o=c(a).length>0;return void 0!==t&&0!==t?o?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),o),f(T(m,x(e=>void 0!==e&&e.length>0&&K(c(k).sizeTree)),v(e=>{let t=[],o=e[0],n=0;for(let r=1;r<e.length;r++){let i=e[r];i!==o&&(t.push({endIndex:r-1,size:o,startIndex:n}),o=i,n=r)}return t.push({endIndex:e.length-1,size:o,startIndex:n}),t})),o),f(T(a,H(h,d),x(([,e,t])=>void 0!==e&&void 0!==t),v(([e,t,o])=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],l=e[r+1];n.push({startIndex:i,endIndex:i,size:t}),void 0!==l&&n.push({startIndex:i+1,endIndex:l-1,size:o})}return n})),o);let L=R(T(o,H(k),S(({sizes:e},[t,o])=>({changed:o!==e,sizes:o}),{changed:!1,sizes:w}),v(e=>e.changed)));T(s,S((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),v(e=>e.diff))(1,e=>{let{groupIndices:o}=c(k);if(e>0)t(0,!0),i(0,e+eg(e,o));else if(e<0){let t=c(B);t.length>0&&(e-=eg(-e,t)),l(0,e)}}),T(s,H(e))(1,([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},3)});let O=R(i);f(T(i,H(k),v(([e,t])=>{let o=t.groupIndices.length>0,n=[],r=t.lastSize;if(o){let o=q(t.sizeTree,0),i=0,l=0;for(;i<e;){let e=t.groupIndices[l],s=t.groupIndices.length===l+1?1/0:t.groupIndices[l+1]-e-1;n.push({endIndex:e,size:o,startIndex:e}),n.push({endIndex:e+1+s-1,size:r,startIndex:e+1}),l++,i+=s+1}let s=X(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:o,v:n})=>{let r=t.ranges;return 0!==t.prevSize&&(r=[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:o+e,prevSize:n,ranges:r}},{prevIndex:e,prevSize:0,ranges:n}).ranges}return X(t.sizeTree).reduce((t,{k:o,v:n})=>({prevIndex:o+e,prevSize:n,ranges:[...t.ranges,{endIndex:o+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:r,ranges:[]}).ranges})),o);
2let F=R(T(l,H(k,C),v(([e,{offsetTree:t},o])=>ec(-e,t,o))));return f(T(l,H(k,C),v(([e,t,o])=>{if(t.groupIndices.length>0){if(K(t.sizeTree))return t;let n=N,r=c(B),i=0,l=0,s=0;for(;i<-e;){s=r[l];let e=r[l+1]-s-1;l++,i+=e+1}return n=X(t.sizeTree).reduce((t,{k:o,v:n})=>$(t,Math.max(0,o+e),n),n),i!==-e&&(n=$(n,0,q(t.sizeTree,s)),n=$(n,1,U(t.sizeTree,-e+1)[1])),{...t,sizeTree:n,...ep(t.offsetTree,0,n,o)}}let n=X(t.sizeTree).reduce((t,{k:o,v:n})=>$(t,Math.max(0,o+e),n),N);return{...t,sizeTree:n,...ep(t.offsetTree,0,n,o)}})),k),{beforeUnshiftWith:O,data:I,defaultItemSize:d,firstItemIndex:s,fixedItemSize:u,fixedGroupSize:h,gap:C,groupIndices:a,heightEstimates:m,itemSize:g,listRefresh:L,shiftWith:l,shiftWithOffset:F,sizeRanges:o,sizes:k,statefulTotalCount:r,totalCount:n,trackItemSizes:E,unshiftWith:i}},u(P,ei),{singleton:!0});function eT(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let eS=k(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{let i=b(),l=b(),s=R(T(i,v(eT)));return f(T(s,v(e=>e.totalCount)),o),f(T(s,v(e=>e.groupIndices)),e),f(T(E(r,t,n),x(([e,t])=>ea(t)),v(([e,t,o])=>U(t.groupOffsetTree,Math.max(e-o,0),"v")[0]),p(),v(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},u(eI,G)),eC=k(([{log:e}])=>{let t=y(!1),o=R(T(t,x(e=>e),p()));return t(1,t=>{t&&c(e)("props updated",{},0)}),{didMount:o,propsReady:t}},u(P),{singleton:!0}),ew="u">typeof document&&"scrollBehavior"in document.documentElement.style;function eH(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&ew||(t.behavior="auto"),void 0===t.offset&&(t.offset=0),t}let ey=k(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,footerHeight:l,headerHeight:s,scrollingInProgress:a,scrollTo:u,smoothScrollTargetReached:d,viewportHeight:c},{log:m}])=>{let g=b(),p=b(),x=y(0),I=null,S=null,C=null;function w(){null!==I&&(I(),I=null),null!==C&&(C(),C=null),S&&(clearTimeout(S),S=null),a(0,!1)}return f(T(g,H(o,c,n,x,s,l,m),H(e,i,r),v(([[e,o,n,r,i,l,s,u],c,f,m])=>{let x=eH(e),{align:v,behavior:H,offset:y}=x,z=r-1,b=eh(x,o,z),R=ec(b,o.offsetTree,c)+l;"end"===v?(R+=f+U(o.sizeTree,b)[1]-n+m,b===z&&(R+=s)):"center"===v?R+=(f+U(o.sizeTree,b)[1]-n+m)/2:R-=i,void 0!==y&&0!==y&&(R+=y);let k=t=>{w(),t?(u("retrying to scroll to",{location:e},0),g(0,e)):(p(0,!0),u("list did not change, scroll successful",{},0))};if(w(),"smooth"===H){let e=!1;C=t(1,t=>{e=e||t}),I=h(d,()=>{k(e)})}else I=h(T(t,e=>{let t=setTimeout(()=>{e(!1)},150);return o=>{o&&(e(!0),clearTimeout(t))}}),k);return S=setTimeout(()=>{w()},1200),a(0,!0),u("scrolling from index to",{behavior:H,index:b,top:R},0),{behavior:H,top:R}})),u),{scrollTargetReached:p,scrollToIndex:g,topListHeight:x}},u(eI,G,P),{singleton:!0});function ez(e,t){0===e?t():requestAnimationFrame(()=>{ez(e-1,t)})}function eb(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}let eR=k(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:i},{didMount:s}])=>{let a=y(!0),u=y(0),d=y(!0);return f(T(s,H(u),x(([e,t])=>0!==t),I(!1)),a),f(T(s,H(u),x(([e,t])=>0!==t),I(!1)),d),T(E(t,s),H(a,o,e,d),x(([[,e],t,{sizeTree:o},n,r])=>e&&(!K(o)||l(n))&&!t&&!r),H(u))(1,([,e])=>{h(r,()=>{d(0,!0)}),ez(4,()=>{h(n,()=>{a(0,!0)}),i(0,e)})}),{initialItemFinalLocationReached:d,initialTopMostItemIndex:u,scrolledToInitialItem:a}},u(eI,G,ey,eC),{singleton:!0});function ek(e,t){return 1.01>Math.abs(e-t)}let eB="down",eE={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},eL=k(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:i}])=>{let l=y(!1),s=y(!0),a=b(),u=b(),d=y(4),h=y(0),g=z(T(O(T(L(r),C(1),I(!0)),T(L(r),C(1),I(!1),m(100))),p()),!1),
2k=z(T(O(T(o,I(!0)),T(o,I(!1),m(200))),p()),!1);f(T(E(L(r),L(h)),v(([e,t])=>e<=t),p()),s),f(T(s,w(50)),u);let B=R(T(E(n,L(i),L(t),L(e),L(d)),S((e,[{scrollHeight:t,scrollTop:o},n,r,i,l])=>{let s={scrollHeight:t,scrollTop:o,viewportHeight:n};if(o+n-t>-l){let t,n;return o>e.state.scrollTop?(t="SCROLLED_DOWN",n=e.state.scrollTop-o):(t="SIZE_DECREASED",n=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:n,state:s}}return{atBottom:!1,notAtBottomBecause:s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":n<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},eE),p((e,t)=>void 0!==e&&e.atBottom===t.atBottom))),F=z(T(n,S((e,{scrollHeight:t,scrollTop:o,viewportHeight:n})=>{if(!ek(e.scrollHeight,t)){let r=t-(o+n)<1;return e.scrollTop!==o&&r?{changed:!0,jump:e.scrollTop-o,scrollHeight:t,scrollTop:o}:{changed:!0,jump:0,scrollHeight:t,scrollTop:o}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:o}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),x(e=>e.changed),v(e=>e.jump)),0);f(T(B,v(e=>e.atBottom)),l),f(T(l,w(50)),a);let j=y(eB);f(T(n,v(({scrollTop:e})=>e),p(),S((e,t)=>c(k)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":eB,prevScrollTop:t},{direction:eB,prevScrollTop:0}),v(e=>e.direction)),j),f(T(n,w(50),I("none")),j);let P=y(0);return f(T(g,x(e=>!e),I(0)),P),f(T(r,w(100),H(g),x(([e,t])=>t),S(([e,t],[o])=>[t,o],[0,0]),v(([e,t])=>t-e)),P),{atBottomState:B,atBottomStateChange:a,atBottomThreshold:d,atTopStateChange:u,atTopThreshold:h,isAtBottom:l,isAtTop:s,isScrolling:g,lastJumpDueToItemResize:F,scrollDirection:j,scrollVelocity:P}},u(G)),eO="bottom",eF="none";function ej(e,t,o){return"number"==typeof e?"up"===o&&"top"===t||o===eB&&t===eO?e:0:"up"===o?"top"===t?e.main:e.reverse:t===eO?e.main:e.reverse}function eP(e,t){return"number"==typeof e?e:e[t]??0}let eM=k(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{let i=b(),l=y(0),s=y(0),a=y(0),u=z(T(E(L(n),L(r),L(o),L(i,er),L(a),L(l),L(t),L(e),L(s)),v(([e,t,o,[n,r],i,l,s,a,u])=>{let d=e-a,c=Math.max(o-d,0),f=eF,h=eP(u,"top"),m=eP(u,eO);return n-=a,n+=o+s,r+=o+s,n>e+(l+s)-h&&(f="up"),(r-=a)<e-c+t+m&&(f=eB),f!==eF?[Math.max(d-o-ej(i,"top",f)-h,0),d-c-s+t+ej(i,eO,f)+m]:null}),x(e=>null!==e),p(er)),[0,0]);return{increaseViewportBy:s,listBoundary:i,overscan:a,topListHeight:l,visibleRange:u}},u(G),{singleton:!0}),eW={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function eA(e,t,o,n,r,i){let{lastIndex:l,lastOffset:s,lastSize:a}=r,u=0,d=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];d=t.offset+t.size}let c=o-l,f=u,h=s+c*a+(c-1)*n-d;return{bottom:d,firstItemIndex:i,items:eD(e,r,i),offsetBottom:h,offsetTop:u,top:f,topItems:eD(t,r,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:o}}function eV(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(let t of o.groupIndices){if(t-l>=e)break;l++}let s=e+l,a=eb(t,s);return eA(Array.from({length:s}).map((e,t)=>({data:i[t+a],index:t+a,offset:0,size:0})),[],s,r,o,n)}function eD(e,t,o){if(0===e.length)return[];if(!ea(t))return e.map(e=>({...e,index:e.index+o,originalIndex:e.index}));let n=e[0].index,r=e[e.length-1].index,i=[],l=Y(t.groupOffsetTree,n,r),s,a=0;for(let n of e){let e;(!s||s.end<n.index)&&(s=l.shift(),a=t.groupIndices.indexOf(s.start)),e=n.index===s.start?{index:a,type:"group"}:{groupIndex:a,index:n.index-(a+1)+o},i.push({...e,data:n.data,offset:n.offset,originalIndex:n.index,size:n.size})}return i}function eG(e,t){return void 0===e?0:"number"==typeof e?e:e[t]??0}let eN=k(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},i,{listBoundary:s,topListHeight:a,visibleRange:u},{initialTopMostItemIndex:d,scrolledToInitialItem:h},{topListHeight:m},g,{didMount:I},{recalcInProgress:S}])=>{let C=y([]),k=y(0),B=b(),O=y(0);f(i.topItemsIndexes,C);let F=z(T(E(I,S,L(u,er),L(r),L(n),L(d),h,L(C),L(t),L(o),L(O),e),x(([e,t,,o,,,,,,,,n])=>{let r=void 0!==n&&n.length!==o;return e&&!t&&!r}),v(([,,[e,t],o,n,r,i,l,s,a,u,d])=>{var f;let{offsetTree:h,sizeTree:m}=n,g=c(k);if(0===o)return{...eW,totalCount:o};if(0===e&&0===t)return 0===g?{...eW,totalCount:o}:eV(g,r,n,s,a,d||[]);if(K(m))return g>0?null:eA(function(e,t,o){if(ea(t)){let n=ef(e,t);return[{index:U(t.groupOffsetTree,n)[0],offset:0,size:0},{data:o?.[0],index:n,offset:0,size:0}]}return[{data:o?.[0],index:e,offset:0,size:0}]}(eb(r,o),n,d),[],o,a,n,s);let p=[];if(l.length>0){let e=l[0],t=l[l.length-1],o=0;for(let n of Y(m,e,t)){let r=n.value,i=Math.max(n.start,e),l=Math.min(n.end,t);for(let e=i;e<=l;e++)p.push({data:d?.[e],index:e,offset:o,size:r}),o+=r}}if(!i)return eA([],p,o,a,n,s);let x=l.length>0?l[l.length-1]+1:0,v=function(e,t,o,n=0){let r,i;return n>0&&(t=Math.max(t,e[el(e,n,eu)].offset)),_((r=el(e,t,ed),i=el(e,o,ed,r),e.slice(r,i+1)),ex)}(h,e,t,x);if(0===v.length)return null;let I=o-1,T=((o=>{for(let n of v){let r=n.value,i=r.offset,l=n.start,s=r.size;if(r.offset<e){let t=(l+=Math.floor((e-r.offset+a)/(s+a)))-n.start;i+=t*s+t*a}l<x&&(i+=(x-l)*s,l=x);let u=Math.min(n.end,I);for(let e=l;e<=u&&!(i>=t);e++)o.push({data:d?.[e],index:e,offset:i,size:s}),i+=s+a}})(f=[]),f),S=eG(u,"top"),C=eG(u,eO);if(T.length>0&&(S>0||C>0)){let e=T[0],t=T[T.length-1];if(S>0&&e.index>x){let t=Math.min(S,e.index-x),o=[],n=e.offset;for(let r=e.index-1;r>=e.index-t;r--){let t=Y(m,r,r)[0]?.value??e.size;n-=t+a,o.unshift({data:d?.[r],index:r,offset:n,size:t})}T.unshift(...o)}if(C>0&&t.index<I){let e=Math.min(C,I-t.index),o=t.offset+t.size+a;for(let n=t.index+1;n<=t.index+e;n++){let e=Y(m,n,n)[0]?.value??t.size;T.push({data:d?.[n],index:n,offset:o,size:e}),o+=e+a}}}return eA(T,p,o,a,n,s)}),x(e=>null!==e),p()),eW);f(T(e,x(l),v(e=>e?.length)),r),f(T(F,v(e=>e.topListHeight)),m),f(m,a),f(T(F,v(e=>[e.top,e.bottom])),s),f(T(F,v(e=>e.items)),B);let j=R(T(F,x(({items:e})=>e.length>0),H(r,e),x(([{items:e},t])=>e[e.length-1].originalIndex===t-1),v(([,e,t])=>[e-1,t]),p(er),v(([e])=>e))),P=R(T(F,w(200),x(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),v(({items:e})=>e[0].index),p())),M=R(T(F,x(({items:e})=>e.length>0),v(({items:e})=>{let t=0,o=e.length-1;for(;"group"===e[t].type&&t<o;)t++;for(;"group"===e[o].type&&o>t;)o--;return{endIndex:e[o].index,startIndex:e[t].index}}),p(en)));return{endReached:j,initialItemCount:k,itemsRendered:B,listState:F,minOverscanItemCount:O,rangeChanged:M,startReached:P,topItemsIndexes:C,...g}},u(eI,eS,eM,eR,ey,eL,eC,ei),{singleton:!0}),e_=k(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{let i=b(),l=z(T(E(o,e,n,t,r),v(([e,t,o,n,r])=>
2e+t+o+n+r.offsetBottom+r.bottom)),0);return f(L(l),i),{totalListHeight:l,totalListHeightChanged:i}},u(G,eN),{singleton:!0}),eK=k(([{viewportHeight:e},{totalListHeight:t}])=>{let o=y(!1),n=z(T(E(o,e,t),x(([e])=>e),v(([,e,t])=>Math.max(0,e-t)),w(0),p()),0);return{alignToBottom:o,paddingTopAddition:n}},u(G,e_),{singleton:!0}),eq=k(()=>({context:y(null)})),eU=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:i,viewportTop:l})=>t<l?{...r,align:o??"start",...void 0!==n?{behavior:n}:{}}:e>i?{...r,align:o??"end",...void 0!==n?{behavior:n}:{}}:null,e$=k(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:i,scrollingInProgress:l,scrollTop:s,viewportHeight:a},{scrollToIndex:u}])=>{let d=b();return f(T(d,H(t,a,o,i,r,n,s),H(e),v(([[e,t,o,n,r,i,s,a],u])=>{let{calculateViewLocation:d=eU,done:f,...m}=e,g=eh(e,t,n-1),p=ec(g,t.offsetTree,u)+r+i,v=d({itemBottom:p+U(t.sizeTree,g)[1],itemTop:p,locationParams:m,viewportBottom:a+o-s,viewportTop:a+i});return null!==v?f&&h(T(l,x(e=>!e),C(c(l)?1:2)),f):f?.(),v}),x(e=>null!==e)),u),{scrollIntoView:d}},u(eI,G,ey,eN,P),{singleton:!0});function eY(e){return!1!==e&&("smooth"===e?"smooth":"auto")}let eX=k(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:i},{scrollToIndex:l},{scrolledToInitialItem:s},{didMount:a,propsReady:u},{log:d},{scrollingInProgress:m},{context:g},{scrollIntoView:p}])=>{let I=y(!1),z=b(),R=null;function k(e){l(0,{align:"end",behavior:e,index:"LAST"})}function B(e){setTimeout(h(r,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&null===R&&(c(d)("scrolling to bottom due to increased size",{},0),k("auto"))}),100)}T(E(T(L(t),C(1)),a),H(L(I),i,s,m),v(([[e,t],o,n,r,i])=>{let l,s=t&&r,a="auto";return s&&(l=n||i,a="function"==typeof o?eY(o(l)):l&&eY(o),s=s&&!1!==a),{followOutputBehavior:a,shouldFollow:s,totalCount:e}}),x(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:n})=>{null!==R&&(R(),R=null),void 0!==c(o)?requestAnimationFrame(()=>{c(d)("following output to ",{totalCount:n},0),k(t)}):R=h(e,()=>{c(d)("following output to ",{totalCount:n},0),k(t),R=null})}),T(E(L(I),t,u),x(([e,,t])=>!1!==e&&t),S(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),x(({refreshed:e})=>e),H(I,t))(1,([,e])=>{c(s)&&B(!1!==e)}),z(1,()=>{B(!1!==c(I))}),E(L(I),r)(1,([e,t])=>{!1===e||t.atBottom||"VIEWPORT_HEIGHT_DECREASING"!==t.notAtBottomBecause||k("auto")});let F=y(null),j=b();return f(O(T(L(n),v(e=>e?.length??0)),T(L(t))),j),T(E(T(j,C(1)),a),H(L(F),s,m,g),v(([[e,t],o,n,r,i])=>t&&n&&o?.({context:i,totalCount:e,scrollingInProgress:r})),x(e=>!!e),w(0))(1,t=>{null!==R&&(R(),R=null),void 0!==c(o)?requestAnimationFrame(()=>{c(d)("scrolling into view",{}),p(0,t)}):R=h(e,()=>{c(d)("scrolling into view",{}),p(0,t),R=null})}),{autoscrollToBottom:z,followOutput:I,scrollIntoViewOnChange:F}},u(eI,eL,ey,eR,eC,P,G,eq,e$)),eZ=k(([{data:e,firstItemIndex:t,gap:o,sizes:n},{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(f(T(s,H(i),x(([,e])=>0!==e),H(r,n,t,o,e),v(([[,e],t,o,n,r,i=[]])=>eV(e,t,o,n,r,i))),l),{}),u(eI,eR,eN,eC),{singleton:!0}),eJ=k(([{didMount:e},{scrollTo:t},{listState:o}])=>{let n=y(0);return T(e,H(n),x(([,e])=>0!==e),v(([,e])=>({top:e})))(1,e=>{h(T(o,C(1),x(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:n}},u(eC,G,eN),{singleton:!0}),eQ=k(([{scrollVelocity:e}])=>{let t=y(!1),o=b(),n=y(!1);return f(T(e,H(n,t,o),x(([e,t])=>!1!==t&&void 0!==t),v(([e,t,o,n])=>{let{enter:r,exit:i}=t;if(o){if(i(e,n))return!1}else if(r(e,n))return!0;return o}),p()),t),T(E(t,e,o),H(n))(1,([[e,t,o],n])=>{e&&!1!==n&&void 0!==n&&n.change&&n.change(t,o)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},u(eL),{singleton:!0}),e0=k(([{scrollContainerState:e,scrollTo:t}])=>{let o=b(),n=b(),r=b(),i=y(!1),l=y(void 0);return f(T(E(o,n),v(([{scrollTop:e,viewportHeight:t},{offsetTop:o,listHeight:n}])=>({scrollHeight:n,scrollTop:Math.max(0,e-o),viewportHeight:t}))),e),f(T(t,H(n),v(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),r),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},u(G)),e1=k(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n}
2,{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:s,windowScrollContainerState:a,windowViewportRect:u}])=>{let d=b(),c=y(void 0),h=y(null),m=y(null);return f(a,h),f(u,m),T(d,H(t,n,s,h,m,o))(1,([e,t,o,n,r,i,l])=>{let s=X(t.sizeTree).map(({k:e,v:t},o,n)=>{let r=n[o+1];return{endIndex:void 0!==r?r.k-1:1/0,size:t,startIndex:e}});n&&null!==r&&null!==i&&(o=r.scrollTop-i.offsetTop),e({ranges:s,scrollTop:o-=l})}),f(T(c,x(l),v(e2)),r),f(T(i,H(c),x(([,e])=>void 0!==e),p(),v(([,e])=>e.ranges)),e),{getState:d,restoreStateFrom:c}},u(eI,G,eR,eC,e0));function e2(e){return{align:"start",index:0,offset:e.scrollTop}}let e3=k(([{topItemsIndexes:e}])=>{let t=y(0);return f(T(t,x(e=>e>=0),v(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},u(eN));function e5(e){let t=!1,o;return()=>(t||(t=!0,o=e()),o)}let e4=e5(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),e9=k(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:s},{listState:a},{beforeUnshiftWith:u,gap:d,shiftWithOffset:c,sizes:h},{log:m},{recalcInProgress:g}])=>{let p=R(T(a,H(l),S(([,e,t,o],[{bottom:n,items:r,offsetBottom:i,totalCount:l},s])=>{let a=n+i,u=0;return t===l&&e.length>0&&r.length>0&&(0===r[0].originalIndex&&0===e[0].originalIndex||0!=(u=a-o)&&(u+=s)),[u,r,l,a]},[0,[],0,0]),x(([e])=>0!==e),H(n,s,o,r,m,g),x(([,e,t,o,,,n])=>!n&&!o&&0!==e&&"up"===t),v(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},0),e))));function I(o){o>0?(t(0,{behavior:"auto",top:-o}),e(0,0)):(e(0,0),t(0,{behavior:"auto",top:-o}))}return T(p,H(e,i))(1,([t,o,n])=>{n&&e4()?e(0,o-t):I(-t)}),T(E(z(i,!1),e,g),x(([e,t,o])=>!e&&!o&&0!==t),v(([e,t])=>t),w(1))(1,I),f(T(c,v(e=>({top:-e}))),t),T(u,H(h,d),v(([e,{groupIndices:t,lastSize:o,sizeTree:n},r])=>{if(0===t.length)return e*(o+r);let i=0,l=q(n,0),s=0,a=0;for(;s<e;){s++,i+=l;let n=t.length===a+1?1/0:t[a+1]-t[a]-1;s+n>e&&(i-=l,n=e-s+1),s+=n,i+=n*(o+r),a++}return i}))(1,o=>{e(0,o),requestAnimationFrame(()=>{t(0,{top:o}),requestAnimationFrame(()=>{e(0,0),g(0,!1)})})}),{deviation:e}},u(G,eL,eN,eI,P,ei)),e8=k(([e,t,o,n,r,i,l,s,a,u,d])=>({...e,...t,...o,...n,...r,...i,...l,...s,...a,...u,...d}),u(eM,eZ,eC,eQ,e_,eJ,eK,e0,e$,P,eq)),e7=k(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:i,groupIndices:l,heightEstimates:s,itemSize:a,sizeRanges:u,sizes:d,statefulTotalCount:c,totalCount:h,trackItemSizes:m},{initialItemFinalLocationReached:g,initialTopMostItemIndex:p,scrolledToInitialItem:x},I,S,C,w,{scrollToIndex:H},y,{topItemCount:z},{groupCounts:b},R])=>{let{listState:k,minOverscanItemCount:B,topItemsIndexes:E,rangeChanged:L,...O}=w;return f(L,R.scrollSeekRangeChanged),f(T(R.windowViewportRect,v(e=>e.visibleHeight)),I.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:i,groupCounts:b,heightEstimates:s,initialItemFinalLocationReached:g,initialTopMostItemIndex:p,scrolledToInitialItem:x,sizeRanges:u,topItemCount:z,topItemsIndexes:E,totalCount:h,...C,groupIndices:l,itemSize:a,listState:k,minOverscanItemCount:B,scrollToIndex:H,statefulTotalCount:c,trackItemSizes:m,rangeChanged:L,...O,...R,...I,sizes:d,...S}},u(eI,eR,G,e1,eX,eN,ey,e9,e3,eS,e8)),e6="u">typeof document?o.default.useLayoutEffect:o.default.useEffect;function te(e,n,r){let i=Object.keys(n.required||{}),l=Object.keys(n.optional||{}),a=Object.keys(n.methods||{}),u=Object.keys(n.events||{}),f=o.default.createContext({});function h(e,t){for(let o of(void 0!==e.propsReady&&(0,e.propsReady)(0,!1),i))(0,e[n.required[o]])(0,t[o]);for(let o of l)o in t&&(0,e[n.optional[o]])(0,t[o]);void 0!==e.propsReady&&(0,e.propsReady)(0,!0)}function m(e){return u.reduce((t,o)=>{var r;let i,l,a;return t[o]=(r=e[n.events[o]],a=()=>i?.(),function(e,t){switch(e){case 1:return t?l===t?void 0:(a(),l=t,i=r(1,t)):(a(),s);case 2:a(),l=null;return}}),t},{})}return{Component:o.default.forwardRef(function(s,c){var g;let{children:p,...x}=s,[v]=o.default.useState(()=>{var t;let o,n;return o=new Map,h(t=(n=({constructor:e,dependencies:t,id:r,singleton:i})=>{if(i&&o.has(r))return o.get(r);let l=e(t.map(e=>n(e)));return i&&o.set(r,l),l})(e),x),t}),[I]=o.default.useState(()=>m(v));return e6(()=>{for(let e of u)e in x&&(0,I[e])(1,x[e]);return()=>{Object.values(I).map(d)}},[x,I,v]),e6(()=>{h(v,x)}),o.default.useImperativeHandle(c,(g=a.reduce((e,t)=>
2(e[t]=e=>{(0,v[n.methods[t]])(0,e)},e),{}),()=>g)),(0,t.jsx)(f.Provider,{value:v,children:void 0!==r?(0,t.jsx)(r,{...function(e,t){let o={},n={},r=0,i=e.length;for(;r<i;)n[e[r]]=1,r+=1;for(let e in t)Object.hasOwn(n,e)||(o[e]=t[e]);return o}([...i,...l,...u],x),children:p}):p})}),useEmitter:(e,t)=>{let n=o.default.useContext(f)[e];e6(()=>n(1,t),[t,n])},useEmitterValue:o.default.version.startsWith("18")?e=>{let t=o.default.useContext(f)[e],n=o.default.useCallback(e=>t(1,e),[t]);return o.default.useSyncExternalStore(n,()=>c(t),()=>c(t))}:e=>{let t=o.default.useContext(f)[e],[n,r]=o.default.useState(()=>c(t));return e6(()=>t(1,e=>{e!==n&&r(()=>e)}),[t,n]),n},usePublisher:e=>{let t=o.default.useContext(f);return o.default.useCallback(o=>{(0,t[e])(0,o)},[t,e])}}}let tt=o.default.createContext(void 0),to=o.default.createContext(void 0),tn="-webkit-sticky",tr="sticky",ti=e5(()=>{if(typeof document>"u")return tr;let e=document.createElement("div");return e.style.position=tn,e.style.position===tn?tn:tr}),tl="u">typeof document?o.default.useLayoutEffect:o.default.useEffect;function ts(e){return"self"in e}function ta(e,t,r,i=s,l,a){let u=o.default.useRef(null),d=o.default.useRef(null),c=o.default.useRef(null),f=o.default.useCallback(o=>{let r,i,l,s=o.target;if("body"in s||ts(s)){let e=ts(s)?s:s.defaultView;l=!0===a?e.scrollX:e.scrollY,r=!0===a?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,i=!0===a?e.innerWidth:e.innerHeight}else l=!0===a?s.scrollLeft:s.scrollTop,r=!0===a?s.scrollWidth:s.scrollHeight,i=!0===a?s.offsetWidth:s.offsetHeight;let u=()=>{e({scrollHeight:r,scrollTop:Math.max(l,0),viewportHeight:i})};!0===o.suppressFlushSync?u():n.default.flushSync(u),null!==d.current&&(l===d.current||l<=0||l===r-i)&&(d.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))},[e,t,a]);return o.default.useEffect(()=>{let e=l||u.current;return i(l||u.current),f({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",f,{passive:!0}),()=>{i(null),e.removeEventListener("scroll",f)}},[u,f,r,i,l]),{scrollByCallback:function(e){!0===a&&(e={...void 0!==e.behavior?{behavior:e.behavior}:{},...void 0!==e.top?{left:e.top}:{}}),u.current.scrollBy(e)},scrollerRef:u,scrollToCallback:function(o){let n,r,i,l=u.current;if(!l||(!0===a?"offsetWidth"in l&&0===l.offsetWidth:"offsetHeight"in l&&0===l.offsetHeight))return;let s="smooth"===o.behavior;ts(l)?(r=Math.max(es(l.document.documentElement,!0===a?"width":"height"),!0===a?l.document.documentElement.scrollWidth:l.document.documentElement.scrollHeight),n=!0===a?l.innerWidth:l.innerHeight,i=!0===a?window.scrollX:window.scrollY):(r=l[!0===a?"scrollWidth":"scrollHeight"],n=es(l,!0===a?"width":"height"),i=l[!0===a?"scrollLeft":"scrollTop"]);let f=r-n;if(o.top=Math.ceil(Math.max(Math.min(f,o.top),0)),ek(n,r)||o.top===i){e({scrollHeight:r,scrollTop:i,viewportHeight:n}),s&&t(!0);return}s?(d.current=o.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,d.current=null,t(!0)},1e3)):d.current=null,!0===a&&(o={...void 0!==o.behavior?{behavior:o.behavior}:{},left:o.top}),l.scrollTo(o)}}}function tu(e){return e}let td=k(()=>{let e=y(e=>`Item ${e}`),t=y(e=>`Group ${e}`),o=y({}),n=y(tu),r=y("div"),i=y(s),l=(e,t=null)=>z(T(o,v(t=>t[e]),p()),t);return{components:o,computeItemKey:n,EmptyPlaceholder:l("EmptyPlaceholder"),FooterComponent:l("Footer"),GroupComponent:l("Group","div"),groupContent:t,HeaderComponent:l("Header"),HeaderFooterTag:r,ItemComponent:l("Item","div"),itemContent:e,ListComponent:l("List","div"),ScrollerComponent:l("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TopItemListComponent:l("TopItemList")}}),tc=k(([e,t])=>({...e,...t}),u(e7,td)),tf=({height:e})=>(0,t.jsx)("div",{style:{height:e}}),th={overflowAnchor:"none",position:ti(),zIndex:1},tm={overflowAnchor:"none"},tg={...tm,display:"inline-block",height:"100%"},tp=o.default.memo(function({showTopList:e=!1}){let n=tL("listState"),r=tO("sizeRanges"),i=tL("useWindowScroll"),l=tL("customScrollParent"),a=tO("windowScrollContainerState"),u=tO("scrollContainerState"),d=tL("itemContent"),c=tL("context"),f=tL("groupContent"),h=tL("trackItemSizes"),m=tL("itemSize"),g=tL("log"),p=tO("gap"),x=tL("horizontalDirection"),{callbackRef:v}=A(r,m,h,e?s:l||i?a:u,g,p,l,x,tL("skipAnimationFrameInResizeObserver")),[I,T]=o.default.useState(0);tE("deviation",e=>{I!==e&&T(e)});let S=tL("EmptyPlaceholder"),C=tL("ScrollSeekPlaceholder")??tf,w=tL("ListComponent"),H=tL("ItemComponent"),y=tL("GroupComponent"),z=tL("computeItemKey"),b=tL("isSeeking"),R=tL("groupIndices").length>0,k=tL("alignToBottom"),B=tL("initialItemFinalLocationReached"),E=e?{}:{boxSizing:"border-box",...x?{display:"inline-block",height:"100%",marginLeft:0!==I?I:k?"auto":0,paddingLeft:n.offsetTop,paddingRight:n.offsetBottom,whiteSpace:"nowrap"}:{marginTop:0!==I?I:k?"auto":0,paddingBottom:n.offsetBottom,paddingTop:n.offsetTop},...B?{}:{visibility:"hidden"}};return e||0!==n.totalCount||null==S?(0,t.jsx)(w,{...tS(w,c),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:v,style:E,children:(e?n.topItems:n.items).map(e=>{let t=e.originalIndex,r=z(t+n.firstItemIndex,e.data,c);return b?(0,o.createElement)(C,{...tS(C,c),height:e.size,index:e.index,key:r,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,o.createElement)(y,{...tS(y,c),"data-index":t,"data-item-index":e.index,"data-known-size":e.size,key:r,style:th},f(e.index,c)):(0,o.createElement)(H,{...tS(H,c),...tC(H,e.data),"data-index":t,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:x?tg:tm},R?d(e.index,e.groupIndex,e.data,c):d(e.index,e.data,c))})}):(0,t.jsx)(S,{...tS(S,c)})}),tx={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tv={outline:"none",overflowX:"auto",position:"relative"},tI=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),tT={position:ti(),top:0,width:"100%",zIndex:1};function tS(e,t){if("string"!=typeof e)return{context:t}}function tC(e,t){return{item:"string"==typeof e?void 0:t}}let tw=o.default.memo(function(){let e=tL("HeaderComponent"),n=tO("headerHeight"),r=tL("HeaderFooterTag"),i=M(o.default.useMemo(()=>e=>{n(es(e,"height"))},[n]),!0,tL("skipAnimationFrameInResizeObserver")),l=tL("context");return null!=e?(0,t.jsx)(r,{ref:i,children:(0,t.jsx)(e,{...tS(e,l)})}):null}),tH=o.default.memo(function(){let e=tL("FooterComponent"),n=tO("footerHeight"),r=tL("HeaderFooterTag"),i=M(o.default.useMemo(()=>e=>{n(es(e,"height"))},[n]),!0,tL("skipAnimationFrameInResizeObserver")),l=tL("context");return null!=e?(0,t.jsx)(r,{ref:i,children:(0,t.jsx)(e,{...tS(e,l)})}):null});function ty({useEmitter:e,useEmitterValue:n,usePublisher:r}){return o.default.memo(function({children:o,style:i,context:l,...s}
2){let a=r("scrollContainerState"),u=n("ScrollerComponent"),d=r("smoothScrollTargetReached"),c=n("scrollerRef"),f=n("horizontalDirection")||!1,{scrollByCallback:h,scrollerRef:m,scrollToCallback:g}=ta(a,d,u,c,void 0,f);return e("scrollTo",g),e("scrollBy",h),(0,t.jsx)(u,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:m,style:{...f?tv:tx,...i},tabIndex:0,...s,...tS(u,l),children:o})})}function tz({useEmitter:e,useEmitterValue:n,usePublisher:r}){return o.default.memo(function({children:i,style:l,context:s,...a}){let u=r("windowScrollContainerState"),d=n("ScrollerComponent"),c=r("smoothScrollTargetReached"),f=n("totalListHeight"),h=n("deviation"),m=n("customScrollParent"),g=o.default.useRef(null),{scrollByCallback:p,scrollerRef:x,scrollToCallback:v}=ta(u,c,d,n("scrollerRef"),m);return tl(()=>(x.current=m||g.current?.ownerDocument.defaultView,()=>{x.current=null}),[x,m]),e("windowScrollTo",v),e("scrollBy",p),(0,t.jsx)(d,{ref:g,"data-virtuoso-scroller":!0,style:{position:"relative",...l,...0!==f?{height:f+h}:void 0},...a,...tS(d,s),children:i})})}let tb=({children:e})=>{let n=o.default.useContext(tt),r=tO("viewportHeight"),l=tO("fixedItemHeight"),s=tL("alignToBottom"),a=tL("horizontalDirection"),u=M(o.default.useMemo(()=>i(r,e=>es(e,a?"width":"height")),[r,a]),!0,tL("skipAnimationFrameInResizeObserver"));return o.default.useEffect(()=>{n&&(r(n.viewportHeight),l(n.itemHeight))},[n,r,l]),(0,t.jsx)("div",{"data-viewport-type":"element",ref:u,style:tI(s),children:e})},tR=({children:e})=>{let n=o.default.useContext(tt),r=tO("windowViewportRect"),i=tO("fixedItemHeight"),l=D(r,tL("customScrollParent"),tL("skipAnimationFrameInResizeObserver")),s=tL("alignToBottom");return o.default.useEffect(()=>{n&&(i(n.itemHeight),r({listHeight:0,offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))},[n,r,i]),(0,t.jsx)("div",{"data-viewport-type":"window",ref:l,style:tI(s),children:e})},tk=({children:e})=>{let o=tL("TopItemListComponent")??"div",n=tL("headerHeight"),r={...tT,marginTop:`${n}px`},i=tL("context");return(0,t.jsx)(o,{style:r,...tS(o,i),children:e})},{Component:tB,useEmitter:tE,useEmitterValue:tL,usePublisher:tO}=te(tc,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.default.memo(function(e){let o=tL("useWindowScroll"),n=tL("topItemsIndexes").length>0,r=tL("customScrollParent"),i=tL("context");return(0,t.jsxs)(r||o?tj:tF,{...e,context:i,children:[n&&(0,t.jsx)(tk,{children:(0,t.jsx)(tp,{showTopList:!0})}),(0,t.jsxs)(r||o?tR:tb,{children:[(0,t.jsx)(tw,{}),(0,t.jsx)(tp,{}),(0,t.jsx)(tH,{})]})]})})),tF=ty({useEmitter:tE,useEmitterValue:tL,usePublisher:tO}),tj=tz({useEmitter:tE,useEmitterValue:tL,usePublisher:tO}),tP=k(()=>{let e=y(e=>(0,t.jsxs)("td",{children:["Item $",e]})),o=y(null),n=y(e=>(0,t.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=y(null),i=y(null),l=y({}),a=y(tu),u=y(s),d=(e,t=null)=>
2z(T(l,v(t=>t[e]),p()),t);return{components:l,computeItemKey:a,context:o,EmptyPlaceholder:d("EmptyPlaceholder"),FillerRow:d("FillerRow"),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:d("Scroller","div"),scrollerRef:u,ScrollSeekPlaceholder:d("ScrollSeekPlaceholder"),TableBodyComponent:d("TableBody","tbody"),TableComponent:d("Table","table"),TableFooterComponent:d("TableFoot","tfoot"),TableHeadComponent:d("TableHead","thead"),TableRowComponent:d("TableRow","tr"),GroupComponent:d("Group","tr")}}),tM=k(([e,t])=>({...e,...t}),u(e7,tP)),tW=({height:e})=>(0,t.jsx)("tr",{children:(0,t.jsx)("td",{style:{height:e}})}),tA=({height:e})=>(0,t.jsx)("tr",{children:(0,t.jsx)("td",{style:{border:0,height:e,padding:0}})}),tV={overflowAnchor:"none"},tD={position:ti(),zIndex:2,overflowAnchor:"none"},tG=o.default.memo(function({showTopList:e=!1}){let t=tU("listState"),n=tU("computeItemKey"),r=tU("firstItemIndex"),i=tU("context"),l=tU("isSeeking"),s=tU("fixedHeaderHeight"),a=tU("groupIndices").length>0,u=tU("itemContent"),d=tU("groupContent"),c=tU("ScrollSeekPlaceholder")??tW,f=tU("GroupComponent"),h=tU("TableRowComponent"),m=(e?t.topItems:[]).reduce((e,t,o)=>(0===o?e.push(t.size):e.push(e[o-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let g=t.originalIndex,p=n(g+r,t.data,i),x=e?0===g?0:m[g-1]:0;return l?(0,o.createElement)(c,{...tS(c,i),height:t.size,index:t.index,key:p,type:t.type||"item"}):"group"===t.type?(0,o.createElement)(f,{...tS(f,i),"data-index":g,"data-item-index":t.index,"data-known-size":t.size,key:p,style:{...tD,top:s}},d(t.index,i)):(0,o.createElement)(h,{...tS(h,i),...tC(h,t.data),"data-index":g,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:p,style:e?{...tD,top:s+x}:tV},a?u(t.index,t.groupIndex,t.data,i):u(t.index,t.data,i))})}),tN=o.default.memo(function(){let e=tU("listState"),n=tU("topItemsIndexes").length>0,r=t$("sizeRanges"),i=tU("useWindowScroll"),l=tU("customScrollParent"),s=t$("windowScrollContainerState"),a=t$("scrollContainerState"),u=tU("trackItemSizes"),{callbackRef:d,ref:c}=A(r,tU("itemSize"),u,l||i?s:a,tU("log"),void 0,l,!1,tU("skipAnimationFrameInResizeObserver")),[f,h]=o.default.useState(0);tq("deviation",e=>{f!==e&&(c.current.style.marginTop=`${e}px`,h(e))});let m=tU("EmptyPlaceholder"),g=tU("FillerRow")??tA,p=tU("TableBodyComponent"),x=tU("paddingTopAddition"),v=tU("statefulTotalCount"),I=tU("context");if(0===v&&null!=m)return(0,t.jsx)(m,{...tS(m,I)});let T=(n?e.topItems:[]).reduce((e,t)=>e+t.size,0),S=e.offsetTop+x+f-T,C=e.offsetBottom,w=S>0?(0,t.jsx)(g,{context:I,height:S},"padding-top"):null,H=C>0?(0,t.jsx)(g,{context:I,height:C},"padding-bottom"):null;return(0,t.jsxs)(p,{"data-testid":"virtuoso-item-list",ref:d,...tS(p,I),children:[w,n&&(0,t.jsx)(tG,{showTopList:!0}),(0,t.jsx)(tG,{}),H]})}),t_=({children:e})=>{let n=o.default.useContext(tt),r=t$("viewportHeight"),l=t$("fixedItemHeight"),s=M(o.default.useMemo(()=>i(r,e=>es(e,"height")),[r]),!0,tU("skipAnimationFrameInResizeObserver"));return o.default.useEffect(()=>{n&&(r(n.viewportHeight),l(n.itemHeight))},[n,r,l]),(0,t.jsx)("div",{"data-viewport-type":"element",ref:s,style:tI(!1),children:e})},tK=({children:e})=>{let n=o.default.useContext(tt),r=t$("windowViewportRect"),i=t$("fixedItemHeight"),l=D(r,tU("customScrollParent"),tU("skipAnimationFrameInResizeObserver"));return o.default.useEffect(()=>{n&&(i(n.itemHeight),r({listHeight:0,offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))},[n,r,i]),(0,t.jsx)("div",{"data-viewport-type":"window",ref:l,style:tI(!1),children:e})},{useEmitter:tq,useEmitterValue:tU,usePublisher:t$}=te(tM,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopM
2ostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.default.memo(function(e){let n=tU("useWindowScroll"),r=tU("customScrollParent"),l=t$("fixedHeaderHeight"),s=t$("fixedFooterHeight"),a=tU("fixedHeaderContent"),u=tU("fixedFooterContent"),d=tU("context"),c=M(o.default.useMemo(()=>i(l,e=>es(e,"height")),[l]),!0,tU("skipAnimationFrameInResizeObserver")),f=M(o.default.useMemo(()=>i(s,e=>es(e,"height")),[s]),!0,tU("skipAnimationFrameInResizeObserver")),h=r||n?tX:tY,m=r||n?tK:t_,g=tU("TableComponent"),p=tU("TableHeadComponent"),x=tU("TableFooterComponent"),v=a?(0,t.jsx)(p,{ref:c,style:{position:"sticky",top:0,zIndex:2},...tS(p,d),children:a()},"TableHead"):null,I=u?(0,t.jsx)(x,{ref:f,style:{bottom:0,position:"sticky",zIndex:1},...tS(x,d),children:u()},"TableFoot"):null;return(0,t.jsx)(h,{...e,...tS(h,d),children:(0,t.jsx)(m,{children:(0,t.jsxs)(g,{style:{borderSpacing:0,overflowAnchor:"none"},...tS(g,d),children:[v,(0,t.jsx)(tN,{},"TableBody"),I]})})})})),tY=ty({useEmitter:tq,useEmitterValue:tU,usePublisher:t$}),tX=tz({useEmitter:tq,useEmitterValue:tU,usePublisher:t$}),tZ={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},tJ={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:tQ,floor:t0,max:t1,min:t2,round:t3}=Math;function t5(e,t,o){return Array.from({length:t-e+1}).map((t,n)=>({data:null===o?null:o[n+e],index:n+e}))}function t4(e,t){return void 0!==e&&e.width===t.width&&e.height===t.height}function t9(e,t){return void 0!==e&&e.column===t.column&&e.row===t.row}let t8=k(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:i,scrollBy:l,scrollContainerState:s,scrollTo:a,scrollTop:u,smoothScrollTargetReached:d,viewportHeight:c},m,g,{didMount:S,propsReady:k},{customScrollParent:B,useWindowScroll:O,windowScrollContainerState:F,windowScrollTo:j,windowViewportRect:P},M])=>{let W=y(0),A=y(0),V=y(tZ),D=y({height:0,width:0}),G=y({height:0,width:0}
2),N=b(),_=b(),K=y(0),q=y(null),U=y({column:0,row:0}),$=b(),Y=b(),X=y(!1),Z=y(0),J=y(!0),Q=y(!1),ee=y(!1);T(S,H(Z),x(([e,t])=>0!==t))(1,()=>{J(0,!1)}),T(E(S,J,G,D,Z,Q),x(([e,t,o,n,,r])=>e&&!t&&0!==o.height&&0!==n.height&&!r))(1,([,,,,e])=>{Q(0,!0),ez(1,()=>{N(0,e)}),h(T(u),()=>{t(0,[0,0]),J(0,!0)})}),f(T(Y,x(e=>null!=e&&e.scrollTop>0),I(0)),A),T(S,H(Y),x(([,e])=>null!=e))(1,([,e])=>{e&&(D(0,e.viewport),G(0,e.item),U(0,e.gap),e.scrollTop>0&&(X(0,!0),h(T(u,C(1)),e=>{X(0,!1)}),a(0,{top:e.scrollTop})))}),f(T(D,v(({height:e})=>e)),c),f(T(E(L(D,t4),L(G,t4),L(U,(e,t)=>void 0!==e&&e.column===t.column&&e.row===t.row),L(u)),v(([e,t,o,n])=>({gap:o,item:t,scrollTop:n,viewport:e}))),$),f(T(E(L(W),n,L(U,t9),L(G,t4),L(D,t4),L(q),L(A),L(X),L(J),L(Z)),x(([,,,,,,,e])=>!e),v(([e,[t,o],n,r,i,l,s,,a,u])=>{let d,c,{column:f,row:h}=n,{height:m,width:g}=r,{width:p}=i;if(0===s&&(0===e||0===p))return tZ;if(0===g){var x;let t=eb(u,e),o=t+Math.max(s-1,0);return x=t5(t,o,l),{...tJ,items:x}}let v=t7(p,g,f);a?0===t&&0===o&&s>0?(d=0,c=s-1):(d=v*t0((t+h)/(m+h)),c=t2(e-1,t1(c=v*tQ((o+h)/(m+h))-1,v-1)),d=t2(c,t1(0,d))):(d=0,c=-1);let I=t5(d,c,l),{bottom:T,top:S}=t6(i,n,r,I),C=tQ(e/v);return{bottom:T,itemHeight:m,items:I,itemWidth:g,offsetBottom:C*m+(C-1)*h-T,offsetTop:S,top:S}})),V),f(T(q,x(e=>null!==e),v(e=>e.length)),W),f(T(E(D,G,V,U),x(([e,t,{items:o}])=>o.length>0&&0!==t.height&&0!==e.height),v(([e,t,{items:o},n])=>{let{bottom:r,top:i}=t6(e,n,t,o);return[i,r]}),p(er)),t);let et=y(!1);f(T(u,H(et),v(([e,t])=>t||0!==e)),et);let eo=R(T(E(V,W),x(([{items:e}])=>e.length>0),H(et),x(([[e,t],o])=>{let n=e.items[e.items.length-1].index===t-1;return(o||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&n}),v(([[,e]])=>e-1),p())),ei=R(T(L(V),x(({items:e})=>e.length>0&&0===e[0].index),I(0),p())),el=R(T(L(V),H(X),x(([{items:e},t])=>e.length>0&&!t),v(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),p(en),w(0)));f(el,g.scrollSeekRangeChanged),f(T(N,H(D,G,W,U),v(([e,t,o,n,r])=>{let i=eH(e),{align:l,behavior:s,offset:a}=i,u=i.index;"LAST"===u&&(u=n-1);let d=oe(t,r,o,u=t1(0,u,t2(n-1,u)));return"end"===l?d=t3(d-t.height+o.height):"center"===l&&(d=t3(d-t.height/2+o.height/2)),void 0!==a&&0!==a&&(d+=a),{behavior:s,top:d}})),a);let es=z(T(V,v(e=>e.offsetBottom+e.bottom)),0);return f(T(P,v(e=>({height:e.visibleHeight,width:e.visibleWidth}))),D),{customScrollParent:B,data:q,deviation:K,footerHeight:r,gap:U,headerHeight:i,increaseViewportBy:e,initialItemCount:A,itemDimensions:G,overscan:o,restoreStateFrom:Y,scrollBy:l,scrollContainerState:s,scrollHeight:_,scrollTo:a,scrollToIndex:N,scrollTop:u,smoothScrollTargetReached:d,totalCount:W,useWindowScroll:O,viewportDimensions:D,windowScrollContainerState:F,windowScrollTo:j,windowViewportRect:P,...g,gridState:V,horizontalDirection:ee,initialTopMostItemIndex:Z,totalListHeight:es,...m,endReached:eo,propsReady:k,rangeChanged:el,startReached:ei,stateChanged:$,stateRestoreInProgress:X,...M}},u(eM,G,eL,eQ,eC,e0,P));function t7(e,t,o){return t1(1,t0((e+o)/(t0(t)+o)))}function t6(e,t,o,n){let{height:r}=o;if(void 0===r||0===n.length)return{bottom:0,top:0};let i=oe(e,t,o,n[0].index);return{bottom:oe(e,t,o,n[n.length-1].index)+r,top:i}}function oe(e,t,o,n){let r=t0(n/t7(e.width,o.width,t.column)),i=r*o.height+t1(0,r-1)*t.row;return i>0?i+t.row:i}let ot=k(()=>{let e=y(e=>`Item ${e}`),t=y({}),o=y(null),n=y("virtuoso-grid-item"),r=y("virtuoso-grid-list"),i=y(tu),l=y("div"),a=y(s),u=(e,o=null)=>
2z(T(t,v(t=>t[e]),p()),o),d=y(!1),c=y(!1);return f(L(c),d),{components:t,computeItemKey:i,context:o,FooterComponent:u("Footer"),HeaderComponent:u("Header"),headerFooterTag:l,itemClassName:n,ItemComponent:u("Item","div"),itemContent:e,listClassName:r,ListComponent:u("List","div"),readyStateChanged:d,reportReadyState:c,ScrollerComponent:u("Scroller","div"),scrollerRef:a,ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}}),oo=k(([e,t])=>({...e,...t}),u(t8,ot)),on=o.default.memo(function(){let e=ou("gridState"),n=ou("listClassName"),r=ou("itemClassName"),i=ou("itemContent"),l=ou("computeItemKey"),s=ou("isSeeking"),a=od("scrollHeight"),u=ou("ItemComponent"),d=ou("ListComponent"),c=ou("ScrollSeekPlaceholder"),f=ou("context"),h=od("itemDimensions"),m=od("gap"),g=ou("log"),p=ou("stateRestoreInProgress"),x=od("reportReadyState"),v=M(o.default.useMemo(()=>e=>{a(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(null!==t){let{height:e,width:o}=t.getBoundingClientRect();h({height:e,width:o})}m({column:oh("column-gap",getComputedStyle(e).columnGap,g),row:oh("row-gap",getComputedStyle(e).rowGap,g)})},[a,h,m,g]),!0,!1);return tl(()=>{e.itemHeight>0&&e.itemWidth>0&&x(!0)},[e]),p?null:(0,t.jsx)(d,{className:n,ref:v,...tS(d,f),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(n=>{let a=l(n.index,n.data,f);return s?(0,t.jsx)(c,{...tS(c,f),height:e.itemHeight,index:n.index,width:e.itemWidth},a):(0,o.createElement)(u,{...tS(u,f),className:r,"data-index":n.index,key:a},i(n.index,n.data,f))})})}),or=o.default.memo(function(){let e=ou("HeaderComponent"),n=od("headerHeight"),r=ou("headerFooterTag"),i=M(o.default.useMemo(()=>e=>{n(es(e,"height"))},[n]),!0,!1),l=ou("context");return null!=e?(0,t.jsx)(r,{ref:i,children:(0,t.jsx)(e,{...tS(e,l)})}):null}),oi=o.default.memo(function(){let e=ou("FooterComponent"),n=od("footerHeight"),r=ou("headerFooterTag"),i=M(o.default.useMemo(()=>e=>{n(es(e,"height"))},[n]),!0,!1),l=ou("context");return null!=e?(0,t.jsx)(r,{ref:i,children:(0,t.jsx)(e,{...tS(e,l)})}):null}),ol=({children:e})=>{let n=o.default.useContext(to),r=od("itemDimensions"),i=od("viewportDimensions"),l=M(o.default.useMemo(()=>e=>{i(e.getBoundingClientRect())},[i]),!0,!1);return o.default.useEffect(()=>{n&&(i({height:n.viewportHeight,width:n.viewportWidth}),r({height:n.itemHeight,width:n.itemWidth}))},[n,i,r]),(0,t.jsx)("div",{ref:l,style:tI(!1),children:e})},os=({children:e})=>{let n=o.default.useContext(to),r=od("windowViewportRect"),i=od("itemDimensions"),l=D(r,ou("customScrollParent"),!1);return o.default.useEffect(()=>{n&&(i({height:n.itemHeight,width:n.itemWidth}),r({listHeight:0,offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:n.viewportWidth}))},[n,r,i]),(0,t.jsx)("div",{ref:l,style:tI(!1),children:e})},{useEmitter:oa,useEmitterValue:ou,usePublisher:od}=te(oo,{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"}},o.default.memo(function({...e}){let o=ou("useWindowScroll"),n=ou("customScrollParent"),r=n||o?of:oc,i=n||o?os:ol,l=ou("context");return(0,t.jsx)(r,{...e,...tS(r,l),children:(0,t.jsxs)(i,{children:[(0,t.jsx)(or,{}),(0,t.jsx)(on,{}),(0,t.jsx)(oi,{})]})})})),oc=ty({useEmitter:oa,useEmitterValue:ou,usePublisher:od}),of=tz({useEmitter:oa,useEmitterValue:ou,usePublisher:od});function oh(e,t,o){return"normal"!==t&&t?.endsWith("px")!==!0&&o(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:p
2arseInt(t??"0",10)}e.s(["Virtuoso",0,tB])}]);
3
4//# debugId=e245a5f6-600c-fc68-233d-0dce08c28afb
5//# sourceMappingURL=3va61p8v_rfy8.js.map

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.