PageSourceSearch

https://cdn.pixai.art/artifacts/app-1.0.2605/assets/vendor-virtuoso-DGHGbJ1_.js

js pixai.art collected 2026-09-24 10:13:02 UTC 60,583 bytes, 1 lines download raw bytes

1import{o as Bo}from"./rolldown-runtime-b_fG2Gut.js";import{a as sn,i as an,r as cn}from"./vendor-react-DV9bK1m_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(o){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i])}return o})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:pixai-web-app-key":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="58d7d036-77da-4b45-83cf-b6e18f10a79f",e._sentryDebugIdIdentifier="sentry-dbid-58d7d036-77da-4b45-83cf-b6e18f10a79f")}catch{}})();var F=an(),b=Bo(sn(),1),un=Bo(cn(),1),wt=0,Ae=1,Ze=2,Eo=4;function lo(e){return()=>e}function dn(e){e()}function tt(e,t){return o=>e(t(o))}function so(e,t){return()=>e(t)}function hn(e,t){return o=>e(t,o)}function Pt(e){return e!==void 0}function mn(...e){return()=>{e.map(dn)}}function Ye(){}function St(e,t){return t(e),e}function fn(e,t){return t(e)}function ee(...e){return e}function $(e,t){return e(Ae,t)}function L(e,t){e(wt,t)}function At(e){e(Ze)}function ne(e){return e(Eo)}function k(e,t){return $(e,hn(t,wt))}function Re(e,t){const o=e(Ae,n=>{o(),t(n)});return o}function ao(e){let t,o;return n=>r=>{t=r,o&&clearTimeout(o),o=setTimeout(()=>{n(t)},e)}}function ko(e,t){return e===t}function J(e=ko){let t;return o=>n=>{e(t,n)||(t=n,o(n))}}function P(e){return t=>o=>{e(o)&&t(o)}}function B(e){return t=>tt(t,e)}function ke(e){return t=>()=>{t(e)}}function T(e,...t){const o=pn(...t);return((n,r)=>{switch(n){case Ze:At(e);return;case Ae:return $(e,o(r))}})}function Oe(e,t){return o=>n=>{o(t=e(t,n))}}function Ge(e){return t=>o=>{e>0?e--:t(o)}}function je(e){let t=null,o;return n=>r=>{t=r,!o&&(o=setTimeout(()=>{o=void 0,n(t)},e))}}function _(...e){const t=new Array(e.length);let o=0,n=null;const r=Math.pow(2,e.length)-1;return e.forEach((i,l)=>{const s=Math.pow(2,l);$(i,a=>{const c=o;o=o|s,t[l]=a,c!==r&&o===r&&n&&(n(),n=null)})}),i=>l=>{const s=()=>{i([l].concat(t))};o===r?s():n=s}}function pn(...e){return t=>e.reduceRight(fn,t)}function gn(e){let t,o;const n=()=>t?.();return function(r,i){switch(r){case Ae:return i?o===i?void 0:(n(),o=i,t=$(e,i),t):(n(),Ye);case Ze:n(),o=null;return}}}function C(e){let t=e;const o=K();return((n,r)=>{switch(n){case wt:t=r;break;case Ae:r(t);break;case Eo:return t}return o(n,r)})}function pe(e,t){return St(C(t),o=>k(e,o))}function K(){const e=[];return((t,o)=>{switch(t){case wt:e.slice().forEach(n=>{n(o)});return;case Ze:e.splice(0,e.length);return;case Ae:return e.push(o),()=>{const n=e.indexOf(o);n>-1&&e.splice(n,1)}}})}function ye(e){return St(K(),t=>k(e,t))}function q(e,t=[],{singleton:o}={singleton:!0}){return{constructor:e,dependencies:t,id:xn(),singleton:o}}var xn=()=>Symbol();function vn(e){const t=new Map,o=({constructor:n,dependencies:r,id:i,singleton:l})=>{if(l&&t.has(i))return t.get(i);const s=n(r.map(a=>o(a)));return l&&t.set(i,s),s};return o(e)}function ae(...e){const t=K(),o=new Array(e.length);let n=0;const r=Math.pow(2,e.length)-1;return e.forEach((i,l)=>{const s=Math.pow(2,l);$(i,a=>{o[l]=a,n=n|s,n===r&&L(t,o)})}),function(i,l){switch(i){case Ze:At(t);return;case Ae:return n===r&&l(o),$(t,l)}}}function j(e,t=ko){return T(e,J(t))}function kt(...e){return function(t,o){switch(t){case Ze:return;case Ae:return mn(...e.map(n=>$(n,o)))}}}var Ie=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Ie||{}),In={0:"debug",3:"error",1:"log",2:"warn"},Tn=()=>typeof globalThis>"u"?window:globalThis,Pe=q(()=>{const e=C(3);return{log:C((t,o,n=1)=>{var r;n>=((r=Tn().VIRTUOSO_LOG_LEVEL)!=null?r:ne(e))&&console[In[n]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,o)}),logLevel:e}},[],{singleton:!0});function Fe(e,t,o){return Vt(e,t,o).callbackRef}function Vt(e,t,o){const n=b.useRef(null);let r=l=>{};const i=b.useMemo(()=>typeof ResizeObserver<"u"?new ResizeObserver(l=>{const s=()=>{const a=l[0].target;a.offsetParent!==null&&e(a)};o?s():requestAnimationFrame(s)}):null,[e,o]);return r=l=>{l&&t?(i?.observe(l),n.current=l):(n.current&&i?.unobserve(n.current),n.current=null)},{callbackRef:r,ref:n}}function Oo(e,t,o,n,r,i,l,s,a){return Vt(b.useCallback(c=>{const f=wn(c.children,t,s?"offsetWidth":"offsetHeight",r);let p=c.parentElement;for(;!p.dataset.virtuosoScroller;)p=p.parentElement;const v=p.lastElementChild.dataset.viewportType==="window";let g;v&&(g=p.ownerDocument.defaultView);const S=l?s?l.scrollLeft:l.scrollTop:v?s?g.scrollX||g.document.documentElement.scrollLeft:g.scrollY||g.document.documentElement.scrollTop:s?p.scrollLeft:p.scrollTop,I=l?s?l.scrollWidth:l.scrollHeight:v?s?g.document.documentElement.scrollWidth:g.document.documentElement.scrollHeight:s?p.scrollWidth:p.scrollHeight,m=l?s?l.offsetWidth:l.offsetHeight:v?s?g.innerWidth:g.innerHe
1ight:s?p.offsetWidth:p.offsetHeight;n({scrollHeight:I,scrollTop:Math.max(S,0),viewportHeight:m}),i?.(s?co("column-gap",getComputedStyle(c).columnGap,r):co("row-gap",getComputedStyle(c).rowGap,r)),f!==null&&e(f)},[e,t,r,i,l,n,s]),o,a)}function wn(e,t,o,n){const r=e.length;if(r===0)return null;const i=[];for(let l=0;l<r;l++){const s=e.item(l);if(s.dataset.index===void 0)continue;const a=parseInt(s.dataset.index),c=parseFloat(s.dataset.knownSize),f=t(s,o);if(f===0&&n("Zero-sized element, this should not happen",{child:s},Ie.ERROR),f===c)continue;const p=i[i.length-1];i.length===0||p.size!==f||p.endIndex!==a-1?i.push({endIndex:a,size:f,startIndex:a}):i[i.length-1].endIndex++}return i}function co(e,t,o){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&o(`${e} was not resolved to pixel value correctly`,t,Ie.WARN),t==="normal"?0:parseInt(t??"0",10)}function Dt(e,t,o){const n=b.useRef(null),r=b.useCallback(a=>{if(!(a!=null&&a.offsetParent))return;const c=a.getBoundingClientRect(),f=c.width;let p,v;if(t){const g=t.getBoundingClientRect(),S=c.top-g.top;v=g.height-Math.max(0,S),p=S+t.scrollTop}else{const g=l.current.ownerDocument.defaultView;v=g.innerHeight-Math.max(0,c.top),p=c.top+g.scrollY}n.current={offsetTop:p,visibleHeight:v,visibleWidth:f},e(n.current)},[e,t]),{callbackRef:i,ref:l}=Vt(r,!0,o),s=b.useCallback(()=>{r(l.current)},[r,l]);return b.useEffect(()=>{var a;if(t){t.addEventListener("scroll",s);const c=new ResizeObserver(()=>{requestAnimationFrame(s)});return c.observe(t),()=>{t.removeEventListener("scroll",s),c.unobserve(t)}}else{const c=(a=l.current)==null?void 0:a.ownerDocument.defaultView;return c?.addEventListener("scroll",s),c?.addEventListener("resize",s),()=>{c?.removeEventListener("scroll",s),c?.removeEventListener("resize",s)}}},[s,t,l]),i}var xe=q(()=>{const e=K(),t=K(),o=C(0),n=K(),r=C(0),i=K(),l=K(),s=C(0),a=C(0),c=C(0),f=C(0),p=K(),v=K(),g=C(!1),S=C(!1),I=C(!1);return k(T(e,B(({scrollTop:m})=>m)),t),k(T(e,B(({scrollHeight:m})=>m)),l),k(t,r),{deviation:o,fixedFooterHeight:c,fixedHeaderHeight:a,footerHeight:f,headerHeight:s,horizontalDirection:S,scrollBy:v,scrollContainerState:e,scrollHeight:l,scrollingInProgress:g,scrollTo:p,scrollTop:t,skipAnimationFrameInResizeObserver:I,smoothScrollTargetReached:n,statefulScrollTop:r,viewportHeight:i}},[],{singleton:!0}),ot={lvl:0};function Fo(e,t){const o=e.length;if(o===0)return[];let{index:n,value:r}=t(e[0]);const i=[];for(let l=1;l<o;l++){const{index:s,value:a}=t(e[l]);i.push({end:s-1,start:n,value:r}),n=s,r=a}return i.push({end:1/0,start:n,value:r}),i}function Y(e){return e===ot}function nt(e,t){if(!Y(e))return t===e.k?e.v:t<e.k?nt(e.l,t):nt(e.r,t)}function Be(e,t,o="k"){if(Y(e))return[-1/0,void 0];if(Number(e[o])===t)return[e.k,e.v];if(Number(e[o])<t){const n=Be(e.r,t,o);return n[0]===-1/0?[e.k,e.v]:n}return Be(e.l,t,o)}function Ce(e,t,o){return Y(e)?jo(t,o,1):t===e.k?ce(e,{k:t,v:o}):t<e.k?uo(ce(e,{l:Ce(e.l,t,o)})):uo(ce(e,{r:Ce(e.r,t,o)}))}function qe(){return ot}function $e(e,t,o){if(Y(e))return[];const n=Be(e,t)[0];return Sn(Ft(e,n,o))}function Ot(e,t){if(Y(e))return ot;const{k:o,l:n,r}=e;if(t===o){if(Y(n))return r;if(Y(r))return n;{const[i,l]=Wo(n);return xt(ce(e,{k:i,l:Mo(n),v:l}))}}else return t<o?xt(ce(e,{l:Ot(n,t)})):xt(ce(e,{r:Ot(r,t)}))}function _e(e){return Y(e)?[]:[..._e(e.l),{k:e.k,v:e.v},..._e(e.r)]}function Ft(e,t,o){if(Y(e))return[];const{k:n,l:r,r:i,v:l}=e;let s=[];return n>t&&(s=s.concat(Ft(r,t,o))),n>=t&&n<=o&&s.push({k:n,v:l}),n<=o&&(s=s.concat(Ft(i,t,o))),s}function xt(e){const{l:t,lvl:o,r:n}=e;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(zt(t))return Po(ce(e,{lvl:o-1}));if(!Y(t)&&!Y(t.r))return ce(t.r,{l:ce(t,{r:t.r.l}),lvl:o,r:ce(e,{l:t.r.r,lvl:o-1})});throw new Error("Unexpected empty nodes")}else{if(zt(e))return Mt(ce(e,{lvl:o-1}));if(!Y(n)&&!Y(n.l)){const r=n.l,i=zt(r)?n.lvl-1:n.lvl;return ce(r,{l:ce(e,{lvl:o-1,r:r.l}),lvl:r.lvl+1,r:Mt(ce(n,{l:r.r,lvl:i}))})}else throw new Error("Unexpected empty nodes")}}function ce(e,t){return jo(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function Mo(e){return Y(e.r)?e.l:xt(ce(e,{r:Mo(e.r)}))}function zt(e){return Y(e)||e.lvl>e.r.lvl}function Wo(e){return Y(e.r)?[e.k,e.v]:Wo(e.r)}function jo(e,t,o,n=ot,r=ot){return{k:e,l:n,lvl:o,r,v:t}}function uo(e){return Mt(Po(e))}function Po(e){const{l:t}=e;return!Y(t)&&t.lvl===e.lvl?ce(t,{r:ce(e,{l:t.r})}):e}function Mt(e){const{lvl:t,r:o}=e;return!Y(o)&&!Y(o.r)&&o.lvl===t&&o.r.lvl===t?ce(o,{l:ce(e,{r:o.l}),lvl:t+1}):e}function Sn(e){return Fo(e,({k:t,v:o})=>({index:t,value:o}))}function Ao(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function rt(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}var Lt=q(()=>({recalcInProgress:C(!1)}),[],{singleton:!0});function Vo(e,t,o){return e[It(e,t,o)]}function It(e,t,o,n=0){let r=e.length-1;for(;n<=r;){const i=Math.floor((n+r)/2),l=e[i],s=o(l,t);if(s===0)return i;if(s===-1){if(r-n<2)return i-1;r=i-1}else{if(r===n)return i;n=i+1}}
vendor: 4,106 bytes, line 1
1throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Cn(e,t,o,n){const r=It(e,t,n),i=It(e,o,n,r);return e.slice(r,i+1)}function Ee(e,t){return Math.round(e.getBoundingClientRect()[t])}function Ct(e){return!Y(e.groupOffsetTree)}function _t({index:e},t){return t===e?0:t<e?-1:1}function yn(){return{groupIndices:[],groupOffsetTree:qe(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:qe()}}function bn(e,t){let o=Y(e)?0:1/0;for(const n of t){const{endIndex:r,size:i,startIndex:l}=n;if(o=Math.min(o,l),Y(e)){e=Ce(e,0,i);continue}const s=$e(e,l-1,r+1);if(s.some(On(n)))continue;let a=!1,c=!1;for(const{end:f,start:p,value:v}of s)a?(r>=p||i===v)&&(e=Ot(e,p)):(c=v!==i,a=!0),f>r&&r>=p&&v!==i&&(e=Ce(e,r+1,v));c&&(e=Ce(e,l,i))}return[e,o]}function zn(e){return typeof e.groupIndex<"u"}function Rn({offset:e},t){return t===e?0:t<e?-1:1}function it(e,t,o){if(t.length===0)return 0;const{index:n,offset:r,size:i}=Vo(t,e,_t),l=e-n,s=i*l+(l-1)*o+r;return s>0?s+o:s}function Do(e,t){if(!Ct(t))return e;let o=0;for(;t.groupIndices[o]<=e+o;)o++;return e+o}function Lo(e,t,o){if(zn(e))return t.groupIndices[e.groupIndex]+1;{let n=Do(e.index==="LAST"?o:e.index,t);return n=Math.max(0,n,Math.min(o,n)),n}}function Hn(e,t,o,n=0){return n>0&&(t=Math.max(t,Vo(e,n,_t).offset)),Fo(Cn(e,t,o,Rn),kn)}function Bn(e,[t,o,n,r]){t.length>0&&n("received item sizes",t,Ie.DEBUG);const i=e.sizeTree;let l=i,s=0;if(o.length>0&&Y(i)&&t.length===2){const v=t[0].size,g=t[1].size;l=o.reduce((S,I)=>Ce(Ce(S,I,v),I+1,g),l)}else[l,s]=bn(l,t);if(l===i)return e;const{lastIndex:a,lastOffset:c,lastSize:f,offsetTree:p}=Wt(e.offsetTree,s,l,r);return{groupIndices:o,groupOffsetTree:o.reduce((v,g)=>Ce(v,g,it(g,p,r)),qe()),lastIndex:a,lastOffset:c,lastSize:f,offsetTree:p,sizeTree:l}}function En(e){return _e(e).map(({k:t,v:o},n,r)=>{const i=r[n+1];return{endIndex:i?i.k-1:1/0,size:o,startIndex:t}})}function ho(e,t){let o=0,n=0;for(;o<e;)o+=t[n+1]-t[n]-1,n++;return n-(o===e?0:1)}function Wt(e,t,o,n){let r=e,i=0,l=0,s=0,a=0;if(t!==0){a=It(r,t-1,_t),s=r[a].offset;const c=Be(o,t-1);i=c[0],l=c[1],r.length&&r[a].size===Be(o,t)[1]&&(a-=1),r=r.slice(0,a+1)}else r=[];for(const{start:c,value:f}of $e(o,t,1/0)){const p=c-i,v=p*l+s+p*n;r.push({index:c,offset:v,size:f}),i=c,s=v,l=f}return{lastIndex:i,lastOffset:s,lastSize:l,offsetTree:r}}function kn(e){return{index:e.index,value:e}}function On(e){const{endIndex:t,size:o,startIndex:n}=e;return r=>r.start===n&&(r.end===t||r.end===1/0)&&r.value===o}var Fn={offsetHeight:"height",offsetWidth:"width"},Me=q(([{log:e},{recalcInProgress:t}])=>{const o=K(),n=K(),r=pe(n,0),i=K(),l=K(),s=C(0),a=C([]),c=C(void 0),f=C(void 0),p=C(void 0),v=C(void 0),g=C((d,x)=>Ee(d,Fn[x])),S=C(void 0),I=C(0),m=yn(),u=pe(T(o,_(a,e,I),Oe(Bn,m),J()),m),h=pe(T(a,J(),Oe((d,x)=>({current:x,prev:d.current}),{current:[],prev:[]}),B(({prev:d})=>d)),[]);k(T(a,P(d=>d.length>0),_(u,I),B(([d,x,H])=>{const E=d.reduce((W,A,G)=>Ce(W,A,it(A,x.offsetTree,H)||G),qe());return{...x,groupIndices:d,groupOffsetTree:E}})),u),k(T(n,_(u),P(([d,{lastIndex:x}])=>d<x),B(([d,{lastIndex:x,lastSize:H}])=>[{endIndex:x,size:H,startIndex:d}])),o),k(c,f);const y=pe(T(c,B(d=>d===void 0)),!0);k(T(f,P(d=>d!==void 0&&Y(ne(u).sizeTree)),B(d=>{const x=ne(p),H=ne(a).length>0;return x?H?[{endIndex:0,size:x,startIndex:0},{endIndex:1,size:d,startIndex:1}]:[]:[{endIndex:0,size:d,startIndex:0}]})),o),k(T(v,P(d=>d!==void 0&&d.length>0&&Y(ne(u).sizeTree)),B(d=>{const x=[];let H=d[0],E=0;for(let W=1;W<d.length;W++){const A=d[W];A!==H&&(x.push({endIndex:W-1,size:H,startIndex:E}),H=A,E=W)}return x.push({endIndex:d.length-1,size:H,startIndex:E}),x})),o),k(T(a,_(p,f),P(([,d,x])=>d!==void 0&&x!==void 0),B(([d,x,H])=>{const E=[];for(let W=0;W<d.length;W++){const A=d[W],G=d[W+1];E.push({startIndex:A,endIndex:A,size:x}),G!==void 0&&E.push({startIndex:A+1,endIndex:G-1,size:H})}return E})),o);const M=ye(T(o,_(u),Oe(({sizes:d},[x,H])=>({changed:H!==d,sizes:H}),{changed:!1,sizes:m}),B(d=>d.changed)));$(T(s,Oe((d,x)=>({diff:d.prev-x,prev:x}),{diff:0,prev:0}),B(d=>d.diff)),d=>{const{groupIndices:x}=ne(u);
1if(d>0)L(t,!0),L(i,d+ho(d,x));else if(d<0){const H=ne(h);H.length>0&&(d-=ho(-d,H)),L(l,d)}}),$(T(s,_(e)),([d,x])=>{d<0&&x("`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},Ie.ERROR)});const R=ye(i);k(T(i,_(u),B(([d,x])=>{const H=x.groupIndices.length>0,E=[],W=x.lastSize;if(H){const A=nt(x.sizeTree,0);let G=0,O=0;for(;G<d;){const N=x.groupIndices[O],ue=x.groupIndices.length===O+1?1/0:x.groupIndices[O+1]-N-1;E.push({endIndex:N,size:A,startIndex:N}),E.push({endIndex:N+1+ue-1,size:W,startIndex:N+1}),O++,G+=ue+1}const Z=_e(x.sizeTree);return G!==d&&Z.shift(),Z.reduce((N,{k:ue,v:Te})=>{let we=N.ranges;return N.prevSize!==0&&(we=[...N.ranges,{endIndex:ue+d-1,size:N.prevSize,startIndex:N.prevIndex}]),{prevIndex:ue+d,prevSize:Te,ranges:we}},{prevIndex:d,prevSize:0,ranges:E}).ranges}return _e(x.sizeTree).reduce((A,{k:G,v:O})=>({prevIndex:G+d,prevSize:O,ranges:[...A.ranges,{endIndex:G+d-1,size:A.prevSize,startIndex:A.prevIndex}]}),{prevIndex:0,prevSize:W,ranges:[]}).ranges})),o);const w=ye(T(l,_(u,I),B(([d,{offsetTree:x},H])=>it(-d,x,H))));return k(T(l,_(u,I),B(([d,x,H])=>{if(x.groupIndices.length>0){if(Y(x.sizeTree))return x;let E=qe();const W=ne(h);let A=0,G=0,O=0;for(;A<-d;){O=W[G];const Z=W[G+1]-O-1;G++,A+=Z+1}if(E=_e(x.sizeTree).reduce((Z,{k:N,v:ue})=>Ce(Z,Math.max(0,N+d),ue),E),A!==-d){const Z=nt(x.sizeTree,O);E=Ce(E,0,Z);const N=Be(x.sizeTree,-d+1)[1];E=Ce(E,1,N)}return{...x,sizeTree:E,...Wt(x.offsetTree,0,E,H)}}else{const E=_e(x.sizeTree).reduce((W,{k:A,v:G})=>Ce(W,Math.max(0,A+d),G),qe());return{...x,sizeTree:E,...Wt(x.offsetTree,0,E,H)}}})),u),{beforeUnshiftWith:R,data:S,defaultItemSize:f,firstItemIndex:s,fixedItemSize:c,fixedGroupSize:p,gap:I,groupIndices:a,heightEstimates:v,itemSize:g,listRefresh:M,shiftWith:l,shiftWithOffset:w,sizeRanges:o,sizes:u,statefulTotalCount:r,totalCount:n,trackItemSizes:y,unshiftWith:i}},ee(Pe,Lt),{singleton:!0});function Mn(e){return e.reduce((t,o)=>(t.groupIndices.push(t.totalCount),t.totalCount+=o+1,t),{groupIndices:[],totalCount:0})}var _o=q(([{groupIndices:e,sizes:t,totalCount:o},{headerHeight:n,scrollTop:r}])=>{const i=K(),l=K(),s=ye(T(i,B(Mn)));return k(T(s,B(a=>a.totalCount)),o),k(T(s,B(a=>a.groupIndices)),e),k(T(ae(r,t,n),P(([a,c])=>Ct(c)),B(([a,c,f])=>Be(c.groupOffsetTree,Math.max(a-f,0),"v")[0]),J(),B(a=>[a])),l),{groupCounts:i,topItemsIndexes:l}},ee(Me,xe)),Ve=q(([{log:e}])=>{const t=C(!1),o=ye(T(t,P(n=>n),J()));return $(t,n=>{n&&ne(e)("props updated",{},Ie.DEBUG)}),{didMount:o,propsReady:t}},ee(Pe),{singleton:!0}),Wn=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Go(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!Wn)&&(t.behavior="auto"),t.offset||(t.offset=0),t}var ct=q(([{gap:e,listRefresh:t,sizes:o,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,footerHeight:l,headerHeight:s,scrollingInProgress:a,scrollTo:c,smoothScrollTargetReached:f,viewportHeight:p},{log:v}])=>{const g=K(),S=K(),I=C(0);let m=null,u=null,h=null;function y(){m&&(m(),m=null),h&&(h(),h=null),u&&(clearTimeout(u),u=null),L(a,!1)}return k(T(g,_(o,p,n,I,s,l,v),_(e,i,r),B(([[M,R,w,d,x,H,E,W],A,G,O])=>{const Z=Go(M),{align:N,behavior:ue,offset:Te}=Z,we=d-1,Se=Lo(Z,R,we);let fe=it(Se,R.offsetTree,A)+H;N==="end"?(fe+=G+Be(R.sizeTree,Se)[1]-w+O,Se===we&&(fe+=E)):N==="center"?fe+=(G+Be(R.sizeTree,Se)[1]-w+O)/2:fe-=x,Te&&(fe+=Te);const Ue=ve=>{y(),ve?(W("retrying to scroll to",{location:M},Ie.DEBUG),L(g,M)):(L(S,!0),W("list did not change, scroll successful",{},Ie.DEBUG))};if(y(),ue==="smooth"){let ve=!1;h=$(t,De=>{ve=ve||De}),m=Re(f,()=>{Ue(ve)})}else m=Re(T(t,jn(150)),Ue);return u=setTimeout(()=>{y()},1200),L(a,!0),W("scrolling from index to",{behavior:ue,index:Se,top:fe},Ie.DEBUG),{behavior:ue,top:fe}})),c),{scrollTargetReached:S,scrollToIndex:g,topListHeight:I}},ee(Me,xe,Pe),{singleton:!0});function jn(e){return t=>{const o=setTimeout(()=>{t(!1)},e);return n=>{n&&(t(!0),clearTimeout(o))}}}function Gt(e,t){e==0?t():requestAnimationFrame(()=>{Gt(e-1,t)})}function Nt(e,t){const o=t-1;return typeof e=="number"?e:e.index==="LAST"?o:e.index}var ut=q(([{defaultItemSize:e,listRefresh:t,sizes:o},{scrollTop:n},{scrollTargetReached:r,scrollToIndex:i},{didMount:l}])=>{const s=C(!0),a=C(0),c=C(!0);return k(T(l,_(a),P(([f,p])=>!!p),ke(!1)),s),k(T(l,_(a),P(([f,p])=>!!p),ke(!1)),c),$(T(ae(t,l),_(s,o,e,c),P(([[,f],p,{sizeTree:v},g,S])=>
1f&&(!Y(v)||Pt(g))&&!p&&!S),_(a)),([,f])=>{Re(r,()=>{L(c,!0)}),Gt(4,()=>{Re(n,()=>{L(s,!0)}),L(i,f)})}),{initialItemFinalLocationReached:c,initialTopMostItemIndex:a,scrolledToInitialItem:s}},ee(Me,xe,ct,Ve),{singleton:!0});function No(e,t){return Math.abs(e-t)<1.01}var lt="up",Qe="down",Pn="none",An={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},Vn=0,dt=q(([{footerHeight:e,headerHeight:t,scrollBy:o,scrollContainerState:n,scrollTop:r,viewportHeight:i}])=>{const l=C(!1),s=C(!0),a=K(),c=K(),f=C(4),p=C(Vn),v=pe(T(kt(T(j(r),Ge(1),ke(!0)),T(j(r),Ge(1),ke(!1),ao(100))),J()),!1),g=pe(T(kt(T(o,ke(!0)),T(o,ke(!1),ao(200))),J()),!1);k(T(ae(j(r),j(p)),B(([h,y])=>h<=y),J()),s),k(T(s,je(50)),c);const S=ye(T(ae(n,j(i),j(t),j(e),j(f)),Oe((h,[{scrollHeight:y,scrollTop:M},R,w,d,x])=>{const H=M+R-y>-x,E={scrollHeight:y,scrollTop:M,viewportHeight:R};if(H){let A,G;return M>h.state.scrollTop?(A="SCROLLED_DOWN",G=h.state.scrollTop-M):(A="SIZE_DECREASED",G=h.state.scrollTop-M||h.scrollTopDelta),{atBottom:!0,atBottomBecause:A,scrollTopDelta:G,state:E}}let W;return E.scrollHeight>h.state.scrollHeight?W="SIZE_INCREASED":R<h.state.viewportHeight?W="VIEWPORT_HEIGHT_DECREASING":M<h.state.scrollTop?W="SCROLLING_UPWARDS":W="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:W,state:E}},An),J((h,y)=>h&&h.atBottom===y.atBottom))),I=pe(T(n,Oe((h,{scrollHeight:y,scrollTop:M,viewportHeight:R})=>{if(No(h.scrollHeight,y))return{changed:!1,jump:0,scrollHeight:y,scrollTop:M};{const w=y-(M+R)<1;return h.scrollTop!==M&&w?{changed:!0,jump:h.scrollTop-M,scrollHeight:y,scrollTop:M}:{changed:!0,jump:0,scrollHeight:y,scrollTop:M}}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),P(h=>h.changed),B(h=>h.jump)),0);k(T(S,B(h=>h.atBottom)),l),k(T(l,je(50)),a);const m=C(Qe);k(T(n,B(({scrollTop:h})=>h),J(),Oe((h,y)=>ne(g)?{direction:h.direction,prevScrollTop:y}:{direction:y<h.prevScrollTop?lt:Qe,prevScrollTop:y},{direction:Qe,prevScrollTop:0}),B(h=>h.direction)),m),k(T(n,je(50),ke(Pn)),m);const u=C(0);return k(T(v,P(h=>!h),ke(0)),u),k(T(r,je(100),_(v),P(([h,y])=>y),Oe(([h,y],[M])=>[y,M],[0,0]),B(([h,y])=>y-h)),u),{atBottomState:S,atBottomStateChange:a,atBottomThreshold:f,atTopStateChange:c,atTopThreshold:p,isAtBottom:l,isAtTop:s,isScrolling:v,lastJumpDueToItemResize:I,scrollDirection:m,scrollVelocity:u}},ee(xe)),st="top",at="bottom",mo="none";function fo(e,t,o){return typeof e=="number"?o===lt&&t===st||o===Qe&&t===at?e:0:o===lt?t===st?e.main:e.reverse:t===at?e.main:e.reverse}function po(e,t){var o;return typeof e=="number"?e:(o=e[t])!=null?o:0}var Ut=q(([{deviation:e,fixedHeaderHeight:t,headerHeight:o,scrollTop:n,viewportHeight:r}])=>{const i=K(),l=C(0),s=C(0),a=C(0);return{increaseViewportBy:s,listBoundary:i,overscan:a,topListHeight:l,visibleRange:pe(T(ae(j(n),j(r),j(o),j(i,rt),j(a),j(l),j(t),j(e),j(s)),B(([c,f,p,[v,g],S,I,m,u,h])=>{const y=c-u,M=I+m,R=Math.max(p-y,0);let w=mo;const d=po(h,st),x=po(h,at);return v-=u,v+=p+m,g+=p+m,g-=u,v>c+M-d&&(w=lt),g<c-R+f+x&&(w=Qe),w!==mo?[Math.max(y-p-fo(S,st,w)-d,0),y-R-m+f+fo(S,at,w)+x]:null}),P(c=>c!=null),J(rt)),[0,0])}},ee(xe),{singleton:!0});function Dn(e,t,o){if(Ct(t)){const n=Do(e,t);return[{index:Be(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}]}var Rt={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function vt(e,t,o,n,r,i){const{lastIndex:l,lastOffset:s,lastSize:a}=r;let c=0,f=0;if(e.length>0){c=e[0].offset;const I=e[e.length-1];f=I.offset+I.size}const p=o-l,v=s+p*a+(p-1)*n,g=c,S=v-f;return{bottom:f,firstItemIndex:i,items:go(e,r,i),offsetBottom:S,offsetTop:c,top:g,topItems:go(t,r,i),topListHeight:t.reduce((I,m)=>m.size+I,0),totalCount:o}}function Uo(e,t,o,n,r,i){let l=0;if(o.groupIndices.length>0)for(const c of o.groupIndices){if(c-l>=e)break;l++}const s=e+l,a=Nt(t,s);return vt(Array.from({length:s}).map((c,f)=>({data:i[f+a],index:f+a,offset:0,size:0})),[],s,r,o,n)}function go(e,t,o){if(e.length===0)return[];if(!Ct(t))return e.map(c=>({...c,index:c.index+o,originalIndex:c.index}));const n=e[0].index,r=e[e.length-1].index,i=[],l=$e(t.groupOffsetTree,n,r);let s,a=0;for(const c of e){(!s||s.end<c.index)&&(s=l.shift(),a=t.groupIndices.indexOf(s.start));let f;c.index===s.start?f={index:a,type:"group"}:f={groupIndex:a,index:c.index-(a+1)+o},i.push({...f,data:c.data,offset:c.offset,originalIndex:c.index,size:c.size})}return i}function xo(e,t){var o;return e===void 0?0:typeof e=="number"?e:(o=e[t])!=null?o:0}var Ne=q(([{data:e,firstItemIndex:t,gap:o,sizes:n,totalCount:r},i,{listBoundary:l,topListHeight:s,visibleRange:a}
1,{initialTopMostItemIndex:c,scrolledToInitialItem:f},{topListHeight:p},v,{didMount:g},{recalcInProgress:S}])=>{const I=C([]),m=C(0),u=K(),h=C(0);k(i.topItemsIndexes,I);const y=pe(T(ae(g,S,j(a,rt),j(r),j(n),j(c),f,j(I),j(t),j(o),j(h),e),P(([w,d,,x,,,,,,,,H])=>{const E=H&&H.length!==x;return w&&!d&&!E}),B(([,,[w,d],x,H,E,W,A,G,O,Z,N])=>{var ue,Te,we,Se;const fe=H,{offsetTree:Ue,sizeTree:ve}=fe,De=ne(m);if(x===0)return{...Rt,totalCount:x};if(w===0&&d===0)return De===0?{...Rt,totalCount:x}:Uo(De,E,H,G,O,N||[]);if(Y(ve))return De>0?null:vt(Dn(Nt(E,x),fe,N),[],x,O,fe,G);const Je=[];if(A.length>0){const se=A[0],re=A[A.length-1];let me=0;for(const ie of $e(ve,se,re)){const te=ie.value,X=Math.max(ie.start,se),ge=Math.min(ie.end,re);for(let de=X;de<=ge;de++)Je.push({data:N?.[de],index:de,offset:me,size:te}),me+=te}}if(!W)return vt([],Je,x,O,fe,G);const We=A.length>0?A[A.length-1]+1:0,ht=Hn(Ue,w,d,We);if(ht.length===0)return null;const z=x-1,U=St([],se=>{for(const re of ht){const me=re.value;let ie=me.offset,te=re.start;const X=me.size;if(me.offset<w){te+=Math.floor((w-me.offset+O)/(X+O));const de=te-re.start;ie+=de*X+de*O}te<We&&(ie+=(We-te)*X,te=We);const ge=Math.min(re.end,z);for(let de=te;de<=ge&&!(ie>=d);de++)se.push({data:N?.[de],index:de,offset:ie,size:X}),ie+=X+O}}),le=xo(Z,st),he=xo(Z,at);if(U.length>0&&(le>0||he>0)){const se=U[0],re=U[U.length-1];if(le>0&&se.index>We){const me=Math.min(le,se.index-We),ie=[];let te=se.offset;for(let X=se.index-1;X>=se.index-me;X--){const ge=(Te=(ue=$e(ve,X,X)[0])==null?void 0:ue.value)!=null?Te:se.size;te-=ge+O,ie.unshift({data:N?.[X],index:X,offset:te,size:ge})}U.unshift(...ie)}if(he>
10&&re.index<z){const me=Math.min(he,z-re.index);let ie=re.offset+re.size+O;for(let te=re.index+1;te<=re.index+me;te++){const X=(Se=(we=$e(ve,te,te)[0])==null?void 0:we.value)!=null?Se:re.size;U.push({data:N?.[te],index:te,offset:ie,size:X}),ie+=X+O}}}return vt(U,Je,x,O,fe,G)}),P(w=>w!==null),J()),Rt);k(T(e,P(Pt),B(w=>w?.length)),r),k(T(y,B(w=>w.topListHeight)),p),k(p,s),k(T(y,B(w=>[w.top,w.bottom])),l),k(T(y,B(w=>w.items)),u);const M=ye(T(y,P(({items:w})=>w.length>0),_(r,e),P(([{items:w},d])=>w[w.length-1].originalIndex===d-1),B(([,w,d])=>[w-1,d]),J(rt),B(([w])=>w))),R=ye(T(y,je(200),P(({items:w,topItems:d})=>w.length>0&&w[0].originalIndex===d.length),B(({items:w})=>w[0].index),J()));return{endReached:M,initialItemCount:m,itemsRendered:u,listState:y,minOverscanItemCount:h,rangeChanged:ye(T(y,P(({items:w})=>w.length>0),B(({items:w})=>{let d=0,x=w.length-1;for(;w[d].type==="group"&&d<x;)d++;for(;w[x].type==="group"&&x>d;)x--;return{endIndex:w[x].index,startIndex:w[d].index}}),J(Ao))),startReached:R,topItemsIndexes:I,...v}},ee(Me,_o,Ut,ut,ct,dt,Ve,Lt),{singleton:!0}),Ko=q(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:o,headerHeight:n},{listState:r}])=>{const i=K(),l=pe(T(ae(o,e,n,t,r),B(([s,a,c,f,p])=>s+a+c+f+p.offsetBottom+p.bottom)),0);return k(j(l),i),{totalListHeight:l,totalListHeightChanged:i}},ee(xe,Ne),{singleton:!0}),Ln=q(([{viewportHeight:e},{totalListHeight:t}])=>{const o=C(!1);return{alignToBottom:o,paddingTopAddition:pe(T(ae(o,e,t),P(([n])=>n),B(([,n,r])=>Math.max(0,n-r)),je(0),J()),0)}},ee(xe,Ko),{singleton:!0}),qo=q(()=>({context:C(null)})),_n=({itemBottom:e,itemTop:t,locationParams:{align:o,behavior:n,...r},viewportBottom:i,viewportTop:l})=>t<l?{...r,align:o??"start",behavior:n}:e>i?{...r,align:o??"end",behavior:n}:null,$o=q(([{gap:e,sizes:t,totalCount:o},{fixedFooterHeight:n,fixedHeaderHeight:r,headerHeight:i,scrollingInProgress:l,scrollTop:s,viewportHeight:a},{scrollToIndex:c}])=>{const f=K();return k(T(f,_(t,a,o,i,r,n,s),_(e),B(([[p,v,g,S,I,m,u,h],y])=>{const{align:M,behavior:R,calculateViewLocation:w=_n,done:d,...x}=p,H=Lo(p,v,S-1),E=it(H,v.offsetTree,y)+I+m,W=E+Be(v.sizeTree,H)[1],A=h+m,G=h+g-u,O=w({itemBottom:W,itemTop:E,locationParams:{align:M,behavior:R,...x},viewportBottom:G,viewportTop:A});return O?d&&Re(T(l,P(Z=>!Z),Ge(ne(l)?1:2)),d):d?.(),O}),P(p=>p!==null)),c),{scrollIntoView:f}},ee(Me,xe,ct,Ne,Pe),{singleton:!0});function vo(e){return e?e==="smooth"?"smooth":"auto":!1}var Gn=(e,t)=>typeof e=="function"?vo(e(t)):t&&vo(e),Nn=q(([{listRefresh:e,totalCount:t,fixedItemSize:o,data:n},{atBottomState:r,isAtBottom:i},{scrollToIndex:l},{scrolledToInitialItem:s},{didMount:a,propsReady:c},{log:f},{scrollingInProgress:p},{context:v},{scrollIntoView:g}])=>{const S=C(!1),I=K();let m=null;function u(R){L(l,{align:"end",behavior:R,index:"LAST"})}$(T(ae(T(j(t),Ge(1)),a),_(j(S),i,s,p),B(([[R,w],d,x,H,E])=>{let W=w&&H,A="auto";return W&&(A=Gn(d,x||E),W=W&&!!A),{followOutputBehavior:A,shouldFollow:W,totalCount:R}}),P(({shouldFollow:R})=>R)),({followOutputBehavior:R,totalCount:w})=>{m&&(m(),m=null),ne(o)?requestAnimationFrame(()=>{ne(f)("following output to ",{totalCount:w},Ie.DEBUG),u(R)}):m=Re(e,()=>{ne(f)("following output to ",{totalCount:w},Ie.DEBUG),u(R),m=null})});function h(R){const w=Re(r,d=>{R&&!d.atBottom&&d.notAtBottomBecause==="SIZE_INCREASED"&&!m&&(ne(f)("scrolling to bottom due to increased size",{},Ie.DEBUG),u("auto"))});setTimeout(w,100)}$(T(ae(j(S),t,c),P(([R,,w])=>R&&w),Oe(({value:R},[,w])=>({refreshed:R===w,value:w}),{refreshed:!1,value:0}),P(({refreshed:R})=>R),_(S,t)),([,R])=>{ne(s)&&h(R!==!1)}),$(I,()=>{h(ne(S)!==!1)}),$(ae(j(S),r),([R,w])=>{R&&!w.atBottom&&w.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&u("auto")});const y=C(null),M=K();return k(kt(T(j(n),B(R=>{var w;return(w=R?.length)!=null?w:0})),T(j(t))),M),$(T(ae(T(M,Ge(1)),a),_(j(y),s,p,v),B(([[R,w],d,x,H,E])=>w&&x&&d?.({context:E,totalCount:R,scrollingInProgress:H})),P(R=>!!R),je(0)),R=>{m&&(m(),m=null),ne(o)?requestAnimationFrame(()=>{ne(f)("scrolling into view",{}),L(g,R)}):m=Re(e,()=>{ne(f)("scrolling into view",{}),L(g,R),m=null})}),{autoscrollToBottom:I,followOutput:S,scrollIntoViewOnChange:y}},ee(Me,dt,ct,ut,Ve,Pe,xe,qo,$o)),Un=q(([{data:e,firstItemIndex:t,gap:o,sizes:n}
1,{initialTopMostItemIndex:r},{initialItemCount:i,listState:l},{didMount:s}])=>(k(T(s,_(i),P(([,a])=>a!==0),_(r,n,t,o,e),B(([[,a],c,f,p,v,g=[]])=>Uo(a,c,f,p,v,g))),l),{}),ee(Me,ut,Ne,Ve),{singleton:!0}),Kn=q(([{didMount:e},{scrollTo:t},{listState:o}])=>{const n=C(0);return $(T(e,_(n),P(([,r])=>r!==0),B(([,r])=>({top:r}))),r=>{Re(T(o,Ge(1),P(i=>i.items.length>1)),()=>{requestAnimationFrame(()=>{L(t,r)})})}),{initialScrollTop:n}},ee(Ve,xe,Ne),{singleton:!0}),Zo=q(([{scrollVelocity:e}])=>{const t=C(!1),o=K(),n=C(!1);return k(T(e,_(n,t,o),P(([r,i])=>!!i),B(([r,i,l,s])=>{const{enter:a,exit:c}=i;if(l){if(c(r,s))return!1}else if(a(r,s))return!0;return l}),J()),t),$(T(ae(t,e,o),_(n)),([[r,i,l],s])=>{r&&s&&s.change&&s.change(i,l)}),{isSeeking:t,scrollSeekConfiguration:n,scrollSeekRangeChanged:o,scrollVelocity:e}},ee(dt),{singleton:!0}),Kt=q(([{scrollContainerState:e,scrollTo:t}])=>{const o=K(),n=K(),r=K(),i=C(!1),l=C(void 0);return k(T(ae(o,n),B(([{scrollHeight:s,scrollTop:a,viewportHeight:c},{offsetTop:f}])=>({scrollHeight:s,scrollTop:Math.max(0,a-f),viewportHeight:c}))),e),k(T(t,_(n),B(([s,{offsetTop:a}])=>({...s,top:s.top+a}))),r),{customScrollParent:l,useWindowScroll:i,windowScrollContainerState:o,windowScrollTo:r,windowViewportRect:n}},ee(xe)),qn=q(([{sizeRanges:e,sizes:t},{headerHeight:o,scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:l,windowScrollContainerState:s,windowViewportRect:a}])=>{const c=K(),f=C(void 0),p=C(null),v=C(null);return k(s,p),k(a,v),$(T(c,_(t,n,l,p,v,o)),([g,S,I,m,u,h,y])=>{const M=En(S.sizeTree);m&&u!==null&&h!==null&&(I=u.scrollTop-h.offsetTop),I-=y,g({ranges:M,scrollTop:I})}),k(T(f,P(Pt),B($n)),r),k(T(i,_(f),P(([,g])=>g!==void 0),J(),B(([,g])=>g.ranges)),e),{getState:c,restoreStateFrom:f}},ee(Me,xe,ut,Ve,Kt));function $n(e){return{align:"start",index:0,offset:e.scrollTop}}var Zn=q(([{topItemsIndexes:e}])=>{const t=C(0);return k(T(t,P(o=>o>=0),B(o=>Array.from({length:o}).map((n,r)=>r))),e),{topItemCount:t}},ee(Ne));function Yo(e){let t=!1,o;return(()=>(t||(t=!0,o=e()),o))}var Yn=Yo(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),Xo=q(([{data:e,defaultItemSize:t,firstItemIndex:o,fixedItemSize:n,fixedGroupSize:r,gap:i,groupIndices:l,heightEstimates:s,itemSize:a,sizeRanges:c,sizes:f,statefulTotalCount:p,totalCount:v,trackItemSizes:g},{initialItemFinalLocationReached:S,initialTopMostItemIndex:I,scrolledToInitialItem:m},u,h,y,M,{scrollToIndex:R},w,{topItemCount:d},{groupCounts:x},H])=>{const{listState:E,minOverscanItemCount:W,topItemsIndexes:A,rangeChanged:G,...O}=M;return k(G,H.scrollSeekRangeChanged),k(T(H.windowViewportRect,B(Z=>Z.visibleHeight)),u.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:o,fixedItemHeight:n,fixedGroupHeight:r,gap:i,groupCounts:x,heightEstimates:s,initialItemFinalLocationReached:S,initialTopMostItemIndex:I,scrolledToInitialItem:m,sizeRanges:c,topItemCount:d,topItemsIndexes:A,totalCount:v,...y,groupIndices:l,itemSize:a,listState:E,minOverscanItemCount:W,scrollToIndex:R,statefulTotalCount:p,trackItemSizes:g,rangeChanged:G,...O,...H,...u,sizes:f,...h}},ee(Me,ut,xe,qn,Nn,Ne,ct,q(([{deviation:e,scrollBy:t,scrollingInProgress:o,scrollTop:n},{isAtBottom:r,isScrolling:i,lastJumpDueToItemResize:l,scrollDirection:s},{listState:a},{beforeUnshiftWith:c,gap:f,shiftWithOffset:p,sizes:v},{log:g},{recalcInProgress:S}])=>{const I=ye(T(a,_(l),Oe(([,u,h,y],[{bottom:M,items:R,offsetBottom:w,totalCount:d},x])=>{const H=M+w;let E=0;return h===d&&u.length>0&&R.length>0&&(R[0].originalIndex===0&&u[0].originalIndex===0||(E=H-y,E!==0&&(E+=x))),[E,R,d,H]},[0,[],0,0]),P(([u])=>u!==0),_(n,s,o,r,g,S),P(([,u,h,y,,,M])=>!M&&!y&&u!==0&&h===lt),B(([[u],,,,,h])=>(h("Upward scrolling compensation",{amount:u},Ie.DEBUG),u))));function m(u){u>0?(L(t,{behavior:"auto",top:-u}),L(e,0)):(L(e,0),L(t,{behavior:"auto",top:-u}))}return $(T(I,_(e,i)),([u,h,y])=>{y&&Yn()?L(e,h-u):m(-u)}),$(T(ae(pe(i,!1),e,S),P(([u,h,y])=>!u&&!y&&h!==0),B(([u,h])=>h),je(1)),m),k(T(p,B(u=>({top:-u}))),t),$(T(c,_(v,f),B(([u,{groupIndices:h,lastSize:y,sizeTree:M},R])=>{function w(d){return d*(y+R)}if(h.length===0)return w(u);{let d=0;const x=nt(M,0);let H=0,E=0;for(;H<u;){H++,d+=x;let W=h.length===E+1?1/0:h[E+1]-h[E]-1;H+W>u&&(d-=x,W=u-H+1),H+=W,d+=w(W),E++}return d}})),u=>{L(e,u),requestAnimationFrame(()=>{L(t,{top:u}),requestAnimationFrame(()=>{L(e,0),L(S,!1)})})}),{deviation:e}},ee(xe,dt,Ne,Me,Pe,Lt)),Zn,_o,q(([e,t,o,n,r,i,l,s,a,c,f])=>({...e,...t,...o,...n,...r,...i,...l,...s,...a,...c,...f}),ee(Ut,Un,Ve,Zo,Ko,Kn,Ln,Kt,$o,Pe,qo))));function Xn(e,t){const o={},n={};let r=0;const i=e.length;for(;r<i;)n[e[r]]=1,r+=1;for(const l in t)Object.hasOwn(n,l)||(o[l]=t[l]);return o}var pt=typeof document<"u"?b.useLayoutEffect:b.useEffect;function qt(e,t,o){const n=Object.keys(t.required||{}),r=Object.keys(t.optional||{}),i=Object.keys(t.methods||{}),l=Object.keys(t.events||{}),s=b.createContext({});function a(I,m){I.propsReady&&L(I.propsReady,!1);for(const u of n){const h=I[t.required[u]];L(h,m[u])}for(const u of r)if(u in m){const h=I[t.optional[u]];L(h,m[u])}I.propsReady&&L(I.propsReady,!0)}function c(I){return i.reduce((m,u)=>(m[u]=h=>{const y=I[t.methods[u]];L(y,h)},m),{})}function f(I){return l.reduce((m,u)=>(m[u]=gn(I[t.events[u]]),m),{})}const p=b.forwardRef((I,m)=>{const{children:u,...h}=I,[y]=b.useState(()=>St(vn(e),w=>{a(w,h)})),[M]=b.useState(so(f,y));pt(()=>{for(const w of l)w in h&&$(M[w],h[w]);return()=>{Object.values(M).map(At)}},[h,M,y]),pt(()=>{a(y,h)}),b.useImperativeHandle(m,lo(c(y)));const R=o;return(0,F.jsx)(s.Provider,{value:y,children:o?(0,F.jsx)(R,{...Xn([...n,...r,...l],h),children:u}):u})}),v=I=>{const m=b.useContext(s);return b.useCallback(u=>{L(m[I],u)},[m,I])},g=I=>{const m=b.useContext(s)[I],u=b.useCallback(h=>$(m,h),[m]);return b.useSyncExternalStore(u,()=>ne(m),()=>ne(m))},S=I=>{const m=b.useContext(s)[I],[u,h]=b.useState(so(ne,m));return pt(()=>$(m,y=>{y!==u&&h(lo(y))}),[m,u]),u};return{Component:p,useEmitter:(I,m)=>{const u=b.useContext(s)[I];pt(()=>$(u,m),[m,u])},useEmitterValue:"19.2.7".startsWith("18")?g:S,usePublisher:v}}var yt=b.createContext(void 0),Jo=b.createContext(void 0),Qo=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Ht(e){return"self"in e}function Jn(e){return"body"in e}function en(e,t,o,n=Ye,r,i){const l=b.useRef(null),s=b.useRef(null),a=b.useRef(null),c=b.useCallback(v=>{let g,S,I;const m=v.target;if(Jn(m)||Ht(m)){const h=Ht(m)?m:m.defaultView;I=i?h.scrollX:h.scrollY,g=i?h.document.documentElement.scrollWidth:h.document.documentElement.scrollHeight,S=i?h.innerWidth:h.innerHeight}else I=i?m.scrollLeft:m.scrollTop,g=i?m.scrollWidth:m.scrollHeight,S=i?m.offsetWidth:m.offsetHeight;const u=()=>
1{e({scrollHeight:g,scrollTop:Math.max(I,0),viewportHeight:S})};v.suppressFlushSync?u():un.flushSync(u),s.current!==null&&(I===s.current||I<=0||I===g-S)&&(s.current=null,t(!0),a.current&&(clearTimeout(a.current),a.current=null))},[e,t,i]);b.useEffect(()=>{const v=r||l.current;return n(r||l.current),c({suppressFlushSync:!0,target:v}),v.addEventListener("scroll",c,{passive:!0}),()=>{n(null),v.removeEventListener("scroll",c)}},[l,c,o,n,r]);function f(v){const g=l.current;if(!g||(i?"offsetWidth"in g&&g.offsetWidth===0:"offsetHeight"in g&&g.offsetHeight===0))return;const S=v.behavior==="smooth";let I,m,u;Ht(g)?(m=Math.max(Ee(g.document.documentElement,i?"width":"height"),i?g.document.documentElement.scrollWidth:g.document.documentElement.scrollHeight),I=i?g.innerWidth:g.innerHeight,u=i?window.scrollX:window.scrollY):(m=g[i?"scrollWidth":"scrollHeight"],I=Ee(g,i?"width":"height"),u=g[i?"scrollLeft":"scrollTop"]);const h=m-I;if(v.top=Math.ceil(Math.max(Math.min(h,v.top),0)),No(I,m)||v.top===u){e({scrollHeight:m,scrollTop:u,viewportHeight:I}),S&&t(!0);return}S?(s.current=v.top,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{a.current=null,s.current=null,t(!0)},1e3)):s.current=null,i&&(v={behavior:v.behavior,left:v.top}),g.scrollTo(v)}function p(v){i&&(v={behavior:v.behavior,left:v.top}),l.current.scrollBy(v)}return{scrollByCallback:p,scrollerRef:l,scrollToCallback:f}}var Bt="-webkit-sticky",Io="sticky",$t=Yo(()=>
vendor: 21,105 bytes, line 1
1{if(typeof document>"u")return Io;const e=document.createElement("div");return e.style.position=Bt,e.style.position===Bt?Bt:Io});function Zt(e){return e}var Qn=q(([e,t])=>({...e,...t}),ee(Xo,q(()=>{const e=C(s=>`Item ${s}`),t=C(s=>`Group ${s}`),o=C({}),n=C(Zt),r=C("div"),i=C(Ye),l=(s,a=null)=>pe(T(o,B(c=>c[s]),J()),a);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")}}))),er=({height:e})=>(0,F.jsx)("div",{style:{height:e}}),tr={overflowAnchor:"none",position:$t(),zIndex:1},tn={overflowAnchor:"none"},or={...tn,display:"inline-block",height:"100%"},To=b.memo(function({showTopList:e=!1}){const t=V("listState"),o=be("sizeRanges"),n=V("useWindowScroll"),r=V("customScrollParent"),i=be("windowScrollContainerState"),l=be("scrollContainerState"),s=r||n?i:l,a=V("itemContent"),c=V("context"),f=V("groupContent"),p=V("trackItemSizes"),v=V("itemSize"),g=V("log"),S=be("gap"),I=V("horizontalDirection"),{callbackRef:m}=Oo(o,v,p,e?Ye:s,g,S,r,I,V("skipAnimationFrameInResizeObserver")),[u,h]=b.useState(0);Jt("deviation",O=>{u!==O&&h(O)});const y=V("EmptyPlaceholder"),M=V("ScrollSeekPlaceholder")||er,R=V("ListComponent"),w=V("ItemComponent"),d=V("GroupComponent"),x=V("computeItemKey"),H=V("isSeeking"),E=V("groupIndices").length>0,W=V("alignToBottom"),A=V("initialItemFinalLocationReached"),G=e?{}:{boxSizing:"border-box",...I?{display:"inline-block",height:"100%",marginLeft:u!==0?u:W?"auto":0,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:"nowrap"}:{marginTop:u!==0?u:W?"auto":0,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...A?{}:{visibility:"hidden"}};return!e&&t.totalCount===0&&y?(0,F.jsx)(y,{...Q(y,c)}):(0,F.jsx)(R,{...Q(R,c),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:m,style:G,children:(e?t.topItems:t.items).map(O=>{const Z=O.originalIndex,N=x(Z+t.firstItemIndex,O.data,c);return H?(0,b.createElement)(M,{...Q(M,c),height:O.size,index:O.index,key:N,type:O.type||"item",...O.type==="group"?{}:{groupIndex:O.groupIndex}}):O.type==="group"?(0,b.createElement)(d,{...Q(d,c),"data-index":Z,"data-item-index":O.index,"data-known-size":O.size,key:N,style:tr},f(O.index,c)):(0,b.createElement)(w,{...Q(w,c),...on(w,O.data),"data-index":Z,"data-item-group-index":O.groupIndex,"data-item-index":O.index,"data-known-size":O.size,key:N,style:I?or:tn},E?a(O.index,O.groupIndex,O.data,c):a(O.index,O.data,c))})})}),nr={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},rr={outline:"none",overflowX:"auto",position:"relative"},Xe=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:{}}),ir={position:$t(),top:0,width:"100%",zIndex:1};function Q(e,t){if(typeof e!="string")return{context:t}}function on(e,t){return{item:typeof e=="string"?void 0:t}}var lr=b.memo(function(){const e=V("HeaderComponent"),t=be("headerHeight"),o=V("HeaderFooterTag"),n=Fe(b.useMemo(()=>i=>{t(Ee(i,"height"))},[t]),!0,V("skipAnimationFrameInResizeObserver")),r=V("context");return e?(0,F.jsx)(o,{ref:n,children:(0,F.jsx)(e,{...Q(e,r)})}):null}),sr=b.memo(function(){const e=V("FooterComponent"),t=be("footerHeight"),o=V("HeaderFooterTag"),n=Fe(b.useMemo(()=>i=>{t(Ee(i,"height"))},[t]),!0,V("skipAnimationFrameInResizeObserver")),r=V("context");return e?(0,F.jsx)(o,{ref:n,children:(0,F.jsx)(e,{...Q(e,r)})}):null});function Yt({useEmitter:e,useEmitterValue:t,usePublisher:o}){return b.memo(function({children:n,style:r,context:i,...l}){const s=o("scrollContainerState"),a=t("ScrollerComponent"),c=o("smoothScrollTargetReached"),f=t("scrollerRef"),p=t("horizontalDirection")||!1,{scrollByCallback:v,scrollerRef:g,scrollToCallback:S}=en(s,c,a,f,void 0,p);return e("scrollTo",S),e("scrollBy",v),(0,F.jsx)(a,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:g,style:{...p?rr:nr,...r},tabIndex:0,...l,...Q(a,i),children:n})})}function Xt({useEmitter:e,useEmitterValue:t,usePublisher:o}){return b.memo(function({children:n,style:r,context:i,...l}){const s=o("windowScrollContainerState"),a=t("ScrollerComponent"),c=o("smoothScrollTargetReached"),f=t("totalListHeight"),p=t("deviation"),v=t("customScrollParent"),g=b.useRef(null),{scrollByCallback:S,scrollerRef:I,scrollToCallback:m}=en(s,c,a,t("scrollerRef"),v);return Qo(()=>{var u;return I.current=v||((u=g.current)==null?void 0:u.ownerDocument.defaultView),()=>{I.current=null}},[I,v]),e("windowScrollTo",m),e("scrollBy",S),(0,F.jsx)(a,{ref:g,"data-virtuoso-scroller":!0,style:{position:"relative",...r,...f!==0?{height:f+p}:{}},...l,...Q(a,i),children:n})})}var ar=({children:e})=>{const t=b.useContext(yt),o=be("viewportHeight"),n=be("fixedItemHeight"),r=V("alignToBottom"),i=V("horizontalDirection"),l=Fe(b.useMemo(()=>tt(o,s=>Ee(s,i?"width":"height")),[o,i]),!0,V("skipAnimationFrameInResizeObserver"));return b.useEffect(()=>{t&&(o(t.viewportHeight),n(t.itemHeight))},[t,o,n]),(0,F.jsx)("div",{"data-viewport-type":"element",ref:l,style:Xe(r),children:e})},cr=({children:e})=>{const t=b.useContext(yt),o=be("windowViewportRect"),n=be("fixedItemHeight"),r=Dt(o,V("customScrollParent"),V("skipAnimationFrameInResizeObserver")),i=V("alignToBottom");return b.useEffect(()=>{t&&(n(t.itemHeight),o({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,n]),(0,F.jsx)("div",{"data-viewport-type":"window",ref:r,style:Xe(i),children:e})},ur=({children:e})=>{const t=V("TopItemListComponent")||"div",o=V("headerHeight");return(0,F.jsx)(t,{style:{...ir,marginTop:`${o}px`},...Q(t,V("context")),children:e})},{Component:nn,useEmitter:Jt,useEmitterValue:V,usePublisher:be}=qt(Qn,{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"}},b.memo(function(e){const t=V("useWindowScroll"),o=V("topItemsIndexes").length>0,n=V("customScrollParent"),r=V("context");return(0,F.jsxs)(n||t?hr:dr,{...e,context:r,children:[o&&(0,F.jsx)(ur,{children:(0,F.jsx)(To,{showTopList:!0})}),(0,F.jsxs)(n||t?cr:ar,{children:[(0,F.jsx)(lr,{}),(0,F.jsx)(To,{}),(0,F.jsx)(sr,{})]})]})})),dr=Yt({useEmitter:Jt,useEmitterValue:V,usePublisher:be}),hr=Xt({useEmitter:Jt,useEmitterValue:V,usePublisher:be}),Pr=nn,Ar=nn,mr=q(([e,t])=>({...e,...t}),ee(Xo,q(()=>{const e=C(c=>(0,F.jsxs)("td",{children:["Item $",c]})),t=C(null),o=C(c=>(0,F.jsxs)("td",{colSpan:1e3,children:["Group ",c]})),n=C(null),r=C(null),i=C({}),l=C(Zt),s=C(Ye),a=(c,f=null)=>pe(T(i,B(p=>p[c]),J()),f);return{components:i,computeItemKey:l,context:t,EmptyPlaceholder:a("EmptyPlaceholder"),FillerRow:a("FillerRow"),fixedFooterContent:r,fixedHeaderContent:n,itemContent:e,groupContent:o,ScrollerComponent:a("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),TableBodyComponent:a("TableBody","tbody"),TableComponent:a("Table","table"),TableFooterComponent:a("TableFoot","tfoot"),TableHeadComponent:a("TableHead","thead"),TableRowComponent:a("TableRow","tr"),GroupComponent:a("Group","tr")}}))),fr=({height:e})=>(0,F.jsx)("tr",{children:(0,F.jsx)("td",{style:{height:e}})}),pr=({height:e})=>(0,F.jsx)("tr",{children:(0,F.jsx)("td",{style:{border:0,height:e,padding:0}})}),gr={overflowAnchor:"none"},wo={position:$t(),zIndex:2,overflowAnchor:"none"},So=b.memo(function({showTopList:e=!1}){const t=D("listState"),o=D("computeItemKey"),n=D("firstItemIndex"),r=D("context"),i=D("isSeeking"),l=D("fixedHeaderHeight"),s=D("groupIndices").length>0,a=D("itemContent"),c=D("groupContent"),f=D("ScrollSeekPlaceholder")||fr,p=D("GroupComponent"),v=D("TableRowComponent"),g=(e?t.topItems:[]).reduce((S,I,m)=>(m===0?S.push(I.size):S.push(S[m-1]+I.size),S),[]);return(0,F.jsx)(F.Fragment,{children:(e?t.topItems:t.items).map(S=>{const I=S.originalIndex,m=o(I+n,S.data,r),u=e?I===0?0:g[I-1]:0;return i?(0,b.createElement)(f,{...Q(f,r),height:S.size,index:S.index,key:m,type:S.type||"item"}):S.type==="group"?(0,b.createElement)(p,{...Q(p,r),"data-index":I,"data-item-index":S.index,"data-known-size":S.size,key:m,style:{...wo,top:l}},c(S.index,r)):(0,b.createElement)(v,{...Q(v,r),...on(v,S.data),"data-index":I,"data-item-index":S.index,"data-known-size":S.size,"data-item-group-index":S.groupIndex,key:m,style:e?{...wo,top:l+u}:gr},s?a(S.index,S.groupIndex,S.data,r):a(S.index,S.data,r))})})}),xr=b.memo(function(){const e=D("listState"),t=D("topItemsIndexes").length>0,o=He("sizeRanges"),n=D("useWindowScroll"),r=D("customScrollParent"),i=He("windowScrollContainerState"),l=He("scrollContainerState"),s=r||n?i:l,a=D("trackItemSizes"),{callbackRef:c,ref:f}=Oo(o,D("itemSize"),a,s,D("log"),void 0,r,!1,D("skipAnimationFrameInResizeObserver")),[p,v]=b.useState(0);Qt("deviation",x=>{p!==x&&(f.current.style.marginTop=`${x}px`,v(x))});const g=D("EmptyPlaceholder"),S=D("FillerRow")||pr,I=D("TableBodyComponent"),m=D("paddingTopAddition"),u=D("statefulTotalCount"),h=D("context");if(u===0&&g)return(0,F.jsx)(g,{...Q(g,h)});const y=(t?e.topItems:[]).reduce((x,H)=>x+H.size,0),M=e.offsetTop+m+p-y,R=e.offsetBottom,w=M>0?(0,F.jsx)(S,{context:h,height:M},"padding-top"):null,d=R>0?(0,F.jsx)(S,{context:h,height:R},"padding-bottom"):null;return(0,F.jsxs)(I,{"data-testid":"virtuoso-item-list",ref:c,...Q(I,h),children:[w,t&&(0,F.jsx)(So,{showTopList:!0}),(0,F.jsx)(So,{}),d]})}),vr=({children:e})=>{const t=b.useContext(yt),o=He("viewportHeight"),n=He("fixedItemHeight"),r=Fe(b.useMemo(()=>tt(o,i=>Ee(i,"height")),[o]),!0,D("skipAnimationFrameInResizeObserver"));return b.useEffect(()=>{t&&(o(t.viewportHeight),n(t.itemHeight))},[t,o,n]),(0,F.jsx)("div",{"data-viewport-type":"element",ref:r,style:Xe(!1),children:e})},Ir=({children:e})=>{const t=b.useContext(yt),o=He("windowViewportRect"),n=He("fixedItemHeight"),r=Dt(o,D("customScrollParent"),D("skipAnimationFrameInResizeObserver"));return b.useEffect(()=>{t&&(n(t.itemHeight),o({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,o,n]),(0,F.jsx)("div",{"data-viewport-type":"window",ref:r,style:Xe(!1),children:e})},{Component:Vr,useEmitter:Qt,useEmitterValue:D,usePublisher:He}=qt(mr,{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"}},b.memo(function(e){const t=D("useWindowScroll"),o=D("customScrollParent"),n=He("fixedHeaderHeight"),r=He("fixedFooterHeight"),i=D("fixedHeaderContent"),l=D("fixedFooterContent"),s=D("context"),a=Fe(b.useMemo(()=>tt(n,u=>Ee(u,"height")),[n]),!0,D("skipAnimationFrameInResizeObserver")),c=Fe(b.useMemo(()=>tt(r,u=>Ee(u,"height")),[r]),!0,D("skipAnimationFrameInResizeObserver")),f=o||t?wr:Tr,p=o||t?Ir:vr,v=D("TableComponent"),g=D("TableHeadComponent"),S=D("TableFooterComponent"),I=i?(0,F.jsx)(g,{ref:a,style:{position:"sticky",top:0,zIndex:2},...Q(g,s),children:i()},"TableHead"):null,m=l?(0,F.jsx)(S,{ref:c,style:{bottom:0,position:"sticky",zIndex:1},...Q(S,s),children:l()},"TableFoot"):null;return(0,F.jsx)(f,{...e,...Q(f,s),children:(0,F.jsx)(p,{children:(0,F.jsxs)(v,{style:{borderSpacing:0,overflowAnchor:"none"},...Q(v,s),children:[I,(0,F.jsx)(xr,{},"TableBody"),m]})})})})),Tr=Yt({useEmitter:Qt,useEmitterValue:D,usePublisher:He}),wr=Xt({useEmitter:Qt,useEmitterValue:D,usePublisher:He});var Co={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},Sr={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:yo,floor:Tt,max:et,min:Et,round:bo}=Math;function zo(e,t,o){return Array.from({length:t-e+1}).map((n,r)=>({data:o===null?null:o[r+e],index:r+e}))}function Cr(e){return{...Sr,items:e}}function gt(e,t){return e&&e.width===t.width&&e.height===t.height}function yr(e,t){return e&&e.column===t.column&&e.row===t.row}var br=q(([{increaseViewportBy:e,listBoundary:t,overscan:o,visibleRange:n},{footerHeight:r,headerHeight:i,scrollBy:l,scrollContainerState:s,scrollTo:a,scrollTop:c,smoothScrollTargetReached:f,viewportHeight:p},v,g,{didMount:S,propsReady:I},{customScrollParent:m,useWindowScroll:u,windowScrollContainerState:h,windowScrollTo:y,windowViewportRect:M},R])=>{const w=C(0),d=C(0),x=C(Co),H=C({height:0,width:0}),E=C({height:0,width:0}),W=K(),A=K(),G=C(0),O=C(null),Z=C({column:0,row:0}),N=K(),ue=K(),Te=C(!1),we=C(0),Se=C(!0),fe=C(!1),Ue=C(!1);$(T(S,_(we),P(([z,U])=>!!U)),()=>{L(Se,!1)}),$(T(ae(S,Se,E,H,we,fe),P(([z,U,le,he,,se])=>z&&!U&&le.height!==0&&he.height!==0&&!se)),([,,,,z])=>{L(fe,!0),Gt(1,()=>{L(W,z)}),Re(T(c),()=>{L(t,[0,0]),L(Se,!0)})}),k(T(ue,P(z=>z!=null&&z.scrollTop>0),ke(0)),d),$(T(S,_(ue),P(([,z])=>z!=null)),([,z])=>{z&&(L(H,z.viewport),L(E,z.item),L(Z,z.gap),z.scrollTop>0&&(L(Te,!0),Re(T(c,Ge(1)),U=>{L(Te,!1)}),L(a,{top:z.scrollTop})))}),k(T(H,B(({height:z})=>z)),p),k(T(ae(j(H,gt),j(E,gt),j(Z,(z,U)=>z&&z.column===U.column&&z.row===U.row),j(c)),B(([z,U,le,he])=>({gap:le,item:U,scrollTop:he,viewport:z}))),N),k(T(ae(j(w),n,j(Z,yr),j(E,gt),j(H,gt),j(O),j(d),j(Te),j(Se),j(we)),P(([,,,,,,,z])=>!z),B(([z,[U,le],he,se,re,me,ie,,te,X])=>{const{column:ge,row:de}=he,{height:mt,width:bt}=se,{width:eo}=re;if(ie===0&&(z===0||eo===0))return Co;if(bt===0){const io=Nt(X,z);return Cr(zo(io,io+Math.max(ie-1,0),me))}const ft=rn(eo,bt,ge);let Ke,Le;te?U===0&&le===0&&ie>0?(Ke=0,Le=ie-1):(Ke=ft*Tt((U+de)/(mt+de)),Le=ft*yo((le+de)/(mt+de))-1,Le=Et(z-1,et(Le,ft-1)),Ke=Et(Le,et(0,Ke))):(Ke=0,Le=-1);const to=zo(Ke,Le,me),{bottom:oo,top:no}=Ro(re,he,se,to),ro=yo(z/ft);return{bottom:oo,itemHeight:mt,items:to,itemWidth:bt,offsetBottom:ro*mt+(ro-1)*de-oo,offsetTop:no,top:no}})),x),k(T(O,P(z=>z!==null),B(z=>z.length)),w),k(T(ae(H,E,x,Z),P(([z,U,{items:le}])=>le.length>0&&U.height!==0&&z.height!==0),B(([z,U,{items:le},he])=>{const{bottom:se,top:re}=Ro(z,he,U,le);return[re,se]}),J(rt)),t);const ve=C(!1);k(T(c,_(ve),B(([z,U])=>U||z!==0)),ve);const De=ye(T(ae(x,w),P(([{items:z}])=>z.length>0),_(ve),P(([[z,U],le])=>{const he=z.items[z.items.length-1].index===U-1;return(le||z.bottom>0&&z.itemHeight>0&&z.offsetBottom===0&&z.items.length===U)&&he}),B(([[,z]])=>z-1),J())),Je=ye(T(j(x),P(({items:z})=>z.length>0&&z[0].index===0),ke(0),J())),We=ye(T(j(x),_(Te),P(([{items:z},U])=>z.length>0&&!U),B(([{items:z}])=>({endIndex:z[z.length-1].index,startIndex:z[0].index})),J(Ao),je(0)));k(We,g.scrollSeekRangeChanged),k(T(W,_(H,E,w,Z),B(([z,U,le,he,se])=>{const re=Go(z),{align:me,behavior:ie,offset:te}=re;let X=re.index;X==="LAST"&&(X=he-1),X=et(0,X,Et(he-1,X));let ge=jt(U,se,le,X);return me==="end"?ge=bo(ge-U.height+le.height):me==="center"&&(ge=bo(ge-U.height/2+le.height/2)),te&&(ge+=te),{behavior:ie,top:ge}})),a);const ht=pe(T(x,B(z=>z.offsetBottom+z.bottom)),0);return k(T(M,B(z=>({height:z.visibleHeight,width:z.visibleWidth}))),H),{customScrollParent:m,data:O,deviation:G,footerHeight:r,gap:Z,headerHeight:i,increaseViewportBy:e,initialItemCount:d,itemDimensions:E,overscan:o,restoreStateFrom:ue,scrollBy:l,scrollContainerState:s,scrollHeight:A,scrollTo:a,scrollToIndex:W,scrollTop:c,smoothScrollTargetReached:f,totalCount:w,useWindowScroll:u,viewportDimensions:H,windowScrollContainerState:h,windowScrollTo:y,windowViewportRect:M,...g,gridState:x,horizontalDirection:Ue,initialTopMostItemIndex:we,totalListHeight:ht,...v,endReached:De,propsReady:I,rangeChanged:We,startReached:Je,stateChanged:N,stateRestoreInProgress:Te,...R}},ee(Ut,xe,dt,Zo,Ve,Kt,Pe));function rn(e,t,o){return et(1,Tt((e+o)/(Tt(t)+o)))}function Ro(e,t,o,n){const{height:r}=o;if(r===void 0||n.length===0)return{bottom:0,top:0};const i=jt(e,t,o,n[0].index);return{bottom:jt(e,t,o,n[n.length-1].index)+r,top:i}}function jt(e,t,o,n){const r=Tt(n/rn(e.width,o.width,t.column)),i=r*o.height+et(0,r-1)*t.row;return i>0?i+t.row:i}var zr=q(([e,t])=>({...e,...t}),ee(br,q(()=>{const e=C(p=>`Item ${p}`),t=C({}),o=C(null),n=C("virtuoso-grid-item"),r=C("virtuoso-grid-list"),i=C(Zt),l=C("div"),s=C(Ye),a=(p,v=null)=>pe(T(t,B(g=>g[p]),J()),v),c=C(!1),f=C(!1);return k(j(f),c),{components:t,computeItemKey:i,context:o,FooterComponent:a("Footer"),HeaderComponent:a("Header"),headerFooterTag:l,itemClassName:n,ItemComponent:a("Item","div"),itemContent:e,listClassName:r,ListComponent:a("List","div"),readyStateChanged:c,reportReadyState:f,ScrollerComponent:a("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder","div")}}))),Rr=b.memo(function(){const e=oe("gridState"),t=oe("listClassName"),o=oe("itemClassName"),n=oe("itemContent"),r=oe("computeItemKey"),i=oe("isSeeking"),l=ze("scrollHeight"),s=oe("ItemComponent"),a=oe("ListComponent"),c=oe("ScrollSeekPlaceholder"),f=oe("context"),p=ze("itemDimensions"),v=ze("gap"),g=oe("log"),S=oe("stateRestoreInProgress"),I=ze("reportReadyState"),m=Fe(b.useMemo(()=>u=>{const h=u.parentElement.parentElement.scrollHeight;l(h);const y=u.firstChild;if(y){const{height:M,width:R}=y.getBoundingClientRect();p({height:M,width:R})}v({column:Ho("column-gap",getComputedStyle(u).columnGap,g),row:Ho("row-gap",getComputedStyle(u).rowGap,g)})},[l,p,v,g]),!0,!1);return Qo(()=>{e.itemHeight>0&&e.itemWidth>0&&I(!0)},[e]),S?null:(0,F.jsx)(a,{className:t,ref:m,...Q(a,f),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(u=>{const h=r(u.index,u.data,f);return i?(0,F.jsx)(c,{...Q(c,f),height:e.itemHeight,index:u.index,width:e.itemWidth},h):(0,b.createElement)(s,{...Q(s,f),className:o,"data-index":u.index,key:h},n(u.index,u.data,f))})})}),Hr=b.memo(function(){const e=oe("HeaderComponent"),t=ze("headerHeight"),o=oe("headerFooterTag"),n=Fe(b.useMemo(()=>i=>{t(Ee(i,"height"))},[t]),!0,!1),r=oe("context");return e?(0,F.jsx)(o,{ref:n,children:(0,F.jsx)(e,{...Q(e,r)})}):null}),Br=b.memo(function(){const e=oe("FooterComponent"),t=ze("footerHeight"),o=oe("headerFooterTag"),n=Fe(b.useMemo(()=>i=>{t(Ee(i,"height"))},[t]),!0,!1),r=oe("context");return e?(0,F.jsx)(o,{ref:n,children:(0,F.jsx)(e,{...Q(e,r)})}):null}),Er=({children:e})=>{const t=b.useContext(Jo),o=ze("itemDimensions"),n=ze("viewportDimensions"),r=Fe(b.useMemo(()=>i=>{n(i.getBoundingClientRect())},[n]),!0,!1);return b.useEffect(()=>
1{t&&(n({height:t.viewportHeight,width:t.viewportWidth}),o({height:t.itemHeight,width:t.itemWidth}))},[t,n,o]),(0,F.jsx)("div",{ref:r,style:Xe(!1),children:e})},kr=({children:e})=>{const t=b.useContext(Jo),o=ze("windowViewportRect"),n=ze("itemDimensions"),r=Dt(o,oe("customScrollParent"),!1);return b.useEffect(()=>{t&&(n({height:t.itemHeight,width:t.itemWidth}),o({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,o,n]),(0,F.jsx)("div",{ref:r,style:Xe(!1),children:e})},{Component:Or,useEmitter:ln,useEmitterValue:oe,usePublisher:ze}=qt(zr,{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"}},b.memo(function({...e}){const t=oe("useWindowScroll"),o=oe("customScrollParent"),n=o||t?Mr:Fr,r=o||t?kr:Er,i=oe("context");return(0,F.jsx)(n,{...e,...Q(n,i),children:(0,F.jsxs)(r,{children:[(0,F.jsx)(Hr,{}),(0,F.jsx)(Rr,{}),(0,F.jsx)(Br,{})]})})})),Fr=Yt({useEmitter:ln,useEmitterValue:oe,usePublisher:ze}),Mr=Xt({useEmitter:ln,useEmitterValue:oe,usePublisher:ze});function Ho(e,t,o){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&o(`${e} was not resolved to pixel value correctly`,t,Ie.WARN),t==="normal"?0:parseInt(t??"0",10)}var Dr=Or;export{Pr as n,Ar as r,Dr as t};

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.