<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d43da"],{"5fd7":function(t,e,i){"use strict";i.r(e),i.d(e,"ion_virtual_scroll",(function(){return j}));var n=i("9ab4"),r=i("3414"),o="item",s="header",l="footer",h=0,a=1,c=2,u=2,d=function(t,e,i,n){for(var r=0,o=t;r&lt;o.length;r++){var s=o[r];s.change=h,s.d=!0}for(var l=[],u=n.offset+n.length,d=function(n){var r=i[n],o=t.find((function(t){return t.d&amp;&amp;t.cell===r}));if(o){var s=e[n];s!==o.top&amp;&amp;(o.top=s,o.change=a),o.d=!1}else l.push(r)},p=n.offset;p&lt;u;p++)d(p);for(var f=t.filter((function(t){return t.d})),g=function(i){var n=f.find((function(t){return t.d&amp;&amp;t.cell.type===i.type})),r=i.i;n?(n.d=!1,n.change=c,n.cell=i,n.top=e[r]):t.push({d:!1,cell:i,visible:!0,change:c,top:e[r]})},v=0,m=l;v&lt;m.length;v++){var b=m[v];g(b)}t.filter((function(t){return t.d&amp;&amp;-9999!==t.top})).forEach((function(t){t.change=a,t.top=-9999}))},p=function(t,e,i,n){for(var r,o=Array.from(t.children).filter((function(t){return"TEMPLATE"!==t.tagName})),s=o.length,l=0;l&lt;i.length;l++){var a=i[l],u=a.cell;if(a.change===c){if(l&lt;s)r=o[l],e(r,u,l);else{var d=f(t,u.type);r=e(d,u,l)||d,r.classList.add("virtual-item"),t.appendChild(r)}r["$ionCell"]=u}else r=o[l];a.change!==h&amp;&amp;(r.style.transform="translate3d(0,"+a.top+"px,0)");var p=u.visible;a.visible!==p&amp;&amp;(p?r.classList.remove("virtual-loading"):r.classList.add("virtual-loading"),a.visible=p),u.reads&gt;0&amp;&amp;(n(u,r),u.reads--)}},f=function(t,e){var i=g(t,e);return i&amp;&amp;t.ownerDocument?t.ownerDocument.importNode(i.content,!0).children[0]:null},g=function(t,e){switch(e){case o:return t.querySelector("template:not([name])");case s:return t.querySelector("template[name=header]");case l:return t.querySelector("template[name=footer]")}},v=function(t,e,i){return{top:Math.max(t-i,0),bottom:t+e+i}},m=function(t,e,i){for(var n=e.top,r=e.bottom,o=0;o&lt;t.length;o++)if(t[o]&gt;n)break;for(var s=Math.max(o-i-1,0);o&lt;t.length;o++)if(t[o]&gt;=r)break;var l=Math.min(o+i,t.length),h=l-s;return{offset:s,length:h}},b=function(t,e,i){var n=i.offset+i.length;return t&lt;=n||e.offset!==i.offset||e.length!==i.length},y=function(t,e){var i=t.length&gt;0?t[t.length-1].index:0;return 0===e?0:e===i+1?t.length:t.findIndex((function(t){return t.index===e}))},x=function(t,e,i){if(0===i&amp;&amp;e.length&gt;=t.length)return e;for(var n=0;n&lt;e.length;n++)t[n+i]=e[n];return t},H=function(t,e,i,n,r,h,a,c,d,p,f,g){for(var v=[],m=g+f,b=f;b&lt;m;b++){var y=t[b];if(r){var x=r(y,b,t);null!=x&amp;&amp;v.push({i:p++,type:s,value:x,index:b,height:i?i(x,b):a,reads:i?0:u,visible:!!i})}if(v.push({i:p++,type:o,value:y,index:b,height:e?e(y,b):d,reads:e?0:u,visible:!!e}),h){x=h(y,b,t);null!=x&amp;&amp;v.push({i:p++,type:l,value:x,index:b,height:n?n(x,b):c,reads:n?0:u,visible:!!n})}}return v},w=function(t,e,i){for(var n=t[i],r=i;r&lt;t.length;r++)t[r]=n,n+=e[r].height;return n},O=function(t,e){if(!t)return new Uint32Array(e);if(t.length===e)return t;if(e&gt;t.length){var i=new Uint32Array(e);return i.set(t),i}return t.subarray(0,e)},S=function(t,e,i){var n=e.find((function(e){return e.type===o&amp;&amp;e.index===t}));return n?i[n.i]:-1},E="ion-virtual-scroll{display:block;position:relative;width:100%;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-virtual-scroll&gt;.virtual-loading{opacity:0}ion-virtual-scroll&gt;.virtual-item{position:absolute !important;top:0 !important;right:0 !important;left:0 !important;-webkit-transition-duration:0ms;transition-duration:0ms;will-change:transform}",j=function(){function t(t){var e=this;Object(r["o"])(this,t),this.range={offset:0,length:0},this.viewportHeight=0,this.cells=[],this.virtualDom=[],this.isEnabled=!1,this.viewportOffset=0,this.currentScrollTop=0,this.indexDirty=0,this.lastItemLen=0,this.totalHeight=0,this.approxItemHeight=45,this.approxHeaderHeight=30,this.approxFooterHeight=30,this.onScroll=function(){e.updateVirtualScroll()}}return t.prototype.itemsChanged=function(){this.calcCells(),this.updateVirtualScroll()},t.prototype.connectedCallback=function(){return Object(n["a"])(this,void 0,void 0,(function(){var t,e;return Object(n["c"])(this,(function(i){switch(i.label){case 0:return t=this.el.closest("ion-content"),t?(e=this,[4,t.getScrollElement()]):(console.error("&lt;ion-virtual-scroll&gt; must be used inside an &lt;ion-content&gt;"),[2]);case 1:return e.scrollEl=i.sent(),this.contentEl=t,this.calcCells(),this.updateState(),[2]}}))}))},t.prototype.componentDidUpdate=function(){this.updateState()},t.prototype.disconnectedCallback=function(){this.scrollEl=void 0},t.prototype.onResize=function(){this.calcCells(),this.updateVirtualScroll()},t.prototype.positionForItem=function(t){return Promise.resolve(S(t,this.cells,this.getHeightIndex()))},t.prototype.checkRange=function(t,e){return void 0===e&amp;&amp;(e=-1),Object(n["a"])(this,void 0,void 0,(function(){var i,r,o;return Object(n["c"])(this,(function(n){return this.items?(i=-1===e?this.items.length-t:e,r=y(this.cells,t),o=H(this.items,this.itemHeight,this.headerHeight,this.footerHeight,this.headerFn,this.footerFn,this.approxHeaderHeight,this.approxFooterHeight,this.approxItemHeight,r,t,i),this.cells=x(this.cells,o,r),this.lastItemLen=this.items.length,this.indexDirty=Math.max(t-1,0),this.scheduleUpdate(),[2]):[2]}))}))},t.prototype.checkEnd=function(){return Object(n["a"])(this,void 0,void 0,(function(){return Object(n["c"])(this,(function(t){return this.items&amp;&amp;this.checkRange(this.lastItemLen),[2]}))}))},t.prototype.updateVirtualScroll=function(){this.isEnabled&amp;&amp;this.scrollEl&amp;&amp;(this.timerUpdate&amp;&amp;(clearTimeout(this.timerUpdate),this.timerUpdate=void 0),Object(r["h"])(this.readVS.bind(this)),Object(r["f"])(this.writeVS.bind(this)))},t.prototype.readVS=function(){var t=this,e=t.contentEl,i=t.scrollEl,n=t.el,r=0,o=n;while(o&amp;&amp;o!==e)r+=o.offsetTop,o=o.offsetParent;this.viewportOffset=r,i&amp;&amp;(this.viewportHeight=i.offsetHeight,this.currentScrollTop=i.scrollTop)},t.prototype.writeVS=function(){var t=this.indexDirty,e=this.currentScrollTop-this.viewportOffset,i=v(e,this.viewportHeight,100),n=this.getHeightIndex(),o=m(n,i,2),s=b(t,this.range,o);s&amp;&amp;(this.range=o,d(this.virtualDom,n,this.cells,o),this.nodeRender?p(this.el,this.nodeRender,this.virtualDom,this.updateCellHeight.bind(this)):this.domRender?this.domRender(this.virtualDom):this.renderItem&amp;&amp;Object(r["l"])(this))},t.prototype.updateCellHeight=function(t,e){var i=this,n=function(){if(e["$ionCell"]===t){var n=window.getComputedStyle(e),r=e.offsetHeight+parseFloat(n.getPropertyValue("margin-bottom"));i.setCellHeight(t,r)}};e&amp;&amp;e.componentOnReady?e.componentOnReady().then(n):n()},t.prototype.setCellHeight=function(t,e){var i=t.i;t===this.cells[i]&amp;&amp;(t.height===e&amp;&amp;!0===t.visible||(t.visible=!0,t.height=e,this.indexDirty=Math.min(this.indexDirty,i),this.scheduleUpdate()))},t.prototype.scheduleUpdate=function(){var t=this;clearTimeout(this.timerUpdate),this.timerUpdate=setTimeout((function(){return t.updateVirtualScroll()}),100)},t.prototype.updateState=function(){var t=!(!this.scrollEl||!this.cells);t!==this.isEnabled&amp;&amp;(this.enableScrollEvents(t),t&amp;&amp;this.updateVirtualScroll())},t.prototype.calcCells=function(){this.items&amp;&amp;(this.lastItemLen=this.items.length,this.cells=H(this.items,this.itemHeight,this.headerHeight,this.footerHeight,this.headerFn,this.footerFn,this.approxHeaderHeight,this.approxFooterHeight,this.approxItemHeight,0,0,this.lastItemLen),this.indexDirty=0)},t.prototype.getHeightIndex=function(){return this.indexDirty!==1/0&amp;&amp;this.calcHeightIndex(this.indexDirty),this.heightIndex},t.prototype.calcHeightIndex=function(t){void 0===t&amp;&amp;(t=0),this.heightIndex=O(this.heightIndex,this.cells.length),this.totalHeight=w(this.heightIndex,this.cells,t),this.indexDirty=1/0},t.prototype.enableScrollEvents=function(t){var e=this;this.rmEvent&amp;&amp;(this.rmEvent(),this.rmEvent=void 0);var i=this.scrollEl;i&amp;&amp;(this.isEnabled=t,i.addEventListener("scroll",this.onScroll),this.rmEvent=function(){i.removeEventListener("scroll",e.onScroll)})},t.prototype.renderVirtualNode=function(t){var e=t.cell,i=e.type,n=e.value,r=e.index;switch(i){case o:return this.renderItem(n,r);case s:return this.renderHeader(n,r);case l:return this.renderFooter(n,r)}},t.prototype.render=function(){var t=this;return Object(r["j"])(r["c"],{style:{height:this.totalHeight+"px"}},this.renderItem&amp;&amp;Object(r["j"])(I,{dom:this.virtualDom},this.virtualDom.map((function(e){return t.renderVirtualNode(e)}))))},Object.defineProperty(t.prototype,"el",{get:function(){return Object(r["k"])(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"watchers",{get:function(){return{itemHeight:["itemsChanged"],headerHeight:["itemsChanged"],footerHeight:["itemsChanged"],items:["itemsChanged"]}},enumerable:!1,configurable:!0}),t}(),I=function(t,e,i){var n=t.dom;return i.map(e,(function(t,e){var i=n[e],r=t.vattrs||{},o=r.class||"";return o+="virtual-item ",i.visible||(o+="virtual-loading"),Object.assign(Object.assign({},t),{vattrs:Object.assign(Object.assign({},r),{class:o,style:Object.assign(Object.assign({},r.style),{transform:"translate3d(0,"+i.top+"px,0)"})})})}))};j.style=E}}]);
//# sourceMappingURL=chunk-2d0d43da.b017c710.js.map</pre></body></html>