PageSourceSearch

https://www.yeoshin.co.kr/_next/static/chunks/2mvh-pzoe8i1s.js

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

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.