!function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(u){l=!0,r=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return o}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return e(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var n=document.createElement("style");n.innerHTML=":root{--van-list-text-color: var(--van-text-color-2);--van-list-text-font-size: var(--van-font-size-md);--van-list-text-line-height: 1.33333rem;--van-list-loading-icon-size: .42667rem}.van-list__loading,.van-list__finished-text,.van-list__error-text{color:var(--van-list-text-color);font-size:var(--van-list-text-font-size);line-height:var(--van-list-text-line-height);text-align:center}.van-list__placeholder{height:0;pointer-events:none}.van-list__loading-icon .van-loading__spinner{width:var(--van-list-loading-icon-size);height:var(--van-list-loading-icon-size)}\n",document.head.appendChild(n),System.register(["./index-legacy.1f97fb1d.js","./index-legacy.b5c7e53f.js","./use-tab-status-legacy.92e0e655.js","./index-legacy.5b0e867c.js"],(function(e){"use strict";var n,i,r,o,a,l,u,c,s,d,f,v,g,h,m,p,x,y,b;return{setters:[function(t){n=t.d,i=t.r,r=t.B,o=t.w,a=t.a1,l=t.D,u=t.C,c=t.c,s=t.F,d=t.b},function(t){f=t.c,v=t.b,g=t.m,h=t.t,m=t.f,p=t.i,x=t.w},function(t){y=t.u},function(t){b=t.L}],execute:function(){var _=t(f("list"),3),w=_[0],S=_[1],T=_[2],j={error:Boolean,offset:v(300),loading:Boolean,finished:Boolean,errorText:String,direction:g("down"),loadingText:String,finishedText:String,immediateCheck:h},z=n({name:w,props:j,emits:["load","update:error","update:loading"],setup:function(t,e){var n=e.emit,f=e.slots,v=i(!1),g=i(),h=i(),x=y(),_=r(g),w=function(){s((function(){if(!(v.value||t.finished||t.error||!1===(null==x?void 0:x.value))){var e=t.offset,i=t.direction,r=d(_);if(r.height&&!p(g)){var o=d(h);("up"===i?r.top-o.top<=e:o.bottom-r.bottom<=e)&&(v.value=!0,n("update:loading",!0),n("load"))}}}))},j=function(){if(t.finished){var e=f.finished?f.finished():t.finishedText;if(e)return c("div",{class:S("finished-text")},[e])}},z=function(){n("update:error",!1),w()},A=function(){if(t.error){var e=f.error?f.error():t.errorText;if(e)return c("div",{role:"button",class:S("error-text"),tabindex:0,onClick:z},[e])}},C=function(){if(v.value&&!t.finished)return c("div",{class:S("loading")},[f.loading?f.loading():c(b,{class:S("loading-icon")},{default:function(){return[t.loadingText||T("loading")]}})])};return o((function(){return[t.loading,t.finished,t.error]}),w),x&&o(x,(function(t){t&&w()})),a((function(){v.value=t.loading})),l((function(){t.immediateCheck&&w()})),m({check:w}),u("scroll",w,{target:_}),function(){var e,n=null==(e=f.default)?void 0:e.call(f),i=c("div",{ref:h,class:S("placeholder")},null);return c("div",{ref:g,role:"feed",class:S(),"aria-busy":v.value},["down"===t.direction?n:i,C(),j(),A(),"up"===t.direction?n:i])}}});e("L",x(z))}}}))}();
