System.register(["./p-5b6828db.system.js"],(function(e){"use strict";var t,r,n;return{setters:[function(e){t=e.r;r=e.h;n=e.g}],execute:function(){var o=":host{-ms-flex:1 1 1px;flex:1 1 1px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.table-progress-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-height:calc(14 * var(--spacing-unit))}.error-container{padding:calc(4 * var(--spacing-unit))}";function i(e,t,r){var n=0;var o=r-1;while(o!==n){var i=Math.floor((o-n)/2+n);if(t[i]<=e&&t[i+1]>e){return i}if(i===n){return o}else{if(t[i]<=e){n=i}else{o=i}}}return r}function l(e,t,r,n){var o;for(o=t;o<r;o++){if(e[o]>e[t]+n){return o}}return o}var s=e("dvn_virtual_scroll",function(){function e(e){t(this,e);this.itemCount=500;this.rowHeight=50;this.renderAhead=0;this.scrollTop=0}e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.height=e.el?e.el.offsetHeight:0}),100)};e.prototype.render=function(){var e=this;var t=this,n=t.height,o=t.itemCount,s=t.renderAhead,a=t.rowHeight,c=t.scrollTop;var u=function(e){return a};var f=function(){var e=[0];for(var t=1;t<o;t++){e.push(e[t-1]+u())}return e};var h=f()[o-1]+u();console.log("scrollTop",c);var v=function(){return i(c,f(),o)};console.log("firstVisibleNode()",v());var p=Math.max(0,v()-s);console.log("startNode",p);var d=function(){return l(f(),v(),o,n)};var g=Math.min(o-1,d()+s);var m=g-p+1;var x=f()[p];console.log("visibleNodeCount",m);var y=function(){return new Array(m).fill(null).map((function(t,r){return e.renderRow(r+p)}))};console.log("viewportHeight",n);console.log("totalHeight",h);return r("div",{style:{height:800+"px",overflow:"auto",flex:"1",display:"block"},onScroll:function(t){console.log(t.target.scrollTop);e.scrollTop=t.target.scrollTop}},r("div",{style:{height:h+"px",overflow:"hidden",willChange:"transform",position:"relative"}},r("div",{style:{transform:"translateY("+x+"px)"}},y())))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());s.style=o}}}));