12 lines
97 KiB
JavaScript
Vendored
12 lines
97 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5320],{58354:function(e,t,n){"use strict";n.d(t,{do:function(){return G}});var r,o,i,l=[],a="ResizeObserver loop completed with undelivered notifications.",s=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:a}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=a),window.dispatchEvent(e)};(r=o||(o={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e.offsetWidth,i=e.offsetHeight;return!(o||i||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!=typeof window?window:{},v=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},T=u({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new d(0,0,0,0)}),S=function(e,t){if(void 0===t&&(t=!1),v.has(e)&&!t)return v.get(e);if(h(e))return v.set(e,T),T;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),o=!x&&"border-box"===n.boxSizing,i=b.test(n.writingMode||""),l=!r&&y.test(n.overflowY||""),a=!r&&y.test(n.overflowX||""),s=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),g=r?0:w(n.borderTopWidth),S=r?0:w(n.borderRightWidth),C=r?0:w(n.borderBottomWidth),I=r?0:w(n.borderLeftWidth),O=m+c,z=s+p,k=I+S,P=g+C,R=a?e.offsetHeight-P-e.clientHeight:0,H=l?e.offsetWidth-k-e.clientWidth:0,B=r?r.width:w(n.width)-(o?O+k:0)-H,A=r?r.height:w(n.height)-(o?z+P:0)-R,N=u({devicePixelContentBoxSize:E(Math.round(B*devicePixelRatio),Math.round(A*devicePixelRatio),i),borderBoxSize:E(B+O+H+k,A+z+R+P,i),contentBoxSize:E(B,A,i),contentRect:new d(m,s,B,A)});return v.set(e,N),N},C=function(e,t,n){var r=S(e,n),i=r.borderBoxSize,l=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case o.DEVICE_PIXEL_CONTENT_BOX:return a;case o.BORDER_BOX:return i;default:return l}},I=function(e){var t=S(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},O=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},z=function(){var e=1/0,t=[];l.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new I(t.target),o=O(t.target);r.push(n),t.lastReportedSize=C(t.target,t.observedBox),o<e&&(e=o)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0;n<t.length;n++)(0,t[n])();return e},k=function(e){l.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(O(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},P=function(){var e=0;for(k(0);l.some(function(e){return e.activeTargets.length>0});)k(e=z());return l.some(function(e){return e.skippedTargets.length>0})&&s(),e>0},R=[],H=function(e){if(!i){var t=0,n=document.createTextNode("");new MutationObserver(function(){return R.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),i=function(){n.textContent="".concat(t?t--:t++)}}R.push(e),i()},B=function(e){H(function(){requestAnimationFrame(e)})},A=0,N={attributes:!0,characterData:!0,childList:!0,subtree:!0},j=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],L=function(e){return void 0===e&&(e=0),Date.now()+e},Z=!1,F=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Z){Z=!0;var n=L(e);B(function(){var r=!1;try{r=P()}finally{if(Z=!1,e=n-L(),!A)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,N)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),j.forEach(function(t){return g.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),j.forEach(function(t){return g.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),M=function(e){!A&&e>0&&F.start(),(A+=e)||F.stop()},W=function(){function e(e,t){this.target=e,this.observedBox=t||o.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=C(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),D=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},_=new WeakMap,V=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return -1},$=function(){function e(){}return e.connect=function(e,t){var n=new D(e,t);_.set(e,n)},e.observe=function(e,t,n){var r=_.get(e),o=0===r.observationTargets.length;0>V(r.observationTargets,t)&&(o&&l.push(r),r.observationTargets.push(new W(t,n&&n.box)),M(1),F.schedule())},e.unobserve=function(e,t){var n=_.get(e),r=V(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&l.splice(l.indexOf(n),1),n.observationTargets.splice(r,1),M(-1))},e.disconnect=function(e){var t=this,n=_.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),G=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");$.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");$.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");$.unobserve(this,e)},e.prototype.disconnect=function(){$.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},81643:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e?"function"==typeof e?e():e:null}},57838:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(97685),o=n(67294);function i(){var e=o.useReducer(function(e){return e+1},0);return(0,r.Z)(e,2)[1]}},24308:function(e,t,n){"use strict";n.d(t,{c4:function(){return i}});var r=n(4942),o=n(87462),i=["xxl","xl","lg","md","sm","xs"],l={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},a=new Map,s=-1,u={};t.ZP={matchHandlers:{},dispatch:function(e){return u=e,a.forEach(function(e){return e(u)}),a.size>=1},subscribe:function(e){return a.size||this.register(),s+=1,a.set(s,e),e(u),s},unsubscribe:function(e){a.delete(e),a.size||this.unregister()},unregister:function(){var e=this;Object.keys(l).forEach(function(t){var n=l[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),a.clear()},register:function(){var e=this;Object.keys(l).forEach(function(t){var n=l[t],i=function(n){var i=n.matches;e.dispatch((0,o.Z)((0,o.Z)({},u),(0,r.Z)({},t,i)))},a=window.matchMedia(n);a.addListener(i),e.matchHandlers[n]={mql:a,listener:i},i(a)})}}},24093:function(e,t,n){"use strict";n.d(t,{C:function(){return T}});var r=n(87462),o=n(4942),i=n(71002),l=n(97685),a=n(94184),s=n.n(a),u=n(48555),c=n(42550),d=n(67294),f=n(53124),h=n(25378),p=n(24308),m=d.createContext("default"),g=function(e){var t=e.children,n=e.size;return d.createElement(m.Consumer,null,function(e){return d.createElement(m.Provider,{value:n||e},t)})},v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},y=d.forwardRef(function(e,t){var n,a,g,y=d.useContext(m),b=d.useState(1),x=(0,l.Z)(b,2),w=x[0],E=x[1],T=d.useState(!1),S=(0,l.Z)(T,2),C=S[0],I=S[1],O=d.useState(!0),z=(0,l.Z)(O,2),k=z[0],P=z[1],R=d.useRef(null),H=d.useRef(null),B=(0,c.sQ)(t,R),A=d.useContext(f.E_).getPrefixCls,N=function(){if(H.current&&R.current){var t=H.current.offsetWidth,n=R.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,o=void 0===r?4:r;2*o<n&&E(n-2*o<t?(n-2*o)/t:1)}}};d.useEffect(function(){I(!0)},[]),d.useEffect(function(){P(!0),E(1)},[e.src]),d.useEffect(function(){N()},[e.gap]);var j=e.prefixCls,L=e.shape,Z=void 0===L?"circle":L,F=e.size,M=void 0===F?"default":F,W=e.src,D=e.srcSet,_=e.icon,V=e.className,$=e.alt,G=e.draggable,U=e.children,K=e.crossOrigin,q=v(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),X="default"===M?y:M,Y=Object.keys("object"===(0,i.Z)(X)&&X||{}).some(function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)}),J=(0,h.Z)(Y),Q=d.useMemo(function(){if("object"!==(0,i.Z)(X))return{};var e=X[p.c4.find(function(e){return J[e]})];return e?{width:e,height:e,lineHeight:"".concat(e,"px"),fontSize:_?e/2:18}:{}},[J,X]),ee=A("avatar",j),et=s()((n={},(0,o.Z)(n,"".concat(ee,"-lg"),"large"===X),(0,o.Z)(n,"".concat(ee,"-sm"),"small"===X),n)),en=d.isValidElement(W),er=s()(ee,et,(a={},(0,o.Z)(a,"".concat(ee,"-").concat(Z),!!Z),(0,o.Z)(a,"".concat(ee,"-image"),en||W&&k),(0,o.Z)(a,"".concat(ee,"-icon"),!!_),a),V);if("string"==typeof W&&k)g=d.createElement("img",{src:W,draggable:G,srcSet:D,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&P(!1)},alt:$,crossOrigin:K});else if(en)g=W;else if(_)g=_;else if(C||1!==w){var eo="scale(".concat(w,") translateX(-50%)");g=d.createElement(u.default,{onResize:N},d.createElement("span",{className:"".concat(ee,"-string"),ref:H,style:(0,r.Z)((0,r.Z)({},"number"==typeof X?{lineHeight:"".concat(X,"px")}:{}),{msTransform:eo,WebkitTransform:eo,transform:eo})},U))}else g=d.createElement("span",{className:"".concat(ee,"-string"),style:{opacity:0},ref:H},U);return delete q.onError,delete q.gap,d.createElement("span",(0,r.Z)({},q,{style:(0,r.Z)((0,r.Z)((0,r.Z)({},"number"==typeof X?{width:X,height:X,lineHeight:"".concat(X,"px"),fontSize:_?X/2:18}:{}),Q),q.style),className:er,ref:B}),g)}),b=n(50344),x=n(55241),w=n(96159),E=y;E.Group=function(e){var t=d.useContext(f.E_),n=t.getPrefixCls,r=t.direction,i=e.prefixCls,l=e.className,a=e.maxCount,u=e.maxStyle,c=e.size,h=n("avatar-group",i),p=s()(h,(0,o.Z)({},"".concat(h,"-rtl"),"rtl"===r),void 0===l?"":l),m=e.children,v=e.maxPopoverPlacement,E=e.maxPopoverTrigger,T=(0,b.Z)(m).map(function(e,t){return(0,w.Tm)(e,{key:"avatar-key-".concat(t)})}),S=T.length;if(a&&a<S){var C=T.slice(0,a),I=T.slice(a,S);return C.push(d.createElement(x.Z,{key:"avatar-popover-key",content:I,trigger:void 0===E?"hover":E,placement:void 0===v?"top":v,overlayClassName:"".concat(h,"-popover")},d.createElement(y,{style:u},"+".concat(S-a)))),d.createElement(g,{size:c},d.createElement("div",{className:p,style:e.style},C))}return d.createElement(g,{size:c},d.createElement("div",{className:p,style:e.style},T))};var T=E},15746:function(e,t,n){"use strict";var r=n(21584);t.Z=r.Z},99134:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},21584:function(e,t,n){"use strict";var r=n(4942),o=n(87462),i=n(71002),l=n(94184),a=n.n(l),s=n(67294),u=n(53124),c=n(99134),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},f=["xs","sm","md","lg","xl","xxl"],h=s.forwardRef(function(e,t){var n,l=s.useContext(u.E_),h=l.getPrefixCls,p=l.direction,m=s.useContext(c.Z),g=m.gutter,v=m.wrap,y=m.supportFlexGap,b=e.prefixCls,x=e.span,w=e.order,E=e.offset,T=e.push,S=e.pull,C=e.className,I=e.children,O=e.flex,z=e.style,k=d(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),P=h("col",b),R={};f.forEach(function(t){var n,l={},a=e[t];"number"==typeof a?l.span=a:"object"===(0,i.Z)(a)&&(l=a||{}),delete k[t],R=(0,o.Z)((0,o.Z)({},R),(n={},(0,r.Z)(n,"".concat(P,"-").concat(t,"-").concat(l.span),void 0!==l.span),(0,r.Z)(n,"".concat(P,"-").concat(t,"-order-").concat(l.order),l.order||0===l.order),(0,r.Z)(n,"".concat(P,"-").concat(t,"-offset-").concat(l.offset),l.offset||0===l.offset),(0,r.Z)(n,"".concat(P,"-").concat(t,"-push-").concat(l.push),l.push||0===l.push),(0,r.Z)(n,"".concat(P,"-").concat(t,"-pull-").concat(l.pull),l.pull||0===l.pull),(0,r.Z)(n,"".concat(P,"-rtl"),"rtl"===p),n))});var H=a()(P,(n={},(0,r.Z)(n,"".concat(P,"-").concat(x),void 0!==x),(0,r.Z)(n,"".concat(P,"-order-").concat(w),w),(0,r.Z)(n,"".concat(P,"-offset-").concat(E),E),(0,r.Z)(n,"".concat(P,"-push-").concat(T),T),(0,r.Z)(n,"".concat(P,"-pull-").concat(S),S),n),C,R),B={};if(g&&g[0]>0){var A=g[0]/2;B.paddingLeft=A,B.paddingRight=A}if(g&&g[1]>0&&!y){var N=g[1]/2;B.paddingTop=N,B.paddingBottom=N}return O&&(B.flex="number"==typeof O?"".concat(O," ").concat(O," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(O)?"0 0 ".concat(O):O,!1!==v||B.minWidth||(B.minWidth=0)),s.createElement("div",(0,o.Z)({},k,{style:(0,o.Z)((0,o.Z)({},B),z),className:H,ref:t}),I)});t.Z=h},25378:function(e,t,n){"use strict";var r=n(67294),o=n(57838),i=n(24308);t.Z=function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)({}),n=(0,o.Z)();return(0,r.useEffect)(function(){var r=i.ZP.subscribe(function(r){t.current=r,e&&n()});return function(){return i.ZP.unsubscribe(r)}},[]),t.current}},92820:function(e,t,n){"use strict";var r=n(87462),o=n(4942),i=n(71002),l=n(97685),a=n(94184),s=n.n(a),u=n(67294),c=n(53124),d=n(98082),f=n(24308),h=n(93355),p=n(99134),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function g(e,t){var n=u.useState("string"==typeof e?e:""),r=(0,l.Z)(n,2),o=r[0],a=r[1],s=function(){if("string"==typeof e&&a(e),"object"===(0,i.Z)(e))for(var n=0;n<f.c4.length;n++){var r=f.c4[n];if(t[r]){var o=e[r];if(void 0!==o){a(o);return}}}};return u.useEffect(function(){s()},[JSON.stringify(e),t]),o}(0,h.b)("top","middle","bottom","stretch"),(0,h.b)("start","end","center","space-around","space-between","space-evenly");var v=u.forwardRef(function(e,t){var n,a,h=e.prefixCls,v=e.justify,y=e.align,b=e.className,x=e.style,w=e.children,E=e.gutter,T=void 0===E?0:E,S=e.wrap,C=m(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),I=u.useContext(c.E_),O=I.getPrefixCls,z=I.direction,k=u.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),P=(0,l.Z)(k,2),R=P[0],H=P[1],B=u.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),A=(0,l.Z)(B,2),N=A[0],j=A[1],L=g(y,N),Z=g(v,N),F=(0,d.Z)(),M=u.useRef(T);u.useEffect(function(){var e=f.ZP.subscribe(function(e){j(e);var t=M.current||0;(!Array.isArray(t)&&"object"===(0,i.Z)(t)||Array.isArray(t)&&("object"===(0,i.Z)(t[0])||"object"===(0,i.Z)(t[1])))&&H(e)});return function(){return f.ZP.unsubscribe(e)}},[]);var W=O("row",h),D=(n=[void 0,void 0],(Array.isArray(T)?T:[T,void 0]).forEach(function(e,t){if("object"===(0,i.Z)(e))for(var r=0;r<f.c4.length;r++){var o=f.c4[r];if(R[o]&&void 0!==e[o]){n[t]=e[o];break}}else n[t]=e}),n),_=s()(W,(a={},(0,o.Z)(a,"".concat(W,"-no-wrap"),!1===S),(0,o.Z)(a,"".concat(W,"-").concat(Z),Z),(0,o.Z)(a,"".concat(W,"-").concat(L),L),(0,o.Z)(a,"".concat(W,"-rtl"),"rtl"===z),a),b),V={},$=null!=D[0]&&D[0]>0?-(D[0]/2):void 0,G=null!=D[1]&&D[1]>0?-(D[1]/2):void 0;if($&&(V.marginLeft=$,V.marginRight=$),F){var U=(0,l.Z)(D,2);V.rowGap=U[1]}else G&&(V.marginTop=G,V.marginBottom=G);var K=(0,l.Z)(D,2),q=K[0],X=K[1],Y=u.useMemo(function(){return{gutter:[q,X],wrap:S,supportFlexGap:F}},[q,X,S,F]);return u.createElement(p.Z.Provider,{value:Y},u.createElement("div",(0,r.Z)({},C,{className:_,style:(0,r.Z)((0,r.Z)({},V),x),ref:t}),w))});t.Z=v},55241:function(e,t,n){"use strict";var r=n(87462),o=n(67294),i=n(53124),l=n(94199),a=n(81643),s=n(33603),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},c=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"".concat(r,"-title")},(0,a.Z)(t)),o.createElement("div",{className:"".concat(r,"-inner-content")},(0,a.Z)(n))):null},d=o.forwardRef(function(e,t){var n=e.prefixCls,a=e.title,d=e.content,f=e._overlay,h=e.placement,p=e.trigger,m=e.mouseEnterDelay,g=e.mouseLeaveDelay,v=e.overlayStyle,y=u(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),b=o.useContext(i.E_).getPrefixCls,x=b("popover",n),w=b();return o.createElement(l.Z,(0,r.Z)({placement:void 0===h?"top":h,trigger:void 0===p?"hover":p,mouseEnterDelay:void 0===m?.1:m,mouseLeaveDelay:void 0===g?.1:g,overlayStyle:void 0===v?{}:v},y,{prefixCls:x,ref:t,overlay:f||o.createElement(c,{prefixCls:x,title:a,content:d}),transitionName:(0,s.mL)(w,"zoom-big",y.transitionName)}))});t.Z=d},71230:function(e,t,n){"use strict";var r=n(92820);t.Z=r.Z},6907:function(e){"use strict";e.exports=function(e){return(e=String(e||""),r.test(e))?"rtl":o.test(e)?"ltr":"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-ࠀ-Ⰰ-︀--",r=RegExp("^[^"+n+"]*["+t+"]"),o=RegExp("^[^"+t+"]*["+n+"]")},95573:function(e){"use strict";/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,o=t.exec(r);if(!o)return r;var i="",l=0,a=0;for(l=o.index;l<r.length;l++){switch(r.charCodeAt(l)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==l&&(i+=r.substring(a,l)),a=l+1,i+=n}return a!==l?i+r.substring(a,l):i}},41366:function(e,t,n){"use strict";n.d(t,{xc:function(){return C}});var r=n(67294),o=n(4693);function i(e,t={}){var n,r;let o=e.map(e=>e.source).join(null!==(n=t.join)&&void 0!==n?n:"");return t.capture?o=`(${o})`:t.nonCapture&&(o=`(?:${o})`),t.match&&(o+=t.match),new RegExp(o,null!==(r=t.flags)&&void 0!==r?r:"")}let l=/[a-z0-9]/,a=/(?:[a-zA-Z\u0400-\u04FF0-9\-_~!$&'()[\]\\/*+,;=.%]*)/,s=/(https?:\/\/)?/,u=i([/[a-z\u0400-\u04FF0-9\-_~!$&'()*+,;=.:]+/,/@/],{capture:!0,match:"?"}),c=i([/(?:(?:[a-z0-9](?:[-a-z0-9_]*[a-z0-9])?)\.)*/,/(?:(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?)\.)/,/(?:[a-z](?:[-a-z0-9]*[a-z0-9])?)/],{capture:!0}),d=/(?::(\d{1,5}))?/,f=i([/\//,i([/[-+a-z0-9!*';:=,.$/%[\]_~@|&]*/,/[-+a-z0-9/]/],{match:"*",nonCapture:!0})],{capture:!0,match:"?"}),h=i([/\?/,i([a,/[a-z0-9_&=]/],{match:"?",nonCapture:!0})],{capture:!0,match:"?"}),p=i([/#/,i([a,/[a-z0-9]/],{match:"?",nonCapture:!0})],{capture:!0,match:"?"}),m=i([s,u,c,d,f,h,p],{flags:"i"}),g=/(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/,v=i([g,g,g,g],{capture:!0,join:"\\."});i([s,u,v,d,f,h,p],{flags:"i"}),i([/#/,i([/[\d_\u4E00-\u9FFF-]+/,/[\d_\u3000-\u30FF-]+/,/[\d_\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7FF-]+/,/[\d_\u0E00-\u0E7F-]+/,/[\d_a-z\u0400-\u052F\u1C80-\u1C8F\u2DE0-\u2DFF\uA640-\uA69F-]+/,/[\d_a-z\u0080-\u00FF\u0100-\u017F\u0180-\u024F-]+/],{capture:!0,join:"|"})],{flags:"i"});let y=i([l,/[.a-z0-9!#$%&?*+=_{|}~-]*/,l],{capture:!0}),b=i([y,c],{flags:"i",join:"@"}),x=RegExp(`^${b.source}$`,b.flags),w=["com","org","net","int","edu","gov","mil","aero","asia","biz","cat","coop","jobs","mobi","museum","post","tel","travel","xxx","arpa","test","ac","ad","ae","af","ag","ai","al","am","an","ao","aq","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bl","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","st","su","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tp","tr","tt","tv","tw","tz","ua","ug","uk","um","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"];function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T({children:e,href:t,onClick:n,newWindow:o}){return r.createElement("a",{href:t,rel:"noopener noreferrer",target:o?"_blank":void 0,onClick:n},e)}function S({children:e,url:t,urlParts:n,...o}){let i=t;return i.match(/^https?:\/\//)||(i=`http://${i}`),r.createElement(T,E({},o,{href:i}),e)}class C extends o.M{constructor(e,t,n){super(e,{customTLDs:[],validateTLD:!0,...t},n)}replaceWith(e,t){return r.createElement(S,t,e)}asTag(){return"a"}match(e){let t=this.doMatch(e,m,this.handleMatches);if(null!=t&&t.match.match(x)&&(t.valid=!1),null!=t&&t.valid&&this.options.validateTLD){var n;let{host:e}=t.urlParts,r=[...w,...null!==(n=this.options.customTLDs)&&void 0!==n?n:[]],o=e.slice(e.lastIndexOf(".")+1).toLowerCase();if(!r.includes(o))return null}return t}handleMatches(e){return{url:e[0],urlParts:{auth:e[2]?e[2].slice(0,-1):"",fragment:e[7]||"",host:e[3],path:e[5]||"",port:e[4]?e[4]:"",query:e[6]||"",scheme:e[1]?e[1].replace("://",""):"http"}}}}},4693:function(e,t,n){"use strict";n.d(t,{A:function(){return u},B:function(){return s},E:function(){return v},F:function(){return y},M:function(){return b},T:function(){return a},a:function(){return p},b:function(){return c},c:function(){return m},d:function(){return f},e:function(){return d},f:function(){return h}});var r=n(67294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let i={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function l(e){return t=>{i[t]={...e,...i[t]}}}["address","main","div","figure","p","pre"].forEach(l({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(l({content:8,type:73})),["p","pre"].forEach(l({content:8,type:65})),["s","small","span","del","ins"].forEach(l({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(l({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(l({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(l({type:89}));let a=Object.freeze(i),s=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],u=Object.keys(a).filter(e=>"canvas"!==e&&"iframe"!==e),c=2,d=3,f=4,h=5,p=Object.freeze({alt:1,cite:1,class:1,colspan:d,controls:f,datetime:1,default:f,disabled:f,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:f,media:1,muted:f,poster:1,rel:1,role:1,rowspan:d,scope:1,sizes:1,span:d,start:d,style:h,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),m=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v({attributes:e={},className:t,children:n=null,selfClose:o=!1,tagName:i}){return o?r.createElement(i,g({className:t},e)):r.createElement(i,g({className:t},e),n)}class y{attribute(e,t){return t}node(e,t){return t}}class b{constructor(e,t,n){o(this,"greedy",!1),o(this,"options",void 0),o(this,"propName",void 0),o(this,"inverseName",void 0),o(this,"factory",void 0),this.options={...t},this.propName=e,this.inverseName=`no${e.charAt(0).toUpperCase()+e.slice(1)}`,this.factory=null!=n?n:null}createElement(e,t){let n=this.factory?r.createElement(this.factory,t,e):this.replaceWith(e,t);return n}doMatch(e,t,n,r=!1){return function(e,t,n,r=!1){let o=e.match(t instanceof RegExp?t:RegExp(t,"i"));return o?{match:o[0],void:r,...n(o),index:o.index,length:o[0].length,valid:!0}:null}(e,t,n,r)}onBeforeParse(e,t){return e}onAfterParse(e,t){return e}}},63108:function(e,t,n){"use strict";n.d(t,{wZ:function(){return g}});var r=n(4693),o=n(67294),i=n(95573),l=n.n(i);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let s=/(url|image|image-set)\(/i;class u extends r.F{attribute(e,t){return"style"===e&&Object.keys(t).forEach(e=>{String(t[e]).match(s)&&delete t[e]}),t}}let c=/^<(!doctype|(html|head|body)(\s|>))/i,d=/^(aria-|data-|\w+:)/iu,f=/{{{(\w+)\/?}}}/;function h(){if("undefined"!=typeof window&&"undefined"!=typeof document)return document.implementation.createHTMLDocument("Interweave")}class p{constructor(e,t={},n=[],o=[]){var i;a(this,"allowed",void 0),a(this,"banned",void 0),a(this,"blocked",void 0),a(this,"container",void 0),a(this,"content",[]),a(this,"props",void 0),a(this,"matchers",void 0),a(this,"filters",void 0),a(this,"keyIndex",void 0),this.props=t,this.matchers=n,this.filters=[...o,new u],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set(null!==(i=t.allowList)&&void 0!==i?i:r.A),this.banned=new Set(r.B),this.blocked=new Set(t.blockList)}applyAttributeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.attribute?n.attribute(e,t):t,t)}applyNodeFilters(e,t){return this.filters.reduce((t,n)=>null!==t&&"function"==typeof n.node?n.node(e,t):t,t)}applyMatchers(e,t){let n={},{props:r}=this,o=e,i=0,l=null;return(this.matchers.forEach(e=>{let a=e.asTag().toLowerCase(),s=this.getTagConfig(a);if(r[e.inverseName]||!this.isTagAllowed(a)||!this.canRenderChild(t,s))return;let u="";for(;o&&(l=e.match(o));){let{index:t,length:a,match:s,valid:c,void:d,...f}=l,h=e.propName+String(i);t>0&&(u+=o.slice(0,t)),c?(u+=d?`{{{${h}/}}}`:`{{{${h}}}}${s}{{{/${h}}}}`,this.keyIndex+=1,i+=1,n[h]={children:s,matcher:e,props:{...r,...f,key:this.keyIndex}}):u+=s,e.greedy?(o=u+o.slice(t+a),u=""):o=o.slice(t+(a||s.length))}e.greedy||(o=u+o)}),0===i)?e:this.replaceTokens(o,n)}canRenderChild(e,t){return!!e.tagName&&!!t.tagName&&!e.void&&(e.children.length>0?e.children.includes(t.tagName):!(e.invalid.length>0&&e.invalid.includes(t.tagName))&&(t.parent.length>0?t.parent.includes(e.tagName):(!!e.self||e.tagName!==t.tagName)&&!!(e&&e.content&t.type)))}convertLineBreaks(e){let{noHtml:t,disableLineBreaks:n}=this.props;if(t||n||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let r=e.replace(/\r\n/g,"\n");return(r=r.replace(/\n{3,}/g,"\n\n\n")).replace(/\n/g,"<br/>")}createContainer(e){var t;let r=void 0!==n.g&&n.g.INTERWEAVE_SSR_POLYFILL||h,o=r();if(!o)return;let i=null!==(t=this.props.containerTagName)&&void 0!==t?t:"body",a="body"===i||"fragment"===i?o.body:o.createElement(i);return e.match(c)||(a.innerHTML=this.convertLineBreaks(this.props.escapeHtml?l()(e):e)),a}extractAttributes(e){let{allowAttributes:t}=this.props,n={},o=0;return 1===e.nodeType&&e.attributes?([...e.attributes].forEach(i=>{let{name:l,value:a}=i,s=l.toLowerCase(),u=r.a[s]||r.a[l];if(!this.isSafe(e)||!s.match(d)&&(!t&&(!u||u===r.b)||s.startsWith("on")||a.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let c="style"===s?this.extractStyleAttribute(e):a;u===r.d?c=!0:u===r.e?c=Number.parseFloat(String(c)):u!==r.f&&(c=String(c)),n[r.c[s]||s]=this.applyAttributeFilters(s,c),o+=1}),0===o)?null:n:null}extractStyleAttribute(e){let t={};return Array.from(e.style).forEach(n=>{let r=e.style[n];("string"==typeof r||"number"==typeof r)&&(t[n.replace(/-([a-z])/g,(e,t)=>String(t).toUpperCase())]=r)}),t}getTagConfig(e){let t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return r.T[e]?{...t,...r.T[e],tagName:e}:t}isSafe(e){if("undefined"!=typeof HTMLAnchorElement&&e instanceof HTMLAnchorElement){let t=e.getAttribute("href");if(null!=t&&t.startsWith("#"))return!0;let n=e.protocol.toLowerCase();return":"===n||"http:"===n||"https:"===n||"mailto:"===n||"tel:"===n}return!0}isTagAllowed(e){return!(this.banned.has(e)||this.blocked.has(e))&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,t){let{noHtml:n,noHtmlExceptMatchers:i,allowElements:l,transform:a,transformOnlyAllowList:s}=this.props,u=[],c="";return[...e.childNodes].forEach(e=>{if(1===e.nodeType){let f;let h=e.nodeName.toLowerCase(),p=this.getTagConfig(h);c&&(u.push(c),c="");let m=this.applyNodeFilters(h,e);if(m){if(a&&!(s&&!this.isTagAllowed(h))){this.keyIndex+=1;let e=this.keyIndex;f=this.parseNode(m,p);let t=a(m,f,p);if(null===t)return;if(void 0!==t){u.push(o.cloneElement(t,{key:e}));return}this.keyIndex=e-1}if(!this.banned.has(h)){if(!(n||i&&"br"!==h)&&this.isTagAllowed(h)&&(l||this.canRenderChild(t,p))){var d;this.keyIndex+=1;let e=this.extractAttributes(m),t={tagName:h};e&&(t.attributes=e),p.void&&(t.selfClose=p.void),u.push(o.createElement(r.E,{...t,key:this.keyIndex},null!==(d=f)&&void 0!==d?d:this.parseNode(m,p)))}else u=[...u,...this.parseNode(m,p.tagName?p:t)]}}}else if(3===e.nodeType){let r=n&&!i?e.textContent:this.applyMatchers(e.textContent||"",t);Array.isArray(r)?u=[...u,...r]:c+=r}}),c&&u.push(c),u}replaceTokens(e,t){if(!e.includes("{{{"))return e;let n=[],r=e,o=null;for(;o=r.match(f);){let e;let[i,l]=o,a=o.index,s=i.includes("/");a>0&&(n.push(r.slice(0,a)),r=r.slice(a));let{children:u,matcher:c,props:d}=t[l];if(s)e=i.length,n.push(c.createElement(u,d));else{let o=r.match(RegExp(`{{{/${l}}}}`));e=o.index+o[0].length,n.push(c.createElement(this.replaceTokens(r.slice(i.length,o.index),t),d))}r=r.slice(e)}return(r.length>0&&n.push(r),0===n.length)?"":1===n.length&&"string"==typeof n[0]?n[0]:n}}function m(e){var t;let n;let{attributes:i,className:l,containerTagName:a,content:s,emptyContent:u,parsedContent:c,tagName:d,noWrap:f}=e,h=null!==(t=null!=a?a:d)&&void 0!==t?t:"span";if(c)n=c;else{let t=new p(null!=s?s:"",e).parse();t.length>0&&(n=t)}return(n||(n=u),"fragment"===h||f)?o.createElement(o.Fragment,null,n):o.createElement(r.E,{attributes:i,className:l,tagName:h},n)}function g(e){let{attributes:t,className:n,content:r="",disableFilters:i=!1,disableMatchers:l=!1,emptyContent:a=null,filters:s=[],matchers:u=[],onAfterParse:c=null,onBeforeParse:d=null,tagName:f="span",noWrap:h=!1,...g}=e,v=l?[]:u,y=d?[d]:[],b=c?[c]:[];v.forEach(e=>{e.onBeforeParse&&y.push(e.onBeforeParse.bind(e)),e.onAfterParse&&b.push(e.onAfterParse.bind(e))});let x=y.reduce((t,n)=>{let r=n(t,e);return r},null!=r?r:""),w=new p(x,g,v,i?[]:s),E=b.reduce((t,n)=>{let r=n(t,e);return r},w.parse());return o.createElement(m,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:a,noWrap:h,parsedContent:0===E.length?void 0:E,tagName:f})}},18156:function(e,t){"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},l=1;l<20;l++)i["f"+l]=111+l;function a(e){return e=o[e=e.toLowerCase()]||e}t.TB=function(e,t){var n,o,l,s,u;return n=e,o={byKey:!0},l=t,!o||"byKey"in o||(l=o,o=null),Array.isArray(n)||(n=[n]),s=n.map(function(e){return function(e,t){var n=t&&t.byKey,o={},l=(e=e.replace("++","+add")).split("+"),s=l.length;for(var u in r)o[r[u]]=!1;var c=!0,d=!1,f=void 0;try{for(var h,p=l[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var m,g=h.value,v=g.endsWith("?")&&g.length>1;v&&(g=g.slice(0,-1));var y=a(g),b=r[y];1!==s&&b||(n?o.key=y:o.which=(m=g,i[m=a(m)]||m.toUpperCase().charCodeAt(0))),b&&(o[b]=!v||null)}}catch(e){d=!0,f=e}finally{try{!c&&p.return&&p.return()}finally{if(d)throw f}}return o}(e,o)}),u=function(e){return s.some(function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)})},null==l?u:u(l)}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),r(e,t,{leading:i,maxWait:t,trailing:l})}},94203:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function i(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n,r=getComputedStyle(e,null);return o(r.overflowY,t)||o(r.overflowX,t)||!!(n=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1}function l(e,t,n,r,o,i,l,a){return i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-r:l>t&&a<n||i<e&&a>n?l-t+o:0}n.d(t,{Z:function(){return u}});var a=function(e,t){var n=window,o=t.scrollMode,a=t.block,s=t.inline,u=t.boundary,c=t.skipOverflowHiddenElements,d="function"==typeof u?u:function(e){return e!==u};if(!r(e))throw TypeError("Invalid target");for(var f,h,p=document.scrollingElement||document.documentElement,m=[],g=e;r(g)&&d(g);){if((g=null==(h=(f=g).parentElement)?f.getRootNode().host||null:h)===p){m.push(g);break}null!=g&&g===document.body&&i(g)&&!i(document.documentElement)||null!=g&&i(g,c)&&m.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,y=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,x=window.scrollY||pageYOffset,w=e.getBoundingClientRect(),E=w.height,T=w.width,S=w.top,C=w.right,I=w.bottom,O=w.left,z="start"===a||"nearest"===a?S:"end"===a?I:S+E/2,k="center"===s?O+T/2:"end"===s?C:O,P=[],R=0;R<m.length;R++){var H=m[R],B=H.getBoundingClientRect(),A=B.height,N=B.width,j=B.top,L=B.right,Z=B.bottom,F=B.left;if("if-needed"===o&&S>=0&&O>=0&&I<=y&&C<=v&&S>=j&&I<=Z&&O>=F&&C<=L)break;var M=getComputedStyle(H),W=parseInt(M.borderLeftWidth,10),D=parseInt(M.borderTopWidth,10),_=parseInt(M.borderRightWidth,10),V=parseInt(M.borderBottomWidth,10),$=0,G=0,U="offsetWidth"in H?H.offsetWidth-H.clientWidth-W-_:0,K="offsetHeight"in H?H.offsetHeight-H.clientHeight-D-V:0,q="offsetWidth"in H?0===H.offsetWidth?0:N/H.offsetWidth:0,X="offsetHeight"in H?0===H.offsetHeight?0:A/H.offsetHeight:0;if(p===H)$="start"===a?z:"end"===a?z-y:"nearest"===a?l(x,x+y,y,D,V,x+z,x+z+E,E):z-y/2,G="start"===s?k:"center"===s?k-v/2:"end"===s?k-v:l(b,b+v,v,W,_,b+k,b+k+T,T),$=Math.max(0,$+x),G=Math.max(0,G+b);else{$="start"===a?z-j-D:"end"===a?z-Z+V+K:"nearest"===a?l(j,Z,A,D,V+K,z,z+E,E):z-(j+A/2)+K/2,G="start"===s?k-F-W:"center"===s?k-(F+N/2)+U/2:"end"===s?k-L+_+U:l(F,L,N,W,_+U,k,k+T,T);var Y=H.scrollLeft,J=H.scrollTop;z+=J-($=Math.max(0,Math.min(J+$/X,H.scrollHeight-A/X+K))),k+=Y-(G=Math.max(0,Math.min(Y+G/q,H.scrollWidth-N/q+U)))}P.push({el:H,top:$,left:G})}return P};function s(e){return e===Object(e)&&0!==Object.keys(e).length}var u=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(s(t)&&"function"==typeof t.behavior)return t.behavior(n?a(e,t):[]);if(n){var r=!1===t?{block:"end",inline:"nearest"}:s(t)?t:{block:"start",inline:"nearest"};return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)})}(a(e,r),r.behavior)}}},12902:function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[W]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===D}(e)||Array.isArray(e)||!!e[M]||!!(null===(t=e.constructor)||void 0===t?void 0:t[M])||c(e)||d(e))}function l(e,t,n){void 0===n&&(n=!1),0===a(e)?(n?Object.keys:_)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function a(e){var t=e[W];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:c(e)?2:d(e)?3:0}function s(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t,n){var r=a(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function c(e){return j&&e instanceof Map}function d(e){return L&&e instanceof Set}function f(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=V(e);delete t[W];for(var n=_(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function p(e,t){return void 0===t&&(t=!1),g(e)||o(e)||!i(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&l(e,function(e,t){return p(t,!0)},!0)),e}function m(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=$[e];return t||r(18,e),t}function y(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function b(e){x(e),e.p.forEach(E),e.p=null}function x(e){e===A&&(A=e.l)}function w(e){return A={p:[],l:A,h:e,m:!0,_:0}}function E(e){var t=e[W];0===t.i||1===t.i?t.j():t.g=!0}function T(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||v("ES5").S(t,e,o),o?(n[W].P&&(b(t),r(4)),i(e)&&(e=S(t,e),t.l||I(t,e)),t.u&&v("Patches").M(n[W].t,e,t.u,t.s)):e=S(t,n,[]),b(t),t.u&&t.v(t.u,t.s),e!==F?e:void 0}function S(e,t,n){if(g(t))return t;var r=t[W];if(!r)return l(t,function(o,i){return C(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return I(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=h(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),l(i,function(t,i){return C(e,r,o,t,i,n,a)}),I(e,o,!1),n&&e.u&&v("Patches").N(r,n,e.u,e.s)}return r.o}function C(e,t,n,r,l,a,c){if(o(l)){var d=S(e,l,a&&t&&3!==t.i&&!s(t.R,r)?a.concat(r):void 0);if(u(n,r,d),!o(d))return;e.m=!1}else c&&n.add(l);if(i(l)&&!g(l)){if(!e.h.D&&e._<1)return;S(e,l),t&&t.A.l||I(e,l)}}function I(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&p(t,n)}function O(e,t){var n=e[W];return(n?f(n):e)[t]}function z(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function k(e){e.P||(e.P=!0,e.l&&k(e.l))}function P(e){e.o||(e.o=h(e.t))}function R(e,t,n){var r,o,i,l,a,s,u,f=c(t)?v("MapSet").F(t,n):d(t)?v("MapSet").T(t,n):e.O?(i=o={i:(r=Array.isArray(t))?1:0,A:n?n.A:A,P:!1,I:!1,R:{},l:n,t:t,k:null,o:null,j:null,C:!1},l=G,r&&(i=[o],l=U),s=(a=Proxy.revocable(i,l)).revoke,u=a.proxy,o.k=u,o.j=s,u):v("ES5").J(t,n);return(n?n.A:A).p.push(f),f}function H(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}n.d(t,{P2:function(){return X},Uy:function(){return q},_x:function(){return Y},mv:function(){return o}});var B,A,N="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),j="undefined"!=typeof Map,L="undefined"!=typeof Set,Z="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,F=N?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),M=N?Symbol.for("immer-draftable"):"__$immer_draftable",W=N?Symbol.for("immer-state"):"__$immer_state",D=""+Object.prototype.constructor,_="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,V=Object.getOwnPropertyDescriptors||function(e){var t={};return _(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},$={},G={get:function(e,t){if(t===W)return e;var n,r,o=f(e);if(!s(o,t))return(r=z(o,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var l=o[t];return e.I||!i(l)?l:l===O(e.t,t)?(P(e),e.o[t]=R(e.A.h,l,e)):l},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,n){var r=z(f(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=O(f(e),t),i=null==o?void 0:o[W];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if((n===o?0!==n||1/n==1/o:n!=n&&o!=o)&&(void 0!==n||s(e.t,t)))return!0;P(e),k(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==O(e.t,t)||t in e.t?(e.R[t]=!1,P(e),k(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=f(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},U={};l(G,function(e,t){U[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),U.deleteProperty=function(e,t){return U.set.call(this,e,t,void 0)},U.set=function(e,t,n){return G.set.call(this,e[0],t,n,e[0])};var K=new(function(){function e(e){var t=this;this.O=Z,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var l,a=n;return n=e,function(e){var r=this;void 0===e&&(e=a);for(var o=arguments.length,i=Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];return t.produce(e,function(e){var t;return(t=n).call.apply(t,[r,e].concat(i))})}}if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var s=w(t),u=R(t,e,void 0),c=!0;try{l=n(u),c=!1}finally{c?b(s):x(s)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then(function(e){return y(s,o),T(e,s)},function(e){throw b(s),e}):(y(s,o),T(l,s))}if(!e||"object"!=typeof e){if(void 0===(l=n(e))&&(l=e),l===F&&(l=void 0),t.D&&p(l,!0),o){var d=[],f=[];v("Patches").M(e,l,d,f),o(d,f)}return l}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(o(t=e)||r(22,t),e=function e(t){if(!i(t))return t;var n,r=t[W],o=a(t);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=H(t,o),r.I=!1}else n=H(t,o);return l(n,function(t,o){var i;r&&(2===a(i=r.t)?i.get(t):i[t])===o||u(n,t,e(o))}),3===o?new Set(n):n}(t));var t,n=w(this),s=R(this,e,void 0);return s[W].C=!0,x(n),s},t.finishDraft=function(e,t){var n=(e&&e[W]).A;return y(n,t),T(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Z&&r(20),this.O=e},t.applyPatches=function(e,t){for(n=t.length-1;n>=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=v("Patches").$;return o(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}()),q=K.produce,X=(K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseProxies.bind(K),K.applyPatches.bind(K),K.createDraft.bind(K)),Y=K.finishDraft.bind(K)},26246:function(e,t,n){"use strict";n.d(t,{OO:function(){return tz}});var r,o=n(67294),i=n(73935);function l(e,t){return n=>e(t(n))}function a(e,t){return t(e)}function s(...e){return e}function u(e){e()}function c(){}function d(e){e(2)}function f(e){return e(4)}function h(e,t){return e(1,e=>t(0,e))}function p(e,t){let n=e(1,e=>{n(),t(e)});return n}function m(){let e=[];return(t,n)=>{switch(t){case 2:e.splice(0,e.length);return;case 1:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)};case 0:e.slice().forEach(e=>{e(n)});return;default:throw Error(`unrecognized action ${t}`)}}}function g(e){let t=e,n=m();return(e,r)=>{switch(e){case 1:r(t);break;case 0:t=r;break;case 4:return t}return n(e,r)}}function v(e){var t,n;return h(e,t=m()),t}function y(e,t){var n,r;return h(e,n=g(t)),n}function b(e,...t){let n=function(...e){return t=>e.reduceRight(a,t)}(...t);return(t,r)=>{switch(t){case 1:return e(1,n(r));case 2:d(e);return}}}function x(e,t){return e===t}function w(e=x){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function E(e){return t=>n=>{e(n)&&t(n)}}function T(e){return t=>l(t,e)}function S(e){return t=>()=>t(e)}function C(e,t){return n=>r=>n(t=e(t,r))}function I(e){return t=>n=>{e>0?e--:t(n)}}function O(e){let t;return n=>r=>{t||(t=setTimeout(()=>{t=void 0,n(r)},e))}}function z(e){let t;return n=>r=>{t&&clearTimeout(t),t=setTimeout(()=>{n(r)},e)}}function k(...e){let t=Array(e.length),n=0,r=null,o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{let l=Math.pow(2,i);e(1,e=>{let a=n;n|=l,t[i]=e,a!==o&&n===o&&r&&(r(),r=null)})}),e=>i=>{let l=()=>e([i].concat(t));n===o?l():r=l}}function P(...e){return function(t,n){switch(t){case 1:return function(...e){return()=>{e.map(u)}}(...e.map(e=>e(1,n)));case 2:return;default:throw Error(`unrecognized action ${t}`)}}}function R(e,t=x){return b(e,w(t))}function H(...e){let t=m(),n=Array(e.length),r=0,o=Math.pow(2,e.length)-1;return e.forEach((e,i)=>{let l=Math.pow(2,i);e(1,e=>{n[i]=e,(r|=l)===o&&t(0,n)})}),function(e,i){switch(e){case 1:return r===o&&i(n),t(1,i);case 2:return d(t);default:throw Error(`unrecognized action ${e}`)}}}function B(e,t=[],{singleton:n}={singleton:!0}){return{id:A(),constructor:e,dependencies:t,singleton:n}}let A=()=>Symbol(),N="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function j(e,t,n){let r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),l=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),s=o.createContext({});function u(e,n){for(let o of(e.propsReady&&(0,e.propsReady)(0,!1),r)){let r=e[t.required[o]];r(0,n[o])}for(let r of i)if(r in n){let o=e[t.optional[r]];o(0,n[r])}e.propsReady&&(0,e.propsReady)(0,!0)}let f=o.forwardRef((f,h)=>{var p;let{children:m,...g}=f,[v]=o.useState(()=>{var t,n;return u(t=function(e){let t=new Map,n=({id:e,constructor:r,dependencies:o,singleton:i})=>{if(i&&t.has(e))return t.get(e);let l=r(o.map(e=>n(e)));return i&&t.set(e,l),l};return n(e)}(e),g),t}),[y]=o.useState(()=>{var e;return e=v,a.reduce((n,r)=>(n[r]=function(e){let t,n;let r=()=>t&&t();return function(o,i){switch(o){case 1:if(!i)return r(),c;if(n===i)return;return r(),n=i,t=e(1,i);case 2:r(),n=null;return;default:throw Error(`unrecognized action ${o}`)}}}(e[t.events[r]]),n),{})});return N(()=>{for(let e of a)e in g&&(0,y[e])(1,g[e]);return()=>{Object.values(y).map(d)}},[g,y,v]),N(()=>{u(v,g)}),o.useImperativeHandle(h,(p=l.reduce((e,n)=>(e[n]=e=>{let r=v[t.methods[n]];r(0,e)},e),{}),()=>p)),o.createElement(s.Provider,{value:v},n?o.createElement(n,function(e,t){let n={},r={},o=0,i=e.length;for(;o<i;)r[e[o]]=1,o+=1;for(let e in t)r.hasOwnProperty(e)||(n[e]=t[e]);return n}([...r,...i,...a],g),m):m)}),h=e=>{var t;return o.useCallback((t=o.useContext(s)[e],e=>{var n,r;(n=t)(0,r=e)}),[e])},p=e=>{let t=o.useContext(s),n=t[e],[r,i]=o.useState(()=>n(4));return N(()=>n(1,e=>{e!==r&&i(()=>e)}),[n,r]),r},m=(e,t)=>{let n=o.useContext(s),r=n[e];N(()=>r(1,t),[t,r])};return{Component:f,usePublisher:h,useEmitterValue:p,useEmitter:m}}let L="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;var Z=((r=Z||{})[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r);let F={0:"debug",1:"log",2:"warn",3:"error"},M=()=>"undefined"==typeof globalThis?window:globalThis,W=B(()=>{let e=g(3),t=g((t,n,r=1)=>{let o=M().VIRTUOSO_LOG_LEVEL??e(4);r>=o&&console[F[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)});return{log:t,logLevel:e}},[],{singleton:!0});function D(e,t=!0){let n=o.useRef(null),r=e=>{};if("undefined"!=typeof ResizeObserver){let i=o.useMemo(()=>new ResizeObserver(t=>{let n=t[0].target;null!==n.offsetParent&&e(n)}),[e]);r=e=>{e&&t?(i.observe(e),n.current=e):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function _(e,t=!0){return D(e,t).callbackRef}function V(e,t,n,r,i,l,a){let s=o.useCallback(n=>{var o;let s=function(e,t,n,r){let o=e.length;if(0===o)return null;let i=[];for(let l=0;l<o;l++){let o=e.item(l);if(!o||void 0===o.dataset.index)continue;let a=parseInt(o.dataset.index),s=parseFloat(o.dataset.knownSize),u=t(o,n);if(0===u&&r("Zero-sized element, this should not happen",{child:o},Z.ERROR),u===s)continue;let c=i[i.length-1];0===i.length||c.size!==u||c.endIndex!==a-1?i.push({startIndex:a,endIndex:a,size:u}):i[i.length-1].endIndex++}return i}(n.children,t,"offsetHeight",i),u=n.parentElement;for(;!u.dataset.virtuosoScroller;)u=u.parentElement;let c="window"===u.lastElementChild.dataset.viewportType,d=a?a.scrollTop:c?window.pageYOffset||document.documentElement.scrollTop:u.scrollTop,f=a?a.scrollHeight:c?document.documentElement.scrollHeight:u.scrollHeight,h=a?a.offsetHeight:c?window.innerHeight:u.offsetHeight;r({scrollTop:Math.max(d,0),scrollHeight:f,viewportHeight:h}),null==l||l(("normal"===(o=getComputedStyle(n).rowGap)||(null==o?void 0:o.endsWith("px"))||i("row-gap was not resolved to pixel value correctly",o,Z.WARN),"normal"===o)?0:parseInt(o??"0",10)),null!==s&&e(s)},[e,t,i,l,a,r]);return D(s,n)}function $(e,t){return Math.round(e.getBoundingClientRect()[t])}function G(e,t){return 1.01>Math.abs(e-t)}function U(e,t,n,r=c,l){let a=o.useRef(null),s=o.useRef(null),u=o.useRef(null),d=o.useCallback(n=>{let r=n.target,o=r===window||r===document,l=o?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,a=o?document.documentElement.scrollHeight:r.scrollHeight,c=o?window.innerHeight:r.offsetHeight,d=()=>{e({scrollTop:Math.max(l,0),scrollHeight:a,viewportHeight:c})};n.suppressFlushSync?d():i.flushSync(d),null!==s.current&&(l===s.current||l<=0||l===a-c)&&(s.current=null,t(!0),u.current&&(clearTimeout(u.current),u.current=null))},[e,t]);return o.useEffect(()=>{let e=l||a.current;return r(l||a.current),d({target:e,suppressFlushSync:!0}),e.addEventListener("scroll",d,{passive:!0}),()=>{r(null),e.removeEventListener("scroll",d)}},[a,d,n,r,l]),{scrollerRef:a,scrollByCallback:function(e){a.current.scrollBy(e)},scrollToCallback:function(n){let r,o,i;let l=a.current;if(!l||"offsetHeight"in l&&0===l.offsetHeight)return;let c="smooth"===n.behavior;l===window?(o=Math.max($(document.documentElement,"height"),document.documentElement.scrollHeight),r=window.innerHeight,i=document.documentElement.scrollTop):(o=l.scrollHeight,r=$(l,"height"),i=l.scrollTop);let d=o-r;if(n.top=Math.ceil(Math.max(Math.min(d,n.top),0)),G(r,o)||n.top===i){e({scrollTop:i,scrollHeight:o,viewportHeight:r}),c&&t(!0);return}c?(s.current=n.top,u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{u.current=null,s.current=null,t(!0)},1e3)):s.current=null,l.scrollTo(n)}}}let K=B(()=>{let e=m(),t=m(),n=g(0),r=m(),o=g(0),i=m(),l=m(),a=g(0),s=g(0),u=g(0),c=g(0),d=m(),f=m(),p=g(!1);return h(b(e,T(({scrollTop:e})=>e)),t),h(b(e,T(({scrollHeight:e})=>e)),l),h(t,o),{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:a,fixedHeaderHeight:s,fixedFooterHeight:u,footerHeight:c,scrollHeight:l,smoothScrollTargetReached:r,scrollTo:d,scrollBy:f,statefulScrollTop:o,deviation:n,scrollingInProgress:p}},[],{singleton:!0}),q={lvl:0};function X(e,t,n,r=q,o=q){return{k:e,v:t,lvl:n,l:r,r:o}}function Y(e){return e===q}function J(e,t){return Y(e)?void 0:t===e.k?e.v:t<e.k?J(e.l,t):J(e.r,t)}function Q(e,t,n="k"){if(Y(e))return[-1/0,void 0];if(e[n]===t)return[e.k,e.v];if(e[n]<t){let r=Q(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return Q(e.l,t,n)}function ee(e,t,n){var r,o;return Y(e)?X(t,n,1):t===e.k?en(e,{k:t,v:n}):t<e.k?ea(es(en(e,{l:ee(e.l,t,n)}))):ea(es(en(e,{r:ee(e.r,t,n)})))}function et(e){return Y(e)?[]:[...et(e.l),{k:e.k,v:e.v},...et(e.r)]}function en(e,t){return X(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 er(e){return Y(e)||e.lvl>e.r.lvl}function eo(e){let{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(er(t))return es(en(e,{lvl:r-1}));if(!Y(t)&&!Y(t.r))return en(t.r,{l:en(t,{r:t.r.l}),r:en(e,{l:t.r.r,lvl:r-1}),lvl:r});throw Error("Unexpected empty nodes")}if(er(e))return ea(en(e,{lvl:r-1}));if(Y(n)||Y(n.l))throw Error("Unexpected empty nodes");{let t=n.l,o=er(t)?n.lvl-1:n.lvl;return en(t,{l:en(e,{r:t.l,lvl:r-1}),r:ea(en(n,{l:t.r,lvl:o})),lvl:t.lvl+1})}}function ei(e,t,n){if(Y(e))return[];let r=Q(e,t)[0];return el(function e(t,n,r){if(Y(t))return[];let{k:o,v:i,l,r:a}=t,s=[];return o>n&&(s=s.concat(e(l,n,r))),o>=n&&o<=r&&s.push({k:o,v:i}),o<=r&&(s=s.concat(e(a,n,r))),s}(e,r,n),({k:e,v:t})=>({index:e,value:t}))}function el(e,t){let n=e.length;if(0===n)return[];let{index:r,value:o}=t(e[0]),i=[];for(let l=1;l<n;l++){let{index:n,value:a}=t(e[l]);i.push({start:r,end:n-1,value:o}),r=n,o=a}return i.push({start:r,end:1/0,value:o}),i}function ea(e){let{r:t,lvl:n}=e;return Y(t)||Y(t.r)||t.lvl!==n||t.r.lvl!==n?e:en(t,{l:en(e,{r:t.l}),lvl:n+1})}function es(e){let{l:t}=e;return Y(t)||t.lvl!==e.lvl?e:en(t,{r:en(e,{l:t.r})})}function eu(e,t,n,r=0){let o=e.length-1;for(;r<=o;){let i=Math.floor((r+o)/2),l=e[i],a=n(l,t);if(0===a)return i;if(-1===a){if(o-r<2)return i-1;o=i-1}else{if(o===r)return i;r=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}let ec=B(()=>{let e=g(!1);return{recalcInProgress:e}},[],{singleton:!0});function ed(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;let o=n===e;return r-(o?0:1)}function ef({index:e},t){return t===e?0:t<e?-1:1}function eh({offset:e},t){return t===e?0:t<e?-1:1}function ep(e){return{index:e.index,value:e}}function em(e,t,n,r){let o=e,i=0,l=0,a=0,s=0;if(0!==t){s=eu(o,t-1,ef);let e=o[s];a=e.offset;let r=Q(n,t-1);i=r[0],l=r[1],o.length&&o[s].size===Q(n,t)[1]&&(s-=1),o=o.slice(0,s+1)}else o=[];for(let{start:e,value:s}of ei(n,t,1/0)){let t=e-i,n=t*l+a+t*r;o.push({offset:n,size:s,index:e}),i=e,a=n,l=s}return{offsetTree:o,lastIndex:i,lastOffset:a,lastSize:l}}function eg(e,[t,n,r,o]){t.length>0&&r("received item sizes",t,Z.DEBUG);let i=e.sizeTree,l=i,a=0;if(n.length>0&&Y(i)&&2===t.length){let e=t[0].size,r=t[1].size;l=n.reduce((t,n)=>ee(ee(t,n,e),n+1,r),l)}else[l,a]=function(e,t){let n=Y(e)?0:1/0;for(let r of t){let{size:t,startIndex:o,endIndex:i}=r;if(n=Math.min(n,o),Y(e)){e=ee(e,0,t);continue}let l=ei(e,o-1,i+1);if(l.some(function(e){let{size:t,startIndex:n,endIndex:r}=e;return e=>e.start===n&&(e.end===r||e.end===1/0)&&e.value===t}(r)))continue;let a=!1,s=!1;for(let{start:n,end:r,value:o}of l)a?(i>=n||t===o)&&(e=function e(t,n){if(Y(t))return q;let{k:r,l:o,r:i}=t;if(n===r){if(Y(o))return i;if(Y(i))return o;{let[e,n]=function e(t){return Y(t.r)?[t.k,t.v]:e(t.r)}(o);return eo(en(t,{k:e,v:n,l:function e(t){return Y(t.r)?t.l:eo(en(t,{r:e(t.r)}))}(o)}))}}return n<r?eo(en(t,{l:e(o,n)})):eo(en(t,{r:e(i,n)}))}(e,n)):(s=o!==t,a=!0),r>i&&i>=n&&o!==t&&(e=ee(e,i+1,o));s&&(e=ee(e,o,t))}return[e,n]}(l,t);if(l===i)return e;let{offsetTree:s,lastIndex:u,lastSize:c,lastOffset:d}=em(e.offsetTree,a,l,o);return{sizeTree:l,offsetTree:s,lastIndex:u,lastOffset:d,lastSize:c,groupOffsetTree:n.reduce((e,t)=>ee(e,t,ev(t,s,o)),q),groupIndices:n}}function ev(e,t,n){if(0===t.length)return 0;let{offset:r,index:o,size:i}=t[eu(t,e,ef)],l=e-o,a=i*l+(l-1)*n+r;return a>0?a+n:a}function ey(e,t,n){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;{let r="LAST"===e.index?n:e.index,o=eb(r,t);return Math.max(0,o,Math.min(n,o))}}function eb(e,t){if(!ex(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function ex(e){return!Y(e.groupOffsetTree)}let ew={offsetHeight:"height",offsetWidth:"width"},eE=B(([{log:e},{recalcInProgress:t}])=>{let n=m(),r=m(),o=y(r,0),i=m(),l=m(),a=g(0),s=g([]),u=g(void 0),c=g(void 0),d=g((e,t)=>$(e,ew[t])),f=g(void 0),p=g(0),x={offsetTree:[],sizeTree:q,groupOffsetTree:q,lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},S=y(b(n,k(s,e,p),C(eg,x),w()),x),I=y(b(s,w(),C((e,t)=>({prev:e.current,current:t}),{prev:[],current:[]}),T(({prev:e})=>e)),[]);h(b(s,E(e=>e.length>0),k(S,p),T(([e,t,n])=>{let r=e.reduce((e,r,o)=>ee(e,r,ev(r,t.offsetTree,n)||o),q);return{...t,groupIndices:e,groupOffsetTree:r}})),S),h(b(r,k(S),E(([e,{lastIndex:t,groupIndices:n}])=>e<t&&0===n.length),T(([e,{lastIndex:t,lastSize:n}])=>[{startIndex:e,endIndex:t,size:n}])),n),h(u,c);let O=y(b(u,T(e=>void 0===e)),!0);h(b(c,E(e=>void 0!==e&&Y(S(4).sizeTree)),T(e=>[{startIndex:0,endIndex:0,size:e}])),n);let z=v(b(n,k(S),C(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:x}),T(e=>e.changed)));b(a,C((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),T(e=>e.diff))(1,e=>{let{groupIndices:n}=S(4);if(e>0)t(0,!0),i(0,e+ed(e,n));else if(e<0){let t=I(4);t.length>0&&l(0,e-ed(-e,t))}}),b(a,k(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:a},Z.ERROR)});let P=v(i);h(b(i,k(S),T(([e,t])=>{let n=t.groupIndices.length>0,r=[],o=t.lastSize;if(n){let n=J(t.sizeTree,0),i=0,l=0;for(;i<e;){let e=t.groupIndices[l],a=t.groupIndices[l+1]-e-1;r.push({startIndex:e,endIndex:e,size:n}),r.push({startIndex:e+1,endIndex:e+1+a-1,size:o}),l++,i+=a+1}let a=et(t.sizeTree),s=i!==e;return s&&a.shift(),a.reduce((t,{k:n,v:r})=>{let o=t.ranges;return 0!==t.prevSize&&(o=[...t.ranges,{startIndex:t.prevIndex,endIndex:n+e-1,size:t.prevSize}]),{ranges:o,prevIndex:n+e,prevSize:r}},{ranges:r,prevIndex:e,prevSize:0}).ranges}return et(t.sizeTree).reduce((t,{k:n,v:r})=>({ranges:[...t.ranges,{startIndex:t.prevIndex,endIndex:n+e-1,size:t.prevSize}],prevIndex:n+e,prevSize:r}),{ranges:[],prevIndex:0,prevSize:o}).ranges})),n);let R=v(b(l,k(S,p),T(([e,{offsetTree:t},n])=>ev(-e,t,n))));return h(b(l,k(S,p),T(([e,t,n])=>{let r=t.groupIndices.length>0;if(r){let r=q,o=I(4),i=0,l=0,a=0;for(;i<-e;){a=o[l];let e=o[l+1]-a-1;l++,i+=e+1}r=et(t.sizeTree).reduce((t,{k:n,v:r})=>ee(t,Math.max(0,n+e),r),r);let s=i!==-e;if(s){let n=J(t.sizeTree,a);r=ee(r,0,n);let o=Q(t.sizeTree,-e+1)[1];r=ee(r,1,o)}return{...t,sizeTree:r,...em(t.offsetTree,0,r,n)}}{let r=et(t.sizeTree).reduce((t,{k:n,v:r})=>ee(t,Math.max(0,n+e),r),q);return{...t,sizeTree:r,...em(t.offsetTree,0,r,n)}}})),S),{data:f,totalCount:r,sizeRanges:n,groupIndices:s,defaultItemSize:c,fixedItemSize:u,unshiftWith:i,shiftWith:l,shiftWithOffset:R,beforeUnshiftWith:P,firstItemIndex:a,gap:p,sizes:S,listRefresh:z,statefulTotalCount:o,trackItemSizes:O,itemSize:d}},s(W,ec),{singleton:!0}),eT="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function eS(e){let t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&eT||(t.behavior="auto"),t.offset||(t.offset=0),t}let eC=B(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:o,viewportHeight:i,scrollTo:l,smoothScrollTargetReached:a,headerHeight:s,footerHeight:u,fixedHeaderHeight:c,fixedFooterHeight:d},{log:f}])=>{let v=m(),y=g(0),x=null,w=null,E=null;function S(){x&&(x(),x=null),E&&(E(),E=null),w&&(clearTimeout(w),w=null),o(0,!1)}return h(b(v,k(e,i,t,y,s,u,f),k(r,c,d),T(([[e,t,r,i,l,s,u,c],d,f,h])=>{let m=eS(e),{align:g,behavior:y,offset:T}=m,C=i-1,I=ey(m,t,C),O=ev(I,t.offsetTree,d)+s;"end"===g?(O+=f+Q(t.sizeTree,I)[1]-r+h,I===C&&(O+=u)):"center"===g?O+=(f+Q(t.sizeTree,I)[1]-r+h)/2:O-=l,T&&(O+=T);let z=t=>{S(),t?(c("retrying to scroll to",{location:e},Z.DEBUG),v(0,e)):c("list did not change, scroll successful",{},Z.DEBUG)};if(S(),"smooth"===y){let e=!1;E=n(1,t=>{e=e||t}),x=p(a,()=>{z(e)})}else x=p(b(n,e=>{let t=setTimeout(()=>{e(!1)},150);return n=>{n&&(e(!0),clearTimeout(t))}}),z);return w=setTimeout(()=>{S()},1200),o(0,!0),c("scrolling from index to",{index:I,top:O,behavior:y},Z.DEBUG),{top:O,behavior:y}})),l),{scrollToIndex:v,topListHeight:y}},s(eE,K,W),{singleton:!0}),eI="down",eO={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},ez=B(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:o,scrollBy:i}])=>{let l=g(!1),a=g(!0),s=m(),u=m(),c=g(4),d=g(0),f=y(b(P(b(R(t),I(1),S(!0)),b(R(t),I(1),S(!1),z(100))),w()),!1),p=y(b(P(b(i,S(!0)),b(i,S(!1),z(200))),w()),!1);h(b(H(R(t),R(d)),T(([e,t])=>e<=t),w()),a),h(b(a,O(50)),u);let x=v(b(H(e,R(n),R(r),R(o),R(c)),C((e,[{scrollTop:t,scrollHeight:n},r,o,i,l])=>{let a={viewportHeight:r,scrollTop:t,scrollHeight:n};if(t+r-n>-l){let n,r;return t>e.state.scrollTop?(n="SCROLLED_DOWN",r=e.state.scrollTop-t):(n="SIZE_DECREASED",r=e.state.scrollTop-t||e.scrollTopDelta),{atBottom:!0,state:a,atBottomBecause:n,scrollTopDelta:r}}return{atBottom:!1,notAtBottomBecause:a.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":r<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":t<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:a}},eO),w((e,t)=>e&&e.atBottom===t.atBottom))),B=y(b(e,C((e,{scrollTop:t,scrollHeight:n,viewportHeight:r})=>G(e.scrollHeight,n)?{scrollTop:t,scrollHeight:n,jump:0,changed:!1}:e.scrollTop!==t&&n-(t+r)<1?{scrollHeight:n,scrollTop:t,jump:e.scrollTop-t,changed:!0}:{scrollHeight:n,scrollTop:t,jump:0,changed:!0},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),E(e=>e.changed),T(e=>e.jump)),0);h(b(x,T(e=>e.atBottom)),l),h(b(l,O(50)),s);let A=g(eI);h(b(e,T(({scrollTop:e})=>e),w(),C((e,t)=>p(4)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":eI,prevScrollTop:t},{direction:eI,prevScrollTop:0}),T(e=>e.direction)),A),h(b(e,O(50),S("none")),A);let N=g(0);return h(b(f,E(e=>!e),S(0)),N),h(b(t,O(100),k(f),E(([e,t])=>!!t),C(([e,t],[n])=>[t,n],[0,0]),T(([e,t])=>t-e)),N),{isScrolling:f,isAtTop:a,isAtBottom:l,atBottomState:x,atTopStateChange:u,atBottomStateChange:s,scrollDirection:A,atBottomThreshold:c,atTopThreshold:d,scrollVelocity:N,lastJumpDueToItemResize:B}},s(K)),ek=B(([{log:e}])=>{let t=g(!1),n=v(b(t,E(e=>e),w()));return t(1,t=>{t&&e(4)("props updated",{},Z.DEBUG)}),{propsReady:t,didMount:n}},s(W),{singleton:!0}),eP=B(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:o},{didMount:i}])=>{let l=g(!0),a=g(0);return h(b(i,k(a),E(([e,t])=>!!t),S(!1)),l),b(H(t,i),k(l,e,n),E(([[,e],t,{sizeTree:n},r])=>e&&(!Y(n)||void 0!==r)&&!t),k(a))(1,([,e])=>{setTimeout(()=>{p(r,()=>{l(0,!0)}),o(0,e)})}),{scrolledToInitialItem:l,initialTopMostItemIndex:a}},s(eE,K,eC,ek),{singleton:!0});function eR(e){return!!e&&("smooth"===e?"smooth":"auto")}let eH=(e,t)=>"function"==typeof e?eR(e(t)):t&&eR(e),eB=B(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:o},{scrolledToInitialItem:i},{propsReady:l,didMount:a},{log:s},{scrollingInProgress:u}])=>{let c=g(!1),d=m(),f=null;function h(e){o(0,{index:"LAST",align:"end",behavior:e})}function v(e){let t=p(r,t=>{!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||f||(s(4)("scrolling to bottom due to increased size",{},Z.DEBUG),h("auto"))});setTimeout(t,100)}return b(H(b(R(e),I(1)),a),k(R(c),n,i,u),T(([[e,t],n,r,o,i])=>{let l=t&&o,a="auto";return l&&(a=eH(n,r||i),l=l&&!!a),{totalCount:e,shouldFollow:l,followOutputBehavior:a}}),E(({shouldFollow:e})=>e))(1,({totalCount:e,followOutputBehavior:n})=>{f&&(f(),f=null),f=p(t,()=>{s(4)("following output to ",{totalCount:e},Z.DEBUG),h(n),f=null})}),b(H(R(c),e,l),E(([e,,t])=>e&&t),C(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),E(({refreshed:e})=>e),k(c,e))(1,([,e])=>{v(!1!==e)}),d(1,()=>{v(!1!==c(4))}),H(R(c),r)(1,([e,t])=>{e&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&h("auto")}),{followOutput:c,autoscrollToBottom:d}},s(eE,ez,eC,eP,ek,W,K));function eA(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{totalCount:0,groupIndices:[]})}let eN=B(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:o}])=>{let i=m(),l=m(),a=v(b(i,T(eA)));return h(b(a,T(e=>e.totalCount)),e),h(b(a,T(e=>e.groupIndices)),t),h(b(H(r,n,o),E(([e,t])=>ex(t)),T(([e,t,n])=>Q(t.groupOffsetTree,Math.max(e-n,0),"v")[0]),w(),T(e=>[e])),l),{groupCounts:i,topItemsIndexes:l}},s(eE,K));function ej(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function eL(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}let eZ="bottom",eF="none";function eM(e,t,n){return"number"==typeof e?"up"===n&&"top"===t||n===eI&&t===eZ?e:0:"up"===n?"top"===t?e.main:e.reverse:t===eZ?e.main:e.reverse}function eW(e,t){return"number"==typeof e?e:e[t]||0}let eD=B(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:o}])=>{let i=m(),l=g(0),a=g(0),s=g(0),u=y(b(H(R(e),R(t),R(r),R(i,ej),R(s),R(l),R(o),R(n),R(a)),T(([e,t,n,[r,o],i,l,a,s,u])=>{let c=e-s,d=Math.max(n-c,0),f=eF,h=eW(u,"top"),p=eW(u,eZ);return(r-=s,r+=n+a,o+=n+a,r>e+(l+a)-h&&(f="up"),(o-=s)<e-d+t+p&&(f=eI),f!==eF)?[Math.max(c-n-eM(i,"top",f)-h,0),c-d-a+t+eM(i,eZ,f)+p]:null}),E(e=>null!=e),w(ej)),[0,0]);return{listBoundary:i,overscan:s,topListHeight:l,increaseViewportBy:a,visibleRange:u}},s(K),{singleton:!0}),e_={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function eV(e,t,n){let r;if(0===e.length)return[];if(!ex(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let o=e[0].index,i=e[e.length-1].index,l=[],a=ei(t.groupOffsetTree,o,i),s=0;for(let o of e){let e;(!r||r.end<o.index)&&(r=a.shift(),s=t.groupIndices.indexOf(r.start)),e=o.index===r.start?{type:"group",index:s}:{index:o.index-(s+1)+n,groupIndex:s},l.push({...e,size:o.size,offset:o.offset,originalIndex:o.index,data:o.data})}return l}function e$(e,t,n,r,o,i){let{lastSize:l,lastOffset:a,lastIndex:s}=o,u=0,c=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];c=t.offset+t.size}let d=n-s,f=u,h=a+d*l+(d-1)*r-c;return{items:eV(e,o,i),topItems:eV(t,o,i),topListHeight:t.reduce((e,t)=>t.size+e,0),offsetTop:u,offsetBottom:h,top:f,bottom:c,totalCount:n,firstItemIndex:i}}let eG=B(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:o},i,{visibleRange:l,listBoundary:a,topListHeight:s},{scrolledToInitialItem:u,initialTopMostItemIndex:c},{topListHeight:d},f,{didMount:p},{recalcInProgress:x}])=>{let S=g([]),C=m();h(i.topItemsIndexes,S);let I=y(b(H(p,x,R(l,ej),R(t),R(e),R(c),u,R(S),R(r),R(o),n),E(([e,t,,n,,,,,,,r])=>{let o=r&&r.length!==n;return e&&!t&&!o}),T(([,,[e,t],n,r,o,i,l,a,s,u])=>{var c;let{sizeTree:d,offsetTree:f}=r;if(0===n||0===e&&0===t)return{...e_,totalCount:n};if(Y(d))return e$(function(e,t,n){if(ex(t)){let r=eb(e,t),o=Q(t.groupOffsetTree,r)[0];return[{index:o,size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(function(e,t){let n="number"==typeof e?e:"LAST"===e.index?t-1:e.index;return n}(o,n),r,u),[],n,s,r,a);let h=[];if(l.length>0){let e=l[0],t=l[l.length-1],n=0;for(let r of ei(d,e,t)){let o=r.value,i=Math.max(r.start,e),l=Math.min(r.end,t);for(let e=i;e<=l;e++)h.push({index:e,size:o,offset:n,data:u&&u[e]}),n+=o}}if(!i)return e$([],h,n,s,r,a);let p=l.length>0?l[l.length-1]+1:0,m=function(e,t,n,r=0){return r>0&&(t=Math.max(t,e[eu(e,r,ef)].offset)),el(function(e,t,n,r){let o=eu(e,t,r),i=eu(e,n,r,o);return e.slice(o,i+1)}(e,t,n,eh),ep)}(f,e,t,p);if(0===m.length)return null;let g=n-1,v=((n=>{for(let r of m){let o=r.value,i=o.offset,l=r.start,a=o.size;if(o.offset<e){l+=Math.floor((e-o.offset+s)/(a+s));let t=l-r.start;i+=t*a+t*s}l<p&&(i+=(p-l)*a,l=p);let c=Math.min(r.end,g);for(let e=l;e<=c&&!(i>=t);e++)n.push({index:e,size:a,offset:i,data:u&&u[e]}),i+=a+s}})(c=[]),c);return e$(v,h,n,s,r,a)}),E(e=>null!==e),w()),e_);h(b(n,E(e=>void 0!==e),T(e=>null==e?void 0:e.length)),t),h(b(I,T(e=>e.topListHeight)),d),h(d,s),h(b(I,T(e=>[e.top,e.bottom])),a),h(b(I,T(e=>e.items)),C);let z=v(b(I,E(({items:e})=>e.length>0),k(t,n),E(([{items:e},t])=>e[e.length-1].originalIndex===t-1),T(([,e,t])=>[e-1,t]),w(ej),T(([e])=>e))),P=v(b(I,O(200),E(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),T(({items:e})=>e[0].index),w())),B=v(b(I,E(({items:e})=>e.length>0),T(({items:e})=>{let t=0,n=e.length-1;for(;"group"===e[t].type&&t<n;)t++;for(;"group"===e[n].type&&n>t;)n--;return{startIndex:e[t].index,endIndex:e[n].index}}),w(eL)));return{listState:I,topItemsIndexes:S,endReached:z,startReached:P,rangeChanged:B,itemsRendered:C,...f}},s(eE,eN,eD,eP,eC,ez,ek,ec),{singleton:!0}),eU=B(([{sizes:e,firstItemIndex:t,data:n,gap:r},{listState:o},{didMount:i}])=>{let l=g(0);return h(b(i,k(l),E(([,e])=>0!==e),k(e,t,r,n),T(([[,e],t,n,r,o=[]])=>{let i=0;if(t.groupIndices.length>0)for(let n of t.groupIndices){if(n-i>=e)break;i++}let l=e+i,a=Array.from({length:l}).map((e,t)=>({index:t,size:0,offset:0,data:o[t]}));return e$(a,[],l,r,t,n)})),o),{initialItemCount:l}},s(eE,eG,ek),{singleton:!0}),eK=B(([{scrollVelocity:e}])=>{let t=g(!1),n=m(),r=g(!1);return h(b(e,k(r,t,n),E(([e,t])=>!!t),T(([e,t,n,r])=>{let{exit:o,enter:i}=t;if(n){if(o(e,r))return!1}else if(i(e,r))return!0;return n}),w()),t),b(H(t,e,n),k(r))(1,([[e,t,n],r])=>e&&r&&r.change&&r.change(t,n)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},s(ez),{singleton:!0}),eq=B(([{topItemsIndexes:e}])=>{let t=g(0);return h(b(t,E(e=>e>0),T(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},s(eG)),eX=B(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:o}])=>{let i=m(),l=y(b(H(e,r,t,n,o),T(([e,t,n,r,o])=>e+t+n+r+o.offsetBottom+o.bottom)),0);return h(R(l),i),{totalListHeight:l,totalListHeightChanged:i}},s(K,eG),{singleton:!0});function eY(e){let t,n=!1;return()=>(n||(n=!0,t=e()),t)}let eJ=eY(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),eQ=B(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:o,isAtBottom:i,scrollDirection:l,lastJumpDueToItemResize:a},{listState:s},{beforeUnshiftWith:u,shiftWithOffset:c,sizes:d,gap:f},{log:p},{recalcInProgress:m}])=>{let g=v(b(s,k(a),C(([,e,t,n],[{items:r,totalCount:o,bottom:i,offsetBottom:l},a])=>{let s=i+l,u=0;if(t===o&&e.length>0&&r.length>0){let t=0===r[0].originalIndex&&0===e[0].originalIndex;t||0==(u=s-n)||(u+=a)}return[u,r,o,s]},[0,[],0,0]),E(([e])=>0!==e),k(t,l,r,i,p,m),E(([,e,t,n,,,r])=>!r&&!n&&0!==e&&"up"===t),T(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},Z.DEBUG),e))));function x(t){t>0?(e(0,{top:-t,behavior:"auto"}),n(0,0)):(n(0,0),e(0,{top:-t,behavior:"auto"}))}return b(g,k(n,o))(1,([e,t,r])=>{r&&eJ()?n(0,t-e):x(-e)}),b(H(y(o,!1),n,m),E(([e,t,n])=>!e&&!n&&0!==t),T(([e,t])=>t),O(1))(1,x),h(b(c,T(e=>({top:-e}))),e),b(u,k(d,f),T(([e,{lastSize:t,groupIndices:n,sizeTree:r},o])=>{if(0===n.length)return e*(t+o);{let i=0,l=J(r,0),a=0,s=0;for(;a<e;){a++,i+=l;let r=n[s+1]-n[s]-1;a+r>e&&(i-=l,r=e-a+1),a+=r,i+=r*(t+o),s++}return i}}))(1,t=>{n(0,t),requestAnimationFrame(()=>{e(0,{top:t}),requestAnimationFrame(()=>{n(0,0),m(0,!1)})})}),{deviation:n}},s(K,ez,eG,eE,W,ec)),e0=B(([{totalListHeight:e},{didMount:t},{scrollTo:n}])=>{let r=g(0);return b(t,k(r),E(([,e])=>0!==e),T(([,e])=>({top:e})))(1,t=>{p(b(e,E(e=>0!==e)),()=>{setTimeout(()=>{n(0,t)})})}),{initialScrollTop:r}},s(eX,ek,K),{singleton:!0}),e1=B(([{viewportHeight:e},{totalListHeight:t}])=>{let n=g(!1),r=y(b(H(n,e,t),E(([e])=>e),T(([,e,t])=>Math.max(0,e-t)),w()),0);return{alignToBottom:n,paddingTopAddition:r}},s(K,eX),{singleton:!0}),e2=B(([{scrollTo:e,scrollContainerState:t}])=>{let n=m(),r=m(),o=m(),i=g(!1),l=g(void 0);return h(b(H(n,r),T(([{viewportHeight:e,scrollTop:t,scrollHeight:n},{offsetTop:r}])=>({scrollTop:Math.max(0,t-r),scrollHeight:n,viewportHeight:e}))),t),h(b(e,k(r),T(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),o),{useWindowScroll:i,customScrollParent:l,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:o}},s(K)),e4=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:o,align:i,...l}})=>e<n?{...l,behavior:o,align:i??"start"}:t>r?{...l,behavior:o,align:i??"end"}:null,e9=B(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:o,headerHeight:i,fixedHeaderHeight:l,fixedFooterHeight:a,scrollingInProgress:s},{scrollToIndex:u}])=>{let c=m();return h(b(c,k(e,o,t,i,l,a,r),k(n),T(([[e,t,n,r,o,i,l,a],u])=>{let{done:c,behavior:d,align:f,calculateViewLocation:h=e4,...m}=e,g=ey(e,t,r-1),v=ev(g,t.offsetTree,u)+o+i,y=v+Q(t.sizeTree,g)[1],x=h({itemTop:v,itemBottom:y,viewportTop:a+i,viewportBottom:a+n-l,locationParams:{behavior:d,align:f,...m}});return x?c&&p(b(s,E(e=>!1===e),I(s(4)?1:2)),c):c&&c(),x}),E(e=>null!==e)),u),{scrollIntoView:c}},s(eE,K,eC,eG,W),{singleton:!0}),e3=B(([e,t,n,r,o,i,l,a,s])=>({...e,...t,...n,...r,...o,...i,...l,...a,...s}),s(eD,eU,ek,eK,eX,e0,e1,e2,e9)),e5=B(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:o,itemSize:i,data:l,firstItemIndex:a,groupIndices:s,statefulTotalCount:u,gap:c,sizes:d},{initialTopMostItemIndex:f,scrolledToInitialItem:p},m,g,{listState:v,topItemsIndexes:y,...x},{scrollToIndex:w},E,{topItemCount:S},{groupCounts:C},I,O])=>(h(x.rangeChanged,I.scrollSeekRangeChanged),h(b(I.windowViewportRect,T(e=>e.visibleHeight)),m.viewportHeight),{totalCount:e,data:l,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:f,scrolledToInitialItem:p,topItemsIndexes:y,topItemCount:S,groupCounts:C,fixedItemHeight:n,defaultItemHeight:r,gap:c,...g,statefulTotalCount:u,listState:v,scrollToIndex:w,trackItemSizes:o,itemSize:i,groupIndices:s,...x,...I,...m,...O,sizes:d}),s(eE,eP,K,eB,eG,eC,eQ,eq,eN,e3,W)),e8="-webkit-sticky",e6="sticky",e7=eY(()=>{if("undefined"==typeof document)return e6;let e=document.createElement("div");return e.style.position=e8,e.style.position===e8?e8:e6});function te(e,t){let n=o.useRef(null),r=o.useCallback(r=>{let o,i;if(null===r||!r.offsetParent)return;let l=r.getBoundingClientRect(),a=l.width;if(t){let e=t.getBoundingClientRect(),n=l.top-e.top;o=e.height-Math.max(0,n),i=n+t.scrollTop}else o=window.innerHeight-Math.max(0,l.top),i=l.top+window.pageYOffset;n.current={offsetTop:i,visibleHeight:o,visibleWidth:a},e(n.current)},[e,t]),{callbackRef:i,ref:l}=D(r),a=o.useCallback(()=>{r(l.current)},[r,l]);return o.useEffect(()=>{if(!t)return window.addEventListener("scroll",a),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a)};{t.addEventListener("scroll",a);let e=new ResizeObserver(a);return e.observe(t),()=>{t.removeEventListener("scroll",a),e.unobserve(t)}}},[a,t]),i}let tt=o.createContext(void 0),tn=o.createContext(void 0);function tr(e){return e}let to=B(()=>{let e=g(e=>`Item ${e}`),t=g(null),n=g(e=>`Group ${e}`),r=g({}),o=g(tr),i=g("div"),l=g(c),a=(e,t=null)=>y(b(r,T(t=>t[e]),w()),t);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:o,headerFooterTag:i,scrollerRef:l,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),ti=B(([e,t])=>({...e,...t}),s(e5,to)),tl=({height:e})=>o.createElement("div",{style:{height:e}}),ta={position:e7(),zIndex:1,overflowAnchor:"none"},ts={overflowAnchor:"none"},tu=o.memo(function({showTopList:e=!1}){let t=tS("listState"),n=tT("sizeRanges"),r=tS("useWindowScroll"),i=tS("customScrollParent"),l=tT("windowScrollContainerState"),a=tT("scrollContainerState"),s=tS("itemContent"),u=tS("context"),d=tS("groupContent"),f=tS("trackItemSizes"),h=tS("itemSize"),p=tS("log"),m=tT("gap"),{callbackRef:g}=V(n,h,f,e?c:i||r?l:a,p,m,i),[v,y]=o.useState(0);tC("deviation",e=>{v!==e&&y(e)});let b=tS("EmptyPlaceholder"),x=tS("ScrollSeekPlaceholder")||tl,w=tS("ListComponent"),E=tS("ItemComponent"),T=tS("GroupComponent"),S=tS("computeItemKey"),C=tS("isSeeking"),I=tS("groupIndices").length>0,O=tS("paddingTopAddition"),z=e?{}:{boxSizing:"border-box",paddingTop:t.offsetTop+O,paddingBottom:t.offsetBottom,marginTop:v};return!e&&0===t.totalCount&&b?o.createElement(b,th(b,u)):o.createElement(w,{...th(w,u),ref:g,style:z,"data-test-id":e?"virtuoso-top-item-list":"virtuoso-item-list"},(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=S(n+t.firstItemIndex,e.data,u);return C?o.createElement(x,{...th(x,u),key:r,index:e.index,height:e.size,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?o.createElement(T,{...th(T,u),key:r,"data-index":n,"data-known-size":e.size,"data-item-index":e.index,style:ta},d(e.index,u)):o.createElement(E,{...th(E,u),key:r,"data-index":n,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,item:e.data,style:ts},I?s(e.index,e.groupIndex,e.data,u):s(e.index,e.data,u))}))}),tc={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},td={width:"100%",height:"100%",position:"absolute",top:0},tf={width:"100%",position:e7(),top:0,zIndex:1};function th(e,t){if("string"!=typeof e)return{context:t}}let tp=o.memo(function(){let e=tS("HeaderComponent"),t=tT("headerHeight"),n=tS("headerFooterTag"),r=_(e=>t($(e,"height"))),i=tS("context");return e?o.createElement(n,{ref:r},o.createElement(e,th(e,i))):null}),tm=o.memo(function(){let e=tS("FooterComponent"),t=tT("footerHeight"),n=tS("headerFooterTag"),r=_(e=>t($(e,"height"))),i=tS("context");return e?o.createElement(n,{ref:r},o.createElement(e,th(e,i))):null});function tg({usePublisher:e,useEmitter:t,useEmitterValue:n}){let r=o.memo(function({style:r,children:i,...l}){let a=e("scrollContainerState"),s=n("ScrollerComponent"),u=e("smoothScrollTargetReached"),c=n("scrollerRef"),d=n("context"),{scrollerRef:f,scrollByCallback:h,scrollToCallback:p}=U(a,u,s,c);return t("scrollTo",p),t("scrollBy",h),o.createElement(s,{ref:f,style:{...tc,...r},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...l,...th(s,d)},i)});return r}function tv({usePublisher:e,useEmitter:t,useEmitterValue:n}){let r=o.memo(function({style:r,children:i,...l}){let a=e("windowScrollContainerState"),s=n("ScrollerComponent"),u=e("smoothScrollTargetReached"),d=n("totalListHeight"),f=n("deviation"),h=n("customScrollParent"),p=n("context"),{scrollerRef:m,scrollByCallback:g,scrollToCallback:v}=U(a,u,s,c,h);return L(()=>(m.current=h||window,()=>{m.current=null}),[m,h]),t("windowScrollTo",v),t("scrollBy",g),o.createElement(s,{style:{position:"relative",...r,...0!==d?{height:d+f}:{}},"data-virtuoso-scroller":!0,...l,...th(s,p)},i)});return r}let ty=({children:e})=>{let t=o.useContext(tt),n=tT("viewportHeight"),r=tT("fixedItemHeight"),i=_(l(n,e=>$(e,"height")));return o.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),o.createElement("div",{style:td,ref:i,"data-viewport-type":"element"},e)},tb=({children:e})=>{let t=o.useContext(tt),n=tT("windowViewportRect"),r=tT("fixedItemHeight"),i=tS("customScrollParent"),l=te(n,i);return o.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),o.createElement("div",{ref:l,style:td,"data-viewport-type":"window"},e)},tx=({children:e})=>{let t=tS("TopItemListComponent"),n=tS("headerHeight"),r={...tf,marginTop:`${n}px`},i=tS("context");return o.createElement(t||"div",{style:r,context:i},e)},tw=o.memo(function(e){let t=tS("useWindowScroll"),n=tS("topItemsIndexes").length>0,r=tS("customScrollParent");return o.createElement(r||t?tO:tI,{...e},n&&o.createElement(tx,null,o.createElement(tu,{showTopList:!0})),o.createElement(r||t?tb:ty,null,o.createElement(tp,null),o.createElement(tu,null),o.createElement(tm,null)))}),{Component:tE,usePublisher:tT,useEmitterValue:tS,useEmitter:tC}=j(ti,{required:{},optional:{context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},tw),tI=tg({usePublisher:tT,useEmitterValue:tS,useEmitter:tC}),tO=tv({usePublisher:tT,useEmitterValue:tS,useEmitter:tC}),tz=tE,tk={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tP={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:tR,ceil:tH,floor:tB,min:tA,max:tN}=Math;function tj(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({index:r+e,data:null==n?void 0:n[r+e]}))}function tL(e,t){return e&&e.column===t.column&&e.row===t.row}function tZ(e,t){return e&&e.width===t.width&&e.height===t.height}let tF=B(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:o,scrollBy:i,scrollTo:l,smoothScrollTargetReached:a,scrollContainerState:s,footerHeight:u,headerHeight:c},d,f,{propsReady:p,didMount:x},{windowViewportRect:C,windowScrollTo:I,useWindowScroll:O,customScrollParent:z,windowScrollContainerState:P},B])=>{let A=g(0),N=g(0),j=g(tk),L=g({height:0,width:0}),Z=g({height:0,width:0}),F=m(),M=m(),W=g(0),D=g(void 0),_=g({row:0,column:0});h(b(H(x,N,D),E(([,e])=>0!==e),T(([,e,t])=>({items:tj(0,e-1,t),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}))),j),h(b(H(R(A),t,R(_,tL),R(Z,tZ),R(L,tZ),D),T(([e,[t,n],r,o,i,l])=>{var a;let{row:s,column:u}=r,{height:c,width:d}=o,{width:f}=i;if(0===e||0===f)return tk;if(0===d)return a=tj(0,0,l),{...tP,items:a};let h=tN(1,tB((f+u)/(d+u))),p=h*tB((t+s)/(c+s)),m=h*tH((n+s)/(c+s))-1;m=tA(e-1,tN(m,h-1)),p=tA(m,tN(0,p));let g=tj(p,m,l),{top:v,bottom:y}=tM(i,r,o,g),b=tH(e/h);return{items:g,offsetTop:v,offsetBottom:b*c+(b-1)*s-y,top:v,bottom:y,itemHeight:c,itemWidth:d}})),j),h(b(D,E(e=>void 0!==e),T(e=>e.length)),A),h(b(L,T(({height:e})=>e)),o),h(b(H(L,Z,j,_),T(([e,t,{items:n},r])=>{let{top:o,bottom:i}=tM(e,r,t,n);return[o,i]}),w(ej)),n);let V=v(b(R(j),E(({items:e})=>e.length>0),k(A),E(([{items:e},t])=>e[e.length-1].index===t-1),T(([,e])=>e-1),w())),$=v(b(R(j),E(({items:e})=>e.length>0&&0===e[0].index),S(0),w())),G=v(b(R(j),E(({items:e})=>e.length>0),T(({items:e})=>({startIndex:e[0].index,endIndex:e[e.length-1].index})),w(eL)));h(G,f.scrollSeekRangeChanged),h(b(F,k(L,Z,A,_),T(([e,t,n,r,o])=>{let i=eS(e),{align:l,behavior:a,offset:s}=i,u=i.index;"LAST"===u&&(u=r-1);let c=tW(t,o,n,u=tN(0,u,tA(r-1,u)));return"end"===l?c=tR(c-t.height+n.height):"center"===l&&(c=tR(c-t.height/2+n.height/2)),s&&(c+=s),{top:c,behavior:a}})),l);let U=y(b(j,T(e=>e.offsetBottom+e.bottom)),0);return h(b(C,T(e=>({width:e.visibleWidth,height:e.visibleHeight}))),L),{data:D,totalCount:A,viewportDimensions:L,itemDimensions:Z,scrollTop:r,scrollHeight:M,overscan:e,scrollBy:i,scrollTo:l,scrollToIndex:F,smoothScrollTargetReached:a,windowViewportRect:C,windowScrollTo:I,useWindowScroll:O,customScrollParent:z,windowScrollContainerState:P,deviation:W,scrollContainerState:s,footerHeight:u,headerHeight:c,initialItemCount:N,gap:_,...f,gridState:j,totalListHeight:U,...d,startReached:$,endReached:V,rangeChanged:G,propsReady:p,...B}},s(eD,K,ez,eK,ek,e2,W));function tM(e,t,n,r){let{height:o}=n;if(void 0===o||0===r.length)return{top:0,bottom:0};let i=tW(e,t,n,r[0].index),l=tW(e,t,n,r[r.length-1].index)+o;return{top:i,bottom:l}}function tW(e,t,n,r){var o,i,l;let a=(o=e.width,i=n.width,tN(1,tB((o+(l=t.column))/(i+l)))),s=tB(r/a),u=s*n.height+tN(0,s-1)*t.row;return u>0?u+t.row:u}let tD=B(()=>{let e=g(e=>`Item ${e}`),t=g({}),n=g(null),r=g("virtuoso-grid-item"),o=g("virtuoso-grid-list"),i=g(tr),l=g("div"),a=g(c),s=(e,n=null)=>y(b(t,T(t=>t[e]),w()),n);return{context:n,itemContent:e,components:t,computeItemKey:i,itemClassName:r,listClassName:o,headerFooterTag:l,scrollerRef:a,FooterComponent:s("Footer"),HeaderComponent:s("Header"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),ScrollerComponent:s("Scroller","div"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder","div")}}),t_=B(([e,t])=>({...e,...t}),s(tF,tD)),tV=o.memo(function(){let e=tJ("gridState"),t=tJ("listClassName"),n=tJ("itemClassName"),r=tJ("itemContent"),i=tJ("computeItemKey"),l=tJ("isSeeking"),a=tY("scrollHeight"),s=tJ("ItemComponent"),u=tJ("ListComponent"),c=tJ("ScrollSeekPlaceholder"),d=tJ("context"),f=tY("itemDimensions"),h=tY("gap"),p=tJ("log"),m=_(e=>{let t=e.parentElement.parentElement.scrollHeight;a(t);let n=e.firstChild;n&&f(n.getBoundingClientRect()),h({row:t2("row-gap",getComputedStyle(e).rowGap,p),column:t2("column-gap",getComputedStyle(e).columnGap,p)})});return o.createElement(u,{ref:m,className:t,...th(u,d),style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom},"data-test-id":"virtuoso-item-list"},e.items.map(t=>{let a=i(t.index,t.data,d);return l?o.createElement(c,{key:a,...th(c,d),index:t.index,height:e.itemHeight,width:e.itemWidth}):o.createElement(s,{...th(s,d),className:n,"data-index":t.index,key:a},r(t.index,t.data,d))}))}),t$=o.memo(function(){let e=tJ("HeaderComponent"),t=tY("headerHeight"),n=tJ("headerFooterTag"),r=_(e=>t($(e,"height"))),i=tJ("context");return e?o.createElement(n,{ref:r},o.createElement(e,th(e,i))):null}),tG=o.memo(function(){let e=tJ("FooterComponent"),t=tY("footerHeight"),n=tJ("headerFooterTag"),r=_(e=>t($(e,"height"))),i=tJ("context");return e?o.createElement(n,{ref:r},o.createElement(e,th(e,i))):null}),tU=({children:e})=>{let t=o.useContext(tn),n=tY("itemDimensions"),r=tY("viewportDimensions"),i=_(e=>{r(e.getBoundingClientRect())});return o.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),o.createElement("div",{style:td,ref:i},e)},tK=({children:e})=>{let t=o.useContext(tn),n=tY("windowViewportRect"),r=tY("itemDimensions"),i=tJ("customScrollParent"),l=te(n,i);return o.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),o.createElement("div",{ref:l,style:td},e)},tq=o.memo(function({...e}){let t=tJ("useWindowScroll"),n=tJ("customScrollParent");return o.createElement(n||t?t1:t0,{...e},o.createElement(n||t?tK:tU,null,o.createElement(t$,null),o.createElement(tV,null),o.createElement(tG,null)))}),{Component:tX,usePublisher:tY,useEmitterValue:tJ,useEmitter:tQ}=j(t_,{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"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},tq),t0=tg({usePublisher:tY,useEmitterValue:tJ,useEmitter:tQ}),t1=tv({usePublisher:tY,useEmitterValue:tJ,useEmitter:tQ});function t2(e,t,n){return("normal"===t||(null==t?void 0:t.endsWith("px"))||n(`${e} was not resolved to pixel value correctly`,t,Z.WARN),"normal"===t)?0:parseInt(t??"0",10)}let t4=B(()=>{let e=g(e=>o.createElement("td",null,"Item $",e)),t=g(null),n=g(null),r=g(null),i=g({}),l=g(tr),a=g(c),s=(e,t=null)=>y(b(i,T(t=>t[e]),w()),t);return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:i,computeItemKey:l,scrollerRef:a,TableComponent:s("Table","table"),TableHeadComponent:s("TableHead","thead"),TableFooterComponent:s("TableFoot","tfoot"),TableBodyComponent:s("TableBody","tbody"),TableRowComponent:s("TableRow","tr"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder"),FillerRow:s("FillerRow")}}),t9=B(([e,t])=>({...e,...t}),s(e5,t4)),t3=({height:e})=>o.createElement("tr",null,o.createElement("td",{style:{height:e}})),t5=({height:e})=>o.createElement("tr",null,o.createElement("td",{style:{height:e,padding:0,border:0}})),t8=o.memo(function(){let e=nr("listState"),t=nn("sizeRanges"),n=nr("useWindowScroll"),r=nr("customScrollParent"),i=nn("windowScrollContainerState"),l=nn("scrollContainerState"),a=nr("itemContent"),s=nr("trackItemSizes"),u=nr("itemSize"),c=nr("log"),{callbackRef:d,ref:f}=V(t,u,s,r||n?i:l,c,void 0,r),[h,p]=o.useState(0);no("deviation",e=>{h!==e&&(f.current.style.marginTop=`${e}px`,p(e))});let m=nr("EmptyPlaceholder"),g=nr("ScrollSeekPlaceholder")||t3,v=nr("FillerRow")||t5,y=nr("TableBodyComponent"),b=nr("TableRowComponent"),x=nr("computeItemKey"),w=nr("isSeeking"),E=nr("paddingTopAddition"),T=nr("firstItemIndex"),S=nr("statefulTotalCount"),C=nr("context");if(0===S&&m)return o.createElement(m,th(m,C));let I=e.offsetTop+E+h,O=e.offsetBottom,z=I>0?o.createElement(v,{height:I,key:"padding-top",context:C}):null,k=O>0?o.createElement(v,{height:O,key:"padding-bottom",context:C}):null,P=e.items.map(e=>{let t=e.originalIndex,n=x(t+T,e.data,C);return w?o.createElement(g,{...th(g,C),key:n,index:e.index,height:e.size,type:e.type||"item"}):o.createElement(b,{...th(b,C),key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,item:e.data,style:{overflowAnchor:"none"}},a(e.index,e.data,C))});return o.createElement(y,{ref:d,"data-test-id":"virtuoso-item-list",...th(y,C)},[z,...P,k])}),t6=({children:e})=>{let t=o.useContext(tt),n=nn("viewportHeight"),r=nn("fixedItemHeight"),i=_(l(n,e=>$(e,"height")));return o.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),o.createElement("div",{style:td,ref:i,"data-viewport-type":"element"},e)},t7=({children:e})=>{let t=o.useContext(tt),n=nn("windowViewportRect"),r=nn("fixedItemHeight"),i=nr("customScrollParent"),l=te(n,i);return o.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),o.createElement("div",{ref:l,style:td,"data-viewport-type":"window"},e)},ne=o.memo(function(e){let t=nr("useWindowScroll"),n=nr("customScrollParent"),r=nn("fixedHeaderHeight"),i=nn("fixedFooterHeight"),a=nr("fixedHeaderContent"),s=nr("fixedFooterContent"),u=nr("context"),c=_(l(r,e=>$(e,"height"))),d=_(l(i,e=>$(e,"height"))),f=nr("TableComponent"),h=nr("TableHeadComponent"),p=nr("TableFooterComponent"),m=a?o.createElement(h,{key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:c,...th(h,u)},a()):null,g=s?o.createElement(p,{key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:d,...th(p,u)},s()):null;return o.createElement(n||t?nl:ni,{...e},o.createElement(n||t?t7:t6,null,o.createElement(f,{style:{borderSpacing:0},...th(f,u)},[m,o.createElement(t8,{key:"TableBody"}),g])))}),{Component:nt,usePublisher:nn,useEmitterValue:nr,useEmitter:no}=j(t9,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},ne),ni=tg({usePublisher:nn,useEmitterValue:nr,useEmitter:no}),nl=tv({usePublisher:nn,useEmitterValue:nr,useEmitter:no})},45628:function(e,t,n){"use strict";/*!
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
*
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{P:function(){return o}})}}]); |